diff --git a/assets/@googlemaps-xrxk7TKA.js b/assets/@googlemaps-xrxk7TKA.js deleted file mode 100644 index 7332bd0..0000000 --- a/assets/@googlemaps-xrxk7TKA.js +++ /dev/null @@ -1 +0,0 @@ -function P(s,e,i,r){function n(t){return t instanceof i?t:new i(function(o){o(t)})}return new(i||(i=Promise))(function(t,o){function a(l){try{c(r.next(l))}catch(h){o(h)}}function u(l){try{c(r.throw(l))}catch(h){o(h)}}function c(l){l.done?t(l.value):n(l.value).then(a,u)}c((r=r.apply(s,e||[])).next())})}function _(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var j=function s(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var r,n,t;if(Array.isArray(e)){if(r=e.length,r!=i.length)return!1;for(n=r;n--!==0;)if(!s(e[n],i[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(t=Object.keys(e),r=t.length,r!==Object.keys(i).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(i,t[n]))return!1;for(n=r;n--!==0;){var o=t[n];if(!s(e[o],i[o]))return!1}return!0}return e!==e&&i!==i},A=_(j);const S="__googleMapsScriptId";var f;(function(s){s[s.INITIALIZED=0]="INITIALIZED",s[s.LOADING=1]="LOADING",s[s.SUCCESS=2]="SUCCESS",s[s.FAILURE=3]="FAILURE"})(f||(f={}));class p{constructor({apiKey:e,authReferrerPolicy:i,channel:r,client:n,id:t=S,language:o,libraries:a=[],mapIds:u,nonce:c,region:l,retries:h=3,url:m="https://maps.googleapis.com/maps/api/js",version:d}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=i,this.channel=r,this.client=n,this.id=t||S,this.language=o,this.libraries=a,this.mapIds=u,this.nonce=c,this.region=l,this.retries=h,this.url=m,this.version=d,p.instance){if(!A(this.options,p.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(p.instance.options)}`);return p.instance}p.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?f.FAILURE:this.done?f.SUCCESS:this.loading?f.LOADING:f.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,i)=>{this.loadCallback(r=>{r?i(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,i;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(t=>!r[t]&&delete r[t]),!((i=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||i===void 0)&&i.importLibrary||(t=>{let o,a,u,c="The Google Maps JavaScript API",l="google",h="importLibrary",m="__ib__",d=document,g=window;g=g[l]||(g[l]={});const y=g.maps||(g.maps={}),E=new Set,v=new URLSearchParams,k=()=>o||(o=new Promise((b,w)=>P(this,void 0,void 0,function*(){var I;yield a=d.createElement("script"),a.id=this.id,v.set("libraries",[...E]+"");for(u in t)v.set(u.replace(/[A-Z]/g,O=>"_"+O[0].toLowerCase()),t[u]);v.set("callback",l+".maps."+m),a.src=this.url+"?"+v,y[m]=b,a.onerror=()=>o=w(Error(c+" could not load.")),a.nonce=this.nonce||((I=d.querySelector("script[nonce]"))===null||I===void 0?void 0:I.nonce)||"",d.head.append(a)})));y[h]?console.warn(c+" only loads once. Ignoring:",t):y[h]=(b,...w)=>E.add(b)&&k().then(()=>y[h](b,...w))})(r);const n=this.libraries.map(t=>this.importLibrary(t));n.length||n.push(this.importLibrary("core")),Promise.all(n).then(()=>this.callback(),t=>{const o=new ErrorEvent("error",{error:t});this.loadErrorCallback(o)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const i=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${i} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},i)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}export{p as L}; diff --git a/assets/@mapbox-P3eih9Ks.js b/assets/@mapbox-P3eih9Ks.js deleted file mode 100644 index bc86098..0000000 --- a/assets/@mapbox-P3eih9Ks.js +++ /dev/null @@ -1 +0,0 @@ -var c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var e=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,e.get?e:{enumerable:!0,get:function(){return t[r]}})}),i}var h=s;function s(t,n){this.x=t,this.y=n}s.prototype={clone:function(){return new s(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,n){return this.clone()._rotateAround(t,n)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var n=t.x-this.x,i=t.y-this.y;return n*n+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,n){return Math.atan2(this.x*n-this.y*t,this.x*t+this.y*n)},_matMult:function(t){var n=t[0]*this.x+t[1]*this.y,i=t[2]*this.x+t[3]*this.y;return this.x=n,this.y=i,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var n=Math.cos(t),i=Math.sin(t),r=n*this.x-i*this.y,e=i*this.x+n*this.y;return this.x=r,this.y=e,this},_rotateAround:function(t,n){var i=Math.cos(t),r=Math.sin(t),e=n.x+i*(this.x-n.x)-r*(this.y-n.y),u=n.y+r*(this.x-n.x)+i*(this.y-n.y);return this.x=e,this.y=u,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}};s.convert=function(t){return t instanceof s?t:Array.isArray(t)?new s(t[0],t[1]):t};const y=o(h);export{f as a,c,o as g,y as s}; diff --git a/assets/deepmerge-m38oLmcF.js b/assets/deepmerge-m38oLmcF.js deleted file mode 100644 index 8c53645..0000000 --- a/assets/deepmerge-m38oLmcF.js +++ /dev/null @@ -1 +0,0 @@ -var b=function(r){return y(r)&&!s(r)};function y(e){return!!e&&typeof e=="object"}function s(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||m(e)}var o=typeof Symbol=="function"&&Symbol.for,O=o?Symbol.for("react.element"):60103;function m(e){return e.$$typeof===O}function j(e){return Array.isArray(e)?[]:{}}function u(e,r){return r.clone!==!1&&r.isMergeableObject(e)?a(j(e),e,r):e}function g(e,r,n){return e.concat(r).map(function(c){return u(c,n)})}function M(e,r){if(!r.customMerge)return a;var n=r.customMerge(e);return typeof n=="function"?n:a}function A(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function f(e){return Object.keys(e).concat(A(e))}function l(e,r){try{return r in e}catch{return!1}}function E(e,r){return l(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function p(e,r,n){var c={};return n.isMergeableObject(e)&&f(e).forEach(function(t){c[t]=u(e[t],n)}),f(r).forEach(function(t){E(e,t)||(l(e,t)&&n.isMergeableObject(r[t])?c[t]=M(t,n)(e[t],r[t],n):c[t]=u(r[t],n))}),c}function a(e,r,n){n=n||{},n.arrayMerge=n.arrayMerge||g,n.isMergeableObject=n.isMergeableObject||b,n.cloneUnlessOtherwiseSpecified=u;var c=Array.isArray(r),t=Array.isArray(e),i=c===t;return i?c?n.arrayMerge(e,r,n):p(e,r,n):u(r,n)}a.all=function(r,n){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(c,t){return a(c,t,n)},{})};var S=a,d=S;export{d as c}; diff --git a/assets/deepmerge-tjhCCVMj.js b/assets/deepmerge-tjhCCVMj.js new file mode 100644 index 0000000..826c728 --- /dev/null +++ b/assets/deepmerge-tjhCCVMj.js @@ -0,0 +1 @@ +var E=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function c(){return this instanceof c?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(c){var n=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(t,c,n.get?n:{enumerable:!0,get:function(){return e[c]}})}),t}var i=function(r){return s(r)&&!b(r)};function s(e){return!!e&&typeof e=="object"}function b(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||p(e)}var y=typeof Symbol=="function"&&Symbol.for,g=y?Symbol.for("react.element"):60103;function p(e){return e.$$typeof===g}function O(e){return Array.isArray(e)?[]:{}}function a(e,r){return r.clone!==!1&&r.isMergeableObject(e)?u(O(e),e,r):e}function d(e,r,t){return e.concat(r).map(function(c){return a(c,t)})}function m(e,r){if(!r.customMerge)return u;var t=r.customMerge(e);return typeof t=="function"?t:u}function j(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function f(e){return Object.keys(e).concat(j(e))}function l(e,r){try{return r in e}catch{return!1}}function M(e,r){return l(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function h(e,r,t){var c={};return t.isMergeableObject(e)&&f(e).forEach(function(n){c[n]=a(e[n],t)}),f(r).forEach(function(n){M(e,n)||(l(e,n)&&t.isMergeableObject(r[n])?c[n]=m(n,t)(e[n],r[n],t):c[n]=a(r[n],t))}),c}function u(e,r,t){t=t||{},t.arrayMerge=t.arrayMerge||d,t.isMergeableObject=t.isMergeableObject||i,t.cloneUnlessOtherwiseSpecified=a;var c=Array.isArray(r),n=Array.isArray(e),o=c===n;return o?c?t.arrayMerge(e,r,t):h(e,r,t):a(r,t)}u.all=function(r,t){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(c,n){return u(c,n,t)},{})};var A=u,v=A;export{w as a,E as b,v as c,S as g}; diff --git a/assets/eventemitter3-kxfTZM1Q.js b/assets/eventemitter3-kxfTZM1Q.js deleted file mode 100644 index fed069d..0000000 --- a/assets/eventemitter3-kxfTZM1Q.js +++ /dev/null @@ -1 +0,0 @@ -import{g as E}from"./@mapbox-P3eih9Ks.js";var m={exports:{}};(function(g){var w=Object.prototype.hasOwnProperty,u="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(u=!1));function b(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function x(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new b(n,r||s,l),o=u?u+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function y(s,t){--s._eventsCount===0?s._events=new h:delete s._events[t]}function f(){this._events=new h,this._eventsCount=0}f.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)w.call(n,r)&&t.push(u?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},f.prototype.listeners=function(t){var n=u?u+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);lt,isStatic:!1,reducedMotion:"never"}),re=b.createContext({}),Ne=b.createContext(null),oe=typeof document<"u",Ms=oe?b.useLayoutEffect:b.useEffect,Ls=b.createContext({strict:!1}),Ue=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Yi="framerAppearId",Rs="data-"+Ue(Yi),Es={skipAnimations:!1,useManualTiming:!1};class mn{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function qi(t){let e=new mn,n=new mn,s=0,i=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&i,f=h?e:n;return c&&r.add(l),f.add(l)&&h&&i&&(s=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c(h[f]=qi(()=>n=!0),h),{}),r=h=>{o[h].process(i)},a=()=>{const h=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(h-i.timestamp,Zi),1),i.timestamp=h,i.isProcessing=!0,Wt.forEach(r),i.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,i.isProcessing||t(a)};return{schedule:Wt.reduce((h,f)=>{const d=o[f];return h[f]=(p,m=!1,y=!1)=>(n||l(),d.schedule(p,m,y)),h},{}),cancel:h=>Wt.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:We,cancel:jc}=Bs(queueMicrotask,!1);function Ji(t,e,n,s){const{visualElement:i}=b.useContext(re),o=b.useContext(Ls),r=b.useContext(Ne),a=b.useContext(Ds).reducedMotion,l=b.useRef();s=s||o.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:i,props:n,presenceContext:r,blockInitialAnimation:r?r.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;b.useInsertionEffect(()=>{c&&c.update(n,r)});const u=b.useRef(!!(n[Rs]&&!window.HandoffComplete));return Ms(()=>{c&&(We.postRender(c.render),u.current&&c.animationState&&c.animationState.animateChanges())}),b.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function mt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Qi(t,e,n){return b.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):mt(n)&&(n.current=s))},[e])}function Ft(t){return typeof t=="string"||Array.isArray(t)}function ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const He=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ze=["initial",...He];function le(t){return ae(t.animate)||ze.some(e=>Ft(t[e]))}function Fs(t){return!!(le(t)||t.variants)}function tr(t,e){if(le(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ft(n)?n:void 0,animate:Ft(s)?s:void 0}}return t.inherit!==!1?e:{}}function er(t){const{initial:e,animate:n}=tr(t,b.useContext(re));return b.useMemo(()=>({initial:e,animate:n}),[gn(e),gn(n)])}function gn(t){return Array.isArray(t)?t.join(" "):t}const yn={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"]},Ot={};for(const t in yn)Ot[t]={isEnabled:e=>yn[t].some(n=>!!e[n])};function nr(t){for(const e in t)Ot[e]={...Ot[e],...t[e]}}const Os=b.createContext({}),ks=b.createContext({}),sr=Symbol.for("motionComponentSymbol");function ir({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&nr(t);function o(a,l){let c;const u={...b.useContext(Ds),...a,layoutId:rr(a)},{isStatic:h}=u,f=er(a),d=s(a,h);if(!h&&oe){f.visualElement=Ji(i,d,u,e);const p=b.useContext(ks),m=b.useContext(Ls).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,m,t,p))}return b.createElement(re.Provider,{value:f},c&&f.visualElement?b.createElement(c,{visualElement:f.visualElement,...u}):null,n(i,a,Qi(d,f.visualElement,l),d,h,f.visualElement))}const r=b.forwardRef(o);return r[sr]=i,r}function rr({layoutId:t}){const e=b.useContext(Os).id;return e&&t!==void 0?e+"-"+t:t}function or(t){function e(s,i={}){return ir(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ar=["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 Ge(t){return typeof t!="string"||t.includes("-")?!1:!!(ar.indexOf(t)>-1||/[A-Z]/.test(t))}const qt={};function lr(t){Object.assign(qt,t)}const kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ht=new Set(kt);function js(t,{layout:e,layoutId:n}){return ht.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!qt[t]||t==="opacity")}const j=t=>!!(t&&t.getVelocity),cr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ur=kt.length;function hr(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,i){let o="";for(let r=0;re=>typeof e=="string"&&e.startsWith(t),Ns=Is("--"),fr=Is("var(--"),Zt=t=>fr(t)&&dr.test(t),dr=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,pr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,et=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},Mt={...Tt,transform:t=>et(0,1,t)},Ht={...Tt,default:1},Lt=t=>Math.round(t*1e5)/1e5,$e=/(-)?([\d]*\.?[\d])+/g,mr=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function jt(t){return typeof t=="string"}const It=t=>({test:e=>jt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),J=It("deg"),z=It("%"),P=It("px"),yr=It("vh"),vr=It("vw"),vn={...z,parse:t=>z.parse(t)/100,transform:t=>z.transform(t*100)},xn={...Tt,transform:Math.round},Us={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,size:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:Ht,scaleX:Ht,scaleY:Ht,scaleZ:Ht,skew:J,skewX:J,skewY:J,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Mt,originX:vn,originY:vn,originZ:P,zIndex:xn,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:xn};function _e(t,e,n,s){const{style:i,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const f=e[h];if(Ns(h)){o[h]=f;continue}const d=Us[h],p=pr(f,d);if(ht.has(h)){if(l=!0,r[h]=p,!u)continue;f!==(d.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=p):i[h]=p}if(e.transform||(l||s?i.transform=hr(t.transform,n,u,s):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:f="50%",originZ:d=0}=a;i.transformOrigin=`${h} ${f} ${d}`}}const Ke=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ws(t,e,n){for(const s in e)!j(e[s])&&!js(s,n)&&(t[s]=e[s])}function xr({transformTemplate:t},e,n){return b.useMemo(()=>{const s=Ke();return _e(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function Pr(t,e,n){const s=t.style||{},i={};return Ws(i,s,t),Object.assign(i,xr(t,e,n)),i}function Tr(t,e,n){const s={},i=Pr(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const br=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","ignoreStrict","viewport"]);function Jt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||br.has(t)}let Hs=t=>!Jt(t);function Vr(t){t&&(Hs=e=>e.startsWith("on")?!Jt(e):t(e))}try{Vr(require("@emotion/is-prop-valid").default)}catch{}function Sr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Hs(i)||n===!0&&Jt(i)||!e&&!Jt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Pn(t,e,n){return typeof t=="string"?t:P.transform(e+n*t)}function Ar(t,e,n){const s=Pn(e,t.x,t.width),i=Pn(n,t.y,t.height);return`${s} ${i}`}const wr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cr={offset:"strokeDashoffset",array:"strokeDasharray"};function Dr(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?wr:Cr;t[o.offset]=P.transform(-s);const r=P.transform(e),a=P.transform(n);t[o.array]=`${r} ${a}`}function Xe(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,f){if(_e(t,c,u,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Ar(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&Dr(d,r,a,l,!1)}const zs=()=>({...Ke(),attrs:{}}),Ye=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Mr(t,e,n,s){const i=b.useMemo(()=>{const o=zs();return Xe(o,e,{enableHardwareAcceleration:!1},Ye(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ws(o,t.style,t),i.style={...o,...i.style}}return i}function Lr(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Ge(n)?Mr:Tr)(s,o,r,n),c=Sr(s,typeof n=="string",t),u=n!==b.Fragment?{...c,...l,ref:i}:{},{children:h}=s,f=b.useMemo(()=>j(h)?h.get():h,[h]);return b.createElement(n,{...u,children:f})}}function Gs(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const $s=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"]);function _s(t,e,n,s){Gs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute($s.has(i)?i:Ue(i),e.attrs[i])}function qe(t,e){const{style:n}=t,s={};for(const i in n)(j(n[i])||e.style&&j(e.style[i])||js(i,t))&&(s[i]=n[i]);return s}function Ks(t,e){const n=qe(t,e);for(const s in t)if(j(t[s])||j(e[s])){const i=kt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[i]=t[s]}return n}function Ze(t,e,n,s={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),e}function Xs(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const Qt=t=>Array.isArray(t),Rr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Er=t=>Qt(t)?t[t.length-1]||0:t;function $t(t){const e=j(t)?t.get():t;return Rr(e)?e.toValue():e}function Br({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:Fr(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Ys=t=>(e,n)=>{const s=b.useContext(re),i=b.useContext(Ne),o=()=>Br(t,e,s,i);return n?o():Xs(o)};function Fr(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=$t(o[f]);let{initial:r,animate:a}=t;const l=le(t),c=Fs(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!ae(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const p=Ze(t,d);if(!p)return;const{transitionEnd:m,transition:y,...T}=p;for(const v in T){let g=T[v];if(Array.isArray(g)){const x=u?g.length-1:0;g=g[x]}g!==null&&(i[v]=g)}for(const v in m)i[v]=m[v]}),i}const R=t=>t,{schedule:A,cancel:G,state:B,steps:de}=Bs(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!0),Or={useVisualState:Ys({scrapeMotionValuesFromProps:Ks,createRenderState:zs,onMount:(t,e,{renderState:n,latestValues:s})=>{A.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),A.render(()=>{Xe(n,s,{enableHardwareAcceleration:!1},Ye(e.tagName),t.transformTemplate),_s(e,n)})}})},kr={useVisualState:Ys({scrapeMotionValuesFromProps:qe,createRenderState:Ke})};function jr(t,{forwardMotionProps:e=!1},n,s){return{...Ge(t)?Or:kr,preloadedFeatures:n,useRender:Lr(e),createVisualElement:s,Component:t}}function K(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const qs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ce(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Ir=t=>e=>qs(e)&&t(e,ce(e));function X(t,e,n,s){return K(t,e,Ir(n),s)}const Nr=(t,e)=>n=>e(t(n)),Y=(...t)=>t.reduce(Nr);function Zs(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Tn=Zs("dragHorizontal"),bn=Zs("dragVertical");function Js(t){let e=!1;if(t==="y")e=bn();else if(t==="x")e=Tn();else{const n=Tn(),s=bn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Qs(){const t=Js(!0);return t?(t(),!1):!0}class st{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Vn(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),i=(o,r)=>{if(o.pointerType==="touch"||Qs())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[s]&&A.update(()=>a[s](o,r))};return X(t.current,n,i,{passive:!t.getProps()[s]})}class Ur extends st{mount(){this.unmount=Y(Vn(this.node,!0),Vn(this.node,!1))}unmount(){}}class Wr extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=Y(K(this.node.current,"focus",()=>this.onFocus()),K(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ti=(t,e)=>e?t===e?!0:ti(t,e.parentElement):!1;function pe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ce(n))}class Hr extends st{constructor(){super(...arguments),this.removeStartListeners=R,this.removeEndListeners=R,this.removeAccessibleListeners=R,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=X(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps();A.update(()=>{!h&&!ti(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(s.onTap||s.onPointerUp)}),r=X(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=Y(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||pe("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&A.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=K(this.node.current,"keyup",r),pe("down",(a,l)=>{this.startPress(a,l)})},n=K(this.node.current,"keydown",e),s=()=>{this.isPressing&&pe("cancel",(o,r)=>this.cancelPress(o,r))},i=K(this.node.current,"blur",s);this.removeAccessibleListeners=Y(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&A.update(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qs()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&A.update(()=>s(e,n))}mount(){const e=this.node.getProps(),n=X(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=K(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Y(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ae=new WeakMap,me=new WeakMap,zr=t=>{const e=Ae.get(t.target);e&&e(t)},Gr=t=>{t.forEach(zr)};function $r({root:t,...e}){const n=t||document;me.has(n)||me.set(n,{});const s=me.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Gr,{root:t,...e})),s[i]}function _r(t,e,n){const s=$r(e);return Ae.set(t,n),s.observe(t),()=>{Ae.delete(t),s.unobserve(t)}}const Kr={some:0,all:1};class Xr extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Kr[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return _r(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Yr(e,n))&&this.startObserver()}unmount(){}}function Yr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const qr={inView:{Feature:Xr},tap:{Feature:Hr},focus:{Feature:Wr},hover:{Feature:Ur}};function ei(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;se[s]=n.get()),e}function Jr(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function ue(t,e,n){const s=t.getProps();return Ze(s,e,n!==void 0?n:s.custom,Zr(t),Jr(t))}let Qr=R,he=R;const ct=t=>t*1e3,q=t=>t/1e3,to={current:!1},ni=t=>Array.isArray(t)&&typeof t[0]=="number";function si(t){return!!(!t||typeof t=="string"&&ii[t]||ni(t)||Array.isArray(t)&&t.every(si))}const Dt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ii={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dt([0,.65,.55,1]),circOut:Dt([.55,0,1,.45]),backIn:Dt([.31,.01,.66,-.59]),backOut:Dt([.33,1.53,.69,.99])};function ri(t){if(t)return ni(t)?Dt(t):Array.isArray(t)?t.map(ri):ii[t]}function eo(t,e,n,{delay:s=0,duration:i,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=ri(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}function no(t,{repeat:e,repeatType:n="loop"}){const s=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[s]}const oi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,so=1e-7,io=12;function ro(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=oi(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>so&&++aro(o,0,1,t,n);return o=>o===0||o===1?o:oi(i(o),e,s)}const oo=Nt(.42,0,1,1),ao=Nt(0,0,.58,1),ai=Nt(.42,0,.58,1),lo=t=>Array.isArray(t)&&typeof t[0]!="number",li=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),Je=t=>1-Math.sin(Math.acos(t)),ui=ci(Je),co=li(Je),hi=Nt(.33,1.53,.69,.99),Qe=ci(hi),uo=li(Qe),ho=t=>(t*=2)<1?.5*Qe(t):.5*(2-Math.pow(2,-10*(t-1))),fo={linear:R,easeIn:oo,easeInOut:ai,easeOut:ao,circIn:Je,circInOut:co,circOut:ui,backIn:Qe,backInOut:uo,backOut:hi,anticipate:ho},Sn=t=>{if(Array.isArray(t)){he(t.length===4);const[e,n,s,i]=t;return Nt(e,n,s,i)}else if(typeof t=="string")return fo[t];return t},xt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},D=(t,e,n)=>t+(e-t)*n;function ge(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function po({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ge(l,a,t+1/3),o=ge(l,a,t),r=ge(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}const tn=(t,e)=>n=>!!(jt(n)&&gr.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),fi=(t,e,n)=>s=>{if(!jt(s))return s;const[i,o,r,a]=s.match($e);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},mo=t=>et(0,255,t),ye={...Tt,transform:t=>Math.round(mo(t))},lt={test:tn("rgb","red"),parse:fi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(n)+", "+Lt(Mt.transform(s))+")"};function go(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const we={test:tn("#"),parse:go,transform:lt.transform},gt={test:tn("hsl","hue"),parse:fi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+z.transform(Lt(e))+", "+z.transform(Lt(n))+", "+Lt(Mt.transform(s))+")"},ve=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},yo=[we,lt,gt],vo=t=>yo.find(e=>e.test(t));function An(t){const e=vo(t);let n=e.parse(t);return e===gt&&(n=po(n)),n}const wn=(t,e)=>{const n=An(t),s=An(e),i={...n};return o=>(i.red=ve(n.red,s.red,o),i.green=ve(n.green,s.green,o),i.blue=ve(n.blue,s.blue,o),i.alpha=D(n.alpha,s.alpha,o),lt.transform(i))},O={test:t=>lt.test(t)||we.test(t)||gt.test(t),parse:t=>lt.test(t)?lt.parse(t):gt.test(t)?gt.parse(t):we.parse(t),transform:t=>jt(t)?t:t.hasOwnProperty("red")?lt.transform(t):gt.transform(t)};function xo(t){var e,n;return isNaN(t)&&jt(t)&&(((e=t.match($e))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(mr))===null||n===void 0?void 0:n.length)||0)>0}const di="number",pi="color",Po="var",To="var(",Cn="${}",Dn=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function te(t){const e=t.toString(),n=e.match(Dn)||[],s=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l{let o="";for(let r=0;rtypeof t=="number"?0:t;function Vo(t){const e=mi(t);return gi(t)(e.map(bo))}const nt={test:xo,parse:mi,createTransformer:gi,getAnimatableNone:Vo};function Ce(t,e){return n=>n>0?e:t}function So(t,e){return n=>D(t,e,n)}function en(t){return typeof t=="number"?So:typeof t=="string"?Zt(t)?Ce:O.test(t)?wn:Co:Array.isArray(t)?yi:typeof t=="object"?O.test(t)?wn:Ao:Ce}function yi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>en(o)(o,e[r]));return o=>{for(let r=0;r{for(const o in s)n[o]=s[o](i);return n}}function wo(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o{const n=nt.createTransformer(e),s=te(t),i=te(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Y(yi(wo(s,i),i.values),n):Ce(t,e)};function vi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):en(t)(t,e)}function Do(t,e,n){const s=[],i=n||vi,o=t.length-1;for(let r=0;re[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=Do(e,s,i),a=r.length,l=c=>{let u=0;if(a>1)for(;ul(et(t[0],t[o-1],c)):l}function Mo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=xt(0,e,s);t.push(D(n,1,i))}}function Pi(t){const e=[0];return Mo(e,t.length-1),e}function Lo(t,e){return t.map(n=>n*e)}function Ro(t,e){return t.map(()=>e||ai).splice(0,t.length-1)}function ee({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=lo(s)?s.map(Sn):Sn(s),o={done:!1,value:e[0]},r=Lo(n&&n.length===e.length?n:Pi(e),t),a=xi(r,e,{ease:Array.isArray(i)?i:Ro(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function nn(t,e){return e?t*(1e3/e):0}const Eo=5;function Ti(t,e,n){const s=Math.max(e-Eo,0);return nn(n-t(s),e-s)}const xe=.001,Bo=.01,Fo=10,Oo=.05,ko=1;function jo({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o,r=1-e;r=et(Oo,ko,r),t=et(Bo,Fo,q(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=De(c,r),p=Math.exp(-h);return xe-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=De(Math.pow(c,2),r);return(-i(c)+xe>0?-1:1)*((f-d)*p)/m}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-xe+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=No(i,o,a);if(t=ct(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Io=12;function No(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function Ho(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Mn(t,Wo)&&Mn(t,Uo)){const n=jo(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function bi({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:f}=Ho({...s,velocity:-q(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*c)),m=o-i,y=q(Math.sqrt(a/c)),T=Math.abs(m)<5;n||(n=T?.01:2),e||(e=T?.005:.5);let v;if(p<1){const g=De(y,p);v=x=>{const V=Math.exp(-p*y*x);return o-V*((d+p*y*m)/g*Math.sin(g*x)+m*Math.cos(g*x))}}else if(p===1)v=g=>o-Math.exp(-y*g)*(m+(d+y*m)*g);else{const g=y*Math.sqrt(p*p-1);v=x=>{const V=Math.exp(-p*y*x),E=Math.min(g*x,300);return o-V*((d+p*y*m)*Math.sinh(E)+g*m*Math.cosh(E))/g}}return{calculatedDuration:f&&u||null,next:g=>{const x=v(g);if(f)r.done=g>=u;else{let V=d;g!==0&&(p<1?V=Ti(v,g,x):V=0);const E=Math.abs(V)<=n,w=Math.abs(o-x)<=e;r.done=E&&w}return r.value=r.done?o:x,r}}}function Ln({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&Sl,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)-m*Math.exp(-S/s),g=S=>T+v(S),x=S=>{const M=v(S),$=g(S);f.done=Math.abs(M)<=c,f.value=f.done?T:$};let V,E;const w=S=>{d(f.value)&&(V=S,E=bi({keyframes:[f.value,p(f.value)],velocity:Ti(g,S,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:S=>{let M=!1;return!E&&V===void 0&&(M=!0,x(S),w(S)),V!==void 0&&S>V?E.next(S-V):(!M&&x(S),f)}}}let _t;function zo(){_t=void 0}const ut={now:()=>(_t===void 0&&ut.set(B.isProcessing||Es.useManualTiming?B.timestamp:performance.now()),_t),set:t=>{_t=t,queueMicrotask(zo)}},Go=t=>{const e=({timestamp:n})=>t(n);return{start:()=>A.update(e,!0),stop:()=>G(e),now:()=>B.isProcessing?B.timestamp:ut.now()}},Rn=2e4;function En(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=Rn?1/0:e}const $o={decay:Ln,inertia:Ln,tween:ee,keyframes:ee,spring:bi},_o=t=>t/100;function ne({autoplay:t=!0,delay:e=0,driver:n=Go,keyframes:s,type:i="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:h,...f}){let d=1,p=!1,m,y;const T=()=>{y=new Promise(C=>{m=C})};T();let v;const g=$o[i]||ee;let x;g!==ee&&typeof s[0]!="number"&&(x=Y(_o,vi(s[0],s[1])),s=[0,100]);const V=g({...f,keyframes:s});let E;a==="mirror"&&(E=g({...f,keyframes:[...s].reverse(),velocity:-(f.velocity||0)}));let w="idle",S=null,M=null,$=null;V.calculatedDuration===null&&o&&(V.calculatedDuration=En(V));const{calculatedDuration:ft}=V;let W=1/0,_=1/0;ft!==null&&(W=ft+r,_=W*(o+1)-r);let k=0;const dt=C=>{if(M===null)return;d>0&&(M=Math.min(M,C)),d<0&&(M=Math.min(C-_/d,M)),S!==null?k=S:k=Math.round(C-M)*d;const Vt=k-e*(d>=0?1:-1),hn=d>=0?Vt<0:Vt>_;k=Math.max(Vt,0),w==="finished"&&S===null&&(k=_);let fn=k,dn=V;if(o){const fe=Math.min(k,_)/W;let Ut=Math.floor(fe),it=fe%1;!it&&fe>=1&&(it=1),it===1&&Ut--,Ut=Math.min(Ut,o+1),!!(Ut%2)&&(a==="reverse"?(it=1-it,r&&(it-=r/W)):a==="mirror"&&(dn=E)),fn=et(0,1,it)*W}const St=hn?{done:!1,value:s[0]}:dn.next(fn);x&&(St.value=x(St.value));let{done:pn}=St;!hn&&ft!==null&&(pn=d>=0?k>=_:k<=0);const Xi=S===null&&(w==="finished"||w==="running"&&pn);return h&&h(St.value),Xi&&bt(),St},F=()=>{v&&v.stop(),v=void 0},Z=()=>{w="idle",F(),m(),T(),M=$=null},bt=()=>{w="finished",u&&u(),F(),m()},pt=()=>{if(p)return;v||(v=n(dt));const C=v.now();l&&l(),S!==null?M=C-S:(!M||w==="finished")&&(M=C),w==="finished"&&T(),$=M,S=null,w="running",v.start()};t&&pt();const un={then(C,Vt){return y.then(C,Vt)},get time(){return q(k)},set time(C){C=ct(C),k=C,S!==null||!v||d===0?S=C:M=v.now()-C/d},get duration(){const C=V.calculatedDuration===null?En(V):V.calculatedDuration;return q(C)},get speed(){return d},set speed(C){C===d||!v||(d=C,un.time=q(k))},get state(){return w},play:pt,pause:()=>{w="paused",S=k},stop:()=>{p=!0,w!=="idle"&&(w="idle",c&&c(),Z())},cancel:()=>{$!==null&&dt($),Z()},complete:()=>{w="finished"},sample:C=>(M=0,dt(C))};return un}function Ko(t){let e;return()=>(e===void 0&&(e=t()),e)}const Xo=Ko(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yo=new Set(["opacity","clipPath","filter","transform"]),zt=10,qo=2e4,Zo=(t,e)=>e.type==="spring"||t==="backgroundColor"||!si(e.ease);function Jo(t,e,{onUpdate:n,onComplete:s,...i}){if(!(Xo()&&Yo.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let r=!1,a,l,c=!1;const u=()=>{l=new Promise(g=>{a=g})};u();let{keyframes:h,duration:f=300,ease:d,times:p}=i;if(Zo(e,i)){const g=ne({...i,repeat:0,delay:0});let x={done:!1,value:h[0]};const V=[];let E=0;for(;!x.done&&E{c=!1,m.cancel()},T=()=>{c=!0,A.update(y),a(),u()};return m.onfinish=()=>{c||(t.set(no(h,i)),s&&s(),T())},{then(g,x){return l.then(g,x)},attachTimeline(g){return m.timeline=g,m.onfinish=null,R},get time(){return q(m.currentTime||0)},set time(g){m.currentTime=ct(g)},get speed(){return m.playbackRate},set speed(g){m.playbackRate=g},get duration(){return q(f)},play:()=>{r||(m.play(),G(y))},pause:()=>m.pause(),stop:()=>{if(r=!0,m.playState==="idle")return;const{currentTime:g}=m;if(g){const x=ne({...i,autoplay:!1});t.setWithVelocity(x.sample(g-zt).value,x.sample(g).value,zt)}T()},complete:()=>{c||m.finish()},cancel:T}}function Qo({keyframes:t,delay:e,onUpdate:n,onComplete:s}){const i=()=>(n&&n(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:R,pause:R,stop:R,then:o=>(o(),Promise.resolve()),cancel:R,complete:R});return e?ne({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const ta={type:"spring",stiffness:500,damping:25,restSpeed:10},ea=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),na={type:"keyframes",duration:.8},sa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ia=(t,{keyframes:e})=>e.length>2?na:ht.has(t)?t.startsWith("scale")?ea(e[1]):ta:sa,Me=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url(")),ra=new Set(["brightness","contrast","saturate","opacity"]);function oa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match($e)||[];if(!s)return t;const i=n.replace(s,"");let o=ra.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const aa=/([a-z-]*)\(.*?\)/g,Le={...nt,getAnimatableNone:t=>{const e=t.match(aa);return e?e.map(oa).join(" "):t}},la={...Us,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:Le,WebkitFilter:Le},sn=t=>la[t];function Vi(t,e){let n=sn(t);return n!==Le&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Si=t=>/^0[^.\s]+$/.test(t);function ca(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Si(t)}function ua(t,e,n,s){const i=Me(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const r=s.from!==void 0?s.from:t.get();let a;const l=[];for(let c=0;ci=>{const o=rn(s,t)||{},r=o.delay||s.delay||0;let{elapsed:a=0}=s;a=a-ct(r);const l=ua(e,t,n,o),c=l[0],u=l[l.length-1],h=Me(t,c),f=Me(t,u);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(ha(o)||(d={...d,...ia(t,d)}),d.duration&&(d.duration=ct(d.duration)),d.repeatDelay&&(d.repeatDelay=ct(d.repeatDelay)),!h||!f||to.current||o.type===!1||Es.skipAnimations)return Qo(d);if(!s.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=Jo(e,t,d);if(p)return p}return ne(d)};function se(t){return!!(j(t)&&t.add)}const Ai=t=>/^\-?\d*\.?\d+$/.test(t);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function ln(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class cn{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>ln(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o!isNaN(parseFloat(t));class da{constructor(e,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=ut.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=fa(this.current),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ut.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),A.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Bn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Bn);return nn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function H(t,e){return new da(t,e)}const wi=t=>e=>e.test(t),pa={test:t=>t==="auto",parse:t=>t},Ci=[Tt,P,z,J,vr,yr,pa],At=t=>Ci.find(wi(t)),ma=[...Ci,O,nt],ga=t=>ma.find(wi(t));function ya(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,H(n))}function va(t,e){const n=ue(t,e);let{transitionEnd:s={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const r in o){const a=Er(o[r]);ya(t,r,a)}}function xa(t,e,n){var s,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),r=o.length;if(r)for(let a=0;al.remove(h))),c.push(y)}return r&&Promise.all(c).then(()=>{r&&va(t,r)}),c}function Re(t,e,n={}){const s=ue(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Di(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return Sa(t,e,c+l,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Sa(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(Aa).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(Re(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function Aa(t,e){return t.sortNodePosition(e)}function wa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Re(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Re(t,e,n);else{const i=typeof e=="function"?ue(t,e,n.custom):e;s=Promise.all(Di(t,i,n))}return s.then(()=>t.notify("AnimationComplete",e))}const Ca=[...He].reverse(),Da=He.length;function Ma(t){return e=>Promise.all(e.map(({animation:n,options:s})=>wa(t,n,s)))}function La(t){let e=Ma(t);const n=Ea();let s=!0;const i=(l,c)=>{const u=ue(t,c);if(u){const{transition:h,transitionEnd:f,...d}=u;l={...l,...d,...f}}return l};function o(l){e=l(t)}function r(l,c){const u=t.getProps(),h=t.getVariantContext(!0)||{},f=[],d=new Set;let p={},m=1/0;for(let T=0;Tm&&V,$=!1;const ft=Array.isArray(x)?x:[x];let W=ft.reduce(i,{});E===!1&&(W={});const{prevResolvedValues:_={}}=g,k={..._,...W},dt=F=>{M=!0,d.has(F)&&($=!0,d.delete(F)),g.needsAnimating[F]=!0};for(const F in k){const Z=W[F],bt=_[F];if(p.hasOwnProperty(F))continue;let pt=!1;Qt(Z)&&Qt(bt)?pt=!ei(Z,bt):pt=Z!==bt,pt?Z!==void 0?dt(F):d.add(F):Z!==void 0&&d.has(F)?dt(F):g.protectedKeys[F]=!0}g.prevProp=x,g.prevResolvedValues=W,g.isActive&&(p={...p,...W}),s&&t.blockInitialAnimation&&(M=!1),M&&(!w||$)&&f.push(...ft.map(F=>({animation:F,options:{type:v,...l}})))}if(d.size){const T={};d.forEach(v=>{const g=t.getBaseTarget(v);g!==void 0&&(T[v]=g)}),f.push({animation:T})}let y=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(f):Promise.resolve()}function a(l,c,u){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=r(u,l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n}}function Ra(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ei(e,t):!1}function rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ea(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class Ba extends st{constructor(e){super(e),e.animationState||(e.animationState=La(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ae(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Fa=0;class Oa extends st{constructor(){super(...arguments),this.id=Fa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:s}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:s??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ka={animation:{Feature:Ba},exit:{Feature:Oa}},Fn=(t,e)=>Math.abs(t-e);function ja(t,e){const n=Fn(t.x,e.x),s=Fn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Mi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Te(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ja(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=B;this.history.push({...p,timestamp:m});const{onStart:y,onMove:T}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Pe(f,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Te(h.type==="pointercancel"?this.lastMoveEventInfo:Pe(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!qs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=ce(e),a=Pe(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=B;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Te(a,this.history)),this.removeListeners=Y(X(this.contextWindow,"pointermove",this.handlePointerMove),X(this.contextWindow,"pointerup",this.handlePointerUp),X(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),G(this.updatePoint)}}function Pe(t,e){return e?{point:e(t.point)}:t}function On(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Te({point:t},e){return{point:t,delta:On(t,Li(e)),offset:On(t,Ia(e)),velocity:Na(e,.1)}}function Ia(t){return t[0]}function Li(t){return t[t.length-1]}function Na(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Li(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ct(e)));)n--;if(!s)return{x:0,y:0};const o=q(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function I(t){return t.max-t.min}function Ee(t,e=0,n=.01){return Math.abs(t-e)<=n}function kn(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=I(n)/I(e),(Ee(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(Ee(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Rt(t,e,n,s){kn(t.x,e.x,n.x,s?s.originX:void 0),kn(t.y,e.y,n.y,s?s.originY:void 0)}function jn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function Ua(t,e,n){jn(t.x,e.x,n.x),jn(t.y,e.y,n.y)}function In(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Et(t,e,n){In(t.x,e.x,n.x),In(t.y,e.y,n.y)}function Wa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Nn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ha(t,{top:e,left:n,bottom:s,right:i}){return{x:Nn(t.x,n,i),y:Nn(t.y,e,s)}}function Un(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=xt(e.min,e.max-s,t.min):s>i&&(n=xt(t.min,t.max-i,e.min)),et(0,1,n)}function $a(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Be=.35;function _a(t=Be){return t===!1?t=0:t===!0&&(t=Be),{x:Wn(t,"left","right"),y:Wn(t,"top","bottom")}}function Wn(t,e,n){return{min:Hn(t,e),max:Hn(t,n)}}function Hn(t,e){return typeof t=="number"?t:t[e]||0}const zn=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:zn(),y:zn()}),Gn=()=>({min:0,max:0}),L=()=>({x:Gn(),y:Gn()});function U(t){return[t("x"),t("y")]}function Ri({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ka({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Xa(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function be(t){return t===void 0||t===1}function Fe({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function ot(t){return Fe(t)||Ei(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Ei(t){return $n(t.x)||$n(t.y)}function $n(t){return t&&t!=="0%"}function ie(t,e,n){const s=t-n,i=e*s;return n+i}function _n(t,e,n,s,i){return i!==void 0&&(t=ie(t,i,s)),ie(t,n,s)+e}function Oe(t,e=0,n=1,s,i){t.min=_n(t.min,e,n,s,i),t.max=_n(t.max,e,n,s,i)}function Bi(t,{x:e,y:n}){Oe(t.x,e.translate,e.scale,e.originPoint),Oe(t.y,n.translate,n.scale,n.originPoint)}function Ya(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function tt(t,e){t.min=t.min+e,t.max=t.max+e}function Xn(t,e,[n,s,i]){const o=e[i]!==void 0?e[i]:.5,r=D(t.min,t.max,o);Oe(t,e[n],e[s],r,e.scale)}const qa=["x","scaleX","originX"],Za=["y","scaleY","originY"];function vt(t,e){Xn(t.x,e,qa),Xn(t.y,e,Za)}function Fi(t,e){return Ri(Xa(t.getBoundingClientRect(),e))}function Ja(t,e,n){const s=Fi(t,n),{scroll:i}=e;return i&&(tt(s.x,i.offset.x),tt(s.y,i.offset.y)),s}const Oi=({current:t})=>t?t.ownerDocument.defaultView:null,Qa=new WeakMap;class tl{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ce(u,"page").point)},o=(u,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Js(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(y=>{let T=this.getAxisMotionValue(y).get()||0;if(z.test(T)){const{projection:v}=this.visualElement;if(v&&v.layout){const g=v.layout.layoutBox[y];g&&(T=I(g)*(parseFloat(T)/100))}}this.originPoint[y]=T}),p&&A.update(()=>p(u,h),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=el(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),m&&m(u,h)},a=(u,h)=>this.stop(u,h),l=()=>U(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Mi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Oi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&A.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Gt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Wa(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&mt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ha(i.layoutBox,n):this.constraints=!1,this.elastic=_a(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.getAxisMotionValue(r)&&(this.constraints[r]=$a(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!mt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ja(s,i.root,this.visualElement.getTransformPagePoint());let r=za(i.layout.layoutBox,o);if(n){const a=n(Ka(r));this.hasMutatedConstraints=!!a,a&&(r=Ri(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=U(u=>{if(!Gt(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(on(e,s,0,n))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Gt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-D(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!mt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a){const l=a.get();i[r]=Ga({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!Gt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(D(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Qa.set(this.visualElement,this);const e=this.visualElement.current,n=X(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();mt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),s();const r=K(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(U(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Be,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Gt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function el(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class nl extends st{constructor(e){super(e),this.removeGroupControls=R,this.removeListeners=R,this.controls=new tl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yn=t=>(e,n)=>{t&&A.update(()=>t(e,n))};class sl extends st{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(e){this.session=new Mi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yn(e),onStart:Yn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&A.update(()=>i(o,r))}}}mount(){this.removePointerDownListener=X(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function il(){const t=b.useContext(Ne);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=b.useId();return b.useEffect(()=>s(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const wt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=qn(t,e.target.x),s=qn(t,e.target.y);return`${n}% ${s}%`}},rl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=nt.parse(t);if(i.length>5)return s;const o=nt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=D(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};class ol extends Cs.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;lr(al),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||A.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),We.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ki(t){const[e,n]=il(),s=b.useContext(Os);return Cs.createElement(ol,{...t,layoutGroup:s,switchLayoutGroup:b.useContext(ks),isPresent:e,safeToRemove:n})}const al={borderRadius:{...wt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wt,borderTopRightRadius:wt,borderBottomLeftRadius:wt,borderBottomRightRadius:wt,boxShadow:rl},ji=["TopLeft","TopRight","BottomLeft","BottomRight"],ll=ji.length,Zn=t=>typeof t=="string"?parseFloat(t):t,Jn=t=>typeof t=="number"||P.test(t);function cl(t,e,n,s,i,o){i?(t.opacity=D(0,n.opacity!==void 0?n.opacity:1,ul(s)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,hl(s))):o&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;rse?1:n(xt(t,e,s))}function ts(t,e){t.min=e.min,t.max=e.max}function N(t,e){ts(t.x,e.x),ts(t.y,e.y)}function es(t,e,n,s,i){return t-=e,t=ie(t,1/n,s),i!==void 0&&(t=ie(t,1/i,s)),t}function fl(t,e=0,n=1,s=.5,i,o=t,r=t){if(z.test(e)&&(e=parseFloat(e),e=D(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=D(o.min,o.max,s);t===o&&(a-=e),t.min=es(t.min,e,n,a,i),t.max=es(t.max,e,n,a,i)}function ns(t,e,[n,s,i],o,r){fl(t,e[n],e[s],e[i],e.scale,o,r)}const dl=["x","scaleX","originX"],pl=["y","scaleY","originY"];function ss(t,e,n,s){ns(t.x,e,dl,n?n.x:void 0,s?s.x:void 0),ns(t.y,e,pl,n?n.y:void 0,s?s.y:void 0)}function is(t){return t.translate===0&&t.scale===1}function Ni(t){return is(t.x)&&is(t.y)}function ml(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ui(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rs(t){return I(t.x)/I(t.y)}class gl{constructor(){this.members=[]}add(e){an(this.members,e),e.scheduleRender()}remove(e){if(ln(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function os(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(s=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(s+=`rotate(${l}deg) `),c&&(s+=`rotateX(${c}deg) `),u&&(s+=`rotateY(${u}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return(r!==1||a!==1)&&(s+=`scale(${r}, ${a})`),s||"none"}const yl=(t,e)=>t.depth-e.depth;class vl{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){ln(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yl),this.isDirty=!1,this.children.forEach(e)}}function xl(t,e){const n=ut.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(G(s),t(o-e))};return A.read(s,!0),()=>G(s)}function Pl(t){window.MotionDebug&&window.MotionDebug.record(t)}function Tl(t){return t instanceof SVGElement&&t.tagName!=="svg"}function bl(t,e,n){const s=j(t)?t:H(t);return s.start(on("",s,e,n)),s.animation}const as=["","X","Y","Z"],Vl={visibility:"hidden"},ls=1e3;let Sl=0;const at={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Wi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Sl++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,at.totalNodes=at.resolvedTargetDeltas=at.recalculatedProjection=0,this.nodes.forEach(Cl),this.nodes.forEach(El),this.nodes.forEach(Bl),this.nodes.forEach(Dl),Pl(at)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=xl(f,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(us))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Il,{onLayoutAnimationStart:y,onLayoutAnimationComplete:T}=u.getProps(),v=!this.targetLayout||!Ui(this.targetLayout,p)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const x={...rn(m,"layout"),onPlay:y,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||us(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,G(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.forEach(Fl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(Ml),this.sharedNodes.forEach(Ol)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const V=x/1e3;hs(h.x,r.x,V),hs(h.y,r.y,V),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Et(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kl(this.relativeTarget,this.relativeTargetOrigin,f,V),g&&ml(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=L()),N(g,this.relativeTarget)),m&&(this.animationValues=u,cl(u,c,this.latestValues,V,v,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(G(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.update(()=>{Kt.hasAnimatedSinceResize=!0,this.currentAnimation=bl(0,ls,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ls),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Hi(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}N(a,l),vt(a,u),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new gl),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cs),this.root.sharedNodes.clear()}}}function Al(t){t.updateLayout()}function wl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Hi(o,n.layoutBox,s)&&U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=yt();Rt(a,s,n.layoutBox);const l=yt();r?Rt(l,t.applyTransform(i,!0),n.measuredBox):Rt(l,s,n.layoutBox);const c=!Ni(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=L();Et(p,n.layoutBox,f.layoutBox);const m=L();Et(m,s,d.layoutBox),Ui(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Cl(t){at.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Dl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ml(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function Ll(t){t.isLayoutDirty=!1}function Rl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function El(t){t.resolveTargetDelta()}function Bl(t){t.calcProjection()}function Fl(t){t.resetRotation()}function Ol(t){t.removeLeadSnapshot()}function hs(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function fs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function kl(t,e,n,s){fs(t.x,e.x,n.x,s),fs(t.y,e.y,n.y,s)}function jl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Il={duration:.45,ease:[.4,0,.1,1]},ds=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ps=ds("applewebkit/")&&!ds("chrome/")?Math.round:R;function ms(t){t.min=ps(t.min),t.max=ps(t.max)}function Nl(t){ms(t.x),ms(t.y)}function Hi(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ee(rs(e),rs(n),.2)}const Ul=Wi({attachResizeListener:(t,e)=>K(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ve={current:void 0},zi=Wi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ve.current){const t=new Ul({});t.mount(window),t.setOptions({layoutScroll:!0}),Ve.current=t}return Ve.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Wl={pan:{Feature:sl},drag:{Feature:nl,ProjectionNode:zi,MeasureLayout:ki}},Hl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zl(t){const e=Hl.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}function ke(t,e,n=1){const[s,i]=zl(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ai(r)?parseFloat(r):r}else return Zt(i)?ke(i,e,n+1):i}function Gl(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!Zt(o))return;const r=ke(o,s);r&&i.set(r)});for(const i in e){const o=e[i];if(!Zt(o))continue;const r=ke(o,s);r&&(e[i]=r,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const $l=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gi=t=>$l.has(t),_l=t=>Object.keys(t).some(Gi),gs=t=>t===Tt||t===P,ys=(t,e)=>parseFloat(t.split(", ")[e]),vs=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/);if(i)return ys(i[1],e);{const o=s.match(/^matrix\((.+)\)$/);return o?ys(o[1],t):0}},Kl=new Set(["x","y","z"]),Xl=kt.filter(t=>!Kl.has(t));function Yl(t){const e=[];return Xl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Pt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:vs(4,13),y:vs(5,14)};Pt.translateX=Pt.x;Pt.translateY=Pt.y;const ql=(t,e,n)=>{const s=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:r}=o,a={};r==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Pt[c](s,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=Pt[c](l,o)}),t},Zl=(t,e,n={},s={})=>{e={...e},s={...s};const i=Object.keys(e).filter(Gi);let o=[],r=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],h=At(u);const f=e[l];let d;if(Qt(f)){const p=f.length,m=f[0]===null?1:0;u=f[m],h=At(u);for(let y=m;y=0?window.pageYOffset:null,c=ql(e,t,a);return o.length&&o.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),oe&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:s}}else return{target:e,transitionEnd:s}};function Jl(t,e,n,s){return _l(e)?Zl(t,e,n,s):{target:e,transitionEnd:s}}const Ql=(t,e,n,s)=>{const i=Gl(t,e,s);return e=i.target,s=i.transitionEnd,Jl(t,e,n,s)},je={current:null},$i={current:!1};function tc(){if($i.current=!0,!!oe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>je.current=t.matches;t.addListener(e),e()}else je.current=!1}function ec(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if(j(o))t.addValue(i,o),se(s)&&s.add(i);else if(j(r))t.addValue(i,H(o,{owner:t})),se(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,H(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const xs=new WeakMap,_i=Object.keys(Ot),nc=_i.length,Ps=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sc=ze.length;class ic{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>A.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=le(n),this.isVariantNode=Fs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const f=u[h];a[h]!==void 0&&j(f)&&(f.set(a[h],!1),se(c)&&c.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,xs.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((n,s)=>this.bindToMotionValue(s,n)),$i.current||tc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:je.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xs.delete(this.current),this.projection&&this.projection.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=ht.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&A.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,i,o){let r,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=H(n,{owner:this}),this.addValue(e,s)),s}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,i=typeof s=="string"||typeof s=="object"?(n=Ze(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!j(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ki extends ic{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},i){const o=Ta(s,e||{},this);if(i){xa(this,s,o);const r=Ql(this,s,o,n);n=r.transitionEnd,s=r.target}return{transition:e,transitionEnd:n,...s}}}function rc(t){return window.getComputedStyle(t)}class oc extends Ki{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(ht.has(n)){const s=sn(n);return s&&s.default||0}else{const s=rc(e),i=(Ns(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Fi(e,n)}build(e,n,s,i){_e(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return qe(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){Gs(e,n,s,i)}}class ac extends Ki{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ht.has(n)){const s=sn(n);return s&&s.default||0}return n=$s.has(n)?n:Ue(n),e.getAttribute(n)}measureInstanceViewportBox(){return L()}scrapeMotionValuesFromProps(e,n){return Ks(e,n)}build(e,n,s,i){Xe(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){_s(e,n,s,i)}mount(e){this.isSVGTag=Ye(e.tagName),super.mount(e)}}const lc=(t,e)=>Ge(t)?new ac(e,{enableHardwareAcceleration:!1}):new oc(e,{enableHardwareAcceleration:!0}),cc={layout:{ProjectionNode:zi,MeasureLayout:ki}},uc={...ka,...qr,...Wl,...cc},Nc=or((t,e)=>jr(t,e,uc,lc));function Uc(t,e,n){b.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function hc(t,e,n){var s;if(typeof t=="string"){let i=document;e&&(he(!!e.current),i=e.current),n?((s=n[t])!==null&&s!==void 0||(n[t]=i.querySelectorAll(t)),t=n[t]):t=i.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}const Xt=new WeakMap;let Q;function fc(t,e){if(e){const{inlineSize:n,blockSize:s}=e[0];return{width:n,height:s}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function dc({target:t,contentRect:e,borderBoxSize:n}){var s;(s=Xt.get(t))===null||s===void 0||s.forEach(i=>{i({target:t,contentSize:e,get size(){return fc(t,n)}})})}function pc(t){t.forEach(dc)}function mc(){typeof ResizeObserver>"u"||(Q=new ResizeObserver(pc))}function gc(t,e){Q||mc();const n=hc(t);return n.forEach(s=>{let i=Xt.get(s);i||(i=new Set,Xt.set(s,i)),i.add(e),Q==null||Q.observe(s)}),()=>{n.forEach(s=>{const i=Xt.get(s);i==null||i.delete(e),i!=null&&i.size||Q==null||Q.unobserve(s)})}}const Yt=new Set;let Bt;function yc(){Bt=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};Yt.forEach(n=>n(e))},window.addEventListener("resize",Bt)}function vc(t){return Yt.add(t),Bt||yc(),()=>{Yt.delete(t),!Yt.size&&Bt&&(Bt=void 0)}}function xc(t,e){return typeof t=="function"?vc(t):gc(t,e)}const Pc=50,Ts=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Tc=()=>({time:0,x:Ts(),y:Ts()}),bc={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function bs(t,e,n,s){const i=n[e],{length:o,position:r}=bc[e],a=i.current,l=n.time;i.current=t["scroll"+r],i.scrollLength=t["scroll"+o]-t["client"+o],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=xt(0,i.scrollLength,i.current);const c=s-l;i.velocity=c>Pc?0:nn(i.current-a,c)}function Vc(t,e,n){bs(t,"x",e,n),bs(t,"y",e,n),e.time=n}function Sc(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const Ac={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Ie={start:0,center:.5,end:1};function Vs(t,e,n=0){let s=0;if(Ie[t]!==void 0&&(t=Ie[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const wc=[0,0];function Cc(t,e,n,s){let i=Array.isArray(t)?t:wc,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,Ie[t]?t:"0"]),o=Vs(i[0],n,s),r=Vs(i[1],e),o-r}const Dc={x:0,y:0};function Mc(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Lc(t,e,n){let{offset:s=Ac.All}=n;const{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?Sc(i,t):Dc,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Mc(i),c={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let u=!e[o].interpolate;const h=s.length;for(let f=0;fRc(t,s.target,n),update:i=>{Vc(t,n,i),(s.offset||s.target)&&Lc(t,n,s)},notify:()=>e(n)}}const Ct=new WeakMap,Ss=new WeakMap,Se=new WeakMap,As=t=>t===document.documentElement?window:t;function Bc(t,{container:e=document.documentElement,...n}={}){let s=Se.get(e);s||(s=new Set,Se.set(e,s));const i=Tc(),o=Ec(e,t,i,n);if(s.add(o),!Ct.has(e)){const a=()=>{for(const f of s)f.measure()},l=()=>{for(const f of s)f.update(B.timestamp)},c=()=>{for(const f of s)f.notify()},u=()=>{A.read(a,!1,!0),A.read(l,!1,!0),A.update(c,!1,!0)};Ct.set(e,u);const h=As(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&Ss.set(e,xc(e,u)),h.addEventListener("scroll",u,{passive:!0})}const r=Ct.get(e);return A.read(r,!1,!0),()=>{var a;G(r);const l=Se.get(e);if(!l||(l.delete(o),l.size))return;const c=Ct.get(e);Ct.delete(e),c&&(As(e).removeEventListener("scroll",c),(a=Ss.get(e))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function ws(t,e){Qr(!!(!e||e.current))}const Fc=()=>({scrollX:H(0),scrollY:H(0),scrollXProgress:H(0),scrollYProgress:H(0)});function Wc({container:t,target:e,layoutEffect:n=!0,...s}={}){const i=Xs(Fc);return(n?Ms:b.useEffect)(()=>(ws("target",e),ws("container",t),Bc(({x:r,y:a})=>{i.scrollX.set(r.current),i.scrollXProgress.set(r.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...s,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0})),[t,e,JSON.stringify(s.offset)]),i}export{Uc as a,Nc as m,Wc as u}; +import{r as b,R as Cs}from"./react-INodxC-X.js";const Ds=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),re=b.createContext({}),Ne=b.createContext(null),oe=typeof document<"u",Ms=oe?b.useLayoutEffect:b.useEffect,Ls=b.createContext({strict:!1}),Ue=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Yi="framerAppearId",Rs="data-"+Ue(Yi),Es={skipAnimations:!1,useManualTiming:!1};class mn{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function qi(t){let e=new mn,n=new mn,s=0,i=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&i,f=h?e:n;return c&&r.add(l),f.add(l)&&h&&i&&(s=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c(h[f]=qi(()=>n=!0),h),{}),r=h=>{o[h].process(i)},a=()=>{const h=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(h-i.timestamp,Zi),1),i.timestamp=h,i.isProcessing=!0,Wt.forEach(r),i.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,i.isProcessing||t(a)};return{schedule:Wt.reduce((h,f)=>{const d=o[f];return h[f]=(p,m=!1,y=!1)=>(n||l(),d.schedule(p,m,y)),h},{}),cancel:h=>Wt.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:We,cancel:jc}=Bs(queueMicrotask,!1);function Ji(t,e,n,s){const{visualElement:i}=b.useContext(re),o=b.useContext(Ls),r=b.useContext(Ne),a=b.useContext(Ds).reducedMotion,l=b.useRef();s=s||o.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:i,props:n,presenceContext:r,blockInitialAnimation:r?r.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;b.useInsertionEffect(()=>{c&&c.update(n,r)});const u=b.useRef(!!(n[Rs]&&!window.HandoffComplete));return Ms(()=>{c&&(We.postRender(c.render),u.current&&c.animationState&&c.animationState.animateChanges())}),b.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function mt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Qi(t,e,n){return b.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):mt(n)&&(n.current=s))},[e])}function Ft(t){return typeof t=="string"||Array.isArray(t)}function ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const He=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ze=["initial",...He];function le(t){return ae(t.animate)||ze.some(e=>Ft(t[e]))}function Fs(t){return!!(le(t)||t.variants)}function tr(t,e){if(le(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ft(n)?n:void 0,animate:Ft(s)?s:void 0}}return t.inherit!==!1?e:{}}function er(t){const{initial:e,animate:n}=tr(t,b.useContext(re));return b.useMemo(()=>({initial:e,animate:n}),[gn(e),gn(n)])}function gn(t){return Array.isArray(t)?t.join(" "):t}const yn={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"]},Ot={};for(const t in yn)Ot[t]={isEnabled:e=>yn[t].some(n=>!!e[n])};function nr(t){for(const e in t)Ot[e]={...Ot[e],...t[e]}}const Os=b.createContext({}),ks=b.createContext({}),sr=Symbol.for("motionComponentSymbol");function ir({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&nr(t);function o(a,l){let c;const u={...b.useContext(Ds),...a,layoutId:rr(a)},{isStatic:h}=u,f=er(a),d=s(a,h);if(!h&&oe){f.visualElement=Ji(i,d,u,e);const p=b.useContext(ks),m=b.useContext(Ls).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,m,t,p))}return b.createElement(re.Provider,{value:f},c&&f.visualElement?b.createElement(c,{visualElement:f.visualElement,...u}):null,n(i,a,Qi(d,f.visualElement,l),d,h,f.visualElement))}const r=b.forwardRef(o);return r[sr]=i,r}function rr({layoutId:t}){const e=b.useContext(Os).id;return e&&t!==void 0?e+"-"+t:t}function or(t){function e(s,i={}){return ir(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ar=["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 Ge(t){return typeof t!="string"||t.includes("-")?!1:!!(ar.indexOf(t)>-1||/[A-Z]/.test(t))}const qt={};function lr(t){Object.assign(qt,t)}const kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ht=new Set(kt);function js(t,{layout:e,layoutId:n}){return ht.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!qt[t]||t==="opacity")}const j=t=>!!(t&&t.getVelocity),cr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ur=kt.length;function hr(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,i){let o="";for(let r=0;re=>typeof e=="string"&&e.startsWith(t),Ns=Is("--"),fr=Is("var(--"),Zt=t=>fr(t)&&dr.test(t),dr=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,pr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,et=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},Mt={...Tt,transform:t=>et(0,1,t)},Ht={...Tt,default:1},Lt=t=>Math.round(t*1e5)/1e5,$e=/(-)?([\d]*\.?[\d])+/g,mr=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,gr=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function jt(t){return typeof t=="string"}const It=t=>({test:e=>jt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),J=It("deg"),z=It("%"),P=It("px"),yr=It("vh"),vr=It("vw"),vn={...z,parse:t=>z.parse(t)/100,transform:t=>z.transform(t*100)},xn={...Tt,transform:Math.round},Us={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,size:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,rotate:J,rotateX:J,rotateY:J,rotateZ:J,scale:Ht,scaleX:Ht,scaleY:Ht,scaleZ:Ht,skew:J,skewX:J,skewY:J,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Mt,originX:vn,originY:vn,originZ:P,zIndex:xn,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:xn};function _e(t,e,n,s){const{style:i,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const f=e[h];if(Ns(h)){o[h]=f;continue}const d=Us[h],p=pr(f,d);if(ht.has(h)){if(l=!0,r[h]=p,!u)continue;f!==(d.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=p):i[h]=p}if(e.transform||(l||s?i.transform=hr(t.transform,n,u,s):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:f="50%",originZ:d=0}=a;i.transformOrigin=`${h} ${f} ${d}`}}const Ke=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ws(t,e,n){for(const s in e)!j(e[s])&&!js(s,n)&&(t[s]=e[s])}function xr({transformTemplate:t},e,n){return b.useMemo(()=>{const s=Ke();return _e(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function Pr(t,e,n){const s=t.style||{},i={};return Ws(i,s,t),Object.assign(i,xr(t,e,n)),i}function Tr(t,e,n){const s={},i=Pr(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const br=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","ignoreStrict","viewport"]);function Jt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||br.has(t)}let Hs=t=>!Jt(t);function Vr(t){t&&(Hs=e=>e.startsWith("on")?!Jt(e):t(e))}try{Vr(require("@emotion/is-prop-valid").default)}catch{}function Sr(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Hs(i)||n===!0&&Jt(i)||!e&&!Jt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Pn(t,e,n){return typeof t=="string"?t:P.transform(e+n*t)}function Ar(t,e,n){const s=Pn(e,t.x,t.width),i=Pn(n,t.y,t.height);return`${s} ${i}`}const wr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cr={offset:"strokeDashoffset",array:"strokeDasharray"};function Dr(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?wr:Cr;t[o.offset]=P.transform(-s);const r=P.transform(e),a=P.transform(n);t[o.array]=`${r} ${a}`}function Xe(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,f){if(_e(t,c,u,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Ar(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&Dr(d,r,a,l,!1)}const zs=()=>({...Ke(),attrs:{}}),Ye=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Mr(t,e,n,s){const i=b.useMemo(()=>{const o=zs();return Xe(o,e,{enableHardwareAcceleration:!1},Ye(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ws(o,t.style,t),i.style={...o,...i.style}}return i}function Lr(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Ge(n)?Mr:Tr)(s,o,r,n),c=Sr(s,typeof n=="string",t),u=n!==b.Fragment?{...c,...l,ref:i}:{},{children:h}=s,f=b.useMemo(()=>j(h)?h.get():h,[h]);return b.createElement(n,{...u,children:f})}}function Gs(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const $s=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"]);function _s(t,e,n,s){Gs(t,e,void 0,s);for(const i in e.attrs)t.setAttribute($s.has(i)?i:Ue(i),e.attrs[i])}function qe(t,e){const{style:n}=t,s={};for(const i in n)(j(n[i])||e.style&&j(e.style[i])||js(i,t))&&(s[i]=n[i]);return s}function Ks(t,e){const n=qe(t,e);for(const s in t)if(j(t[s])||j(e[s])){const i=kt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[i]=t[s]}return n}function Ze(t,e,n,s={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),e}function Xs(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const Qt=t=>Array.isArray(t),Rr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Er=t=>Qt(t)?t[t.length-1]||0:t;function $t(t){const e=j(t)?t.get():t;return Rr(e)?e.toValue():e}function Br({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:Fr(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Ys=t=>(e,n)=>{const s=b.useContext(re),i=b.useContext(Ne),o=()=>Br(t,e,s,i);return n?o():Xs(o)};function Fr(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=$t(o[f]);let{initial:r,animate:a}=t;const l=le(t),c=Fs(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!ae(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const p=Ze(t,d);if(!p)return;const{transitionEnd:m,transition:y,...T}=p;for(const v in T){let g=T[v];if(Array.isArray(g)){const x=u?g.length-1:0;g=g[x]}g!==null&&(i[v]=g)}for(const v in m)i[v]=m[v]}),i}const R=t=>t,{schedule:A,cancel:G,state:B,steps:de}=Bs(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!0),Or={useVisualState:Ys({scrapeMotionValuesFromProps:Ks,createRenderState:zs,onMount:(t,e,{renderState:n,latestValues:s})=>{A.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),A.render(()=>{Xe(n,s,{enableHardwareAcceleration:!1},Ye(e.tagName),t.transformTemplate),_s(e,n)})}})},kr={useVisualState:Ys({scrapeMotionValuesFromProps:qe,createRenderState:Ke})};function jr(t,{forwardMotionProps:e=!1},n,s){return{...Ge(t)?Or:kr,preloadedFeatures:n,useRender:Lr(e),createVisualElement:s,Component:t}}function K(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const qs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ce(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Ir=t=>e=>qs(e)&&t(e,ce(e));function X(t,e,n,s){return K(t,e,Ir(n),s)}const Nr=(t,e)=>n=>e(t(n)),Y=(...t)=>t.reduce(Nr);function Zs(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Tn=Zs("dragHorizontal"),bn=Zs("dragVertical");function Js(t){let e=!1;if(t==="y")e=bn();else if(t==="x")e=Tn();else{const n=Tn(),s=bn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Qs(){const t=Js(!0);return t?(t(),!1):!0}class st{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Vn(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),i=(o,r)=>{if(o.pointerType==="touch"||Qs())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[s]&&A.update(()=>a[s](o,r))};return X(t.current,n,i,{passive:!t.getProps()[s]})}class Ur extends st{mount(){this.unmount=Y(Vn(this.node,!0),Vn(this.node,!1))}unmount(){}}class Wr extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=Y(K(this.node.current,"focus",()=>this.onFocus()),K(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ti=(t,e)=>e?t===e?!0:ti(t,e.parentElement):!1;function pe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ce(n))}class Hr extends st{constructor(){super(...arguments),this.removeStartListeners=R,this.removeEndListeners=R,this.removeAccessibleListeners=R,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=X(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps();A.update(()=>{!h&&!ti(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(s.onTap||s.onPointerUp)}),r=X(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=Y(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||pe("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&A.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=K(this.node.current,"keyup",r),pe("down",(a,l)=>{this.startPress(a,l)})},n=K(this.node.current,"keydown",e),s=()=>{this.isPressing&&pe("cancel",(o,r)=>this.cancelPress(o,r))},i=K(this.node.current,"blur",s);this.removeAccessibleListeners=Y(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&A.update(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qs()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&A.update(()=>s(e,n))}mount(){const e=this.node.getProps(),n=X(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=K(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Y(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ae=new WeakMap,me=new WeakMap,zr=t=>{const e=Ae.get(t.target);e&&e(t)},Gr=t=>{t.forEach(zr)};function $r({root:t,...e}){const n=t||document;me.has(n)||me.set(n,{});const s=me.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Gr,{root:t,...e})),s[i]}function _r(t,e,n){const s=$r(e);return Ae.set(t,n),s.observe(t),()=>{Ae.delete(t),s.unobserve(t)}}const Kr={some:0,all:1};class Xr extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Kr[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return _r(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Yr(e,n))&&this.startObserver()}unmount(){}}function Yr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const qr={inView:{Feature:Xr},tap:{Feature:Hr},focus:{Feature:Wr},hover:{Feature:Ur}};function ei(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;se[s]=n.get()),e}function Jr(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function ue(t,e,n){const s=t.getProps();return Ze(s,e,n!==void 0?n:s.custom,Zr(t),Jr(t))}let Qr=R,he=R;const ct=t=>t*1e3,q=t=>t/1e3,to={current:!1},ni=t=>Array.isArray(t)&&typeof t[0]=="number";function si(t){return!!(!t||typeof t=="string"&&ii[t]||ni(t)||Array.isArray(t)&&t.every(si))}const Dt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ii={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dt([0,.65,.55,1]),circOut:Dt([.55,0,1,.45]),backIn:Dt([.31,.01,.66,-.59]),backOut:Dt([.33,1.53,.69,.99])};function ri(t){if(t)return ni(t)?Dt(t):Array.isArray(t)?t.map(ri):ii[t]}function eo(t,e,n,{delay:s=0,duration:i,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=ri(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}function no(t,{repeat:e,repeatType:n="loop"}){const s=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[s]}const oi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,so=1e-7,io=12;function ro(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=oi(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>so&&++aro(o,0,1,t,n);return o=>o===0||o===1?o:oi(i(o),e,s)}const oo=Nt(.42,0,1,1),ao=Nt(0,0,.58,1),ai=Nt(.42,0,.58,1),lo=t=>Array.isArray(t)&&typeof t[0]!="number",li=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),Je=t=>1-Math.sin(Math.acos(t)),ui=ci(Je),co=li(Je),hi=Nt(.33,1.53,.69,.99),Qe=ci(hi),uo=li(Qe),ho=t=>(t*=2)<1?.5*Qe(t):.5*(2-Math.pow(2,-10*(t-1))),fo={linear:R,easeIn:oo,easeInOut:ai,easeOut:ao,circIn:Je,circInOut:co,circOut:ui,backIn:Qe,backInOut:uo,backOut:hi,anticipate:ho},Sn=t=>{if(Array.isArray(t)){he(t.length===4);const[e,n,s,i]=t;return Nt(e,n,s,i)}else if(typeof t=="string")return fo[t];return t},xt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},D=(t,e,n)=>t+(e-t)*n;function ge(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function po({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ge(l,a,t+1/3),o=ge(l,a,t),r=ge(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}const tn=(t,e)=>n=>!!(jt(n)&&gr.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),fi=(t,e,n)=>s=>{if(!jt(s))return s;const[i,o,r,a]=s.match($e);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},mo=t=>et(0,255,t),ye={...Tt,transform:t=>Math.round(mo(t))},lt={test:tn("rgb","red"),parse:fi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(n)+", "+Lt(Mt.transform(s))+")"};function go(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const we={test:tn("#"),parse:go,transform:lt.transform},gt={test:tn("hsl","hue"),parse:fi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+z.transform(Lt(e))+", "+z.transform(Lt(n))+", "+Lt(Mt.transform(s))+")"},ve=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},yo=[we,lt,gt],vo=t=>yo.find(e=>e.test(t));function An(t){const e=vo(t);let n=e.parse(t);return e===gt&&(n=po(n)),n}const wn=(t,e)=>{const n=An(t),s=An(e),i={...n};return o=>(i.red=ve(n.red,s.red,o),i.green=ve(n.green,s.green,o),i.blue=ve(n.blue,s.blue,o),i.alpha=D(n.alpha,s.alpha,o),lt.transform(i))},O={test:t=>lt.test(t)||we.test(t)||gt.test(t),parse:t=>lt.test(t)?lt.parse(t):gt.test(t)?gt.parse(t):we.parse(t),transform:t=>jt(t)?t:t.hasOwnProperty("red")?lt.transform(t):gt.transform(t)};function xo(t){var e,n;return isNaN(t)&&jt(t)&&(((e=t.match($e))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(mr))===null||n===void 0?void 0:n.length)||0)>0}const di="number",pi="color",Po="var",To="var(",Cn="${}",Dn=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function te(t){const e=t.toString(),n=e.match(Dn)||[],s=[],i={color:[],number:[],var:[]},o=[];for(let l=0;l{let o="";for(let r=0;rtypeof t=="number"?0:t;function Vo(t){const e=mi(t);return gi(t)(e.map(bo))}const nt={test:xo,parse:mi,createTransformer:gi,getAnimatableNone:Vo};function Ce(t,e){return n=>n>0?e:t}function So(t,e){return n=>D(t,e,n)}function en(t){return typeof t=="number"?So:typeof t=="string"?Zt(t)?Ce:O.test(t)?wn:Co:Array.isArray(t)?yi:typeof t=="object"?O.test(t)?wn:Ao:Ce}function yi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>en(o)(o,e[r]));return o=>{for(let r=0;r{for(const o in s)n[o]=s[o](i);return n}}function wo(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o{const n=nt.createTransformer(e),s=te(t),i=te(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Y(yi(wo(s,i),i.values),n):Ce(t,e)};function vi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?D(t,e,n):en(t)(t,e)}function Do(t,e,n){const s=[],i=n||vi,o=t.length-1;for(let r=0;re[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=Do(e,s,i),a=r.length,l=c=>{let u=0;if(a>1)for(;ul(et(t[0],t[o-1],c)):l}function Mo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=xt(0,e,s);t.push(D(n,1,i))}}function Pi(t){const e=[0];return Mo(e,t.length-1),e}function Lo(t,e){return t.map(n=>n*e)}function Ro(t,e){return t.map(()=>e||ai).splice(0,t.length-1)}function ee({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=lo(s)?s.map(Sn):Sn(s),o={done:!1,value:e[0]},r=Lo(n&&n.length===e.length?n:Pi(e),t),a=xi(r,e,{ease:Array.isArray(i)?i:Ro(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function nn(t,e){return e?t*(1e3/e):0}const Eo=5;function Ti(t,e,n){const s=Math.max(e-Eo,0);return nn(n-t(s),e-s)}const xe=.001,Bo=.01,Fo=10,Oo=.05,ko=1;function jo({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o,r=1-e;r=et(Oo,ko,r),t=et(Bo,Fo,q(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=De(c,r),p=Math.exp(-h);return xe-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=De(Math.pow(c,2),r);return(-i(c)+xe>0?-1:1)*((f-d)*p)/m}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-xe+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=No(i,o,a);if(t=ct(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Io=12;function No(t,e,n){let s=n;for(let i=1;it[n]!==void 0)}function Ho(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Mn(t,Wo)&&Mn(t,Uo)){const n=jo(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function bi({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:f}=Ho({...s,velocity:-q(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*c)),m=o-i,y=q(Math.sqrt(a/c)),T=Math.abs(m)<5;n||(n=T?.01:2),e||(e=T?.005:.5);let v;if(p<1){const g=De(y,p);v=x=>{const V=Math.exp(-p*y*x);return o-V*((d+p*y*m)/g*Math.sin(g*x)+m*Math.cos(g*x))}}else if(p===1)v=g=>o-Math.exp(-y*g)*(m+(d+y*m)*g);else{const g=y*Math.sqrt(p*p-1);v=x=>{const V=Math.exp(-p*y*x),E=Math.min(g*x,300);return o-V*((d+p*y*m)*Math.sinh(E)+g*m*Math.cosh(E))/g}}return{calculatedDuration:f&&u||null,next:g=>{const x=v(g);if(f)r.done=g>=u;else{let V=d;g!==0&&(p<1?V=Ti(v,g,x):V=0);const E=Math.abs(V)<=n,w=Math.abs(o-x)<=e;r.done=E&&w}return r.value=r.done?o:x,r}}}function Ln({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&Sl,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)-m*Math.exp(-S/s),g=S=>T+v(S),x=S=>{const M=v(S),$=g(S);f.done=Math.abs(M)<=c,f.value=f.done?T:$};let V,E;const w=S=>{d(f.value)&&(V=S,E=bi({keyframes:[f.value,p(f.value)],velocity:Ti(g,S,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:S=>{let M=!1;return!E&&V===void 0&&(M=!0,x(S),w(S)),V!==void 0&&S>V?E.next(S-V):(!M&&x(S),f)}}}let _t;function zo(){_t=void 0}const ut={now:()=>(_t===void 0&&ut.set(B.isProcessing||Es.useManualTiming?B.timestamp:performance.now()),_t),set:t=>{_t=t,queueMicrotask(zo)}},Go=t=>{const e=({timestamp:n})=>t(n);return{start:()=>A.update(e,!0),stop:()=>G(e),now:()=>B.isProcessing?B.timestamp:ut.now()}},Rn=2e4;function En(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=Rn?1/0:e}const $o={decay:Ln,inertia:Ln,tween:ee,keyframes:ee,spring:bi},_o=t=>t/100;function ne({autoplay:t=!0,delay:e=0,driver:n=Go,keyframes:s,type:i="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:h,...f}){let d=1,p=!1,m,y;const T=()=>{y=new Promise(C=>{m=C})};T();let v;const g=$o[i]||ee;let x;g!==ee&&typeof s[0]!="number"&&(x=Y(_o,vi(s[0],s[1])),s=[0,100]);const V=g({...f,keyframes:s});let E;a==="mirror"&&(E=g({...f,keyframes:[...s].reverse(),velocity:-(f.velocity||0)}));let w="idle",S=null,M=null,$=null;V.calculatedDuration===null&&o&&(V.calculatedDuration=En(V));const{calculatedDuration:ft}=V;let W=1/0,_=1/0;ft!==null&&(W=ft+r,_=W*(o+1)-r);let k=0;const dt=C=>{if(M===null)return;d>0&&(M=Math.min(M,C)),d<0&&(M=Math.min(C-_/d,M)),S!==null?k=S:k=Math.round(C-M)*d;const Vt=k-e*(d>=0?1:-1),hn=d>=0?Vt<0:Vt>_;k=Math.max(Vt,0),w==="finished"&&S===null&&(k=_);let fn=k,dn=V;if(o){const fe=Math.min(k,_)/W;let Ut=Math.floor(fe),it=fe%1;!it&&fe>=1&&(it=1),it===1&&Ut--,Ut=Math.min(Ut,o+1),!!(Ut%2)&&(a==="reverse"?(it=1-it,r&&(it-=r/W)):a==="mirror"&&(dn=E)),fn=et(0,1,it)*W}const St=hn?{done:!1,value:s[0]}:dn.next(fn);x&&(St.value=x(St.value));let{done:pn}=St;!hn&&ft!==null&&(pn=d>=0?k>=_:k<=0);const Xi=S===null&&(w==="finished"||w==="running"&&pn);return h&&h(St.value),Xi&&bt(),St},F=()=>{v&&v.stop(),v=void 0},Z=()=>{w="idle",F(),m(),T(),M=$=null},bt=()=>{w="finished",u&&u(),F(),m()},pt=()=>{if(p)return;v||(v=n(dt));const C=v.now();l&&l(),S!==null?M=C-S:(!M||w==="finished")&&(M=C),w==="finished"&&T(),$=M,S=null,w="running",v.start()};t&&pt();const un={then(C,Vt){return y.then(C,Vt)},get time(){return q(k)},set time(C){C=ct(C),k=C,S!==null||!v||d===0?S=C:M=v.now()-C/d},get duration(){const C=V.calculatedDuration===null?En(V):V.calculatedDuration;return q(C)},get speed(){return d},set speed(C){C===d||!v||(d=C,un.time=q(k))},get state(){return w},play:pt,pause:()=>{w="paused",S=k},stop:()=>{p=!0,w!=="idle"&&(w="idle",c&&c(),Z())},cancel:()=>{$!==null&&dt($),Z()},complete:()=>{w="finished"},sample:C=>(M=0,dt(C))};return un}function Ko(t){let e;return()=>(e===void 0&&(e=t()),e)}const Xo=Ko(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yo=new Set(["opacity","clipPath","filter","transform"]),zt=10,qo=2e4,Zo=(t,e)=>e.type==="spring"||t==="backgroundColor"||!si(e.ease);function Jo(t,e,{onUpdate:n,onComplete:s,...i}){if(!(Xo()&&Yo.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let r=!1,a,l,c=!1;const u=()=>{l=new Promise(g=>{a=g})};u();let{keyframes:h,duration:f=300,ease:d,times:p}=i;if(Zo(e,i)){const g=ne({...i,repeat:0,delay:0});let x={done:!1,value:h[0]};const V=[];let E=0;for(;!x.done&&E{c=!1,m.cancel()},T=()=>{c=!0,A.update(y),a(),u()};return m.onfinish=()=>{c||(t.set(no(h,i)),s&&s(),T())},{then(g,x){return l.then(g,x)},attachTimeline(g){return m.timeline=g,m.onfinish=null,R},get time(){return q(m.currentTime||0)},set time(g){m.currentTime=ct(g)},get speed(){return m.playbackRate},set speed(g){m.playbackRate=g},get duration(){return q(f)},play:()=>{r||(m.play(),G(y))},pause:()=>m.pause(),stop:()=>{if(r=!0,m.playState==="idle")return;const{currentTime:g}=m;if(g){const x=ne({...i,autoplay:!1});t.setWithVelocity(x.sample(g-zt).value,x.sample(g).value,zt)}T()},complete:()=>{c||m.finish()},cancel:T}}function Qo({keyframes:t,delay:e,onUpdate:n,onComplete:s}){const i=()=>(n&&n(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:R,pause:R,stop:R,then:o=>(o(),Promise.resolve()),cancel:R,complete:R});return e?ne({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const ta={type:"spring",stiffness:500,damping:25,restSpeed:10},ea=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),na={type:"keyframes",duration:.8},sa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ia=(t,{keyframes:e})=>e.length>2?na:ht.has(t)?t.startsWith("scale")?ea(e[1]):ta:sa,Me=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nt.test(e)||e==="0")&&!e.startsWith("url(")),ra=new Set(["brightness","contrast","saturate","opacity"]);function oa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match($e)||[];if(!s)return t;const i=n.replace(s,"");let o=ra.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const aa=/([a-z-]*)\(.*?\)/g,Le={...nt,getAnimatableNone:t=>{const e=t.match(aa);return e?e.map(oa).join(" "):t}},la={...Us,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:Le,WebkitFilter:Le},sn=t=>la[t];function Vi(t,e){let n=sn(t);return n!==Le&&(n=nt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Si=t=>/^0[^.\s]+$/.test(t);function ca(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Si(t)}function ua(t,e,n,s){const i=Me(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const r=s.from!==void 0?s.from:t.get();let a;const l=[];for(let c=0;ci=>{const o=rn(s,t)||{},r=o.delay||s.delay||0;let{elapsed:a=0}=s;a=a-ct(r);const l=ua(e,t,n,o),c=l[0],u=l[l.length-1],h=Me(t,c),f=Me(t,u);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(ha(o)||(d={...d,...ia(t,d)}),d.duration&&(d.duration=ct(d.duration)),d.repeatDelay&&(d.repeatDelay=ct(d.repeatDelay)),!h||!f||to.current||o.type===!1||Es.skipAnimations)return Qo(d);if(!s.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=Jo(e,t,d);if(p)return p}return ne(d)};function se(t){return!!(j(t)&&t.add)}const Ai=t=>/^\-?\d*\.?\d+$/.test(t);function an(t,e){t.indexOf(e)===-1&&t.push(e)}function ln(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class cn{constructor(){this.subscriptions=[]}add(e){return an(this.subscriptions,e),()=>ln(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o!isNaN(parseFloat(t));class da{constructor(e,n={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=ut.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=fa(this.current),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ut.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new cn);const s=this.events[e].add(n);return e==="change"?()=>{s(),A.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Bn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Bn);return nn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function H(t,e){return new da(t,e)}const wi=t=>e=>e.test(t),pa={test:t=>t==="auto",parse:t=>t},Ci=[Tt,P,z,J,vr,yr,pa],At=t=>Ci.find(wi(t)),ma=[...Ci,O,nt],ga=t=>ma.find(wi(t));function ya(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,H(n))}function va(t,e){const n=ue(t,e);let{transitionEnd:s={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const r in o){const a=Er(o[r]);ya(t,r,a)}}function xa(t,e,n){var s,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),r=o.length;if(r)for(let a=0;al.remove(h))),c.push(y)}return r&&Promise.all(c).then(()=>{r&&va(t,r)}),c}function Re(t,e,n={}){const s=ue(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Di(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return Sa(t,e,c+l,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Sa(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(Aa).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(Re(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function Aa(t,e){return t.sortNodePosition(e)}function wa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Re(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Re(t,e,n);else{const i=typeof e=="function"?ue(t,e,n.custom):e;s=Promise.all(Di(t,i,n))}return s.then(()=>t.notify("AnimationComplete",e))}const Ca=[...He].reverse(),Da=He.length;function Ma(t){return e=>Promise.all(e.map(({animation:n,options:s})=>wa(t,n,s)))}function La(t){let e=Ma(t);const n=Ea();let s=!0;const i=(l,c)=>{const u=ue(t,c);if(u){const{transition:h,transitionEnd:f,...d}=u;l={...l,...d,...f}}return l};function o(l){e=l(t)}function r(l,c){const u=t.getProps(),h=t.getVariantContext(!0)||{},f=[],d=new Set;let p={},m=1/0;for(let T=0;Tm&&V,$=!1;const ft=Array.isArray(x)?x:[x];let W=ft.reduce(i,{});E===!1&&(W={});const{prevResolvedValues:_={}}=g,k={..._,...W},dt=F=>{M=!0,d.has(F)&&($=!0,d.delete(F)),g.needsAnimating[F]=!0};for(const F in k){const Z=W[F],bt=_[F];if(p.hasOwnProperty(F))continue;let pt=!1;Qt(Z)&&Qt(bt)?pt=!ei(Z,bt):pt=Z!==bt,pt?Z!==void 0?dt(F):d.add(F):Z!==void 0&&d.has(F)?dt(F):g.protectedKeys[F]=!0}g.prevProp=x,g.prevResolvedValues=W,g.isActive&&(p={...p,...W}),s&&t.blockInitialAnimation&&(M=!1),M&&(!w||$)&&f.push(...ft.map(F=>({animation:F,options:{type:v,...l}})))}if(d.size){const T={};d.forEach(v=>{const g=t.getBaseTarget(v);g!==void 0&&(T[v]=g)}),f.push({animation:T})}let y=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(f):Promise.resolve()}function a(l,c,u){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=r(u,l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n}}function Ra(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ei(e,t):!1}function rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ea(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class Ba extends st{constructor(e){super(e),e.animationState||(e.animationState=La(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ae(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Fa=0;class Oa extends st{constructor(){super(...arguments),this.id=Fa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:s}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:s??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ka={animation:{Feature:Ba},exit:{Feature:Oa}},Fn=(t,e)=>Math.abs(t-e);function ja(t,e){const n=Fn(t.x,e.x),s=Fn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Mi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Te(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ja(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=B;this.history.push({...p,timestamp:m});const{onStart:y,onMove:T}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Pe(f,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Te(h.type==="pointercancel"?this.lastMoveEventInfo:Pe(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!qs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=ce(e),a=Pe(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=B;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Te(a,this.history)),this.removeListeners=Y(X(this.contextWindow,"pointermove",this.handlePointerMove),X(this.contextWindow,"pointerup",this.handlePointerUp),X(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),G(this.updatePoint)}}function Pe(t,e){return e?{point:e(t.point)}:t}function On(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Te({point:t},e){return{point:t,delta:On(t,Li(e)),offset:On(t,Ia(e)),velocity:Na(e,.1)}}function Ia(t){return t[0]}function Li(t){return t[t.length-1]}function Na(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Li(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ct(e)));)n--;if(!s)return{x:0,y:0};const o=q(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function I(t){return t.max-t.min}function Ee(t,e=0,n=.01){return Math.abs(t-e)<=n}function kn(t,e,n,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=I(n)/I(e),(Ee(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(Ee(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Rt(t,e,n,s){kn(t.x,e.x,n.x,s?s.originX:void 0),kn(t.y,e.y,n.y,s?s.originY:void 0)}function jn(t,e,n){t.min=n.min+e.min,t.max=t.min+I(e)}function Ua(t,e,n){jn(t.x,e.x,n.x),jn(t.y,e.y,n.y)}function In(t,e,n){t.min=e.min-n.min,t.max=t.min+I(e)}function Et(t,e,n){In(t.x,e.x,n.x),In(t.y,e.y,n.y)}function Wa(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?D(n,t,s.max):Math.min(t,n)),t}function Nn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ha(t,{top:e,left:n,bottom:s,right:i}){return{x:Nn(t.x,n,i),y:Nn(t.y,e,s)}}function Un(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=xt(e.min,e.max-s,t.min):s>i&&(n=xt(t.min,t.max-i,e.min)),et(0,1,n)}function $a(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Be=.35;function _a(t=Be){return t===!1?t=0:t===!0&&(t=Be),{x:Wn(t,"left","right"),y:Wn(t,"top","bottom")}}function Wn(t,e,n){return{min:Hn(t,e),max:Hn(t,n)}}function Hn(t,e){return typeof t=="number"?t:t[e]||0}const zn=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:zn(),y:zn()}),Gn=()=>({min:0,max:0}),L=()=>({x:Gn(),y:Gn()});function U(t){return[t("x"),t("y")]}function Ri({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ka({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Xa(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function be(t){return t===void 0||t===1}function Fe({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function ot(t){return Fe(t)||Ei(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Ei(t){return $n(t.x)||$n(t.y)}function $n(t){return t&&t!=="0%"}function ie(t,e,n){const s=t-n,i=e*s;return n+i}function _n(t,e,n,s,i){return i!==void 0&&(t=ie(t,i,s)),ie(t,n,s)+e}function Oe(t,e=0,n=1,s,i){t.min=_n(t.min,e,n,s,i),t.max=_n(t.max,e,n,s,i)}function Bi(t,{x:e,y:n}){Oe(t.x,e.translate,e.scale,e.originPoint),Oe(t.y,n.translate,n.scale,n.originPoint)}function Ya(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function tt(t,e){t.min=t.min+e,t.max=t.max+e}function Xn(t,e,[n,s,i]){const o=e[i]!==void 0?e[i]:.5,r=D(t.min,t.max,o);Oe(t,e[n],e[s],r,e.scale)}const qa=["x","scaleX","originX"],Za=["y","scaleY","originY"];function vt(t,e){Xn(t.x,e,qa),Xn(t.y,e,Za)}function Fi(t,e){return Ri(Xa(t.getBoundingClientRect(),e))}function Ja(t,e,n){const s=Fi(t,n),{scroll:i}=e;return i&&(tt(s.x,i.offset.x),tt(s.y,i.offset.y)),s}const Oi=({current:t})=>t?t.ownerDocument.defaultView:null,Qa=new WeakMap;class tl{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ce(u,"page").point)},o=(u,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Js(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(y=>{let T=this.getAxisMotionValue(y).get()||0;if(z.test(T)){const{projection:v}=this.visualElement;if(v&&v.layout){const g=v.layout.layoutBox[y];g&&(T=I(g)*(parseFloat(T)/100))}}this.originPoint[y]=T}),p&&A.update(()=>p(u,h),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=el(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),m&&m(u,h)},a=(u,h)=>this.stop(u,h),l=()=>U(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Mi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Oi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&A.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Gt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Wa(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&mt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ha(i.layoutBox,n):this.constraints=!1,this.elastic=_a(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(r=>{this.getAxisMotionValue(r)&&(this.constraints[r]=$a(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!mt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ja(s,i.root,this.visualElement.getTransformPagePoint());let r=za(i.layout.layoutBox,o);if(n){const a=n(Ka(r));this.hasMutatedConstraints=!!a,a&&(r=Ri(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=U(u=>{if(!Gt(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(on(e,s,0,n))}stopAnimation(){U(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){U(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){U(n=>{const{drag:s}=this.getProps();if(!Gt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-D(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!mt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};U(r=>{const a=this.getAxisMotionValue(r);if(a){const l=a.get();i[r]=Ga({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),U(r=>{if(!Gt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(D(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;Qa.set(this.visualElement,this);const e=this.visualElement.current,n=X(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();mt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),s();const r=K(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(U(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Be,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Gt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function el(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class nl extends st{constructor(e){super(e),this.removeGroupControls=R,this.removeListeners=R,this.controls=new tl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yn=t=>(e,n)=>{t&&A.update(()=>t(e,n))};class sl extends st{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(e){this.session=new Mi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Yn(e),onStart:Yn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&A.update(()=>i(o,r))}}}mount(){this.removePointerDownListener=X(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function il(){const t=b.useContext(Ne);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=b.useId();return b.useEffect(()=>s(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const wt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=qn(t,e.target.x),s=qn(t,e.target.y);return`${n}% ${s}%`}},rl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=nt.parse(t);if(i.length>5)return s;const o=nt.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=D(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};class ol extends Cs.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;lr(al),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||A.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),We.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ki(t){const[e,n]=il(),s=b.useContext(Os);return Cs.createElement(ol,{...t,layoutGroup:s,switchLayoutGroup:b.useContext(ks),isPresent:e,safeToRemove:n})}const al={borderRadius:{...wt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wt,borderTopRightRadius:wt,borderBottomLeftRadius:wt,borderBottomRightRadius:wt,boxShadow:rl},ji=["TopLeft","TopRight","BottomLeft","BottomRight"],ll=ji.length,Zn=t=>typeof t=="string"?parseFloat(t):t,Jn=t=>typeof t=="number"||P.test(t);function cl(t,e,n,s,i,o){i?(t.opacity=D(0,n.opacity!==void 0?n.opacity:1,ul(s)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,hl(s))):o&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;rse?1:n(xt(t,e,s))}function ts(t,e){t.min=e.min,t.max=e.max}function N(t,e){ts(t.x,e.x),ts(t.y,e.y)}function es(t,e,n,s,i){return t-=e,t=ie(t,1/n,s),i!==void 0&&(t=ie(t,1/i,s)),t}function fl(t,e=0,n=1,s=.5,i,o=t,r=t){if(z.test(e)&&(e=parseFloat(e),e=D(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=D(o.min,o.max,s);t===o&&(a-=e),t.min=es(t.min,e,n,a,i),t.max=es(t.max,e,n,a,i)}function ns(t,e,[n,s,i],o,r){fl(t,e[n],e[s],e[i],e.scale,o,r)}const dl=["x","scaleX","originX"],pl=["y","scaleY","originY"];function ss(t,e,n,s){ns(t.x,e,dl,n?n.x:void 0,s?s.x:void 0),ns(t.y,e,pl,n?n.y:void 0,s?s.y:void 0)}function is(t){return t.translate===0&&t.scale===1}function Ni(t){return is(t.x)&&is(t.y)}function ml(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ui(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rs(t){return I(t.x)/I(t.y)}class gl{constructor(){this.members=[]}add(e){an(this.members,e),e.scheduleRender()}remove(e){if(ln(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function os(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(s=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(s+=`rotate(${l}deg) `),c&&(s+=`rotateX(${c}deg) `),u&&(s+=`rotateY(${u}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return(r!==1||a!==1)&&(s+=`scale(${r}, ${a})`),s||"none"}const yl=(t,e)=>t.depth-e.depth;class vl{constructor(){this.children=[],this.isDirty=!1}add(e){an(this.children,e),this.isDirty=!0}remove(e){ln(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yl),this.isDirty=!1,this.children.forEach(e)}}function xl(t,e){const n=ut.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(G(s),t(o-e))};return A.read(s,!0),()=>G(s)}function Pl(t){window.MotionDebug&&window.MotionDebug.record(t)}function Tl(t){return t instanceof SVGElement&&t.tagName!=="svg"}function bl(t,e,n){const s=j(t)?t:H(t);return s.start(on("",s,e,n)),s.animation}const as=["","X","Y","Z"],Vl={visibility:"hidden"},ls=1e3;let Sl=0;const at={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Wi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Sl++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,at.totalNodes=at.resolvedTargetDeltas=at.recalculatedProjection=0,this.nodes.forEach(Cl),this.nodes.forEach(El),this.nodes.forEach(Bl),this.nodes.forEach(Dl),Pl(at)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=xl(f,250),Kt.hasAnimatedSinceResize&&(Kt.hasAnimatedSinceResize=!1,this.nodes.forEach(us))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Il,{onLayoutAnimationStart:y,onLayoutAnimationComplete:T}=u.getProps(),v=!this.targetLayout||!Ui(this.targetLayout,p)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const x={...rn(m,"layout"),onPlay:y,onComplete:T};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else f||us(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,G(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.forEach(Fl),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(Ml),this.sharedNodes.forEach(Ol)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const V=x/1e3;hs(h.x,r.x,V),hs(h.y,r.y,V),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Et(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kl(this.relativeTarget,this.relativeTargetOrigin,f,V),g&&ml(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=L()),N(g,this.relativeTarget)),m&&(this.animationValues=u,cl(u,c,this.latestValues,V,v,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(G(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.update(()=>{Kt.hasAnimatedSinceResize=!0,this.currentAnimation=bl(0,ls,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ls),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Hi(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=I(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=I(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}N(a,l),vt(a,u),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new gl),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cs),this.root.sharedNodes.clear()}}}function Al(t){t.updateLayout()}function wl(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(f);f.min=s[h].min,f.max=f.min+d}):Hi(o,n.layoutBox,s)&&U(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=I(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=yt();Rt(a,s,n.layoutBox);const l=yt();r?Rt(l,t.applyTransform(i,!0),n.measuredBox):Rt(l,s,n.layoutBox);const c=!Ni(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=L();Et(p,n.layoutBox,f.layoutBox);const m=L();Et(m,s,d.layoutBox),Ui(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Cl(t){at.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Dl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ml(t){t.clearSnapshot()}function cs(t){t.clearMeasurements()}function Ll(t){t.isLayoutDirty=!1}function Rl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function us(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function El(t){t.resolveTargetDelta()}function Bl(t){t.calcProjection()}function Fl(t){t.resetRotation()}function Ol(t){t.removeLeadSnapshot()}function hs(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function fs(t,e,n,s){t.min=D(e.min,n.min,s),t.max=D(e.max,n.max,s)}function kl(t,e,n,s){fs(t.x,e.x,n.x,s),fs(t.y,e.y,n.y,s)}function jl(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Il={duration:.45,ease:[.4,0,.1,1]},ds=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ps=ds("applewebkit/")&&!ds("chrome/")?Math.round:R;function ms(t){t.min=ps(t.min),t.max=ps(t.max)}function Nl(t){ms(t.x),ms(t.y)}function Hi(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ee(rs(e),rs(n),.2)}const Ul=Wi({attachResizeListener:(t,e)=>K(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ve={current:void 0},zi=Wi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ve.current){const t=new Ul({});t.mount(window),t.setOptions({layoutScroll:!0}),Ve.current=t}return Ve.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Wl={pan:{Feature:sl},drag:{Feature:nl,ProjectionNode:zi,MeasureLayout:ki}},Hl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zl(t){const e=Hl.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}function ke(t,e,n=1){const[s,i]=zl(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ai(r)?parseFloat(r):r}else return Zt(i)?ke(i,e,n+1):i}function Gl(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!Zt(o))return;const r=ke(o,s);r&&i.set(r)});for(const i in e){const o=e[i];if(!Zt(o))continue;const r=ke(o,s);r&&(e[i]=r,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const $l=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Gi=t=>$l.has(t),_l=t=>Object.keys(t).some(Gi),gs=t=>t===Tt||t===P,ys=(t,e)=>parseFloat(t.split(", ")[e]),vs=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/);if(i)return ys(i[1],e);{const o=s.match(/^matrix\((.+)\)$/);return o?ys(o[1],t):0}},Kl=new Set(["x","y","z"]),Xl=kt.filter(t=>!Kl.has(t));function Yl(t){const e=[];return Xl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Pt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:vs(4,13),y:vs(5,14)};Pt.translateX=Pt.x;Pt.translateY=Pt.y;const ql=(t,e,n)=>{const s=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:r}=o,a={};r==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Pt[c](s,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=Pt[c](l,o)}),t},Zl=(t,e,n={},s={})=>{e={...e},s={...s};const i=Object.keys(e).filter(Gi);let o=[],r=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],h=At(u);const f=e[l];let d;if(Qt(f)){const p=f.length,m=f[0]===null?1:0;u=f[m],h=At(u);for(let y=m;y=0?window.pageYOffset:null,c=ql(e,t,a);return o.length&&o.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),oe&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:s}}else return{target:e,transitionEnd:s}};function Jl(t,e,n,s){return _l(e)?Zl(t,e,n,s):{target:e,transitionEnd:s}}const Ql=(t,e,n,s)=>{const i=Gl(t,e,s);return e=i.target,s=i.transitionEnd,Jl(t,e,n,s)},je={current:null},$i={current:!1};function tc(){if($i.current=!0,!!oe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>je.current=t.matches;t.addListener(e),e()}else je.current=!1}function ec(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if(j(o))t.addValue(i,o),se(s)&&s.add(i);else if(j(r))t.addValue(i,H(o,{owner:t})),se(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,H(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const xs=new WeakMap,_i=Object.keys(Ot),nc=_i.length,Ps=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sc=ze.length;class ic{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>A.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=r,this.isControllingVariants=le(n),this.isVariantNode=Fs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const f=u[h];a[h]!==void 0&&j(f)&&(f.set(a[h],!1),se(c)&&c.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,xs.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((n,s)=>this.bindToMotionValue(s,n)),$i.current||tc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:je.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xs.delete(this.current),this.projection&&this.projection.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=ht.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&A.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,i,o){let r,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:f,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=H(n,{owner:this}),this.addValue(e,s)),s}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,i=typeof s=="string"||typeof s=="object"?(n=Ze(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!j(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new cn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ki extends ic{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},i){const o=Ta(s,e||{},this);if(i){xa(this,s,o);const r=Ql(this,s,o,n);n=r.transitionEnd,s=r.target}return{transition:e,transitionEnd:n,...s}}}function rc(t){return window.getComputedStyle(t)}class oc extends Ki{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(ht.has(n)){const s=sn(n);return s&&s.default||0}else{const s=rc(e),i=(Ns(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Fi(e,n)}build(e,n,s,i){_e(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return qe(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;j(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){Gs(e,n,s,i)}}class ac extends Ki{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ht.has(n)){const s=sn(n);return s&&s.default||0}return n=$s.has(n)?n:Ue(n),e.getAttribute(n)}measureInstanceViewportBox(){return L()}scrapeMotionValuesFromProps(e,n){return Ks(e,n)}build(e,n,s,i){Xe(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){_s(e,n,s,i)}mount(e){this.isSVGTag=Ye(e.tagName),super.mount(e)}}const lc=(t,e)=>Ge(t)?new ac(e,{enableHardwareAcceleration:!1}):new oc(e,{enableHardwareAcceleration:!0}),cc={layout:{ProjectionNode:zi,MeasureLayout:ki}},uc={...ka,...qr,...Wl,...cc},Nc=or((t,e)=>jr(t,e,uc,lc));function Uc(t,e,n){b.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function hc(t,e,n){var s;if(typeof t=="string"){let i=document;e&&(he(!!e.current),i=e.current),n?((s=n[t])!==null&&s!==void 0||(n[t]=i.querySelectorAll(t)),t=n[t]):t=i.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}const Xt=new WeakMap;let Q;function fc(t,e){if(e){const{inlineSize:n,blockSize:s}=e[0];return{width:n,height:s}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function dc({target:t,contentRect:e,borderBoxSize:n}){var s;(s=Xt.get(t))===null||s===void 0||s.forEach(i=>{i({target:t,contentSize:e,get size(){return fc(t,n)}})})}function pc(t){t.forEach(dc)}function mc(){typeof ResizeObserver>"u"||(Q=new ResizeObserver(pc))}function gc(t,e){Q||mc();const n=hc(t);return n.forEach(s=>{let i=Xt.get(s);i||(i=new Set,Xt.set(s,i)),i.add(e),Q==null||Q.observe(s)}),()=>{n.forEach(s=>{const i=Xt.get(s);i==null||i.delete(e),i!=null&&i.size||Q==null||Q.unobserve(s)})}}const Yt=new Set;let Bt;function yc(){Bt=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};Yt.forEach(n=>n(e))},window.addEventListener("resize",Bt)}function vc(t){return Yt.add(t),Bt||yc(),()=>{Yt.delete(t),!Yt.size&&Bt&&(Bt=void 0)}}function xc(t,e){return typeof t=="function"?vc(t):gc(t,e)}const Pc=50,Ts=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Tc=()=>({time:0,x:Ts(),y:Ts()}),bc={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function bs(t,e,n,s){const i=n[e],{length:o,position:r}=bc[e],a=i.current,l=n.time;i.current=t["scroll"+r],i.scrollLength=t["scroll"+o]-t["client"+o],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=xt(0,i.scrollLength,i.current);const c=s-l;i.velocity=c>Pc?0:nn(i.current-a,c)}function Vc(t,e,n){bs(t,"x",e,n),bs(t,"y",e,n),e.time=n}function Sc(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const Ac={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Ie={start:0,center:.5,end:1};function Vs(t,e,n=0){let s=0;if(Ie[t]!==void 0&&(t=Ie[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const wc=[0,0];function Cc(t,e,n,s){let i=Array.isArray(t)?t:wc,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,Ie[t]?t:"0"]),o=Vs(i[0],n,s),r=Vs(i[1],e),o-r}const Dc={x:0,y:0};function Mc(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Lc(t,e,n){let{offset:s=Ac.All}=n;const{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?Sc(i,t):Dc,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Mc(i),c={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let u=!e[o].interpolate;const h=s.length;for(let f=0;fRc(t,s.target,n),update:i=>{Vc(t,n,i),(s.offset||s.target)&&Lc(t,n,s)},notify:()=>e(n)}}const Ct=new WeakMap,Ss=new WeakMap,Se=new WeakMap,As=t=>t===document.documentElement?window:t;function Bc(t,{container:e=document.documentElement,...n}={}){let s=Se.get(e);s||(s=new Set,Se.set(e,s));const i=Tc(),o=Ec(e,t,i,n);if(s.add(o),!Ct.has(e)){const a=()=>{for(const f of s)f.measure()},l=()=>{for(const f of s)f.update(B.timestamp)},c=()=>{for(const f of s)f.notify()},u=()=>{A.read(a,!1,!0),A.read(l,!1,!0),A.update(c,!1,!0)};Ct.set(e,u);const h=As(e);window.addEventListener("resize",u,{passive:!0}),e!==document.documentElement&&Ss.set(e,xc(e,u)),h.addEventListener("scroll",u,{passive:!0})}const r=Ct.get(e);return A.read(r,!1,!0),()=>{var a;G(r);const l=Se.get(e);if(!l||(l.delete(o),l.size))return;const c=Ct.get(e);Ct.delete(e),c&&(As(e).removeEventListener("scroll",c),(a=Ss.get(e))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function ws(t,e){Qr(!!(!e||e.current))}const Fc=()=>({scrollX:H(0),scrollY:H(0),scrollXProgress:H(0),scrollYProgress:H(0)});function Wc({container:t,target:e,layoutEffect:n=!0,...s}={}){const i=Xs(Fc);return(n?Ms:b.useEffect)(()=>(ws("target",e),ws("container",t),Bc(({x:r,y:a})=>{i.scrollX.set(r.current),i.scrollXProgress.set(r.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...s,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0})),[t,e,JSON.stringify(s.offset)]),i}export{Uc as a,Nc as m,Wc as u}; diff --git a/assets/google-map-react-C-DqdxpT.js b/assets/google-map-react-C-DqdxpT.js deleted file mode 100644 index dbe3dea..0000000 --- a/assets/google-map-react-C-DqdxpT.js +++ /dev/null @@ -1 +0,0 @@ -import{e as y,r as re}from"./react-328yWDDP.js";import{o as p}from"./prop-types-EUydVlhc.js";import{n as z}from"./react-dom-AjuaLGBG.js";import{r as we}from"./eventemitter3-kxfTZM1Q.js";import{L as Le}from"./@googlemaps-xrxk7TKA.js";import{s as T}from"./@mapbox-P3eih9Ks.js";function _(){return(_=Object.assign?Object.assign.bind():function(n){for(var r=1;r"u")throw new Error("google map cannot be loaded outside browser env");var o=n.key,e=function(s,t){if(s==null)return{};var u,a,h={},d=Object.keys(s);for(a=0;a=0||(h[u]=s[u]);return h}(n,Ee);return $||($=new Le(_({apiKey:o||""},e,{libraries:i}))),P=$.load().then(function(){return Q(window.google.maps),window.google.maps}),Q(P),P};function ye(n,r,i){var o=i-r;return n===i?n:((n-r)%o+o)%o+r}var O=function(){function n(r,i){if(isNaN(r)||isNaN(i))throw new Error("Invalid LatLng object: ("+r+", "+i+")");this.lat=+r,this.lng=+i}return n.prototype.wrap=function(){return new n(this.lat,ye(this.lng,-180,180))},n}();O.convert=function(n){return n instanceof O?n:Array.isArray(n)?new O(n[0],n[1]):"lng"in n&&"lat"in n?new O(n.lat,n.lng):n};var xe=function(){function n(e,s,t){this.tileSize=e||512,this._minZoom=s||0,this._maxZoom=t||52,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this.zoom=0,this.center=new O(0,0),this.angle=0}var r,i,o=n.prototype;return o.zoomScale=function(e){return Math.pow(2,e)},o.scaleZoom=function(e){return Math.log(e)/Math.LN2},o.project=function(e,s){return new T(this.lngX(e.lng,s),this.latY(e.lat,s))},o.unproject=function(e,s){return new O(this.yLat(e.y,s),this.xLng(e.x,s))},o.lngX=function(e,s){return(180+e)*(s||this.worldSize)/360},o.latY=function(e,s){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))*(s||this.worldSize)/360},o.xLng=function(e,s){return 360*e/(s||this.worldSize)-180},o.yLat=function(e,s){return 360/Math.PI*Math.atan(Math.exp((180-360*e/(s||this.worldSize))*Math.PI/180))-90},o.locationPoint=function(e){var s=this.project(e);return this.centerPoint._sub(this.point._sub(s)._rotate(this.angle))},o.pointLocation=function(e){var s=this.centerPoint._sub(e)._rotate(-this.angle);return this.unproject(this.point.sub(s))},r=n,(i=[{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom=e,this.zoom=Math.max(this.zoom,e)}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom=e,this.zoom=Math.min(this.zoom,e)}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerPoint",get:function(){return new T(0,0)}},{key:"size",get:function(){return new T(this.width,this.height)}},{key:"bearing",get:function(){return-this.angle/Math.PI*180},set:function(e){this.angle=-ye(e,-180,180)*Math.PI/180}},{key:"zoom",get:function(){return this._zoom},set:function(e){var s=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom=s,this.scale=this.zoomScale(s),this.tileZoom=Math.floor(s),this.zoomFraction=s-this.tileZoom}},{key:"x",get:function(){return this.lngX(this.center.lng)}},{key:"y",get:function(){return this.latY(this.center.lat)}},{key:"point",get:function(){return new T(this.x,this.y)}}])&&function(e,s){for(var t=0;t0&&this.getHeight()-e-t>0){var a=this.transform_.pointLocation(T.convert({x:u-this.getWidth()/2,y:e-this.getHeight()/2})),h=this.transform_.pointLocation(T.convert({x:this.getWidth()/2-s,y:this.getHeight()/2-t})),d=[a.lat,a.lng,h.lat,h.lng,h.lat,a.lng,a.lat,h.lng];return o&&(d=d.map(function(c){return Math.round(c*o)/o})),d}return[0,0,0,0]},n}();function ue(n){if(window.requestAnimationFrame)return window.requestAnimationFrame(n);var r=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return r?r(n):window.setTimeout(n,1e3/60)}var Ne=Math.log2?Math.log2:function(n){return Math.log(n)/Math.LN2};function he(n,r){return Object.keys(n).reduce(function(i,o){return r(n[o])&&(i[o]=n[o]),i},{})}var S=function(n){if(n!==null&&typeof n=="object"){if(Object.keys(n).length===0)return!0}else if(n==null||n==="")return!0;return!1},Ie=Object.prototype.toString;function H(n){return typeof n=="number"||function(r){return!!r&&typeof r=="object"}(n)&&Ie.call(n)==="[object Number]"}var U=null;function ce(){if(U)return U;if(typeof navigator<"u"){var n=navigator.userAgent.indexOf("MSIE")>-1,r=navigator.userAgent.indexOf("Firefox")>-1,i=navigator.userAgent.toLowerCase().indexOf("op")>-1,o=navigator.userAgent.indexOf("Chrome")>-1,e=navigator.userAgent.indexOf("Safari")>-1;return o&&e&&(e=!1),o&&i&&(o=!1),U={isExplorer:n,isFirefox:r,isOpera:i,isChrome:o,isSafari:e}}return U={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}}var de=function(n){return Function.prototype.toString.call(n)};function N(n){if(!n||typeof n!="object")return!1;var r=typeof n.constructor=="function"?Object.getPrototypeOf(n):Object.prototype;if(r===null)return!0;var i=r.constructor;return typeof i=="function"&&i instanceof i&&de(i)===de(Object)}function x(n,r,i,o){n.addEventListener(r,i,function(){var e=!1;try{var s=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",s,s),window.removeEventListener("test",s,s)}catch{e=!1}return e}()?{capture:o,passive:!0}:o)}var L,ee=!(typeof window>"u"||!window.document||!window.document.createElement);L=ee?window:typeof self<"u"?self:void 0;var me,te=typeof document<"u"&&document.attachEvent,fe=!1;if(ee&&!te){var Ze=function(){var n=L.requestAnimationFrame||L.mozRequestAnimationFrame||L.webkitRequestAnimationFrame||function(r){return L.setTimeout(r,20)};return function(r){return n(r)}}(),je=(me=L.cancelAnimationFrame||L.mozCancelAnimationFrame||L.webkitCancelAnimationFrame||L.clearTimeout,function(n){return me(n)}),ne=function(n){var r=n.__resizeTriggers__,i=r.firstElementChild,o=r.lastElementChild,e=i.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,e.style.width=i.offsetWidth+1+"px",e.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight},_e=function(n){var r=this;ne(this),this.__resizeRAF__&&je(this.__resizeRAF__),this.__resizeRAF__=Ze(function(){(function(i){return i.offsetWidth!=i.__resizeLast__.width||i.offsetHeight!=i.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach(function(i){i.call(r,n)}))})},q=!1,X="",oe="animationstart",Y="Webkit Moz O ms".split(" "),He="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");if(ee){var ge=document.createElement("fakeelement");if(ge.style.animationName!==void 0&&(q=!0),q===!1){for(var A=0;A0||e.geoService_.getHeight()>0){var t=Math.ceil(e.geoService_.getWidth()/256)+2,u=Math.ceil(e.geoService_.getHeight()/256)+2,a=Math.max(t,u);return Math.ceil(Ne(a))}return 3},e._computeMinZoom=function(t){return S(t)?e._getMinZoom():t},e._mapDomResizeCallback=function(){if(e.resetSizeOnIdle_=!0,e.maps_){var t=e.props.center||e.props.defaultCenter,u=e.map_.getCenter();e.maps_.event.trigger(e.map_,"resize"),e.map_.setCenter(e.props.resetBoundsOnResize?t:u)}},e._setLayers=function(t){t.forEach(function(u){e.layers_[u]=new e.maps_[u],e.layers_[u].setMap(e.map_)})},e._renderPortal=function(){return y.createElement(W,{experimental:e.props.experimental,onChildClick:e._onChildClick,onChildMouseDown:e._onChildMouseDown,onChildMouseEnter:e._onChildMouseEnter,onChildMouseLeave:e._onChildMouseLeave,geoService:e.geoService_,insideMapPanes:!0,distanceToMouse:e.props.distanceToMouse,getHoverDistance:e._getHoverDistance,dispatcher:e.markersDispatcher_})},e._initMap=function(){if(!e.initialized_){e.initialized_=!0;var t=R(e.props.center||e.props.defaultCenter);e.geoService_.setView(t,e.props.zoom||e.props.defaultZoom,0),e._onBoundsChanged();var u=_({},e.props.apiKey&&{key:e.props.apiKey},e.props.bootstrapURLKeys);e.props.googleMapLoader(u,e.props.heatmapLibrary).then(function(a){if(e.mounted_){var h,d,c=e.geoService_.getCenter(),C={zoom:e.props.zoom||e.props.defaultZoom,center:new a.LatLng(c.lat,c.lng)};e.props.heatmap.positions&&(Object.assign(V(e),{heatmap:(h=a,d=e.props.heatmap,new h.visualization.HeatmapLayer({data:d.positions.reduce(function(f,k){var v=k.weight,D=v===void 0?1:v;return f.push({location:new h.LatLng(k.lat,k.lng),weight:D}),f},[])}))}),function(f,k){var v=k.options,D=v===void 0?{}:v;Object.keys(D).map(function(E){return f.set(E,D[E])})}(e.heatmap,e.props.heatmap));var g=he(a,N),M=typeof e.props.options=="function"?e.props.options(g):e.props.options,Z=!S(e.props.draggable)&&{draggable:e.props.draggable},j=e._computeMinZoom(M.minZoom);e.minZoom_=j;var b=_({},{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3},{minZoom:j},M,C);e.defaultDraggableOption_=S(b.draggable)?e.defaultDraggableOption_:b.draggable;var F=_({},b,Z);F.minZoom=Ce(F.minZoom,j);var m=new a.Map(z.findDOMNode(e.googleMapDom_),F);e.map_=m,e.maps_=a,e._setLayers(e.props.layerTypes);var se=a.version.match(/^3\.(\d+)\./),Me=se&&Number(se[1]),l=V(e),G=Object.assign(new a.OverlayView,{onAdd:function(){var f=typeof screen<"u"?screen.width+"px":"2000px",k=typeof screen<"u"?screen.height+"px":"2000px",v=document.createElement("div");if(v.style.backgroundColor="transparent",v.style.position="absolute",v.style.left="0px",v.style.top="0px",v.style.width=f,v.style.height=k,l.props.overlayViewDivStyle){var D=l.props.overlayViewDivStyle;typeof D=="object"&&Object.keys(D).forEach(function(E){v.style[E]=D[E]})}this.getPanes().overlayMouseTarget.appendChild(v),l.geoService_.setMapCanvasProjection(a,G.getProjection()),K?l.setState({overlay:v}):ve(l,l._renderPortal(),v,function(){return l.setState({overlay:v})})},onRemove:function(){var f=l.state.overlay;f&&!K&&z.unmountComponentAtNode(f),l.setState({overlay:null})},draw:function(){if(l.updateCounter_++,l._onBoundsChanged(m,a,!l.props.debounced),l.googleApiLoadedCalled_||(l._onGoogleApiLoaded({map:m,maps:a,ref:l.googleMapDom_}),l.googleApiLoadedCalled_=!0),l.mouse_){var f=l.geoService_.fromContainerPixelToLatLng(l.mouse_);l.mouse_.lat=f.lat,l.mouse_.lng=f.lng}l._onChildMouseMove(),l.markersDispatcher_&&(l.markersDispatcher_.emit("kON_CHANGE"),l.fireMouseEventOnIdle_&&l.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"))}});e.overlay_=G,G.setMap(m),e.props.heatmap.positions&&e.heatmap.setMap(m),e.props.onTilesLoaded&&a.event.addListener(m,"tilesloaded",function(){l._onTilesLoaded()}),a.event.addListener(m,"zoom_changed",function(){l.geoService_.getZoom()!==m.getZoom()&&(l.zoomAnimationInProgress_||(l.zoomAnimationInProgress_=!0,l._onZoomAnimationStart(m.zoom)),Me<32)&&(new Date().getTime()-e.zoomControlClickTime_<300?ue(function(){return ue(function(){l.updateCounter_++,l._onBoundsChanged(m,a)})}):(l.updateCounter_++,l._onBoundsChanged(m,a)))}),a.event.addListener(m,"idle",function(){if(e.resetSizeOnIdle_){e._setViewSize();var f=e._computeMinZoom(M.minZoom);f!==e.minZoom_&&(e.minZoom_=f,m.setOptions({minZoom:f})),e.resetSizeOnIdle_=!1}l.zoomAnimationInProgress_&&(l.zoomAnimationInProgress_=!1,l._onZoomAnimationEnd(m.zoom)),l.updateCounter_++,l._onBoundsChanged(m,a),l.dragTime_=0,l.markersDispatcher_&&l.markersDispatcher_.emit("kON_CHANGE")}),a.event.addListener(m,"mouseover",function(){l.mouseInMap_=!0}),a.event.addListener(m,"click",function(){l.mouseInMap_=!0}),a.event.addListener(m,"mouseout",function(){l.mouseInMap_=!1,l.mouse_=null,l.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")}),a.event.addListener(m,"drag",function(){l.dragTime_=new Date().getTime(),l._onDrag(m)}),a.event.addListener(m,"dragend",function(){var f=a.event.addListener(m,"idle",function(){a.event.removeListener(f),l._onDragEnd(m)})}),a.event.addListener(m,"maptypeid_changed",function(){l._onMapTypeIdChange(m.getMapTypeId())})}}).catch(function(a){throw e._onGoogleApiLoaded({map:null,maps:null,ref:e.googleMapDom_}),console.error(a),a})}},e._onGoogleApiLoaded=function(){var t;e.props.onGoogleApiLoaded&&(t=e.props).onGoogleApiLoaded.apply(t,arguments)},e._getHoverDistance=function(){return e.props.hoverDistance},e._onDrag=function(){var t;return e.props.onDrag&&(t=e.props).onDrag.apply(t,arguments)},e._onDragEnd=function(){var t;return e.props.onDragEnd&&(t=e.props).onDragEnd.apply(t,arguments)},e._onMapTypeIdChange=function(){var t;return e.props.onMapTypeIdChange&&(t=e.props).onMapTypeIdChange.apply(t,arguments)},e._onZoomAnimationStart=function(){var t;return e.props.onZoomAnimationStart&&(t=e.props).onZoomAnimationStart.apply(t,arguments)},e._onZoomAnimationEnd=function(){var t;return e.props.onZoomAnimationEnd&&(t=e.props).onZoomAnimationEnd.apply(t,arguments)},e._onTilesLoaded=function(){return e.props.onTilesLoaded&&e.props.onTilesLoaded()},e._onChildClick=function(){var t;if(e.props.onChildClick)return(t=e.props).onChildClick.apply(t,arguments)},e._onChildMouseDown=function(t,u){e.childMouseDownArgs_=[t,u],e.props.onChildMouseDown&&e.props.onChildMouseDown(t,u,_({},e.mouse_))},e._onChildMouseUp=function(){var t;e.childMouseDownArgs_&&(e.props.onChildMouseUp&&(t=e.props).onChildMouseUp.apply(t,e.childMouseDownArgs_.concat([_({},e.mouse_)])),e.childMouseDownArgs_=null,e.childMouseUpTime_=new Date().getTime())},e._onChildMouseMove=function(){var t;e.childMouseDownArgs_&&e.props.onChildMouseMove&&(t=e.props).onChildMouseMove.apply(t,e.childMouseDownArgs_.concat([_({},e.mouse_)]))},e._onChildMouseEnter=function(){var t;if(e.props.onChildMouseEnter)return(t=e.props).onChildMouseEnter.apply(t,arguments)},e._onChildMouseLeave=function(){var t;if(e.props.onChildMouseLeave)return(t=e.props).onChildMouseLeave.apply(t,arguments)},e._setViewSize=function(){if(e.mounted_){if(document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)e.geoService_.setViewSize(window.innerWidth,window.innerHeight);else{var t=z.findDOMNode(e.googleMapDom_);e.geoService_.setViewSize(t.clientWidth,t.clientHeight)}e._onBoundsChanged()}},e._onWindowResize=function(){e.resetSizeOnIdle_=!0},e._onMapMouseMove=function(t){if(e.mouseInMap_){var u=new Date().getTime();u-e.mouseMoveTime_>50&&(e.boundingRect_=t.currentTarget.getBoundingClientRect()),e.mouseMoveTime_=u;var a=t.clientX-e.boundingRect_.left,h=t.clientY-e.boundingRect_.top;e.mouse_||(e.mouse_={x:0,y:0,lat:0,lng:0}),e.mouse_.x=a,e.mouse_.y=h;var d=e.geoService_.fromContainerPixelToLatLng(e.mouse_);e.mouse_.lat=d.lat,e.mouse_.lng=d.lng,e._onChildMouseMove(),u-e.dragTime_<100?e.fireMouseEventOnIdle_=!0:(e.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"),e.fireMouseEventOnIdle_=!1)}},e._onClick=function(){var t;return e.props.onClick&&!e.childMouseDownArgs_&&new Date().getTime()-e.childMouseUpTime_>300&&e.dragTime_===0&&(t=e.props).onClick.apply(t,arguments)},e._onMapClick=function(t){e.markersDispatcher_&&(e._onMapMouseMove(t),new Date().getTime()-e.dragTime_>100&&(e.mouse_&&e._onClick(_({},e.mouse_,{event:t})),e.markersDispatcher_.emit("kON_CLICK",t)))},e._onMapMouseDownNative=function(t){e.mouseInMap_&&e._onMapMouseDown(t)},e._onMapMouseDown=function(t){e.markersDispatcher_&&new Date().getTime()-e.dragTime_>100&&(e._onMapMouseMove(t),e.markersDispatcher_.emit("kON_MDOWN",t))},e._onMapMouseDownCapture=function(){ce().isChrome&&(e.zoomControlClickTime_=new Date().getTime())},e._onKeyDownCapture=function(){ce().isChrome&&(e.zoomControlClickTime_=new Date().getTime())},e._isCenterDefined=function(t){return t&&(N(t)&&H(t.lat)&&H(t.lng)||t.length===2&&H(t[0])&&H(t[1]))},e._onBoundsChanged=function(t,u,a){if(t){var h=t.getCenter();e.geoService_.setView([h.lat(),h.lng()],t.getZoom(),0)}if((e.props.onChange||e.props.onBoundsChange)&&e.geoService_.canProject()){var d=e.geoService_.getZoom(),c=e.geoService_.getBounds(),C=e.geoService_.getCenter();if(!function(M,Z,j){if(M&&Z){for(var b=0;b!==M.length;++b)if(Math.abs(M[b]-Z[b])>1e-5)return!1;return!0}return!1}(c,e.prevBounds_)&&a!==!1){var g=e.geoService_.getBounds(e.props.margin);e.props.onBoundsChange&&e.props.onBoundsChange(e.centerIsObject_?_({},C):[C.lat,C.lng],d,c,g),e.props.onChange&&e.props.onChange({center:_({},C),zoom:d,bounds:{nw:{lat:c[0],lng:c[1]},se:{lat:c[2],lng:c[3]},sw:{lat:c[4],lng:c[5]},ne:{lat:c[6],lng:c[7]}},marginBounds:{nw:{lat:g[0],lng:g[1]},se:{lat:g[2],lng:g[3]},sw:{lat:g[4],lng:g[5]},ne:{lat:g[6],lng:g[7]}},size:e.geoService_.hasSize()?{width:e.geoService_.getWidth(),height:e.geoService_.getHeight()}:{width:0,height:0}}),e.prevBounds_=c}}},e._registerChild=function(t){e.googleMapDom_=t},e.mounted_=!1,e.initialized_=!1,e.googleApiLoadedCalled_=!1,e.map_=null,e.maps_=null,e.prevBounds_=null,e.heatmap=null,e.layers_={},e.mouse_=null,e.mouseMoveTime_=0,e.boundingRect_=null,e.mouseInMap_=!0,e.dragTime_=0,e.fireMouseEventOnIdle_=!1,e.updateCounter_=0,e.markersDispatcher_=new ae(V(e)),e.geoService_=new Ae(256),e.centerIsObject_=N(e.props.center),e.minZoom_=3,e.defaultDraggableOption_=!0,e.zoomControlClickTime_=0,e.childMouseDownArgs_=null,e.childMouseUpTime_=0,e.googleMapDom_=null,e._isCenterDefined(e.props.center||e.props.defaultCenter)){var s=R(e.props.center||e.props.defaultCenter);e.geoService_.setView(s,e.props.zoom||e.props.defaultZoom,0)}return e.zoomAnimationInProgress_=!1,e.state={overlay:null},e}B(r,n);var i=r.prototype;return i.componentDidMount=function(){var o=this;this.mounted_=!0,this.markersDispatcher_=new ae(this),x(window,"resize",this._onWindowResize,!1),x(window,"keydown",this._onKeyDownCapture,!0);var e=z.findDOMNode(this.googleMapDom_);e&&x(e,"mousedown",this._onMapMouseDownNative,!0),x(window,"mouseup",this._onChildMouseUp,!1);var s=_({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);this.props.googleMapLoader(s,this.props.heatmapLibrary),setTimeout(function(){o._setViewSize(),o._isCenterDefined(o.props.center||o.props.defaultCenter)&&o._initMap()},0,this),this.props.resetBoundsOnResize&&function(t,u){if(t.parentNode===void 0){var a=document.createElement("div");t.parentNode=a}t=t.parentNode,te?t.attachEvent("onresize",u):(t.__resizeTriggers__||(getComputedStyle(t).position=="static"&&(t.style.position="relative"),function(){if(!fe){var h=(Ue||"")+".resize-triggers { "+(Re||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',d=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",c.styleSheet?c.styleSheet.cssText=h:c.appendChild(document.createTextNode(h)),d.appendChild(c),fe=!0}}(),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=document.createElement("div")).className="resize-triggers",t.__resizeTriggers__.innerHTML='
',t.appendChild(t.__resizeTriggers__),ne(t),x(t,"scroll",_e,!0),oe&&t.__resizeTriggers__.addEventListener(oe,function(h){h.animationName==ie&&ne(t)})),t.__resizeListeners__.push(u))}(e,this._mapDomResizeCallback)},i.shouldComponentUpdate=function(o,e){return!w(I(this.props,["draggable"]),I(o,["draggable"]))||!w(this.state,e)},i.componentDidUpdate=function(o){var e=this;if(!this._isCenterDefined(o.center)&&this._isCenterDefined(this.props.center)&&setTimeout(function(){return e._initMap()},0),this.map_){var s=this.geoService_.getCenter();if(this._isCenterDefined(this.props.center)){var t=R(this.props.center),u=this._isCenterDefined(o.center)?R(o.center):null;(!u||Math.abs(t.lat-u.lat)+Math.abs(t.lng-u.lng)>1e-5)&&Math.abs(t.lat-s.lat)+Math.abs(t.lng-s.lng)>1e-5&&this.map_.panTo({lat:t.lat,lng:t.lng})}if(S(this.props.zoom)||Math.abs(this.props.zoom-o.zoom)>0&&this.map_.setZoom(this.props.zoom),!S(o.draggable)&&S(this.props.draggable)?this.map_.setOptions({draggable:this.defaultDraggableOption_}):w(o.draggable,this.props.draggable)||this.map_.setOptions({draggable:this.props.draggable}),!S(this.props.options)&&!w(o.options,this.props.options)){var a=he(this.maps_,N),h=typeof this.props.options=="function"?this.props.options(a):this.props.options;if("minZoom"in(h=I(h,["zoom","center","draggable"]))){var d=this._computeMinZoom(h.minZoom);h.minZoom=Ce(h.minZoom,d)}this.map_.setOptions(h)}w(this.props.layerTypes,o.layerTypes)||(Object.keys(this.layers_).forEach(function(c){e.layers_[c].setMap(null),delete e.layers_[c]}),this._setLayers(this.props.layerTypes)),this.heatmap&&!w(this.props.heatmap.positions,o.heatmap.positions)&&this.heatmap.setData(this.props.heatmap.positions.map(function(c){return{location:new e.maps_.LatLng(c.lat,c.lng),weight:c.weight}})),this.heatmap&&!w(this.props.heatmap.options,o.heatmap.options)&&Object.keys(this.props.heatmap.options).forEach(function(c){e.heatmap.set(c,e.props.heatmap.options[c])})}this.markersDispatcher_.emit("kON_CHANGE"),w(this.props.hoverDistance,o.hoverDistance)||this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE")},i.componentWillUnmount=function(){this.mounted_=!1;var o,e,s=z.findDOMNode(this.googleMapDom_);s&&s.removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.props.resetBoundsOnResize&&(e=this._mapDomResizeCallback,o=(o=s).parentNode,te?o.detachEvent("onresize",e):(o.__resizeListeners__.splice(o.__resizeListeners__.indexOf(e),1),o.__resizeListeners__.length||(o.removeEventListener("scroll",_e),o.__resizeTriggers__=!o.removeChild(o.__resizeTriggers__)))),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.props.shouldUnregisterMapOnUnmount&&(this.map_.setOptions({scrollwheel:!1}),this.maps_.event.clearInstanceListeners(this.map_)),this.props.shouldUnregisterMapOnUnmount&&(this.map_=null,this.maps_=null),this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,this.props.shouldUnregisterMapOnUnmount&&(delete this.map_,delete this.markersDispatcher_)},i.render=function(){var o=this.state.overlay,e=o?null:y.createElement(Te,{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,insideMapPanes:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return y.createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},y.createElement(De,{registerChild:this._registerChild}),K&&o&&ve(this._renderPortal(),o),e)},r}(re.Component);J.propTypes={apiKey:p.string,bootstrapURLKeys:p.any,defaultCenter:p.oneOfType([p.array,p.shape({lat:p.number,lng:p.number})]),center:p.oneOfType([p.array,p.shape({lat:p.number,lng:p.number})]),defaultZoom:p.number,zoom:p.number,onBoundsChange:p.func,onChange:p.func,onClick:p.func,onChildClick:p.func,onChildMouseDown:p.func,onChildMouseUp:p.func,onChildMouseMove:p.func,onChildMouseEnter:p.func,onChildMouseLeave:p.func,onZoomAnimationStart:p.func,onZoomAnimationEnd:p.func,onDrag:p.func,onDragEnd:p.func,onMapTypeIdChange:p.func,onTilesLoaded:p.func,options:p.any,distanceToMouse:p.func,hoverDistance:p.number,debounced:p.bool,margin:p.array,googleMapLoader:p.any,onGoogleApiLoaded:p.func,yesIWantToUseGoogleMapApiInternals:p.bool,draggable:p.bool,style:p.any,resetBoundsOnResize:p.bool,layerTypes:p.arrayOf(p.string),shouldUnregisterMapOnUnmount:p.bool},J.defaultProps={distanceToMouse:function(n,r){return Math.sqrt((n.x-r.x)*(n.x-r.x)+(n.y-r.y)*(n.y-r.y))},hoverDistance:30,debounced:!0,options:function(){return{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3}},googleMapLoader:le,yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"},layerTypes:[],heatmap:{},heatmapLibrary:!1,shouldUnregisterMapOnUnmount:!0},J.googleMapLoader=le;export{J as c}; diff --git a/assets/index-CzcjuCr0.js b/assets/index-CzcjuCr0.js deleted file mode 100644 index 4e705d1..0000000 --- a/assets/index-CzcjuCr0.js +++ /dev/null @@ -1,52 +0,0 @@ -import{r as n,j as e}from"./react-328yWDDP.js";import{c as I}from"./react-dom-AjuaLGBG.js";import{N as x,L as p,c as J,R as Z}from"./react-router-dom-PvMEMeGk.js";import{u as w,C as H}from"./react-use-cart-RfXZ2AJl.js";import{F as M,L as K,S as W,M as D,I as X,a as v,b as O,c as V,B as G,d as T,e as Y,f as z,g as _,h as $,i as ee,j as se,G as te,k as E,l as ie,m as ae,n as ne,o as b,p as F,R as S,q as R}from"./react-icons-l7RwqXwD.js";import{i as re,g as oe,o as le,s as ce,c as de,a as me}from"./@firebase-tvAkaRvo.js";import"./firebase-68xsxvGW.js";import{e as Q,d as he,O as ue}from"./react-router-yhGg1gIj.js";import{u as pe,a as xe,m as f}from"./framer-motion-KSOoU1u5.js";import{S as je}from"./scrollreveal-p56AIvCW.js";import{E as ge}from"./react-error-boundary-T58OFYed.js";import{R as Ae}from"./react-player-7gDidTFE.js";import{c as fe}from"./google-map-react-C-DqdxpT.js";import"./@mapbox-P3eih9Ks.js";import"./scheduler-iwWdm5Ml.js";import"./@remix-run-qg_F8xzm.js";import"./idb-IQTssp_s.js";import"./tslib-uVCKAQsh.js";import"./tealight-1sah5qbi.js";import"./is-dom-node-UIimFn1D.js";import"./is-dom-node-list-rDut-aH9.js";import"./rematrix-PsAVmwnt.js";import"./miniraf--XCH_u-r.js";import"./deepmerge-m38oLmcF.js";import"./memoize-one-2aoN688H.js";import"./react-fast-compare-LawLdkOo.js";import"./prop-types-EUydVlhc.js";import"./load-script-KV37v6J9.js";import"./eventemitter3-kxfTZM1Q.js";import"./@googlemaps-xrxk7TKA.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const d of r.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function o(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(i){if(i.ep)return;i.ep=!0;const r=o(i);fetch(i.href,r)}})();const ve=""+new URL("1-OaeyaLRf.png",import.meta.url).href,be=""+new URL("2-x_zXpq09.png",import.meta.url).href,Ne={apiKey:"AIzaSyCYYQhL-WDhwizlYoiL6wJp1nt379nNcuI",authDomain:"ur-shop-678c9.firebaseapp.com",projectId:"ur-shop-678c9",storageBucket:"ur-shop-678c9.appspot.com",messagingSenderId:"1058604327129",appId:"1:1058604327129:web:4fd204526b22182d645ec8",measurementId:"G-LGCPYWFG4D"},we=re(Ne),N=oe(we),P=()=>{const[s,t]=n.useState(""),o=Q();n.useEffect(()=>{le(N,async i=>{t(i||null)})},[]);const a=()=>{ce(N).then(()=>{o("/signup")}).catch(i=>{alert(i)})};return e.jsx("div",{children:s===null?e.jsxs("div",{className:"sign-btns",children:[e.jsx("button",{children:e.jsx(x,{className:"sign-up",to:"/signup",children:"create account"})}),e.jsx(x,{to:"/login",className:"login",children:"login"})]}):e.jsx(x,{to:"/home",className:"login",onClick:a,children:"sign-out"})})},q=({changeTheme:s,currentTheme:t})=>{const[o,a]=n.useState(!1),{scrollY:i}=pe(),[r,d]=n.useState(!1),m=n.useRef(null),{totalItems:l}=w();n.useEffect(()=>{function j(c){m.current.contains(c.target)||a(!1)}return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)});const h=j=>{j.currentTarget.classList.toggle("active")};return xe(i,"change",j=>{const c=i.getPrevious();j>c&&j>150?d(!0):d(!1)}),e.jsxs(f.div,{variants:{visible:{y:0},hidden:{y:"-100%"}},animate:r?"hidden":"visible",transition:{duration:.25,ease:"easeInOut"},className:"header",children:[e.jsxs("div",{className:"logo-section",children:[t==="light"?e.jsx("img",{src:ve,alt:"logo",className:"logo-img"}):e.jsx("img",{src:be,alt:"logo",className:"logo-img"}),e.jsx("h1",{id:"logo",className:"logo",children:"Ur-Shop"})]}),e.jsx("div",{className:"navbar",ref:m,children:e.jsxs("ul",{className:`links ${o?"links-active":"links-inactive"}`,children:[e.jsxs("li",{children:[e.jsx(x,{to:"/",className:"link",onClick:h,children:e.jsx(M,{})}),e.jsx("span",{children:"home"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/shop",className:"link",onClick:h,children:e.jsx(K,{})}),e.jsx("span",{children:"shop"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/blog",className:"link",onClick:h,children:e.jsx(W,{})}),e.jsx("span",{children:"blog"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/about",className:"link",onClick:h,children:e.jsx(D,{})}),e.jsx("span",{children:"about"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/contact",className:"link",onClick:h,children:e.jsx(X,{})}),e.jsx("span",{children:"contact"})]}),e.jsx("li",{className:"cart-bag",children:e.jsxs(x,{to:"/cart",className:"link",onClick:h,children:[e.jsx("p",{className:"total-items",children:l}),e.jsx(v,{})]})}),e.jsx("li",{id:"close",children:e.jsx(O,{onClick:()=>a(!o)})}),e.jsxs("div",{className:"signing",children:[e.jsx(P,{}),e.jsx("div",{className:"mode",onClick:s,children:t==="dark"?e.jsx(V,{className:"sun"}):e.jsx(G,{className:"moon"})})]})]})}),e.jsxs("div",{className:"mobile",children:[e.jsxs(x,{to:"/cart",onClick:h,className:"mobile-bag",children:[e.jsx("p",{className:"total-items",children:l}),e.jsx(v,{})]}),e.jsx("span",{children:e.jsx(T,{onClick:()=>a(!o)})})]})]})},Ce="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAqqADAAQAAAABAAAAMAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAMACqAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAQEBAQEBAgEBAgMCAgIDBAMDAwMEBQQEBAQEBQYFBQUFBQUGBgYGBgYGBgcHBwcHBwgICAgICQkJCQkJCQkJCf/bAEMBAQEBAgICBAICBAkGBQYJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCf/dAAQAC//aAAwDAQACEQMRAD8A/v4ooooAKKKKACiivye8Bf8ABUvw98a/+CmOs/8ABPP4F+EbvX7TwJZXNx408WNL5Vlpd1GgEVlFGEYzStM6xuWeMAiQKH8tiAD9YaKK+afjN8W/iR4T+Jng/wCFPwv0rTNQ1HxRbardmXVbqa2hiTTFtyUBggnYtKbgDdtwoUnDZAoA+lqK/P3wp/wUZ+DWs+C4vFniDTdXsDb5tNW8i1e8ttP1VRL/AMS57mIbZJ5WiIgKLtfzIc7GmjU9TrX/AAUH/Zk0eK9kg1S71E2N/Hp7pY2U9w7SSx2ro8aouZIma9ghEi5Xz2MWd6sAAfbNFfn74e/b+8Ea/wDEbUvCVrpOoyJBb2FvZ6fHav8A2xNrM13rFveWLWxIjX7NHpLzGTzPL2bn3ldpPpsf7bXwCfVPBVg2oyxQ+Ponk0q4lQRJvRZmeGeN2W4ikT7PKr7otqOux2ViAQD61or4i+H/AO2z4M8b+I/FuqXtldaJ4L8MeEdM8WrqupW0tu9xZ38mo7rhIiCWg8iyWROBLlirIpABbrv7fnwa8NiSx1rSvEcOswGczaP/AGXK1/FFb2i3zzvEpIEX2ZvMVtxyVaIDzlMdAH2/RXwr+1B+2xp3wI8JWmueEdAu/Ep1rwnr3ifTryBR9iWPRrJLxPtJyJVScSKMopYDtnitfWv28vgZ4V8JTeI/GA1HSbu31ZtFk0u9tvs179rSyXUiBHK6psNk63Ct5nKsE/1p8ugD7TorB8LeJtD8a+GNN8ZeGLgXemavaw3tpOoIEsFwgkjcBgCAyMDggHnmt6gAooooAKKKKAP/0P7+KKKKACuX8ceLtK8AeC9Y8ea6WFjollcX9wVGW8q2jaV8D12qcV1Fc54x8LaX448I6r4K1xS9lrFnPY3CjqYriNo3H4qxoA/ykf2nv+C03/BQ79pr463vxstvid4h8H2n2tptG0bQdQnsLLTrfdmGJYoGRZXVMCSSUO0jZJ4IUeHeJf8AgpZ+3t4pv5dQh+J+taPc3l42oXR8PPHobXt/Ictd3f8AZaWv2q5djkzT73JPWvFf2pf2cvHf7Iv7RHi/9mv4k272+reD9SmsGLAgTQqc29wmesdxCUlQjqrCvA+f4SVPYjgg+ooA/wBiX9gTwX+0x4A/ZE8EeGf2v/FS+MviDFp0b6rqKwrC2+Qb1gkZeJpIFIiefCmVlLlQSc9Z+0p4H+B1x4fT42/HDWbrwzp/gSzvrmXWLbVLnSha2U6Ibzzp7aWJvKZYULZOQVBUg18Y/wDBFD9qn9oj9sb/AIJ++EfjP+0j4ej0XVZQ1jZ3kbt/xObOzCwpqZhZQYTO6uNoZlcqZEwjqo+d/wDgv/8AFe+i/Z88BfsgeGdN1TXdV+Nvi/T9LutK0OAXOpXOhaXIuo6uLWJnQO5iiSPDMq4kO5gM0AffvwE+D37EHxl8L+G/j1+zi9prXhM/ZpdNbSL6dtHuJtJDWdvcParJ5E1xbbDGskiFwUUsS0aFez0P9hD9lnw1ZWmn6H4ZFvHY6da6VDi6uSwtbLUl1eFCzSkki9VZS5yzYCsSgC1/NZ+yZ+0340/Zw/Zp/bp/Zt+Hela98KtV8AW2sfEnwHpmuWkVrqmmaZrdtJOqLblriEJa3cfyYZ1IlGeSQPXdB/aA/bf+AqfsdftV+I/jtefEmP8AaH1nQtA8Q+Dbiz0+PTVg1mzEpuNLW2hSeOSwOPOkeRy7nL7QxSgD+grUP2MPgBe6/qXi62026sNZ1O9TUn1Gzvrq3uortJbyUSwSxyhoiTqF0rBMK0crIwKYAybn9jv9lzwbfad8QbrTv7KtfClna4MmoXEVikOlrctDNdo8vlSmJbu5LyT7i3mO0hY4YfzzXHxT/br+Nvhf9sz4t6d+0tqfgaD9nXxr4lXw3plrZ6WYGh0+L7XDBqbz27yy2jqgt7dAyEN5jMZSQo/ZDw/pt9/wVI/4JEaZp/xku38GXnxm8AW39p3VqNn2OfUbVS0saOwzGZDuEbMN0Z2buc0Acx+yN8Vv+CUXxv8AEvir4D/sv+PNL8e6jf8Ah9dI1TSv7Wu9T/4kFi80MdtCLmR1FnAbySNfJO0CQAseDX1x4K/Zc/Zrv4f+Es8PCXxDNOL23k1WbVbnUJphcW66dPG9y8zs4jhiEKqWPlkMRhy7H8YP2b/iF+0/+z58XtJ/4JBftSWHh3RvEWt+ANRHgb4l/DyOKC7Ww0uMRv8Aa7C7hcW1wFRXDYaB5UA2tyw/Mr9jT4vftF/si/8ABGb4P678F/iZf6fcfG/4h2vgWC71KCyn07wXb3Osakl5e2KGFSZrjZub7U8iq5yoXAoA/sD8ffssfBf4leFdF8GeKNPuG07QNNutGtY4Lu4gP9n3tp9iubWVopFaWKWEKGDknciuCGUGpPFv7L3wf8Y39zrd9Z3Nrqdzqkesi/sry4t7mK9jsI9MEkUkbgoGs41hdB8jjllLc1/P38S/2gf2uv2Lf2gfjp+xlB8XdZ+JWm2fwL1n4j6LrmtRWL614d1axEsCpJNbW8MUkUzKJYlliO07QMrnd434z/at/wCChHwY/YZ+A3xG8QfEvX/GPi79qfW/D1vJNo+naXHceHtPl05riSy0NLvyrVr+9UIvnXjlTL5jqB8oAB/XJaW0dnaxWcRYrEioC5LMQowMsckn1J5NWK/Hj/glj4p/bnm8UfE7wF+1Jo3jFPBOm3On3XgjVvHq6SuvzQ3MTi+tLttIkeCYW8yBopSqsUkAbOMD9h6ACiiigAooooA//9H+/iiiigAooooA/OP9sv8A4JNfsHft8+NdG+I/7TXghNY13REWGO+trq4sZ57ZWLC3uXtZIzNEGJKq+SuTtIBOfnvxl/wb3/8ABIjxnqukarN8ILLTTpMiv5Om3l7aQ3SrjEd1HHOFmU453fMeQWINftBRQBkeH9A0LwpoVl4X8MWcOnabp0EdraWtsixQwQxKEjjjjUBVRFAVVAAAAArybxV+zd8E/HHxy8LftJeLNBjvvGvgm1vLPQ9SklmzZQ6guy6EcIkEO6VRtZ2jL44BAr3CigD85P25f2APh9+0f4B+J/jX4faNY2nxe8ZfD7VPAllrtzPcQxmzvUdo4LlYi8bRLOwfeYXkXHyngCvOv2If+CRX7If7Kul/D/4mz+A9MHxT8MeH7KxudVhuLu5todQFokN/cWFvcSGC3a4kDs0kUETvuJOCzZ/WCigD8Bfgt/wQ1+AniX4sfGr4nftt+EdH8X3Hjn4j6n4o0Nra9vkB0i68qSC11KKJreKfZMrv5MqzRqWJB+Y1+0XxN+Bfwj+Mfwe1H4AfEfQbbUfBmq2S6dc6SA0Nu1qu0LCohKFFUKoUIV24GMYr1iigD4a/Ze/4Js/sUfsa+Kr/AMe/s9eBrfR9f1K3FnPqlzc3eo3ptgwbyEuL6aeWOHIBMaMqkgZBwMcx4Z/4JSf8E+fCPgPx38K9F+Gmnjwx8SrmK81/SZprqeymnhd5I5IIJZmS0ZJJHdTaiIqxyMYGP0MooA+FfhH/AME0f2Ivgd4H8ZfD/wCHXgSC3sviFYvpniOa6ury9vtRspImhNvNfXU8t35QjcqqLKFXOVAPNeheOv2JP2VfiZ+zfpv7I3j7wVY6t8O9FtrS00/R7gyutrHYKEtTBNv8+OSFQAkqyCQc/Nyc/VFFAHzD+zH+xz+z5+x5oeqeH/gDo9zpcGtTR3F613qN/qUs0kSbIyZb+4uHAVOAqsFx2r6eoooAKKKKACiiigD/2Q==",ke="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAqqADAAQAAAABAAAAMAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAMACqAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAQEBAQEBAgEBAgMCAgIDBAMDAwMEBQQEBAQEBQYFBQUFBQUGBgYGBgYGBgcHBwcHBwgICAgICQkJCQkJCQkJCf/bAEMBAQEBAgICBAICBAkGBQYJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCf/dAAQAC//aAAwDAQACEQMRAD8A/v4ooooAKKKKACivB/hd+058BvjP4n17wV8NvEtpqWseGb+40zUrIFo54bm1cpKvlyBWYKwI3oCp7EiveK1rUJ05clRNPzOLAZlhsXT9rhainG7V4tNXWjV1fVPRroFFFFZHaFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH/0P7+KKKKACiiigD+Fn4j3XjX4O/t0/Eb4i+CpHilfxZqsksYZkWVTeynBK8qwzlWHKn2yD/R5+zv+3wmofDi38SeLJ31i2XETR8f2hFLjmNxkB8Dnc2Mjncelfir+19b6b4J+Ofi2aHT7nWtd1vxFqMek6PYRtPe387XDnZFEgZyozl3xhR15wD9M/sAf8EqP2tbv4lQftFftQa6PBdncLg+GLPbPcT2x5WC4OWht1GcjBklDcko1e148LF4nLqFXJdMWkrPTlceqnffy6n5V9D7wR9rmGO4k4gxawuWxc7J358RUTdoUoq7a6TqNOMNr3vy/wBHHw4+KvgX4r6OdZ8EXy3SJgSxkFJYi3RZIzyp647HHBNfmrY+KPiP+1PH41+OPiz4oah8LPhd4S1S+0rTo9Fe3tZ5l02Qw3F/f3k8cpVGlDBIlAUKPm55P6e+DPAPg/4faZ/ZHg+wisYTgvsHzuR3dzlmPuSa+Crn9n39pb4B+K/FDfszL4c8T+CvGN/Nqtz4c8SPNbGxvro5uWtp4Yple3mf52ikQbWJ2nk18lkyxn1WH9ocvtbe9y35b+V9fvP2jOXg3ipvAKSpX93mtzW87afcbnwn/a6+AXw6+C17qHjP4zWPxIfQZljm1G1jie8kW7kZLK3NvZBjNO20oCiZkYE7QAcel6H+3V+zZq/gDxF8RL/WZ9Gt/CbxR6tZ6pZ3Fnf2r3HFujWcsYmZpzxEERt54XJBFfIF1/wT++MF5DJ8d7nVNAT4sR+ItM8Q21pbW8kGgQw6VHLDDpoCr5xRkmkZrgrv80htoxknjL9iT9or4369r/x/+It7oOgePmuNCn0HTLJprvS4hoNxJcxrfyvHHJOZ3kYFlj/drt256V6Z5h9geFf26P2bvE3hbxJ4qvdXuNATwjBHdava61Z3Gn3ltbzHEMpt541kdJT8sZRW3MQo+YgV8i/tL/8ABRjwFr3wG8Xad8CdU1fQfHOnafbapbx3+l3NlPHaHULWBpgLuEIUkWbC9cgnHIOOB/aS/Zu+LPxC8MeNf2nP2qtV0TwVfaXomn2WlQaQt3qlnbLp+ox6j5+oMIUlmSSdFQqkRWKIliTg18/eL9P+OH7fPxx1zwxZ33g67vofAS2qz+HL6a/023aXWLK6UXV75ORLOsEjxwqpKKPm5LGgD9db79uj9nLSviW3wrv9WuVuYNQj0efURZXB0qHU5MbbKXUBH9nSckgbC/DHaSDxXD/H/wCOf7QGh/tG6V8DfgvP4V0+Kfw1Pr9zd+JhdbCYLtLbyka3lTGQ4blTgAn2r5h8MfsA/Fv4d/GW9utH0zwv4s8OXfiKXW7LUPEtzf3MmlQXU/n3MEOkj/Q3uCxYJc71bkFumK+tvi1+yL4b+N37Vek/FH4q6FpXiLwnp3ha40sWuoIJ3XUJL2OZJFiZSu0RB13ZzzjGDmgDxr4Mf8FEIPGGtnWPixFp/hnwxaeDI9fvLoNJKFvRq1xpbiCQE+dbStCGt9se9964ySBX1h4O/bA/Z08d29lP4f8AEaF7/VY9DjhuLe5tpl1CaNporeaKaJHheWNS0fmKofGFJPFfI/7TH7Hfxk8Z+PNd8RfAiew0TTZ/COkaDa2kU72BkSw1Rru4sleCMm1imtj5aSx5KHgADmvmvxJ+zH4q+DPwM+OPxQ+MdrbeGINXtdF1Dw7b6fql3rd3Zaro5kNkPtN6olkme6eJV2naQ5RQF6gH7VeFfiR4J8ca3rvh3wpfpe3fhq7Ww1JY1fbb3LRrN5RcqEZwjqWCk7cgNg8V3FfM/wCyL8ItY+DPwL0rQfGEn2nxPqjS6z4guT96fVdRc3F2x/3Xby1xwERQOlfTFABRRRQAUUUUAf/R/v4ooooAKKKKAPLfC/wR+EvgzxvqnxK8M+H7O18Qa0SbzURHuuZATkoJXyyRlst5aEJuJbGSTXqVFFaVKspu83cErJRWy0XkgooorMAooooAjmhhuIWt7hQ8bgqysMgg8EEHggiud8L+CvBvgi0ksPBekWWkQTP5kkdlbx26M5/iZY1UE+55rpqKACiiigAqC4tba7j8q6jWVQQ2HAYZU5Bwe4PIqeigAooooAKKKKACiiigD//Z",Be=""+new URL("pay-p6ZnC7o9.png",import.meta.url).href,ye=""+new URL("shop-l-Zgz9qJRm.png",import.meta.url).href,Qe=()=>{const s=new Date().getFullYear(),t=new Date().toLocaleString([],{month:"long"});return e.jsxs("footer",{className:"footer",children:[e.jsxs("div",{className:"colums",children:[e.jsxs("div",{className:"col",children:[e.jsx("img",{src:ye,alt:"logo",className:"logo"}),e.jsx("h4",{children:"contact"}),e.jsxs("p",{children:[e.jsx("span",{children:e.jsx("strong",{children:"address: "})}),"furstenwalde, germany"]}),e.jsxs("p",{children:[e.jsx("span",{children:e.jsx("strong",{children:"phone: "})}),"+49832728372"]}),e.jsxs("p",{children:[e.jsx("span",{children:e.jsx("strong",{children:"hours: "})}),"10:00 - 23:00 | mon - sat"]})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"about"}),e.jsx(p,{className:"item",to:"/about",children:"aboot us"}),e.jsx(p,{className:"item",to:"/blog",children:"delivery information"}),e.jsx(p,{className:"item",to:"/blog",children:"privacy policy"}),e.jsx(p,{className:"item",to:"/blog",children:"terms & condition"}),e.jsx(p,{className:"item",to:"/contact",children:"contact us"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"my account"}),e.jsx(p,{to:"/login",className:"item",children:"log-in"}),e.jsx(p,{to:"/cart",className:"item",children:"view cart"}),e.jsx(p,{to:"/shop",className:"item",children:"my wishlist"}),e.jsx(p,{to:"/shop",className:"item",children:"track my order"}),e.jsx(p,{to:"/contact",className:"item",children:"help"})]}),e.jsxs("div",{className:"follow",children:[e.jsx("h4",{children:"follow us"}),e.jsxs("div",{className:"icon",children:[e.jsx("a",{href:"https://www.facebook.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx(Y,{})}),e.jsx("a",{href:"https://www.instagram.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx(z,{})}),e.jsx("a",{href:"https://www.linkedin.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx(_,{})}),e.jsx("a",{href:"https://www.twitter.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx($,{})})]})]}),e.jsxs("div",{className:"col install",children:[e.jsx("h4",{children:"install app"}),e.jsx("p",{children:"from app store or google play"}),e.jsxs("div",{className:"row",children:[e.jsx("img",{src:Ce,alt:"app"}),e.jsx("img",{src:ke,alt:"play"})]}),e.jsx("p",{children:"secured payment gathways"}),e.jsx("img",{src:Be,alt:"pay"})]})]}),e.jsx("div",{className:"copyright",children:e.jsxs("p",{children:["© ",s," ",t," | ",e.jsx("span",{children:"ur-shop."})," all rights reserved."]})})]})},Le=""+new URL("b1-m6jVekng.jpg",import.meta.url).href,Ee=()=>e.jsxs("section",{className:"newsletter",children:[e.jsx("img",{src:Le,alt:""}),e.jsxs("div",{className:"newsletter-content",children:[e.jsxs("div",{className:"newsletter-info",children:[e.jsx("h3",{children:"sign up for newsletter"}),e.jsxs("p",{children:["get e-mail updates about our latest shop and ",e.jsx("span",{children:"special offers."})]})]}),e.jsxs("form",{action:"",className:"form",children:[e.jsx("input",{type:"text",placeholder:"your email address"}),e.jsx("button",{className:"newsletter-btn",type:"submit",children:"sign up"})]})]})]}),Fe=()=>{const[s,t]=n.useState(!1);n.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const{pathname:o}=he();n.useEffect(()=>{window.scrollTo(0,0)},[o]);const a=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.jsx("div",{className:"scrolltop",children:e.jsx("a",{href:"#",className:`${s?"scroll-inline":"scroll-none"}`,children:e.jsx(ee,{className:"scroll-icon",onClick:a})})})};function Se(){const s=localStorage.getItem("theme");return s||"light"}function Re(){const[s,t]=n.useState(Se()),o=()=>{t(s==="dark"?"light":"dark")};return n.useEffect(()=>{localStorage.setItem("theme",s)},[s]),n.useEffect(()=>{(()=>{je({origin:"top",distance:"80px",duration:"2000",delay:"1",reset:!1}).reveal(` - .header, - .home-elements, - .shop-container, - .blog-banner, - .blog-content, - .about-banner, - .about-us, - .our-app, - .contact-banner, - .contact-info, - .contact-field, - .signup-container, - .signin-container, - .features, - .products, - .banner, - .second-banner, - .third-banner, - .newsletter, - .footer - `,{interval:1e3})})()},[]),e.jsxs("div",{"data-theme":s,className:"app",children:[e.jsx(Fe,{}),e.jsx(q,{changeTheme:o,currentTheme:s}),e.jsx(ue,{}),e.jsx(Ee,{}),e.jsx(Qe,{})]})}const Pe=""+new URL("f1-pvt3Sl7Q.png",import.meta.url).href,qe=""+new URL("f2-c6gnFqC5.png",import.meta.url).href,Ue=""+new URL("f3-q50Eqyn5.png",import.meta.url).href,Ie=""+new URL("f4-hFASygKX.png",import.meta.url).href,Je=""+new URL("f5-tOwql6D1.png",import.meta.url).href,Ze=""+new URL("f6-fIdLszvw.png",import.meta.url).href,He=()=>e.jsxs("section",{id:"features",className:"features",children:[e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Pe,alt:""}),e.jsx("h6",{children:"free shipping"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:qe,alt:""}),e.jsx("h6",{children:"online order"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Ue,alt:""}),e.jsx("h6",{children:"save money"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Ie,alt:""}),e.jsx("h6",{children:"promotion"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Je,alt:""}),e.jsx("h6",{children:"happy sell"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Ze,alt:""}),e.jsx("h6",{children:"24/7 support"})]})]}),Me=""+new URL("b2-YhE0nu-B.jpg",import.meta.url).href,Ke=()=>e.jsxs("section",{id:"banner",className:"banner",children:[e.jsx("img",{src:Me,alt:""}),e.jsxs("div",{className:"banner-info",children:[e.jsx("h4",{children:"repair services"}),e.jsxs("h2",{children:["up to ",e.jsx("span",{children:"70% off"})," all t-shirt & accessories"]}),e.jsx("button",{className:"normal",children:"explore more"})]})]}),We=()=>e.jsxs("section",{id:"second-banner",className:"second-banner",children:[e.jsxs("div",{className:"banner-box",children:[e.jsx("h4",{children:"crazy deals"}),e.jsxs("h2",{children:[e.jsx("span",{children:"buy"})," 1 ",e.jsx("span",{children:"get"})," 1 free"]}),e.jsx("span",{children:"the best classic dress is on sale at ur-shop"}),e.jsx("button",{className:"normal",children:"learn more"})]}),e.jsxs("div",{className:"banner-box",children:[e.jsx("h4",{children:"spring / summer"}),e.jsxs("h2",{children:[e.jsx("span",{children:"up"}),"-comming season"]}),e.jsx("span",{children:"the best classic dress is on sale at ur-shop"}),e.jsx("button",{className:"normal",children:"collection"})]})]}),De=()=>e.jsxs("section",{id:"third-banner",className:"third-banner",children:[e.jsxs("div",{className:"th-banner-box",children:[e.jsx("h2",{children:"saison sale"}),e.jsx("h4",{children:"winter collection -50% off"})]}),e.jsxs("div",{className:"th-banner-box",children:[e.jsx("h2",{children:"new footwear collection"}),e.jsx("h4",{children:"spring / summer 2024"})]}),e.jsxs("div",{className:"th-banner-box",children:[e.jsx("h2",{children:"t-shirts"}),e.jsx("h4",{children:"new trendy prints"})]})]}),Xe=()=>e.jsx("section",{id:"home",children:e.jsx("div",{className:"home-content",children:e.jsxs("div",{className:"home-elements",children:[e.jsx("h4",{className:"select-none",children:"trade-in-offer"}),e.jsxs("h2",{className:"select-none",children:["super values ",e.jsx("span",{children:"deals"})]}),e.jsx(f.h1,{className:"select-none",animate:{opacity:1,scale:1},transition:{duration:5,delay:1,ease:[.5,.71,1,1.5],yoyo:1/0},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"on all products"}),e.jsxs("p",{className:"select-none",children:["save more with coupons & up to ",e.jsx("span",{children:"70% off!"})]}),e.jsx("button",{children:"shop now"})]})})}),U=()=>{const[s,t]=n.useState(0),[o,a]=n.useState(null),[i,r]=n.useState(5);return e.jsxs("div",{className:"app-star",children:[[...Array(i)].map((d,m)=>{const l=m+1;return e.jsxs("label",{children:[e.jsx("input",{type:"radio",name:"rating",value:l,onChange:()=>t(l)},d),e.jsx("span",{className:"star",style:{color:l>(o||s)?"#e4e5e9":"#F44336"},onMouseEnter:()=>a(l),onMouseLeave:()=>a(null),children:"★"})]},m)}),e.jsxs("p",{className:"rate-count",children:["(",s,")"]})]})},Oe=s=>{const{addItem:t}=w();return e.jsxs("div",{className:"card",children:[e.jsx("img",{src:s.img,alt:""}),e.jsxs("div",{className:"card-info",children:[e.jsx("span",{children:s.store}),e.jsx("h4",{children:s.title}),e.jsx(U,{}),e.jsxs("span",{className:"price",children:[s.price,"$"]})]}),e.jsx(x,{to:"/cart",className:"cart",onClick:()=>t(s.item),children:e.jsx(v,{})})]})},Ve=""+new URL("n1-P5YJo6kw.jpg",import.meta.url).href,Ge=""+new URL("n2-WcLPzbca.jpg",import.meta.url).href,Te=""+new URL("n3-e1HNTLQB.jpg",import.meta.url).href,Ye=""+new URL("n4-BIz4kY_C.jpg",import.meta.url).href,ze=""+new URL("n5-YfjDPd7s.jpg",import.meta.url).href,_e=""+new URL("n6-qnE_lQ6R.jpg",import.meta.url).href,$e=""+new URL("n7-bd326CYk.jpg",import.meta.url).href,es=""+new URL("n8-GFUnz3_1.jpg",import.meta.url).href,ss=""+new URL("f1-0_VFkC-W.jpg",import.meta.url).href,ts=""+new URL("f2-2kwApdsk.jpg",import.meta.url).href,is=""+new URL("f3-yFaZsNap.jpg",import.meta.url).href,as=""+new URL("f4-MXFUnzFk.jpg",import.meta.url).href,ns=""+new URL("f5-epE6EfVf.jpg",import.meta.url).href,rs=""+new URL("f6-Oqk8u9mk.jpg",import.meta.url).href,os=""+new URL("f7-IsChThPh.jpg",import.meta.url).href,ls=""+new URL("f8-RE1YYeUw.jpg",import.meta.url).href,cs=""+new URL("b1-_26y6_0r.jpg",import.meta.url).href,ds=""+new URL("b2-rwfxaQIg.jpg",import.meta.url).href,ms=""+new URL("b3-betD5JX1.jpg",import.meta.url).href,hs=""+new URL("b4--ZV0b9a_.jpg",import.meta.url).href,us=""+new URL("b5-zvtbAx3O.jpg",import.meta.url).href,ps=""+new URL("b6-IL-AqAxS.jpg",import.meta.url).href,L={homeProducts:[{id:"1",img:Ve,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"2",img:Ge,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"3",img:Te,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"4",img:Ye,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:5,img:ze,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:6,img:_e,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:7,img:$e,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:8,img:es,store:"ur-shop",title:"astronaut t-shirt",price:130}],shopProducts:[{id:"1",img:ss,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"2",img:ts,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"3",img:is,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"4",img:as,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:5,img:ns,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:6,img:rs,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:7,img:os,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:8,img:ls,store:"ur-shop",title:"astronaut t-shirt",price:130}],blogData:[{id:1,num:"10/2",img:cs,title:"light dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. - Blanditiis accusamus iste autem consectetur, quos at voluptate. - Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id - voluptas eligendi debitis dicta! Officia, molestias id! Porro, - assumenda amet? Error fugiat labore suscipit iusto ab consectetur - cumque quibusdam eius commodi.`,text:"continue reading"},{id:2,num:"10/3",img:ds,title:"sommer dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. - Blanditiis accusamus iste autem consectetur, quos at voluptate. - Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id - voluptas eligendi debitis dicta! Officia, molestias id! Porro, - assumenda amet? Error fugiat labore suscipit iusto ab consectetur - cumque quibusdam eius commodi.`,text:"continue reading"},{id:3,num:"10/4",img:ms,title:"dressing room",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. - Blanditiis accusamus iste autem consectetur, quos at voluptate. - Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id - voluptas eligendi debitis dicta! Officia, molestias id! Porro, - assumenda amet? Error fugiat labore suscipit iusto ab consectetur - cumque quibusdam eius commodi.`,text:"continue reading"},{id:4,num:"10/5",img:hs,title:"relaxing dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. - Blanditiis accusamus iste autem consectetur, quos at voluptate. - Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id - voluptas eligendi debitis dicta! Officia, molestias id! Porro, - assumenda amet? Error fugiat labore suscipit iusto ab consectetur - cumque quibusdam eius commodi.`,text:"continue reading"},{id:5,num:"10/6",img:us,title:"light dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. - Blanditiis accusamus iste autem consectetur, quos at voluptate. - Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id - voluptas eligendi debitis dicta! Officia, molestias id! Porro, - assumenda amet? Error fugiat labore suscipit iusto ab consectetur - cumque quibusdam eius commodi.`,text:"continue reading"},{id:6,num:"10/7",img:ps,title:"design",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. - Blanditiis accusamus iste autem consectetur, quos at voluptate. - Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id - voluptas eligendi debitis dicta! Officia, molestias id! Porro, - assumenda amet? Error fugiat labore suscipit iusto ab consectetur - cumque quibusdam eius commodi.`,text:"continue reading"}]},xs=()=>e.jsxs("section",{id:"products",className:"products",children:[e.jsxs("h2",{children:["featured ",e.jsx("span",{children:"products"})]}),e.jsx("p",{children:"styled collection new modern designs"}),e.jsx("div",{className:"products-card",children:L.homeProducts.map((s,t)=>e.jsx(Oe,{title:s.title,img:s.img,store:s.store,price:s.price,item:s},t))})]}),js=()=>e.jsxs("main",{children:[e.jsx(Xe,{}),e.jsx(He,{}),e.jsx(xs,{}),e.jsx(Ke,{}),e.jsx(We,{}),e.jsx(De,{})]}),gs=s=>e.jsxs("div",{className:"blog-elements",children:[e.jsxs("div",{className:"left-side",children:[e.jsx("span",{children:s.num}),e.jsx("img",{src:s.img,alt:"img"})]}),e.jsxs("div",{className:"right-side",children:[e.jsx("h1",{children:s.title}),e.jsx("p",{children:s.desc}),e.jsx("span",{children:s.text})]})]}),As=()=>e.jsxs("div",{className:"blog",children:[e.jsx("div",{className:"blog-banner",children:e.jsxs("div",{className:"blog-info",children:[e.jsx(f.h1,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#readMore"}),e.jsx("p",{children:"read all case studies about our products"})]})}),e.jsx("div",{className:"blog-content",children:L.blogData.map((s,t)=>e.jsx(gs,{num:s.num,img:s.img,title:s.title,desc:s.desc,text:s.text},t))})]}),fs=()=>{const{isEmpty:s,totalUniqueItems:t,items:o,totalItems:a,cartTotal:i,updateItemQuantity:r,removeItem:d,emptyCart:m}=w();return s?e.jsx("p",{className:"empty-cart",children:"your cart is empty"}):e.jsx("section",{className:"cart-container",children:e.jsxs("div",{className:"items",children:[e.jsxs("div",{className:"item",children:[e.jsxs("h5",{children:["cart (",t,") total items: (",a,")"]}),e.jsx("table",{children:e.jsx("tbody",{children:o.map((l,h)=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("img",{src:l.img,alt:"product",style:{height:"7rem",borderRadius:"10PX"}})}),e.jsx("td",{children:l.title}),e.jsxs("td",{children:[l.price,"$"]}),e.jsxs("td",{children:["quantity: (",l.quantity,")"]}),e.jsxs("td",{children:[e.jsx("button",{className:"btn minus",onClick:()=>r(l.id,l.quantity-1),children:"-"}),e.jsx("button",{className:"btn plus",onClick:()=>r(l.id,l.quantity+1),children:"+"}),e.jsx("button",{className:"normal",onClick:()=>d(l.id),children:"remove item"})]})]},h))})})]}),e.jsxs("h5",{className:"total-price",children:["total ",e.jsx("span",{children:"price:"})," ",i,"$"]}),e.jsxs("div",{className:"buttons",children:[e.jsx("button",{className:"clear-btn",onClick:()=>m(),children:"clear cart"}),e.jsx("button",{className:"clear-btn",children:"buy now"})]})]})})},vs=""+new URL("a6-ny59x3Nx.jpg",import.meta.url).href,bs=""+new URL("1-HUEV0f8y.mp4",import.meta.url).href,Ns=()=>{const s=n.useRef(null);return e.jsx(Ae,{ref:s,url:bs,controls:!0,width:"100%",height:"70vh"})},ws=()=>e.jsxs("div",{className:"about",children:[e.jsx("div",{className:"about-banner",children:e.jsxs("div",{className:"about-info",children:[e.jsx(f.h1,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#knowUsBetter"}),e.jsx("p",{children:"know who are we, what we do and how we do"})]})}),e.jsxs("div",{className:"about-us",children:[e.jsx("div",{className:"about-us-img",children:e.jsx("img",{src:vs,alt:"photo"})}),e.jsxs("div",{className:"about-us-desc",children:[e.jsxs("h1",{children:["who we ",e.jsx("span",{children:"are"})," ?"]}),e.jsx("p",{children:"at ur-shop, we are passionate about fashion and believe that clothing is an experience of ones individuality. Our mission is to empower individuals to embrace thier unique style and feel confident in what they wear. We curate a diverse rang of clothing that combines comfort, quality, and the latest trends.Whether you are seeking casual everyday wear, elegant evening outfit, or sporty active wear, we have got you covered.We aspire to make fashion accessible to all while promoting self-expression.inclusivty and environmental responsibility. Join us in celebrating the art of self-fashioning with ur-Shop. inventore aspernatur asperiores quam odit ipsum quis dolores laborum illum nobis perspiciatis in nam quasi itaque. Culpa officia nobis, obcaecati eligendi quae, corrupti nostrum dignissimos iure impedit, voluptatibus architecto voluptas ipsum minima necessitatibus soluta quaerat veritatis earum. Odit provident eum ratione natus harum? Omnis dolores, doloribus quis assumenda dolorum"})]})]}),e.jsxs("div",{className:"our-app",children:[e.jsxs("h1",{children:["download our ",e.jsx("span",{children:"app"})]}),e.jsx(Ns,{})]})]}),Cs=s=>e.jsxs("div",{className:"pin",children:[e.jsx("span",{style:{fontSize:"4rem"},children:e.jsx(se,{})}),e.jsx("p",{className:"pin-text",style:{fontSize:"1.2em"},children:s.text})]}),ks=({location:s,zoomLevel:t})=>e.jsx("div",{style:{height:"60vh",width:"100%"},children:e.jsx(fe,{bootstrapURLKeys:{key:""},defaultCenter:s,defaultZoom:t,children:e.jsx(Cs,{lat:Location.lat,lng:Location.lng,text:Location.address})})}),Bs=()=>{const[s,t]=n.useState({fullName:"",emailAddress:"",subject:"",textArea:""}),o=i=>{const{name:r,value:d}=i.target;t(m=>({...m,[r]:d}))},a=i=>{i.prevendDefault(),console.log(s)};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"contact-form",onSubmit:a,children:[e.jsx("input",{type:"text",name:"fullName",placeholder:"Full Name",value:s.fullName,onChange:o}),e.jsx("input",{type:"text",name:"emailAddress",placeholder:"Email Address",value:s.emailAddress,onChange:o}),e.jsx("input",{type:"text",name:"subject",placeholder:"Subject",value:s.subject,onChange:o}),e.jsx("textarea",{className:"form-text-area",placeholder:"your message",value:s.textArea,onChange:o}),e.jsx("button",{type:"submit",className:"submit-btn",children:"send"})]})})},ys=""+new URL("1-1mCApgEq.png",import.meta.url).href,Qs=""+new URL("2-_mbi1Mws.png",import.meta.url).href,Ls=""+new URL("3-CcfZLORN.png",import.meta.url).href,Es={address:"Konstantin - Furstenwalde/Spree",lat:52.360438,lng:14.059511},Fs=()=>e.jsxs("div",{className:"contact",children:[e.jsx("div",{className:"contact-banner",children:e.jsxs("div",{className:"banner-info",children:[e.jsx(f.h1,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#connectWithUs"}),e.jsx("p",{children:"leave a message. we love to hear from you"})]})}),e.jsxs("div",{className:"contact-info",children:[e.jsxs("div",{className:"our-info",children:[e.jsxs("div",{className:"top-info",children:[e.jsx("p",{children:"get in touch"}),e.jsx("h2",{children:"visit one of our agency locations or contact us today"})]}),e.jsxs("div",{className:"bottom-info",children:[e.jsx("span",{children:"head office"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx(te,{className:"icon locate"}),"Fürstenwalde | Spree"]}),e.jsxs("li",{children:[e.jsx(E,{className:"icon"})," Fürstenwalde@gmail.de"]}),e.jsxs("li",{children:[e.jsx(ie,{className:"icon"})," +49322382916"]}),e.jsxs("li",{children:[e.jsx(ae,{className:"icon"})," monday to saturday 9:00 to 16:00"]})]})]})]}),e.jsx("div",{className:"our-location",children:e.jsx(ks,{location:Es,zoomLevel:11})})]}),e.jsxs("div",{className:"contact-field",children:[e.jsxs("div",{className:"contact-input",children:[e.jsx("p",{children:"leave a message"}),e.jsxs("h4",{children:["we love to hear from you"," ",e.jsx(ne,{className:"face-smile"})]}),e.jsx(Bs,{})]}),e.jsxs("div",{className:"contact-personal",children:[e.jsxs("div",{className:"contact-per",children:[e.jsx("img",{src:ys,alt:"image",width:"70px",height:"70px"}),e.jsxs("div",{className:"person-info",children:[e.jsx("h3",{children:"thomas meier"}),e.jsx("p",{children:"senior product manager"}),e.jsxs("p",{children:[e.jsx("small",{children:"phone :"})," +4936737724"]}),e.jsxs("p",{children:[e.jsx("small",{children:"email :"})," thomasmeier@gmail.de"]})]})]}),e.jsxs("div",{className:"contact-per",children:[e.jsx("img",{src:Qs,alt:"image",width:"70px",height:"70px"}),e.jsxs("div",{className:"person-info",children:[e.jsx("h3",{children:"albert schmidt"}),e.jsx("p",{children:"senior marketing manager"}),e.jsxs("p",{children:[e.jsx("small",{children:"phone :"})," +4936722912"]}),e.jsxs("p",{children:[e.jsx("small",{children:"email :"})," albertschmidt@gmail.de"]})]})]}),e.jsxs("div",{className:"contact-per",children:[e.jsx("img",{src:Ls,alt:"image",width:"70px",height:"70px"}),e.jsxs("div",{className:"person-info",children:[e.jsx("h3",{children:"anatalia dorla"}),e.jsx("p",{children:"senior export manager"}),e.jsxs("p",{children:[e.jsx("small",{children:"phone :"})," +49367236723"]}),e.jsxs("p",{children:[e.jsx("small",{children:"email :"})," anataliadorla@gmail.de"]})]})]})]})]})]}),Ss=s=>{const{addItem:t}=w();return e.jsxs("div",{className:"card",children:[e.jsx("img",{src:s.img,alt:""}),e.jsxs("div",{className:"card-info",children:[e.jsx("span",{children:s.store}),e.jsx("h4",{children:s.title}),e.jsx(U,{}),e.jsxs("span",{className:"price",children:["$",s.price]})]}),e.jsx(x,{to:"/cart",className:"cart",onClick:()=>t(s.item),children:e.jsx(v,{})})]})},Rs=()=>e.jsxs("section",{id:"products",className:"products",children:[e.jsxs("h2",{children:["availabe ",e.jsx("span",{children:"products"})]}),e.jsx("p",{children:"sommer collection new modern designs"}),e.jsx("div",{className:"products-card",children:L.shopProducts.map((s,t)=>e.jsx(Ss,{title:s.title,img:s.img,store:s.store,price:s.price,item:s},t))})]}),Ps=()=>e.jsxs("div",{className:"shop-container",children:[e.jsx("div",{className:"top-banner",children:e.jsxs("div",{className:"banner-info",children:[e.jsx(f.h2,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#stay at home"}),e.jsx("p",{children:"shop more with exciting offers on curated brand"})]})}),e.jsx(Rs,{})]}),qs=""+new URL("signup-cover-mquoUNr4.jpg",import.meta.url).href,Us=()=>{const[s,t]=n.useState({username:"",email:"",password:"",isClicked:!1,showPassword:!1}),o=Q(),a=A=>{const{name:u,value:g,type:k,checked:B}=A.target;t(y=>({...y,[u]:k==="checkbox"?B:g}))},[i,r]=n.useState("password"),[d,m]=n.useState(b),[l,h]=n.useState(!1),j=()=>{l?(h(!1),r("password"),m(b)):(h(!0),r("text"),m(R))},c=n.useId(),C=A=>{A.preventDefault(),de(N,s.email,s.password).then(u=>{const g=u.user;o("/login"),console.log(g),alert("successfully created account")}).catch(u=>{u.code;const g=u.message;alert(g)})};return e.jsxs("div",{className:"signup-container",children:[e.jsx("img",{src:qs,alt:""}),e.jsxs("form",{className:"signup-form",onSubmit:C,children:[e.jsx("div",{className:"form-title",children:e.jsx("h1",{children:"sign-up"})}),e.jsxs("label",{htmlFor:c+"-username",children:[e.jsx(F,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:"text",id:c+"-username",placeholder:"Full-Name...",value:s.username,onChange:a,name:"username",required:!0})})]}),e.jsxs("label",{htmlFor:c+"-email",children:[e.jsx(E,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:"email",id:c+"-email",placeholder:"email...",value:s.email,onChange:a,name:"email",required:!0})})]}),e.jsxs("label",{htmlFor:c+"-password",children:[e.jsx(S,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:i,id:c+"-password",placeholder:"password...",value:s.password,onChange:a,name:"password",required:!0})}),e.jsx("p",{className:"show-password",onClick:j,children:d})]}),e.jsxs("div",{className:"terms",children:[e.jsx("input",{onChange:a,id:c+"-isclicked",type:"checkbox",checked:s.isClicked,name:"isClicked"}),e.jsx("label",{htmlFor:"isClicked",children:"I want to join the newsletter"})]}),e.jsx("button",{className:"submit-btn",children:"sign-up"}),e.jsxs("div",{className:"signin-link",children:[e.jsx("p",{children:"already have an account ?"}),e.jsx(p,{to:"/login",className:"signin",children:"sign-In"})]})]})]})},Is=""+new URL("signin-cover-iDuzHDqo.jpg",import.meta.url).href,Js=()=>{const[s,t]=n.useState({email:"",password:"",isClicked:!1}),o=Q(),a=A=>{const{name:u,value:g,type:k,checked:B}=A.target;t(y=>({...y,[u]:k==="checkbox"?B:g}))},[i,r]=n.useState(b),[d,m]=n.useState("password"),[l,h]=n.useState(!1),j=()=>{l?(h(!1),m("password"),r(b)):(h(!0),m("text"),r(R))},c=n.useId(),C=A=>{A.preventDefault(),me(N,s.email,s.password).then(u=>{u.user,o("/"),alert("successfully logged in")}).catch(u=>{u.code,alert("account not found")})};return e.jsxs("div",{className:"signin-container",children:[e.jsx("img",{src:Is,alt:""}),e.jsxs("form",{className:"signin-form",onSubmit:C,children:[e.jsx("div",{className:"form-title",children:e.jsx("h1",{children:"sign-in"})}),e.jsxs("label",{htmlFor:c+"-username",children:[e.jsx(F,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:"text",id:c+"-email",placeholder:"email...",value:s.email,onChange:a,name:"email",required:!0})})]}),e.jsxs("label",{htmlFor:c+"-password",children:[e.jsx(S,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:d,id:c+"-password",placeholder:"password...",value:s.passcode,onChange:a,name:"password",required:!0})}),e.jsx("p",{className:"show-password",onClick:j,children:i})]}),e.jsxs("div",{className:"terms",children:[e.jsx("input",{onChange:a,id:c+"-isclicked",type:"checkbox",checked:s.isClicked,name:"isClicked"}),e.jsx("label",{htmlFor:"isClicked",children:"remember me!"})]}),e.jsx("button",{className:"submit-btn",children:"login"}),e.jsxs("div",{className:"signup-link",children:[e.jsx("p",{children:"still have no account ?"}),e.jsx(p,{to:"/signup",className:"signup",children:"sign-up"})]})]})]})},Zs=J([{path:"/",element:e.jsx(Re,{}),children:[{path:"/",element:e.jsx(js,{})},{path:"/header",element:e.jsx(q,{})},{path:"/blog",element:e.jsx(As,{})},{path:"/cart",element:e.jsx(fs,{})},{path:"/contact",element:e.jsx(Fs,{})},{path:"/shop",element:e.jsx(Ps,{})},{path:"/about",element:e.jsx(ws,{})},{path:"/signup",element:e.jsx(Us,{})},{path:"/login",element:e.jsx(Js,{})},{path:"/signout",element:e.jsx(P,{})}]}],{basename:"/home"});I.createRoot(document.getElementById("root")).render(e.jsx(H,{children:e.jsx(ge,{fallback:e.jsx("p",{children:"something went wrong. Try again later "}),children:e.jsx(Z,{router:Zs})})})); diff --git a/assets/index-QZwyjE9c.js b/assets/index-QZwyjE9c.js new file mode 100644 index 0000000..dbd3708 --- /dev/null +++ b/assets/index-QZwyjE9c.js @@ -0,0 +1,52 @@ +import{r as n,j as e}from"./react-INodxC-X.js";import{c as I}from"./react-dom-yCHCI4DU.js";import{N as x,L as p,c as J,R as Z}from"./react-router-dom-9lKaVMRO.js";import{u as w,C as H}from"./react-use-cart-DkhTJvtj.js";import{F as M,L as K,S as W,M as D,I as X,a as b,b as O,c as V,B as G,d as T,e as Y,f as z,g as _,h as $,i as ee,G as se,j as L,k as te,l as ie,m as ae,n as v,o as F,R as S,p as R}from"./react-icons--8-lwhlz.js";import{i as ne,g as re,o as oe,s as le,c as ce,a as de}from"./@firebase-tvAkaRvo.js";import"./firebase-68xsxvGW.js";import{e as y,d as me,O as he}from"./react-router-izzsw9Bi.js";import{u as ue,a as pe,m as f}from"./framer-motion-13V5koJz.js";import{S as xe}from"./scrollreveal-p56AIvCW.js";import{E as je}from"./react-error-boundary-dsJbtDRP.js";import{R as ge}from"./react-player-Oj9ckE9S.js";import"./deepmerge-tjhCCVMj.js";import"./scheduler-iwWdm5Ml.js";import"./@remix-run-qg_F8xzm.js";import"./idb-IQTssp_s.js";import"./tslib-uVCKAQsh.js";import"./tealight-1sah5qbi.js";import"./is-dom-node-UIimFn1D.js";import"./is-dom-node-list-rDut-aH9.js";import"./rematrix-PsAVmwnt.js";import"./miniraf--XCH_u-r.js";import"./memoize-one-nHUJQiMq.js";import"./react-fast-compare-LawLdkOo.js";import"./prop-types-g0p8o0B7.js";import"./load-script-KV37v6J9.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const d of r.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function o(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(i){if(i.ep)return;i.ep=!0;const r=o(i);fetch(i.href,r)}})();const Ae=""+new URL("1-OaeyaLRf.png",import.meta.url).href,fe=""+new URL("2-x_zXpq09.png",import.meta.url).href,be={apiKey:"AIzaSyCYYQhL-WDhwizlYoiL6wJp1nt379nNcuI",authDomain:"ur-shop-678c9.firebaseapp.com",projectId:"ur-shop-678c9",storageBucket:"ur-shop-678c9.appspot.com",messagingSenderId:"1058604327129",appId:"1:1058604327129:web:4fd204526b22182d645ec8",measurementId:"G-LGCPYWFG4D"},ve=ne(be),N=re(ve),P=()=>{const[s,t]=n.useState(""),o=y();n.useEffect(()=>{oe(N,async i=>{t(i||null)})},[]);const a=()=>{le(N).then(()=>{o("/signup")}).catch(i=>{alert(i)})};return e.jsx("div",{children:s===null?e.jsxs("div",{className:"sign-btns",children:[e.jsx("button",{children:e.jsx(x,{className:"sign-up",to:"/signup",children:"create account"})}),e.jsx(x,{to:"/login",className:"login",children:"login"})]}):e.jsx(x,{to:"/home",className:"login",onClick:a,children:"sign-out"})})},q=({changeTheme:s,currentTheme:t})=>{const[o,a]=n.useState(!1),{scrollY:i}=ue(),[r,d]=n.useState(!1),m=n.useRef(null),{totalItems:l}=w();n.useEffect(()=>{function j(c){m.current.contains(c.target)||a(!1)}return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)});const h=j=>{j.currentTarget.classList.toggle("active")};return pe(i,"change",j=>{const c=i.getPrevious();j>c&&j>150?d(!0):d(!1)}),e.jsxs(f.div,{variants:{visible:{y:0},hidden:{y:"-100%"}},animate:r?"hidden":"visible",transition:{duration:.25,ease:"easeInOut"},className:"header",children:[e.jsxs("div",{className:"logo-section",children:[t==="light"?e.jsx("img",{src:Ae,alt:"logo",className:"logo-img"}):e.jsx("img",{src:fe,alt:"logo",className:"logo-img"}),e.jsx("h1",{id:"logo",className:"logo",children:"Ur-Shop"})]}),e.jsx("div",{className:"navbar",ref:m,children:e.jsxs("ul",{className:`links ${o?"links-active":"links-inactive"}`,children:[e.jsxs("li",{children:[e.jsx(x,{to:"/",className:"link",onClick:h,children:e.jsx(M,{})}),e.jsx("span",{children:"home"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/shop",className:"link",onClick:h,children:e.jsx(K,{})}),e.jsx("span",{children:"shop"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/blog",className:"link",onClick:h,children:e.jsx(W,{})}),e.jsx("span",{children:"blog"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/about",className:"link",onClick:h,children:e.jsx(D,{})}),e.jsx("span",{children:"about"})]}),e.jsxs("li",{children:[e.jsx(x,{to:"/contact",className:"link",onClick:h,children:e.jsx(X,{})}),e.jsx("span",{children:"contact"})]}),e.jsx("li",{className:"cart-bag",children:e.jsxs(x,{to:"/cart",className:"link",onClick:h,children:[e.jsx("p",{className:"total-items",children:l}),e.jsx(b,{})]})}),e.jsx("li",{id:"close",children:e.jsx(O,{onClick:()=>a(!o)})}),e.jsxs("div",{className:"signing",children:[e.jsx(P,{}),e.jsx("div",{className:"mode",onClick:s,children:t==="dark"?e.jsx(V,{className:"sun"}):e.jsx(G,{className:"moon"})})]})]})}),e.jsxs("div",{className:"mobile",children:[e.jsxs(x,{to:"/cart",onClick:h,className:"mobile-bag",children:[e.jsx("p",{className:"total-items",children:l}),e.jsx(b,{})]}),e.jsx("span",{children:e.jsx(T,{onClick:()=>a(!o)})})]})]})},Ne="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAqqADAAQAAAABAAAAMAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAMACqAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAQEBAQEBAgEBAgMCAgIDBAMDAwMEBQQEBAQEBQYFBQUFBQUGBgYGBgYGBgcHBwcHBwgICAgICQkJCQkJCQkJCf/bAEMBAQEBAgICBAICBAkGBQYJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCf/dAAQAC//aAAwDAQACEQMRAD8A/v4ooooAKKKKACiivye8Bf8ABUvw98a/+CmOs/8ABPP4F+EbvX7TwJZXNx408WNL5Vlpd1GgEVlFGEYzStM6xuWeMAiQKH8tiAD9YaKK+afjN8W/iR4T+Jng/wCFPwv0rTNQ1HxRbardmXVbqa2hiTTFtyUBggnYtKbgDdtwoUnDZAoA+lqK/P3wp/wUZ+DWs+C4vFniDTdXsDb5tNW8i1e8ttP1VRL/AMS57mIbZJ5WiIgKLtfzIc7GmjU9TrX/AAUH/Zk0eK9kg1S71E2N/Hp7pY2U9w7SSx2ro8aouZIma9ghEi5Xz2MWd6sAAfbNFfn74e/b+8Ea/wDEbUvCVrpOoyJBb2FvZ6fHav8A2xNrM13rFveWLWxIjX7NHpLzGTzPL2bn3ldpPpsf7bXwCfVPBVg2oyxQ+Ponk0q4lQRJvRZmeGeN2W4ikT7PKr7otqOux2ViAQD61or4i+H/AO2z4M8b+I/FuqXtldaJ4L8MeEdM8WrqupW0tu9xZ38mo7rhIiCWg8iyWROBLlirIpABbrv7fnwa8NiSx1rSvEcOswGczaP/AGXK1/FFb2i3zzvEpIEX2ZvMVtxyVaIDzlMdAH2/RXwr+1B+2xp3wI8JWmueEdAu/Ep1rwnr3ifTryBR9iWPRrJLxPtJyJVScSKMopYDtnitfWv28vgZ4V8JTeI/GA1HSbu31ZtFk0u9tvs179rSyXUiBHK6psNk63Ct5nKsE/1p8ugD7TorB8LeJtD8a+GNN8ZeGLgXemavaw3tpOoIEsFwgkjcBgCAyMDggHnmt6gAooooAKKKKAP/0P7+KKKKACuX8ceLtK8AeC9Y8ea6WFjollcX9wVGW8q2jaV8D12qcV1Fc54x8LaX448I6r4K1xS9lrFnPY3CjqYriNo3H4qxoA/ykf2nv+C03/BQ79pr463vxstvid4h8H2n2tptG0bQdQnsLLTrfdmGJYoGRZXVMCSSUO0jZJ4IUeHeJf8AgpZ+3t4pv5dQh+J+taPc3l42oXR8PPHobXt/Ictd3f8AZaWv2q5djkzT73JPWvFf2pf2cvHf7Iv7RHi/9mv4k272+reD9SmsGLAgTQqc29wmesdxCUlQjqrCvA+f4SVPYjgg+ooA/wBiX9gTwX+0x4A/ZE8EeGf2v/FS+MviDFp0b6rqKwrC2+Qb1gkZeJpIFIiefCmVlLlQSc9Z+0p4H+B1x4fT42/HDWbrwzp/gSzvrmXWLbVLnSha2U6Ibzzp7aWJvKZYULZOQVBUg18Y/wDBFD9qn9oj9sb/AIJ++EfjP+0j4ej0XVZQ1jZ3kbt/xObOzCwpqZhZQYTO6uNoZlcqZEwjqo+d/wDgv/8AFe+i/Z88BfsgeGdN1TXdV+Nvi/T9LutK0OAXOpXOhaXIuo6uLWJnQO5iiSPDMq4kO5gM0AffvwE+D37EHxl8L+G/j1+zi9prXhM/ZpdNbSL6dtHuJtJDWdvcParJ5E1xbbDGskiFwUUsS0aFez0P9hD9lnw1ZWmn6H4ZFvHY6da6VDi6uSwtbLUl1eFCzSkki9VZS5yzYCsSgC1/NZ+yZ+0340/Zw/Zp/bp/Zt+Hela98KtV8AW2sfEnwHpmuWkVrqmmaZrdtJOqLblriEJa3cfyYZ1IlGeSQPXdB/aA/bf+AqfsdftV+I/jtefEmP8AaH1nQtA8Q+Dbiz0+PTVg1mzEpuNLW2hSeOSwOPOkeRy7nL7QxSgD+grUP2MPgBe6/qXi62026sNZ1O9TUn1Gzvrq3uortJbyUSwSxyhoiTqF0rBMK0crIwKYAybn9jv9lzwbfad8QbrTv7KtfClna4MmoXEVikOlrctDNdo8vlSmJbu5LyT7i3mO0hY4YfzzXHxT/br+Nvhf9sz4t6d+0tqfgaD9nXxr4lXw3plrZ6WYGh0+L7XDBqbz27yy2jqgt7dAyEN5jMZSQo/ZDw/pt9/wVI/4JEaZp/xku38GXnxm8AW39p3VqNn2OfUbVS0saOwzGZDuEbMN0Z2buc0Acx+yN8Vv+CUXxv8AEvir4D/sv+PNL8e6jf8Ah9dI1TSv7Wu9T/4kFi80MdtCLmR1FnAbySNfJO0CQAseDX1x4K/Zc/Zrv4f+Es8PCXxDNOL23k1WbVbnUJphcW66dPG9y8zs4jhiEKqWPlkMRhy7H8YP2b/iF+0/+z58XtJ/4JBftSWHh3RvEWt+ANRHgb4l/DyOKC7Ww0uMRv8Aa7C7hcW1wFRXDYaB5UA2tyw/Mr9jT4vftF/si/8ABGb4P678F/iZf6fcfG/4h2vgWC71KCyn07wXb3Osakl5e2KGFSZrjZub7U8iq5yoXAoA/sD8ffssfBf4leFdF8GeKNPuG07QNNutGtY4Lu4gP9n3tp9iubWVopFaWKWEKGDknciuCGUGpPFv7L3wf8Y39zrd9Z3Nrqdzqkesi/sry4t7mK9jsI9MEkUkbgoGs41hdB8jjllLc1/P38S/2gf2uv2Lf2gfjp+xlB8XdZ+JWm2fwL1n4j6LrmtRWL614d1axEsCpJNbW8MUkUzKJYlliO07QMrnd434z/at/wCChHwY/YZ+A3xG8QfEvX/GPi79qfW/D1vJNo+naXHceHtPl05riSy0NLvyrVr+9UIvnXjlTL5jqB8oAB/XJaW0dnaxWcRYrEioC5LMQowMsckn1J5NWK/Hj/glj4p/bnm8UfE7wF+1Jo3jFPBOm3On3XgjVvHq6SuvzQ3MTi+tLttIkeCYW8yBopSqsUkAbOMD9h6ACiiigAooooA//9H+/iiiigAooooA/OP9sv8A4JNfsHft8+NdG+I/7TXghNY13REWGO+trq4sZ57ZWLC3uXtZIzNEGJKq+SuTtIBOfnvxl/wb3/8ABIjxnqukarN8ILLTTpMiv5Om3l7aQ3SrjEd1HHOFmU453fMeQWINftBRQBkeH9A0LwpoVl4X8MWcOnabp0EdraWtsixQwQxKEjjjjUBVRFAVVAAAAArybxV+zd8E/HHxy8LftJeLNBjvvGvgm1vLPQ9SklmzZQ6guy6EcIkEO6VRtZ2jL44BAr3CigD85P25f2APh9+0f4B+J/jX4faNY2nxe8ZfD7VPAllrtzPcQxmzvUdo4LlYi8bRLOwfeYXkXHyngCvOv2If+CRX7If7Kul/D/4mz+A9MHxT8MeH7KxudVhuLu5todQFokN/cWFvcSGC3a4kDs0kUETvuJOCzZ/WCigD8Bfgt/wQ1+AniX4sfGr4nftt+EdH8X3Hjn4j6n4o0Nra9vkB0i68qSC11KKJreKfZMrv5MqzRqWJB+Y1+0XxN+Bfwj+Mfwe1H4AfEfQbbUfBmq2S6dc6SA0Nu1qu0LCohKFFUKoUIV24GMYr1iigD4a/Ze/4Js/sUfsa+Kr/AMe/s9eBrfR9f1K3FnPqlzc3eo3ptgwbyEuL6aeWOHIBMaMqkgZBwMcx4Z/4JSf8E+fCPgPx38K9F+Gmnjwx8SrmK81/SZprqeymnhd5I5IIJZmS0ZJJHdTaiIqxyMYGP0MooA+FfhH/AME0f2Ivgd4H8ZfD/wCHXgSC3sviFYvpniOa6ury9vtRspImhNvNfXU8t35QjcqqLKFXOVAPNeheOv2JP2VfiZ+zfpv7I3j7wVY6t8O9FtrS00/R7gyutrHYKEtTBNv8+OSFQAkqyCQc/Nyc/VFFAHzD+zH+xz+z5+x5oeqeH/gDo9zpcGtTR3F613qN/qUs0kSbIyZb+4uHAVOAqsFx2r6eoooAKKKKACiiigD/2Q==",we="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAqqADAAQAAAABAAAAMAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAMACqAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAQEBAQEBAgEBAgMCAgIDBAMDAwMEBQQEBAQEBQYFBQUFBQUGBgYGBgYGBgcHBwcHBwgICAgICQkJCQkJCQkJCf/bAEMBAQEBAgICBAICBAkGBQYJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCf/dAAQAC//aAAwDAQACEQMRAD8A/v4ooooAKKKKACivB/hd+058BvjP4n17wV8NvEtpqWseGb+40zUrIFo54bm1cpKvlyBWYKwI3oCp7EiveK1rUJ05clRNPzOLAZlhsXT9rhainG7V4tNXWjV1fVPRroFFFFZHaFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAH/0P7+KKKKACiiigD+Fn4j3XjX4O/t0/Eb4i+CpHilfxZqsksYZkWVTeynBK8qwzlWHKn2yD/R5+zv+3wmofDi38SeLJ31i2XETR8f2hFLjmNxkB8Dnc2Mjncelfir+19b6b4J+Ofi2aHT7nWtd1vxFqMek6PYRtPe387XDnZFEgZyozl3xhR15wD9M/sAf8EqP2tbv4lQftFftQa6PBdncLg+GLPbPcT2x5WC4OWht1GcjBklDcko1e148LF4nLqFXJdMWkrPTlceqnffy6n5V9D7wR9rmGO4k4gxawuWxc7J358RUTdoUoq7a6TqNOMNr3vy/wBHHw4+KvgX4r6OdZ8EXy3SJgSxkFJYi3RZIzyp647HHBNfmrY+KPiP+1PH41+OPiz4oah8LPhd4S1S+0rTo9Fe3tZ5l02Qw3F/f3k8cpVGlDBIlAUKPm55P6e+DPAPg/4faZ/ZHg+wisYTgvsHzuR3dzlmPuSa+Crn9n39pb4B+K/FDfszL4c8T+CvGN/Nqtz4c8SPNbGxvro5uWtp4Yple3mf52ikQbWJ2nk18lkyxn1WH9ocvtbe9y35b+V9fvP2jOXg3ipvAKSpX93mtzW87afcbnwn/a6+AXw6+C17qHjP4zWPxIfQZljm1G1jie8kW7kZLK3NvZBjNO20oCiZkYE7QAcel6H+3V+zZq/gDxF8RL/WZ9Gt/CbxR6tZ6pZ3Fnf2r3HFujWcsYmZpzxEERt54XJBFfIF1/wT++MF5DJ8d7nVNAT4sR+ItM8Q21pbW8kGgQw6VHLDDpoCr5xRkmkZrgrv80htoxknjL9iT9or4369r/x/+It7oOgePmuNCn0HTLJprvS4hoNxJcxrfyvHHJOZ3kYFlj/drt256V6Z5h9geFf26P2bvE3hbxJ4qvdXuNATwjBHdava61Z3Gn3ltbzHEMpt541kdJT8sZRW3MQo+YgV8i/tL/8ABRjwFr3wG8Xad8CdU1fQfHOnafbapbx3+l3NlPHaHULWBpgLuEIUkWbC9cgnHIOOB/aS/Zu+LPxC8MeNf2nP2qtV0TwVfaXomn2WlQaQt3qlnbLp+ox6j5+oMIUlmSSdFQqkRWKIliTg18/eL9P+OH7fPxx1zwxZ33g67vofAS2qz+HL6a/023aXWLK6UXV75ORLOsEjxwqpKKPm5LGgD9db79uj9nLSviW3wrv9WuVuYNQj0efURZXB0qHU5MbbKXUBH9nSckgbC/DHaSDxXD/H/wCOf7QGh/tG6V8DfgvP4V0+Kfw1Pr9zd+JhdbCYLtLbyka3lTGQ4blTgAn2r5h8MfsA/Fv4d/GW9utH0zwv4s8OXfiKXW7LUPEtzf3MmlQXU/n3MEOkj/Q3uCxYJc71bkFumK+tvi1+yL4b+N37Vek/FH4q6FpXiLwnp3ha40sWuoIJ3XUJL2OZJFiZSu0RB13ZzzjGDmgDxr4Mf8FEIPGGtnWPixFp/hnwxaeDI9fvLoNJKFvRq1xpbiCQE+dbStCGt9se9964ySBX1h4O/bA/Z08d29lP4f8AEaF7/VY9DjhuLe5tpl1CaNporeaKaJHheWNS0fmKofGFJPFfI/7TH7Hfxk8Z+PNd8RfAiew0TTZ/COkaDa2kU72BkSw1Rru4sleCMm1imtj5aSx5KHgADmvmvxJ+zH4q+DPwM+OPxQ+MdrbeGINXtdF1Dw7b6fql3rd3Zaro5kNkPtN6olkme6eJV2naQ5RQF6gH7VeFfiR4J8ca3rvh3wpfpe3fhq7Ww1JY1fbb3LRrN5RcqEZwjqWCk7cgNg8V3FfM/wCyL8ItY+DPwL0rQfGEn2nxPqjS6z4guT96fVdRc3F2x/3Xby1xwERQOlfTFABRRRQAUUUUAf/R/v4ooooAKKKKAPLfC/wR+EvgzxvqnxK8M+H7O18Qa0SbzURHuuZATkoJXyyRlst5aEJuJbGSTXqVFFaVKspu83cErJRWy0XkgooorMAooooAjmhhuIWt7hQ8bgqysMgg8EEHggiud8L+CvBvgi0ksPBekWWkQTP5kkdlbx26M5/iZY1UE+55rpqKACiiigAqC4tba7j8q6jWVQQ2HAYZU5Bwe4PIqeigAooooAKKKKACiiigD//Z",Ce=""+new URL("pay-p6ZnC7o9.png",import.meta.url).href,ke=""+new URL("shop-l-Zgz9qJRm.png",import.meta.url).href,Be=()=>{const s=new Date().getFullYear(),t=new Date().toLocaleString([],{month:"long"});return e.jsxs("footer",{className:"footer",children:[e.jsxs("div",{className:"colums",children:[e.jsxs("div",{className:"col",children:[e.jsx("img",{src:ke,alt:"logo",className:"logo"}),e.jsx("h4",{children:"contact"}),e.jsxs("p",{children:[e.jsx("span",{children:e.jsx("strong",{children:"address: "})}),"furstenwalde, germany"]}),e.jsxs("p",{children:[e.jsx("span",{children:e.jsx("strong",{children:"phone: "})}),"+49832728372"]}),e.jsxs("p",{children:[e.jsx("span",{children:e.jsx("strong",{children:"hours: "})}),"10:00 - 23:00 | mon - sat"]})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"about"}),e.jsx(p,{className:"item",to:"/about",children:"aboot us"}),e.jsx(p,{className:"item",to:"/blog",children:"delivery information"}),e.jsx(p,{className:"item",to:"/blog",children:"privacy policy"}),e.jsx(p,{className:"item",to:"/blog",children:"terms & condition"}),e.jsx(p,{className:"item",to:"/contact",children:"contact us"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"my account"}),e.jsx(p,{to:"/login",className:"item",children:"log-in"}),e.jsx(p,{to:"/cart",className:"item",children:"view cart"}),e.jsx(p,{to:"/shop",className:"item",children:"my wishlist"}),e.jsx(p,{to:"/shop",className:"item",children:"track my order"}),e.jsx(p,{to:"/contact",className:"item",children:"help"})]}),e.jsxs("div",{className:"follow",children:[e.jsx("h4",{children:"follow us"}),e.jsxs("div",{className:"icon",children:[e.jsx("a",{href:"https://www.facebook.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx(Y,{})}),e.jsx("a",{href:"https://www.instagram.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx(z,{})}),e.jsx("a",{href:"https://www.linkedin.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx(_,{})}),e.jsx("a",{href:"https://www.twitter.com",className:"social-icon",rel:"noreferrer",target:"_blank",children:e.jsx($,{})})]})]}),e.jsxs("div",{className:"col install",children:[e.jsx("h4",{children:"install app"}),e.jsx("p",{children:"from app store or google play"}),e.jsxs("div",{className:"row",children:[e.jsx("img",{src:Ne,alt:"app"}),e.jsx("img",{src:we,alt:"play"})]}),e.jsx("p",{children:"secured payment gathways"}),e.jsx("img",{src:Ce,alt:"pay"})]})]}),e.jsx("div",{className:"copyright",children:e.jsxs("p",{children:["© ",s," ",t," | ",e.jsx("span",{children:"ur-shop."})," all rights reserved."]})})]})},Qe=""+new URL("b1-m6jVekng.jpg",import.meta.url).href,ye=()=>e.jsxs("section",{className:"newsletter",children:[e.jsx("img",{src:Qe,alt:""}),e.jsxs("div",{className:"newsletter-content",children:[e.jsxs("div",{className:"newsletter-info",children:[e.jsx("h3",{children:"sign up for newsletter"}),e.jsxs("p",{children:["get e-mail updates about our latest shop and ",e.jsx("span",{children:"special offers."})]})]}),e.jsxs("form",{action:"",className:"form",children:[e.jsx("input",{type:"text",placeholder:"your email address"}),e.jsx("button",{className:"newsletter-btn",type:"submit",children:"sign up"})]})]})]}),Ee=()=>{const[s,t]=n.useState(!1);n.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const{pathname:o}=me();n.useEffect(()=>{window.scrollTo(0,0)},[o]);const a=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e.jsx("div",{className:"scrolltop",children:e.jsx("a",{href:"#",className:`${s?"scroll-inline":"scroll-none"}`,children:e.jsx(ee,{className:"scroll-icon",onClick:a})})})};function Le(){const s=localStorage.getItem("theme");return s||"light"}function Fe(){const[s,t]=n.useState(Le()),o=()=>{t(s==="dark"?"light":"dark")};return n.useEffect(()=>{localStorage.setItem("theme",s)},[s]),n.useEffect(()=>{(()=>{xe({origin:"top",distance:"80px",duration:"2000",delay:"1",reset:!1}).reveal(` + .header, + .home-elements, + .shop-container, + .blog-banner, + .blog-content, + .about-banner, + .about-us, + .our-app, + .contact-banner, + .contact-info, + .contact-field, + .signup-container, + .signin-container, + .features, + .products, + .banner, + .second-banner, + .third-banner, + .newsletter, + .footer + `,{interval:1e3})})()},[]),e.jsxs("div",{"data-theme":s,className:"app",children:[e.jsx(Ee,{}),e.jsx(q,{changeTheme:o,currentTheme:s}),e.jsx(he,{}),e.jsx(ye,{}),e.jsx(Be,{})]})}const Se=""+new URL("f1-pvt3Sl7Q.png",import.meta.url).href,Re=""+new URL("f2-c6gnFqC5.png",import.meta.url).href,Pe=""+new URL("f3-q50Eqyn5.png",import.meta.url).href,qe=""+new URL("f4-hFASygKX.png",import.meta.url).href,Ue=""+new URL("f5-tOwql6D1.png",import.meta.url).href,Ie=""+new URL("f6-fIdLszvw.png",import.meta.url).href,Je=()=>e.jsxs("section",{id:"features",className:"features",children:[e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Se,alt:""}),e.jsx("h6",{children:"free shipping"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Re,alt:""}),e.jsx("h6",{children:"online order"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Pe,alt:""}),e.jsx("h6",{children:"save money"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:qe,alt:""}),e.jsx("h6",{children:"promotion"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Ue,alt:""}),e.jsx("h6",{children:"happy sell"})]}),e.jsxs("div",{className:"box",children:[e.jsx("img",{src:Ie,alt:""}),e.jsx("h6",{children:"24/7 support"})]})]}),Ze=""+new URL("b2-YhE0nu-B.jpg",import.meta.url).href,He=()=>e.jsxs("section",{id:"banner",className:"banner",children:[e.jsx("img",{src:Ze,alt:""}),e.jsxs("div",{className:"banner-info",children:[e.jsx("h4",{children:"repair services"}),e.jsxs("h2",{children:["up to ",e.jsx("span",{children:"70% off"})," all t-shirt & accessories"]}),e.jsx("button",{className:"normal",children:"explore more"})]})]}),Me=()=>e.jsxs("section",{id:"second-banner",className:"second-banner",children:[e.jsxs("div",{className:"banner-box",children:[e.jsx("h4",{children:"crazy deals"}),e.jsxs("h2",{children:[e.jsx("span",{children:"buy"})," 1 ",e.jsx("span",{children:"get"})," 1 free"]}),e.jsx("span",{children:"the best classic dress is on sale at ur-shop"}),e.jsx("button",{className:"normal",children:"learn more"})]}),e.jsxs("div",{className:"banner-box",children:[e.jsx("h4",{children:"spring / summer"}),e.jsxs("h2",{children:[e.jsx("span",{children:"up"}),"-comming season"]}),e.jsx("span",{children:"the best classic dress is on sale at ur-shop"}),e.jsx("button",{className:"normal",children:"collection"})]})]}),Ke=()=>e.jsxs("section",{id:"third-banner",className:"third-banner",children:[e.jsxs("div",{className:"th-banner-box",children:[e.jsx("h2",{children:"saison sale"}),e.jsx("h4",{children:"winter collection -50% off"})]}),e.jsxs("div",{className:"th-banner-box",children:[e.jsx("h2",{children:"new footwear collection"}),e.jsx("h4",{children:"spring / summer 2024"})]}),e.jsxs("div",{className:"th-banner-box",children:[e.jsx("h2",{children:"t-shirts"}),e.jsx("h4",{children:"new trendy prints"})]})]}),We=()=>e.jsx("section",{id:"home",children:e.jsx("div",{className:"home-content",children:e.jsxs("div",{className:"home-elements",children:[e.jsx("h4",{className:"select-none",children:"trade-in-offer"}),e.jsxs("h2",{className:"select-none",children:["super values ",e.jsx("span",{children:"deals"})]}),e.jsx(f.h1,{className:"select-none",animate:{opacity:1,scale:1},transition:{duration:5,delay:1,ease:[.5,.71,1,1.5],yoyo:1/0},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"on all products"}),e.jsxs("p",{className:"select-none",children:["save more with coupons & up to ",e.jsx("span",{children:"70% off!"})]}),e.jsx("button",{children:"shop now"})]})})}),U=()=>{const[s,t]=n.useState(0),[o,a]=n.useState(null),[i,r]=n.useState(5);return e.jsxs("div",{className:"app-star",children:[[...Array(i)].map((d,m)=>{const l=m+1;return e.jsxs("label",{children:[e.jsx("input",{type:"radio",name:"rating",value:l,onChange:()=>t(l)},d),e.jsx("span",{className:"star",style:{color:l>(o||s)?"#e4e5e9":"#F44336"},onMouseEnter:()=>a(l),onMouseLeave:()=>a(null),children:"★"})]},m)}),e.jsxs("p",{className:"rate-count",children:["(",s,")"]})]})},De=s=>{const{addItem:t}=w();return e.jsxs("div",{className:"card",children:[e.jsx("img",{src:s.img,alt:""}),e.jsxs("div",{className:"card-info",children:[e.jsx("span",{children:s.store}),e.jsx("h4",{children:s.title}),e.jsx(U,{}),e.jsxs("span",{className:"price",children:[s.price,"$"]})]}),e.jsx(x,{to:"/cart",className:"cart",onClick:()=>t(s.item),children:e.jsx(b,{})})]})},Xe=""+new URL("n1-P5YJo6kw.jpg",import.meta.url).href,Oe=""+new URL("n2-WcLPzbca.jpg",import.meta.url).href,Ve=""+new URL("n3-e1HNTLQB.jpg",import.meta.url).href,Ge=""+new URL("n4-BIz4kY_C.jpg",import.meta.url).href,Te=""+new URL("n5-YfjDPd7s.jpg",import.meta.url).href,Ye=""+new URL("n6-qnE_lQ6R.jpg",import.meta.url).href,ze=""+new URL("n7-bd326CYk.jpg",import.meta.url).href,_e=""+new URL("n8-GFUnz3_1.jpg",import.meta.url).href,$e=""+new URL("f1-0_VFkC-W.jpg",import.meta.url).href,es=""+new URL("f2-2kwApdsk.jpg",import.meta.url).href,ss=""+new URL("f3-yFaZsNap.jpg",import.meta.url).href,ts=""+new URL("f4-MXFUnzFk.jpg",import.meta.url).href,is=""+new URL("f5-epE6EfVf.jpg",import.meta.url).href,as=""+new URL("f6-Oqk8u9mk.jpg",import.meta.url).href,ns=""+new URL("f7-IsChThPh.jpg",import.meta.url).href,rs=""+new URL("f8-RE1YYeUw.jpg",import.meta.url).href,os=""+new URL("b1-_26y6_0r.jpg",import.meta.url).href,ls=""+new URL("b2-rwfxaQIg.jpg",import.meta.url).href,cs=""+new URL("b3-betD5JX1.jpg",import.meta.url).href,ds=""+new URL("b4--ZV0b9a_.jpg",import.meta.url).href,ms=""+new URL("b5-zvtbAx3O.jpg",import.meta.url).href,hs=""+new URL("b6-IL-AqAxS.jpg",import.meta.url).href,E={homeProducts:[{id:"1",img:Xe,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"2",img:Oe,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"3",img:Ve,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"4",img:Ge,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:5,img:Te,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:6,img:Ye,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:7,img:ze,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:8,img:_e,store:"ur-shop",title:"astronaut t-shirt",price:130}],shopProducts:[{id:"1",img:$e,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"2",img:es,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"3",img:ss,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:"4",img:ts,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:5,img:is,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:6,img:as,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:7,img:ns,store:"ur-shop",title:"astronaut t-shirt",price:130},{id:8,img:rs,store:"ur-shop",title:"astronaut t-shirt",price:130}],blogData:[{id:1,num:"10/2",img:os,title:"light dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. + Blanditiis accusamus iste autem consectetur, quos at voluptate. + Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id + voluptas eligendi debitis dicta! Officia, molestias id! Porro, + assumenda amet? Error fugiat labore suscipit iusto ab consectetur + cumque quibusdam eius commodi.`,text:"continue reading"},{id:2,num:"10/3",img:ls,title:"sommer dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. + Blanditiis accusamus iste autem consectetur, quos at voluptate. + Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id + voluptas eligendi debitis dicta! Officia, molestias id! Porro, + assumenda amet? Error fugiat labore suscipit iusto ab consectetur + cumque quibusdam eius commodi.`,text:"continue reading"},{id:3,num:"10/4",img:cs,title:"dressing room",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. + Blanditiis accusamus iste autem consectetur, quos at voluptate. + Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id + voluptas eligendi debitis dicta! Officia, molestias id! Porro, + assumenda amet? Error fugiat labore suscipit iusto ab consectetur + cumque quibusdam eius commodi.`,text:"continue reading"},{id:4,num:"10/5",img:ds,title:"relaxing dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. + Blanditiis accusamus iste autem consectetur, quos at voluptate. + Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id + voluptas eligendi debitis dicta! Officia, molestias id! Porro, + assumenda amet? Error fugiat labore suscipit iusto ab consectetur + cumque quibusdam eius commodi.`,text:"continue reading"},{id:5,num:"10/6",img:ms,title:"light dress",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. + Blanditiis accusamus iste autem consectetur, quos at voluptate. + Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id + voluptas eligendi debitis dicta! Officia, molestias id! Porro, + assumenda amet? Error fugiat labore suscipit iusto ab consectetur + cumque quibusdam eius commodi.`,text:"continue reading"},{id:6,num:"10/7",img:hs,title:"design",desc:`Lorem ipsum dolor sit amet consectetur adipisicing elit. + Blanditiis accusamus iste autem consectetur, quos at voluptate. + Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id + voluptas eligendi debitis dicta! Officia, molestias id! Porro, + assumenda amet? Error fugiat labore suscipit iusto ab consectetur + cumque quibusdam eius commodi.`,text:"continue reading"}]},us=()=>e.jsxs("section",{id:"products",className:"products",children:[e.jsxs("h2",{children:["featured ",e.jsx("span",{children:"products"})]}),e.jsx("p",{children:"styled collection new modern designs"}),e.jsx("div",{className:"products-card",children:E.homeProducts.map((s,t)=>e.jsx(De,{title:s.title,img:s.img,store:s.store,price:s.price,item:s},t))})]}),ps=()=>e.jsxs("main",{children:[e.jsx(We,{}),e.jsx(Je,{}),e.jsx(us,{}),e.jsx(He,{}),e.jsx(Me,{}),e.jsx(Ke,{})]}),xs=s=>e.jsxs("div",{className:"blog-elements",children:[e.jsxs("div",{className:"left-side",children:[e.jsx("span",{children:s.num}),e.jsx("img",{src:s.img,alt:"img"})]}),e.jsxs("div",{className:"right-side",children:[e.jsx("h1",{children:s.title}),e.jsx("p",{children:s.desc}),e.jsx("span",{children:s.text})]})]}),js=()=>e.jsxs("div",{className:"blog",children:[e.jsx("div",{className:"blog-banner",children:e.jsxs("div",{className:"blog-info",children:[e.jsx(f.h1,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#readMore"}),e.jsx("p",{children:"read all case studies about our products"})]})}),e.jsx("div",{className:"blog-content",children:E.blogData.map((s,t)=>e.jsx(xs,{num:s.num,img:s.img,title:s.title,desc:s.desc,text:s.text},t))})]}),gs=()=>{const{isEmpty:s,totalUniqueItems:t,items:o,totalItems:a,cartTotal:i,updateItemQuantity:r,removeItem:d,emptyCart:m}=w();return s?e.jsx("p",{className:"empty-cart",children:"your cart is empty"}):e.jsx("section",{className:"cart-container",children:e.jsxs("div",{className:"items",children:[e.jsxs("div",{className:"item",children:[e.jsxs("h5",{children:["cart (",t,") total items: (",a,")"]}),e.jsx("table",{children:e.jsx("tbody",{children:o.map((l,h)=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("img",{src:l.img,alt:"product",style:{height:"7rem",borderRadius:"10PX"}})}),e.jsx("td",{children:l.title}),e.jsxs("td",{children:[l.price,"$"]}),e.jsxs("td",{children:["quantity: (",l.quantity,")"]}),e.jsxs("td",{children:[e.jsx("button",{className:"btn minus",onClick:()=>r(l.id,l.quantity-1),children:"-"}),e.jsx("button",{className:"btn plus",onClick:()=>r(l.id,l.quantity+1),children:"+"}),e.jsx("button",{className:"normal",onClick:()=>d(l.id),children:"remove item"})]})]},h))})})]}),e.jsxs("h5",{className:"total-price",children:["total ",e.jsx("span",{children:"price:"})," ",i,"$"]}),e.jsxs("div",{className:"buttons",children:[e.jsx("button",{className:"clear-btn",onClick:()=>m(),children:"clear cart"}),e.jsx("button",{className:"clear-btn",children:"buy now"})]})]})})},As=""+new URL("a6-ny59x3Nx.jpg",import.meta.url).href,fs=""+new URL("1-HUEV0f8y.mp4",import.meta.url).href,bs=()=>{const s=n.useRef(null);return e.jsx(ge,{ref:s,url:fs,controls:!0,width:"100%",height:"70vh"})},vs=()=>e.jsxs("div",{className:"about",children:[e.jsx("div",{className:"about-banner",children:e.jsxs("div",{className:"about-info",children:[e.jsx(f.h1,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#knowUsBetter"}),e.jsx("p",{children:"know who are we, what we do and how we do"})]})}),e.jsxs("div",{className:"about-us",children:[e.jsx("div",{className:"about-us-img",children:e.jsx("img",{src:As,alt:"photo"})}),e.jsxs("div",{className:"about-us-desc",children:[e.jsxs("h1",{children:["who we ",e.jsx("span",{children:"are"})," ?"]}),e.jsx("p",{children:"at ur-shop, we are passionate about fashion and believe that clothing is an experience of ones individuality. Our mission is to empower individuals to embrace thier unique style and feel confident in what they wear. We curate a diverse rang of clothing that combines comfort, quality, and the latest trends.Whether you are seeking casual everyday wear, elegant evening outfit, or sporty active wear, we have got you covered.We aspire to make fashion accessible to all while promoting self-expression.inclusivty and environmental responsibility. Join us in celebrating the art of self-fashioning with ur-Shop. inventore aspernatur asperiores quam odit ipsum quis dolores laborum illum nobis perspiciatis in nam quasi itaque. Culpa officia nobis, obcaecati eligendi quae, corrupti nostrum dignissimos iure impedit, voluptatibus architecto voluptas ipsum minima necessitatibus soluta quaerat veritatis earum. Odit provident eum ratione natus harum? Omnis dolores, doloribus quis assumenda dolorum"})]})]}),e.jsxs("div",{className:"our-app",children:[e.jsxs("h1",{children:["download our ",e.jsx("span",{children:"app"})]}),e.jsx(bs,{})]})]}),Ns=()=>{const[s,t]=n.useState({fullName:"",emailAddress:"",subject:"",textArea:""}),o=i=>{const{name:r,value:d}=i.target;t(m=>({...m,[r]:d}))},a=i=>{i.prevendDefault(),console.log(s)};return e.jsx(e.Fragment,{children:e.jsxs("div",{className:"contact-form",onSubmit:a,children:[e.jsx("input",{type:"text",name:"fullName",placeholder:"Full Name",value:s.fullName,onChange:o}),e.jsx("input",{type:"text",name:"emailAddress",placeholder:"Email Address",value:s.emailAddress,onChange:o}),e.jsx("input",{type:"text",name:"subject",placeholder:"Subject",value:s.subject,onChange:o}),e.jsx("textarea",{type:"text",name:"textArea",className:"form-text-area",placeholder:"your message",value:s.textArea,onChange:o}),e.jsx("button",{type:"submit",className:"submit-btn",children:"send"})]})})},ws=""+new URL("1-1mCApgEq.png",import.meta.url).href,Cs=""+new URL("2-_mbi1Mws.png",import.meta.url).href,ks=""+new URL("3-CcfZLORN.png",import.meta.url).href,Bs=()=>e.jsxs("div",{className:"contact",children:[e.jsx("div",{className:"contact-banner",children:e.jsxs("div",{className:"banner-info",children:[e.jsx(f.h1,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#connectWithUs"}),e.jsx("p",{children:"leave a message. we love to hear from you"})]})}),e.jsx("div",{className:"contact-info",children:e.jsxs("div",{className:"our-info",children:[e.jsxs("div",{className:"top-info",children:[e.jsx("p",{children:"get in touch"}),e.jsx("h2",{children:"visit one of our agency locations or contact us today"})]}),e.jsxs("div",{className:"bottom-info",children:[e.jsx("span",{children:"head office"}),e.jsxs("ul",{children:[e.jsxs("li",{children:[e.jsx(se,{className:"icon locate"}),"Fürstenwalde | Spree"]}),e.jsxs("li",{children:[e.jsx(L,{className:"icon"})," Fürstenwalde@gmail.de"]}),e.jsxs("li",{children:[e.jsx(te,{className:"icon"})," +49322382916"]}),e.jsxs("li",{children:[e.jsx(ie,{className:"icon"})," monday to saturday 9:00 to 16:00"]})]})]})]})}),e.jsxs("div",{className:"contact-field",children:[e.jsxs("div",{className:"contact-input",children:[e.jsx("p",{children:"leave a message"}),e.jsxs("h4",{children:["we love to hear from you"," ",e.jsx(ae,{className:"face-smile"})]}),e.jsx(Ns,{})]}),e.jsxs("div",{className:"contact-personal",children:[e.jsxs("div",{className:"contact-per",children:[e.jsx("img",{src:ws,alt:"image",width:"70px",height:"70px"}),e.jsxs("div",{className:"person-info",children:[e.jsx("h3",{children:"thomas meier"}),e.jsx("p",{children:"senior product manager"}),e.jsxs("p",{children:[e.jsx("small",{children:"phone :"})," +4936737724"]}),e.jsxs("p",{children:[e.jsx("small",{children:"email :"})," thomasmeier@gmail.de"]})]})]}),e.jsxs("div",{className:"contact-per",children:[e.jsx("img",{src:Cs,alt:"image",width:"70px",height:"70px"}),e.jsxs("div",{className:"person-info",children:[e.jsx("h3",{children:"albert schmidt"}),e.jsx("p",{children:"senior marketing manager"}),e.jsxs("p",{children:[e.jsx("small",{children:"phone :"})," +4936722912"]}),e.jsxs("p",{children:[e.jsx("small",{children:"email :"})," albertschmidt@gmail.de"]})]})]}),e.jsxs("div",{className:"contact-per",children:[e.jsx("img",{src:ks,alt:"image",width:"70px",height:"70px"}),e.jsxs("div",{className:"person-info",children:[e.jsx("h3",{children:"anatalia dorla"}),e.jsx("p",{children:"senior export manager"}),e.jsxs("p",{children:[e.jsx("small",{children:"phone :"})," +49367236723"]}),e.jsxs("p",{children:[e.jsx("small",{children:"email :"})," anataliadorla@gmail.de"]})]})]})]})]})]}),Qs=s=>{const{addItem:t}=w();return e.jsxs("div",{className:"card",children:[e.jsx("img",{src:s.img,alt:""}),e.jsxs("div",{className:"card-info",children:[e.jsx("span",{children:s.store}),e.jsx("h4",{children:s.title}),e.jsx(U,{}),e.jsxs("span",{className:"price",children:["$",s.price]})]}),e.jsx(x,{to:"/cart",className:"cart",onClick:()=>t(s.item),children:e.jsx(b,{})})]})},ys=()=>e.jsxs("section",{id:"products",className:"products",children:[e.jsxs("h2",{children:["availabe ",e.jsx("span",{children:"products"})]}),e.jsx("p",{children:"sommer collection new modern designs"}),e.jsx("div",{className:"products-card",children:E.shopProducts.map((s,t)=>e.jsx(Qs,{title:s.title,img:s.img,store:s.store,price:s.price,item:s},t))})]}),Es=()=>e.jsxs("div",{className:"shop-container",children:[e.jsx("div",{className:"top-banner",children:e.jsxs("div",{className:"banner-info",children:[e.jsx(f.h2,{animate:{opacity:1,scale:1},transition:{duration:5,delay:.3,ease:[.5,.71,1,1.5]},initial:{opacity:0,scale:.5},whileHover:{scale:1.2},children:"#stay at home"}),e.jsx("p",{children:"shop more with exciting offers on curated brand"})]})}),e.jsx(ys,{})]}),Ls=""+new URL("signup-cover-mquoUNr4.jpg",import.meta.url).href,Fs=()=>{const[s,t]=n.useState({username:"",email:"",password:"",isClicked:!1,showPassword:!1}),o=y(),a=A=>{const{name:u,value:g,type:k,checked:B}=A.target;t(Q=>({...Q,[u]:k==="checkbox"?B:g}))},[i,r]=n.useState("password"),[d,m]=n.useState(v),[l,h]=n.useState(!1),j=()=>{l?(h(!1),r("password"),m(v)):(h(!0),r("text"),m(R))},c=n.useId(),C=A=>{A.preventDefault(),ce(N,s.email,s.password).then(u=>{const g=u.user;o("/login"),console.log(g),alert("successfully created account")}).catch(u=>{u.code;const g=u.message;alert(g)})};return e.jsxs("div",{className:"signup-container",children:[e.jsx("img",{src:Ls,alt:""}),e.jsxs("form",{className:"signup-form",onSubmit:C,children:[e.jsx("div",{className:"form-title",children:e.jsx("h1",{children:"sign-up"})}),e.jsxs("label",{htmlFor:c+"-username",children:[e.jsx(F,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:"text",id:c+"-username",placeholder:"Full-Name...",value:s.username,onChange:a,name:"username",required:!0})})]}),e.jsxs("label",{htmlFor:c+"-email",children:[e.jsx(L,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:"email",id:c+"-email",placeholder:"email...",value:s.email,onChange:a,name:"email",required:!0})})]}),e.jsxs("label",{htmlFor:c+"-password",children:[e.jsx(S,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:i,id:c+"-password",placeholder:"password...",value:s.password,onChange:a,name:"password",required:!0})}),e.jsx("p",{className:"show-password",onClick:j,children:d})]}),e.jsxs("div",{className:"terms",children:[e.jsx("input",{onChange:a,id:c+"-isclicked",type:"checkbox",checked:s.isClicked,name:"isClicked"}),e.jsx("label",{htmlFor:"isClicked",children:"I want to join the newsletter"})]}),e.jsx("button",{className:"submit-btn",children:"sign-up"}),e.jsxs("div",{className:"signin-link",children:[e.jsx("p",{children:"already have an account ?"}),e.jsx(p,{to:"/login",className:"signin",children:"sign-In"})]})]})]})},Ss=""+new URL("signin-cover-iDuzHDqo.jpg",import.meta.url).href,Rs=()=>{const[s,t]=n.useState({email:"",password:"",isClicked:!1}),o=y(),a=A=>{const{name:u,value:g,type:k,checked:B}=A.target;t(Q=>({...Q,[u]:k==="checkbox"?B:g}))},[i,r]=n.useState(v),[d,m]=n.useState("password"),[l,h]=n.useState(!1),j=()=>{l?(h(!1),m("password"),r(v)):(h(!0),m("text"),r(R))},c=n.useId(),C=A=>{A.preventDefault(),de(N,s.email,s.password).then(u=>{u.user,o("/"),alert("successfully logged in")}).catch(u=>{u.code,alert("account not found")})};return e.jsxs("div",{className:"signin-container",children:[e.jsx("img",{src:Ss,alt:""}),e.jsxs("form",{className:"signin-form",onSubmit:C,children:[e.jsx("div",{className:"form-title",children:e.jsx("h1",{children:"sign-in"})}),e.jsxs("label",{htmlFor:c+"-username",children:[e.jsx(F,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:"text",id:c+"-email",placeholder:"email...",value:s.email,onChange:a,name:"email",required:!0})})]}),e.jsxs("label",{htmlFor:c+"-password",children:[e.jsx(S,{className:"form-icon"}),e.jsx("div",{className:"input-info",children:e.jsx("input",{type:d,id:c+"-password",placeholder:"password...",value:s.passcode,onChange:a,name:"password",required:!0})}),e.jsx("p",{className:"show-password",onClick:j,children:i})]}),e.jsxs("div",{className:"terms",children:[e.jsx("input",{onChange:a,id:c+"-isclicked",type:"checkbox",checked:s.isClicked,name:"isClicked"}),e.jsx("label",{htmlFor:"isClicked",children:"remember me!"})]}),e.jsx("button",{className:"submit-btn",children:"login"}),e.jsxs("div",{className:"signup-link",children:[e.jsx("p",{children:"still have no account ?"}),e.jsx(p,{to:"/signup",className:"signup",children:"sign-up"})]})]})]})},Ps=J([{path:"/",element:e.jsx(Fe,{}),children:[{path:"/",element:e.jsx(ps,{})},{path:"/header",element:e.jsx(q,{})},{path:"/blog",element:e.jsx(js,{})},{path:"/cart",element:e.jsx(gs,{})},{path:"/contact",element:e.jsx(Bs,{})},{path:"/shop",element:e.jsx(Es,{})},{path:"/about",element:e.jsx(vs,{})},{path:"/signup",element:e.jsx(Fs,{})},{path:"/login",element:e.jsx(Rs,{})},{path:"/signout",element:e.jsx(P,{})}]}]);I.createRoot(document.getElementById("root")).render(e.jsx(H,{children:e.jsx(je,{fallback:e.jsx("p",{children:"something went wrong. Try again later "}),children:e.jsx(Z,{router:Ps})})})); diff --git a/assets/index-zd4xGniY.css b/assets/index-jspiMOTX.css similarity index 86% rename from assets/index-zd4xGniY.css rename to assets/index-jspiMOTX.css index 1e5c662..b7f138d 100644 --- a/assets/index-zd4xGniY.css +++ b/assets/index-jspiMOTX.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Overlock+SC&family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap";*{margin:0;padding:0;box-sizing:border-box;font-family:Overlock SC,sans-serif}:root{--primary-color: #f44336;--secondary-color: #222;--body-background: #fff;--navbar-background: #eee;--text-color: #000;--home-text-color: #fff;--paragraph-color: #465b52;--box-border: #cce7d0;--card-color: #cfcfcf3b;--box-shadw: rgba(0, 0, 0, .3);--transition: .5s ease-in-out;--form-border: .063rem solid #000}[data-theme=dark]{--body-background: hsl(220, 18%, 13%);--secondary-color: #fff;--navbar-background: hsl(220, 18%, 13%);--text-color: #fff;--home-text-color: #000;--paragraph-color: #6c6c6c;--box-border: #f44336;--card-color: hsl(220, 18%, 99%);--box-shadw: rgba(32, 29, 233, .637) 0px 25px 50px -12px;--form-border: 1px solid #f44336}.app{background-color:var(--body-background);display:flex;flex-direction:column;transition:var(--transition)}::-webkit-scrollbar{background-color:#fff;width:.7rem}::-webkit-scrollbar-thumb{background-color:var(--primary-color)}body{background-color:var(--body-background);overflow-x:hidden}html{scroll-behavior:smooth}h1{line-height:4rem;color:var(--text-color)}h2{font-size:2.875rem;line-height:3.375rem;color:var(--text-color)}h4{font-size:1.5rem;color:var(--text-color)}h6{font-weight:700;font-size:.75rem}p{font-size:1rem;color:var(--paragraph-color)}a{text-decoration:none}small{font-weight:700;color:#000}.section-p1{padding:2.5rem 5rem}.section-m1{margin:2.5rem 0}button.normal{font-size:.875rem;font-weight:600;padding:.938rem 1.875rem;color:#000;background-color:#fff;border-radius:.313rem;cursor:pointer;border:none;outline:none;transition:all .3s ease-in-out}button.normal:hover{background-color:var(--primary-color);color:#fff}button.white{font-size:.813rem;font-weight:600;padding:.688rem 1.125rem;color:#fff;background-color:transparent;cursor:pointer;border:.063 solid white;outline:none;transition:all .3s ease-in-out}#home{display:flex;justify-content:center;align-items:center;flex-direction:column;background-image:url(./background-T013w6K6.jpg);background-position:top center;background-repeat:no-repeat;background-size:cover;height:95vh;width:100%;overflow:hidden;position:relative;transition:all .4s ease-in-out}#home:hover{filter:grayscale(0%)}.home-content{display:flex;justify-content:center;align-items:flex-start}.home-content>.home-elements{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;position:absolute;top:50%;left:14%;transform:translateY(-50%)}.home-content>.home-elements h4{padding-bottom:1rem;color:var(--home-text-color)}.home-content>.home-elements h2{color:var(--home-text-color)}.home-content>.home-elements h1{color:var(--text-color);-webkit-text-stroke:.125rem var(--primary-color)}.home-elements .select-none{text-transform:capitalize;-webkit-user-select:none;user-select:none}.home-elements h2 span{color:#fff}.home-elements p{font-weight:600;color:#000;margin:.938rem 0 1rem}.home-elements p span{color:var(--primary-color)}.home-elements button{padding:.625rem 1.25rem;font-size:1rem;border:none;cursor:pointer;font-weight:600;border-radius:1rem;transition:all .4s ease-in-out}.home-elements button:hover{background-color:var(--primary-color);color:#fff}.features{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.features .box{width:11.25rem;text-align:center;padding:1.563rem 1rem;margin:3rem 2rem;border:.063rem solid var(--box-border);background-color:var(--card-color);cursor:pointer;border-radius:.625rem;transition:all .4s ease-in-out}.features .box:hover{transform:scale(1.1);box-shadow:var(--box-shadw)}.features .box img{width:100%;margin-bottom:.625rem}.features .box h6{font-size:large;background-color:var(--primary-color)}.features .box:nth-child(2) h6{background-color:#cdebbc}.features .box:nth-child(3) h6{background-color:#d1e8f2}.features .box:nth-child(4) h6{background-color:#cbd626}.features .box:nth-child(5) h6{background-color:#938ae3}.features .box:nth-child(6) h6{background-color:#3677c1}.products{text-align:center;padding-bottom:2rem}.products h2{color:var(--text-color)}.products h2 span{color:var(--primary-color)}.products p{text-transform:capitalize;font-weight:600}.products-card{display:flex;justify-content:space-between;align-items:center;padding:2.5rem;flex-wrap:wrap}.products-card .card{background-color:var(--card-color);border-radius:.625rem;width:23%;min-width:15.625rem;padding:.625rem 1rem;margin:1rem 0;position:relative;cursor:pointer;transition:all .4s ease-in-out}.products-card .card:hover{box-shadow:var(--box-shadw)}.products-card .card img{width:100%;border-radius:.625rem;transition:all .4s ease-in-out}.products-card .card img:hover{transform:scale(1.1)}.products-card .card .card-info{text-align:left;font-weight:500;padding:.625rem 0}.products-card .card .card-info span{color:#606063;font-weight:600}.products-card .card .card-info h4{font-weight:700;color:#000}.products-card .card .card-info .price{font-size:1.25rem;color:var(--primary-color);font-family:Courier New,Courier,monospace;font-weight:600}.products-card .card .cart{position:absolute;right:10%;bottom:4%;color:#fff;font-weight:700;background-color:var(--primary-color);padding:.625rem;border-radius:50%;transition:all .4s ease-in-out}.products-card .card .cart:hover{color:var(--primary-color);background-color:#fff;border:1px solid var(--primary-color)}.banner{width:100%;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;text-transform:capitalize;position:relative}.banner img{width:100%;height:40vh;object-fit:cover;object-position:center}.banner .banner-info{position:absolute}.banner h4{color:#fff;font-size:1rem;letter-spacing:.125rem}.banner h2{color:#fff;text-transform:capitalize;padding:1rem;font-size:1.875rem}.banner h2 span{color:var(--primary-color)}.banner button{font-size:1rem}.second-banner{display:flex;justify-content:space-around;flex-wrap:wrap;padding:2rem;margin-top:1rem}.second-banner .banner-box{background:url(./img4-mTaL6IX5.jpg) center / cover no-repeat;height:50vh;min-width:47%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:1.875rem;text-transform:capitalize;border-radius:.313rem;-webkit-user-select:none;user-select:none}.second-banner .banner-box:nth-child(1) h4{font-weight:700}.second-banner .banner-box:nth-child(1) h2 span{color:var(--primary-color);font-weight:700}.second-banner .banner-box:nth-child(1) span{color:#000;font-weight:700}.second-banner .banner-box:nth-child(2){background:url(./b10-orZ6a7sn.jpg) center / cover no-repeat}.second-banner .banner-box:nth-child(2) h4{color:#fff}.second-banner .banner-box:nth-child(2) h2{font-weight:700;color:#fff}.second-banner .banner-box:nth-child(2) h2 span{color:var(--primary-color)}.second-banner .banner-box span{padding-bottom:1rem;color:#fff;font-weight:700}.third-banner{display:flex;justify-content:space-around;align-items:center;padding:0 3.125rem;flex-wrap:wrap}.third-banner>.th-banner-box{background:url(./img3-9ikZ3owi.jpg) top / cover no-repeat;height:30vh;min-width:30%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;-webkit-user-select:none;user-select:none;padding:1.25rem;margin-bottom:1.25rem;border-radius:.313rem}.third-banner .th-banner-box h2{color:#fff}.third-banner .th-banner-box h4{color:var(--primary-color);font-weight:600}.third-banner>.th-banner-box:nth-child(2){background:url(./img6-eUej5spT.jpg) top / cover no-repeat}.third-banner>.th-banner-box:nth-child(3){background:url(./img5-AxB0Z4sI.jpg) top / cover no-repeat}@media screen and (max-width: 799px){.section-p1{padding:2.5rem}#home{background-position:center;height:91vh}.home .home-content .home-elements{padding:0 1.875rem}.features{justify-content:center}.features .box{margin:4rem 2rem}.products .products-card{justify-content:center}.products .products-card .card{margin:1.875rem}.banner{height:25vh}.second-banner .banner-box{min-width:100%;height:30vh;margin-bottom:1.5rem}.second-banner .banner-box:nth-child(1){background-position:top}.second-banner .banner-box:nth-child(2){margin-bottom:0}.third-banner{padding:0 1.688rem}.third-banner .th-banner-box{width:27%}.third-banner .th-banner-box h2{font-size:2rem;line-height:2rem}.newsletter{padding:2.5rem}.form{width:70%}footer{margin:0}}@media screen and (max-width: 477px){#home{height:100vh}.home-content>.home-elements{top:60%}.home-elements p,h4{font-weight:600;color:#fff}.home-elements h1{font-size:2.375rem;-webkit-text-stroke:0!important}.home-elements h4{padding-bottom:0!important}.home-elements h1,h2{line-height:1}.features .box{margin:2rem 1rem}.products p{padding-bottom:1rem}.products .products-card{padding:0 1.25rem}.products .products-card .card{width:100%;margin:1.25rem}.banner{height:30vh}.second-banner,.second-banner .banner-box{padding:1.25rem}.second-banner .banner-box{height:40vh}.third-banner{padding:0 1.25rem}.third-banner .th-banner-box{width:100%}}.header{display:flex;justify-content:space-between;align-items:center;background-color:var(--navbar-background);position:sticky;padding:0 2rem;top:0;left:0;width:100%;z-index:10;box-shadow:0 .313rem 1rem var(--box-shadw)}.logo-section{display:flex;justify-content:center;align-items:center;gap:.625rem}.header .logo-section .logo-img{width:3.75rem;height:3.75rem;border-radius:50%;outline:.125rem solid var(--secondary-color);cursor:pointer}.header .logo-section .logo{cursor:pointer;color:var(--secondary-color)}.navbar{display:flex;justify-content:center;align-items:center}.links{display:flex;justify-content:center;align-items:center;gap:2.5rem}.links li{list-style-type:none;font-size:1.563rem;position:relative}.links .cart-bag{position:relative}.links .cart-bag .total-items{position:absolute;left:57%;bottom:49%;background-color:var(--primary-color);color:#fff;padding:.125rem .25rem;border-radius:50%;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif}.links li .link{font-weight:600;color:var(--secondary-color);cursor:pointer;transition:all .4s ease-in-out}.links li .link:hover,.links li .link.active{color:var(--primary-color)}.links li .link:hover:after,.links li .link.active:after{content:"";position:absolute;bottom:0;left:0;height:.125rem;width:100%;background-color:var(--primary-color)}.links li span{display:none}.links .translate{font-size:1.875rem;cursor:pointer}.links .translate:hover{color:var(--primary-color)}.navbar .links .signing{margin-left:1.25rem;display:flex;justify-content:center;align-items:center}.navbar .links .signing button{padding:.875rem 1.25rem;background-color:var(--primary-color);border:none;cursor:pointer}.navbar .links .signing button .sign-up{color:#fff;text-transform:capitalize}.navbar .links .signing .login{color:var(--secondary-color);font-weight:700;text-transform:capitalize;border:.125rem solid var(--secondary-color);padding:.625rem 1.25rem;border-radius:75px;margin:0 .625rem;transition:all .4s ease-in-out}.navbar .links .signing .login:hover{border:.125rem solid var(--primary-color);color:var(--primary-color)}.navbar .links .signing .mode{font-size:1.875rem;margin-top:.5rem;cursor:pointer}.navbar .links .signing .mode .sun{color:#ff0}.navbar .links .signing .mode .moon{color:#00008b}#close,.mobile{display:none}@media screen and (max-width: 1200px){.header{justify-content:space-between;padding:0 2rem}.header .logo-section .logo h1{font-size:1rem}.links{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;height:100vh;width:18.75rem;position:fixed;top:0;padding:5rem 0 0 1.875rem;box-shadow:0 2.5rem 3.75rem var(--box-shadw);background-color:var(--navbar-background);transition:all .4s ease-in-out;z-index:999}.links-active{right:0}.links-inactive{right:-18.75rem}.links li span{display:inline-block;color:var(--secondary-color);margin-left:1rem;font-weight:600;text-transform:capitalize}.navbar .links .signing{display:flex;flex-direction:column;align-items:flex-start;gap:1.25rem;position:absolute;top:70%;left:5%}.navbar .links .signing .login{margin:0}.navbar .links .signing .mode{padding-left:1.313rem}.mobile{display:flex;align-items:center;cursor:pointer}.mobile .mobile-bag{position:relative;transition:all .4s ease-in-out;color:var(--secondary-color)}.mobile span{color:var(--secondary-color)}.header .mobile .total-items{position:absolute;left:40%;bottom:49%;background-color:var(--primary-color);color:#fff;padding:.125rem .25rem;border-radius:50%;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif}.header .mobile .mobile-bag:hover,.header .mobile .mobile-bag.active{color:var(--primary-color)}.header .mobile .mobile-bag:hover:after,.header .mobile .mobile-bag.active:after{content:"";position:absolute;bottom:0;left:0;height:.125rem;width:75%;background-color:var(--primary-color)}.mobile a,span{color:#000;padding-right:.625rem;font-size:1.5rem;transition:all .4s ease-in-out}.mobile a:hover,.mobile span:hover{color:var(--primary-color)}#close{display:initial;font-size:1.5rem;color:var(--secondary-color);position:absolute;top:1.875rem;left:1.875rem;cursor:pointer}#close:hover{color:var(--primary-color)}.cart-bag{display:none}}@media screen and (max-width: 477px){.header{justify-content:space-between;padding:0 1rem;position:fixed}.logo-section{gap:.625rem}.header .logo-section .logo-img{width:3.125rem;height:3.125rem;border-radius:50%}.header .logo-section .logo h1{font-size:10rem}.links{width:14.125rem}.navbar .links .signing{display:flex;flex-direction:column;align-items:flex-start;gap:1.25rem;position:absolute;top:70%;left:5%}.navbar .signing .login{margin:0}.navbar .links .signing .mode{padding-left:1.313rem}}.sign-btns{display:flex;justify-content:center;align-items:center;gap:1.25rem}.sign-btns .login{text-align:center}@media screen and (max-width: 477px){.sign-btns{display:flex;align-items:flex-start;flex-direction:column}}footer{margin:2.5rem 0 0;min-width:60%}footer .colums{display:flex;justify-content:space-around;align-items:flex-start;flex-wrap:wrap}footer .col{display:flex;flex-direction:column;margin-bottom:1.25rem}footer .col p span{color:var(--secondary-color);text-transform:capitalize;margin-bottom:.188rem}footer .colums .col .logo{margin-bottom:1.25rem;transition:all .4s ease-in-out;cursor:pointer;margin-top:-.625rem;border-radius:.313rem;width:100%}footer h4{color:var(--secondary-color);text-transform:capitalize;margin-bottom:.625rem}footer p{font-size:.875rem;margin-bottom:.625rem;color:var(--paragraph-color);font-weight:600}footer .col .item{font-size:.875rem;text-decoration:none;color:var(--paragraph-color);margin-bottom:.875rem;font-weight:600}footer .item:hover{text-decoration:underline}footer .install .row img{border:.063rem solid var(--secondary-color);border-radius:.313rem;cursor:pointer}footer .install img{margin:.625rem 0 1rem;cursor:pointer}footer .follow .icon{margin-top:1.25rem}footer .follow .icon .social-icon{color:var(--secondary-color);margin-right:.375rem;font-size:1.875rem}footer .follow .icon .social-icon:nth-child(1){color:#3b5998}footer .follow .icon .social-icon:nth-child(2){color:#792266}footer .follow .icon .social-icon:nth-child(3){color:#0a66c2}footer .follow .icon .social-icon:nth-child(4){color:var(--secondary-color)}footer .copyright{text-align:center}footer .copyright p{font-weight:600;font-size:1.1rem}footer .copyright p span{color:var(--secondary-color);font-weight:700;font-size:1.25rem;color:var(--primary-color)}@media screen and (max-width: 477px){footer .copyright{text-align:start;padding-left:1.4rem}footer .copyright p{font-weight:600;font-size:.9rem}footer .colums .col .logo{width:100%}footer .colums .col:nth-of-type(1){padding-inline:1rem}}.newsletter{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:1.875rem 0;position:relative;width:100%}.newsletter img{width:100%;height:30vh;object-fit:cover}.newsletter .newsletter-content{position:absolute;width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;padding:0 3rem}.newsletter .newsletter-info{text-transform:capitalize}.newsletter .newsletter-info h3{color:#fff;font-weight:700;font-size:1.875rem}.newsletter .newsletter-info p{font-size:1.125rem;font-weight:600;color:var(--paragraph-color);margin:.938rem 0 .625rem}.newsletter .newsletter-info p span{color:var(--primary-color)}.form{display:flex;width:30%}.form input{height:3.125rem;padding:0 1.25rem;font-size:.875rem;width:100%;border:.063rem solid transparent;border-radius:.313rem;outline:none;border-top-right-radius:0;border-bottom-right-radius:0}.form input::placeholder{font-weight:600}.form .newsletter-btn{height:3.125rem;border-top-right-radius:.313rem;border-bottom-right-radius:.313rem;font-weight:600;white-space:nowrap;width:50%;border:none;color:#fff;background-color:var(--primary-color);transition:all .4s ease-in-out}.form .newsletter-btn:hover{border:.063rem solid var(--primary-color);background-color:transparent}@media screen and (max-width: 1280px){.newsletter{padding:0}.form{width:69%}}@media screen and (max-width: 477px){.newsletter .newsletter-info h3{font-size:1.25rem}.newsletter .newsletter-content{padding:0 1rem}.newsletter .newsletter-info p{font-size:1rem}.newsletter .form{width:100%}}@media screen and (max-width: 799px){.newsletter .form{width:100%}}.scrolltop{position:fixed;bottom:2.5rem;right:2.5rem;z-index:10}.scrolltop a{background-color:var(--primary-color);padding:1rem;border-radius:100%;display:flex;justify-content:center;align-items:center;transition:all .4s ease-in-out;z-index:1}.scroll-inline{opacity:1;visibility:visible}.scroll-none{opacity:0;visibility:hidden}.scroll-icon{color:#fff;font-size:1.3rem}.app-star{display:flex;justify-content:flex-start;align-items:center}input[type=radio]{display:none}.star{font-size:1.7rem;cursor:pointer;margin:.313rem}.app-star .rate-count{padding-bottom:0}@media screen and (max-width: 477px){.star{font-size:1.2rem}}.blog{width:100%}.blog .blog-banner{background:url(./b19-YXo27Twr.jpg) no-repeat center / cover;width:100%;height:40vh;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;-webkit-user-select:none;user-select:none}.blog .blog-banner .blog-info{text-transform:capitalize}.blog .blog-banner .blog-info h1{color:#fff;text-align:center;font-weight:700;font-size:3.125rem}.blog .blog-banner .blog-info p{color:#fff;font-weight:700}.blog .blog-content{display:flex;justify-content:center;align-items:center;padding:5rem;flex-direction:column}.blog .blog-content .blog-elements{display:flex;justify-content:center;align-items:center;gap:3.125rem;padding-bottom:4rem}.blog .blog-content .blog-elements .left-side{display:flex;flex-direction:column}.blog .blog-content .blog-elements .left-side span{font-size:4rem;color:#606063;font-weight:700}.blog .blog-content .blog-elements .left-side img{height:25rem;width:31.25rem;object-fit:cover;object-position:top;filter:grayscale(100%);border-radius:.313rem;transition:all .4s ease-in-out}.blog .blog-content .blog-elements .left-side img:hover{filter:grayscale(0%)}.blog .blog-content .blog-elements .right-side p{margin-bottom:1rem}.blog .blog-content .blog-elements .right-side span{font-weight:600;font-size:1rem;color:var(--secondary-color)}@media screen and (max-width: 477px){.blog .blog-content{display:flex;justify-content:flex-start;padding:0!important;align-items:flex-start;flex-direction:column}.blog .blog-content .blog-elements{flex-direction:column;gap:1.875rem;padding-bottom:2rem;padding-inline:1rem}.blog .blog-content .blog-elements .left-side img{width:100%}.blog .blog-content .blog-elements .right-side{text-align:center}}@media screen and (max-width: 1024px){.blog .blog-content{display:flex;justify-content:flex-start;padding:0!important;align-items:flex-start;flex-direction:column}.blog .blog-content .blog-elements{flex-direction:column;gap:1.875rem;padding-bottom:2rem;padding-inline:1rem}.blog .blog-content .blog-elements .right-side{text-align:center}.blog .blog-content .blog-elements .right-side p{margin-bottom:1rem}}.cart-container{border-collapse:collapse;padding-top:2rem}.cart-container .items{padding:2.5rem;margin-bottom:1rem}.cart-container .items .item{font-weight:700}.empty-cart{display:flex;justify-content:center;align-items:center;height:calc(100vh - 70px);font-weight:600;font-size:1.7rem}.cart-container .items .item h5{font-weight:700;text-transform:capitalize;font-size:1.4rem;margin-bottom:1rem;color:var(--secondary-color)}.cart-container .items .total-price{text-align:right;font-size:2rem;margin-top:1rem;color:var(--secondary-color)}.cart-container .items .total-price span{color:var(--primary-color);font-size:1.875rem}table{display:flex;justify-content:center;background-color:#c9c7c7}table tr td{padding:0 4.375rem}table .btn{font-size:.875rem;font-weight:600;padding:.938rem;color:#000;background-color:#fff;border-radius:.313rem;cursor:pointer;border:none;outline:none;transition:all .3s ease-in-out;margin-right:.625rem}table .btn:hover{background-color:var(--primary-color);color:#fff}.cart-container .items .clear-btn{font-size:1rem;font-weight:600;padding:.938rem;color:#fff;background-color:var(--primary-color);border-radius:.313rem;cursor:pointer;border:none;outline:none;margin-left:.625rem;margin-top:.5rem;float:right;transition:all .3s ease-in-out;opacity:1}.cart-container .items .clear-btn:hover{opacity:.7}@media screen and (max-width: 600px){.cart-container .items{padding:0}.cart-container .items .item{font-weight:700;padding-inline:1rem}.cart-container .items .item h5{padding-left:0!important}table{padding:2rem}table tbody{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.25rem}table tr{display:flex;flex-direction:column;gap:.313rem}table tr td{padding:0;display:flex;justify-content:center;align-items:center}.cart-container .items .total-price{text-align:center}.cart-container .items .clear-btn{font-size:.813rem}.cart-container .items .buttons{display:flex;justify-content:center;align-items:center}}@media screen and (max-width: 1265px){.cart-container .items{padding:2.5rem 0}.cart-container .items .item h5{padding-left:3rem}table{display:flex;justify-content:space-between;align-items:center;gap:1.875rem;padding:1.25rem}table tr td{padding:0 .313rem}table .btn{font-size:.875rem;padding:.625rem}table tr td .normal{padding:.625rem 1rem}}@media screen and (max-width: 683px){.cart-container .items{padding:2.5rem 0}table{display:flex;justify-content:center;align-items:center;gap:1.875rem}table .btn{font-size:.875rem;padding:.625rem}table tr td .normal{padding:.625rem 1rem}}.about{width:100%}.about .about-banner{background:url(./banner-4WPSOYFj.png) no-repeat center / cover;width:100%;height:40vh;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;-webkit-user-select:none;user-select:none}.about .about-banner .about-info h1{color:#fff;text-transform:capitalize;font-weight:700;font-size:3.125rem}.about .about-banner .about-info p{text-align:center;text-transform:capitalize;color:#fff}.about .about-us{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:2.5rem;padding:2rem 0}.about .about-us .about-us-img img{width:37.5rem;height:600;border-radius:.313rem;filter:grayscale(100%);transition:all .4s ease-in-out}.about .about-us .about-us-img img:hover{filter:grayscale(0%)}.about .about-us .about-us-desc{padding-top:.5rem}.about .about-us .about-us-desc h1{font-size:4.375rem;margin-bottom:2rem}.about .about-us .about-us-desc h1 span{color:var(--primary-color)}.about .about-us .about-us-desc p{width:31.25rem}.about .our-app{margin-top:4rem;padding-inline:2rem}.about .our-app{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:3.125rem;text-transform:capitalize}.about .our-app h1{font-size:4.375rem}.about .our-app h1 span{color:var(--primary-color)}@media screen and (max-width: 477px){.about .about-us{display:flex;flex-direction:column;padding-inline:1rem}.about .about-us,.about .about-us .about-us-img img{width:100%}.about .about-us .about-us-desc h1{font-size:50px;margin-bottom:1rem}.about .about-us .about-us-desc h1 span{font-size:3.125rem}.about .about-us .about-us-desc p{width:100%}.about .our-app{justify-content:flex-start;align-items:flex-start;padding-inline:1rem;gap:1.25rem}.about .our-app h1{font-size:2.5rem;margin-bottom:-7rem}.about .our-app h1 span{font-size:2.5rem}}.contact{width:100%}.contact .contact-banner{background:url(./banner-4WPSOYFj.png) no-repeat center / cover;width:100%;height:40vh;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;-webkit-user-select:none;user-select:none}.contact .contact-banner .banner-info h1{color:#fff;text-transform:capitalize;font-weight:700;font-size:3.125rem}.contact .contact-banner .banner-info p{text-align:center;text-transform:capitalize;color:#fff}.contact .contact-info{display:flex;justify-content:space-between;align-items:center;padding:1.875rem 4rem;width:100%;margin-bottom:3rem}.contact .contact-info .our-info{width:50%}.contact .contact-info .our-info .top-info h2{padding-bottom:1rem;color:var(--secondary-color)}.contact .contact-info .our-info p{font-size:1rem;color:var(--paragraph-color);font-weight:600;margin:0}.contact .contact-info .our-info .bottom-info span{font-size:1.313rem;font-weight:700;color:var(--secondary-color)}.contact .contact-info .our-info ul{margin-top:1rem;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;gap:1rem}.contact .contact-info .our-info ul li{list-style-type:none;display:flex;justify-content:center;align-items:center;color:var(--paragraph-color);gap:.625rem;font-weight:600}.contact .contact-info .our-info ul li .icon{font-size:1.125rem;color:var(--secondary-color)}.contact .contact-info .our-location{width:50%}.contact .contact-field{display:flex;justify-content:space-around;align-items:center;border-top:.063rem solid var(--secondary-color);border-bottom:.063rem solid var(--secondary-color);padding:4rem 2rem;width:100%}.contact .contact-field .contact-input{width:70%}.contact .contact-field .contact-input p{margin:0 0 1rem;font-size:1rem;color:var(--paragraph-color);font-weight:600}.contact .contact-field .contact-input h4{margin-bottom:1.4rem;display:flex;justify-content:flex-start;align-items:center;gap:.625rem;color:var(--secondary-color)}.contact .contact-field .contact-input .contact-form{display:flex;flex-direction:column;gap:1.875rem;width:70%;margin-bottom:1.4rem}.contact .contact-field .contact-input .contact-form input{border:.063rem solid var(--paragraph-color);outline:none;padding:.625rem;font-weight:600;border-radius:.313rem}.contact .contact-field .contact-input .contact-form input::placeholder{font-weight:100}.contact .contact-field .contact-input .contact-form .form-text-area{height:40vh;outline:none;padding:.625rem;border-radius:.313rem}.contact .contact-field .contact-input .contact-form .submit-btn{font-size:.875rem;font-weight:600;padding:.938rem 1.875rem;color:#fff;width:16%;background-color:var(--primary-color);border-radius:.313rem;cursor:pointer;border:none;outline:none;transition:all .3s ease-in-out}.contact .contact-field .contact-input .contact-form .submit-btn:hover{background-color:#fff;border:.063rem solid var(--primary-color);color:var(--primary-color)}.contact-field .contact-personal .contact-per{display:flex;justify-content:center;align-items:flex-start;margin-top:1rem}.contact-personal .contact-per img{margin-right:1rem;border:.063rem solid #F44336;border-radius:50%;cursor:pointer;filter:grayscale(100%);transition:all .4s ease-in-out}.contact-personal .contact-per img:hover{filter:grayscale(0%)}.contact-personal .contact-per .person-info{text-transform:capitalize}.contact-personal .contact-per .person-info p{margin:.938rem 0 .625rem;font-weight:600}.contact-personal .contact-per .person-info p small,.contact-personal .contact-per .person-info h3{color:var(--secondary-color)}.contact .contact-field .contact-input .contact-form{display:flex;flex-direction:column;gap:1.875rem;width:100%;margin-bottom:1.4rem}@media screen and (max-width: 900px){.contact .contact-info{flex-direction:column;padding:0;padding-inline:1rem}.contact .contact-info .our-info{display:flex;width:100%;padding-bottom:2rem}.contact .contact-info .our-info .top-info h2{font-size:1.875rem}.contact .contact-info .our-location{width:100%}.contact .contact-info .bottom-info ul li .locate{font-size:1.875rem}.contact .contact-field{flex-direction:column;padding:4rem 0;padding-inline:2rem;border:none;gap:2.5rem}.contact .contact-field .contact-input,.contact .contact-field .contact-input .contact-form .submit-btn{width:100%}.contact-field .contact-personal{display:flex;text-align:center}.contact-field .contact-personal .contact-per{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-right:1rem}.contact-field .contact-personal .contact-per img{padding-left:-1.25rem;margin-bottom:1rem}}@media screen and (max-width: 477px){.contact .contact-banner{height:30vh}.contact .contact-banner .banner-info h1{font-size:2.5rem}.contact .contact-info{flex-direction:column;padding:0!important}.contact .contact-info .our-info{display:flex;flex-direction:column;width:100%;padding-inline:1.4rem;padding-bottom:3rem}.contact .contact-info .our-info p{margin:1.25rem 0}.contact .contact-info .our-info h2{font-size:1.875rem;margin-bottom:1.25rem}.contact .contact-info .bottom-info ul li .locate{font-size:1.125rem}.contact .contact-info .our-location{width:100%;padding-inline:1rem}.contact .contact-field{align-items:flex-start;padding:2rem 1rem}.contact-field .contact-personal{display:flex;flex-direction:column;text-align:left}.contact-field .contact-personal .contact-per{display:flex;justify-content:flex-start;align-items:flex-start;margin-right:1rem}}*{margin:0;padding:0;box-sizing:border-box}.shop-container{width:100%}.shop-container .top-banner{background:url(./b4-BoM0ze_p.jpg) no-repeat top / cover;width:100%;height:40vh;margin-bottom:2rem;position:relative}.shop-container .top-banner .banner-info{text-transform:capitalize;position:absolute;left:10%;top:35%;-webkit-user-select:none;user-select:none}.shop-container .top-banner .banner-info p{font-weight:600}.shop-container .items{display:flex;justify-content:space-around;align-items:center;background-color:#f0f8ff}@media screen and (max-width: 477px){.shop-container .top-banner .banner-info p,h2{color:#fff}.shop-container .top-banner .banner-info p{font-size:.813rem}}.signup-container{display:flex;justify-content:space-between;align-items:center;height:90vh;width:90%;position:relative}.signup-container img{height:90vh;width:50%;object-fit:cover;object-position:center}.signup-form{width:25rem;display:flex;justify-content:space-around;flex-direction:column;border:var(--form-border);border-radius:.625rem;box-shadow:.125rem .188rem .125rem #00000080;padding:2.5rem;gap:1.25rem;position:absolute;left:65%}.signup-form .form-title{margin-bottom:2rem;text-align:center}.signup-form .form-title h1{font-size:4rem;color:var(--primary-color)}.signup-form label{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color);position:relative;font-family:Arial,Helvetica,sans-serif}.signup-form label .form-icon{color:var(--primary-color)}.signup-form label .input-info{display:flex;flex-direction:column;justify-content:center;font-weight:600;color:var(--secondary-color)}.signup-form label .show-password{position:absolute;right:14%;cursor:pointer;color:#000}.signup-form label input{padding:.625rem;border:none;min-width:14.375rem;border-radius:.313rem;font-size:1rem;border-bottom:.063rem solid #000;box-shadow:.125rem .063rem .063rem #00000080;outline:none}.signup-form .terms{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color)}.signup-form .terms label{font-weight:700}.signup-form .terms input{cursor:pointer}.signup-form .submit-btn{padding:.813rem 1.875rem;background-color:var(--primary-color);border:none;font-weight:600;color:#fff;border-radius:4.688rem;cursor:pointer;transition:all .4s ease-in-out}.signup-form .signin-link{display:flex;justify-content:center;align-items:center;gap:1rem;font-weight:700;text-transform:capitalize}.signup-form .signin-link .signin{text-decoration:underline;color:var(--secondary-color)}@media screen and (max-width: 477px){.signup-container{height:100vh;width:100%;overflow:hidden}.signup-container img{width:100%;height:100vh}.signup-form{width:100%;border:.063rem solid #fff;border-radius:.625rem;box-shadow:.125rem .188rem .125rem #ffffff80;position:absolute;left:0}.signup-form label .form-icon,.signup-form .terms label,.signup-form .signin-link p,.signup-form .signin-link .signin{color:#fff}}.signin-container{display:flex;justify-content:space-between;align-items:center;height:90vh;width:90%;position:relative}.signin-container img{height:90vh;width:50%;object-fit:cover;object-position:center}.signin-form{width:25rem;display:flex;justify-content:space-around;flex-direction:column;border:var(--form-border);border-radius:.625rem;box-shadow:.125rem .188rem .125rem #00000080;padding:2.5rem;gap:1.25rem;position:absolute;left:65%}.signin-form .form-title{margin-bottom:2rem;text-align:center}.signin-form .form-title h1{font-size:4rem;color:var(--primary-color)}.signin-form label{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color);font-family:Arial,Helvetica,sans-serif}.signin-form label .form-icon{color:var(--primary-color)}.signin-form label .input-info{display:flex;flex-direction:column;justify-content:center;font-weight:600}.signin-form label .show-password{position:absolute;right:20%;cursor:pointer;color:#000}.signin-form label input{padding:.625rem;border:none;min-width:14.375rem;border-radius:.313rem;font-size:1rem;border-bottom:.063rem solid #000;box-shadow:.125rem .063rem .063rem #00000080;outline:none}.signin-form .terms{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color)}.signin-form .terms label{font-weight:700}.signin-form .terms input{cursor:pointer}.signin-form .submit-btn{padding:.813rem 1.875rem;background-color:var(--primary-color);border:none;font-weight:600;color:#fff;border-radius:4.688rem;cursor:pointer}.signin-form .signup-link{display:flex;justify-content:center;align-items:center;gap:1rem;font-weight:700;text-transform:capitalize}.signin-form .signup-link .signup{text-decoration:underline;color:var(--secondary-color)}@media screen and (max-width: 477px){.signin-container{height:100vh;width:100%;overflow:hidden;margin-bottom:1rem}.signin-container img{width:100%;height:100vh}.signin-form{width:100%;border:.063rem solid #fff;border-radius:.625rem;box-shadow:.125rem .188rem .125rem #ffffff80;position:absolute;left:0}.signin-form label .form-icon,.signin-form .terms label,.signin-form .signup-link p,.signin-form .signup-link .signup{color:#fff}} +@import"https://fonts.googleapis.com/css2?family=Overlock+SC&family=Overlock:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap";*{margin:0;padding:0;box-sizing:border-box;font-family:Overlock SC,sans-serif}:root{--primary-color: #f44336;--secondary-color: #222;--body-background: #fff;--navbar-background: #eee;--text-color: #000;--home-text-color: #fff;--paragraph-color: #465b52;--box-border: #cce7d0;--card-color: #cfcfcf3b;--box-shadw: rgba(0, 0, 0, .3);--transition: .5s ease-in-out;--form-border: .063rem solid #000}[data-theme=dark]{--body-background: hsl(220, 18%, 13%);--secondary-color: #fff;--navbar-background: hsl(220, 18%, 13%);--text-color: #fff;--home-text-color: #000;--paragraph-color: #6c6c6c;--box-border: #f44336;--card-color: hsl(220, 18%, 99%);--box-shadw: rgba(32, 29, 233, .637) 0px 25px 50px -12px;--form-border: 1px solid #f44336}.app{background-color:var(--body-background);display:flex;flex-direction:column;transition:var(--transition)}::-webkit-scrollbar{background-color:#fff;width:.7rem}::-webkit-scrollbar-thumb{background-color:var(--primary-color)}body{background-color:var(--body-background);overflow-x:hidden}html{scroll-behavior:smooth}h1{line-height:4rem;color:var(--text-color)}h2{font-size:2.875rem;line-height:3.375rem;color:var(--text-color)}h4{font-size:1.5rem;color:var(--text-color)}h6{font-weight:700;font-size:.75rem}p{font-size:1rem;color:var(--paragraph-color)}a{text-decoration:none}small{font-weight:700;color:#000}.section-p1{padding:2.5rem 5rem}.section-m1{margin:2.5rem 0}button.normal{font-size:.875rem;font-weight:600;padding:.938rem 1.875rem;color:#000;background-color:#fff;border-radius:.313rem;cursor:pointer;border:none;outline:none;transition:all .3s ease-in-out}button.normal:hover{background-color:var(--primary-color);color:#fff}button.white{font-size:.813rem;font-weight:600;padding:.688rem 1.125rem;color:#fff;background-color:transparent;cursor:pointer;border:.063 solid white;outline:none;transition:all .3s ease-in-out}#home{display:flex;justify-content:center;align-items:center;flex-direction:column;background-image:url(./background-T013w6K6.jpg);background-position:top center;background-repeat:no-repeat;background-size:cover;height:95vh;width:100%;overflow:hidden;position:relative;transition:all .4s ease-in-out}#home:hover{filter:grayscale(0%)}.home-content{display:flex;justify-content:center;align-items:flex-start}.home-content>.home-elements{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;position:absolute;top:50%;left:14%;transform:translateY(-50%)}.home-content>.home-elements h4{padding-bottom:1rem;color:var(--home-text-color)}.home-content>.home-elements h2{color:var(--home-text-color)}.home-content>.home-elements h1{color:var(--text-color);-webkit-text-stroke:.125rem var(--primary-color)}.home-elements .select-none{text-transform:capitalize;-webkit-user-select:none;user-select:none}.home-elements h2 span{color:#fff}.home-elements p{font-weight:600;color:#000;margin:.938rem 0 1rem}.home-elements p span{color:var(--primary-color)}.home-elements button{padding:.625rem 1.25rem;font-size:1rem;border:none;cursor:pointer;font-weight:600;border-radius:1rem;transition:all .4s ease-in-out}.home-elements button:hover{background-color:var(--primary-color);color:#fff}.features{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.features .box{width:11.25rem;text-align:center;padding:1.563rem 1rem;margin:3rem 2rem;border:.063rem solid var(--box-border);background-color:var(--card-color);cursor:pointer;border-radius:.625rem;transition:all .4s ease-in-out}.features .box:hover{transform:scale(1.1);box-shadow:var(--box-shadw)}.features .box img{width:100%;margin-bottom:.625rem}.features .box h6{font-size:large;background-color:var(--primary-color)}.features .box:nth-child(2) h6{background-color:#cdebbc}.features .box:nth-child(3) h6{background-color:#d1e8f2}.features .box:nth-child(4) h6{background-color:#cbd626}.features .box:nth-child(5) h6{background-color:#938ae3}.features .box:nth-child(6) h6{background-color:#3677c1}.products{text-align:center;padding-bottom:2rem}.products h2{color:var(--text-color)}.products h2 span{color:var(--primary-color)}.products p{text-transform:capitalize;font-weight:600}.products-card{display:flex;justify-content:space-between;align-items:center;padding:2.5rem;flex-wrap:wrap}.products-card .card{background-color:var(--card-color);border-radius:.625rem;width:23%;min-width:15.625rem;padding:.625rem 1rem;margin:1rem 0;position:relative;cursor:pointer;transition:all .4s ease-in-out}.products-card .card:hover{box-shadow:var(--box-shadw)}.products-card .card img{width:100%;border-radius:.625rem;transition:all .4s ease-in-out}.products-card .card img:hover{transform:scale(1.1)}.products-card .card .card-info{text-align:left;font-weight:500;padding:.625rem 0}.products-card .card .card-info span{color:#606063;font-weight:600}.products-card .card .card-info h4{font-weight:700;color:#000}.products-card .card .card-info .price{font-size:1.25rem;color:var(--primary-color);font-family:Courier New,Courier,monospace;font-weight:600}.products-card .card .cart{position:absolute;right:10%;bottom:4%;color:#fff;font-weight:700;background-color:var(--primary-color);padding:.625rem;border-radius:50%;transition:all .4s ease-in-out}.products-card .card .cart:hover{color:var(--primary-color);background-color:#fff;border:1px solid var(--primary-color)}.banner{width:100%;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;text-transform:capitalize;position:relative}.banner img{width:100%;height:40vh;object-fit:cover;object-position:center}.banner .banner-info{position:absolute}.banner h4{color:#fff;font-size:1rem;letter-spacing:.125rem}.banner h2{color:#fff;text-transform:capitalize;padding:1rem;font-size:1.875rem}.banner h2 span{color:var(--primary-color)}.banner button{font-size:1rem}.second-banner{display:flex;justify-content:space-around;flex-wrap:wrap;padding:2rem;margin-top:1rem}.second-banner .banner-box{background:url(./img4-mTaL6IX5.jpg) center / cover no-repeat;height:50vh;min-width:47%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:1.875rem;text-transform:capitalize;border-radius:.313rem;-webkit-user-select:none;user-select:none}.second-banner .banner-box:nth-child(1) h4{font-weight:700}.second-banner .banner-box:nth-child(1) h2 span{color:var(--primary-color);font-weight:700}.second-banner .banner-box:nth-child(1) span{color:#000;font-weight:700}.second-banner .banner-box:nth-child(2){background:url(./b10-orZ6a7sn.jpg) center / cover no-repeat}.second-banner .banner-box:nth-child(2) h4{color:#fff}.second-banner .banner-box:nth-child(2) h2{font-weight:700;color:#fff}.second-banner .banner-box:nth-child(2) h2 span{color:var(--primary-color)}.second-banner .banner-box span{padding-bottom:1rem;color:#fff;font-weight:700}.third-banner{display:flex;justify-content:space-around;align-items:center;padding:0 3.125rem;flex-wrap:wrap}.third-banner>.th-banner-box{background:url(./img3-9ikZ3owi.jpg) top / cover no-repeat;height:30vh;min-width:30%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;-webkit-user-select:none;user-select:none;padding:1.25rem;margin-bottom:1.25rem;border-radius:.313rem}.third-banner .th-banner-box h2{color:#fff}.third-banner .th-banner-box h4{color:var(--primary-color);font-weight:600}.third-banner>.th-banner-box:nth-child(2){background:url(./img6-eUej5spT.jpg) top / cover no-repeat}.third-banner>.th-banner-box:nth-child(3){background:url(./img5-AxB0Z4sI.jpg) top / cover no-repeat}@media screen and (max-width: 799px){.section-p1{padding:2.5rem}#home{background-position:center;height:91vh}.home .home-content .home-elements{padding:0 1.875rem}.features{justify-content:center}.features .box{margin:4rem 2rem}.products .products-card{justify-content:center}.products .products-card .card{margin:1.875rem}.banner{height:25vh}.second-banner .banner-box{min-width:100%;height:30vh;margin-bottom:1.5rem}.second-banner .banner-box:nth-child(1){background-position:top}.second-banner .banner-box:nth-child(2){margin-bottom:0}.third-banner{padding:0 1.688rem}.third-banner .th-banner-box{width:27%}.third-banner .th-banner-box h2{font-size:2rem;line-height:2rem}.newsletter{padding:2.5rem}.form{width:70%}footer{margin:0}}@media screen and (max-width: 477px){#home{height:100vh}.home-content>.home-elements{top:60%}.home-elements p,h4{font-weight:600;color:#fff}.home-elements h1{font-size:2.375rem;-webkit-text-stroke:0!important}.home-elements h4{padding-bottom:0!important}.home-elements h1,h2{line-height:1}.features .box{margin:2rem 1rem}.products p{padding-bottom:1rem}.products .products-card{padding:0 1.25rem}.products .products-card .card{width:100%;margin:1.25rem}.banner{height:30vh}.second-banner,.second-banner .banner-box{padding:1.25rem}.second-banner .banner-box{height:40vh}.third-banner{padding:0 1.25rem}.third-banner .th-banner-box{width:100%}}.header{display:flex;justify-content:space-between;align-items:center;background-color:var(--navbar-background);position:sticky;padding:0 2rem;top:0;left:0;width:100%;z-index:10;box-shadow:0 .313rem 1rem var(--box-shadw)}.logo-section{display:flex;justify-content:center;align-items:center;gap:.625rem}.header .logo-section .logo-img{width:3.75rem;height:3.75rem;border-radius:50%;outline:.125rem solid var(--secondary-color);cursor:pointer}.header .logo-section .logo{cursor:pointer;color:var(--secondary-color)}.navbar{display:flex;justify-content:center;align-items:center}.links{display:flex;justify-content:center;align-items:center;gap:2.5rem}.links li{list-style-type:none;font-size:1.563rem;position:relative}.links .cart-bag{position:relative}.links .cart-bag .total-items{position:absolute;left:57%;bottom:49%;background-color:var(--primary-color);color:#fff;padding:.125rem .25rem;border-radius:50%;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif}.links li .link{font-weight:600;color:var(--secondary-color);cursor:pointer;transition:all .4s ease-in-out}.links li .link:hover,.links li .link.active{color:var(--primary-color)}.links li .link:hover:after,.links li .link.active:after{content:"";position:absolute;bottom:0;left:0;height:.125rem;width:100%;background-color:var(--primary-color)}.links li span{display:none}.links .translate{font-size:1.875rem;cursor:pointer}.links .translate:hover{color:var(--primary-color)}.navbar .links .signing{margin-left:1.25rem;display:flex;justify-content:center;align-items:center}.navbar .links .signing button{padding:.875rem 1.25rem;background-color:var(--primary-color);border:none;cursor:pointer}.navbar .links .signing button .sign-up{color:#fff;text-transform:capitalize}.navbar .links .signing .login{color:var(--secondary-color);font-weight:700;text-transform:capitalize;border:.125rem solid var(--secondary-color);padding:.625rem 1.25rem;border-radius:75px;margin:0 .625rem;transition:all .4s ease-in-out}.navbar .links .signing .login:hover{border:.125rem solid var(--primary-color);color:var(--primary-color)}.navbar .links .signing .mode{font-size:1.875rem;margin-top:.5rem;cursor:pointer}.navbar .links .signing .mode .sun{color:#ff0}.navbar .links .signing .mode .moon{color:#00008b}#close,.mobile{display:none}@media screen and (max-width: 1200px){.header{justify-content:space-between;padding:0 2rem}.header .logo-section .logo h1{font-size:1rem}.links{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;height:100vh;width:18.75rem;position:fixed;top:0;padding:5rem 0 0 1.875rem;box-shadow:0 2.5rem 3.75rem var(--box-shadw);background-color:var(--navbar-background);transition:all .4s ease-in-out;z-index:999}.links-active{right:0}.links-inactive{right:-18.75rem}.links li span{display:inline-block;color:var(--secondary-color);margin-left:1rem;font-weight:600;text-transform:capitalize}.navbar .links .signing{display:flex;flex-direction:column;align-items:flex-start;gap:1.25rem;position:absolute;top:70%;left:5%}.navbar .links .signing .login{margin:0}.navbar .links .signing .mode{padding-left:1.313rem}.mobile{display:flex;align-items:center;cursor:pointer}.mobile .mobile-bag{position:relative;transition:all .4s ease-in-out;color:var(--secondary-color)}.mobile span{color:var(--secondary-color)}.header .mobile .total-items{position:absolute;left:40%;bottom:49%;background-color:var(--primary-color);color:#fff;padding:.125rem .25rem;border-radius:50%;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif}.header .mobile .mobile-bag:hover,.header .mobile .mobile-bag.active{color:var(--primary-color)}.header .mobile .mobile-bag:hover:after,.header .mobile .mobile-bag.active:after{content:"";position:absolute;bottom:0;left:0;height:.125rem;width:75%;background-color:var(--primary-color)}.mobile a,span{color:#000;padding-right:.625rem;font-size:1.5rem;transition:all .4s ease-in-out}.mobile a:hover,.mobile span:hover{color:var(--primary-color)}#close{display:initial;font-size:1.5rem;color:var(--secondary-color);position:absolute;top:1.875rem;left:1.875rem;cursor:pointer}#close:hover{color:var(--primary-color)}.cart-bag{display:none}}@media screen and (max-width: 477px){.header{justify-content:space-between;padding:0 1rem;position:fixed}.logo-section{gap:.625rem}.header .logo-section .logo-img{width:3.125rem;height:3.125rem;border-radius:50%}.header .logo-section .logo h1{font-size:10rem}.links{width:14.125rem}.navbar .links .signing{display:flex;flex-direction:column;align-items:flex-start;gap:1.25rem;position:absolute;top:70%;left:5%}.navbar .signing .login{margin:0}.navbar .links .signing .mode{padding-left:1.313rem}}.sign-btns{display:flex;justify-content:center;align-items:center;gap:1.25rem}.sign-btns .login{text-align:center}@media screen and (max-width: 477px){.sign-btns{display:flex;align-items:flex-start;flex-direction:column}}footer{margin:2.5rem 0 0;min-width:60%}footer .colums{display:flex;justify-content:space-around;align-items:flex-start;flex-wrap:wrap}footer .col{display:flex;flex-direction:column;margin-bottom:1.25rem}footer .col p span{color:var(--secondary-color);text-transform:capitalize;margin-bottom:.188rem}footer .colums .col .logo{margin-bottom:1.25rem;transition:all .4s ease-in-out;cursor:pointer;margin-top:-.625rem;border-radius:.313rem;width:100%}footer h4{color:var(--secondary-color);text-transform:capitalize;margin-bottom:.625rem}footer p{font-size:.875rem;margin-bottom:.625rem;color:var(--paragraph-color);font-weight:600}footer .col .item{font-size:.875rem;text-decoration:none;color:var(--paragraph-color);margin-bottom:.875rem;font-weight:600}footer .item:hover{text-decoration:underline}footer .install .row img{border:.063rem solid var(--secondary-color);border-radius:.313rem;cursor:pointer}footer .install img{margin:.625rem 0 1rem;cursor:pointer}footer .follow .icon{margin-top:1.25rem}footer .follow .icon .social-icon{color:var(--secondary-color);margin-right:.375rem;font-size:1.875rem}footer .follow .icon .social-icon:nth-child(1){color:#3b5998}footer .follow .icon .social-icon:nth-child(2){color:#792266}footer .follow .icon .social-icon:nth-child(3){color:#0a66c2}footer .follow .icon .social-icon:nth-child(4){color:var(--secondary-color)}footer .copyright{text-align:center}footer .copyright p{font-weight:600;font-size:1.1rem}footer .copyright p span{color:var(--secondary-color);font-weight:700;font-size:1.25rem;color:var(--primary-color)}@media screen and (max-width: 477px){footer .copyright{text-align:start;padding-left:1.4rem}footer .copyright p{font-weight:600;font-size:.9rem}footer .colums .col .logo{width:100%}footer .colums .col:nth-of-type(1){padding-inline:1rem}}.newsletter{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:1.875rem 0;position:relative;width:100%}.newsletter img{width:100%;height:30vh;object-fit:cover}.newsletter .newsletter-content{position:absolute;width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;padding:0 3rem}.newsletter .newsletter-info{text-transform:capitalize}.newsletter .newsletter-info h3{color:#fff;font-weight:700;font-size:1.875rem}.newsletter .newsletter-info p{font-size:1.125rem;font-weight:600;color:var(--paragraph-color);margin:.938rem 0 .625rem}.newsletter .newsletter-info p span{color:var(--primary-color)}.form{display:flex;width:30%}.form input{height:3.125rem;padding:0 1.25rem;font-size:.875rem;width:100%;border:.063rem solid transparent;border-radius:.313rem;outline:none;border-top-right-radius:0;border-bottom-right-radius:0}.form input::placeholder{font-weight:600}.form .newsletter-btn{height:3.125rem;border-top-right-radius:.313rem;border-bottom-right-radius:.313rem;font-weight:600;white-space:nowrap;width:50%;border:none;color:#fff;background-color:var(--primary-color);transition:all .4s ease-in-out}.form .newsletter-btn:hover{border:.063rem solid var(--primary-color);background-color:transparent}@media screen and (max-width: 1280px){.newsletter{padding:0}.form{width:69%}}@media screen and (max-width: 477px){.newsletter .newsletter-info h3{font-size:1.25rem}.newsletter .newsletter-content{padding:0 1rem}.newsletter .newsletter-info p{font-size:1rem}.newsletter .form{width:100%}}@media screen and (max-width: 799px){.newsletter .form{width:100%}}.scrolltop{position:fixed;bottom:2.5rem;right:2.5rem;z-index:10}.scrolltop a{background-color:var(--primary-color);padding:1rem;border-radius:100%;display:flex;justify-content:center;align-items:center;transition:all .4s ease-in-out;z-index:1}.scroll-inline{opacity:1;visibility:visible}.scroll-none{opacity:0;visibility:hidden}.scroll-icon{color:#fff;font-size:1.3rem}.app-star{display:flex;justify-content:flex-start;align-items:center}input[type=radio]{display:none}.star{font-size:1.7rem;cursor:pointer;margin:.313rem}.app-star .rate-count{padding-bottom:0}@media screen and (max-width: 477px){.star{font-size:1.2rem}}.blog{width:100%}.blog .blog-banner{background:url(./b19-YXo27Twr.jpg) no-repeat center / cover;width:100%;height:40vh;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;-webkit-user-select:none;user-select:none}.blog .blog-banner .blog-info{text-transform:capitalize}.blog .blog-banner .blog-info h1{color:#fff;text-align:center;font-weight:700;font-size:3.125rem}.blog .blog-banner .blog-info p{color:#fff;font-weight:700}.blog .blog-content{display:flex;justify-content:center;align-items:center;padding:5rem;flex-direction:column}.blog .blog-content .blog-elements{display:flex;justify-content:center;align-items:center;gap:3.125rem;padding-bottom:4rem}.blog .blog-content .blog-elements .left-side{display:flex;flex-direction:column}.blog .blog-content .blog-elements .left-side span{font-size:4rem;color:#606063;font-weight:700}.blog .blog-content .blog-elements .left-side img{height:25rem;width:31.25rem;object-fit:cover;object-position:top;filter:grayscale(100%);border-radius:.313rem;transition:all .4s ease-in-out}.blog .blog-content .blog-elements .left-side img:hover{filter:grayscale(0%)}.blog .blog-content .blog-elements .right-side p{margin-bottom:1rem}.blog .blog-content .blog-elements .right-side span{font-weight:600;font-size:1rem;color:var(--secondary-color)}@media screen and (max-width: 477px){.blog .blog-banner{height:50vh}.blog .blog-content{display:flex;justify-content:flex-start;padding:0!important;align-items:flex-start;flex-direction:column}.blog .blog-content .blog-elements{flex-direction:column;gap:1.875rem;padding-bottom:2rem;padding-inline:1rem}.blog .blog-content .blog-elements .left-side img{width:100%}.blog .blog-content .blog-elements .right-side{text-align:center}}@media screen and (max-width: 1024px){.blog .blog-content{display:flex;justify-content:flex-start;padding:0!important;align-items:flex-start;flex-direction:column}.blog .blog-content .blog-elements{flex-direction:column;gap:1.875rem;padding-bottom:2rem;padding-inline:1rem}.blog .blog-content .blog-elements .right-side{text-align:center}.blog .blog-content .blog-elements .right-side p{margin-bottom:1rem}}.cart-container{border-collapse:collapse;padding-top:2rem}.cart-container .items{padding:2.5rem;margin-bottom:1rem}.cart-container .items .item{font-weight:700}.empty-cart{display:flex;justify-content:center;align-items:center;height:calc(100vh - 70px);font-weight:600;font-size:1.7rem}.cart-container .items .item h5{font-weight:700;text-transform:capitalize;font-size:1.4rem;margin-bottom:1rem;color:var(--secondary-color)}.cart-container .items .total-price{text-align:right;font-size:2rem;margin-top:1rem;color:var(--secondary-color)}.cart-container .items .total-price span{color:var(--primary-color);font-size:1.875rem}table{display:flex;justify-content:center;background-color:#c9c7c7}table tr td{padding:0 4.375rem}table .btn{font-size:.875rem;font-weight:600;padding:.938rem;color:#000;background-color:#fff;border-radius:.313rem;cursor:pointer;border:none;outline:none;transition:all .3s ease-in-out;margin-right:.625rem}table .btn:hover{background-color:var(--primary-color);color:#fff}.cart-container .items .clear-btn{font-size:1rem;font-weight:600;padding:.938rem;color:#fff;background-color:var(--primary-color);border-radius:.313rem;cursor:pointer;border:none;outline:none;margin-left:.625rem;margin-top:.5rem;float:right;transition:all .3s ease-in-out;opacity:1}.cart-container .items .clear-btn:hover{opacity:.7}@media screen and (max-width: 600px){.cart-container .items{padding:0}.cart-container .items .item{font-weight:700;padding-inline:1rem}.cart-container .items .item h5{padding-left:0!important}table{padding:2rem}table tbody{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.25rem}table tr{display:flex;flex-direction:column;gap:.313rem}table tr td{padding:0;display:flex;justify-content:center;align-items:center}.cart-container .items .total-price{text-align:center}.cart-container .items .clear-btn{font-size:.813rem}.cart-container .items .buttons{display:flex;justify-content:center;align-items:center}}@media screen and (max-width: 1265px){.cart-container .items{padding:2.5rem 0}.cart-container .items .item h5{padding-left:3rem}table{display:flex;justify-content:space-between;align-items:center;gap:1.875rem;padding:1.25rem}table tr td{padding:0 .313rem}table .btn{font-size:.875rem;padding:.625rem}table tr td .normal{padding:.625rem 1rem}}@media screen and (max-width: 683px){.cart-container .items{padding:2.5rem 0}table{display:flex;justify-content:center;align-items:center;gap:1.875rem}table .btn{font-size:.875rem;padding:.625rem}table tr td .normal{padding:.625rem 1rem}}.about{width:100%}.about .about-banner{background:url(./banner-4WPSOYFj.png) no-repeat center / cover;width:100%;height:40vh;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;-webkit-user-select:none;user-select:none}.about .about-banner .about-info h1{color:#fff;text-transform:capitalize;font-weight:700;font-size:3.125rem}.about .about-banner .about-info p{text-align:center;text-transform:capitalize;color:#fff}.about .about-us{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:2.5rem;padding:2rem 0}.about .about-us .about-us-img img{width:37.5rem;height:600;border-radius:.313rem;filter:grayscale(100%);transition:all .4s ease-in-out}.about .about-us .about-us-img img:hover{filter:grayscale(0%)}.about .about-us .about-us-desc{padding-top:.5rem}.about .about-us .about-us-desc h1{font-size:4.375rem;margin-bottom:2rem}.about .about-us .about-us-desc h1 span{color:var(--primary-color)}.about .about-us .about-us-desc p{width:31.25rem}.about .our-app{margin-top:4rem;padding-inline:2rem}.about .our-app{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:3.125rem;text-transform:capitalize}.about .our-app h1{font-size:4.375rem}.about .our-app h1 span{color:var(--primary-color)}@media screen and (max-width: 477px){.about .about-banner{height:50vh}.about .about-us{display:flex;flex-direction:column;padding-inline:1rem}.about .about-us,.about .about-us .about-us-img img{width:100%}.about .about-us .about-us-desc h1{font-size:50px;margin-bottom:1rem}.about .about-us .about-us-desc h1 span{font-size:3.125rem}.about .about-us .about-us-desc p{width:100%}.about .our-app{justify-content:flex-start;align-items:flex-start;padding-inline:1rem;gap:1.25rem}.about .our-app h1{font-size:2.5rem;margin-bottom:-7rem}.about .our-app h1 span{font-size:2.5rem}}.contact{width:100%}.contact .contact-banner{background:url(./banner-4WPSOYFj.png) no-repeat center / cover;width:100%;height:40vh;display:flex;justify-content:center;align-items:center;margin-bottom:1rem;-webkit-user-select:none;user-select:none}.contact .contact-banner .banner-info h1{color:#fff;text-transform:capitalize;font-weight:700;font-size:3.125rem}.contact .contact-banner .banner-info p{text-align:center;text-transform:capitalize;color:#fff}.contact .contact-info{display:flex;justify-content:space-between;align-items:center;padding:1.875rem 4rem;width:100%;margin-bottom:3rem}.contact .contact-info .our-info{width:50%}.contact .contact-info .our-info .top-info h2{padding-bottom:1rem;color:var(--secondary-color)}.contact .contact-info .our-info p{font-size:1rem;color:var(--paragraph-color);font-weight:600;margin:0}.contact .contact-info .our-info .bottom-info span{font-size:1.313rem;font-weight:700;color:var(--secondary-color)}.contact .contact-info .our-info ul{margin-top:1rem;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;gap:1rem}.contact .contact-info .our-info ul li{list-style-type:none;display:flex;justify-content:center;align-items:center;color:var(--paragraph-color);gap:.625rem;font-weight:600}.contact .contact-info .our-info ul li .icon{font-size:1.125rem;color:var(--secondary-color)}.contact .contact-info .our-location{width:50%}.contact .contact-field{display:flex;justify-content:space-around;align-items:center;border-top:.063rem solid var(--secondary-color);border-bottom:.063rem solid var(--secondary-color);padding:4rem 2rem;width:100%}.contact .contact-field .contact-input{width:70%}.contact .contact-field .contact-input p{margin:0 0 1rem;font-size:1rem;color:var(--paragraph-color);font-weight:600}.contact .contact-field .contact-input h4{margin-bottom:1.4rem;display:flex;justify-content:flex-start;align-items:center;gap:.625rem;color:var(--secondary-color)}.contact .contact-field .contact-input .contact-form{display:flex;flex-direction:column;gap:1.875rem;width:70%;margin-bottom:1.4rem}.contact .contact-field .contact-input .contact-form input{border:.063rem solid var(--paragraph-color);outline:none;padding:.625rem;font-weight:600;border-radius:.313rem}.contact .contact-field .contact-input .contact-form input::placeholder{font-weight:100}.contact .contact-field .contact-input .contact-form .form-text-area{height:40vh;outline:none;padding:.625rem;border-radius:.313rem}.contact .contact-field .contact-input .contact-form .submit-btn{font-size:.875rem;font-weight:600;padding:.938rem 1.875rem;color:#fff;width:16%;background-color:var(--primary-color);border-radius:.313rem;cursor:pointer;border:none;outline:none;transition:all .3s ease-in-out}.contact .contact-field .contact-input .contact-form .submit-btn:hover{background-color:#fff;border:.063rem solid var(--primary-color);color:var(--primary-color)}.contact-field .contact-personal .contact-per{display:flex;justify-content:center;align-items:flex-start;margin-top:1rem}.contact-personal .contact-per img{margin-right:1rem;border:.063rem solid #F44336;border-radius:50%;cursor:pointer;filter:grayscale(100%);transition:all .4s ease-in-out}.contact-personal .contact-per img:hover{filter:grayscale(0%)}.contact-personal .contact-per .person-info{text-transform:capitalize}.contact-personal .contact-per .person-info p{margin:.938rem 0 .625rem;font-weight:600}.contact-personal .contact-per .person-info p small,.contact-personal .contact-per .person-info h3{color:var(--secondary-color)}.contact .contact-field .contact-input .contact-form{display:flex;flex-direction:column;gap:1.875rem;width:100%;margin-bottom:1.4rem}@media screen and (max-width: 900px){.contact .contact-info{flex-direction:column;padding:0;padding-inline:1rem}.contact .contact-info .our-info{display:flex;width:100%;padding-bottom:2rem}.contact .contact-info .our-info .top-info h2{font-size:1.875rem}.contact .contact-info .our-location{width:100%}.contact .contact-info .bottom-info ul li .locate{font-size:1.875rem}.contact .contact-field{flex-direction:column;padding:4rem 0;padding-inline:2rem;border:none;gap:2.5rem}.contact .contact-field .contact-input,.contact .contact-field .contact-input .contact-form .submit-btn{width:100%}.contact-field .contact-personal{display:flex;text-align:center}.contact-field .contact-personal .contact-per{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-right:1rem}.contact-field .contact-personal .contact-per img{padding-left:-1.25rem;margin-bottom:1rem}}@media screen and (max-width: 477px){.contact .contact-banner{height:50vh}.contact .contact-banner .banner-info h1{font-size:2.5rem}.contact .contact-info{flex-direction:column;padding:0!important}.contact .contact-info .our-info{display:flex;flex-direction:column;width:100%;padding-inline:1.4rem;padding-bottom:3rem}.contact .contact-info .our-info p{margin:1.25rem 0}.contact .contact-info .our-info h2{font-size:1.875rem;margin-bottom:1.25rem}.contact .contact-info .bottom-info ul li .locate{font-size:1.125rem}.contact .contact-info .our-location{width:100%;padding-inline:1rem}.contact .contact-field{align-items:flex-start;padding:2rem 1rem}.contact-field .contact-personal{display:flex;flex-direction:column;text-align:left}.contact-field .contact-personal .contact-per{display:flex;justify-content:flex-start;align-items:flex-start;margin-right:1rem}}*{margin:0;padding:0;box-sizing:border-box}.shop-container{width:100%}.shop-container .top-banner{background:url(./b4-BoM0ze_p.jpg) no-repeat top / cover;width:100%;height:40vh;margin-bottom:2rem;position:relative}.shop-container .top-banner .banner-info{text-transform:capitalize;position:absolute;left:10%;top:35%;-webkit-user-select:none;user-select:none}.shop-container .top-banner .banner-info p{font-weight:600}.shop-container .items{display:flex;justify-content:space-around;align-items:center;background-color:#f0f8ff}@media screen and (max-width: 477px){.shop-container .top-banner .banner-info p,h2{color:#fff}.shop-container .top-banner .banner-info p{font-size:.813rem}}.signup-container{display:flex;justify-content:space-between;align-items:center;height:90vh;width:90%;position:relative}.signup-container img{height:90vh;width:50%;object-fit:cover;object-position:center}.signup-form{width:25rem;display:flex;justify-content:space-around;flex-direction:column;border:var(--form-border);border-radius:.625rem;box-shadow:.125rem .188rem .125rem #00000080;padding:2.5rem;gap:1.25rem;position:absolute;left:65%}.signup-form .form-title{margin-bottom:2rem;text-align:center}.signup-form .form-title h1{font-size:4rem;color:var(--primary-color)}.signup-form label{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color);position:relative;font-family:Arial,Helvetica,sans-serif}.signup-form label .form-icon{color:var(--primary-color)}.signup-form label .input-info{display:flex;flex-direction:column;justify-content:center;font-weight:600;color:var(--secondary-color)}.signup-form label .show-password{position:absolute;right:14%;cursor:pointer;color:#000}.signup-form label input{padding:.625rem;border:none;min-width:14.375rem;border-radius:.313rem;font-size:1rem;border-bottom:.063rem solid #000;box-shadow:.125rem .063rem .063rem #00000080;outline:none}.signup-form .terms{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color)}.signup-form .terms label{font-weight:700}.signup-form .terms input{cursor:pointer}.signup-form .submit-btn{padding:.813rem 1.875rem;background-color:var(--primary-color);border:none;font-weight:600;color:#fff;border-radius:4.688rem;cursor:pointer;transition:all .4s ease-in-out}.signup-form .signin-link{display:flex;justify-content:center;align-items:center;gap:1rem;font-weight:700;text-transform:capitalize}.signup-form .signin-link .signin{text-decoration:underline;color:var(--secondary-color)}@media screen and (max-width: 477px){.signup-container{height:100vh;width:100%;overflow:hidden}.signup-container img{width:100%;height:100vh}.signup-form{width:100%;border:.063rem solid #fff;border-radius:.625rem;box-shadow:.125rem .188rem .125rem #ffffff80;position:absolute;left:0}.signup-form label .form-icon,.signup-form .terms label,.signup-form .signin-link p,.signup-form .signin-link .signin{color:#fff}}.signin-container{display:flex;justify-content:space-between;align-items:center;height:90vh;width:90%;position:relative}.signin-container img{height:90vh;width:50%;object-fit:cover;object-position:center}.signin-form{width:25rem;display:flex;justify-content:space-around;flex-direction:column;border:var(--form-border);border-radius:.625rem;box-shadow:.125rem .188rem .125rem #00000080;padding:2.5rem;gap:1.25rem;position:absolute;left:65%}.signin-form .form-title{margin-bottom:2rem;text-align:center}.signin-form .form-title h1{font-size:4rem;color:var(--primary-color)}.signin-form label{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color);font-family:Arial,Helvetica,sans-serif}.signin-form label .form-icon{color:var(--primary-color)}.signin-form label .input-info{display:flex;flex-direction:column;justify-content:center;font-weight:600}.signin-form label .show-password{position:absolute;right:20%;cursor:pointer;color:#000}.signin-form label input{padding:.625rem;border:none;min-width:14.375rem;border-radius:.313rem;font-size:1rem;border-bottom:.063rem solid #000;box-shadow:.125rem .063rem .063rem #00000080;outline:none}.signin-form .terms{display:flex;justify-content:center;align-items:center;gap:.313rem;color:var(--secondary-color)}.signin-form .terms label{font-weight:700}.signin-form .terms input{cursor:pointer}.signin-form .submit-btn{padding:.813rem 1.875rem;background-color:var(--primary-color);border:none;font-weight:600;color:#fff;border-radius:4.688rem;cursor:pointer}.signin-form .signup-link{display:flex;justify-content:center;align-items:center;gap:1rem;font-weight:700;text-transform:capitalize}.signin-form .signup-link .signup{text-decoration:underline;color:var(--secondary-color)}@media screen and (max-width: 477px){.signin-container{height:100vh;width:100%;overflow:hidden;margin-bottom:1rem}.signin-container img{width:100%;height:100vh}.signin-form{width:100%;border:.063rem solid #fff;border-radius:.625rem;box-shadow:.125rem .188rem .125rem #ffffff80;position:absolute;left:0}.signin-form label .form-icon,.signin-form .terms label,.signin-form .signup-link p,.signin-form .signup-link .signup{color:#fff}} diff --git a/assets/memoize-one-2aoN688H.js b/assets/memoize-one-2aoN688H.js deleted file mode 100644 index b3a4e71..0000000 --- a/assets/memoize-one-2aoN688H.js +++ /dev/null @@ -1 +0,0 @@ -import{a as i}from"./@mapbox-P3eih9Ks.js";var l=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function m(r,e){return!!(r===e||l(r)&&l(e))}function g(r,e){if(r.length!==e.length)return!1;for(var t=0;tr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}},v={},O={exports:{}},u={};/** +import{a as L}from"./deepmerge-tjhCCVMj.js";function N(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}},v={},O={exports:{}},u={};/** * @license React * react.production.min.js * @@ -14,4 +14,4 @@ import{g as L}from"./@mapbox-P3eih9Ks.js";function N(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ru={},co={exports:{}},ce={};/** +import{a as pa}from"./deepmerge-tjhCCVMj.js";import{r as ma}from"./react-INodxC-X.js";import{s as va}from"./scheduler-iwWdm5Ml.js";function ha(e,n){for(var t=0;tr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ru={},co={exports:{}},ce={};/** * @license React * react-dom.production.min.js * @@ -13,4 +13,4 @@ import{g as pa}from"./@mapbox-P3eih9Ks.js";import{r as ma}from"./react-328yWDDP. `+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{Zr=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?lt(e):""}function ka(e){switch(e.tag){case 5:return lt(e.type);case 16:return lt("Lazy");case 13:return lt("Suspense");case 19:return lt("SuspenseList");case 0:case 2:case 15:return e=Jr(e.type,!1),e;case 11:return e=Jr(e.type.render,!1),e;case 1:return e=Jr(e.type,!0),e;default:return""}}function xl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xn:return"Fragment";case Cn:return"Portal";case kl:return"Profiler";case vi:return"StrictMode";case El:return"Suspense";case Cl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vo:return(e.displayName||"Context")+".Consumer";case mo:return(e._context.displayName||"Context")+".Provider";case hi:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gi:return n=e.displayName||null,n!==null?n:xl(e.type)||"Memo";case He:n=e._payload,e=e._init;try{return xl(e(n))}catch{}}return null}function Ea(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xl(n);case 8:return n===vi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function go(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ca(e){var n=go(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Vt(e){e._valueTracker||(e._valueTracker=Ca(e))}function yo(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=go(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function cr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nl(e,n){var t=n.checked;return F({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function ou(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=tn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function wo(e,n){n=n.checked,n!=null&&mi(e,"checked",n,!1)}function zl(e,n){wo(e,n);var t=tn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Pl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Pl(e,n.type,tn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function su(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Pl(e,n,t){(n!=="number"||cr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var it=Array.isArray;function Fn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=At.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function yt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var st={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xa=["Webkit","ms","Moz","O"];Object.keys(st).forEach(function(e){xa.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),st[n]=st[e]})});function Co(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||st.hasOwnProperty(e)&&st[e]?(""+n).trim():n+"px"}function xo(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Co(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Na=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Tl(e,n){if(n){if(Na[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(h(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(h(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(h(61))}if(n.style!=null&&typeof n.style!="object")throw Error(h(62))}}function Ml(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dl=null;function yi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rl=null,In=null,jn=null;function fu(e){if(e=It(e)){if(typeof Rl!="function")throw Error(h(280));var n=e.stateNode;n&&(n=Ur(n),Rl(e.stateNode,e.type,n))}}function No(e){In?jn?jn.push(e):jn=[e]:In=e}function zo(){if(In){var e=In,n=jn;if(jn=In=null,fu(e),n)for(e=0;e>>=0,e===0?32:31-(Ia(e)/ja|0)|0}var Bt=64,Ht=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function mr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=ut(o):(i&=u,i!==0&&(r=ut(i)))}else u=t&~l,u!==0?r=ut(u):i!==0&&(r=ut(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Ot(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Ee(n),e[n]=t}function Ba(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ct),Su=" ",ku=!1;function Ko(e,n){switch(e){case"keyup":return vc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function gc(e,n){switch(e){case"compositionend":return Yo(n);case"keypress":return n.which!==32?null:(ku=!0,Su);case"textInput":return e=n.data,e===Su&&ku?null:e;default:return null}}function yc(e,n){if(Nn)return e==="compositionend"||!zi&&Ko(e,n)?(e=Wo(),nr=Ci=Ke=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Nu(t)}}function Jo(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Jo(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function qo(){for(var e=window,n=cr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=cr(e.document)}return n}function Pi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Pc(e){var n=qo(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jo(t.ownerDocument.documentElement,t)){if(r!==null&&Pi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=zu(t,i);var u=zu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,zn=null,Vl=null,dt=null,Al=!1;function Pu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Al||zn==null||zn!==cr(r)||(r=zn,"selectionStart"in r&&Pi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),dt&&xt(dt,r)||(dt=r,r=gr(Vl,"onSelect"),0Ln||(e.current=Kl[Ln],Kl[Ln]=null,Ln--)}function L(e,n){Ln++,Kl[Ln]=e.current,e.current=n}var rn={},J=un(rn),re=un(!1),vn=rn;function Hn(e,n){var t=e.type.contextTypes;if(!t)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function le(e){return e=e.childContextTypes,e!=null}function wr(){M(re),M(J)}function Ou(e,n,t){if(J.current!==rn)throw Error(h(168));L(J,n),L(re,t)}function os(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(h(108,Ea(e)||"Unknown",l));return F({},t,r)}function Sr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,vn=J.current,L(J,e),L(re,re.current),!0}function Fu(e,n,t){var r=e.stateNode;if(!r)throw Error(h(169));t?(e=os(e,n,vn),r.__reactInternalMemoizedMergedChildContext=e,M(re),M(J),L(J,e)):M(re),L(re,t)}var Me=null,Vr=!1,fl=!1;function ss(e){Me===null?Me=[e]:Me.push(e)}function Vc(e){Vr=!0,ss(e)}function on(){if(!fl&&Me!==null){fl=!0;var e=0,n=_;try{var t=Me;for(_=1;e>=u,l-=u,De=1<<32-Ee(n)+l|t<N?(H=x,x=null):H=x.sibling;var P=p(c,x,f[N],g);if(P===null){x===null&&(x=H);break}e&&x&&P.alternate===null&&n(c,x),a=i(P,a,N),C===null?E=P:C.sibling=P,C=P,x=H}if(N===f.length)return t(c,x),D&&sn(c,N),E;if(x===null){for(;NN?(H=x,x=null):H=x.sibling;var Ae=p(c,x,P.value,g);if(Ae===null){x===null&&(x=H);break}e&&x&&Ae.alternate===null&&n(c,x),a=i(Ae,a,N),C===null?E=Ae:C.sibling=Ae,C=Ae,x=H}if(P.done)return t(c,x),D&&sn(c,N),E;if(x===null){for(;!P.done;N++,P=f.next())P=v(c,P.value,g),P!==null&&(a=i(P,a,N),C===null?E=P:C.sibling=P,C=P);return D&&sn(c,N),E}for(x=r(c,x);!P.done;N++,P=f.next())P=y(x,c,N,P.value,g),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?N:P.key),a=i(P,a,N),C===null?E=P:C.sibling=P,C=P);return e&&x.forEach(function(da){return n(c,da)}),D&&sn(c,N),E}function j(c,a,f,g){if(typeof f=="object"&&f!==null&&f.type===xn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Ut:e:{for(var E=f.key,C=a;C!==null;){if(C.key===E){if(E=f.type,E===xn){if(C.tag===7){t(c,C.sibling),a=l(C,f.props.children),a.return=c,c=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===He&&Hu(E)===C.type){t(c,C.sibling),a=l(C,f.props),a.ref=nt(c,C,f),a.return=c,c=a;break e}t(c,C);break}else n(c,C);C=C.sibling}f.type===xn?(a=mn(f.props.children,c.mode,g,f.key),a.return=c,c=a):(g=ar(f.type,f.key,f.props,null,c.mode,g),g.ref=nt(c,a,f),g.return=c,c=g)}return u(c);case Cn:e:{for(C=f.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=wl(f,c.mode,g),a.return=c,c=a}return u(c);case He:return C=f._init,j(c,a,C(f._payload),g)}if(it(f))return S(c,a,f,g);if(Zn(f))return k(c,a,f,g);Gt(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=yl(f,c.mode,g),a.return=c,c=a),u(c)):t(c,a)}return j}var Wn=hs(!0),gs=hs(!1),jt={},Le=un(jt),_t=un(jt),Lt=un(jt);function dn(e){if(e===jt)throw Error(h(174));return e}function Ii(e,n){switch(L(Lt,n),L(_t,e),L(Le,jt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ll(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ll(n,e)}M(Le),L(Le,n)}function $n(){M(Le),M(_t),M(Lt)}function ys(e){dn(Lt.current);var n=dn(Le.current),t=Ll(n,e.type);n!==t&&(L(_t,e),L(Le,t))}function ji(e){_t.current===e&&(M(Le),M(_t))}var R=un(0);function zr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var dl=[];function Ui(){for(var e=0;et?t:4,e(!0);var r=pl.transition;pl.transition={};try{e(!1),n()}finally{_=t,pl.transition=r}}function Os(){return ge().memoizedState}function Qc(e,n,t){var r=en(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Fs(e))Is(n,t);else if(t=ds(e,n,t,r),t!==null){var l=b();Ce(t,e,r,l),js(t,n,r)}}function Wc(e,n,t){var r=en(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,xe(o,u)){var s=n.interleaved;s===null?(l.next=l,Oi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ds(e,n,l,r),t!==null&&(l=b(),Ce(t,e,r,l),js(t,n,r))}}function Fs(e){var n=e.alternate;return e===O||n!==null&&n===O}function Is(e,n){pt=Pr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function js(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Si(e,t)}}var _r={readContext:he,useCallback:X,useContext:X,useEffect:X,useImperativeHandle:X,useInsertionEffect:X,useLayoutEffect:X,useMemo:X,useReducer:X,useRef:X,useState:X,useDebugValue:X,useDeferredValue:X,useTransition:X,useMutableSource:X,useSyncExternalStore:X,useId:X,unstable_isNewReconciler:!1},$c={readContext:he,useCallback:function(e,n){return ze().memoizedState=[e,n===void 0?null:n],e},useContext:he,useEffect:Wu,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,ir(4194308,4,Ls.bind(null,n,e),t)},useLayoutEffect:function(e,n){return ir(4194308,4,e,n)},useInsertionEffect:function(e,n){return ir(4,2,e,n)},useMemo:function(e,n){var t=ze();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=ze();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=Qc.bind(null,O,e),[r.memoizedState,e]},useRef:function(e){var n=ze();return e={current:e},n.memoizedState=e},useState:Qu,useDebugValue:Qi,useDeferredValue:function(e){return ze().memoizedState=e},useTransition:function(){var e=Qu(!1),n=e[0];return e=Hc.bind(null,e[1]),ze().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=O,l=ze();if(D){if(t===void 0)throw Error(h(407));t=t()}else{if(t=n(),W===null)throw Error(h(349));gn&30||ks(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,Wu(Cs.bind(null,r,i,e),[e]),r.flags|=2048,Dt(9,Es.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=ze(),n=W.identifierPrefix;if(D){var t=Re,r=De;t=(r&~(1<<32-Ee(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Tt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Pe]=n,e[Pt]=r,Ks(e,n,!1,!1),n.stateNode=e;e:{switch(u=Ml(t,r),t){case"dialog":T("cancel",e),T("close",e),l=r;break;case"iframe":case"object":case"embed":T("load",e),l=r;break;case"video":case"audio":for(l=0;lYn&&(n.flags|=128,r=!0,tt(i,!1),n.lanes=4194304)}else{if(!r)if(e=zr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),tt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!D)return G(n),null}else 2*U()-i.renderingStartTime>Yn&&t!==1073741824&&(n.flags|=128,r=!0,tt(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=U(),n.sibling=null,t=R.current,L(R,r?t&1|2:t&1),n):(G(n),null);case 22:case 23:return Gi(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ue&1073741824&&(G(n),n.subtreeFlags&6&&(n.flags|=8192)):G(n),null;case 24:return null;case 25:return null}throw Error(h(156,n.tag))}function bc(e,n){switch(Li(n),n.tag){case 1:return le(n.type)&&wr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return $n(),M(re),M(J),Ui(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ji(n),null;case 13:if(M(R),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(h(340));Qn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(R),null;case 4:return $n(),null;case 10:return Ri(n.type._context),null;case 22:case 23:return Gi(),null;case 24:return null;default:return null}}var Jt=!1,Z=!1,ef=typeof WeakSet=="function"?WeakSet:Set,w=null;function Rn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){I(e,n,r)}else t.current=null}function li(e,n,t){try{t()}catch(r){I(e,n,r)}}var bu=!1;function nf(e,n){if(Bl=vr,e=qo(),Pi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,m=0,v=e,p=null;n:for(;;){for(var y;v!==t||l!==0&&v.nodeType!==3||(o=u+l),v!==i||r!==0&&v.nodeType!==3||(s=u+r),v.nodeType===3&&(u+=v.nodeValue.length),(y=v.firstChild)!==null;)p=v,v=y;for(;;){if(v===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++m===r&&(s=u),(y=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=y}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Hl={focusedElem:e,selectionRange:t},vr=!1,w=n;w!==null;)if(n=w,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,w=e;else for(;w!==null;){n=w;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,j=S.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:we(n.type,k),j);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h(163))}}catch(g){I(n,n.return,g)}if(e=n.sibling,e!==null){e.return=n.return,w=e;break}w=n.return}return S=bu,bu=!1,S}function mt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&li(n,t,i)}l=l.next}while(l!==r)}}function Hr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ii(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Gs(e){var n=e.alternate;n!==null&&(e.alternate=null,Gs(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Pe],delete n[Pt],delete n[$l],delete n[jc],delete n[Uc])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zs(e){return e.tag===5||e.tag===3||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ui(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=yr));else if(r!==4&&(e=e.child,e!==null))for(ui(e,n,t),e=e.sibling;e!==null;)ui(e,n,t),e=e.sibling}function oi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oi(e,n,t),e=e.sibling;e!==null;)oi(e,n,t),e=e.sibling}var $=null,Se=!1;function Be(e,n,t){for(t=t.child;t!==null;)Js(e,n,t),t=t.sibling}function Js(e,n,t){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(Or,t)}catch{}switch(t.tag){case 5:Z||Rn(t,n);case 6:var r=$,l=Se;$=null,Be(e,n,t),$=r,Se=l,$!==null&&(Se?(e=$,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):$.removeChild(t.stateNode));break;case 18:$!==null&&(Se?(e=$,t=t.stateNode,e.nodeType===8?cl(e.parentNode,t):e.nodeType===1&&cl(e,t),Et(e)):cl($,t.stateNode));break;case 4:r=$,l=Se,$=t.stateNode.containerInfo,Se=!0,Be(e,n,t),$=r,Se=l;break;case 0:case 11:case 14:case 15:if(!Z&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&li(t,n,u),l=l.next}while(l!==r)}Be(e,n,t);break;case 1:if(!Z&&(Rn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){I(t,n,o)}Be(e,n,t);break;case 21:Be(e,n,t);break;case 22:t.mode&1?(Z=(r=Z)||t.memoizedState!==null,Be(e,n,t),Z=r):Be(e,n,t);break;default:Be(e,n,t)}}function no(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new ef),n.forEach(function(r){var l=ff.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ye(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=U()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rf(r/1960))-r,10e?16:e,Ye===null)var r=!1;else{if(e=Ye,Ye=null,Mr=0,z&6)throw Error(h(331));var l=z;for(z|=4,w=e.current;w!==null;){var i=w,u=i.child;if(w.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sU()-Yi?pn(e,0):Ki|=t),ie(e,n)}function ia(e,n){n===0&&(e.mode&1?(n=Ht,Ht<<=1,!(Ht&130023424)&&(Ht=4194304)):n=1);var t=b();e=je(e,n),e!==null&&(Ot(e,n,t),ie(e,t))}function cf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ia(e,t)}function ff(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(h(314))}r!==null&&r.delete(n),ia(e,t)}var ua;ua=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||re.current)te=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return te=!1,Jc(e,n,t);te=!!(e.flags&131072)}else te=!1,D&&n.flags&1048576&&as(n,Er,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;ur(e,n),e=n.pendingProps;var l=Hn(n,J.current);Vn(n,t),l=Ai(null,n,r,e,l,t);var i=Bi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,le(r)?(i=!0,Sr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fi(n),l.updater=Ar,n.stateNode=l,l._reactInternals=n,Jl(n,r,e,t),n=ei(null,n,r,!0,i,t)):(n.tag=0,D&&i&&_i(n),q(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(ur(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=pf(r),e=we(r,e),l){case 0:n=bl(null,n,r,e,t);break e;case 1:n=Zu(null,n,r,e,t);break e;case 11:n=Xu(null,n,r,e,t);break e;case 14:n=Gu(null,n,r,we(r.type,e),t);break e}throw Error(h(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),bl(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),Zu(e,n,r,l,t);case 3:e:{if(Qs(n),e===null)throw Error(h(387));r=n.pendingProps,i=n.memoizedState,l=i.element,ps(e,n),Nr(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=Kn(Error(h(423)),n),n=Ju(e,n,r,t,l);break e}else if(r!==l){l=Kn(Error(h(424)),n),n=Ju(e,n,r,t,l);break e}else for(oe=Je(n.stateNode.containerInfo.firstChild),se=n,D=!0,ke=null,t=gs(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Qn(),r===l){n=Ue(e,n,t);break e}q(e,n,r,t)}n=n.child}return n;case 5:return ys(n),e===null&&Xl(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Ql(r,l)?u=null:i!==null&&Ql(r,i)&&(n.flags|=32),Hs(e,n),q(e,n,u,t),n.child;case 6:return e===null&&Xl(n),null;case 13:return Ws(e,n,t);case 4:return Ii(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Wn(n,null,r,t):q(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),Xu(e,n,r,l,t);case 7:return q(e,n,n.pendingProps,t),n.child;case 8:return q(e,n,n.pendingProps.children,t),n.child;case 12:return q(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,L(Cr,r._currentValue),r._currentValue=u,i!==null)if(xe(i.value,u)){if(i.children===l.children&&!re.current){n=Ue(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Oe(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?s.next=s:(s.next=m.next,m.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Gl(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(h(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),Gl(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}q(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Vn(n,t),l=he(l),r=r(l),n.flags|=1,q(e,n,r,t),n.child;case 14:return r=n.type,l=we(r,n.pendingProps),l=we(r.type,l),Gu(e,n,r,l,t);case 15:return As(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),ur(e,n),n.tag=1,le(r)?(e=!0,Sr(n)):e=!1,Vn(n,t),vs(n,r,l),Jl(n,r,l,t),ei(null,n,r,!0,e,t);case 19:return $s(e,n,t);case 22:return Bs(e,n,t)}throw Error(h(156,n.tag))};function oa(e,n){return Ro(e,n)}function df(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function me(e,n,t,r){return new df(e,n,t,r)}function Ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pf(e){if(typeof e=="function")return Ji(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hi)return 11;if(e===gi)return 14}return 2}function nn(e,n){var t=e.alternate;return t===null?(t=me(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function ar(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")Ji(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case xn:return mn(t.children,l,i,n);case vi:u=8,l|=8;break;case kl:return e=me(12,t,n,l|2),e.elementType=kl,e.lanes=i,e;case El:return e=me(13,t,n,l),e.elementType=El,e.lanes=i,e;case Cl:return e=me(19,t,n,l),e.elementType=Cl,e.lanes=i,e;case ho:return Wr(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mo:u=10;break e;case vo:u=9;break e;case hi:u=11;break e;case gi:u=14;break e;case He:u=16,r=null;break e}throw Error(h(130,e==null?e:typeof e,""))}return n=me(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function mn(e,n,t,r){return e=me(7,e,r,n),e.lanes=t,e}function Wr(e,n,t,r){return e=me(22,e,r,n),e.elementType=ho,e.lanes=t,e.stateNode={isHidden:!1},e}function yl(e,n,t){return e=me(6,e,null,n),e.lanes=t,e}function wl(e,n,t){return n=me(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function mf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=br(0),this.expirationTimes=br(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=br(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function qi(e,n,t,r,l,i,u,o,s){return e=new mf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=me(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(i),e}function vf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fa)}catch(e){console.error(e)}}fa(),co.exports=ce;var tu=co.exports;const Sf=pa(tu),xf=ha({__proto__:null,default:Sf},[tu]);var ao=tu;ru.createRoot=ao.createRoot,ru.hydrateRoot=ao.hydrateRoot;export{xf as R,ru as c,Sf as n}; +`+i.stack}return{value:e,source:n,stack:l,digest:null}}function hl(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function ql(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var Xc=typeof WeakMap=="function"?WeakMap:Map;function Us(e,n,t){t=Oe(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Tr||(Tr=!0,si=r),ql(e,n)},t}function Vs(e,n,t){t=Oe(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){ql(e,n)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){ql(e,n),typeof r!="function"&&(be===null?be=new Set([this]):be.add(this));var u=n.stack;this.componentDidCatch(n.value,{componentStack:u!==null?u:""})}),t}function $u(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new Xc;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=af.bind(null,e,n,t),n.then(e,e))}function Ku(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Yu(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Oe(-1,1),n.tag=2,qe(t,n,1))),t.lanes|=1),e)}var Gc=Ve.ReactCurrentOwner,te=!1;function q(e,n,t,r){n.child=e===null?gs(n,null,t,r):Wn(n,e.child,t,r)}function Xu(e,n,t,r,l){t=t.render;var i=n.ref;return Vn(n,l),r=Ai(e,n,t,r,i,l),t=Bi(),e!==null&&!te?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ue(e,n,l)):(D&&t&&_i(n),n.flags|=1,q(e,n,r,l),n.child)}function Gu(e,n,t,r,l){if(e===null){var i=t.type;return typeof i=="function"&&!Ji(i)&&i.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=i,As(e,n,i,r,l)):(e=ar(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(i=e.child,!(e.lanes&l)){var u=i.memoizedProps;if(t=t.compare,t=t!==null?t:xt,t(u,r)&&e.ref===n.ref)return Ue(e,n,l)}return n.flags|=1,e=nn(i,r),e.ref=n.ref,e.return=n,n.child=e}function As(e,n,t,r,l){if(e!==null){var i=e.memoizedProps;if(xt(i,r)&&e.ref===n.ref)if(te=!1,n.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(te=!0);else return n.lanes=e.lanes,Ue(e,n,l)}return bl(e,n,t,r,l)}function Bs(e,n,t){var r=n.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},L(On,ue),ue|=t;else{if(!(t&1073741824))return e=i!==null?i.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,L(On,ue),ue|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:t,L(On,ue),ue|=r}else i!==null?(r=i.baseLanes|t,n.memoizedState=null):r=t,L(On,ue),ue|=r;return q(e,n,l,t),n.child}function Hs(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function bl(e,n,t,r,l){var i=le(t)?vn:J.current;return i=Hn(n,i),Vn(n,l),t=Ai(e,n,t,r,i,l),r=Bi(),e!==null&&!te?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ue(e,n,l)):(D&&r&&_i(n),n.flags|=1,q(e,n,t,l),n.child)}function Zu(e,n,t,r,l){if(le(t)){var i=!0;Sr(n)}else i=!1;if(Vn(n,l),n.stateNode===null)ur(e,n),vs(n,t,r),Jl(n,t,r,l),r=!0;else if(e===null){var u=n.stateNode,o=n.memoizedProps;u.props=o;var s=u.context,d=t.contextType;typeof d=="object"&&d!==null?d=he(d):(d=le(t)?vn:J.current,d=Hn(n,d));var m=t.getDerivedStateFromProps,v=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function";v||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==r||s!==d)&&Bu(n,u,r,d),Qe=!1;var p=n.memoizedState;u.state=p,Nr(n,r,u,l),s=n.memoizedState,o!==r||p!==s||re.current||Qe?(typeof m=="function"&&(Zl(n,t,m,r),s=n.memoizedState),(o=Qe||Au(n,t,o,r,p,s,d))?(v||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(n.flags|=4194308)):(typeof u.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),u.props=r,u.state=s,u.context=d,r=o):(typeof u.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,ps(e,n),o=n.memoizedProps,d=n.type===n.elementType?o:we(n.type,o),u.props=d,v=n.pendingProps,p=u.context,s=t.contextType,typeof s=="object"&&s!==null?s=he(s):(s=le(t)?vn:J.current,s=Hn(n,s));var y=t.getDerivedStateFromProps;(m=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==v||p!==s)&&Bu(n,u,r,s),Qe=!1,p=n.memoizedState,u.state=p,Nr(n,r,u,l);var S=n.memoizedState;o!==v||p!==S||re.current||Qe?(typeof y=="function"&&(Zl(n,t,y,r),S=n.memoizedState),(d=Qe||Au(n,t,d,r,p,S,s)||!1)?(m||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,S,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,S,s)),typeof u.componentDidUpdate=="function"&&(n.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=S),u.props=r,u.state=S,u.context=s,r=d):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),r=!1)}return ei(e,n,t,r,i,l)}function ei(e,n,t,r,l,i){Hs(e,n);var u=(n.flags&128)!==0;if(!r&&!u)return l&&Fu(n,t,!1),Ue(e,n,i);r=n.stateNode,Gc.current=n;var o=u&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&u?(n.child=Wn(n,e.child,null,i),n.child=Wn(n,null,o,i)):q(e,n,o,i),n.memoizedState=r.state,l&&Fu(n,t,!0),n.child}function Qs(e){var n=e.stateNode;n.pendingContext?Ou(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Ou(e,n.context,!1),Ii(e,n.containerInfo)}function Ju(e,n,t,r,l){return Qn(),Ti(l),n.flags|=256,q(e,n,t,r),n.child}var ni={dehydrated:null,treeContext:null,retryLane:0};function ti(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ws(e,n,t){var r=n.pendingProps,l=R.current,i=!1,u=(n.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(l&2)!==0),o?(i=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),L(R,l&1),e===null)return Xl(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(u=r.children,e=r.fallback,i?(r=n.mode,i=n.child,u={mode:"hidden",children:u},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=u):i=Wr(u,r,0,null),e=mn(e,r,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=ti(t),n.memoizedState=ni,e):Wi(n,u));if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null))return Zc(e,n,u,r,o,l,t);if(i){i=r.fallback,u=n.mode,l=e.child,o=l.sibling;var s={mode:"hidden",children:r.children};return!(u&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=nn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),o!==null?i=nn(o,i):(i=mn(i,u,t,null),i.flags|=2),i.return=n,r.return=n,r.sibling=i,n.child=r,r=i,i=n.child,u=e.child.memoizedState,u=u===null?ti(t):{baseLanes:u.baseLanes|t,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~t,n.memoizedState=ni,r}return i=e.child,e=i.sibling,r=nn(i,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function Wi(e,n){return n=Wr({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Zt(e,n,t,r){return r!==null&&Ti(r),Wn(n,e.child,null,t),e=Wi(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Zc(e,n,t,r,l,i,u){if(t)return n.flags&256?(n.flags&=-257,r=hl(Error(h(422))),Zt(e,n,u,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(i=r.fallback,l=n.mode,r=Wr({mode:"visible",children:r.children},l,0,null),i=mn(i,l,u,null),i.flags|=2,r.return=n,i.return=n,r.sibling=i,n.child=r,n.mode&1&&Wn(n,e.child,null,u),n.child.memoizedState=ti(u),n.memoizedState=ni,i);if(!(n.mode&1))return Zt(e,n,u,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(h(419)),r=hl(i,r,void 0),Zt(e,n,u,r)}if(o=(u&e.childLanes)!==0,te||o){if(r=W,r!==null){switch(u&-u){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|u)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,je(e,l),Ce(r,e,l,-1))}return Zi(),r=hl(Error(h(421))),Zt(e,n,u,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=cf.bind(null,e),l._reactRetry=n,null):(e=i.treeContext,oe=Je(l.nextSibling),se=n,D=!0,ke=null,e!==null&&(de[pe++]=De,de[pe++]=Re,de[pe++]=hn,De=e.id,Re=e.overflow,hn=n),n=Wi(n,r.children),n.flags|=4096,n)}function qu(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Gl(e.return,n,t)}function gl(e,n,t,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(i.isBackwards=n,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=t,i.tailMode=l)}function $s(e,n,t){var r=n.pendingProps,l=r.revealOrder,i=r.tail;if(q(e,n,r.children,t),r=R.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qu(e,t,n);else if(e.tag===19)qu(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(L(R,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&zr(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),gl(n,!1,l,t,i);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&zr(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}gl(n,!0,t,null,i);break;case"together":gl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ur(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ue(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),yn|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(h(153));if(n.child!==null){for(e=n.child,t=nn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=nn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function Jc(e,n,t){switch(n.tag){case 3:Qs(n),Qn();break;case 5:ys(n);break;case 1:le(n.type)&&Sr(n);break;case 4:Ii(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;L(Cr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(L(R,R.current&1),n.flags|=128,null):t&n.child.childLanes?Ws(e,n,t):(L(R,R.current&1),e=Ue(e,n,t),e!==null?e.sibling:null);L(R,R.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return $s(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),L(R,R.current),r)break;return null;case 22:case 23:return n.lanes=0,Bs(e,n,t)}return Ue(e,n,t)}var Ks,ri,Ys,Xs;Ks=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};ri=function(){};Ys=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,dn(Le.current);var i=null;switch(t){case"input":l=Nl(e,l),r=Nl(e,r),i=[];break;case"select":l=F({},l,{value:void 0}),r=F({},r,{value:void 0}),i=[];break;case"textarea":l=_l(e,l),r=_l(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=yr)}Tl(t,r);var u;t=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var o=l[d];for(u in o)o.hasOwnProperty(u)&&(t||(t={}),t[u]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(gt.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var s=r[d];if(o=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&s!==o&&(s!=null||o!=null))if(d==="style")if(o){for(u in o)!o.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(t||(t={}),t[u]="");for(u in s)s.hasOwnProperty(u)&&o[u]!==s[u]&&(t||(t={}),t[u]=s[u])}else t||(i||(i=[]),i.push(d,t)),t=s;else d==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,o=o?o.__html:void 0,s!=null&&o!==s&&(i=i||[]).push(d,s)):d==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(d,""+s):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(gt.hasOwnProperty(d)?(s!=null&&d==="onScroll"&&T("scroll",e),i||o===s||(i=[])):(i=i||[]).push(d,s))}t&&(i=i||[]).push("style",t);var d=i;(n.updateQueue=d)&&(n.flags|=4)}};Xs=function(e,n,t,r){t!==r&&(n.flags|=4)};function tt(e,n){if(!D)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function G(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function qc(e,n,t){var r=n.pendingProps;switch(Li(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return G(n),null;case 1:return le(n.type)&&wr(),G(n),null;case 3:return r=n.stateNode,$n(),M(re),M(J),Ui(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xt(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,ke!==null&&(fi(ke),ke=null))),ri(e,n),G(n),null;case 5:ji(n);var l=dn(Lt.current);if(t=n.type,e!==null&&n.stateNode!=null)Ys(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(h(166));return G(n),null}if(e=dn(Le.current),Xt(n)){r=n.stateNode,t=n.type;var i=n.memoizedProps;switch(r[Pe]=n,r[Pt]=i,e=(n.mode&1)!==0,t){case"dialog":T("cancel",r),T("close",r);break;case"iframe":case"object":case"embed":T("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Pe]=n,e[Pt]=r,Ks(e,n,!1,!1),n.stateNode=e;e:{switch(u=Ml(t,r),t){case"dialog":T("cancel",e),T("close",e),l=r;break;case"iframe":case"object":case"embed":T("load",e),l=r;break;case"video":case"audio":for(l=0;lYn&&(n.flags|=128,r=!0,tt(i,!1),n.lanes=4194304)}else{if(!r)if(e=zr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),tt(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!D)return G(n),null}else 2*U()-i.renderingStartTime>Yn&&t!==1073741824&&(n.flags|=128,r=!0,tt(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=U(),n.sibling=null,t=R.current,L(R,r?t&1|2:t&1),n):(G(n),null);case 22:case 23:return Gi(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ue&1073741824&&(G(n),n.subtreeFlags&6&&(n.flags|=8192)):G(n),null;case 24:return null;case 25:return null}throw Error(h(156,n.tag))}function bc(e,n){switch(Li(n),n.tag){case 1:return le(n.type)&&wr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return $n(),M(re),M(J),Ui(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return ji(n),null;case 13:if(M(R),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(h(340));Qn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(R),null;case 4:return $n(),null;case 10:return Ri(n.type._context),null;case 22:case 23:return Gi(),null;case 24:return null;default:return null}}var Jt=!1,Z=!1,ef=typeof WeakSet=="function"?WeakSet:Set,w=null;function Rn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){I(e,n,r)}else t.current=null}function li(e,n,t){try{t()}catch(r){I(e,n,r)}}var bu=!1;function nf(e,n){if(Bl=vr,e=qo(),Pi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,m=0,v=e,p=null;n:for(;;){for(var y;v!==t||l!==0&&v.nodeType!==3||(o=u+l),v!==i||r!==0&&v.nodeType!==3||(s=u+r),v.nodeType===3&&(u+=v.nodeValue.length),(y=v.firstChild)!==null;)p=v,v=y;for(;;){if(v===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++m===r&&(s=u),(y=v.nextSibling)!==null)break;v=p,p=v.parentNode}v=y}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(Hl={focusedElem:e,selectionRange:t},vr=!1,w=n;w!==null;)if(n=w,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,w=e;else for(;w!==null;){n=w;try{var S=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,j=S.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:we(n.type,k),j);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(h(163))}}catch(g){I(n,n.return,g)}if(e=n.sibling,e!==null){e.return=n.return,w=e;break}w=n.return}return S=bu,bu=!1,S}function mt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&li(n,t,i)}l=l.next}while(l!==r)}}function Hr(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ii(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Gs(e){var n=e.alternate;n!==null&&(e.alternate=null,Gs(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Pe],delete n[Pt],delete n[$l],delete n[jc],delete n[Uc])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zs(e){return e.tag===5||e.tag===3||e.tag===4}function eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ui(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=yr));else if(r!==4&&(e=e.child,e!==null))for(ui(e,n,t),e=e.sibling;e!==null;)ui(e,n,t),e=e.sibling}function oi(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oi(e,n,t),e=e.sibling;e!==null;)oi(e,n,t),e=e.sibling}var $=null,Se=!1;function Be(e,n,t){for(t=t.child;t!==null;)Js(e,n,t),t=t.sibling}function Js(e,n,t){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(Or,t)}catch{}switch(t.tag){case 5:Z||Rn(t,n);case 6:var r=$,l=Se;$=null,Be(e,n,t),$=r,Se=l,$!==null&&(Se?(e=$,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):$.removeChild(t.stateNode));break;case 18:$!==null&&(Se?(e=$,t=t.stateNode,e.nodeType===8?cl(e.parentNode,t):e.nodeType===1&&cl(e,t),Et(e)):cl($,t.stateNode));break;case 4:r=$,l=Se,$=t.stateNode.containerInfo,Se=!0,Be(e,n,t),$=r,Se=l;break;case 0:case 11:case 14:case 15:if(!Z&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&li(t,n,u),l=l.next}while(l!==r)}Be(e,n,t);break;case 1:if(!Z&&(Rn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){I(t,n,o)}Be(e,n,t);break;case 21:Be(e,n,t);break;case 22:t.mode&1?(Z=(r=Z)||t.memoizedState!==null,Be(e,n,t),Z=r):Be(e,n,t);break;default:Be(e,n,t)}}function no(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new ef),n.forEach(function(r){var l=ff.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ye(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=U()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rf(r/1960))-r,10e?16:e,Ye===null)var r=!1;else{if(e=Ye,Ye=null,Mr=0,z&6)throw Error(h(331));var l=z;for(z|=4,w=e.current;w!==null;){var i=w,u=i.child;if(w.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sU()-Yi?pn(e,0):Ki|=t),ie(e,n)}function ia(e,n){n===0&&(e.mode&1?(n=Ht,Ht<<=1,!(Ht&130023424)&&(Ht=4194304)):n=1);var t=b();e=je(e,n),e!==null&&(Ot(e,n,t),ie(e,t))}function cf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ia(e,t)}function ff(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(h(314))}r!==null&&r.delete(n),ia(e,t)}var ua;ua=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||re.current)te=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return te=!1,Jc(e,n,t);te=!!(e.flags&131072)}else te=!1,D&&n.flags&1048576&&as(n,Er,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;ur(e,n),e=n.pendingProps;var l=Hn(n,J.current);Vn(n,t),l=Ai(null,n,r,e,l,t);var i=Bi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,le(r)?(i=!0,Sr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Fi(n),l.updater=Ar,n.stateNode=l,l._reactInternals=n,Jl(n,r,e,t),n=ei(null,n,r,!0,i,t)):(n.tag=0,D&&i&&_i(n),q(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(ur(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=pf(r),e=we(r,e),l){case 0:n=bl(null,n,r,e,t);break e;case 1:n=Zu(null,n,r,e,t);break e;case 11:n=Xu(null,n,r,e,t);break e;case 14:n=Gu(null,n,r,we(r.type,e),t);break e}throw Error(h(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),bl(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),Zu(e,n,r,l,t);case 3:e:{if(Qs(n),e===null)throw Error(h(387));r=n.pendingProps,i=n.memoizedState,l=i.element,ps(e,n),Nr(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=Kn(Error(h(423)),n),n=Ju(e,n,r,t,l);break e}else if(r!==l){l=Kn(Error(h(424)),n),n=Ju(e,n,r,t,l);break e}else for(oe=Je(n.stateNode.containerInfo.firstChild),se=n,D=!0,ke=null,t=gs(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Qn(),r===l){n=Ue(e,n,t);break e}q(e,n,r,t)}n=n.child}return n;case 5:return ys(n),e===null&&Xl(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,Ql(r,l)?u=null:i!==null&&Ql(r,i)&&(n.flags|=32),Hs(e,n),q(e,n,u,t),n.child;case 6:return e===null&&Xl(n),null;case 13:return Ws(e,n,t);case 4:return Ii(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Wn(n,null,r,t):q(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),Xu(e,n,r,l,t);case 7:return q(e,n,n.pendingProps,t),n.child;case 8:return q(e,n,n.pendingProps.children,t),n.child;case 12:return q(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,L(Cr,r._currentValue),r._currentValue=u,i!==null)if(xe(i.value,u)){if(i.children===l.children&&!re.current){n=Ue(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Oe(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?s.next=s:(s.next=m.next,m.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Gl(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(h(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),Gl(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}q(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Vn(n,t),l=he(l),r=r(l),n.flags|=1,q(e,n,r,t),n.child;case 14:return r=n.type,l=we(r,n.pendingProps),l=we(r.type,l),Gu(e,n,r,l,t);case 15:return As(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:we(r,l),ur(e,n),n.tag=1,le(r)?(e=!0,Sr(n)):e=!1,Vn(n,t),vs(n,r,l),Jl(n,r,l,t),ei(null,n,r,!0,e,t);case 19:return $s(e,n,t);case 22:return Bs(e,n,t)}throw Error(h(156,n.tag))};function oa(e,n){return Ro(e,n)}function df(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function me(e,n,t,r){return new df(e,n,t,r)}function Ji(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pf(e){if(typeof e=="function")return Ji(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hi)return 11;if(e===gi)return 14}return 2}function nn(e,n){var t=e.alternate;return t===null?(t=me(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function ar(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")Ji(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case xn:return mn(t.children,l,i,n);case vi:u=8,l|=8;break;case kl:return e=me(12,t,n,l|2),e.elementType=kl,e.lanes=i,e;case El:return e=me(13,t,n,l),e.elementType=El,e.lanes=i,e;case Cl:return e=me(19,t,n,l),e.elementType=Cl,e.lanes=i,e;case ho:return Wr(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mo:u=10;break e;case vo:u=9;break e;case hi:u=11;break e;case gi:u=14;break e;case He:u=16,r=null;break e}throw Error(h(130,e==null?e:typeof e,""))}return n=me(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function mn(e,n,t,r){return e=me(7,e,r,n),e.lanes=t,e}function Wr(e,n,t,r){return e=me(22,e,r,n),e.elementType=ho,e.lanes=t,e.stateNode={isHidden:!1},e}function yl(e,n,t){return e=me(6,e,null,n),e.lanes=t,e}function wl(e,n,t){return n=me(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function mf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=br(0),this.expirationTimes=br(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=br(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function qi(e,n,t,r,l,i,u,o,s){return e=new mf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=me(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(i),e}function vf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fa)}catch(e){console.error(e)}}fa(),co.exports=ce;var tu=co.exports;const Sf=pa(tu),xf=ha({__proto__:null,default:Sf},[tu]);var ao=tu;ru.createRoot=ao.createRoot,ru.hydrateRoot=ao.hydrateRoot;export{xf as R,ru as c}; diff --git a/assets/react-error-boundary-T58OFYed.js b/assets/react-error-boundary-dsJbtDRP.js similarity index 95% rename from assets/react-error-boundary-T58OFYed.js rename to assets/react-error-boundary-dsJbtDRP.js index 70fad29..3a1ae20 100644 --- a/assets/react-error-boundary-T58OFYed.js +++ b/assets/react-error-boundary-dsJbtDRP.js @@ -1 +1 @@ -import{r as a}from"./react-328yWDDP.js";const c=a.createContext(null),d={didCatch:!1,error:null};class E extends a.Component{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=d}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var t,e,n=arguments.length,s=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return l.length!==r.length||l.some((t,e)=>!Object.is(t,r[e]))}export{E}; +import{r as a}from"./react-INodxC-X.js";const c=a.createContext(null),d={didCatch:!1,error:null};class E extends a.Component{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=d}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var t,e,n=arguments.length,s=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return l.length!==r.length||l.some((t,e)=>!Object.is(t,r[e]))}export{E}; diff --git a/assets/react-icons--8-lwhlz.js b/assets/react-icons--8-lwhlz.js new file mode 100644 index 0000000..5c1fc5f --- /dev/null +++ b/assets/react-icons--8-lwhlz.js @@ -0,0 +1 @@ +import{R as l}from"./react-INodxC-X.js";var v={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=l.createContext&&l.createContext(v),p=["attr","size","title"];function z(t,a){if(t==null)return{};var r=M(t,a),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function M(t,a){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var a=1;al.createElement(a.tag,s({key:r},a.attr),f(a.child)))}function c(t){return a=>l.createElement(b,h({attr:s({},t.attr)},a),f(t.child))}function b(t){var a=r=>{var{attr:e,size:n,title:i}=t,m=z(t,p),d=n||r.size||"1em",o;return r.className&&(o=r.className),t.className&&(o=(o?o+" ":"")+t.className),l.createElement("svg",h({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,e,m,{className:o,style:s(s({color:t.color||r.color},r.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),i&&l.createElement("title",null,i),t.children)};return g!==void 0?l.createElement(g.Consumer,null,r=>a(r)):a(v)}function B(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},child:[]},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"},child:[]}]})(t)}function H(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"},child:[]},{tag:"path",attr:{d:"M3 6h18"},child:[]},{tag:"path",attr:{d:"M16 10a4 4 0 0 1-8 0"},child:[]}]})(t)}function O(t){return c({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.526 11.695c1.84-.382 3.367-2.044 3.367-4.478 0-2.604-1.9-4.97-5.615-4.97H0v19.506h10.6c3.75 0 5.683-2.341 5.683-5.292-.009-2.426-1.646-4.444-3.757-4.766zm-8.37-5.793h5.207c1.407 0 2.28.849 2.28 2.044 0 1.255-.881 2.044-2.28 2.044H4.155zM9.54 18.098H4.155v-4.444h5.386c1.61 0 2.484.992 2.484 2.222.009 1.399-.932 2.222-2.484 2.222zM21.396 2.28c-1.255 0-2.315 1.052-2.315 2.307s.882 2.103 1.993 2.103c.238 0 .467-.025.56-.085-.238 1.052-1.315 2.282-2.256 2.782l1.611 1.314C22.796 9.422 24 7.462 24 5.266c0-1.9-1.23-2.985-2.604-2.985Z"},child:[]}]})(t)}function V(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(t)}function L(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13.92 8C13.44 5.16 10.97 3 8 3 4.69 3 2 5.69 2 9c0 2.97 2.16 5.44 5 5.92V21h2v-6.09c0-.98-.71-1.8-1.67-1.97a3.999 3.999 0 1 1 4.61-4.61c.17.96.99 1.67 1.97 1.67h4.26l-1.59 1.59L18 13l4-4-4-4-1.41 1.41L18.17 8h-4.25z"},child:[]}]})(t)}function j(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(t)}function P(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"},child:[]}]})(t)}function F(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M239.208 343.937c-17.78 10.103-38.342 15.876-60.255 15.876-21.909 0-42.467-5.771-60.246-15.87C71.544 358.331 42.643 406 32 448h293.912c-10.639-42-39.537-89.683-86.704-104.063zM178.953 120.035c-58.479 0-105.886 47.394-105.886 105.858 0 58.464 47.407 105.857 105.886 105.857s105.886-47.394 105.886-105.857c0-58.464-47.408-105.858-105.886-105.858zm0 186.488c-33.671 0-62.445-22.513-73.997-50.523H252.95c-11.554 28.011-40.326 50.523-73.997 50.523z"},child:[]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M322.602 384H480c-10.638-42-39.537-81.691-86.703-96.072-17.781 10.104-38.343 15.873-60.256 15.873-14.823 0-29.024-2.654-42.168-7.49-7.445 12.47-16.927 25.592-27.974 34.906C289.245 341.354 309.146 364 322.602 384zM306.545 200h100.493c-11.554 28-40.327 50.293-73.997 50.293-8.875 0-17.404-1.692-25.375-4.51a128.411 128.411 0 0 1-6.52 25.118c10.066 3.174 20.779 4.862 31.895 4.862 58.479 0 105.886-47.41 105.886-105.872 0-58.465-47.407-105.866-105.886-105.866-37.49 0-70.427 19.703-89.243 49.09C275.607 131.383 298.961 163 306.545 200z"},child:[]}]}]})(t)}function S(t){return c({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(t)}function k(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(t)}function E(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(t)}function I(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function Z(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(t)}function N(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"},child:[]}]})(t)}function R(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(t)}function _(t){return c({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"},child:[]}]})(t)}function A(t){return c({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"},child:[]}]})(t)}function W(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(t)}function D(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"},child:[]}]})(t)}function T(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zm40-89.3l0 0 0 0-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2 0 0 0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8l0 0 0 0zm160 0l0 0-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2 0 0 0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8l0 0 0 0 0 0z"},child:[]}]})(t)}function G(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M12,10 C14.209139,10 16,8.209139 16,6 C16,3.790861 14.209139,2 12,2 C9.790861,2 8,3.790861 8,6 C8,8.209139 9.790861,10 12,10 Z M12,10 L12,22"},child:[]}]})(t)}function K(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18 8H20C20.5523 8 21 8.44772 21 9V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V9C3 8.44772 3.44772 8 4 8H6V7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V8ZM16 8V7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7V8H16ZM11 14V16H13V14H11ZM7 14V16H9V14H7ZM15 14V16H17V14H15Z"},child:[]}]})(t)}function U(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zM248 315.85l-51.79-51.79a2 2 0 0 0-3.39 1.69 64.11 64.11 0 0 0 53.49 53.49 2 2 0 0 0 1.69-3.39zm16-119.7L315.87 248a2 2 0 0 0 3.4-1.69 64.13 64.13 0 0 0-53.55-53.55 2 2 0 0 0-1.72 3.39z"},child:[]},{tag:"path",attr:{d:"M491 273.36a32.2 32.2 0 0 0-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 0 0-71.82 11.79 4 4 0 0 0-1.56 6.63l47.24 47.24a4 4 0 0 0 3.82 1.05 96 96 0 0 1 116 116 4 4 0 0 0 1.05 3.81l67.95 68a4 4 0 0 0 5.4.24 343.81 343.81 0 0 0 67.24-77.4zM256 352a96 96 0 0 1-93.3-118.63 4 4 0 0 0-1.05-3.81l-66.84-66.87a4 4 0 0 0-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 255.68 416a238.22 238.22 0 0 0 72.64-11.55 4 4 0 0 0 1.61-6.64l-47.47-47.46a4 4 0 0 0-3.81-1.05A96 96 0 0 1 256 352z"},child:[]}]})(t)}function X(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"},child:[]},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96 96.11 96.11 0 0 1-96 96z"},child:[]}]})(t)}export{_ as B,B as F,G,F as I,H as L,L as M,K as R,O as S,N as a,P as b,j as c,I as d,S as e,k as f,E as g,W as h,D as i,V as j,A as k,Z as l,T as m,U as n,R as o,X as p}; diff --git a/assets/react-icons-l7RwqXwD.js b/assets/react-icons-l7RwqXwD.js deleted file mode 100644 index e204cc1..0000000 --- a/assets/react-icons-l7RwqXwD.js +++ /dev/null @@ -1 +0,0 @@ -import{e as l}from"./react-328yWDDP.js";var v={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=l.createContext&&l.createContext(v),p=["attr","size","title"];function z(t,a){if(t==null)return{};var r=M(t,a),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function M(t,a){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var a=1;al.createElement(a.tag,s({key:r},a.attr),f(a.child)))}function c(t){return a=>l.createElement(b,h({attr:s({},t.attr)},a),f(t.child))}function b(t){var a=r=>{var{attr:e,size:n,title:i}=t,m=z(t,p),d=n||r.size||"1em",o;return r.className&&(o=r.className),t.className&&(o=(o?o+" ":"")+t.className),l.createElement("svg",h({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,e,m,{className:o,style:s(s({color:t.color||r.color},r.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),i&&l.createElement("title",null,i),t.children)};return g!==void 0?l.createElement(g.Consumer,null,r=>a(r)):a(v)}function B(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},child:[]},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"},child:[]}]})(t)}function H(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"},child:[]},{tag:"path",attr:{d:"M3 6h18"},child:[]},{tag:"path",attr:{d:"M16 10a4 4 0 0 1-8 0"},child:[]}]})(t)}function O(t){return c({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.526 11.695c1.84-.382 3.367-2.044 3.367-4.478 0-2.604-1.9-4.97-5.615-4.97H0v19.506h10.6c3.75 0 5.683-2.341 5.683-5.292-.009-2.426-1.646-4.444-3.757-4.766zm-8.37-5.793h5.207c1.407 0 2.28.849 2.28 2.044 0 1.255-.881 2.044-2.28 2.044H4.155zM9.54 18.098H4.155v-4.444h5.386c1.61 0 2.484.992 2.484 2.222.009 1.399-.932 2.222-2.484 2.222zM21.396 2.28c-1.255 0-2.315 1.052-2.315 2.307s.882 2.103 1.993 2.103c.238 0 .467-.025.56-.085-.238 1.052-1.315 2.282-2.256 2.782l1.611 1.314C22.796 9.422 24 7.462 24 5.266c0-1.9-1.23-2.985-2.604-2.985Z"},child:[]}]})(t)}function V(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(t)}function L(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C8.13 2 5 5.13 5 9c0 1.74.5 3.37 1.41 4.84.95 1.54 2.2 2.86 3.16 4.4.47.75.81 1.45 1.17 2.26.26.55.47 1.5 1.26 1.5s1-.95 1.25-1.5c.37-.81.7-1.51 1.17-2.26.96-1.53 2.21-2.85 3.16-4.4C18.5 12.37 19 10.74 19 9c0-3.87-3.13-7-7-7zm0 9.75a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z"},child:[]}]})(t)}function j(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13.92 8C13.44 5.16 10.97 3 8 3 4.69 3 2 5.69 2 9c0 2.97 2.16 5.44 5 5.92V21h2v-6.09c0-.98-.71-1.8-1.67-1.97a3.999 3.999 0 1 1 4.61-4.61c.17.96.99 1.67 1.97 1.67h4.26l-1.59 1.59L18 13l4-4-4-4-1.41 1.41L18.17 8h-4.25z"},child:[]}]})(t)}function P(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(t)}function F(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"},child:[]}]})(t)}function S(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M239.208 343.937c-17.78 10.103-38.342 15.876-60.255 15.876-21.909 0-42.467-5.771-60.246-15.87C71.544 358.331 42.643 406 32 448h293.912c-10.639-42-39.537-89.683-86.704-104.063zM178.953 120.035c-58.479 0-105.886 47.394-105.886 105.858 0 58.464 47.407 105.857 105.886 105.857s105.886-47.394 105.886-105.857c0-58.464-47.408-105.858-105.886-105.858zm0 186.488c-33.671 0-62.445-22.513-73.997-50.523H252.95c-11.554 28.011-40.326 50.523-73.997 50.523z"},child:[]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M322.602 384H480c-10.638-42-39.537-81.691-86.703-96.072-17.781 10.104-38.343 15.873-60.256 15.873-14.823 0-29.024-2.654-42.168-7.49-7.445 12.47-16.927 25.592-27.974 34.906C289.245 341.354 309.146 364 322.602 384zM306.545 200h100.493c-11.554 28-40.327 50.293-73.997 50.293-8.875 0-17.404-1.692-25.375-4.51a128.411 128.411 0 0 1-6.52 25.118c10.066 3.174 20.779 4.862 31.895 4.862 58.479 0 105.886-47.41 105.886-105.872 0-58.465-47.407-105.866-105.886-105.866-37.49 0-70.427 19.703-89.243 49.09C275.607 131.383 298.961 163 306.545 200z"},child:[]}]}]})(t)}function k(t){return c({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(t)}function E(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(t)}function I(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(t)}function Z(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function N(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(t)}function _(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"},child:[]}]})(t)}function A(t){return c({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(t)}function W(t){return c({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"},child:[]}]})(t)}function R(t){return c({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"},child:[]}]})(t)}function D(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(t)}function T(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"},child:[]}]})(t)}function G(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zm40-89.3l0 0 0 0-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2 0 0 0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8l0 0 0 0zm160 0l0 0-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2 0 0 0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8l0 0 0 0 0 0z"},child:[]}]})(t)}function K(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M12,10 C14.209139,10 16,8.209139 16,6 C16,3.790861 14.209139,2 12,2 C9.790861,2 8,3.790861 8,6 C8,8.209139 9.790861,10 12,10 Z M12,10 L12,22"},child:[]}]})(t)}function U(t){return c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18 8H20C20.5523 8 21 8.44772 21 9V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V9C3 8.44772 3.44772 8 4 8H6V7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7V8ZM16 8V7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7V8H16ZM11 14V16H13V14H11ZM7 14V16H9V14H7ZM15 14V16H17V14H15Z"},child:[]}]})(t)}function q(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zM248 315.85l-51.79-51.79a2 2 0 0 0-3.39 1.69 64.11 64.11 0 0 0 53.49 53.49 2 2 0 0 0 1.69-3.39zm16-119.7L315.87 248a2 2 0 0 0 3.4-1.69 64.13 64.13 0 0 0-53.55-53.55 2 2 0 0 0-1.72 3.39z"},child:[]},{tag:"path",attr:{d:"M491 273.36a32.2 32.2 0 0 0-.1-34.76c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.68 96a226.54 226.54 0 0 0-71.82 11.79 4 4 0 0 0-1.56 6.63l47.24 47.24a4 4 0 0 0 3.82 1.05 96 96 0 0 1 116 116 4 4 0 0 0 1.05 3.81l67.95 68a4 4 0 0 0 5.4.24 343.81 343.81 0 0 0 67.24-77.4zM256 352a96 96 0 0 1-93.3-118.63 4 4 0 0 0-1.05-3.81l-66.84-66.87a4 4 0 0 0-5.41-.23c-24.39 20.81-47 46.13-67.67 75.72a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.39 76.14 98.28 100.65C162.06 402 207.92 416 255.68 416a238.22 238.22 0 0 0 72.64-11.55 4 4 0 0 0 1.61-6.64l-47.47-47.46a4 4 0 0 0-3.81-1.05A96 96 0 0 1 256 352z"},child:[]}]})(t)}function X(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"64"},child:[]},{tag:"path",attr:{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72 38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96 96.11 96.11 0 0 1-96 96z"},child:[]}]})(t)}export{W as B,B as F,K as G,S as I,H as L,j as M,U as R,O as S,_ as a,F as b,P as c,Z as d,k as e,E as f,I as g,D as h,T as i,L as j,V as k,R as l,N as m,G as n,q as o,A as p,X as q}; diff --git a/assets/react-player-7gDidTFE.js b/assets/react-player-7gDidTFE.js deleted file mode 100644 index 4bff7da..0000000 --- a/assets/react-player-7gDidTFE.js +++ /dev/null @@ -1,7 +0,0 @@ -import{c as Ie,g as w}from"./@mapbox-P3eih9Ks.js";import{r as P}from"./react-328yWDDP.js";import{c as At}from"./deepmerge-m38oLmcF.js";import{r as oa}from"./memoize-one-2aoN688H.js";import{r as It}from"./react-fast-compare-LawLdkOo.js";import{p as na}from"./prop-types-EUydVlhc.js";import{l as ia}from"./load-script-KV37v6J9.js";function S(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const la="modulepreload",pa=function(t,e){return new URL(t,e).href},ut={},E=function(e,r,s){let a=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link");a=Promise.all(r.map(n=>{if(n=pa(n,s),n in ut)return;ut[n]=!0;const i=n.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!s)for(let d=o.length-1;d>=0;d--){const R=o[d];if(R.href===n&&(!i||R.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":la,i||(u.as="script",u.crossOrigin=""),u.href=n,document.head.appendChild(u),i)return new Promise((d,R)=>{u.addEventListener("load",d),u.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${n}`)))})}))}return a.then(()=>e()).catch(o=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=o,window.dispatchEvent(n),!n.defaultPrevented)throw o})};var ua=Object.create,ge=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,ha=Object.getOwnPropertyNames,da=Object.getPrototypeOf,ya=Object.prototype.hasOwnProperty,_a=(t,e)=>{for(var r in e)ge(t,r,{get:e[r],enumerable:!0})},jt=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ha(e))!ya.call(t,a)&&a!==r&&ge(t,a,{get:()=>e[a],enumerable:!(s=ca(e,a))||s.enumerable});return t},Ze=(t,e,r)=>(r=t!=null?ua(da(t)):{},jt(e||!t||!t.__esModule?ge(r,"default",{value:t,enumerable:!0}):r,t)),fa=t=>jt(ge({},"__esModule",{value:!0}),t),kt={};_a(kt,{callPlayer:()=>Ca,getConfig:()=>Ra,getSDK:()=>Ta,isBlobUrl:()=>Ia,isMediaStream:()=>Aa,lazy:()=>ba,omit:()=>Ma,parseEndTime:()=>Sa,parseStartTime:()=>Ea,queryString:()=>Da,randomString:()=>La,supportsWebKitPresentationMode:()=>ja});var m=fa(kt),Pa=Ze(P),ma=Ze(ia),va=Ze(At);const ba=t=>Pa.default.lazy(async()=>{const e=await t();return typeof e.default=="function"?e:e.default}),ga=/[?&#](?:start|t)=([0-9hms]+)/,Oa=/[?&#]end=([0-9hms]+)/,Ge=/(\d+)(h|m|s)/g,wa=/^\d+$/;function Nt(t,e){if(t instanceof Array)return;const r=t.match(e);if(r){const s=r[1];if(s.match(Ge))return $a(s);if(wa.test(s))return parseInt(s)}}function $a(t){let e=0,r=Ge.exec(t);for(;r!==null;){const[,s,a]=r;a==="h"&&(e+=parseInt(s,10)*60*60),a==="m"&&(e+=parseInt(s,10)*60),a==="s"&&(e+=parseInt(s,10)),r=Ge.exec(t)}return e}function Ea(t){return Nt(t,ga)}function Sa(t){return Nt(t,Oa)}function La(){return Math.random().toString(36).substr(2,5)}function Da(t){return Object.keys(t).map(e=>`${e}=${t[e]}`).join("&")}function je(t){return window[t]?window[t]:window.exports&&window.exports[t]?window.exports[t]:window.module&&window.module.exports&&window.module.exports[t]?window.module.exports[t]:null}const B={},Ta=function(e,r,s=null,a=()=>!0,o=ma.default){const n=je(r);return n&&a(n)?Promise.resolve(n):new Promise((i,l)=>{if(B[e]){B[e].push({resolve:i,reject:l});return}B[e]=[{resolve:i,reject:l}];const p=u=>{B[e].forEach(d=>d.resolve(u))};if(s){const u=window[s];window[s]=function(){u&&u(),p(je(r))}}o(e,u=>{u?(B[e].forEach(d=>d.reject(u)),B[e]=null):s||p(je(r))})})};function Ra(t,e){return(0,va.default)(e.config,t.config)}function Ma(t,...e){const r=[].concat(...e),s={},a=Object.keys(t);for(const o of a)r.indexOf(o)===-1&&(s[o]=t[o]);return s}function Ca(t,...e){if(!this.player||!this.player[t]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${t}%c – `;return this.player?this.player[t]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[t](...e)}function Aa(t){return typeof window<"u"&&typeof window.MediaStream<"u"&&t instanceof window.MediaStream}function Ia(t){return/^blob:/.test(t)}function ja(t=document.createElement("video")){const e=/iPhone|iPod/.test(navigator.userAgent)===!1;return t.webkitSupportsPresentationMode&&typeof t.webkitSetPresentationMode=="function"&&e}var Qe=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Na=Object.getOwnPropertyNames,Ua=Object.prototype.hasOwnProperty,Va=(t,e)=>{for(var r in e)Qe(t,r,{get:e[r],enumerable:!0})},xa=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Na(e))!Ua.call(t,a)&&a!==r&&Qe(t,a,{get:()=>e[a],enumerable:!(s=ka(e,a))||s.enumerable});return t},Ha=t=>xa(Qe({},"__esModule",{value:!0}),t),Ut={};Va(Ut,{AUDIO_EXTENSIONS:()=>et,DASH_EXTENSIONS:()=>qt,FLV_EXTENSIONS:()=>Zt,HLS_EXTENSIONS:()=>rt,MATCH_URL_DAILYMOTION:()=>Yt,MATCH_URL_FACEBOOK:()=>Ht,MATCH_URL_FACEBOOK_WATCH:()=>Kt,MATCH_URL_KALTURA:()=>Jt,MATCH_URL_MIXCLOUD:()=>Gt,MATCH_URL_SOUNDCLOUD:()=>Vt,MATCH_URL_STREAMABLE:()=>Bt,MATCH_URL_TWITCH_CHANNEL:()=>Wt,MATCH_URL_TWITCH_VIDEO:()=>zt,MATCH_URL_VIDYARD:()=>Xt,MATCH_URL_VIMEO:()=>xt,MATCH_URL_WISTIA:()=>Ft,MATCH_URL_YOUTUBE:()=>Xe,VIDEO_EXTENSIONS:()=>tt,canPlay:()=>Ka});var L=Ha(Ut),ct=m;const Xe=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Vt=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,xt=/vimeo\.com\/(?!progressive_redirect).+/,Ht=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Kt=/^https?:\/\/fb\.watch\/.+$/,Bt=/streamable\.com\/([a-z0-9]+)$/,Ft=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,zt=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,Wt=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Yt=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Gt=/mixcloud\.com\/([^/]+\/[^/]+)/,Xt=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Jt=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,et=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,tt=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,rt=/\.(m3u8)($|\?)/i,qt=/\.(mpd)($|\?)/i,Zt=/\.(flv)($|\?)/i,Je=t=>{if(t instanceof Array){for(const e of t)if(typeof e=="string"&&Je(e)||Je(e.src))return!0;return!1}return(0,ct.isMediaStream)(t)||(0,ct.isBlobUrl)(t)?!0:et.test(t)||tt.test(t)||rt.test(t)||qt.test(t)||Zt.test(t)},Ka={youtube:t=>t instanceof Array?t.every(e=>Xe.test(e)):Xe.test(t),soundcloud:t=>Vt.test(t)&&!et.test(t),vimeo:t=>xt.test(t)&&!tt.test(t)&&!rt.test(t),facebook:t=>Ht.test(t)||Kt.test(t),streamable:t=>Bt.test(t),wistia:t=>Ft.test(t),twitch:t=>zt.test(t)||Wt.test(t),dailymotion:t=>Yt.test(t),mixcloud:t=>Gt.test(t),vidyard:t=>Xt.test(t),kaltura:t=>Jt.test(t),file:Je};var at=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Fa=Object.getOwnPropertyNames,za=Object.prototype.hasOwnProperty,Wa=(t,e)=>{for(var r in e)at(t,r,{get:e[r],enumerable:!0})},Ya=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fa(e))!za.call(t,a)&&a!==r&&at(t,a,{get:()=>e[a],enumerable:!(s=Ba(e,a))||s.enumerable});return t},Ga=t=>Ya(at({},"__esModule",{value:!0}),t),Qt={};Wa(Qt,{default:()=>Ja});var Xa=Ga(Qt),$=m,O=L,Ja=[{key:"youtube",name:"YouTube",canPlay:O.canPlay.youtube,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>po),void 0,import.meta.url))},{key:"soundcloud",name:"SoundCloud",canPlay:O.canPlay.soundcloud,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>$o),void 0,import.meta.url))},{key:"vimeo",name:"Vimeo",canPlay:O.canPlay.vimeo,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Vo),void 0,import.meta.url))},{key:"facebook",name:"Facebook",canPlay:O.canPlay.facebook,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Zo),void 0,import.meta.url))},{key:"streamable",name:"Streamable",canPlay:O.canPlay.streamable,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>hn),void 0,import.meta.url))},{key:"wistia",name:"Wistia",canPlay:O.canPlay.wistia,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Sn),void 0,import.meta.url))},{key:"twitch",name:"Twitch",canPlay:O.canPlay.twitch,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>xn),void 0,import.meta.url))},{key:"dailymotion",name:"DailyMotion",canPlay:O.canPlay.dailymotion,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>ei),void 0,import.meta.url))},{key:"mixcloud",name:"Mixcloud",canPlay:O.canPlay.mixcloud,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>di),void 0,import.meta.url))},{key:"vidyard",name:"Vidyard",canPlay:O.canPlay.vidyard,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Li),void 0,import.meta.url))},{key:"kaltura",name:"Kaltura",canPlay:O.canPlay.kaltura,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Hi),void 0,import.meta.url))},{key:"file",name:"FilePlayer",canPlay:O.canPlay.file,canEnablePIP:t=>O.canPlay.file(t)&&(document.pictureInPictureEnabled||(0,$.supportsWebKitPresentationMode)())&&!O.AUDIO_EXTENSIONS.test(t),lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>ll),void 0,import.meta.url))}],qa=Object.create,Oe=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Qa=Object.getOwnPropertyNames,es=Object.getPrototypeOf,ts=Object.prototype.hasOwnProperty,rs=(t,e)=>{for(var r in e)Oe(t,r,{get:e[r],enumerable:!0})},er=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Qa(e))!ts.call(t,a)&&a!==r&&Oe(t,a,{get:()=>e[a],enumerable:!(s=Za(e,a))||s.enumerable});return t},as=(t,e,r)=>(r=t!=null?qa(es(t)):{},er(e||!t||!t.__esModule?Oe(r,"default",{value:t,enumerable:!0}):r,t)),ss=t=>er(Oe({},"__esModule",{value:!0}),t),tr={};rs(tr,{defaultProps:()=>is,propTypes:()=>ns});var rr=ss(tr),os=as(na);const{string:v,bool:b,number:F,array:ke,oneOfType:X,shape:D,object:g,func:y,node:ht}=os.default,ns={url:X([v,ke,g]),playing:b,loop:b,controls:b,volume:F,muted:b,playbackRate:F,width:X([v,F]),height:X([v,F]),style:g,progressInterval:F,playsinline:b,pip:b,stopOnUnmount:b,light:X([b,v,g]),playIcon:ht,previewTabIndex:F,fallback:ht,oEmbedUrl:v,wrapper:X([v,y,D({render:y.isRequired})]),config:D({soundcloud:D({options:g}),youtube:D({playerVars:g,embedOptions:g,onUnstarted:y}),facebook:D({appId:v,version:v,playerId:v,attributes:g}),dailymotion:D({params:g}),vimeo:D({playerOptions:g,title:v}),file:D({attributes:g,tracks:ke,forceVideo:b,forceAudio:b,forceHLS:b,forceSafariHLS:b,forceDisableHls:b,forceDASH:b,forceFLV:b,hlsOptions:g,hlsVersion:v,dashVersion:v,flvVersion:v}),wistia:D({options:g,playerId:v,customControls:ke}),mixcloud:D({options:g}),twitch:D({options:g,playerId:v}),vidyard:D({options:g})}),onReady:y,onStart:y,onPlay:y,onPause:y,onBuffer:y,onBufferEnd:y,onEnded:y,onError:y,onDuration:y,onSeek:y,onPlaybackRateChange:y,onPlaybackQualityChange:y,onProgress:y,onClickPreview:y,onEnablePIP:y,onDisablePIP:y},f=()=>{},is={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:f},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onPlaybackRateChange:f,onPlaybackQualityChange:f,onProgress:f,onClickPreview:f,onEnablePIP:f,onDisablePIP:f};var ls=Object.create,ee=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,us=Object.getOwnPropertyNames,cs=Object.getPrototypeOf,hs=Object.prototype.hasOwnProperty,ds=(t,e,r)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ys=(t,e)=>{for(var r in e)ee(t,r,{get:e[r],enumerable:!0})},ar=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of us(e))!hs.call(t,a)&&a!==r&&ee(t,a,{get:()=>e[a],enumerable:!(s=ps(e,a))||s.enumerable});return t},sr=(t,e,r)=>(r=t!=null?ls(cs(t)):{},ar(e||!t||!t.__esModule?ee(r,"default",{value:t,enumerable:!0}):r,t)),_s=t=>ar(ee({},"__esModule",{value:!0}),t),h=(t,e,r)=>(ds(t,typeof e!="symbol"?e+"":e,r),r),or={};ys(or,{default:()=>we});var fs=_s(or),dt=sr(P),Ps=sr(It),nr=rr,ms=m;const vs=5e3;class we extends dt.Component{constructor(){super(...arguments),h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",e=>{if(this.player){this.progress();return}this.player=e,this.player.load(this.props.url),this.progress()}),h(this,"getInternalPlayer",e=>this.player?this.player[e]:null),h(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,r=this.getSecondsLoaded(),s=this.getDuration();if(s){const a={playedSeconds:e,played:e/s};r!==null&&(a.loadedSeconds=r,a.loaded=r/s),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),h(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:r,volume:s,muted:a}=this.props;e(),!a&&s!==null&&this.player.setVolume(s),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),h(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:r,playbackRate:s}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&s!==1&&this.player.setPlaybackRate(s),e(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),h(this,"handlePause",e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)}),h(this,"handleEnded",()=>{const{activePlayer:e,loop:r,onEnded:s}=this.props;e.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,s())}),h(this,"handleError",(...e)=>{this.isLoading=!1,this.props.onError(...e)}),h(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),h(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:r,playing:s,volume:a,muted:o,playbackRate:n,pip:i,loop:l,activePlayer:p,disableDeferredLoading:u}=this.props;if(!(0,Ps.default)(e.url,r)){if(this.isLoading&&!p.forceLoad&&!u&&!(0,ms.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!e.playing&&s&&!this.isPlaying&&this.player.play(),e.playing&&!s&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&a!==null&&this.player.setVolume(a),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),e.playbackRate!==n&&this.player.setPlaybackRate&&this.player.setPlaybackRate(n),e.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,r,s){if(!this.isReady){e!==0&&(this.seekOnPlay=e,setTimeout(()=>{this.seekOnPlay=null},vs));return}if(r?r==="fraction":e>0&&e<1){const o=this.player.getDuration();if(!o){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(o*e,s);return}this.player.seekTo(e,s)}render(){const e=this.props.activePlayer;return e?dt.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}h(we,"displayName","Player");h(we,"propTypes",nr.propTypes);h(we,"defaultProps",nr.defaultProps);var bs=Object.create,te=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,Os=Object.getOwnPropertyNames,ws=Object.getPrototypeOf,$s=Object.prototype.hasOwnProperty,Es=(t,e,r)=>e in t?te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ss=(t,e)=>{for(var r in e)te(t,r,{get:e[r],enumerable:!0})},ir=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Os(e))!$s.call(t,a)&&a!==r&&te(t,a,{get:()=>e[a],enumerable:!(s=gs(e,a))||s.enumerable});return t},re=(t,e,r)=>(r=t!=null?bs(ws(t)):{},ir(e||!t||!t.__esModule?te(r,"default",{value:t,enumerable:!0}):r,t)),Ls=t=>ir(te({},"__esModule",{value:!0}),t),c=(t,e,r)=>(Es(t,typeof e!="symbol"?e+"":e,r),r),lr={};Ss(lr,{createReactPlayer:()=>ks});var Ds=Ls(lr),Y=re(P),Ts=re(At),Ne=re(oa),yt=re(It),Z=rr,pr=m,Rs=re(fs);const Ms=(0,pr.lazy)(()=>E(()=>Promise.resolve().then(()=>bl),void 0,import.meta.url)),Cs=typeof window<"u"&&window.document,As=typeof Ie<"u"&&Ie.window&&Ie.window.document,Is=Object.keys(Z.propTypes),js=Cs||As?Y.Suspense:()=>null,J=[],ks=(t,e)=>{var r;return r=class extends Y.Component{constructor(){super(...arguments),c(this,"state",{showPreview:!!this.props.light}),c(this,"references",{wrapper:s=>{this.wrapper=s},player:s=>{this.player=s}}),c(this,"handleClickPreview",s=>{this.setState({showPreview:!1}),this.props.onClickPreview(s)}),c(this,"showPreview",()=>{this.setState({showPreview:!0})}),c(this,"getDuration",()=>this.player?this.player.getDuration():null),c(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),c(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),c(this,"getInternalPlayer",(s="player")=>this.player?this.player.getInternalPlayer(s):null),c(this,"seekTo",(s,a,o)=>{if(!this.player)return null;this.player.seekTo(s,a,o)}),c(this,"handleReady",()=>{this.props.onReady(this)}),c(this,"getActivePlayer",(0,Ne.default)(s=>{for(const a of[...J,...t])if(a.canPlay(s))return a;return e||null})),c(this,"getConfig",(0,Ne.default)((s,a)=>{const{config:o}=this.props;return Ts.default.all([Z.defaultProps.config,Z.defaultProps.config[a]||{},o,o[a]||{}])})),c(this,"getAttributes",(0,Ne.default)(s=>(0,pr.omit)(this.props,Is))),c(this,"renderActivePlayer",s=>{if(!s)return null;const a=this.getActivePlayer(s);if(!a)return null;const o=this.getConfig(s,a.key);return Y.default.createElement(Rs.default,{...this.props,key:a.key,ref:this.references.player,config:o,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(s,a){return!(0,yt.default)(this.props,s)||!(0,yt.default)(this.state,a)}componentDidUpdate(s){const{light:a}=this.props;!s.light&&a&&this.setState({showPreview:!0}),s.light&&!a&&this.setState({showPreview:!1})}renderPreview(s){if(!s)return null;const{light:a,playIcon:o,previewTabIndex:n,oEmbedUrl:i}=this.props;return Y.default.createElement(Ms,{url:s,light:a,playIcon:o,previewTabIndex:n,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:s,style:a,width:o,height:n,fallback:i,wrapper:l}=this.props,{showPreview:p}=this.state,u=this.getAttributes(s),d=typeof l=="string"?this.references.wrapper:void 0;return Y.default.createElement(l,{ref:d,style:{...a,width:o,height:n},...u},Y.default.createElement(js,{fallback:i},p?this.renderPreview(s):this.renderActivePlayer(s)))}},c(r,"displayName","ReactPlayer"),c(r,"propTypes",Z.propTypes),c(r,"defaultProps",Z.defaultProps),c(r,"addCustomPlayer",s=>{J.push(s)}),c(r,"removeCustomPlayers",()=>{J.length=0}),c(r,"canPlay",s=>{for(const a of[...J,...t])if(a.canPlay(s))return!0;return!1}),c(r,"canEnablePIP",s=>{for(const a of[...J,...t])if(a.canEnablePIP&&a.canEnablePIP(s))return!0;return!1}),r};var Ns=Object.create,$e=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Vs=Object.getOwnPropertyNames,xs=Object.getPrototypeOf,Hs=Object.prototype.hasOwnProperty,Ks=(t,e)=>{for(var r in e)$e(t,r,{get:e[r],enumerable:!0})},ur=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Vs(e))!Hs.call(t,a)&&a!==r&&$e(t,a,{get:()=>e[a],enumerable:!(s=Us(e,a))||s.enumerable});return t},Bs=(t,e,r)=>(r=t!=null?Ns(xs(t)):{},ur(e||!t||!t.__esModule?$e(r,"default",{value:t,enumerable:!0}):r,t)),Fs=t=>ur($e({},"__esModule",{value:!0}),t),cr={};Ks(cr,{default:()=>Gs});var zs=Fs(cr),qe=Bs(Xa),Ws=Ds;const Ys=qe.default[qe.default.length-1];var Gs=(0,Ws.createReactPlayer)(qe.default,Ys);const Dl=w(zs);var Xs=Object.create,ae=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,qs=Object.getOwnPropertyNames,Zs=Object.getPrototypeOf,Qs=Object.prototype.hasOwnProperty,eo=(t,e,r)=>e in t?ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,to=(t,e)=>{for(var r in e)ae(t,r,{get:e[r],enumerable:!0})},hr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of qs(e))!Qs.call(t,a)&&a!==r&&ae(t,a,{get:()=>e[a],enumerable:!(s=Js(e,a))||s.enumerable});return t},ro=(t,e,r)=>(r=t!=null?Xs(Zs(t)):{},hr(e||!t||!t.__esModule?ae(r,"default",{value:t,enumerable:!0}):r,t)),ao=t=>hr(ae({},"__esModule",{value:!0}),t),U=(t,e,r)=>(eo(t,typeof e!="symbol"?e+"":e,r),r),dr={};to(dr,{default:()=>st});var yr=ao(dr),Ue=ro(P),z=m,_r=L;const so="https://www.youtube.com/iframe_api",_t="YT",oo="onYouTubeIframeAPIReady",fe=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,Ve=/user\/([a-zA-Z0-9_-]+)\/?/,no=/youtube-nocookie\.com/,io="https://www.youtube-nocookie.com";class st extends Ue.Component{constructor(){super(...arguments),U(this,"callPlayer",z.callPlayer),U(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(fe.test(e)){const[,r]=e.match(fe);return{listType:"playlist",list:r.replace(/^UC/,"UU")}}if(Ve.test(e)){const[,r]=e.match(Ve);return{listType:"user_uploads",list:r}}return{}}),U(this,"onStateChange",e=>{const{data:r}=e,{onPlay:s,onPause:a,onBuffer:o,onBufferEnd:n,onEnded:i,onReady:l,loop:p,config:{playerVars:u,onUnstarted:d}}=this.props,{UNSTARTED:R,PLAYING:x,PAUSED:I,BUFFERING:Ce,ENDED:Ae,CUED:aa}=window[_t].PlayerState;if(r===R&&d(),r===x&&(s(),n()),r===I&&a(),r===Ce&&o(),r===Ae){const sa=!!this.callPlayer("getPlaylist");p&&!sa&&(u.start?this.seekTo(u.start):this.play()),i()}r===aa&&l()}),U(this,"mute",()=>{this.callPlayer("mute")}),U(this,"unmute",()=>{this.callPlayer("unMute")}),U(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||fe.test(e)?null:e.match(_r.MATCH_URL_YOUTUBE)[1]}load(e,r){const{playing:s,muted:a,playsinline:o,controls:n,loop:i,config:l,onError:p}=this.props,{playerVars:u,embedOptions:d}=l,R=this.getID(e);if(r){if(fe.test(e)||Ve.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:R,startSeconds:(0,z.parseStartTime)(e)||u.start,endSeconds:(0,z.parseEndTime)(e)||u.end});return}(0,z.getSDK)(so,_t,oo,x=>x.loaded).then(x=>{this.container&&(this.player=new x.Player(this.container,{width:"100%",height:"100%",videoId:R,playerVars:{autoplay:s?1:0,mute:a?1:0,controls:n?1:0,start:(0,z.parseStartTime)(e),end:(0,z.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...u},events:{onReady:()=>{i&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:I=>this.props.onPlaybackRateChange(I.data),onPlaybackQualityChange:I=>this.props.onPlaybackQualityChange(I),onStateChange:this.onStateChange,onError:I=>p(I.data)},host:no.test(e)?io:void 0,...d}))},p),d.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,r=!1){this.callPlayer("seekTo",e),!r&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return Ue.default.createElement("div",{style:r},Ue.default.createElement("div",{ref:this.ref}))}}U(st,"displayName","YouTube");U(st,"canPlay",_r.canPlay.youtube);const lo=w(yr),po=S({__proto__:null,default:lo},[yr]);var uo=Object.create,se=Object.defineProperty,co=Object.getOwnPropertyDescriptor,ho=Object.getOwnPropertyNames,yo=Object.getPrototypeOf,_o=Object.prototype.hasOwnProperty,fo=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Po=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})},fr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ho(e))!_o.call(t,a)&&a!==r&&se(t,a,{get:()=>e[a],enumerable:!(s=co(e,a))||s.enumerable});return t},mo=(t,e,r)=>(r=t!=null?uo(yo(t)):{},fr(e||!t||!t.__esModule?se(r,"default",{value:t,enumerable:!0}):r,t)),vo=t=>fr(se({},"__esModule",{value:!0}),t),M=(t,e,r)=>(fo(t,typeof e!="symbol"?e+"":e,r),r),Pr={};Po(Pr,{default:()=>Ee});var mr=vo(Pr),ft=mo(P),Pt=m,bo=L;const go="https://w.soundcloud.com/player/api.js",Oo="SC";class Ee extends ft.Component{constructor(){super(...arguments),M(this,"callPlayer",Pt.callPlayer),M(this,"duration",null),M(this,"currentTime",null),M(this,"fractionLoaded",null),M(this,"mute",()=>{this.setVolume(0)}),M(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),M(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,Pt.getSDK)(go,Oo).then(s=>{if(!this.iframe)return;const{PLAY:a,PLAY_PROGRESS:o,PAUSE:n,FINISH:i,ERROR:l}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(a,this.props.onPlay),this.player.bind(n,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(o,p=>{this.currentTime=p.currentPosition/1e3,this.fractionLoaded=p.loadedProgress}),this.player.bind(i,()=>this.props.onEnded()),this.player.bind(l,p=>this.props.onError(p))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(p=>{this.duration=p/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return ft.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}M(Ee,"displayName","SoundCloud");M(Ee,"canPlay",bo.canPlay.soundcloud);M(Ee,"loopOnEnded",!0);const wo=w(mr),$o=S({__proto__:null,default:wo},[mr]);var Eo=Object.create,oe=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Lo=Object.getOwnPropertyNames,Do=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty,Ro=(t,e,r)=>e in t?oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mo=(t,e)=>{for(var r in e)oe(t,r,{get:e[r],enumerable:!0})},vr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Lo(e))!To.call(t,a)&&a!==r&&oe(t,a,{get:()=>e[a],enumerable:!(s=So(e,a))||s.enumerable});return t},Co=(t,e,r)=>(r=t!=null?Eo(Do(t)):{},vr(e||!t||!t.__esModule?oe(r,"default",{value:t,enumerable:!0}):r,t)),Ao=t=>vr(oe({},"__esModule",{value:!0}),t),C=(t,e,r)=>(Ro(t,typeof e!="symbol"?e+"":e,r),r),br={};Mo(br,{default:()=>Se});var gr=Ao(br),mt=Co(P),vt=m,Io=L;const jo="https://player.vimeo.com/api/player.js",ko="Vimeo",No=t=>t.replace("/manage/videos","");class Se extends mt.Component{constructor(){super(...arguments),C(this,"callPlayer",vt.callPlayer),C(this,"duration",null),C(this,"currentTime",null),C(this,"secondsLoaded",null),C(this,"mute",()=>{this.setMuted(!0)}),C(this,"unmute",()=>{this.setMuted(!1)}),C(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,vt.getSDK)(jo,ko).then(r=>{if(!this.container)return;const{playerOptions:s,title:a}=this.props.config;this.player=new r.Player(this.container,{url:No(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...s}),this.player.ready().then(()=>{const o=this.container.querySelector("iframe");o.style.width="100%",o.style.height="100%",a&&(o.title=a)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",o=>this.props.onSeek(o.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:o})=>{this.currentTime=o}),this.player.on("progress",({seconds:o})=>{this.secondsLoaded=o}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",o=>this.props.onPlaybackRateChange(o.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return mt.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}C(Se,"displayName","Vimeo");C(Se,"canPlay",Io.canPlay.vimeo);C(Se,"forceLoad",!0);const Uo=w(gr),Vo=S({__proto__:null,default:Uo},[gr]);var xo=Object.create,ne=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Ko=Object.getOwnPropertyNames,Bo=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty,zo=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wo=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})},Or=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ko(e))!Fo.call(t,a)&&a!==r&&ne(t,a,{get:()=>e[a],enumerable:!(s=Ho(e,a))||s.enumerable});return t},Yo=(t,e,r)=>(r=t!=null?xo(Bo(t)):{},Or(e||!t||!t.__esModule?ne(r,"default",{value:t,enumerable:!0}):r,t)),Go=t=>Or(ne({},"__esModule",{value:!0}),t),H=(t,e,r)=>(zo(t,typeof e!="symbol"?e+"":e,r),r),wr={};Wo(wr,{default:()=>Le});var $r=Go(wr),bt=Yo(P),Pe=m,Xo=L;const gt="https://connect.facebook.net/en_US/sdk.js",Ot="FB",wt="fbAsyncInit",Jo="facebook-player-";class Le extends bt.Component{constructor(){super(...arguments),H(this,"callPlayer",Pe.callPlayer),H(this,"playerID",this.props.config.playerId||`${Jo}${(0,Pe.randomString)()}`),H(this,"mute",()=>{this.callPlayer("mute")}),H(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,Pe.getSDK)(gt,Ot,wt).then(s=>s.XFBML.parse());return}(0,Pe.getSDK)(gt,Ot,wt).then(s=>{s.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),s.Event.subscribe("xfbml.render",a=>{this.props.onLoaded()}),s.Event.subscribe("xfbml.ready",a=>{a.type==="video"&&a.id===this.playerID&&(this.player=a.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return bt.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}H(Le,"displayName","Facebook");H(Le,"canPlay",Xo.canPlay.facebook);H(Le,"loopOnEnded",!0);const qo=w($r),Zo=S({__proto__:null,default:qo},[$r]);var Qo=Object.create,ie=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,rn=Object.getPrototypeOf,an=Object.prototype.hasOwnProperty,sn=(t,e,r)=>e in t?ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,on=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})},Er=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of tn(e))!an.call(t,a)&&a!==r&&ie(t,a,{get:()=>e[a],enumerable:!(s=en(e,a))||s.enumerable});return t},nn=(t,e,r)=>(r=t!=null?Qo(rn(t)):{},Er(e||!t||!t.__esModule?ie(r,"default",{value:t,enumerable:!0}):r,t)),ln=t=>Er(ie({},"__esModule",{value:!0}),t),k=(t,e,r)=>(sn(t,typeof e!="symbol"?e+"":e,r),r),Sr={};on(Sr,{default:()=>ot});var Lr=ln(Sr),$t=nn(P),Et=m,Dr=L;const pn="https://cdn.embed.ly/player-0.1.0.min.js",un="playerjs";class ot extends $t.Component{constructor(){super(...arguments),k(this,"callPlayer",Et.callPlayer),k(this,"duration",null),k(this,"currentTime",null),k(this,"secondsLoaded",null),k(this,"mute",()=>{this.callPlayer("mute")}),k(this,"unmute",()=>{this.callPlayer("unmute")}),k(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,Et.getSDK)(pn,un).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(Dr.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return $t.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}k(ot,"displayName","Streamable");k(ot,"canPlay",Dr.canPlay.streamable);const cn=w(Lr),hn=S({__proto__:null,default:cn},[Lr]);var dn=Object.create,le=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,_n=Object.getOwnPropertyNames,fn=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty,mn=(t,e,r)=>e in t?le(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vn=(t,e)=>{for(var r in e)le(t,r,{get:e[r],enumerable:!0})},Tr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of _n(e))!Pn.call(t,a)&&a!==r&&le(t,a,{get:()=>e[a],enumerable:!(s=yn(e,a))||s.enumerable});return t},bn=(t,e,r)=>(r=t!=null?dn(fn(t)):{},Tr(e||!t||!t.__esModule?le(r,"default",{value:t,enumerable:!0}):r,t)),gn=t=>Tr(le({},"__esModule",{value:!0}),t),T=(t,e,r)=>(mn(t,typeof e!="symbol"?e+"":e,r),r),Rr={};vn(Rr,{default:()=>De});var Mr=gn(Rr),St=bn(P),xe=m,Cr=L;const On="https://fast.wistia.com/assets/external/E-v1.js",wn="Wistia",$n="wistia-player-";class De extends St.Component{constructor(){super(...arguments),T(this,"callPlayer",xe.callPlayer),T(this,"playerID",this.props.config.playerId||`${$n}${(0,xe.randomString)()}`),T(this,"onPlay",(...e)=>this.props.onPlay(...e)),T(this,"onPause",(...e)=>this.props.onPause(...e)),T(this,"onSeek",(...e)=>this.props.onSeek(...e)),T(this,"onEnded",(...e)=>this.props.onEnded(...e)),T(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),T(this,"mute",()=>{this.callPlayer("mute")}),T(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,muted:s,controls:a,onReady:o,config:n,onError:i}=this.props;(0,xe.getSDK)(On,wn).then(l=>{n.customControls&&n.customControls.forEach(p=>l.defineControl(p)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:r,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:a,fullscreenButton:a,playbar:a,playbackRateControl:a,qualityControl:a,volumeControl:a,settingsControl:a,smallPlayButton:a,...n.options},onReady:p=>{this.player=p,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},i)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,r=!0){this.callPlayer("time",e),r||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,r=e&&e.match(Cr.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${r}`,a={width:"100%",height:"100%"};return St.default.createElement("div",{id:this.playerID,key:r,className:s,style:a})}}T(De,"displayName","Wistia");T(De,"canPlay",Cr.canPlay.wistia);T(De,"loopOnEnded",!0);const En=w(Mr),Sn=S({__proto__:null,default:En},[Mr]);var Ln=Object.create,pe=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyNames,Rn=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty,Cn=(t,e,r)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,An=(t,e)=>{for(var r in e)pe(t,r,{get:e[r],enumerable:!0})},Ar=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Tn(e))!Mn.call(t,a)&&a!==r&&pe(t,a,{get:()=>e[a],enumerable:!(s=Dn(e,a))||s.enumerable});return t},In=(t,e,r)=>(r=t!=null?Ln(Rn(t)):{},Ar(e||!t||!t.__esModule?pe(r,"default",{value:t,enumerable:!0}):r,t)),jn=t=>Ar(pe({},"__esModule",{value:!0}),t),K=(t,e,r)=>(Cn(t,typeof e!="symbol"?e+"":e,r),r),Ir={};An(Ir,{default:()=>Te});var jr=jn(Ir),Lt=In(P),me=m,be=L;const kn="https://player.twitch.tv/js/embed/v1.js",Nn="Twitch",Un="twitch-player-";class Te extends Lt.Component{constructor(){super(...arguments),K(this,"callPlayer",me.callPlayer),K(this,"playerID",this.props.config.playerId||`${Un}${(0,me.randomString)()}`),K(this,"mute",()=>{this.callPlayer("setMuted",!0)}),K(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:n}=this.props,i=be.MATCH_URL_TWITCH_CHANNEL.test(e),l=i?e.match(be.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(be.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(l):this.player.setVideo("v"+l);return}(0,me.getSDK)(kn,Nn).then(p=>{this.player=new p.Player(this.playerID,{video:i?"":l,channel:i?l:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:n,time:(0,me.parseStartTime)(e),...o.options});const{READY:u,PLAYING:d,PAUSE:R,ENDED:x,ONLINE:I,OFFLINE:Ce,SEEK:Ae}=p.Player;this.player.addEventListener(u,this.props.onReady),this.player.addEventListener(d,this.props.onPlay),this.player.addEventListener(R,this.props.onPause),this.player.addEventListener(x,this.props.onEnded),this.player.addEventListener(Ae,this.props.onSeek),this.player.addEventListener(I,this.props.onLoaded),this.player.addEventListener(Ce,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return Lt.default.createElement("div",{style:e,id:this.playerID})}}K(Te,"displayName","Twitch");K(Te,"canPlay",be.canPlay.twitch);K(Te,"loopOnEnded",!0);const Vn=w(jr),xn=S({__proto__:null,default:Vn},[jr]);var Hn=Object.create,ue=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,Bn=Object.getOwnPropertyNames,Fn=Object.getPrototypeOf,zn=Object.prototype.hasOwnProperty,Wn=(t,e,r)=>e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yn=(t,e)=>{for(var r in e)ue(t,r,{get:e[r],enumerable:!0})},kr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Bn(e))!zn.call(t,a)&&a!==r&&ue(t,a,{get:()=>e[a],enumerable:!(s=Kn(e,a))||s.enumerable});return t},Gn=(t,e,r)=>(r=t!=null?Hn(Fn(t)):{},kr(e||!t||!t.__esModule?ue(r,"default",{value:t,enumerable:!0}):r,t)),Xn=t=>kr(ue({},"__esModule",{value:!0}),t),V=(t,e,r)=>(Wn(t,typeof e!="symbol"?e+"":e,r),r),Nr={};Yn(Nr,{default:()=>Re});var Ur=Xn(Nr),He=Gn(P),ve=m,Vr=L;const Jn="https://api.dmcdn.net/all.js",qn="DM",Zn="dmAsyncInit";class Re extends He.Component{constructor(){super(...arguments),V(this,"callPlayer",ve.callPlayer),V(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),V(this,"mute",()=>{this.callPlayer("setMuted",!0)}),V(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),V(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:s,onError:a,playing:o}=this.props,[,n]=e.match(Vr.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(n,{start:(0,ve.parseStartTime)(e),autoplay:o});return}(0,ve.getSDK)(Jn,qn,Zn,i=>i.player).then(i=>{if(!this.container)return;const l=i.player;this.player=new l(this.container,{width:"100%",height:"100%",video:n,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,ve.parseStartTime)(e),origin:window.location.origin,...s.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:p=>a(p)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return He.default.createElement("div",{style:r},He.default.createElement("div",{ref:this.ref}))}}V(Re,"displayName","DailyMotion");V(Re,"canPlay",Vr.canPlay.dailymotion);V(Re,"loopOnEnded",!0);const Qn=w(Ur),ei=S({__proto__:null,default:Qn},[Ur]);var ti=Object.create,ce=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ai=Object.getOwnPropertyNames,si=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty,ni=(t,e,r)=>e in t?ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ii=(t,e)=>{for(var r in e)ce(t,r,{get:e[r],enumerable:!0})},xr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ai(e))!oi.call(t,a)&&a!==r&&ce(t,a,{get:()=>e[a],enumerable:!(s=ri(e,a))||s.enumerable});return t},li=(t,e,r)=>(r=t!=null?ti(si(t)):{},xr(e||!t||!t.__esModule?ce(r,"default",{value:t,enumerable:!0}):r,t)),pi=t=>xr(ce({},"__esModule",{value:!0}),t),A=(t,e,r)=>(ni(t,typeof e!="symbol"?e+"":e,r),r),Hr={};ii(Hr,{default:()=>Me});var Kr=pi(Hr),Dt=li(P),Ke=m,Br=L;const ui="https://widget.mixcloud.com/media/js/widgetApi.js",ci="Mixcloud";class Me extends Dt.Component{constructor(){super(...arguments),A(this,"callPlayer",Ke.callPlayer),A(this,"duration",null),A(this,"currentTime",null),A(this,"secondsLoaded",null),A(this,"mute",()=>{}),A(this,"unmute",()=>{}),A(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,Ke.getSDK)(ui,ci).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,a)=>{this.currentTime=s,this.duration=a}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(Br.MATCH_URL_MIXCLOUD)[1],a={width:"100%",height:"100%"},o=(0,Ke.queryString)({...r.options,feed:`/${s}/`});return Dt.default.createElement("iframe",{key:s,ref:this.ref,style:a,src:`https://www.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}A(Me,"displayName","Mixcloud");A(Me,"canPlay",Br.canPlay.mixcloud);A(Me,"loopOnEnded",!0);const hi=w(Kr),di=S({__proto__:null,default:hi},[Kr]);var yi=Object.create,he=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyNames,Pi=Object.getPrototypeOf,mi=Object.prototype.hasOwnProperty,vi=(t,e,r)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bi=(t,e)=>{for(var r in e)he(t,r,{get:e[r],enumerable:!0})},Fr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of fi(e))!mi.call(t,a)&&a!==r&&he(t,a,{get:()=>e[a],enumerable:!(s=_i(e,a))||s.enumerable});return t},gi=(t,e,r)=>(r=t!=null?yi(Pi(t)):{},Fr(e||!t||!t.__esModule?he(r,"default",{value:t,enumerable:!0}):r,t)),Oi=t=>Fr(he({},"__esModule",{value:!0}),t),G=(t,e,r)=>(vi(t,typeof e!="symbol"?e+"":e,r),r),zr={};bi(zr,{default:()=>nt});var Wr=Oi(zr),Be=gi(P),Tt=m,Yr=L;const wi="https://play.vidyard.com/embed/v4.js",$i="VidyardV4",Ei="onVidyardAPI";class nt extends Be.Component{constructor(){super(...arguments),G(this,"callPlayer",Tt.callPlayer),G(this,"mute",()=>{this.setVolume(0)}),G(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),G(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:s,onError:a,onDuration:o}=this.props,n=e&&e.match(Yr.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,Tt.getSDK)(wi,$i,Ei).then(i=>{this.container&&(i.api.addReadyListener((l,p)=>{this.player||(this.player=p,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},n),i.api.renderPlayer({uuid:n,container:this.container,autoplay:r?1:0,...s.options}),i.api.getPlayerMetadata(n).then(l=>{this.duration=l.length_in_seconds,o(l.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return Be.default.createElement("div",{style:r},Be.default.createElement("div",{ref:this.ref}))}}G(nt,"displayName","Vidyard");G(nt,"canPlay",Yr.canPlay.vidyard);const Si=w(Wr),Li=S({__proto__:null,default:Si},[Wr]);var Di=Object.create,de=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Ri=Object.getOwnPropertyNames,Mi=Object.getPrototypeOf,Ci=Object.prototype.hasOwnProperty,Ai=(t,e,r)=>e in t?de(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ii=(t,e)=>{for(var r in e)de(t,r,{get:e[r],enumerable:!0})},Gr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ri(e))!Ci.call(t,a)&&a!==r&&de(t,a,{get:()=>e[a],enumerable:!(s=Ti(e,a))||s.enumerable});return t},ji=(t,e,r)=>(r=t!=null?Di(Mi(t)):{},Gr(e||!t||!t.__esModule?de(r,"default",{value:t,enumerable:!0}):r,t)),ki=t=>Gr(de({},"__esModule",{value:!0}),t),N=(t,e,r)=>(Ai(t,typeof e!="symbol"?e+"":e,r),r),Xr={};Ii(Xr,{default:()=>it});var Jr=ki(Xr),Rt=ji(P),Mt=m,Ni=L;const Ui="https://cdn.embed.ly/player-0.1.0.min.js",Vi="playerjs";class it extends Rt.Component{constructor(){super(...arguments),N(this,"callPlayer",Mt.callPlayer),N(this,"duration",null),N(this,"currentTime",null),N(this,"secondsLoaded",null),N(this,"mute",()=>{this.callPlayer("mute")}),N(this,"unmute",()=>{this.callPlayer("unmute")}),N(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,Mt.getSDK)(Ui,Vi).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,r){e.on("play",r.onPlay),e.on("pause",r.onPause),e.on("ended",r.onEnded),e.on("error",r.onError),e.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return Rt.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}N(it,"displayName","Kaltura");N(it,"canPlay",Ni.canPlay.kaltura);const xi=w(Jr),Hi=S({__proto__:null,default:xi},[Jr]);var Ki=Object.create,ye=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Fi=Object.getOwnPropertyNames,zi=Object.getPrototypeOf,Wi=Object.prototype.hasOwnProperty,Yi=(t,e,r)=>e in t?ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Gi=(t,e)=>{for(var r in e)ye(t,r,{get:e[r],enumerable:!0})},qr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fi(e))!Wi.call(t,a)&&a!==r&&ye(t,a,{get:()=>e[a],enumerable:!(s=Bi(e,a))||s.enumerable});return t},Xi=(t,e,r)=>(r=t!=null?Ki(zi(t)):{},qr(e||!t||!t.__esModule?ye(r,"default",{value:t,enumerable:!0}):r,t)),Ji=t=>qr(ye({},"__esModule",{value:!0}),t),_=(t,e,r)=>(Yi(t,typeof e!="symbol"?e+"":e,r),r),Zr={};Gi(Zr,{default:()=>pt});var Qr=Ji(Zr),q=Xi(P),j=m,Q=L;const lt=typeof navigator<"u",qi=lt&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Ct=lt&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||qi)&&!window.MSStream,Zi=lt&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,Qi="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",el="Hls",tl="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",rl="dashjs",al="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",sl="flvjs",ol=/www\.dropbox\.com\/.+/,Fe=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,nl="https://videodelivery.net/{id}/manifest/video.m3u8";class pt extends q.Component{constructor(){super(...arguments),_(this,"onReady",(...e)=>this.props.onReady(...e)),_(this,"onPlay",(...e)=>this.props.onPlay(...e)),_(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),_(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),_(this,"onPause",(...e)=>this.props.onPause(...e)),_(this,"onEnded",(...e)=>this.props.onEnded(...e)),_(this,"onError",(...e)=>this.props.onError(...e)),_(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),_(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),_(this,"onDisablePIP",e=>{const{onDisablePIP:r,playing:s}=this.props;r(e),s&&this.play()}),_(this,"onPresentationModeChange",e=>{if(this.player&&(0,j.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:r}=this.player;r==="picture-in-picture"?this.onEnablePIP(e):r==="inline"&&this.onDisablePIP(e)}}),_(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),_(this,"mute",()=>{this.player.muted=!0}),_(this,"unmute",()=>{this.player.muted=!1}),_(this,"renderSourceElement",(e,r)=>typeof e=="string"?q.default.createElement("source",{key:r,src:e}):q.default.createElement("source",{key:r,...e})),_(this,"renderTrack",(e,r)=>q.default.createElement("track",{key:r,...e})),_(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(Ct||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,j.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:r,playsinline:s}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(r)||e.addEventListener("canplay",this.onReady),s&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,r){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(r)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:Q.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return Zi&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:Ct||this.props.config.forceDisableHls?!1:Q.HLS_EXTENSIONS.test(e)||Fe.test(e)}shouldUseDASH(e){return Q.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return Q.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:r,hlsOptions:s,dashVersion:a,flvVersion:o}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,j.getSDK)(Qi.replace("VERSION",r),el).then(n=>{if(this.hls=new n(s),this.hls.on(n.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(n.Events.ERROR,(i,l)=>{this.props.onError(i,l,this.hls,n)}),Fe.test(e)){const i=e.match(Fe)[1];this.hls.loadSource(nl.replace("{id}",i))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,j.getSDK)(tl.replace("VERSION",a),rl).then(n=>{this.dash=n.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(a)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,j.getSDK)(al.replace("VERSION",o),sl).then(n=>{this.flv=n.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(n.Events.ERROR,(i,l)=>{this.props.onError(i,l,this.flv,n)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,j.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,r=!0){this.player.currentTime=e,r||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,j.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,j.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(r){this.props.onError(r)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:r}=this.player;return e===1/0&&r.length>0?r.end(r.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const r=e.end(e.length-1),s=this.getDuration();return r>s?s:r}getSource(e){const r=this.shouldUseHLS(e),s=this.shouldUseDASH(e),a=this.shouldUseFLV(e);if(!(e instanceof Array||(0,j.isMediaStream)(e)||r||s||a))return ol.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:r,loop:s,controls:a,muted:o,config:n,width:i,height:l}=this.props,u=this.shouldUseAudio(this.props)?"audio":"video",d={width:i==="auto"?i:"100%",height:l==="auto"?l:"100%"};return q.default.createElement(u,{ref:this.ref,src:this.getSource(e),style:d,preload:"auto",autoPlay:r||void 0,controls:a,muted:o,loop:s,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}_(pt,"displayName","FilePlayer");_(pt,"canPlay",Q.canPlay.file);const il=w(Qr),ll=S({__proto__:null,default:il},[Qr]);var pl=Object.create,_e=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,cl=Object.getOwnPropertyNames,hl=Object.getPrototypeOf,dl=Object.prototype.hasOwnProperty,yl=(t,e,r)=>e in t?_e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_l=(t,e)=>{for(var r in e)_e(t,r,{get:e[r],enumerable:!0})},ea=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of cl(e))!dl.call(t,a)&&a!==r&&_e(t,a,{get:()=>e[a],enumerable:!(s=ul(e,a))||s.enumerable});return t},fl=(t,e,r)=>(r=t!=null?pl(hl(t)):{},ea(e||!t||!t.__esModule?_e(r,"default",{value:t,enumerable:!0}):r,t)),Pl=t=>ea(_e({},"__esModule",{value:!0}),t),ze=(t,e,r)=>(yl(t,typeof e!="symbol"?e+"":e,r),r),ta={};_l(ta,{default:()=>ml});var ra=Pl(ta),W=fl(P);const We="64px",Ye={};class ml extends W.Component{constructor(){super(...arguments),ze(this,"mounted",!1),ze(this,"state",{image:null}),ze(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:r,light:s}=this.props;(e.url!==r||e.light!==s)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:r,oEmbedUrl:s}){if(!W.default.isValidElement(r)){if(typeof r=="string"){this.setState({image:r});return}if(Ye[e]){this.setState({image:Ye[e]});return}return this.setState({image:null}),window.fetch(s.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),Ye[e]=o}})}}render(){const{light:e,onClick:r,playIcon:s,previewTabIndex:a}=this.props,{image:o}=this.state,n=W.default.isValidElement(e),i={display:"flex",alignItems:"center",justifyContent:"center"},l={preview:{width:"100%",height:"100%",backgroundImage:o&&!n?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...i},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:We,width:We,height:We,position:n?"absolute":void 0,...i},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},p=W.default.createElement("div",{style:l.shadow,className:"react-player__shadow"},W.default.createElement("div",{style:l.playIcon,className:"react-player__play-icon"}));return W.default.createElement("div",{style:l.preview,className:"react-player__preview",onClick:r,tabIndex:a,onKeyPress:this.handleKeyPress},n?e:null,s||p)}}const vl=w(ra),bl=S({__proto__:null,default:vl},[ra]);export{Dl as R}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/assets/react-player-Oj9ckE9S.js b/assets/react-player-Oj9ckE9S.js new file mode 100644 index 0000000..b5aece0 --- /dev/null +++ b/assets/react-player-Oj9ckE9S.js @@ -0,0 +1,7 @@ +import{c as At,b as Ie,a as w}from"./deepmerge-tjhCCVMj.js";import{r as P}from"./react-INodxC-X.js";import{r as oa}from"./memoize-one-nHUJQiMq.js";import{r as It}from"./react-fast-compare-LawLdkOo.js";import{p as na}from"./prop-types-g0p8o0B7.js";import{l as ia}from"./load-script-KV37v6J9.js";function S(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const la="modulepreload",pa=function(t,e){return new URL(t,e).href},ut={},E=function(e,r,s){let a=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link");a=Promise.all(r.map(n=>{if(n=pa(n,s),n in ut)return;ut[n]=!0;const i=n.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!s)for(let d=o.length-1;d>=0;d--){const R=o[d];if(R.href===n&&(!i||R.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":la,i||(u.as="script",u.crossOrigin=""),u.href=n,document.head.appendChild(u),i)return new Promise((d,R)=>{u.addEventListener("load",d),u.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${n}`)))})}))}return a.then(()=>e()).catch(o=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=o,window.dispatchEvent(n),!n.defaultPrevented)throw o})};var ua=Object.create,ge=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,ha=Object.getOwnPropertyNames,da=Object.getPrototypeOf,ya=Object.prototype.hasOwnProperty,_a=(t,e)=>{for(var r in e)ge(t,r,{get:e[r],enumerable:!0})},jt=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ha(e))!ya.call(t,a)&&a!==r&&ge(t,a,{get:()=>e[a],enumerable:!(s=ca(e,a))||s.enumerable});return t},Ze=(t,e,r)=>(r=t!=null?ua(da(t)):{},jt(e||!t||!t.__esModule?ge(r,"default",{value:t,enumerable:!0}):r,t)),fa=t=>jt(ge({},"__esModule",{value:!0}),t),kt={};_a(kt,{callPlayer:()=>Ca,getConfig:()=>Ra,getSDK:()=>Ta,isBlobUrl:()=>Ia,isMediaStream:()=>Aa,lazy:()=>ba,omit:()=>Ma,parseEndTime:()=>Sa,parseStartTime:()=>Ea,queryString:()=>Da,randomString:()=>La,supportsWebKitPresentationMode:()=>ja});var m=fa(kt),Pa=Ze(P),ma=Ze(ia),va=Ze(At);const ba=t=>Pa.default.lazy(async()=>{const e=await t();return typeof e.default=="function"?e:e.default}),ga=/[?&#](?:start|t)=([0-9hms]+)/,Oa=/[?&#]end=([0-9hms]+)/,Ge=/(\d+)(h|m|s)/g,wa=/^\d+$/;function Nt(t,e){if(t instanceof Array)return;const r=t.match(e);if(r){const s=r[1];if(s.match(Ge))return $a(s);if(wa.test(s))return parseInt(s)}}function $a(t){let e=0,r=Ge.exec(t);for(;r!==null;){const[,s,a]=r;a==="h"&&(e+=parseInt(s,10)*60*60),a==="m"&&(e+=parseInt(s,10)*60),a==="s"&&(e+=parseInt(s,10)),r=Ge.exec(t)}return e}function Ea(t){return Nt(t,ga)}function Sa(t){return Nt(t,Oa)}function La(){return Math.random().toString(36).substr(2,5)}function Da(t){return Object.keys(t).map(e=>`${e}=${t[e]}`).join("&")}function je(t){return window[t]?window[t]:window.exports&&window.exports[t]?window.exports[t]:window.module&&window.module.exports&&window.module.exports[t]?window.module.exports[t]:null}const B={},Ta=function(e,r,s=null,a=()=>!0,o=ma.default){const n=je(r);return n&&a(n)?Promise.resolve(n):new Promise((i,l)=>{if(B[e]){B[e].push({resolve:i,reject:l});return}B[e]=[{resolve:i,reject:l}];const p=u=>{B[e].forEach(d=>d.resolve(u))};if(s){const u=window[s];window[s]=function(){u&&u(),p(je(r))}}o(e,u=>{u?(B[e].forEach(d=>d.reject(u)),B[e]=null):s||p(je(r))})})};function Ra(t,e){return(0,va.default)(e.config,t.config)}function Ma(t,...e){const r=[].concat(...e),s={},a=Object.keys(t);for(const o of a)r.indexOf(o)===-1&&(s[o]=t[o]);return s}function Ca(t,...e){if(!this.player||!this.player[t]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${t}%c – `;return this.player?this.player[t]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[t](...e)}function Aa(t){return typeof window<"u"&&typeof window.MediaStream<"u"&&t instanceof window.MediaStream}function Ia(t){return/^blob:/.test(t)}function ja(t=document.createElement("video")){const e=/iPhone|iPod/.test(navigator.userAgent)===!1;return t.webkitSupportsPresentationMode&&typeof t.webkitSetPresentationMode=="function"&&e}var Qe=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Na=Object.getOwnPropertyNames,Ua=Object.prototype.hasOwnProperty,Va=(t,e)=>{for(var r in e)Qe(t,r,{get:e[r],enumerable:!0})},xa=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Na(e))!Ua.call(t,a)&&a!==r&&Qe(t,a,{get:()=>e[a],enumerable:!(s=ka(e,a))||s.enumerable});return t},Ha=t=>xa(Qe({},"__esModule",{value:!0}),t),Ut={};Va(Ut,{AUDIO_EXTENSIONS:()=>et,DASH_EXTENSIONS:()=>qt,FLV_EXTENSIONS:()=>Zt,HLS_EXTENSIONS:()=>rt,MATCH_URL_DAILYMOTION:()=>Yt,MATCH_URL_FACEBOOK:()=>Ht,MATCH_URL_FACEBOOK_WATCH:()=>Kt,MATCH_URL_KALTURA:()=>Jt,MATCH_URL_MIXCLOUD:()=>Gt,MATCH_URL_SOUNDCLOUD:()=>Vt,MATCH_URL_STREAMABLE:()=>Bt,MATCH_URL_TWITCH_CHANNEL:()=>Wt,MATCH_URL_TWITCH_VIDEO:()=>zt,MATCH_URL_VIDYARD:()=>Xt,MATCH_URL_VIMEO:()=>xt,MATCH_URL_WISTIA:()=>Ft,MATCH_URL_YOUTUBE:()=>Xe,VIDEO_EXTENSIONS:()=>tt,canPlay:()=>Ka});var L=Ha(Ut),ct=m;const Xe=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Vt=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,xt=/vimeo\.com\/(?!progressive_redirect).+/,Ht=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Kt=/^https?:\/\/fb\.watch\/.+$/,Bt=/streamable\.com\/([a-z0-9]+)$/,Ft=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,zt=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,Wt=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Yt=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Gt=/mixcloud\.com\/([^/]+\/[^/]+)/,Xt=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,Jt=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,et=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,tt=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,rt=/\.(m3u8)($|\?)/i,qt=/\.(mpd)($|\?)/i,Zt=/\.(flv)($|\?)/i,Je=t=>{if(t instanceof Array){for(const e of t)if(typeof e=="string"&&Je(e)||Je(e.src))return!0;return!1}return(0,ct.isMediaStream)(t)||(0,ct.isBlobUrl)(t)?!0:et.test(t)||tt.test(t)||rt.test(t)||qt.test(t)||Zt.test(t)},Ka={youtube:t=>t instanceof Array?t.every(e=>Xe.test(e)):Xe.test(t),soundcloud:t=>Vt.test(t)&&!et.test(t),vimeo:t=>xt.test(t)&&!tt.test(t)&&!rt.test(t),facebook:t=>Ht.test(t)||Kt.test(t),streamable:t=>Bt.test(t),wistia:t=>Ft.test(t),twitch:t=>zt.test(t)||Wt.test(t),dailymotion:t=>Yt.test(t),mixcloud:t=>Gt.test(t),vidyard:t=>Xt.test(t),kaltura:t=>Jt.test(t),file:Je};var at=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Fa=Object.getOwnPropertyNames,za=Object.prototype.hasOwnProperty,Wa=(t,e)=>{for(var r in e)at(t,r,{get:e[r],enumerable:!0})},Ya=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fa(e))!za.call(t,a)&&a!==r&&at(t,a,{get:()=>e[a],enumerable:!(s=Ba(e,a))||s.enumerable});return t},Ga=t=>Ya(at({},"__esModule",{value:!0}),t),Qt={};Wa(Qt,{default:()=>Ja});var Xa=Ga(Qt),$=m,O=L,Ja=[{key:"youtube",name:"YouTube",canPlay:O.canPlay.youtube,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>po),void 0,import.meta.url))},{key:"soundcloud",name:"SoundCloud",canPlay:O.canPlay.soundcloud,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>$o),void 0,import.meta.url))},{key:"vimeo",name:"Vimeo",canPlay:O.canPlay.vimeo,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Vo),void 0,import.meta.url))},{key:"facebook",name:"Facebook",canPlay:O.canPlay.facebook,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Zo),void 0,import.meta.url))},{key:"streamable",name:"Streamable",canPlay:O.canPlay.streamable,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>hn),void 0,import.meta.url))},{key:"wistia",name:"Wistia",canPlay:O.canPlay.wistia,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Sn),void 0,import.meta.url))},{key:"twitch",name:"Twitch",canPlay:O.canPlay.twitch,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>xn),void 0,import.meta.url))},{key:"dailymotion",name:"DailyMotion",canPlay:O.canPlay.dailymotion,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>ei),void 0,import.meta.url))},{key:"mixcloud",name:"Mixcloud",canPlay:O.canPlay.mixcloud,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>di),void 0,import.meta.url))},{key:"vidyard",name:"Vidyard",canPlay:O.canPlay.vidyard,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Li),void 0,import.meta.url))},{key:"kaltura",name:"Kaltura",canPlay:O.canPlay.kaltura,lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>Hi),void 0,import.meta.url))},{key:"file",name:"FilePlayer",canPlay:O.canPlay.file,canEnablePIP:t=>O.canPlay.file(t)&&(document.pictureInPictureEnabled||(0,$.supportsWebKitPresentationMode)())&&!O.AUDIO_EXTENSIONS.test(t),lazyPlayer:(0,$.lazy)(()=>E(()=>Promise.resolve().then(()=>ll),void 0,import.meta.url))}],qa=Object.create,Oe=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Qa=Object.getOwnPropertyNames,es=Object.getPrototypeOf,ts=Object.prototype.hasOwnProperty,rs=(t,e)=>{for(var r in e)Oe(t,r,{get:e[r],enumerable:!0})},er=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Qa(e))!ts.call(t,a)&&a!==r&&Oe(t,a,{get:()=>e[a],enumerable:!(s=Za(e,a))||s.enumerable});return t},as=(t,e,r)=>(r=t!=null?qa(es(t)):{},er(e||!t||!t.__esModule?Oe(r,"default",{value:t,enumerable:!0}):r,t)),ss=t=>er(Oe({},"__esModule",{value:!0}),t),tr={};rs(tr,{defaultProps:()=>is,propTypes:()=>ns});var rr=ss(tr),os=as(na);const{string:v,bool:b,number:F,array:ke,oneOfType:X,shape:D,object:g,func:y,node:ht}=os.default,ns={url:X([v,ke,g]),playing:b,loop:b,controls:b,volume:F,muted:b,playbackRate:F,width:X([v,F]),height:X([v,F]),style:g,progressInterval:F,playsinline:b,pip:b,stopOnUnmount:b,light:X([b,v,g]),playIcon:ht,previewTabIndex:F,fallback:ht,oEmbedUrl:v,wrapper:X([v,y,D({render:y.isRequired})]),config:D({soundcloud:D({options:g}),youtube:D({playerVars:g,embedOptions:g,onUnstarted:y}),facebook:D({appId:v,version:v,playerId:v,attributes:g}),dailymotion:D({params:g}),vimeo:D({playerOptions:g,title:v}),file:D({attributes:g,tracks:ke,forceVideo:b,forceAudio:b,forceHLS:b,forceSafariHLS:b,forceDisableHls:b,forceDASH:b,forceFLV:b,hlsOptions:g,hlsVersion:v,dashVersion:v,flvVersion:v}),wistia:D({options:g,playerId:v,customControls:ke}),mixcloud:D({options:g}),twitch:D({options:g,playerId:v}),vidyard:D({options:g})}),onReady:y,onStart:y,onPlay:y,onPause:y,onBuffer:y,onBufferEnd:y,onEnded:y,onError:y,onDuration:y,onSeek:y,onPlaybackRateChange:y,onPlaybackQualityChange:y,onProgress:y,onClickPreview:y,onEnablePIP:y,onDisablePIP:y},f=()=>{},is={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:f},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onPlaybackRateChange:f,onPlaybackQualityChange:f,onProgress:f,onClickPreview:f,onEnablePIP:f,onDisablePIP:f};var ls=Object.create,ee=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,us=Object.getOwnPropertyNames,cs=Object.getPrototypeOf,hs=Object.prototype.hasOwnProperty,ds=(t,e,r)=>e in t?ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ys=(t,e)=>{for(var r in e)ee(t,r,{get:e[r],enumerable:!0})},ar=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of us(e))!hs.call(t,a)&&a!==r&&ee(t,a,{get:()=>e[a],enumerable:!(s=ps(e,a))||s.enumerable});return t},sr=(t,e,r)=>(r=t!=null?ls(cs(t)):{},ar(e||!t||!t.__esModule?ee(r,"default",{value:t,enumerable:!0}):r,t)),_s=t=>ar(ee({},"__esModule",{value:!0}),t),h=(t,e,r)=>(ds(t,typeof e!="symbol"?e+"":e,r),r),or={};ys(or,{default:()=>we});var fs=_s(or),dt=sr(P),Ps=sr(It),nr=rr,ms=m;const vs=5e3;class we extends dt.Component{constructor(){super(...arguments),h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",e=>{if(this.player){this.progress();return}this.player=e,this.player.load(this.props.url),this.progress()}),h(this,"getInternalPlayer",e=>this.player?this.player[e]:null),h(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,r=this.getSecondsLoaded(),s=this.getDuration();if(s){const a={playedSeconds:e,played:e/s};r!==null&&(a.loadedSeconds=r,a.loaded=r/s),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),h(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:r,volume:s,muted:a}=this.props;e(),!a&&s!==null&&this.player.setVolume(s),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),h(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:r,playbackRate:s}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&s!==1&&this.player.setPlaybackRate(s),e(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),h(this,"handlePause",e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)}),h(this,"handleEnded",()=>{const{activePlayer:e,loop:r,onEnded:s}=this.props;e.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,s())}),h(this,"handleError",(...e)=>{this.isLoading=!1,this.props.onError(...e)}),h(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),h(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:r,playing:s,volume:a,muted:o,playbackRate:n,pip:i,loop:l,activePlayer:p,disableDeferredLoading:u}=this.props;if(!(0,Ps.default)(e.url,r)){if(this.isLoading&&!p.forceLoad&&!u&&!(0,ms.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!e.playing&&s&&!this.isPlaying&&this.player.play(),e.playing&&!s&&this.isPlaying&&this.player.pause(),!e.pip&&i&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!i&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==a&&a!==null&&this.player.setVolume(a),e.muted!==o&&(o?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),e.playbackRate!==n&&this.player.setPlaybackRate&&this.player.setPlaybackRate(n),e.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,r,s){if(!this.isReady){e!==0&&(this.seekOnPlay=e,setTimeout(()=>{this.seekOnPlay=null},vs));return}if(r?r==="fraction":e>0&&e<1){const o=this.player.getDuration();if(!o){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(o*e,s);return}this.player.seekTo(e,s)}render(){const e=this.props.activePlayer;return e?dt.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}h(we,"displayName","Player");h(we,"propTypes",nr.propTypes);h(we,"defaultProps",nr.defaultProps);var bs=Object.create,te=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,Os=Object.getOwnPropertyNames,ws=Object.getPrototypeOf,$s=Object.prototype.hasOwnProperty,Es=(t,e,r)=>e in t?te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ss=(t,e)=>{for(var r in e)te(t,r,{get:e[r],enumerable:!0})},ir=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Os(e))!$s.call(t,a)&&a!==r&&te(t,a,{get:()=>e[a],enumerable:!(s=gs(e,a))||s.enumerable});return t},re=(t,e,r)=>(r=t!=null?bs(ws(t)):{},ir(e||!t||!t.__esModule?te(r,"default",{value:t,enumerable:!0}):r,t)),Ls=t=>ir(te({},"__esModule",{value:!0}),t),c=(t,e,r)=>(Es(t,typeof e!="symbol"?e+"":e,r),r),lr={};Ss(lr,{createReactPlayer:()=>ks});var Ds=Ls(lr),Y=re(P),Ts=re(At),Ne=re(oa),yt=re(It),Z=rr,pr=m,Rs=re(fs);const Ms=(0,pr.lazy)(()=>E(()=>Promise.resolve().then(()=>bl),void 0,import.meta.url)),Cs=typeof window<"u"&&window.document,As=typeof Ie<"u"&&Ie.window&&Ie.window.document,Is=Object.keys(Z.propTypes),js=Cs||As?Y.Suspense:()=>null,J=[],ks=(t,e)=>{var r;return r=class extends Y.Component{constructor(){super(...arguments),c(this,"state",{showPreview:!!this.props.light}),c(this,"references",{wrapper:s=>{this.wrapper=s},player:s=>{this.player=s}}),c(this,"handleClickPreview",s=>{this.setState({showPreview:!1}),this.props.onClickPreview(s)}),c(this,"showPreview",()=>{this.setState({showPreview:!0})}),c(this,"getDuration",()=>this.player?this.player.getDuration():null),c(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),c(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),c(this,"getInternalPlayer",(s="player")=>this.player?this.player.getInternalPlayer(s):null),c(this,"seekTo",(s,a,o)=>{if(!this.player)return null;this.player.seekTo(s,a,o)}),c(this,"handleReady",()=>{this.props.onReady(this)}),c(this,"getActivePlayer",(0,Ne.default)(s=>{for(const a of[...J,...t])if(a.canPlay(s))return a;return e||null})),c(this,"getConfig",(0,Ne.default)((s,a)=>{const{config:o}=this.props;return Ts.default.all([Z.defaultProps.config,Z.defaultProps.config[a]||{},o,o[a]||{}])})),c(this,"getAttributes",(0,Ne.default)(s=>(0,pr.omit)(this.props,Is))),c(this,"renderActivePlayer",s=>{if(!s)return null;const a=this.getActivePlayer(s);if(!a)return null;const o=this.getConfig(s,a.key);return Y.default.createElement(Rs.default,{...this.props,key:a.key,ref:this.references.player,config:o,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(s,a){return!(0,yt.default)(this.props,s)||!(0,yt.default)(this.state,a)}componentDidUpdate(s){const{light:a}=this.props;!s.light&&a&&this.setState({showPreview:!0}),s.light&&!a&&this.setState({showPreview:!1})}renderPreview(s){if(!s)return null;const{light:a,playIcon:o,previewTabIndex:n,oEmbedUrl:i}=this.props;return Y.default.createElement(Ms,{url:s,light:a,playIcon:o,previewTabIndex:n,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:s,style:a,width:o,height:n,fallback:i,wrapper:l}=this.props,{showPreview:p}=this.state,u=this.getAttributes(s),d=typeof l=="string"?this.references.wrapper:void 0;return Y.default.createElement(l,{ref:d,style:{...a,width:o,height:n},...u},Y.default.createElement(js,{fallback:i},p?this.renderPreview(s):this.renderActivePlayer(s)))}},c(r,"displayName","ReactPlayer"),c(r,"propTypes",Z.propTypes),c(r,"defaultProps",Z.defaultProps),c(r,"addCustomPlayer",s=>{J.push(s)}),c(r,"removeCustomPlayers",()=>{J.length=0}),c(r,"canPlay",s=>{for(const a of[...J,...t])if(a.canPlay(s))return!0;return!1}),c(r,"canEnablePIP",s=>{for(const a of[...J,...t])if(a.canEnablePIP&&a.canEnablePIP(s))return!0;return!1}),r};var Ns=Object.create,$e=Object.defineProperty,Us=Object.getOwnPropertyDescriptor,Vs=Object.getOwnPropertyNames,xs=Object.getPrototypeOf,Hs=Object.prototype.hasOwnProperty,Ks=(t,e)=>{for(var r in e)$e(t,r,{get:e[r],enumerable:!0})},ur=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Vs(e))!Hs.call(t,a)&&a!==r&&$e(t,a,{get:()=>e[a],enumerable:!(s=Us(e,a))||s.enumerable});return t},Bs=(t,e,r)=>(r=t!=null?Ns(xs(t)):{},ur(e||!t||!t.__esModule?$e(r,"default",{value:t,enumerable:!0}):r,t)),Fs=t=>ur($e({},"__esModule",{value:!0}),t),cr={};Ks(cr,{default:()=>Gs});var zs=Fs(cr),qe=Bs(Xa),Ws=Ds;const Ys=qe.default[qe.default.length-1];var Gs=(0,Ws.createReactPlayer)(qe.default,Ys);const Ll=w(zs);var Xs=Object.create,ae=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,qs=Object.getOwnPropertyNames,Zs=Object.getPrototypeOf,Qs=Object.prototype.hasOwnProperty,eo=(t,e,r)=>e in t?ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,to=(t,e)=>{for(var r in e)ae(t,r,{get:e[r],enumerable:!0})},hr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of qs(e))!Qs.call(t,a)&&a!==r&&ae(t,a,{get:()=>e[a],enumerable:!(s=Js(e,a))||s.enumerable});return t},ro=(t,e,r)=>(r=t!=null?Xs(Zs(t)):{},hr(e||!t||!t.__esModule?ae(r,"default",{value:t,enumerable:!0}):r,t)),ao=t=>hr(ae({},"__esModule",{value:!0}),t),U=(t,e,r)=>(eo(t,typeof e!="symbol"?e+"":e,r),r),dr={};to(dr,{default:()=>st});var yr=ao(dr),Ue=ro(P),z=m,_r=L;const so="https://www.youtube.com/iframe_api",_t="YT",oo="onYouTubeIframeAPIReady",fe=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,Ve=/user\/([a-zA-Z0-9_-]+)\/?/,no=/youtube-nocookie\.com/,io="https://www.youtube-nocookie.com";class st extends Ue.Component{constructor(){super(...arguments),U(this,"callPlayer",z.callPlayer),U(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(fe.test(e)){const[,r]=e.match(fe);return{listType:"playlist",list:r.replace(/^UC/,"UU")}}if(Ve.test(e)){const[,r]=e.match(Ve);return{listType:"user_uploads",list:r}}return{}}),U(this,"onStateChange",e=>{const{data:r}=e,{onPlay:s,onPause:a,onBuffer:o,onBufferEnd:n,onEnded:i,onReady:l,loop:p,config:{playerVars:u,onUnstarted:d}}=this.props,{UNSTARTED:R,PLAYING:x,PAUSED:I,BUFFERING:Ce,ENDED:Ae,CUED:aa}=window[_t].PlayerState;if(r===R&&d(),r===x&&(s(),n()),r===I&&a(),r===Ce&&o(),r===Ae){const sa=!!this.callPlayer("getPlaylist");p&&!sa&&(u.start?this.seekTo(u.start):this.play()),i()}r===aa&&l()}),U(this,"mute",()=>{this.callPlayer("mute")}),U(this,"unmute",()=>{this.callPlayer("unMute")}),U(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||fe.test(e)?null:e.match(_r.MATCH_URL_YOUTUBE)[1]}load(e,r){const{playing:s,muted:a,playsinline:o,controls:n,loop:i,config:l,onError:p}=this.props,{playerVars:u,embedOptions:d}=l,R=this.getID(e);if(r){if(fe.test(e)||Ve.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:R,startSeconds:(0,z.parseStartTime)(e)||u.start,endSeconds:(0,z.parseEndTime)(e)||u.end});return}(0,z.getSDK)(so,_t,oo,x=>x.loaded).then(x=>{this.container&&(this.player=new x.Player(this.container,{width:"100%",height:"100%",videoId:R,playerVars:{autoplay:s?1:0,mute:a?1:0,controls:n?1:0,start:(0,z.parseStartTime)(e),end:(0,z.parseEndTime)(e),origin:window.location.origin,playsinline:o?1:0,...this.parsePlaylist(e),...u},events:{onReady:()=>{i&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:I=>this.props.onPlaybackRateChange(I.data),onPlaybackQualityChange:I=>this.props.onPlaybackQualityChange(I),onStateChange:this.onStateChange,onError:I=>p(I.data)},host:no.test(e)?io:void 0,...d}))},p),d.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,r=!1){this.callPlayer("seekTo",e),!r&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return Ue.default.createElement("div",{style:r},Ue.default.createElement("div",{ref:this.ref}))}}U(st,"displayName","YouTube");U(st,"canPlay",_r.canPlay.youtube);const lo=w(yr),po=S({__proto__:null,default:lo},[yr]);var uo=Object.create,se=Object.defineProperty,co=Object.getOwnPropertyDescriptor,ho=Object.getOwnPropertyNames,yo=Object.getPrototypeOf,_o=Object.prototype.hasOwnProperty,fo=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Po=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})},fr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ho(e))!_o.call(t,a)&&a!==r&&se(t,a,{get:()=>e[a],enumerable:!(s=co(e,a))||s.enumerable});return t},mo=(t,e,r)=>(r=t!=null?uo(yo(t)):{},fr(e||!t||!t.__esModule?se(r,"default",{value:t,enumerable:!0}):r,t)),vo=t=>fr(se({},"__esModule",{value:!0}),t),M=(t,e,r)=>(fo(t,typeof e!="symbol"?e+"":e,r),r),Pr={};Po(Pr,{default:()=>Ee});var mr=vo(Pr),ft=mo(P),Pt=m,bo=L;const go="https://w.soundcloud.com/player/api.js",Oo="SC";class Ee extends ft.Component{constructor(){super(...arguments),M(this,"callPlayer",Pt.callPlayer),M(this,"duration",null),M(this,"currentTime",null),M(this,"fractionLoaded",null),M(this,"mute",()=>{this.setVolume(0)}),M(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),M(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,Pt.getSDK)(go,Oo).then(s=>{if(!this.iframe)return;const{PLAY:a,PLAY_PROGRESS:o,PAUSE:n,FINISH:i,ERROR:l}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(a,this.props.onPlay),this.player.bind(n,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(o,p=>{this.currentTime=p.currentPosition/1e3,this.fractionLoaded=p.loadedProgress}),this.player.bind(i,()=>this.props.onEnded()),this.player.bind(l,p=>this.props.onError(p))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(p=>{this.duration=p/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return ft.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}M(Ee,"displayName","SoundCloud");M(Ee,"canPlay",bo.canPlay.soundcloud);M(Ee,"loopOnEnded",!0);const wo=w(mr),$o=S({__proto__:null,default:wo},[mr]);var Eo=Object.create,oe=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Lo=Object.getOwnPropertyNames,Do=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty,Ro=(t,e,r)=>e in t?oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mo=(t,e)=>{for(var r in e)oe(t,r,{get:e[r],enumerable:!0})},vr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Lo(e))!To.call(t,a)&&a!==r&&oe(t,a,{get:()=>e[a],enumerable:!(s=So(e,a))||s.enumerable});return t},Co=(t,e,r)=>(r=t!=null?Eo(Do(t)):{},vr(e||!t||!t.__esModule?oe(r,"default",{value:t,enumerable:!0}):r,t)),Ao=t=>vr(oe({},"__esModule",{value:!0}),t),C=(t,e,r)=>(Ro(t,typeof e!="symbol"?e+"":e,r),r),br={};Mo(br,{default:()=>Se});var gr=Ao(br),mt=Co(P),vt=m,Io=L;const jo="https://player.vimeo.com/api/player.js",ko="Vimeo",No=t=>t.replace("/manage/videos","");class Se extends mt.Component{constructor(){super(...arguments),C(this,"callPlayer",vt.callPlayer),C(this,"duration",null),C(this,"currentTime",null),C(this,"secondsLoaded",null),C(this,"mute",()=>{this.setMuted(!0)}),C(this,"unmute",()=>{this.setMuted(!1)}),C(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,vt.getSDK)(jo,ko).then(r=>{if(!this.container)return;const{playerOptions:s,title:a}=this.props.config;this.player=new r.Player(this.container,{url:No(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...s}),this.player.ready().then(()=>{const o=this.container.querySelector("iframe");o.style.width="100%",o.style.height="100%",a&&(o.title=a)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",o=>this.props.onSeek(o.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:o})=>{this.currentTime=o}),this.player.on("progress",({seconds:o})=>{this.secondsLoaded=o}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",o=>this.props.onPlaybackRateChange(o.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return mt.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}C(Se,"displayName","Vimeo");C(Se,"canPlay",Io.canPlay.vimeo);C(Se,"forceLoad",!0);const Uo=w(gr),Vo=S({__proto__:null,default:Uo},[gr]);var xo=Object.create,ne=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Ko=Object.getOwnPropertyNames,Bo=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty,zo=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Wo=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})},Or=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ko(e))!Fo.call(t,a)&&a!==r&&ne(t,a,{get:()=>e[a],enumerable:!(s=Ho(e,a))||s.enumerable});return t},Yo=(t,e,r)=>(r=t!=null?xo(Bo(t)):{},Or(e||!t||!t.__esModule?ne(r,"default",{value:t,enumerable:!0}):r,t)),Go=t=>Or(ne({},"__esModule",{value:!0}),t),H=(t,e,r)=>(zo(t,typeof e!="symbol"?e+"":e,r),r),wr={};Wo(wr,{default:()=>Le});var $r=Go(wr),bt=Yo(P),Pe=m,Xo=L;const gt="https://connect.facebook.net/en_US/sdk.js",Ot="FB",wt="fbAsyncInit",Jo="facebook-player-";class Le extends bt.Component{constructor(){super(...arguments),H(this,"callPlayer",Pe.callPlayer),H(this,"playerID",this.props.config.playerId||`${Jo}${(0,Pe.randomString)()}`),H(this,"mute",()=>{this.callPlayer("mute")}),H(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,Pe.getSDK)(gt,Ot,wt).then(s=>s.XFBML.parse());return}(0,Pe.getSDK)(gt,Ot,wt).then(s=>{s.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),s.Event.subscribe("xfbml.render",a=>{this.props.onLoaded()}),s.Event.subscribe("xfbml.ready",a=>{a.type==="video"&&a.id===this.playerID&&(this.player=a.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return bt.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}H(Le,"displayName","Facebook");H(Le,"canPlay",Xo.canPlay.facebook);H(Le,"loopOnEnded",!0);const qo=w($r),Zo=S({__proto__:null,default:qo},[$r]);var Qo=Object.create,ie=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,rn=Object.getPrototypeOf,an=Object.prototype.hasOwnProperty,sn=(t,e,r)=>e in t?ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,on=(t,e)=>{for(var r in e)ie(t,r,{get:e[r],enumerable:!0})},Er=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of tn(e))!an.call(t,a)&&a!==r&&ie(t,a,{get:()=>e[a],enumerable:!(s=en(e,a))||s.enumerable});return t},nn=(t,e,r)=>(r=t!=null?Qo(rn(t)):{},Er(e||!t||!t.__esModule?ie(r,"default",{value:t,enumerable:!0}):r,t)),ln=t=>Er(ie({},"__esModule",{value:!0}),t),k=(t,e,r)=>(sn(t,typeof e!="symbol"?e+"":e,r),r),Sr={};on(Sr,{default:()=>ot});var Lr=ln(Sr),$t=nn(P),Et=m,Dr=L;const pn="https://cdn.embed.ly/player-0.1.0.min.js",un="playerjs";class ot extends $t.Component{constructor(){super(...arguments),k(this,"callPlayer",Et.callPlayer),k(this,"duration",null),k(this,"currentTime",null),k(this,"secondsLoaded",null),k(this,"mute",()=>{this.callPlayer("mute")}),k(this,"unmute",()=>{this.callPlayer("unmute")}),k(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,Et.getSDK)(pn,un).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(Dr.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return $t.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}k(ot,"displayName","Streamable");k(ot,"canPlay",Dr.canPlay.streamable);const cn=w(Lr),hn=S({__proto__:null,default:cn},[Lr]);var dn=Object.create,le=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,_n=Object.getOwnPropertyNames,fn=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty,mn=(t,e,r)=>e in t?le(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vn=(t,e)=>{for(var r in e)le(t,r,{get:e[r],enumerable:!0})},Tr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of _n(e))!Pn.call(t,a)&&a!==r&&le(t,a,{get:()=>e[a],enumerable:!(s=yn(e,a))||s.enumerable});return t},bn=(t,e,r)=>(r=t!=null?dn(fn(t)):{},Tr(e||!t||!t.__esModule?le(r,"default",{value:t,enumerable:!0}):r,t)),gn=t=>Tr(le({},"__esModule",{value:!0}),t),T=(t,e,r)=>(mn(t,typeof e!="symbol"?e+"":e,r),r),Rr={};vn(Rr,{default:()=>De});var Mr=gn(Rr),St=bn(P),xe=m,Cr=L;const On="https://fast.wistia.com/assets/external/E-v1.js",wn="Wistia",$n="wistia-player-";class De extends St.Component{constructor(){super(...arguments),T(this,"callPlayer",xe.callPlayer),T(this,"playerID",this.props.config.playerId||`${$n}${(0,xe.randomString)()}`),T(this,"onPlay",(...e)=>this.props.onPlay(...e)),T(this,"onPause",(...e)=>this.props.onPause(...e)),T(this,"onSeek",(...e)=>this.props.onSeek(...e)),T(this,"onEnded",(...e)=>this.props.onEnded(...e)),T(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),T(this,"mute",()=>{this.callPlayer("mute")}),T(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,muted:s,controls:a,onReady:o,config:n,onError:i}=this.props;(0,xe.getSDK)(On,wn).then(l=>{n.customControls&&n.customControls.forEach(p=>l.defineControl(p)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:r,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:a,fullscreenButton:a,playbar:a,playbackRateControl:a,qualityControl:a,volumeControl:a,settingsControl:a,smallPlayButton:a,...n.options},onReady:p=>{this.player=p,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},i)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,r=!0){this.callPlayer("time",e),r||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,r=e&&e.match(Cr.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${r}`,a={width:"100%",height:"100%"};return St.default.createElement("div",{id:this.playerID,key:r,className:s,style:a})}}T(De,"displayName","Wistia");T(De,"canPlay",Cr.canPlay.wistia);T(De,"loopOnEnded",!0);const En=w(Mr),Sn=S({__proto__:null,default:En},[Mr]);var Ln=Object.create,pe=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyNames,Rn=Object.getPrototypeOf,Mn=Object.prototype.hasOwnProperty,Cn=(t,e,r)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,An=(t,e)=>{for(var r in e)pe(t,r,{get:e[r],enumerable:!0})},Ar=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Tn(e))!Mn.call(t,a)&&a!==r&&pe(t,a,{get:()=>e[a],enumerable:!(s=Dn(e,a))||s.enumerable});return t},In=(t,e,r)=>(r=t!=null?Ln(Rn(t)):{},Ar(e||!t||!t.__esModule?pe(r,"default",{value:t,enumerable:!0}):r,t)),jn=t=>Ar(pe({},"__esModule",{value:!0}),t),K=(t,e,r)=>(Cn(t,typeof e!="symbol"?e+"":e,r),r),Ir={};An(Ir,{default:()=>Te});var jr=jn(Ir),Lt=In(P),me=m,be=L;const kn="https://player.twitch.tv/js/embed/v1.js",Nn="Twitch",Un="twitch-player-";class Te extends Lt.Component{constructor(){super(...arguments),K(this,"callPlayer",me.callPlayer),K(this,"playerID",this.props.config.playerId||`${Un}${(0,me.randomString)()}`),K(this,"mute",()=>{this.callPlayer("setMuted",!0)}),K(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:n}=this.props,i=be.MATCH_URL_TWITCH_CHANNEL.test(e),l=i?e.match(be.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(be.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(l):this.player.setVideo("v"+l);return}(0,me.getSDK)(kn,Nn).then(p=>{this.player=new p.Player(this.playerID,{video:i?"":l,channel:i?l:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:n,time:(0,me.parseStartTime)(e),...o.options});const{READY:u,PLAYING:d,PAUSE:R,ENDED:x,ONLINE:I,OFFLINE:Ce,SEEK:Ae}=p.Player;this.player.addEventListener(u,this.props.onReady),this.player.addEventListener(d,this.props.onPlay),this.player.addEventListener(R,this.props.onPause),this.player.addEventListener(x,this.props.onEnded),this.player.addEventListener(Ae,this.props.onSeek),this.player.addEventListener(I,this.props.onLoaded),this.player.addEventListener(Ce,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return Lt.default.createElement("div",{style:e,id:this.playerID})}}K(Te,"displayName","Twitch");K(Te,"canPlay",be.canPlay.twitch);K(Te,"loopOnEnded",!0);const Vn=w(jr),xn=S({__proto__:null,default:Vn},[jr]);var Hn=Object.create,ue=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,Bn=Object.getOwnPropertyNames,Fn=Object.getPrototypeOf,zn=Object.prototype.hasOwnProperty,Wn=(t,e,r)=>e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yn=(t,e)=>{for(var r in e)ue(t,r,{get:e[r],enumerable:!0})},kr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Bn(e))!zn.call(t,a)&&a!==r&&ue(t,a,{get:()=>e[a],enumerable:!(s=Kn(e,a))||s.enumerable});return t},Gn=(t,e,r)=>(r=t!=null?Hn(Fn(t)):{},kr(e||!t||!t.__esModule?ue(r,"default",{value:t,enumerable:!0}):r,t)),Xn=t=>kr(ue({},"__esModule",{value:!0}),t),V=(t,e,r)=>(Wn(t,typeof e!="symbol"?e+"":e,r),r),Nr={};Yn(Nr,{default:()=>Re});var Ur=Xn(Nr),He=Gn(P),ve=m,Vr=L;const Jn="https://api.dmcdn.net/all.js",qn="DM",Zn="dmAsyncInit";class Re extends He.Component{constructor(){super(...arguments),V(this,"callPlayer",ve.callPlayer),V(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),V(this,"mute",()=>{this.callPlayer("setMuted",!0)}),V(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),V(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:s,onError:a,playing:o}=this.props,[,n]=e.match(Vr.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(n,{start:(0,ve.parseStartTime)(e),autoplay:o});return}(0,ve.getSDK)(Jn,qn,Zn,i=>i.player).then(i=>{if(!this.container)return;const l=i.player;this.player=new l(this.container,{width:"100%",height:"100%",video:n,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,ve.parseStartTime)(e),origin:window.location.origin,...s.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:p=>a(p)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return He.default.createElement("div",{style:r},He.default.createElement("div",{ref:this.ref}))}}V(Re,"displayName","DailyMotion");V(Re,"canPlay",Vr.canPlay.dailymotion);V(Re,"loopOnEnded",!0);const Qn=w(Ur),ei=S({__proto__:null,default:Qn},[Ur]);var ti=Object.create,ce=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ai=Object.getOwnPropertyNames,si=Object.getPrototypeOf,oi=Object.prototype.hasOwnProperty,ni=(t,e,r)=>e in t?ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ii=(t,e)=>{for(var r in e)ce(t,r,{get:e[r],enumerable:!0})},xr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ai(e))!oi.call(t,a)&&a!==r&&ce(t,a,{get:()=>e[a],enumerable:!(s=ri(e,a))||s.enumerable});return t},li=(t,e,r)=>(r=t!=null?ti(si(t)):{},xr(e||!t||!t.__esModule?ce(r,"default",{value:t,enumerable:!0}):r,t)),pi=t=>xr(ce({},"__esModule",{value:!0}),t),A=(t,e,r)=>(ni(t,typeof e!="symbol"?e+"":e,r),r),Hr={};ii(Hr,{default:()=>Me});var Kr=pi(Hr),Dt=li(P),Ke=m,Br=L;const ui="https://widget.mixcloud.com/media/js/widgetApi.js",ci="Mixcloud";class Me extends Dt.Component{constructor(){super(...arguments),A(this,"callPlayer",Ke.callPlayer),A(this,"duration",null),A(this,"currentTime",null),A(this,"secondsLoaded",null),A(this,"mute",()=>{}),A(this,"unmute",()=>{}),A(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,Ke.getSDK)(ui,ci).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,a)=>{this.currentTime=s,this.duration=a}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(Br.MATCH_URL_MIXCLOUD)[1],a={width:"100%",height:"100%"},o=(0,Ke.queryString)({...r.options,feed:`/${s}/`});return Dt.default.createElement("iframe",{key:s,ref:this.ref,style:a,src:`https://www.mixcloud.com/widget/iframe/?${o}`,frameBorder:"0",allow:"autoplay"})}}A(Me,"displayName","Mixcloud");A(Me,"canPlay",Br.canPlay.mixcloud);A(Me,"loopOnEnded",!0);const hi=w(Kr),di=S({__proto__:null,default:hi},[Kr]);var yi=Object.create,he=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyNames,Pi=Object.getPrototypeOf,mi=Object.prototype.hasOwnProperty,vi=(t,e,r)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bi=(t,e)=>{for(var r in e)he(t,r,{get:e[r],enumerable:!0})},Fr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of fi(e))!mi.call(t,a)&&a!==r&&he(t,a,{get:()=>e[a],enumerable:!(s=_i(e,a))||s.enumerable});return t},gi=(t,e,r)=>(r=t!=null?yi(Pi(t)):{},Fr(e||!t||!t.__esModule?he(r,"default",{value:t,enumerable:!0}):r,t)),Oi=t=>Fr(he({},"__esModule",{value:!0}),t),G=(t,e,r)=>(vi(t,typeof e!="symbol"?e+"":e,r),r),zr={};bi(zr,{default:()=>nt});var Wr=Oi(zr),Be=gi(P),Tt=m,Yr=L;const wi="https://play.vidyard.com/embed/v4.js",$i="VidyardV4",Ei="onVidyardAPI";class nt extends Be.Component{constructor(){super(...arguments),G(this,"callPlayer",Tt.callPlayer),G(this,"mute",()=>{this.setVolume(0)}),G(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),G(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:s,onError:a,onDuration:o}=this.props,n=e&&e.match(Yr.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,Tt.getSDK)(wi,$i,Ei).then(i=>{this.container&&(i.api.addReadyListener((l,p)=>{this.player||(this.player=p,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},n),i.api.renderPlayer({uuid:n,container:this.container,autoplay:r?1:0,...s.options}),i.api.getPlayerMetadata(n).then(l=>{this.duration=l.length_in_seconds,o(l.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return Be.default.createElement("div",{style:r},Be.default.createElement("div",{ref:this.ref}))}}G(nt,"displayName","Vidyard");G(nt,"canPlay",Yr.canPlay.vidyard);const Si=w(Wr),Li=S({__proto__:null,default:Si},[Wr]);var Di=Object.create,de=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Ri=Object.getOwnPropertyNames,Mi=Object.getPrototypeOf,Ci=Object.prototype.hasOwnProperty,Ai=(t,e,r)=>e in t?de(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ii=(t,e)=>{for(var r in e)de(t,r,{get:e[r],enumerable:!0})},Gr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ri(e))!Ci.call(t,a)&&a!==r&&de(t,a,{get:()=>e[a],enumerable:!(s=Ti(e,a))||s.enumerable});return t},ji=(t,e,r)=>(r=t!=null?Di(Mi(t)):{},Gr(e||!t||!t.__esModule?de(r,"default",{value:t,enumerable:!0}):r,t)),ki=t=>Gr(de({},"__esModule",{value:!0}),t),N=(t,e,r)=>(Ai(t,typeof e!="symbol"?e+"":e,r),r),Xr={};Ii(Xr,{default:()=>it});var Jr=ki(Xr),Rt=ji(P),Mt=m,Ni=L;const Ui="https://cdn.embed.ly/player-0.1.0.min.js",Vi="playerjs";class it extends Rt.Component{constructor(){super(...arguments),N(this,"callPlayer",Mt.callPlayer),N(this,"duration",null),N(this,"currentTime",null),N(this,"secondsLoaded",null),N(this,"mute",()=>{this.callPlayer("mute")}),N(this,"unmute",()=>{this.callPlayer("unmute")}),N(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,Mt.getSDK)(Ui,Vi).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,r){e.on("play",r.onPlay),e.on("pause",r.onPause),e.on("ended",r.onEnded),e.on("error",r.onError),e.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return Rt.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}N(it,"displayName","Kaltura");N(it,"canPlay",Ni.canPlay.kaltura);const xi=w(Jr),Hi=S({__proto__:null,default:xi},[Jr]);var Ki=Object.create,ye=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Fi=Object.getOwnPropertyNames,zi=Object.getPrototypeOf,Wi=Object.prototype.hasOwnProperty,Yi=(t,e,r)=>e in t?ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Gi=(t,e)=>{for(var r in e)ye(t,r,{get:e[r],enumerable:!0})},qr=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fi(e))!Wi.call(t,a)&&a!==r&&ye(t,a,{get:()=>e[a],enumerable:!(s=Bi(e,a))||s.enumerable});return t},Xi=(t,e,r)=>(r=t!=null?Ki(zi(t)):{},qr(e||!t||!t.__esModule?ye(r,"default",{value:t,enumerable:!0}):r,t)),Ji=t=>qr(ye({},"__esModule",{value:!0}),t),_=(t,e,r)=>(Yi(t,typeof e!="symbol"?e+"":e,r),r),Zr={};Gi(Zr,{default:()=>pt});var Qr=Ji(Zr),q=Xi(P),j=m,Q=L;const lt=typeof navigator<"u",qi=lt&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Ct=lt&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||qi)&&!window.MSStream,Zi=lt&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,Qi="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",el="Hls",tl="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",rl="dashjs",al="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",sl="flvjs",ol=/www\.dropbox\.com\/.+/,Fe=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,nl="https://videodelivery.net/{id}/manifest/video.m3u8";class pt extends q.Component{constructor(){super(...arguments),_(this,"onReady",(...e)=>this.props.onReady(...e)),_(this,"onPlay",(...e)=>this.props.onPlay(...e)),_(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),_(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),_(this,"onPause",(...e)=>this.props.onPause(...e)),_(this,"onEnded",(...e)=>this.props.onEnded(...e)),_(this,"onError",(...e)=>this.props.onError(...e)),_(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),_(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),_(this,"onDisablePIP",e=>{const{onDisablePIP:r,playing:s}=this.props;r(e),s&&this.play()}),_(this,"onPresentationModeChange",e=>{if(this.player&&(0,j.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:r}=this.player;r==="picture-in-picture"?this.onEnablePIP(e):r==="inline"&&this.onDisablePIP(e)}}),_(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),_(this,"mute",()=>{this.player.muted=!0}),_(this,"unmute",()=>{this.player.muted=!1}),_(this,"renderSourceElement",(e,r)=>typeof e=="string"?q.default.createElement("source",{key:r,src:e}):q.default.createElement("source",{key:r,...e})),_(this,"renderTrack",(e,r)=>q.default.createElement("track",{key:r,...e})),_(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(Ct||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,j.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:r,playsinline:s}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(r)||e.addEventListener("canplay",this.onReady),s&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,r){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(r)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:Q.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return Zi&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:Ct||this.props.config.forceDisableHls?!1:Q.HLS_EXTENSIONS.test(e)||Fe.test(e)}shouldUseDASH(e){return Q.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return Q.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:r,hlsOptions:s,dashVersion:a,flvVersion:o}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,j.getSDK)(Qi.replace("VERSION",r),el).then(n=>{if(this.hls=new n(s),this.hls.on(n.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(n.Events.ERROR,(i,l)=>{this.props.onError(i,l,this.hls,n)}),Fe.test(e)){const i=e.match(Fe)[1];this.hls.loadSource(nl.replace("{id}",i))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,j.getSDK)(tl.replace("VERSION",a),rl).then(n=>{this.dash=n.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(a)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,j.getSDK)(al.replace("VERSION",o),sl).then(n=>{this.flv=n.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(n.Events.ERROR,(i,l)=>{this.props.onError(i,l,this.flv,n)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,j.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,r=!0){this.player.currentTime=e,r||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,j.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,j.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(r){this.props.onError(r)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:r}=this.player;return e===1/0&&r.length>0?r.end(r.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const r=e.end(e.length-1),s=this.getDuration();return r>s?s:r}getSource(e){const r=this.shouldUseHLS(e),s=this.shouldUseDASH(e),a=this.shouldUseFLV(e);if(!(e instanceof Array||(0,j.isMediaStream)(e)||r||s||a))return ol.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:r,loop:s,controls:a,muted:o,config:n,width:i,height:l}=this.props,u=this.shouldUseAudio(this.props)?"audio":"video",d={width:i==="auto"?i:"100%",height:l==="auto"?l:"100%"};return q.default.createElement(u,{ref:this.ref,src:this.getSource(e),style:d,preload:"auto",autoPlay:r||void 0,controls:a,muted:o,loop:s,...n.attributes},e instanceof Array&&e.map(this.renderSourceElement),n.tracks.map(this.renderTrack))}}_(pt,"displayName","FilePlayer");_(pt,"canPlay",Q.canPlay.file);const il=w(Qr),ll=S({__proto__:null,default:il},[Qr]);var pl=Object.create,_e=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,cl=Object.getOwnPropertyNames,hl=Object.getPrototypeOf,dl=Object.prototype.hasOwnProperty,yl=(t,e,r)=>e in t?_e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_l=(t,e)=>{for(var r in e)_e(t,r,{get:e[r],enumerable:!0})},ea=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of cl(e))!dl.call(t,a)&&a!==r&&_e(t,a,{get:()=>e[a],enumerable:!(s=ul(e,a))||s.enumerable});return t},fl=(t,e,r)=>(r=t!=null?pl(hl(t)):{},ea(e||!t||!t.__esModule?_e(r,"default",{value:t,enumerable:!0}):r,t)),Pl=t=>ea(_e({},"__esModule",{value:!0}),t),ze=(t,e,r)=>(yl(t,typeof e!="symbol"?e+"":e,r),r),ta={};_l(ta,{default:()=>ml});var ra=Pl(ta),W=fl(P);const We="64px",Ye={};class ml extends W.Component{constructor(){super(...arguments),ze(this,"mounted",!1),ze(this,"state",{image:null}),ze(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:r,light:s}=this.props;(e.url!==r||e.light!==s)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:r,oEmbedUrl:s}){if(!W.default.isValidElement(r)){if(typeof r=="string"){this.setState({image:r});return}if(Ye[e]){this.setState({image:Ye[e]});return}return this.setState({image:null}),window.fetch(s.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),Ye[e]=o}})}}render(){const{light:e,onClick:r,playIcon:s,previewTabIndex:a}=this.props,{image:o}=this.state,n=W.default.isValidElement(e),i={display:"flex",alignItems:"center",justifyContent:"center"},l={preview:{width:"100%",height:"100%",backgroundImage:o&&!n?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...i},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:We,width:We,height:We,position:n?"absolute":void 0,...i},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},p=W.default.createElement("div",{style:l.shadow,className:"react-player__shadow"},W.default.createElement("div",{style:l.playIcon,className:"react-player__play-icon"}));return W.default.createElement("div",{style:l.preview,className:"react-player__preview",onClick:r,tabIndex:a,onKeyPress:this.handleKeyPress},n?e:null,s||p)}}const vl=w(ra),bl=S({__proto__:null,default:vl},[ra]);export{Ll as R}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/assets/react-router-dom-PvMEMeGk.js b/assets/react-router-dom-9lKaVMRO.js similarity index 58% rename from assets/react-router-dom-PvMEMeGk.js rename to assets/react-router-dom-9lKaVMRO.js index ac4fe99..5befba4 100644 --- a/assets/react-router-dom-PvMEMeGk.js +++ b/assets/react-router-dom-9lKaVMRO.js @@ -1,4 +1,4 @@ -import{r as a,R as q}from"./react-328yWDDP.js";import{R as J}from"./react-dom-AjuaLGBG.js";import{m as Q,D as B,a as W,R as Z,u as $,N as z,b as ee,c as D,d as H,e as te}from"./react-router-yhGg1gIj.js";import{c as ne,b as ie,E as ae,s as N,d as F,i as M,e as V}from"./@remix-run-qg_F8xzm.js";/** +import{r as i,a as q}from"./react-INodxC-X.js";import{R as J}from"./react-dom-yCHCI4DU.js";import{m as Q,D as B,a as W,R as Z,u as $,N as z,b as ee,c as D,d as H,e as te}from"./react-router-izzsw9Bi.js";import{c as ne,b as ae,E as ie,s as N,d as F,i as M,e as V}from"./@remix-run-qg_F8xzm.js";/** * React Router DOM v6.22.0 * * Copyright (c) Remix Software Inc. @@ -7,4 +7,4 @@ import{r as a,R as q}from"./react-328yWDDP.js";import{R as J}from"./react-dom-Aj * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function P(){return P=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[i]=t[i]);return e}function re(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function oe(t,n){return t.button===0&&(!n||n==="_self")&&!re(t)}const se=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],le=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],ue="6";try{window.__reactRouterVersion=ue}catch{}function _e(t,n){return ne({basename:n==null?void 0:n.basename,future:P({},n==null?void 0:n.future,{v7_prependBasename:!0}),history:ie({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||ce(),routes:t,mapRouteProperties:Q,window:n==null?void 0:n.window}).initialize()}function ce(){var t;let n=(t=window)==null?void 0:t.__staticRouterHydrationData;return n&&n.errors&&(n=P({},n,{errors:fe(n.errors)})),n}function fe(t){if(!t)return null;let n=Object.entries(t),e={};for(let[r,i]of n)if(i&&i.__type==="RouteErrorResponse")e[r]=new ae(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let s=new o(i.message);s.stack="",e[r]=s}catch{}}if(e[r]==null){let o=new Error(i.message);o.stack="",e[r]=o}}else e[r]=i;return e}const G=a.createContext({isTransitioning:!1}),de=a.createContext(new Map),he="startTransition",I=q[he],ve="flushSync",j=J[ve];function pe(t){I?I(t):t()}function U(t){j?j(t):t()}class me{constructor(){this.status="pending",this.promise=new Promise((n,e)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",n(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",e(r))}})}}function Pe(t){let{fallbackElement:n,router:e,future:r}=t,[i,o]=a.useState(e.state),[s,w]=a.useState(),[v,l]=a.useState({isTransitioning:!1}),[u,y]=a.useState(),[p,L]=a.useState(),[m,x]=a.useState(),R=a.useRef(new Map),{v7_startTransition:C}=r||{},d=a.useCallback(f=>{C?pe(f):f()},[C]),h=a.useCallback((f,S)=>{let{deletedFetchers:g,unstable_flushSync:_,unstable_viewTransitionOpts:T}=S;g.forEach(E=>R.current.delete(E)),f.fetchers.forEach((E,Y)=>{E.data!==void 0&&R.current.set(Y,E.data)});let X=e.window==null||typeof e.window.document.startViewTransition!="function";if(!T||X){_?U(()=>o(f)):d(()=>o(f));return}if(_){U(()=>{p&&(u&&u.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation})});let E=e.window.document.startViewTransition(()=>{U(()=>o(f))});E.finished.finally(()=>{U(()=>{y(void 0),L(void 0),w(void 0),l({isTransitioning:!1})})}),U(()=>L(E));return}p?(u&&u.resolve(),p.skipTransition(),x({state:f,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(w(f),l({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[e.window,p,u,R,d]);a.useLayoutEffect(()=>e.subscribe(h),[e,h]),a.useEffect(()=>{v.isTransitioning&&!v.flushSync&&y(new me)},[v]),a.useEffect(()=>{if(u&&s&&e.window){let f=s,S=u.promise,g=e.window.document.startViewTransition(async()=>{d(()=>o(f)),await S});g.finished.finally(()=>{y(void 0),L(void 0),w(void 0),l({isTransitioning:!1})}),L(g)}},[d,s,u,e.window]),a.useEffect(()=>{u&&s&&i.location.key===s.location.key&&u.resolve()},[u,p,i.location,s]),a.useEffect(()=>{!v.isTransitioning&&m&&(w(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),x(void 0))},[v.isTransitioning,m]),a.useEffect(()=>{},[]);let c=a.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:f=>e.navigate(f),push:(f,S,g)=>e.navigate(f,{state:S,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,S,g)=>e.navigate(f,{replace:!0,state:S,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[e]),b=e.basename||"/",k=a.useMemo(()=>({router:e,navigator:c,static:!1,basename:b}),[e,c,b]);return a.createElement(a.Fragment,null,a.createElement(B.Provider,{value:k},a.createElement(W.Provider,{value:i},a.createElement(de.Provider,{value:R.current},a.createElement(G.Provider,{value:v},a.createElement(Z,{basename:b,location:i.location,navigationType:i.historyAction,navigator:c,future:{v7_relativeSplatPath:e.future.v7_relativeSplatPath}},i.initialized||e.future.v7_partialHydration?a.createElement(we,{routes:e.routes,future:e.future,state:i}):n))))),null)}function we(t){let{routes:n,future:e,state:r}=t;return $(n,void 0,r,e)}const ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=a.forwardRef(function(n,e){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:w,target:v,to:l,preventScrollReset:u,unstable_viewTransition:y}=n,p=K(n,se),{basename:L}=a.useContext(z),m,x=!1;if(typeof l=="string"&&ye.test(l)&&(m=l,ge))try{let h=new URL(window.location.href),c=l.startsWith("//")?new URL(h.protocol+l):new URL(l),b=N(c.pathname,L);c.origin===h.origin&&b!=null?l=b+c.search+c.hash:x=!0}catch{}let R=ee(l,{relative:i}),C=Te(l,{replace:s,state:w,target:v,preventScrollReset:u,relative:i,unstable_viewTransition:y});function d(h){r&&r(h),h.defaultPrevented||C(h)}return a.createElement("a",P({},p,{href:m||R,onClick:x||o?r:d,ref:e,target:v}))}),ke=a.forwardRef(function(n,e){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:w,to:v,unstable_viewTransition:l,children:u}=n,y=K(n,le),p=D(v,{relative:y.relative}),L=H(),m=a.useContext(W),{navigator:x,basename:R}=a.useContext(z),C=m!=null&&Le(p)&&l===!0,d=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,h=L.pathname,c=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(h=h.toLowerCase(),c=c?c.toLowerCase():null,d=d.toLowerCase()),c&&R&&(c=N(c,R)||c);const b=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let k=h===d||!s&&h.startsWith(d)&&h.charAt(b)==="/",f=c!=null&&(c===d||!s&&c.startsWith(d)&&c.charAt(d.length)==="/"),S={isActive:k,isPending:f,isTransitioning:C},g=k?r:void 0,_;typeof o=="function"?_=o(S):_=[o,k?"active":null,f?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let T=typeof w=="function"?w(S):w;return a.createElement(Se,P({},y,{"aria-current":g,className:_,ref:e,style:T,to:v,unstable_viewTransition:l}),typeof u=="function"?u(S):u)});var O;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(O||(O={}));var A;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(A||(A={}));function Re(t){let n=a.useContext(B);return n||M(!1),n}function Te(t,n){let{target:e,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:w}=n===void 0?{}:n,v=te(),l=H(),u=D(t,{relative:s});return a.useCallback(y=>{if(oe(y,e)){y.preventDefault();let p=r!==void 0?r:F(l)===F(u);v(t,{replace:p,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:w})}},[l,v,u,r,i,e,t,o,s,w])}function Le(t,n){n===void 0&&(n={});let e=a.useContext(G);e==null&&M(!1);let{basename:r}=Re(O.useViewTransitionState),i=D(t,{relative:n.relative});if(!e.isTransitioning)return!1;let o=N(e.currentLocation.pathname,r)||e.currentLocation.pathname,s=N(e.nextLocation.pathname,r)||e.nextLocation.pathname;return V(i.pathname,s)!=null||V(i.pathname,o)!=null}export{Se as L,ke as N,Pe as R,_e as c}; + */function P(){return P=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0)&&(e[a]=t[a]);return e}function re(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function oe(t,n){return t.button===0&&(!n||n==="_self")&&!re(t)}const se=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],le=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],ue="6";try{window.__reactRouterVersion=ue}catch{}function _e(t,n){return ne({basename:n==null?void 0:n.basename,future:P({},n==null?void 0:n.future,{v7_prependBasename:!0}),history:ae({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||ce(),routes:t,mapRouteProperties:Q,window:n==null?void 0:n.window}).initialize()}function ce(){var t;let n=(t=window)==null?void 0:t.__staticRouterHydrationData;return n&&n.errors&&(n=P({},n,{errors:fe(n.errors)})),n}function fe(t){if(!t)return null;let n=Object.entries(t),e={};for(let[r,a]of n)if(a&&a.__type==="RouteErrorResponse")e[r]=new ie(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let s=new o(a.message);s.stack="",e[r]=s}catch{}}if(e[r]==null){let o=new Error(a.message);o.stack="",e[r]=o}}else e[r]=a;return e}const G=i.createContext({isTransitioning:!1}),de=i.createContext(new Map),he="startTransition",I=q[he],ve="flushSync",j=J[ve];function pe(t){I?I(t):t()}function U(t){j?j(t):t()}class me{constructor(){this.status="pending",this.promise=new Promise((n,e)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",n(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",e(r))}})}}function Pe(t){let{fallbackElement:n,router:e,future:r}=t,[a,o]=i.useState(e.state),[s,w]=i.useState(),[v,l]=i.useState({isTransitioning:!1}),[u,y]=i.useState(),[p,L]=i.useState(),[m,x]=i.useState(),R=i.useRef(new Map),{v7_startTransition:C}=r||{},d=i.useCallback(f=>{C?pe(f):f()},[C]),h=i.useCallback((f,S)=>{let{deletedFetchers:g,unstable_flushSync:_,unstable_viewTransitionOpts:T}=S;g.forEach(E=>R.current.delete(E)),f.fetchers.forEach((E,Y)=>{E.data!==void 0&&R.current.set(Y,E.data)});let X=e.window==null||typeof e.window.document.startViewTransition!="function";if(!T||X){_?U(()=>o(f)):d(()=>o(f));return}if(_){U(()=>{p&&(u&&u.resolve(),p.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation})});let E=e.window.document.startViewTransition(()=>{U(()=>o(f))});E.finished.finally(()=>{U(()=>{y(void 0),L(void 0),w(void 0),l({isTransitioning:!1})})}),U(()=>L(E));return}p?(u&&u.resolve(),p.skipTransition(),x({state:f,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(w(f),l({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[e.window,p,u,R,d]);i.useLayoutEffect(()=>e.subscribe(h),[e,h]),i.useEffect(()=>{v.isTransitioning&&!v.flushSync&&y(new me)},[v]),i.useEffect(()=>{if(u&&s&&e.window){let f=s,S=u.promise,g=e.window.document.startViewTransition(async()=>{d(()=>o(f)),await S});g.finished.finally(()=>{y(void 0),L(void 0),w(void 0),l({isTransitioning:!1})}),L(g)}},[d,s,u,e.window]),i.useEffect(()=>{u&&s&&a.location.key===s.location.key&&u.resolve()},[u,p,a.location,s]),i.useEffect(()=>{!v.isTransitioning&&m&&(w(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),x(void 0))},[v.isTransitioning,m]),i.useEffect(()=>{},[]);let c=i.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:f=>e.navigate(f),push:(f,S,g)=>e.navigate(f,{state:S,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(f,S,g)=>e.navigate(f,{replace:!0,state:S,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[e]),b=e.basename||"/",k=i.useMemo(()=>({router:e,navigator:c,static:!1,basename:b}),[e,c,b]);return i.createElement(i.Fragment,null,i.createElement(B.Provider,{value:k},i.createElement(W.Provider,{value:a},i.createElement(de.Provider,{value:R.current},i.createElement(G.Provider,{value:v},i.createElement(Z,{basename:b,location:a.location,navigationType:a.historyAction,navigator:c,future:{v7_relativeSplatPath:e.future.v7_relativeSplatPath}},a.initialized||e.future.v7_partialHydration?i.createElement(we,{routes:e.routes,future:e.future,state:a}):n))))),null)}function we(t){let{routes:n,future:e,state:r}=t;return $(n,void 0,r,e)}const ge=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=i.forwardRef(function(n,e){let{onClick:r,relative:a,reloadDocument:o,replace:s,state:w,target:v,to:l,preventScrollReset:u,unstable_viewTransition:y}=n,p=K(n,se),{basename:L}=i.useContext(z),m,x=!1;if(typeof l=="string"&&ye.test(l)&&(m=l,ge))try{let h=new URL(window.location.href),c=l.startsWith("//")?new URL(h.protocol+l):new URL(l),b=N(c.pathname,L);c.origin===h.origin&&b!=null?l=b+c.search+c.hash:x=!0}catch{}let R=ee(l,{relative:a}),C=Te(l,{replace:s,state:w,target:v,preventScrollReset:u,relative:a,unstable_viewTransition:y});function d(h){r&&r(h),h.defaultPrevented||C(h)}return i.createElement("a",P({},p,{href:m||R,onClick:x||o?r:d,ref:e,target:v}))}),ke=i.forwardRef(function(n,e){let{"aria-current":r="page",caseSensitive:a=!1,className:o="",end:s=!1,style:w,to:v,unstable_viewTransition:l,children:u}=n,y=K(n,le),p=D(v,{relative:y.relative}),L=H(),m=i.useContext(W),{navigator:x,basename:R}=i.useContext(z),C=m!=null&&Le(p)&&l===!0,d=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,h=L.pathname,c=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(h=h.toLowerCase(),c=c?c.toLowerCase():null,d=d.toLowerCase()),c&&R&&(c=N(c,R)||c);const b=d!=="/"&&d.endsWith("/")?d.length-1:d.length;let k=h===d||!s&&h.startsWith(d)&&h.charAt(b)==="/",f=c!=null&&(c===d||!s&&c.startsWith(d)&&c.charAt(d.length)==="/"),S={isActive:k,isPending:f,isTransitioning:C},g=k?r:void 0,_;typeof o=="function"?_=o(S):_=[o,k?"active":null,f?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let T=typeof w=="function"?w(S):w;return i.createElement(Se,P({},y,{"aria-current":g,className:_,ref:e,style:T,to:v,unstable_viewTransition:l}),typeof u=="function"?u(S):u)});var O;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(O||(O={}));var A;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(A||(A={}));function Re(t){let n=i.useContext(B);return n||M(!1),n}function Te(t,n){let{target:e,replace:r,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:w}=n===void 0?{}:n,v=te(),l=H(),u=D(t,{relative:s});return i.useCallback(y=>{if(oe(y,e)){y.preventDefault();let p=r!==void 0?r:F(l)===F(u);v(t,{replace:p,state:a,preventScrollReset:o,relative:s,unstable_viewTransition:w})}},[l,v,u,r,a,e,t,o,s,w])}function Le(t,n){n===void 0&&(n={});let e=i.useContext(G);e==null&&M(!1);let{basename:r}=Re(O.useViewTransitionState),a=D(t,{relative:n.relative});if(!e.isTransitioning)return!1;let o=N(e.currentLocation.pathname,r)||e.currentLocation.pathname,s=N(e.nextLocation.pathname,r)||e.nextLocation.pathname;return V(a.pathname,s)!=null||V(a.pathname,o)!=null}export{Se as L,ke as N,Pe as R,_e as c}; diff --git a/assets/react-router-yhGg1gIj.js b/assets/react-router-izzsw9Bi.js similarity index 99% rename from assets/react-router-yhGg1gIj.js rename to assets/react-router-izzsw9Bi.js index a214a29..723cd98 100644 --- a/assets/react-router-yhGg1gIj.js +++ b/assets/react-router-izzsw9Bi.js @@ -1,4 +1,4 @@ -import{r}from"./react-328yWDDP.js";import{i as g,p as L,m as W,j as R,A as j,s as z,g as M,r as D,a as A}from"./@remix-run-qg_F8xzm.js";/** +import{r}from"./react-INodxC-X.js";import{i as g,p as L,m as W,j as R,A as j,s as z,g as M,r as D,a as A}from"./@remix-run-qg_F8xzm.js";/** * React Router v6.22.0 * * Copyright (c) Remix Software Inc. diff --git a/assets/react-use-cart-RfXZ2AJl.js b/assets/react-use-cart-DkhTJvtj.js similarity index 98% rename from assets/react-use-cart-RfXZ2AJl.js rename to assets/react-use-cart-DkhTJvtj.js index e380e7f..47265bc 100644 --- a/assets/react-use-cart-RfXZ2AJl.js +++ b/assets/react-use-cart-DkhTJvtj.js @@ -1 +1 @@ -import{r as E}from"./react-328yWDDP.js";function o(){return o=Object.assign||function(r){for(var t=1;t Ur-Shop - - - + + + - + - - - - + + + + - + - - - + + - + - - - - - + +