@car-cutter/wc-webplayer 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(Z,ue){typeof exports=="object"&&typeof module<"u"?ue(exports):typeof define=="function"&&define.amd?define(["exports"],ue):(Z=typeof globalThis<"u"?globalThis:Z||self,ue(Z.CarCutterWebplayerWC={}))})(this,function(Z){"use strict";const ue="cc-webplayer",$e="cc-webplayer-custom-media",We="cc-webplayer-icon",Pt="composition-loading",At="composition-loaded",Vt="composition-load-error",Ht="item-change",Ot="extend-mode-on",Dt="extend-mode-off",Rt="hotspots-on",$t="hotspots-off",Wt="gallery-open",Ft="gallery-close",cr="quality",Ut="cc-webplayer:";function ur(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function dr(e,t){const n=e.split("/"),r=n.pop();return[n.join("/"),t,r].join("/")}function Xt(){return!!customElements.get(ue)&&!!customElements.get($e)&&!!customElements.get(We)}var Me,O,Zt,ge,Yt,jt,tt,nt,rt,ot,Gt,ze={},Bt=[],mr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Fe=Array.isArray;function de(e,t){for(var n in t)e[n]=t[n];return e}function qt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function me(e,t,n){var r,o,i,l={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?Me.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return Pe(e,l,r,o,null)}function Pe(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Zt,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(i),i}function fr(){return{current:null}}function q(e){return e.children}function le(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?be(e):null}function Kt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Kt(e)}}function st(e){(!e.__d&&(e.__d=!0)&&ge.push(e)&&!Ue.__r++||Yt!==O.debounceRendering)&&((Yt=O.debounceRendering)||jt)(Ue)}function Ue(){var e,t,n,r,o,i,l,c;for(ge.sort(tt);e=ge.shift();)e.__d&&(t=ge.length,r=void 0,i=(o=(n=e).__v).__e,l=[],c=[],n.__P&&((r=de({},o)).__v=o.__v+1,O.vnode&&O.vnode(r),it(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,l,i??be(o),!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,nn(l,r,c),r.__e!=i&&Kt(r)),ge.length>t&&ge.sort(tt));Ue.__r=0}function Jt(e,t,n,r,o,i,l,c,d,u,f){var a,x,p,m,_,h=r&&r.__k||Bt,g=t.length;for(n.__d=d,pr(n,t,h),d=n.__d,a=0;a<g;a++)(p=n.__k[a])!=null&&(x=p.__i===-1?ze:h[p.__i]||ze,p.__i=a,it(e,p,x,o,i,l,c,d,u,f),m=p.__e,p.ref&&x.ref!=p.ref&&(x.ref&&at(x.ref,null,p),f.push(p.ref,p.__c||m,p)),_==null&&m!=null&&(_=m),65536&p.__u||x.__k===p.__k?d=Qt(p,d,e):typeof p.type=="function"&&p.__d!==void 0?d=p.__d:m&&(d=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=d,n.__e=_}function pr(e,t,n){var r,o,i,l,c,d=t.length,u=n.length,f=u,a=0;for(e.__k=[],r=0;r<d;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=r+a,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Pe(null,o,null,null,null):Fe(o)?Pe(q,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Pe(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(c=o.__i=hr(o,n,l,f))!==-1&&(f--,(i=n[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&a--,typeof o.type!="function"&&(o.__u|=65536)):c!==l&&(c==l-1?a--:c==l+1?a++:(c>l?a--:a++,o.__u|=65536))):o=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=be(i)),rn(i,i))}function Qt(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Qt(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=be(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function fe(e,t){return t=t||[],e==null||typeof e=="boolean"||(Fe(e)?e.some(function(n){fe(n,t)}):t.push(e)),t}function hr(e,t,n,r){var o=e.key,i=e.type,l=n-1,c=n+1,d=t[n];if(d===null||d&&o==d.key&&i===d.type&&!(131072&d.__u))return n;if(r>(d!=null&&!(131072&d.__u)?1:0))for(;l>=0||c<t.length;){if(l>=0){if((d=t[l])&&!(131072&d.__u)&&o==d.key&&i===d.type)return l;l--}if(c<t.length){if((d=t[c])&&!(131072&d.__u)&&o==d.key&&i===d.type)return c;c++}}return-1}function en(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||mr.test(t)?n:n+"px"}function Xe(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||en(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||en(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=nt,e.addEventListener(t,i?ot:rt,i)):e.removeEventListener(t,i?ot:rt,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function tn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=nt++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function it(e,t,n,r,o,i,l,c,d,u){var f,a,x,p,m,_,h,g,w,b,v,k,L,N,D,V,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(d=!!(32&n.__u),i=[c=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof E=="function")try{if(g=t.props,w="prototype"in E&&E.prototype.render,b=(f=E.contextType)&&r[f.__c],v=f?b?b.props.value:f.__:r,n.__c?h=(a=t.__c=n.__c).__=a.__E:(w?t.__c=a=new E(g,v):(t.__c=a=new le(g,v),a.constructor=E,a.render=gr),b&&b.sub(a),a.props=g,a.state||(a.state={}),a.context=v,a.__n=r,x=a.__d=!0,a.__h=[],a._sb=[]),w&&a.__s==null&&(a.__s=a.state),w&&E.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=de({},a.__s)),de(a.__s,E.getDerivedStateFromProps(g,a.__s))),p=a.props,m=a.state,a.__v=t,x)w&&E.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),w&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(w&&E.getDerivedStateFromProps==null&&g!==p&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(g,v),!a.__e&&(a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(g,a.__s,v)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(a.props=g,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),k=0;k<a._sb.length;k++)a.__h.push(a._sb[k]);a._sb=[],a.__h.length&&l.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(g,a.__s,v),w&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(p,m,_)})}if(a.context=v,a.props=g,a.__P=e,a.__e=!1,L=O.__r,N=0,w){for(a.state=a.__s,a.__d=!1,L&&L(t),f=a.render(a.props,a.state,a.context),D=0;D<a._sb.length;D++)a.__h.push(a._sb[D]);a._sb=[]}else do a.__d=!1,L&&L(t),f=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++N<25);a.state=a.__s,a.getChildContext!=null&&(r=de(de({},r),a.getChildContext())),w&&!x&&a.getSnapshotBeforeUpdate!=null&&(_=a.getSnapshotBeforeUpdate(p,m)),Jt(e,Fe(V=f!=null&&f.type===q&&f.key==null?f.props.children:f)?V:[V],t,n,r,o,i,l,c,d,u),a.base=t.__e,t.__u&=-161,a.__h.length&&l.push(a),h&&(a.__E=a.__=null)}catch(T){if(t.__v=null,d||i!=null){for(t.__u|=d?160:128;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;O.__e(T,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_r(n.__e,t,n,r,o,i,l,d,u);(f=O.diffed)&&f(t)}function nn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)at(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){O.__e(i,o.__v)}})}function _r(e,t,n,r,o,i,l,c,d){var u,f,a,x,p,m,_,h=n.props,g=t.props,w=t.type;if(w==="svg"?o="http://www.w3.org/2000/svg":w==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!w&&(w?p.localName===w:p.nodeType===3)){e=p,i[u]=null;break}}if(e==null){if(w===null)return document.createTextNode(g);e=document.createElementNS(o,w,g.is&&g),c&&(O.__m&&O.__m(t,i),c=!1),i=null}if(w===null)h===g||c&&e.data===g||(e.data=g);else{if(i=i&&Me.call(e.childNodes),h=n.props||ze,!c&&i!=null)for(h={},u=0;u<e.attributes.length;u++)h[(p=e.attributes[u]).name]=p.value;for(u in h)if(p=h[u],u!="children"){if(u=="dangerouslySetInnerHTML")a=p;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;Xe(e,u,null,p,o)}}for(u in g)p=g[u],u=="children"?x=p:u=="dangerouslySetInnerHTML"?f=p:u=="value"?m=p:u=="checked"?_=p:c&&typeof p!="function"||h[u]===p||Xe(e,u,p,h[u],o);if(f)c||a&&(f.__html===a.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(a&&(e.innerHTML=""),Jt(e,Fe(x)?x:[x],t,n,r,w==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:n.__k&&be(n,0),c,d),i!=null)for(u=i.length;u--;)qt(i[u]);c||(u="value",w==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||w==="progress"&&!m||w==="option"&&m!==h[u])&&Xe(e,u,m,h[u],o),u="checked",_!==void 0&&_!==e[u]&&Xe(e,u,_,h[u],o))}return e}function at(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){O.__e(o,n)}}function rn(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||at(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){O.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&rn(r[o],t,n||typeof e.type!="function");n||qt(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function gr(e,t,n){return this.constructor(e,n)}function Ae(e,t,n){var r,o,i,l;O.__&&O.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],l=[],it(t,e=(!r&&n||t).__k=me(q,null,[e]),o||ze,ze,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Me.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,l),nn(i,e,l)}function on(e,t){Ae(e,t,on)}function vr(e,t,n){var r,o,i,l,c=de({},e.props);for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]===void 0&&l!==void 0?l[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?Me.call(arguments,2):n),Pe(e.type,c,r||e.key,o||e.ref,null)}function Ve(e,t){var n={__c:t="__cC"+Gt++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.forEach(function(c){c.__e=!0,st(c)})},this.sub=function(l){o.add(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){o&&o.delete(l),c&&c.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Me=Bt.slice,O={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(c){e=c}throw e}},Zt=0,le.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=de({},this.state),typeof e=="function"&&(e=e(de({},n),this.props)),e&&de(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),st(this))},le.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),st(this))},le.prototype.render=q,ge=[],jt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tt=function(e,t){return e.__v.__b-t.__v.__b},Ue.__r=0,nt=0,rt=tn(!1),ot=tn(!0),Gt=0;var wr=0;function s(e,t,n,r,o,i){t||(t={});var l,c,d=t;"ref"in t&&(l=t.ref,delete t.ref);var u={type:e,props:d,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--wr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(c in l)d[c]===void 0&&(d[c]=l[c]);return O.vnode&&O.vnode(u),u}var pe,Y,lt,sn,xe=0,an=[],G=O,ln=G.__b,cn=G.__r,un=G.diffed,dn=G.__c,mn=G.unmount,fn=G.__;function Ce(e,t){G.__h&&G.__h(Y,e,xe||t),xe=0;var n=Y.__H||(Y.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function U(e){return xe=1,ct(vn,e)}function ct(e,t,n){var r=Ce(pe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):vn(void 0,t),function(c){var d=r.__N?r.__N[0]:r.__[0],u=r.t(d,c);d!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=Y,!Y.u)){var o=function(c,d,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(x){return!!x.__c});if(f.every(function(x){return!x.__N}))return!i||i.call(this,c,d,u);var a=!1;return f.forEach(function(x){if(x.__N){var p=x.__[0];x.__=x.__N,x.__N=void 0,p!==x.__[0]&&(a=!0)}}),!(!a&&r.__c.props===c)&&(!i||i.call(this,c,d,u))};Y.u=!0;var i=Y.shouldComponentUpdate,l=Y.componentWillUpdate;Y.componentWillUpdate=function(c,d,u){if(this.__e){var f=i;i=void 0,o(c,d,u),i=f}l&&l.call(this,c,d,u)},Y.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=Ce(pe++,3);!G.__s&&dt(n.__H,t)&&(n.__=e,n.i=t,Y.__H.__h.push(n))}function He(e,t){var n=Ce(pe++,4);!G.__s&&dt(n.__H,t)&&(n.__=e,n.i=t,Y.__h.push(n))}function X(e){return xe=5,te(function(){return{current:e}},[])}function pn(e,t,n){xe=6,He(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function te(e,t){var n=Ce(pe++,7);return dt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return xe=8,te(function(){return e},t)}function Ee(e){var t=Y.context[e.__c],n=Ce(pe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Y)),t.props.value):e.__}function hn(e,t){G.useDebugValue&&G.useDebugValue(t?t(e):e)}function _n(){var e=Ce(pe++,11);if(!e.__){for(var t=Y.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function yr(){for(var e;e=an.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ze),e.__H.__h.forEach(ut),e.__H.__h=[]}catch(t){e.__H.__h=[],G.__e(t,e.__v)}}G.__b=function(e){Y=null,ln&&ln(e)},G.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fn&&fn(e,t)},G.__r=function(e){cn&&cn(e),pe=0;var t=(Y=e.__c).__H;t&&(lt===Y?(t.__h=[],Y.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Ze),t.__h.forEach(ut),t.__h=[],pe=0)),lt=Y},G.diffed=function(e){un&&un(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(an.push(t)!==1&&sn===G.requestAnimationFrame||((sn=G.requestAnimationFrame)||br)(yr)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),lt=Y=null},G.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ze),n.__h=n.__h.filter(function(r){return!r.__||ut(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],G.__e(r,n.__v)}}),dn&&dn(e,t)},G.unmount=function(e){mn&&mn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ze(r)}catch(o){t=o}}),n.__H=void 0,t&&G.__e(t,n.__v))};var gn=typeof requestAnimationFrame=="function";function br(e){var t,n=function(){clearTimeout(r),gn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);gn&&(t=requestAnimationFrame(n))}function Ze(e){var t=Y,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Y=t}function ut(e){var t=Y;e.__c=e.__(),Y=t}function dt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function vn(e,t){return typeof t=="function"?t(e):t}function mt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ft(e,t){this.props=e,this.context=t}function xr(e,t){function n(o){var i=this.props.ref,l=i==o.ref;return!l&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!l:mt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,me(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ft.prototype=new le).isPureReactComponent=!0,ft.prototype.shouldComponentUpdate=function(e,t){return mt(this.props,e)||mt(this.state,t)};var wn=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),wn&&wn(e)};var Cr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Er(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=Cr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var yn=function(e,t){return e==null?null:fe(fe(e).map(t))},kr={map:yn,forEach:yn,count:function(e){return e?fe(e).length:0},only:function(e){var t=fe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:fe},Lr=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Lr(e,t,n,r)};var bn=O.unmount;function xn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,o){for(var i in o)r[i]=o[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return xn(r,t,n)})),e}function Cn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Cn(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ye(){this.__u=0,this.t=null,this.__b=null}function En(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Nr(e){var t,n,r;function o(i){if(t||(t=e()).then(function(l){n=l.default||l},function(l){r=l}),r)throw r;if(!n)throw t;return me(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Oe(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),bn&&bn(e)},(Ye.prototype=new le).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=En(r.__v),i=!1,l=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=l;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Cn(d,d.__c.__P,d.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},Ye.prototype.componentWillUnmount=function(){this.t=[]},Ye.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=xn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&me(q,null,e.fallback);return o&&(o.__u&=-33),[me(q,null,t.__a?null:e.children),o]};var kn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Tr(e){return this.getChildContext=function(){return e.context},e.children}function Ir(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ae(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ae(me(Tr,{context:t.context},e.__v),t.l)}function Sr(e,t){var n=me(Ir,{__v:e,i:t});return n.containerInfo=t,n}(Oe.prototype=new le).__a=function(e){var t=this,n=En(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),kn(t,e,r)):o()};n?n(i):i()}},Oe.prototype.render=function(e){this.u=null,this.o=new Map;var t=fe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Oe.prototype.componentDidUpdate=Oe.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){kn(e,n,t)})};var Ln=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Mr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,zr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pr=/[A-Z0-9]/g,Ar=typeof document<"u",Vr=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Nn(e,t,n){return t.__k==null&&(t.textContent=""),Ae(e,t),typeof n=="function"&&n(),e?e.__c:null}function Hr(e,t,n){return on(e,t),typeof n=="function"&&n(),e?e.__c:null}le.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(le.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Tn=O.event;function Or(){}function Dr(){return this.cancelBubble}function Rr(){return this.defaultPrevented}O.event=function(e){return Tn&&(e=Tn(e)),e.persist=Or,e.isPropagationStopped=Dr,e.isDefaultPrevented=Rr,e.nativeEvent=e};var pt,$r={enumerable:!1,configurable:!0,get:function(){return this.class}},In=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var l in n){var c=n[l];if(!(l==="value"&&"defaultValue"in n&&c==null||Ar&&l==="children"&&r==="noscript"||l==="class"||l==="className")){var d=l.toLowerCase();l==="defaultValue"&&"value"in n&&n.value==null?l="value":l==="download"&&c===!0?c="":d==="translate"&&c==="no"?c=!1:d[0]==="o"&&d[1]==="n"?d==="ondoubleclick"?l="ondblclick":d!=="onchange"||r!=="input"&&r!=="textarea"||Vr(n.type)?d==="onfocus"?l="onfocusin":d==="onblur"?l="onfocusout":zr.test(l)&&(l=d):d=l="oninput":i&&Mr.test(l)?l=l.replace(Pr,"-$&").toLowerCase():c===null&&(c=void 0),d==="oninput"&&o[l=d]&&(l="oninputCapture"),o[l]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=fe(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=fe(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",$r)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ln,In&&In(e)};var Sn=O.__r;O.__r=function(e){Sn&&Sn(e),pt=e.__c};var Mn=O.diffed;O.diffed=function(e){Mn&&Mn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),pt=null};var Wr={ReactCurrentDispatcher:{current:{readContext:function(e){return pt.__n[e.__c].props.value},useCallback:S,useContext:Ee,useDebugValue:hn,useDeferredValue:An,useEffect:R,useId:_n,useImperativeHandle:pn,useInsertionEffect:Hn,useLayoutEffect:He,useMemo:te,useReducer:ct,useRef:X,useState:U,useSyncExternalStore:On,useTransition:Vn}}};function Fr(e){return me.bind(null,e)}function je(e){return!!e&&e.$$typeof===Ln}function Ur(e){return je(e)&&e.type===q}function Xr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Zr(e){return je(e)?vr.apply(null,arguments):e}function zn(e){return!!e.__k&&(Ae(null,e),!0)}function Yr(e){return e&&(e.base||e.nodeType===1&&e)||null}var jr=function(e,t){return e(t)},Gr=function(e,t){return e(t)},Br=q;function Pn(e){e()}function An(e){return e}function Vn(){return[!1,Pn]}var Hn=He,qr=je;function On(e,t){var n=t(),r=U({h:{__:n,v:t}}),o=r[0].h,i=r[1];return He(function(){o.__=n,o.v=t,ht(o)&&i({h:o})},[e,n,t]),R(function(){return ht(o)&&i({h:o}),e(function(){ht(o)&&i({h:o})})},[e]),n}function ht(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Dn={useState:U,useId:_n,useReducer:ct,useEffect:R,useLayoutEffect:He,useInsertionEffect:Hn,useTransition:Vn,useDeferredValue:An,useSyncExternalStore:On,startTransition:Pn,useRef:X,useImperativeHandle:pn,useMemo:te,useCallback:S,useContext:Ee,useDebugValue:hn,version:"18.3.1",Children:kr,render:Nn,hydrate:Hr,unmountComponentAtNode:zn,createPortal:Sr,createElement:me,createContext:Ve,createFactory:Fr,cloneElement:Zr,createRef:fr,Fragment:q,isValidElement:je,isElement:qr,isFragment:Ur,isMemo:Xr,findDOMNode:Yr,Component:le,PureComponent:ft,memo:xr,forwardRef:Er,flushSync:Gr,unstable_batchedUpdates:jr,StrictMode:Br,Suspense:Ye,SuspenseList:Oe,lazy:Nr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr};async function Kr(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const _t=new Map,Jr=e=>{const[t,n]=U({status:"pending",isSuccess:!1});return R(()=>{const r=i=>n({status:"success",data:i,isSuccess:!0}),o=_t.get(e);if(o&&!(o instanceof Promise)){r(o);return}n({status:"fetching",isSuccess:!1}),async function(){try{let i;if(o)i=await o;else{const l=Kr(e);_t.set(e,l),i=await l,_t.set(e,i)}r(i)}catch(i){n({status:"error",isSuccess:!1,error:i})}}()},[e]),t},Rn=Ve(null),ie=()=>{const e=Ee(Rn);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},Qr=({children:e,...t})=>s(Rn.Provider,{value:t,children:e}),$n=Ve(null),he=()=>{const e=Ee($n);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},eo=({composition:e,children:t})=>{const{aspectRatio:n,categories:r,imageHdWidth:o,imageSubWidths:i}=e,{minMediaWidth:l,maxMediaWidth:c}=ie(),d=te(()=>r.flatMap(({items:a})=>a),[r]),u={aspectRatio:n.replace(":"," / ")},f=te(()=>{const a=i.concat(o),x=a.sort((m,_)=>m-_),p=x.filter(m=>m>=l&&m<=c);if(p.length===0){const m=(l+c)/2,_=a.reduce((h,g)=>Math.abs(g-m)<Math.abs(h-m)?g:h,o);return console.warn(`None of available media widths (${x.join("|")}) match the given constraints (${l>0?`${l} ≤ `:""}width${c<1/0?` ≤ ${c}`:""}).`,`Using the closest width instead (${_}).`),[_]}return p},[i,o,l,c]);return s($n.Provider,{value:{...e,items:d,aspectRatioStyle:u,usedMediaWidths:f},children:t})},Wn=500,gt=.75,Ge=1+gt*2;function ve(e,t,n){return Math.min(Math.max(e,t),n)}const Be=(e,t,n)=>e+(t-e)*n,Fn=Ve(null),vt=()=>Ee(Fn),De=()=>{const e=vt();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},Un="*:size-full",Xn="*:object-cover *:size-full",to=({children:e})=>{const{compositionUrl:t}=ie(),n=S(()=>document.querySelector(`${ue}[composition-url="${t}"]`),[t]),r=S(m=>{const _=m.querySelectorAll(We),h=new Map;for(const g of _){const w=g.getAttribute("name");if(!w){console.warn("Icon element is missing a name attribute");continue}const b=g.innerHTML,v=b?s("div",{className:Un,dangerouslySetInnerHTML:{__html:b}}):void 0;if(!v){console.warn(`Icon "${w}" customization is empty.`);continue}h.set(w,{Icon:v})}return h},[]),[o,i]=U(()=>{const m=n();return m?r(m):new Map});R(()=>{const m=n();if(!m)return;const _=new MutationObserver(()=>{i(r(m))});return _.observe(m,{childList:!0,subtree:!0}),()=>_.disconnect()},[r,n]);const l=S(m=>o.get(m),[o]),c=S((m,_)=>{i(h=>{const{Icon:g,...w}=_;return new Map(h.set(m,{...w,Icon:s("div",{className:Un,children:g})}))})},[]),d=S(m=>{i(_=>(_.delete(m),new Map(_)))},[]),u=S(m=>{const _=m.querySelectorAll($e),h=new Array;for(const g of _){const w=g.innerHTML;if(!w){console.warn("Custom media element is empty");continue}const b=Number(g.getAttribute("index"));if(Number.isNaN(b)){console.warn("Custom media element is missing the 'index' attribute");continue}const v=g.getAttribute("thumbnail-src")??void 0,k=JSON.stringify({index:b,thumbnailSrc:v});h.push({id:k,Media:s("div",{className:Xn,dangerouslySetInnerHTML:{__html:w}}),index:b,thumbnailSrc:v})}return h},[]),[f,a]=U(()=>{const m=n();return m?u(m):[]});R(()=>{const m=n();if(!m)return;const _=new MutationObserver(()=>{a(u(m))});return _.observe(m,{childList:!0,subtree:!0}),()=>_.disconnect()},[u,n]);const x=S(m=>{const{Media:_,...h}=m,g=s("div",{className:Xn,children:_}),w=JSON.stringify(h);return a(b=>[...b,{id:w,Media:g,...h}]),w},[]),p=S(m=>{a(_=>_.filter(h=>h.id!==m))},[]);return s(Fn.Provider,{value:{getIconConfig:l,registerIconConfig:c,unregisterIconConfig:d,customMediaList:f,registerCustomMedia:x,unregisterCustomMedia:p},children:e})},Zn=Ve(null),re=()=>{const e=Ee(Zn);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},no=({children:e})=>{const{infiniteCarrousel:t,preventFullScreen:n,emitEvent:r,isFullScreen:o,requestFullscreen:i,exitFullscreen:l}=ie(),{customMediaList:c}=De(),{categories:d,items:u}=he(),f=te(()=>{const $=new Array(...u),Q=c.slice().sort((J,ee)=>J.index<0&&ee.index<0?ee.index-J.index:J.index<0?1:ee.index<0?-1:J.index-ee.index);for(const J of Q){let ee=J.index;ee<0&&(ee=$.length+ee+1),$.splice(ee,0,{type:"custom",...J})}return $},[u,c]),[a,x]=U(f.map(()=>null));R(()=>{x(f.map(()=>null))},[f]);const p=S(($,Q)=>{x(J=>J.map((ee,zt)=>zt===$?Q:ee))},[]),[m,_]=U(0),[h,g]=U(null),w=h??m,b=f[w],v=a[w],[k,L]=U(null),N=!!k,D=S(()=>L(null),[]),V=S(()=>{if(N||h!==null)return;const $=m-1;$>=0?g($):t&&(L("first_to_last"),g(f.length-1))},[N,h,m,t,f.length]),E=S(()=>{if(N||h!==null)return;const $=m+1;$<f.length?g($):t&&(L("last_to_first"),g(0))},[N,h,m,f.length,t]),T=S($=>{const Q=Math.min(m,$),J=Math.max(m,$);a.slice(Q,J+1).filter(zt=>zt===null).length>2&&L("instant"),g($)},[m,a]);R(()=>{r(Ht,{index:w,item:b})},[b,r,w]);const P=te(()=>{let $;if(b.type==="custom"){const Q=f.slice(0,w).reverse().find(J=>J.type!=="custom")??f.slice(w+1).find(J=>J.type!=="custom");if(!Q)throw new Error("No non-custom item found");$=Q}else $=b;for(const Q of d)if(Q.items.includes($))return Q.id;throw new Error("Current item not found in any category")},[d,b,f,w]),A=S($=>{const Q=d.find(({id:ee})=>ee===$)?.items[0];if(Q===void 0)throw new Error("Failed to find target category");const J=f.findIndex(ee=>ee===Q);T(J)},[d,f,T]),C=te(()=>{switch(b.type){case"image":return!!b.hotspots?.length;case"360":return v==="running";default:return!1}},[b,v]),[z,y]=U(!0),I=S(()=>{const $=!z;y($),r($?Rt:$t)},[r,z]),M=te(()=>{switch(b.type){case"video":return v!=="running";default:return!0}},[b,v]),[W,F]=U(!1),B=S(()=>{const $=!W;F($),r($?Wt:Ft)},[r,W]),[j,se]=U(null),ne=S(()=>se(null),[]),ae=!!j,ye=te(()=>{switch(b.type){case"image":return!0;case"360":return v==="running";default:return!1}},[b.type,v]),[ce,Qe]=U(1),et=ce!==1,Et=ce<Ge,kt=ce>1,Ne=S($=>{Qe(Q=>ve(Q+$,1,Ge))},[]),Lt=S(()=>Qe(1),[]),ks=S(()=>Ne(gt),[Ne]),Ls=S(()=>Ne(-gt),[Ne]),Nt=S(()=>{Lt(),ne()},[Lt,ne]),[Te,Ns]=U(!1),[Tt,ar]=U(),[It,lr]=U(!1),Ie=S(async $=>{Nt(),Ns($),r($?Ot:Dt)},[r,Nt]),Se=S(()=>{clearTimeout(Tt);const $=setTimeout(()=>{ar(void 0)},Wn);ar($)},[Tt]),St=S(async()=>{if(Se(),!n){const $=await i();if(lr(!$),$)return}Ie(!0)},[n,Ie,i,Se]),Mt=S(async()=>{Se(),!(!n&&(lr(!1),await l()))&&Ie(!1)},[n,Ie,l,Se]),Ts=S(()=>{Te?Mt():St()},[Mt,St,Te]);return R(()=>{n||It&&Te||o!==Te&&(Se(),Ie(o))},[n,Ie,Te,It,o,Se]),s(Zn.Provider,{value:{items:f,setItemInteraction:p,slidable:f.length>1,carrouselItemIndex:m,setCarrouselItemIndex:_,itemIndexCommand:h,setItemIndexCommand:g,masterItemIndex:w,specialCommand:k,isRunningSpecialCommand:N,finishSpecialCommand:D,prevItem:V,nextItem:E,scrollToItemIndex:T,displayedCategoryId:P,changeCategory:A,enableHotspotsControl:C,showHotspots:z,toggleHotspots:I,showGalleryControls:M,showGallery:W,toggleGallery:B,shownDetails:j,isShowingDetails:ae,setShownDetails:se,resetShownDetails:ne,showZoomControls:ye,zoom:ce,isZooming:et,setZoom:Qe,resetZoom:Lt,canZoomIn:Et,zoomIn:ks,canZoomOut:kt,zoomOut:Ls,resetView:Nt,extendMode:Te,enableExtendMode:St,disableExtendMode:Mt,toggleExtendMode:Ts,extendTransition:!!Tt,fakeFullScreen:It},children:e})},Yn=["left","center","right","fullW"],jn=["top","middle","bottom","fullH"],ro=[...Yn,...jn,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function oo(e){return Yn.includes(e)}function so(e){return jn.includes(e)}function io(e){return ro.includes(e)}function ao(e){if(!io(e))throw new Error(`Invalid position: ${e}`);return so(e)?[e,void 0]:oo(e)?[void 0,e]:e.split("-")}function H(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function lo(e){switch(e){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function Gn(e){switch(e){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function co({positionX:e,positionY:t}){const n=new Array;return e&&n.push(lo(e)),t&&n.push(Gn(t)),n.join(" ")}function ke(e){const[t,n]=ao(e);return co({positionX:n,positionY:t})}const K=({customizationKey:e,className:t,children:n})=>{const{getIconConfig:r}=De(),i=r(e)?.Icon;return i?t?s("div",{className:t,children:i}):i:n},uo=({className:e})=>s(K,{className:e,customizationKey:"UI_CLOSE",children:s("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),mo={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},fo={button:"h-8 px-2",icon:"size-8 p-2"},oe=({variant:e="fill",shape:t="button",color:n="primary",className:r,children:o,...i})=>{const l=mo[e][n],c=fo[t];return s("button",{className:H("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",l,c,r),...i,children:o})},Bn=e=>s(oe,{color:"neutral",shape:"icon",...e,children:s(uo,{className:"size-full"})}),qn=({text:e,className:t})=>s("div",{className:H("flex size-full flex-col items-center justify-center gap-y-4",t),children:[s("img",{className:"h-20 small:h-28",src:"https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"}),s("div",{className:"text-2xl font-bold",children:e})]}),po={primary:"border-primary",foreground:"border-foreground",background:"border-background"},ho={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},Kn=({color:e="foreground",size:t="md"})=>{const n=po[e],r=ho[t];return s("div",{className:H("inline-block animate-rotation rounded-full border-b-transparent",r,n)})},Le=({src:e,className:t,onLoad:n,imgInPlayerWidthRatio:r=1,onlyThumbnail:o,fadeIn:i,...l})=>{const{mediaLoadStrategy:c,playerInViewportWidthRatio:d}=ie(),{imageHdWidth:u,usedMediaWidths:f}=he(),[a,x]=te(()=>{const _=f.map(g=>`${g!==u?dr(e,g):e} ${g}w`);let h;if(o)h=[`${f[0]}px`];else{const g=1/(r*d);switch(c){case"quality":{const w=[...f],b=w.pop();h=w.map(v=>`(max-width: ${g*v}px) ${v}px`),h.push(`${b}px`);break}case"balanced":{h=[];for(let w=0;w<f.length-1;w++){const b=f[w],v=f[w+1],k=Math.round((b+v)/2);h.push(`(max-width: ${g*k}px) ${b}px`)}h.push(`${f[f.length-1]}px`);break}case"speed":{const w=[...f],b=w.shift();h=w.reverse().map(v=>`(min-width: ${g*v}px) ${v}px`),h.push(`${b}px`);break}}}return[_.join(", "),h.join(", ")]},[u,r,c,o,d,e,f]),[p,m]=U();return R(()=>{if(p===!0)return;const _=setTimeout(()=>{m(h=>h??!1)},30);return()=>clearTimeout(_)},[p]),s("img",{src:e,srcSet:a,sizes:x,className:H(t,i&&H(p!==void 0&&"transition-opacity duration-200",p===!1&&"opacity-0",p===!0&&"opacity-100")),onLoad:_=>{m(!0),n?.(_)},...l})},Jn=({className:e})=>s(K,{className:e,customizationKey:"UI_IMAGE",children:s("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:s("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),wt=({className:e})=>s(K,{className:e,customizationKey:"UI_PLAY",children:s("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Qn=({className:e})=>s(K,{className:e,customizationKey:"UI_360",children:s("svg",{className:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_134_843)",children:[s("path",{d:"M35.2497 43.93C34.4358 43.93 33.7296 43.325 33.6241 42.4966C33.51 41.5977 34.1457 40.7765 35.0442 40.662C40.2284 40.0015 44.8709 38.5967 48.1162 36.7057C51.0843 34.9767 52.7185 32.9438 52.7185 30.9819C52.7185 28.8196 50.8062 27.0504 49.2014 25.9464C48.455 25.4329 48.2662 24.4117 48.7798 23.6649C49.2933 22.9185 50.3148 22.7297 51.0612 23.2432C54.2921 25.4657 55.9998 28.1416 55.9998 30.9823C55.9998 34.2063 53.8452 37.1659 49.7684 39.5409C46.0988 41.6789 41.1509 43.1922 35.4591 43.9172C35.3886 43.9257 35.3185 43.93 35.2497 43.93Z",fill:"currentColor"}),s("path",{d:"M27.6 41.5797L23.225 37.2047C22.5842 36.5638 21.5455 36.5638 20.9047 37.2047C20.2642 37.8451 20.2642 38.8842 20.9047 39.5246L22.183 40.8029C17.2816 40.2966 12.8289 39.1555 9.38102 37.4973C5.50463 35.6333 3.28124 33.2582 3.28124 30.9818C3.28124 29.0511 4.87316 27.0443 7.76347 25.3311C8.5432 24.8692 8.8004 23.8626 8.33854 23.0833C7.87627 22.3036 6.86968 22.0464 6.09038 22.5083C1.05658 25.4922 0 28.7631 0 30.9818C0 34.622 2.82665 37.9861 7.95915 40.4547C11.9428 42.3701 17.0958 43.6531 22.7098 44.1495L20.9047 45.9546C20.2642 46.5951 20.2642 47.6341 20.9047 48.275C21.2251 48.595 21.6451 48.7552 22.0651 48.7552C22.4846 48.7552 22.9046 48.595 23.225 48.275L27.6 43.9C28.2405 43.2592 28.2405 42.2201 27.6 41.5797Z",fill:"currentColor"}),s("path",{d:"M17.1827 27.6963V27.3016C17.1827 25.9092 16.3303 25.6391 15.1874 25.6391C14.4808 25.6391 14.2522 25.0158 14.2522 24.3924C14.2522 23.7687 14.4808 23.1453 15.1874 23.1453C15.977 23.1453 16.8084 23.0415 16.8084 21.3581C16.8084 20.1529 16.1227 19.8619 15.2703 19.8619C14.2522 19.8619 13.7327 20.1114 13.7327 20.9219C13.7327 21.6282 13.4208 22.1063 12.2155 22.1063C10.7193 22.1063 10.5326 21.7944 10.5326 20.7967C10.5326 19.1762 11.696 17.0771 15.2703 17.0771C17.9098 17.0771 19.9046 18.0329 19.9046 20.8386C19.9046 22.3553 19.3437 23.7687 18.3046 24.2468C19.5308 24.7039 20.4242 25.6182 20.4242 27.3016V27.6963C20.4242 31.1045 18.076 32.393 15.1665 32.393C11.5922 32.393 10.2207 30.2111 10.2207 28.4654C10.2207 27.5301 10.6155 27.2806 11.7584 27.2806C13.0884 27.2806 13.4208 27.5716 13.4208 28.3616C13.4208 29.3382 14.3355 29.5668 15.2703 29.5668C16.6836 29.5668 17.1827 29.0473 17.1827 27.6963Z",fill:"white"}),s("path",{d:"M33.0384 27.3016V27.4887C33.0384 31.063 30.8146 32.393 27.9469 32.393C25.0792 32.393 22.8345 31.063 22.8345 27.4887V21.9815C22.8345 18.4072 25.1412 17.0771 28.134 17.0771C31.646 17.0771 33.0384 19.2591 33.0384 20.9839C33.0384 21.9815 32.5603 22.293 31.5212 22.293C30.6279 22.293 29.8379 22.0644 29.8379 21.1086C29.8379 20.3191 29.0069 19.9034 28.0302 19.9034C26.804 19.9034 26.0764 20.5477 26.0764 21.9815V23.8515C26.7416 23.1244 27.6769 22.9372 28.6745 22.9372C31.0431 22.9372 33.0384 23.9763 33.0384 27.3016ZM26.0764 27.7173C26.0764 29.1511 26.7831 29.7745 27.9469 29.7745C29.1107 29.7745 29.7964 29.1511 29.7964 27.7173V27.5301C29.7964 26.013 29.1107 25.4311 27.926 25.4311C26.804 25.4311 26.0764 25.9715 26.0764 27.343V27.7173Z",fill:"white"}),s("path",{d:"M35.5527 27.4887V21.9815C35.5527 18.4072 37.7761 17.0771 40.6442 17.0771C43.5119 17.0771 45.7562 18.4072 45.7562 21.9815V27.4887C45.7562 31.063 43.5119 32.393 40.6442 32.393C37.7761 32.393 35.5527 31.063 35.5527 27.4887ZM42.5143 21.9815C42.5143 20.5477 41.808 19.9034 40.6442 19.9034C39.4804 19.9034 38.7947 20.5477 38.7947 21.9815V27.4887C38.7947 28.9225 39.4804 29.5668 40.6442 29.5668C41.808 29.5668 42.5143 28.9225 42.5143 27.4887V21.9815Z",fill:"white"}),s("path",{d:"M49.6948 17.0625C46.9805 17.0625 44.7729 14.8545 44.7729 12.1406C44.7729 9.42675 46.9805 7.21875 49.6948 7.21875C52.4087 7.21875 54.6167 9.42675 54.6167 12.1406C54.6167 14.8545 52.4087 17.0625 49.6948 17.0625ZM49.6948 10.5C48.7899 10.5 48.0542 11.2361 48.0542 12.1406C48.0542 13.0455 48.7899 13.7812 49.6948 13.7812C50.5993 13.7812 51.3354 13.0455 51.3354 12.1406C51.3354 11.2361 50.5993 10.5 49.6948 10.5Z",fill:"white"})]}),s("defs",{children:s("clipPath",{id:"clip0_134_843",children:s("rect",{width:"56",height:"56",fill:"white"})})})]})}),_o=({src:e,withCdn:t})=>{const{permanentGallery:n}=ie();if(!e)return null;const r="size-full object-cover";return t?s(Le,{className:r,src:e,onlyThumbnail:!0,fadeIn:!n}):s("img",{className:r,src:e})},yt=({children:e})=>{const{extendMode:t}=re();return s("div",{className:H("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",t&&"large:h-3/5 large:p-2"),children:e})},go=({item:e})=>{const{aspectRatioStyle:t}=he(),{type:n}=e;let r,o;switch(n){case"360":r=e.images[0].src,o=!0;break;case"image":r=e.src,o=!0;break;case"video":r=e.poster,o=!0;break;case"custom":r=e.thumbnailSrc,o=!1;break}const i=s(_o,{src:r,withCdn:o});let l;switch(n){case"360":l=s(yt,{children:s(Qn,{className:"size-full text-primary-light"})});break;case"video":l=s(yt,{children:s(wt,{className:"size-full p-0.5 text-background"})});break;case"custom":l=r?null:s(yt,{children:s(Jn,{className:"size-full p-0.5 text-background"})});break}return s("div",{className:"relative bg-foreground/30",style:t,children:[i,l&&s("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:l})]})},vo={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},er=({color:e="neutral",orientation:t="horizontal"})=>{const n=vo[e];return s("div",{className:H(n,t==="horizontal"?"h-px w-full":"w-px h-full")})},tr=({className:e="",containerClassName:t=""})=>{const{hideCategories:n,infiniteCarrousel:r,permanentGallery:o,isFullScreen:i}=ie(),{categories:l,aspectRatioStyle:c}=he(),{items:d,extendMode:u,extendTransition:f,masterItemIndex:a,prevItem:x,nextItem:p,scrollToItemIndex:m,resetView:_}=re(),h=te(()=>{if(n)return[];const E=new Array;let T=l[0];const P=A=>l.find(C=>C.items.some(z=>z===A));for(let A=0;A<d.length;A++){const C=d[A],z=P(C);z&&z!==T&&(E.push(A),T=z)}return E},[l,n,d]),g=X(null),w=S(()=>{if(!g.current)throw new Error("slider.current is null");return g.current},[]),b=X(!1),v=X(null),[k,L]=U(!1),N=S((E,T)=>{const P=w(),A=P.clientWidth,C=P.scrollWidth/d.length,z=(E+1/2)*C-A/2,y=P.scrollWidth-P.clientWidth;P.scrollTo({left:ve(z,0,y),behavior:T})},[d.length,w]);R(()=>{const E=g.current;if(!E)return;const T=C=>{C.preventDefault(),b.current=!0,v.current={x:C.pageX-E.offsetLeft,scrollLeft:E.scrollLeft}},P=C=>{if(!b.current)return;if(v.current===null)throw new Error("[onMouseMove] scrollStart is null");const y=C.pageX-E.offsetLeft-v.current.x;if(!k&&Math.abs(y)<5)return;const I=v.current.scrollLeft-y;L(!0),requestAnimationFrame(()=>{E.scrollLeft=I})},A=()=>{b.current&&(b.current=!1,requestAnimationFrame(()=>{L(!1)}))};return E.addEventListener("mousedown",T),document.addEventListener("mousemove",P),document.addEventListener("mouseleave",A),document.addEventListener("mouseup",A),document.addEventListener("contextmenu",A),()=>{E.removeEventListener("mousedown",T),document.removeEventListener("mousemove",P),document.removeEventListener("mouseleave",A),document.removeEventListener("mouseup",A),document.removeEventListener("contextmenu",A)}},[k]);const D=X(a);R(()=>{g.current&&(N(a,"smooth"),D.current=a)},[a,N]),R(()=>{g.current&&N(D.current,"instant")},[N,i,u,f]);const V=E=>{k||(r&&E===d.length-1&&a===0?x():r&&E===0&&a===d.length-1?p():m(E),_())};return s("div",{ref:g,className:H("relative w-full overflow-x-auto no-scrollbar",k?"cursor-grab":"cursor-grabbing",e),children:s("div",{className:H("flex h-10 w-fit gap-1 small:h-12 small:gap-2",u&&"large:h-20 large:gap-4",t),children:d.map((E,T)=>s(q,{children:[h.includes(T)&&s("div",{className:"my-2",children:s(er,{color:o&&!i?"neutral":"background",orientation:"vertical"})}),s("div",{className:H("relative h-full overflow-hidden rounded-gallery transition-radius",!k&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",T===a?"after:opacity-100":"after:opacity-0 hover:after:opacity-70"),style:c,onClick:()=>V(T),children:s(go,{item:E})})]},T))})})},nr=e=>1-Math.pow(1-e,2),wo=({Media:e,itemIndex:t})=>{const{setItemInteraction:n}=re();return R(()=>{n(t,"ready")},[t,n]),e},rr=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),yo=({onlyPreload:e,...t})=>{const{zoom:n,isZooming:r,setZoom:o}=re(),i=X(null),l=X(null),c=S(b=>{if(!l.current)throw new Error(`[${b??"getTransformElementOrThrow"}] transformElementRef.current is null`);return l.current},[]),d=X(!1),u=X(null),f=X(new Map),a=X({x:0,y:0,scale:1}),x=X(null),p=S(b=>{const v=c("setTransformStyle"),{x:k,y:L,scale:N}={...a.current,...b},D=ve(N,1,Ge),V=v.clientWidth,E=v.clientHeight,T=V*D,P=E*D,A=ve(k,-(T-V),0),C=ve(L,-(P-E),0);a.current={x:A,y:C,scale:D},v.style.transform=`translate(${A}px, ${C}px) scale(${D})`},[c]),m=S((b,v)=>{const{x:k,y:L,scale:N}=a.current,{x:D,y:V,scale:E}={...a.current,...b};x.current&&(cancelAnimationFrame(x.current),x.current=null);const T=()=>{p({x:D,y:V,scale:E}),o(E)},P=Math.abs(D-k)<1&&Math.abs(V-L)<1&&Math.abs(E-N)<.005;if(!v||P){T();return}const A=new Date().getTime(),C=()=>{const z=()=>{const I=new Date().getTime()-A;if(I>=v){T(),x.current=null;return}const M=Math.min(I/v,1),W=nr(M),F=Be(k,D,W),B=Be(L,V,W),j=Be(N,E,W);p({x:F,y:B,scale:j}),C()};x.current=requestAnimationFrame(z)};C()},[p,o]),_=S((b,v)=>{let{x:k,y:L}=a.current;b.x&&(k+=b.x),b.y&&(L+=b.y),m({x:k,y:L},v)},[m]),h=S((b,v,k)=>{const L=a.current.scale,N=ve(b,1,Ge),D=N/L,{x:V,y:E}=a.current,{x:T,y:P}=v,A=-V+T,C=-E+P,z=A*D,y=C*D,I=z-T,M=y-P,W=-I,F=-M;m({x:W,y:F,scale:N},k)},[m]),g=S(b=>{const v=c("shiftZoomFromButton"),k=v.clientWidth,L=v.clientHeight;h(b,{x:k/2,y:L/2},200)},[c,h]),w=S((b,v,k)=>{const{scale:L}=a.current;h(L+b,v,k)},[h]);return R(()=>{e||l.current&&g(n)},[e,g,n]),R(()=>{if(e||!r)return;const b=l.current;if(!b)return;const v=N=>{N.preventDefault(),N.stopPropagation(),d.current=!0,u.current={x:N.clientX,y:N.clientY}},k=N=>{if(!d.current)return;if(!u.current)throw new Error("mouseStartXY.current is null");N.stopPropagation();const D=N.clientX-u.current.x,V=N.clientY-u.current.y;_({x:D,y:V}),u.current={x:N.clientX,y:N.clientY}},L=()=>{d.current=!1};return b.addEventListener("mousedown",v),document.addEventListener("mousemove",k),document.addEventListener("mouseleave",L),document.addEventListener("mouseup",L),document.addEventListener("contextmenu",L),()=>{b.removeEventListener("mousedown",v),document.removeEventListener("mousemove",k),document.removeEventListener("mouseleave",L),document.removeEventListener("mouseup",L),document.removeEventListener("contextmenu",L)}},[r,_,e]),R(()=>{if(e)return;const b=i.current;if(!b)return;const v=k=>{const{ctrlKey:L,clientX:N,clientY:D,deltaX:V,deltaY:E}=k;if(L){if(!r&&E>=0)return;const{left:T,top:P}=b.getBoundingClientRect(),A=N-T,C=D-P;w(-.01*E,{x:A,y:C})}else{if(!r)return;_({x:-2*V,y:-2*E})}k.preventDefault()};return b.addEventListener("wheel",v),()=>{b.removeEventListener("wheel",v)}},[r,_,w,e]),R(()=>{const b=i.current,v=l.current;if(!b||!v)return;const k=f.current,L=V=>{for(let E=0;E<V.changedTouches.length;E++){const T=V.changedTouches[E];k.set(T.identifier,T)}},N=V=>{for(let E=0;E<V.changedTouches.length;E++){const T=V.changedTouches[E];k.delete(T.identifier)}},D=V=>{const E=V.touches.length;if(E===1){if(!r)return;V.preventDefault();const T=V.touches[0],P=k.get(T.identifier);if(!P)throw new Error("touchStart is null");const A=T.clientX-P.clientX,C=T.clientY-P.clientY;_({x:A,y:C}),k.set(T.identifier,T)}else if(E===2){V.preventDefault();const[T,P]=V.touches,A=k.get(T.identifier),C=k.get(P.identifier);if(!A||!C)throw new Error("intialTouch1 or intialTouch2 is null");const z=rr(A,C),I=rr(T,P)/z,{left:M,top:W}=b.getBoundingClientRect();w(I-1,{x:(T.clientX+P.clientX)/2-M,y:(T.clientY+P.clientY)/2-W}),k.set(T.identifier,T),k.set(P.identifier,P)}};return v.addEventListener("touchstart",L),v.addEventListener("touchmove",D),v.addEventListener("touchend",N),v.addEventListener("touchcancel",N),()=>{v.removeEventListener("touchstart",L),v.removeEventListener("touchmove",D),v.removeEventListener("touchend",N),v.removeEventListener("touchcancel",N)}},[r,_,w]),s("div",{ref:i,className:`relative size-full overflow-hidden ${r?"z-zoomed-image cursor-move":""}`,children:s("div",{ref:l,className:"origin-top-left",children:s(Le,{...t,imgInPlayerWidthRatio:e?1:n})})})},bo=({hotspot:e})=>{const{title:t,icon:n,description:r,position:o,detail:i}=e,{getIconConfig:l}=De(),c=n?l(n):void 0,{extendMode:d,setShownDetails:u}=re(),f=!!i,a=i?.type==="image",x=!!t||!!r,p=a?s(Jn,{className:"size-4"}):s("div",{className:"size-1"}),m=()=>{a&&u({src:i.src,title:t,text:r})};return s("div",{className:H("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",f?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:m,children:[s("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",children:[s("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),s("div",{className:"p-1",children:c?.Icon?s("div",{className:"size-4",children:c.Icon}):p})]}),!a&&x&&s("div",{className:H("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",d&&"large:max-w-56",o.y<.55?"-top-1":"-bottom-1",o.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"),children:s("div",{className:"space-y-1 text-pretty",children:[t&&s("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:t}),r&&s("div",{className:"text-xs text-foreground/65 small:text-sm",children:r})]})})]})},xo=({hotspot:e})=>{const{detail:t}=e,n=s(bo,{hotspot:e});switch(t?.type){case"link":case"pdf":return s("a",{href:t.src,target:"_blank",rel:"noreferrer",children:n});default:return n}},or=({hotspots:e,itemIndex:t,className:n,onLoad:r,...o})=>{const{isShowingDetails:i,showHotspots:l,setItemInteraction:c}=re();return s("div",{className:H("relative size-full overflow-hidden",n),children:s("div",{className:H("size-full duration-details",i?"scale-105":"scale-100"),children:[s(yo,{className:"size-full object-cover",onLoad:d=>{t!==void 0&&c(t,"ready"),r?.(d)},...o}),l&&e?.map((d,u)=>s(xo,{hotspot:d},u))]})})},Re=10,Co=15,Eo=({images:e,onlyPreload:t})=>{const{reverse360:n}=ie(),{isShowingDetails:r,isZooming:o}=re(),i=o||r,l=X(null),c=X(null),[d,u]=U(0),f=e.length,a=S(()=>{u(p=>(p-1+f)%f)},[f]),x=S(()=>{u(p=>(p+1)%f)},[f]);return R(()=>{if(i)return;const p=l.current,m=c.current;if(!p||!m)return;let _=null,h=[],g=null;const w=y=>{h.push(y),h.length>20&&h.shift()},b=()=>{const y=Date.now(),I=(()=>{const B=Date.now(),j=h.filter(ae=>B-ae.timestamp<50);if(j.length<2)return 0;const se=j[0],ne=j[j.length-1];return(ne.value-se.value)/(.001*Math.max(ne.timestamp-se.timestamp,1))})();let M=0,W=y;const F=()=>{g=requestAnimationFrame(()=>{const j=Date.now(),se=(j-y)/1e3,ne=Math.pow(.05,se),ae=I*ne,ye=(j-W)/1e3;if(M+=ae*ye,Math.abs(ae)<5*Re&&Math.abs(M)<Re){g=null;return}Math.abs(M)>=Re&&(M>0!==n?x():a(),M=0),W=j,F()})};F()},v=()=>{g&&(cancelAnimationFrame(g),g=null)},k=y=>{if(y.button!==0)return;y.preventDefault(),y.stopPropagation(),v();const I=y.clientX;_=I,h=[{timestamp:Date.now(),value:I}]},L=y=>{if(_===null)return;y.stopPropagation();const{clientX:I}=y;w({timestamp:Date.now(),value:I});const M=I-_;Math.abs(M)<Re||(M>0!==n?x():a(),_=I)},N=()=>{_!==null&&(_=null,b())};p.addEventListener("mousedown",k),document.addEventListener("mousemove",L),document.addEventListener("mouseleave",N),document.addEventListener("mouseup",N),document.addEventListener("contextmenu",N);const D=()=>m.getBoundingClientRect().width,V=()=>m.scrollWidth/2-D()/2,E=()=>{const y=V();m.scrollLeft=y};E();const T=()=>{const y=m.scrollLeft-V();Math.abs(y)<Co||(y<0!==n?x():a(),E())};m.addEventListener("scroll",T);let P=null;const A=y=>{if(P!==null||y.changedTouches.length!==1)return;v();const{identifier:I,clientX:M}=y.changedTouches[0];P=I,_=M,h=[{timestamp:Date.now(),value:M}]},C=y=>{if(!_)return;const I=Array.from(y.changedTouches).find(({identifier:F})=>F===P);if(!I)return;y.preventDefault();const{clientX:M}=I;w({timestamp:Date.now(),value:M});const W=M-_;Math.abs(W)<Re||(W>0!==n?x():a(),_=M)},z=y=>{!_||!Array.from(y.changedTouches).some(({identifier:M})=>M===P)||(P=null,_=null,b())};return m.addEventListener("touchstart",A),m.addEventListener("touchmove",C),m.addEventListener("touchend",z),m.addEventListener("touchcancel",z),()=>{p.removeEventListener("mousedown",k),document.removeEventListener("mousemove",L),document.removeEventListener("mouseleave",N),document.removeEventListener("mouseup",N),document.removeEventListener("contextmenu",N),m.removeEventListener("scroll",T),m.removeEventListener("touchstart",A),m.removeEventListener("touchmove",C),m.removeEventListener("touchend",z),m.removeEventListener("touchcancel",z)}},[x,a,i,n]),s("div",{ref:l,className:"cursor-ew-resize",children:s("div",{ref:c,className:"overflow-x-scroll no-scrollbar",children:[s("div",{className:"sticky left-0 top-0",children:[e.map(p=>s(Le,{src:p.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},p.src)),s(or,{...e[d],onlyPreload:t})]}),s("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},ko=({images:e,onPlaceholderImageLoaded:t,onSpinImagesLoaded:n,onError:r})=>{const o=te(()=>e.map(({src:f})=>f),[e]),[i,l]=U(null),c=i?[...i.values()].filter(f=>f).length/e.length*100:null,d=S(()=>{c===null&&l(new Map(o.map(f=>[f,!1])))},[o,c]),u=S(f=>{l(a=>{const x=new Map(a);return x.set(f,!0),x})},[]);return R(()=>{c===100&&n()},[c,n]),s("div",{className:"relative size-full",children:[c!==null&&c!==100&&s("div",{className:"hidden",children:o.map(f=>s(Le,{src:f,onLoad:()=>u(f),onError:r},f))}),s(Le,{className:"size-full",src:o[0],onLoad:t}),s("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[s(Qn,{className:"size-20 text-primary-light"}),s(oe,{color:"neutral",shape:"icon",onClick:d,children:s(wt,{className:"size-full"})}),s("div",{className:H("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",c===null&&"invisible"),children:s("div",{className:"h-full bg-primary transition-[width]",style:{width:`${c??0}%`}})})]})]})},Lo=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=re(),[r,o]=U();return R(()=>{r===null||r==="error"||n(t,r==="spin"?"running":"ready")},[t,n,r]),r==="error"?s(qn,{className:"text-background",text:"Spin could not be loaded"}):r!=="spin"?s(ko,{...e,onPlaceholderImageLoaded:()=>o("placeholder"),onSpinImagesLoaded:()=>o("spin"),onError:()=>o("error")}):s(Eo,{...e})},No=e=>s(oe,{color:"neutral",shape:"icon",...e,children:s(wt,{className:"size-full"})}),To=({className:e})=>s(K,{className:e,customizationKey:"UI_PAUSE",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),Io=({className:e})=>s(K,{className:e,customizationKey:"UI_VOLUME",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),So=({className:e})=>s(K,{className:e,customizationKey:"UI_VOLUME_OFF",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),sr=({progress:e})=>s("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:s("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-e)}%)`}})}),Mo=3e3,zo=({src:e,poster:t,itemIndex:n})=>{const{carrouselItemIndex:r,setItemInteraction:o}=re(),i=X(null),l=X(null),c=S(()=>{if(!l.current)throw new Error("videoRef.current is null");return l.current},[]);R(()=>{o(n,"ready")},[n,o]);const d=S(()=>{c().play()},[c]),u=S(()=>{c().pause()},[c]);R(()=>{r===n||u()},[r,n,u]);const[f,a]=U(!1),[x,p]=U(!0),m=()=>{a(!0),o(n,"running")},_=()=>{a(!1),o(n,"ready")},h=()=>{p(!1)},g=()=>{p(!0)},[w,b]=U(null),v=y=>{const I=c(),M=y.currentTarget.getBoundingClientRect(),F=(y.clientX-M.left)/M.width,B=Math.min(1,Math.max(0,F));I.volume=B,I.muted=!1},k=y=>{const I=c();I.muted=y};R(()=>{const y=l.current;if(!y)return;const I=()=>{b({volume:y.volume,isMuted:y.muted})};return I(),y.addEventListener("volumechange",I),()=>{y.removeEventListener("volumechange",I)}},[]);const[L,N]=U(null),D=L?L.currentTime/L.duration:0;R(()=>{const y=l.current;if(!y)return;const I=()=>{const M=y.currentTime,W=y.duration;isNaN(M)||isNaN(W)||N({currentTime:M,duration:W})};return I(),y.addEventListener("timeupdate",I),()=>{y.removeEventListener("timeupdate",I)}},[]);const V=y=>{const I=c(),M=y.currentTarget.getBoundingClientRect(),F=(y.clientX-M.left)/M.width,B=I.duration*F;I.currentTime=B},E=y=>{const I=Math.floor(y%3600/60),M=Math.floor(y%60);return`${I}:${M.toString().padStart(2,"0")}`},[T,P]=U(!1),A=X(void 0),C=S(()=>clearTimeout(A.current),[]),z=S(()=>{C(),A.current=setTimeout(()=>{P(!1)},Mo)},[C]);return R(()=>{const y=i.current,I=l.current;if(!y||!I)return;const M=()=>{z(),P(!0)},W=()=>{C(),P(!1)};let F=!1;const B=()=>{F=!0},j=()=>{F&&(F=!1,u())},se=()=>{F=!1,M()},ne=ae=>{ae.preventDefault(),ae.touches.length===1&&(z(),P(ce=>!ce))};return y.addEventListener("mousedown",B),y.addEventListener("mouseup",j),y.addEventListener("mouseenter",M),y.addEventListener("mousemove",se),y.addEventListener("mouseleave",W),I.addEventListener("touchstart",ne),()=>{y.removeEventListener("mousedown",B),y.removeEventListener("mouseup",j),y.removeEventListener("mouseenter",M),y.removeEventListener("mousemove",M),y.removeEventListener("mouseleave",W),I.removeEventListener("touchstart",ne)}},[C,u,z]),s("div",{ref:i,className:"relative size-full",children:[s("video",{ref:l,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:m,onPause:_,onEnded:_,onCanPlay:h,onWaiting:g}),f?s(q,{children:[s("div",{className:H("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",T?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:y=>y.stopPropagation(),children:[s("div",{className:"flex items-center justify-between text-background",children:[s("div",{className:"flex items-center gap-x-4",children:[s(oe,{shape:"icon",variant:"ghost",color:"neutral",onClick:u,children:s(To,{className:"size-full"})}),L&&s("span",{className:"text-sm",children:[E(L.currentTime)," /"," ",E(L.duration)]})]}),w&&s("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[s("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${w.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:v,children:s(sr,{progress:w.volume})}),s("div",{className:"size-5 cursor-pointer",onClick:()=>k(!w.isMuted),children:w.isMuted?s(So,{className:"size-full"}):s(Io,{className:"size-full"})})]})]}),s("div",{className:"cursor-pointer py-1",onClick:V,children:s(sr,{progress:D})})]}),x&&s("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:s(Kn,{size:"lg",color:"background"})})]}):s("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:s(No,{onClick:d})})]})},Po=({index:e,item:t,isShown:n})=>{const{type:r}=t;let o;switch(r){case"image":o=s(or,{itemIndex:e,onlyPreload:!n,...t});break;case"video":o=s(zo,{itemIndex:e,...t});break;case"360":o=s(Lo,{itemIndex:e,onlyPreload:!n,...t});break;case"custom":o=s(wo,{itemIndex:e,...t})}return o=s("div",{className:"-ml-px h-full w-[calc(100%+2px)]",children:o}),o},Ao=e=>{R(()=>{const t=n=>{n.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function Vo(e){return e.target===e.currentTarget}const Ho=({currentIndex:e,maxIndex:t})=>s("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[s("span",{children:e+1}),s("span",{children:"/"}),s("span",{children:t+1})]}),ir=({className:e})=>s(K,{className:e,customizationKey:"UI_ARROW_RIGHT",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),Oo=({className:e})=>s(K,{className:e,customizationKey:"UI_EXTEND",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),Do=({className:e})=>s(K,{className:e,customizationKey:"UI_GALLERY",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),Ro=({className:e})=>s(K,{className:e,customizationKey:"UI_HOTSPOTS",children:s("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_418_982)",children:s("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),s("defs",{children:s("clipPath",{id:"clip0_418_982",children:s("rect",{width:"12",height:"12",fill:"white"})})})]})}),$o=({className:e})=>s(K,{className:e,customizationKey:"UI_MINUS",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Wo=({className:e})=>s(K,{className:e,customizationKey:"UI_PLUS",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Fo=({className:e})=>s(K,{className:e,customizationKey:"UI_REDUCE",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),Uo=({enabled:e,onToggle:t,label:n,className:r,children:o})=>s("label",{className:H("flex cursor-pointer items-center justify-center gap-x-2",r),children:[s("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),n&&s("div",{className:"text-xs text-background",children:n}),s("div",{className:H("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:s("div",{className:H("flex size-4 items-center justify-center rounded-full p-0.5 transition",e?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:o})})]}),Xo=({className:e})=>s(K,{className:e,customizationKey:"UI_BURGER",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),Zo=({sharedClassName:e})=>{const{categories:t}=he(),{displayedCategoryId:n,changeCategory:r}=re(),[o,i]=U(!1),l=()=>{i(!o)},c=()=>{i(!1)};return s(q,{children:[o&&s("div",{className:H(e,"inset-0 small:hidden"),onClick:c}),s("div",{className:H(e,ke("top-left"),"flex gap-x-2 small:hidden"),children:[s(oe,{shape:"icon",color:o?"primary":"neutral",onClick:l,children:s(Xo,{})}),o&&s("div",{className:"rounded-ui-md bg-background transition-radius",children:s("ul",{className:"space-y-0.5 p-1",children:t.map(({id:d,title:u})=>s("li",{className:H("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",d===n&&"bg-primary/50"),onClick:()=>{r(d),i(!1)},children:u},d))})})]}),s("div",{className:H(e,Gn("top"),"w-full overflow-x-auto max-small:hidden"),children:s("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:t.map(({id:d,title:u})=>s(oe,{variant:d===n?"fill":"ghost",onClick:()=>r(d),children:u},d))})})]})},Yo=()=>{const{hideCategories:e,infiniteCarrousel:t,permanentGallery:n}=ie(),{aspectRatioStyle:r}=he(),{items:{length:o},slidable:i,carrouselItemIndex:l,masterItemIndex:c,prevItem:d,nextItem:u,showGalleryControls:f,enableHotspotsControl:a,showHotspots:x,toggleHotspots:p,showGallery:m,toggleGallery:_,extendMode:h,toggleExtendMode:g,shownDetails:w,isShowingDetails:b,resetShownDetails:v,showZoomControls:k,isZooming:L,canZoomIn:N,zoomIn:D,canZoomOut:V,zoomOut:E,resetView:T}=re(),P=S(C=>{Vo(C)&&v()},[v]);Ao(v);const A="absolute z-overlay";return s(q,{children:[!e&&s(Zo,{sharedClassName:H(A,"transition-opacity",L?"!pointer-events-none opacity-0":"opacity-100")}),i&&!L&&s("div",{className:H(A,ke("top-right")),children:s(Ho,{currentIndex:l,maxIndex:o-1})}),i&&s(q,{children:[s(oe,{shape:"icon",color:"neutral",className:H(A,ke("middle-left"),L?"!pointer-events-none opacity-0":"opacity-100"),onClick:d,disabled:!t&&c<=0,children:s(K,{customizationKey:"CONTROLS_PREV",children:s(ir,{className:"size-full -scale-x-100"})})}),s(oe,{shape:"icon",color:"neutral",className:H(A,ke("middle-right"),L?"!pointer-events-none opacity-0":"opacity-100"),onClick:u,disabled:!t&&c>=o-1,children:s(K,{customizationKey:"CONTROLS_NEXT",children:s(ir,{className:"size-full"})})})]}),s("div",{className:H(A,ke("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!n&&i&&s(q,{children:[s(oe,{className:f&&!L?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:m?"primary":"neutral",shape:"icon",onClick:_,children:s(Do,{className:"size-full"})}),m&&s(tr,{className:H("transition-opacity",f&&!L?"opacity-100":"!pointer-events-none opacity-0","[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),s("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[a&&s(Uo,{className:H("transition-opacity",L?"!pointer-events-none opacity-0":"opacity-100"),enabled:x,onToggle:p,children:s(Ro,{className:"size-full"})}),k&&s("div",{className:"max-small:hidden",children:[s(oe,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!N,onClick:D,children:s(Wo,{className:"size-full"})}),s(er,{color:"background"}),s(oe,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!V,onClick:E,children:s($o,{className:"size-full"})})]}),s(oe,{variant:"fill",color:h?"primary":"neutral",shape:"icon",onClick:g,children:h?s(Fo,{className:"size-full"}):s(Oo,{className:"size-full"})})]})]}),s("div",{className:H(A,"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",b?"opacity-100":"pointer-events-none opacity-0"),onClick:P,children:s("div",{className:H("h-full w-3/5 bg-background transition-transform duration-details",b?"translate-x-0":"translate-x-full"),children:!!w&&s(q,{children:[s(Le,{className:"w-full bg-foreground/65",style:r,src:w.src,imgInPlayerWidthRatio:.6}),s("div",{className:H("space-y-1 px-2 py-1 small:p-3",h&&"large:p-4"),children:[w.title&&s("span",{className:H("text-sm font-semibold small:text-base small:font-bold",h&&"large:text-lg"),children:w.title}),w.text&&s("p",{className:H("text-xs text-foreground/65 small:text-sm",h&&"large:text-base"),children:w.text})]})]})})}),(L||b)&&s(Bn,{className:H(A,ke("top-right")),onClick:T})]})},jo=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:n,isFullScreen:r}=ie(),{aspectRatioStyle:o}=he(),{items:i,slidable:l,carrouselItemIndex:c,setCarrouselItemIndex:d,itemIndexCommand:u,setItemIndexCommand:f,specialCommand:a,isRunningSpecialCommand:x,finishSpecialCommand:p,extendMode:m,extendTransition:_}=re(),h=X(null),g=S(C=>{if(!h.current)throw new Error(`[${C??"sliderOrThrow"}] slider.current is null`);return h.current},[]),w=X(!1),b=X(null),v=X(null),k=X(null),L=S(()=>{k.current&&cancelAnimationFrame(k.current)},[]),N=S(()=>{const C=g("computeClosestSnapIndex"),z=Array.from(C.children),y=C.scrollLeft;return z.reduce((M,W,F)=>{const B=W.offsetLeft;return Math.abs(B-y)<Math.abs(z[M].offsetLeft-y)?F:M},0)},[g]),D=S(C=>{const z=g("setStyleCursor");z.style.cursor=C},[g]),V=S(C=>{const z=g("setStyleSnapState");C==="mandatory"?z.style.scrollSnapType="x mandatory":z.style.scrollSnapType="none"},[g]),E=S((C,z,y)=>{L();const I=g("scrollToIndex"),M=Array.from(I.children),W=I.scrollLeft,F=M[C].offsetLeft,B=ce=>{I.scrollTo({left:ce,behavior:"instant"})},j=()=>{B(F),V("mandatory"),y?.()},se=Math.abs(W-F);if(se<1||z==="instant"){j();return}const ne=ve(se/2.5,300,1e3),ae=new Date().getTime();V("none");const ye=()=>{const ce=()=>{const et=new Date().getTime()-ae;if(et>=ne){j();return}const Et=Math.min(et/ne,1),kt=nr(Et),Ne=Be(W,F,kt);B(Ne),ye()};k.current=requestAnimationFrame(ce)};ye()},[L,g,V]),[T,P]=U(),A=!!T;return R(()=>{const C=()=>{clearTimeout(T);const z=setTimeout(()=>{P(void 0)},Wn);P(z)};return addEventListener("resize",C),document.addEventListener("fullscreenchange",C),()=>{removeEventListener("resize",C),document.removeEventListener("fullscreenchange",C)}},[T]),R(()=>{if(a)return;const C=N();Number.isNaN(C)||C!==c&&E(c,"instant")},[c,N,E,a,i,T,r,m,_]),R(()=>{if(!l||x){D("auto");return}const C=h.current;if(!C)return;D("grab"),V("mandatory");const z=M=>{M.button===0&&(M.preventDefault(),M.stopPropagation(),L(),w.current=!0,b.current=M.pageX-C.offsetLeft,v.current=C.scrollLeft,D("grabbing"))},y=M=>{if(!w.current)return;if(b.current===null)throw new Error("[onMouseMove] startX is null");V("none");const F=M.pageX-C.offsetLeft-b.current;requestAnimationFrame(()=>{if(v.current===null)throw new Error("[onMouseMove] scrollLeft is null");C.scrollLeft=v.current-F})},I=()=>{if(!w.current)return;w.current=!1,D("grab");const M=N();E(M,"smooth")};return C.addEventListener("mousedown",z),document.addEventListener("mousemove",y),document.addEventListener("mouseleave",I),document.addEventListener("mouseup",I),document.addEventListener("contextmenu",I),()=>{C.removeEventListener("mousedown",z),document.removeEventListener("mousemove",y),document.removeEventListener("mouseleave",I),document.removeEventListener("mouseup",I),document.removeEventListener("contextmenu",I)}},[L,N,x,E,D,V,l]),R(()=>{if(_||A)return;const C=h.current;if(!C)return;const z=()=>{const y=N();Number.isNaN(y)||(d(y),y===u&&f(null))};return C.addEventListener("scroll",z),()=>{C.removeEventListener("scroll",z)}},[N,_,A,u,d,f]),R(()=>{if(u===null)return;const C=()=>{setTimeout(()=>{f(null),p()},75)};switch(a){case"first_to_last":E(i.length-1,"instant",C);break;case"last_to_first":E(0,"instant",C);break;case"instant":E(u,"instant",C);break;default:E(u,"smooth");break}},[a,p,u,i.length,E,f]),s("div",{className:H("relative overflow-hidden rounded-carrousel transition-radius",e),style:o,children:[s("div",{ref:h,className:`flex size-full ${l?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:i.map((C,z)=>{const y=z===c,I=z===0,M=z===i.length-1,W=(()=>{if(a==="first_to_last"&&I)return{transform:`translateX(${100*i.length}%)`};if(a==="last_to_first"&&M)return{transform:`translateX(-${100*i.length}%)`}})();let F=Math.abs(z-c)<=n;F||=z===u,t&&(F||=c<n&&i.length-z<=n-c,F||=c>=i.length-n&&z<=n-(i.length-c));const B=(()=>{let j;switch(C.type){case"360":j=C.images[0].src;break;case"image":j=C.src;break;case"video":j=C.poster??"video";break;case"custom":j="custom";break}return`${z}_${j}`})();return s("div",{className:H("h-full bg-foreground/35",c===z&&"z-1"),style:{...o,...W},children:F&&s(Po,{index:z,item:C,isShown:y})},B)})}),s(Yo,{})]})},Go=()=>{const{permanentGallery:e}=ie(),{aspectRatioStyle:t}=he(),{prevItem:n,nextItem:r,isShowingDetails:o,resetShownDetails:i,extendMode:l,disableExtendMode:c,isZooming:d,resetZoom:u,fakeFullScreen:f}=re(),a=X(null),x=X(null),p=X(null);return R(()=>{if(!l)return;const m=a.current,_=x.current,h=p.current;if(!m||!_||!h)return;let g=!1;const w=k=>[m,_,h].includes(k.target),b=k=>{g=w(k)},v=k=>{g&&(w(k)&&c(),g=!1)};return m.addEventListener("mousedown",b),m.addEventListener("mouseup",v),()=>{m.removeEventListener("mousedown",b),m.removeEventListener("mouseup",v)}},[c,l]),R(()=>{const m=_=>{_.key==="Escape"&&(d?u():o?i():c())};return addEventListener("keydown",m),()=>{removeEventListener("keydown",m)}},[c,o,d,r,n,i,u]),s("div",{ref:a,className:H(f?"fixed inset-0 z-overlay":"relative",l&&"flex size-full items-center justify-center bg-foreground/75"),children:[s("div",{ref:x,className:l?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[s("div",{ref:p,className:H(l&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t,children:s(jo,{className:H(l&&"h-full min-w-0")})}),e&&s(tr,{className:H(l&&"my-2 shrink-0 small:my-4")})]}),l&&s(Bn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:c})]})},Bo=()=>{const{emitEvent:e,compositionUrl:t}=ie(),{data:n,status:r,isSuccess:o,error:i}=Jr(t);return R(()=>{i?e(Vt,i):r==="fetching"?e(Pt,t):o&&e(At,n)},[n,t,e,i,o,r]),i?s(qn,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):o?s(eo,{composition:n,children:s(no,{children:s(Go,{})})}):s("div",{className:"flex aspect-square size-full flex-col items-center justify-center gap-y-4",children:[s("div",{className:"animate-pulse text-xl",children:"Loading Player"}),s(Kn,{color:"foreground"})]})},qo=({compositionUrl:e,hideCategories:t=!1,infiniteCarrousel:n=!1,permanentGallery:r=!1,mediaLoadStrategy:o=cr,minMediaWidth:i=0,maxMediaWidth:l=1/0,preloadRange:c=1,preventFullScreen:d=!1,eventPrefix:u=Ut,reverse360:f=!1,children:a})=>{const x=X(null),[p,m]=U(.5),[_,h]=U(!1),g=S((v,k)=>{const L=u+v,N=new CustomEvent(L,{detail:k});document.dispatchEvent(N)},[u]);R(()=>{if(_){m(1);return}if(!x.current)return;const v=x.current,k=()=>{const L=window.innerWidth,N=v.clientWidth;m(N/L)};return k(),addEventListener("resize",k),()=>{removeEventListener("resize",k)}},[_]),R(()=>{if(d)return;const v=x.current;if(!v)throw new Error("Wrapper not found");const k=()=>{const{fullscreenElement:L}=document;h(L===v||L?.localName===ue)};return document.addEventListener("fullscreenchange",k),()=>{document.removeEventListener("fullscreenchange",k)}},[d]);const w=S(async()=>{const v=x.current;if(!v)throw new Error("Wrapper not found");try{return await v.requestFullscreen(),!0}catch{return!1}},[]),b=S(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return s(Qr,{compositionUrl:e,hideCategories:t,infiniteCarrousel:n,permanentGallery:r,mediaLoadStrategy:o,minMediaWidth:i,maxMediaWidth:l,preloadRange:c,preventFullScreen:d,reverse360:f,emitEvent:g,playerInViewportWidthRatio:p,isFullScreen:_,requestFullscreen:w,exitFullscreen:b,children:s(to,{children:[s("div",{ref:x,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--foreground":"var(--cc-webplayer-foreground, 240 10% 3.9%)","--primary":"var(--cc-webplayer-primary, 216 100% 52%)","--primary-foreground":"var(--cc-webplayer-primary-foreground, var(--background))","--primary-light":"var(--cc-webplayer-primary-light, var(--primary))","--neutral":"var(--cc-webplayer-neutral, 0 0% 39%)","--neutral-foreground":"var(--cc-webplayer-neutral-foreground, var(--foreground))","--radius-ui":"var(--cc-webplayer-radius-ui, 1rem)","--radius-carrousel":"var(--cc-webplayer-radius-carrousel, 0)","--radius-gallery":"var(--cc-webplayer-radius-gallery, 0)"},children:s(Bo,{})}),a]})})},Ko=({children:e,index:t,thumbnailSrc:n})=>{const{registerCustomMedia:r,unregisterCustomMedia:o}=De();return R(()=>{if(!e)return;const i=r({Media:e,index:t,thumbnailSrc:n});return()=>{o(i)}},[e,o,t,r,n]),null},Jo=e=>vt()?s(Ko,{...e}):s("slot",{}),Qo=({name:e,children:t})=>{const{registerIconConfig:n,unregisterIconConfig:r}=De();return R(()=>{if(t)return n(e,{Icon:t}),()=>{r(e)}},[t,e,n,r]),null},es=e=>vt()?s(Qo,{...e}):s("slot",{}),ts='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-20{height:5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:h-28{height:7rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:.75rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-4{padding:1rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';function ns(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>`${n}-${r.toLowerCase()}`)}function bt(e){return Object.entries(e).reduce((t,[n,r])=>{if(r!==void 0){const o=ns(n);t[o]=r.toString()}return t},{})}const rs=e=>s(q,{children:[s("style",{children:ts}),s(qo,{...e})]}),os=e=>bt(e),ss=e=>bt(e),is=e=>bt(e);function as(e){return{render:function(t){Nn(t,e)},unmount:function(){zn(e)}}}var ls=Object.defineProperty,cs=(e,t,n)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qe=(e,t,n)=>(cs(e,typeof t!="symbol"?t+"":t,n),n);const us={stringify:e=>e,parse:e=>e},ds={stringify:e=>`${e}`,parse:e=>parseFloat(e)},ms={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},fs={stringify:e=>e.name,parse:(e,t,n)=>{const r=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof r=="function"?r.bind(n):void 0}},ps={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},xt={string:us,number:ds,boolean:ms,function:fs,json:ps};function hs(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>`${n}-${r.toLowerCase()}`)}const Ke=Symbol.for("r2wc.render"),Je=Symbol.for("r2wc.connected"),we=Symbol.for("r2wc.context"),_e=Symbol.for("r2wc.props");function _s(e,t,n){var r,o,i;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const l=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),c={},d={},u={};for(const a of l){c[a]=Array.isArray(t.props)?"string":t.props[a];const x=hs(a);d[a]=x,u[x]=a}class f extends HTMLElement{constructor(){super(),qe(this,r,!0),qe(this,o),qe(this,i,{}),qe(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[_e].container=this.container;for(const x of l){const p=d[x],m=this.getAttribute(p),_=c[x],h=_?xt[_]:null;h!=null&&h.parse&&m&&(this[_e][x]=h.parse(m,p,this))}}static get observedAttributes(){return Object.keys(u)}connectedCallback(){this[Je]=!0,this[Ke]()}disconnectedCallback(){this[Je]=!1,this[we]&&n.unmount(this[we]),delete this[we]}attributeChangedCallback(x,p,m){const _=u[x],h=c[_],g=h?xt[h]:null;_ in c&&g!=null&&g.parse&&m&&(this[_e][_]=g.parse(m,x,this),this[Ke]())}[(r=Je,o=we,i=_e,Ke)](){this[Je]&&(this[we]?n.update(this[we],this[_e]):this[we]=n.mount(this.container,e,this[_e]))}}for(const a of l){const x=d[a],p=c[a];Object.defineProperty(f.prototype,a,{enumerable:!0,configurable:!0,get(){return this[_e][a]},set(m){this[_e][a]=m;const _=p?xt[p]:null;if(_!=null&&_.stringify){const h=_.stringify(m,x,this);this.getAttribute(x)!==h&&this.setAttribute(x,h)}else this[Ke]()}})}return f}function gs(e,t,n){const r=as(e),o=Dn.createElement(t,n);return r.render(o),{root:r,ReactComponent:t}}function vs({root:e,ReactComponent:t},n){const r=Dn.createElement(t,n);e.render(r)}function ws({root:e}){setTimeout(()=>{e.unmount()},0)}function Ct(e,t={}){return _s(e,t,{mount:gs,update:vs,unmount:ws})}const ys=Ct(rs,{shadow:"open",props:{compositionUrl:"string",hideCategories:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preventFullScreen:"boolean",eventPrefix:"string",reverse360:"boolean"}}),bs=Ct(Jo,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),xs=Ct(es,{shadow:"closed",props:{name:"string"}});function Cs(){customElements.define(ue,ys),customElements.define($e,bs),customElements.define(We,xs)}function Es(){Xt()||Cs()}Z.DEFAULT_EVENT_PREFIX=Ut,Z.EVENT_COMPOSITION_LOADED=At,Z.EVENT_COMPOSITION_LOADING=Pt,Z.EVENT_COMPOSITION_LOAD_ERROR=Vt,Z.EVENT_EXTEND_MODE_OFF=Dt,Z.EVENT_EXTEND_MODE_ON=Ot,Z.EVENT_GALLERY_CLOSE=Ft,Z.EVENT_GALLERY_OPEN=Wt,Z.EVENT_HOTSPOTS_OFF=$t,Z.EVENT_HOTSPOTS_ON=Rt,Z.EVENT_ITEM_CHANGE=Ht,Z.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=$e,Z.WEB_PLAYER_ICON_WC_TAG=We,Z.WEB_PLAYER_WC_TAG=ue,Z.checkCustomElementsDefinition=Xt,Z.ensureCustomElementsDefinition=Es,Z.generateCompositionUrl=ur,Z.webPlayerCustomMediaPropsToAttributes=ss,Z.webPlayerIconPropsToAttributes=is,Z.webPlayerPropsToAttributes=os,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
1
+ (function(G,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(G=typeof globalThis<"u"?globalThis:G||self,he(G.CarCutterWebplayerWC={}))})(this,function(G){"use strict";const he="cc-webplayer",Xe="cc-webplayer-custom-media",Ze="cc-webplayer-icon",zt="composition-loading",At="composition-loaded",Pt="composition-load-error",Dt="item-change",Ot="extend-mode-on",Vt="extend-mode-off",Ht="hotspots-on",Rt="hotspots-off",$t="gallery-open",Wt="gallery-close",lr="quality",cr="*",ur="full_screen",Ft="cc-webplayer:";function dr(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function pr(e,t){const n=e.split("/"),r=n.pop();return[n.join("/"),t,r].join("/")}function Ut(){return!!customElements.get(he)&&!!customElements.get(Xe)&&!!customElements.get(Ze)}var De,H,Xt,Ee,Zt,Yt,rt,ot,st,it,jt,Oe={},Gt=[],fr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ye=Array.isArray;function _e(e,t){for(var n in t)e[n]=t[n];return e}function Bt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ge(e,t,n){var r,o,i,l={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?De.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return Ve(e,l,r,o,null)}function Ve(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Xt,__i:-1,__u:0};return o==null&&H.vnode!=null&&H.vnode(i),i}function mr(){return{current:null}}function Q(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Le(e,t){if(t==null)return e.__?Le(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Le(e):null}function qt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return qt(e)}}function at(e){(!e.__d&&(e.__d=!0)&&Ee.push(e)&&!je.__r++||Zt!==H.debounceRendering)&&((Zt=H.debounceRendering)||Yt)(je)}function je(){var e,t,n,r,o,i,l,c;for(Ee.sort(rt);e=Ee.shift();)e.__d&&(t=Ee.length,r=void 0,i=(o=(n=e).__v).__e,l=[],c=[],n.__P&&((r=_e({},o)).__v=o.__v+1,H.vnode&&H.vnode(r),lt(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,l,i??Le(o),!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,tn(l,r,c),r.__e!=i&&qt(r)),Ee.length>t&&Ee.sort(rt));je.__r=0}function Kt(e,t,n,r,o,i,l,c,u,d,w){var a,b,g,f,y,p=r&&r.__k||Gt,h=t.length;for(n.__d=u,hr(n,t,p),u=n.__d,a=0;a<h;a++)(g=n.__k[a])!=null&&(b=g.__i===-1?Oe:p[g.__i]||Oe,g.__i=a,lt(e,g,b,o,i,l,c,u,d,w),f=g.__e,g.ref&&b.ref!=g.ref&&(b.ref&&ct(b.ref,null,g),w.push(g.ref,g.__c||f,g)),y==null&&f!=null&&(y=f),65536&g.__u||b.__k===g.__k?u=Jt(g,u,e):typeof g.type=="function"&&g.__d!==void 0?u=g.__d:f&&(u=f.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=u,n.__e=y}function hr(e,t,n){var r,o,i,l,c,u=t.length,d=n.length,w=d,a=0;for(e.__k=[],r=0;r<u;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(l=r+a,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?Ve(null,o,null,null,null):Ye(o)?Ve(Q,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?Ve(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(c=o.__i=_r(o,n,l,w))!==-1&&(w--,(i=n[c])&&(i.__u|=131072)),i==null||i.__v===null?(c==-1&&a--,typeof o.type!="function"&&(o.__u|=65536)):c!==l&&(c==l-1?a--:c==l+1?a++:(c>l?a--:a++,o.__u|=65536))):o=e.__k[r]=null;if(w)for(r=0;r<d;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Le(i)),nn(i,i))}function Jt(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Jt(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Le(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ve(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ye(e)?e.some(function(n){ve(n,t)}):t.push(e)),t}function _r(e,t,n,r){var o=e.key,i=e.type,l=n-1,c=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;l>=0||c<t.length;){if(l>=0){if((u=t[l])&&!(131072&u.__u)&&o==u.key&&i===u.type)return l;l--}if(c<t.length){if((u=t[c])&&!(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Qt(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||fr.test(t)?n:n+"px"}function Ge(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Qt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Qt(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=ot,e.addEventListener(t,i?it:st,i)):e.removeEventListener(t,i?it:st,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function en(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ot++;else if(t.t<n.u)return;return n(H.event?H.event(t):t)}}}function lt(e,t,n,r,o,i,l,c,u,d){var w,a,b,g,f,y,p,h,_,v,m,E,k,L,M,z,x=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(w=H.__b)&&w(t);e:if(typeof x=="function")try{if(h=t.props,_="prototype"in x&&x.prototype.render,v=(w=x.contextType)&&r[w.__c],m=w?v?v.props.value:w.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:(_?t.__c=a=new x(h,m):(t.__c=a=new fe(h,m),a.constructor=x,a.render=vr),v&&v.sub(a),a.props=h,a.state||(a.state={}),a.context=m,a.__n=r,b=a.__d=!0,a.__h=[],a._sb=[]),_&&a.__s==null&&(a.__s=a.state),_&&x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=_e({},a.__s)),_e(a.__s,x.getDerivedStateFromProps(h,a.__s))),g=a.props,f=a.state,a.__v=t,b)_&&x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),_&&a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(_&&x.getDerivedStateFromProps==null&&h!==g&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(h,m),!a.__e&&(a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(h,a.__s,m)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(a.props=h,a.state=a.__s,a.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),E=0;E<a._sb.length;E++)a.__h.push(a._sb[E]);a._sb=[],a.__h.length&&l.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(h,a.__s,m),_&&a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(g,f,y)})}if(a.context=m,a.props=h,a.__P=e,a.__e=!1,k=H.__r,L=0,_){for(a.state=a.__s,a.__d=!1,k&&k(t),w=a.render(a.props,a.state,a.context),M=0;M<a._sb.length;M++)a.__h.push(a._sb[M]);a._sb=[]}else do a.__d=!1,k&&k(t),w=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++L<25);a.state=a.__s,a.getChildContext!=null&&(r=_e(_e({},r),a.getChildContext())),_&&!b&&a.getSnapshotBeforeUpdate!=null&&(y=a.getSnapshotBeforeUpdate(g,f)),Kt(e,Ye(z=w!=null&&w.type===Q&&w.key==null?w.props.children:w)?z:[z],t,n,r,o,i,l,c,u,d),a.base=t.__e,t.__u&=-161,a.__h.length&&l.push(a),p&&(a.__E=a.__=null)}catch(N){if(t.__v=null,u||i!=null){for(t.__u|=u?160:128;c&&c.nodeType===8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else t.__e=n.__e,t.__k=n.__k;H.__e(N,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=gr(n.__e,t,n,r,o,i,l,u,d);(w=H.diffed)&&w(t)}function tn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ct(n[r],n[++r],n[++r]);H.__c&&H.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){H.__e(i,o.__v)}})}function gr(e,t,n,r,o,i,l,c,u){var d,w,a,b,g,f,y,p=n.props,h=t.props,_=t.type;if(_==="svg"?o="http://www.w3.org/2000/svg":_==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((g=i[d])&&"setAttribute"in g==!!_&&(_?g.localName===_:g.nodeType===3)){e=g,i[d]=null;break}}if(e==null){if(_===null)return document.createTextNode(h);e=document.createElementNS(o,_,h.is&&h),c&&(H.__m&&H.__m(t,i),c=!1),i=null}if(_===null)p===h||c&&e.data===h||(e.data=h);else{if(i=i&&De.call(e.childNodes),p=n.props||Oe,!c&&i!=null)for(p={},d=0;d<e.attributes.length;d++)p[(g=e.attributes[d]).name]=g.value;for(d in p)if(g=p[d],d!="children"){if(d=="dangerouslySetInnerHTML")a=g;else if(!(d in h)){if(d=="value"&&"defaultValue"in h||d=="checked"&&"defaultChecked"in h)continue;Ge(e,d,null,g,o)}}for(d in h)g=h[d],d=="children"?b=g:d=="dangerouslySetInnerHTML"?w=g:d=="value"?f=g:d=="checked"?y=g:c&&typeof g!="function"||p[d]===g||Ge(e,d,g,p[d],o);if(w)c||a&&(w.__html===a.__html||w.__html===e.innerHTML)||(e.innerHTML=w.__html),t.__k=[];else if(a&&(e.innerHTML=""),Kt(e,Ye(b)?b:[b],t,n,r,_==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:n.__k&&Le(n,0),c,u),i!=null)for(d=i.length;d--;)Bt(i[d]);c||(d="value",_==="progress"&&f==null?e.removeAttribute("value"):f!==void 0&&(f!==e[d]||_==="progress"&&!f||_==="option"&&f!==p[d])&&Ge(e,d,f,p[d],o),d="checked",y!==void 0&&y!==e[d]&&Ge(e,d,y,p[d],o))}return e}function ct(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){H.__e(o,n)}}function nn(e,t,n){var r,o;if(H.unmount&&H.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ct(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){H.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&nn(r[o],t,n||typeof e.type!="function");n||Bt(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function vr(e,t,n){return this.constructor(e,n)}function He(e,t,n){var r,o,i,l;H.__&&H.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],l=[],lt(t,e=(!r&&n||t).__k=ge(Q,null,[e]),o||Oe,Oe,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?De.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,l),tn(i,e,l)}function rn(e,t){He(e,t,rn)}function wr(e,t,n){var r,o,i,l,c=_e({},e.props);for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:c[i]=t[i]===void 0&&l!==void 0?l[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?De.call(arguments,2):n),Ve(e.type,c,r||e.key,o||e.ref,null)}function Re(e,t){var n={__c:t="__cC"+jt++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.forEach(function(c){c.__e=!0,at(c)})},this.sub=function(l){o.add(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){o&&o.delete(l),c&&c.call(l)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}De=Gt.slice,H={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(c){e=c}throw e}},Xt=0,fe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_e({},this.state),typeof e=="function"&&(e=e(_e({},n),this.props)),e&&_e(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),at(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),at(this))},fe.prototype.render=Q,Ee=[],Yt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,rt=function(e,t){return e.__v.__b-t.__v.__b},je.__r=0,ot=0,st=en(!1),it=en(!0),jt=0;var yr=0;function s(e,t,n,r,o,i){t||(t={});var l,c,u=t;"ref"in t&&(l=t.ref,delete t.ref);var d={type:e,props:u,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--yr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(c in l)u[c]===void 0&&(u[c]=l[c]);return H.vnode&&H.vnode(d),d}var ye,B,ut,on,Te=0,sn=[],q=H,an=q.__b,ln=q.__r,cn=q.diffed,un=q.__c,dn=q.unmount,pn=q.__;function Ne(e,t){q.__h&&q.__h(B,e,Te||t),Te=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function U(e){return Te=1,dt(gn,e)}function dt(e,t,n){var r=Ne(ye++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):gn(void 0,t),function(c){var u=r.__N?r.__N[0]:r.__[0],d=r.t(u,c);u!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=B,!B.u)){var o=function(c,u,d){if(!r.__c.__H)return!0;var w=r.__c.__H.__.filter(function(b){return!!b.__c});if(w.every(function(b){return!b.__N}))return!i||i.call(this,c,u,d);var a=!1;return w.forEach(function(b){if(b.__N){var g=b.__[0];b.__=b.__N,b.__N=void 0,g!==b.__[0]&&(a=!0)}}),!(!a&&r.__c.props===c)&&(!i||i.call(this,c,u,d))};B.u=!0;var i=B.shouldComponentUpdate,l=B.componentWillUpdate;B.componentWillUpdate=function(c,u,d){if(this.__e){var w=i;i=void 0,o(c,u,d),i=w}l&&l.call(this,c,u,d)},B.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=Ne(ye++,3);!q.__s&&ft(n.__H,t)&&(n.__=e,n.i=t,B.__H.__h.push(n))}function $e(e,t){var n=Ne(ye++,4);!q.__s&&ft(n.__H,t)&&(n.__=e,n.i=t,B.__h.push(n))}function X(e){return Te=5,ie(function(){return{current:e}},[])}function fn(e,t,n){Te=6,$e(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ie(e,t){var n=Ne(ye++,7);return ft(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return Te=8,ie(function(){return e},t)}function Ie(e){var t=B.context[e.__c],n=Ne(ye++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(B)),t.props.value):e.__}function mn(e,t){q.useDebugValue&&q.useDebugValue(t?t(e):e)}function hn(){var e=Ne(ye++,11);if(!e.__){for(var t=B.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function br(){for(var e;e=sn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(pt),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){B=null,an&&an(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),pn&&pn(e,t)},q.__r=function(e){ln&&ln(e),ye=0;var t=(B=e.__c).__H;t&&(ut===B?(t.__h=[],B.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Be),t.__h.forEach(pt),t.__h=[],ye=0)),ut=B},q.diffed=function(e){cn&&cn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(sn.push(t)!==1&&on===q.requestAnimationFrame||((on=q.requestAnimationFrame)||xr)(br)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ut=B=null},q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Be),n.__h=n.__h.filter(function(r){return!r.__||pt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(r,n.__v)}}),un&&un(e,t)},q.unmount=function(e){dn&&dn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Be(r)}catch(o){t=o}}),n.__H=void 0,t&&q.__e(t,n.__v))};var _n=typeof requestAnimationFrame=="function";function xr(e){var t,n=function(){clearTimeout(r),_n&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);_n&&(t=requestAnimationFrame(n))}function Be(e){var t=B,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),B=t}function pt(e){var t=B;e.__c=e.__(),B=t}function ft(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function gn(e,t){return typeof t=="function"?t(e):t}function mt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ht(e,t){this.props=e,this.context=t}function Cr(e,t){function n(o){var i=this.props.ref,l=i==o.ref;return!l&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!l:mt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,ge(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ht.prototype=new fe).isPureReactComponent=!0,ht.prototype.shouldComponentUpdate=function(e,t){return mt(this.props,e)||mt(this.state,t)};var vn=H.__b;H.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vn&&vn(e)};var Er=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kr(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=Er,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var wn=function(e,t){return e==null?null:ve(ve(e).map(t))},Lr={map:wn,forEach:wn,count:function(e){return e?ve(e).length:0},only:function(e){var t=ve(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ve},Tr=H.__e;H.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Tr(e,t,n,r)};var yn=H.unmount;function bn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,o){for(var i in o)r[i]=o[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return bn(r,t,n)})),e}function xn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return xn(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function qe(){this.__u=0,this.t=null,this.__b=null}function Cn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Nr(e){var t,n,r;function o(i){if(t||(t=e()).then(function(l){n=l.default||l},function(l){r=l}),r)throw r;if(!n)throw t;return ge(n,i)}return o.displayName="Lazy",o.__f=!0,o}function We(){this.u=null,this.o=null}H.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),yn&&yn(e)},(qe.prototype=new fe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Cn(r.__v),i=!1,l=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=l;var c=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=xn(u,u.__c.__P,u.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},qe.prototype.componentWillUnmount=function(){this.t=[]},qe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=bn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ge(Q,null,e.fallback);return o&&(o.__u&=-33),[ge(Q,null,t.__a?null:e.children),o]};var En=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Ir(e){return this.getChildContext=function(){return e.context},e.children}function Sr(e){var t=this,n=e.i;t.componentWillUnmount=function(){He(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),He(ge(Ir,{context:t.context},e.__v),t.l)}function Mr(e,t){var n=ge(Sr,{__v:e,i:t});return n.containerInfo=t,n}(We.prototype=new fe).__a=function(e){var t=this,n=Cn(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),En(t,e,r)):o()};n?n(i):i()}},We.prototype.render=function(e){this.u=null,this.o=new Map;var t=ve(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},We.prototype.componentDidUpdate=We.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){En(e,n,t)})};var kn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,zr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ar=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pr=/[A-Z0-9]/g,Dr=typeof document<"u",Or=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ln(e,t,n){return t.__k==null&&(t.textContent=""),He(e,t),typeof n=="function"&&n(),e?e.__c:null}function Vr(e,t,n){return rn(e,t),typeof n=="function"&&n(),e?e.__c:null}fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Tn=H.event;function Hr(){}function Rr(){return this.cancelBubble}function $r(){return this.defaultPrevented}H.event=function(e){return Tn&&(e=Tn(e)),e.persist=Hr,e.isPropagationStopped=Rr,e.isDefaultPrevented=$r,e.nativeEvent=e};var _t,Wr={enumerable:!1,configurable:!0,get:function(){return this.class}},Nn=H.vnode;H.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var l in n){var c=n[l];if(!(l==="value"&&"defaultValue"in n&&c==null||Dr&&l==="children"&&r==="noscript"||l==="class"||l==="className")){var u=l.toLowerCase();l==="defaultValue"&&"value"in n&&n.value==null?l="value":l==="download"&&c===!0?c="":u==="translate"&&c==="no"?c=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?l="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Or(n.type)?u==="onfocus"?l="onfocusin":u==="onblur"?l="onfocusout":Ar.test(l)&&(l=u):u=l="oninput":i&&zr.test(l)?l=l.replace(Pr,"-$&").toLowerCase():c===null&&(c=void 0),u==="oninput"&&o[l=u]&&(l="oninputCapture"),o[l]=c}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ve(n.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ve(n.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Wr)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=kn,Nn&&Nn(e)};var In=H.__r;H.__r=function(e){In&&In(e),_t=e.__c};var Sn=H.diffed;H.diffed=function(e){Sn&&Sn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),_t=null};var Fr={ReactCurrentDispatcher:{current:{readContext:function(e){return _t.__n[e.__c].props.value},useCallback:S,useContext:Ie,useDebugValue:mn,useDeferredValue:An,useEffect:R,useId:hn,useImperativeHandle:fn,useInsertionEffect:Dn,useLayoutEffect:$e,useMemo:ie,useReducer:dt,useRef:X,useState:U,useSyncExternalStore:On,useTransition:Pn}}};function Ur(e){return ge.bind(null,e)}function Ke(e){return!!e&&e.$$typeof===kn}function Xr(e){return Ke(e)&&e.type===Q}function Zr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Yr(e){return Ke(e)?wr.apply(null,arguments):e}function Mn(e){return!!e.__k&&(He(null,e),!0)}function jr(e){return e&&(e.base||e.nodeType===1&&e)||null}var Gr=function(e,t){return e(t)},Br=function(e,t){return e(t)},qr=Q;function zn(e){e()}function An(e){return e}function Pn(){return[!1,zn]}var Dn=$e,Kr=Ke;function On(e,t){var n=t(),r=U({h:{__:n,v:t}}),o=r[0].h,i=r[1];return $e(function(){o.__=n,o.v=t,gt(o)&&i({h:o})},[e,n,t]),R(function(){return gt(o)&&i({h:o}),e(function(){gt(o)&&i({h:o})})},[e]),n}function gt(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Vn={useState:U,useId:hn,useReducer:dt,useEffect:R,useLayoutEffect:$e,useInsertionEffect:Dn,useTransition:Pn,useDeferredValue:An,useSyncExternalStore:On,startTransition:zn,useRef:X,useImperativeHandle:fn,useMemo:ie,useCallback:S,useContext:Ie,useDebugValue:mn,version:"18.3.1",Children:Lr,render:Ln,hydrate:Vr,unmountComponentAtNode:Mn,createPortal:Mr,createElement:ge,createContext:Re,createFactory:Ur,cloneElement:Yr,createRef:mr,Fragment:Q,isValidElement:Ke,isElement:Kr,isFragment:Xr,isMemo:Zr,findDOMNode:jr,Component:fe,PureComponent:ht,memo:Cr,forwardRef:kr,flushSync:Br,unstable_batchedUpdates:Gr,StrictMode:qr,Suspense:qe,SuspenseList:We,lazy:Nr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fr};async function Jr(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const vt=new Map,Qr=e=>{const[t,n]=U({status:"pending",isSuccess:!1});return R(()=>{const r=i=>n({status:"success",data:i,isSuccess:!0}),o=vt.get(e);if(o&&!(o instanceof Promise)){r(o);return}n({status:"fetching",isSuccess:!1}),async function(){try{let i;if(o)i=await o;else{const l=Jr(e);vt.set(e,l),i=await l,vt.set(e,i)}r(i)}catch(i){n({status:"error",isSuccess:!1,error:i})}}()},[e]),t},Hn=Re(null),le=()=>{const e=Ie(Hn);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},eo=({children:e,...t})=>s(Hn.Provider,{value:t,children:e}),Rn=Re(null),be=()=>{const e=Ie(Rn);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},to=({composition:e,children:t})=>{const{aspectRatio:n,categories:r,imageHdWidth:o,imageSubWidths:i}=e,{minMediaWidth:l,maxMediaWidth:c,categoriesFilter:u}=le(),d=ie(()=>{if(u==="*")return r;function g(f){return u.split("|").some(y=>new RegExp(`^${y.replace(/\*/g,".*")}$`).test(f))}return r.filter(({id:f})=>g(f))},[r,u]),w=ie(()=>d.flatMap(({items:g})=>g),[d]),a={aspectRatio:n.replace(":"," / ")},b=ie(()=>{const g=i.concat(o),f=g.sort((p,h)=>p-h),y=f.filter(p=>p>=l&&p<=c);if(y.length===0){const p=(l+c)/2,h=g.reduce((_,v)=>Math.abs(v-p)<Math.abs(_-p)?v:_,o);return console.warn(`None of available media widths (${f.join("|")}) match the given constraints (${l>0?`${l} ≤ `:""}width${c<1/0?` ≤ ${c}`:""}).`,`Using the closest width instead (${h}).`),[h]}return y},[i,o,l,c]);return s(Rn.Provider,{value:{...e,categories:d,items:w,aspectRatioStyle:a,usedMediaWidths:b},children:t})},$n=500,wt=.75,Je=1+wt*2;function xe(e,t,n){return Math.min(Math.max(e,t),n)}const Qe=(e,t,n)=>e+(t-e)*n,Wn=Re(null),yt=()=>Ie(Wn),Fe=()=>{const e=yt();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},Fn="*:size-full",Un="*:object-cover *:size-full",no=({children:e})=>{const{compositionUrl:t}=le(),n=S(()=>document.querySelector(`${he}[composition-url="${t}"]`),[t]),r=S(f=>{const y=f.querySelectorAll(Ze),p=new Map;for(const h of y){const _=h.getAttribute("name");if(!_){console.warn("Icon element is missing a name attribute");continue}const v=h.innerHTML,m=v?s("div",{className:Fn,dangerouslySetInnerHTML:{__html:v}}):void 0;if(!m){console.warn(`Icon "${_}" customization is empty.`);continue}p.set(_,{Icon:m})}return p},[]),[o,i]=U(()=>{const f=n();return f?r(f):new Map});R(()=>{const f=n();if(!f)return;const y=new MutationObserver(()=>{i(r(f))});return y.observe(f,{childList:!0,subtree:!0}),()=>y.disconnect()},[r,n]);const l=S(f=>o.get(f),[o]),c=S((f,y)=>{i(p=>{const{Icon:h,..._}=y;return new Map(p.set(f,{..._,Icon:s("div",{className:Fn,children:h})}))})},[]),u=S(f=>{i(y=>(y.delete(f),new Map(y)))},[]),d=S(f=>{const y=f.querySelectorAll(Xe),p=new Array;for(const h of y){const _=h.innerHTML;if(!_){console.warn("Custom media element is empty");continue}const v=Number(h.getAttribute("index"));if(Number.isNaN(v)){console.warn("Custom media element is missing the 'index' attribute");continue}const m=h.getAttribute("thumbnail-src")??void 0,E=JSON.stringify({index:v,thumbnailSrc:m});p.push({id:E,Media:s("div",{className:Un,dangerouslySetInnerHTML:{__html:_}}),index:v,thumbnailSrc:m})}return p},[]),[w,a]=U(()=>{const f=n();return f?d(f):[]});R(()=>{const f=n();if(!f)return;const y=new MutationObserver(()=>{a(d(f))});return y.observe(f,{childList:!0,subtree:!0}),()=>y.disconnect()},[d,n]);const b=S(f=>{const{Media:y,...p}=f,h=s("div",{className:Un,children:y}),_=JSON.stringify(p);return a(v=>[...v,{id:_,Media:h,...p}]),_},[]),g=S(f=>{a(y=>y.filter(p=>p.id!==f))},[]);return s(Wn.Provider,{value:{getIconConfig:l,registerIconConfig:c,unregisterIconConfig:u,customMediaList:w,registerCustomMedia:b,unregisterCustomMedia:g},children:e})},Xn=Re(null),ae=()=>{const e=Ie(Xn);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},ro=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:n,emitEvent:r,isFullScreen:o,requestFullscreen:i,exitFullscreen:l}=le(),{customMediaList:c}=Fe(),{categories:u,items:d}=be(),w=ie(()=>{const $=new Array(...d),oe=c.slice().sort((ne,se)=>ne.index<0&&se.index<0?se.index-ne.index:ne.index<0?1:se.index<0?-1:ne.index-se.index);for(const ne of oe){let se=ne.index;se<0&&(se=$.length+se+1),$.splice(se,0,{type:"custom",...ne})}return $},[d,c]),[a,b]=U(w.map(()=>null));R(()=>{b(w.map(()=>null))},[w]);const g=S(($,oe)=>{b(ne=>ne.map((se,Mt)=>Mt===$?oe:se))},[]),[f,y]=U(0),[p,h]=U(null),_=p??f,v=w[_],m=a[_],[E,k]=U(null),L=!!E,M=S(()=>k(null),[]),z=S(()=>{if(L||p!==null)return;const $=f-1;$>=0?h($):t&&(k("first_to_last"),h(w.length-1))},[L,p,f,t,w.length]),x=S(()=>{if(L||p!==null)return;const $=f+1;$<w.length?h($):t&&(k("last_to_first"),h(0))},[L,p,f,w.length,t]),N=S($=>{const oe=Math.min(f,$),ne=Math.max(f,$);a.slice(oe,ne+1).filter(Mt=>Mt===null).length>2&&k("instant"),h($)},[f,a]);R(()=>{r(Dt,{index:_,item:v})},[v,r,_]);const D=ie(()=>{let $;if(v.type==="custom"){const oe=w.slice(0,_).reverse().find(ne=>ne.type!=="custom")??w.slice(_+1).find(ne=>ne.type!=="custom");if(!oe)throw new Error("No non-custom item found");$=oe}else $=v;for(const oe of u)if(oe.items.includes($))return oe.id;throw new Error("Current item not found in any category")},[u,v,w,_]),P=S($=>{const oe=u.find(({id:se})=>se===$)?.items[0];if(oe===void 0)throw new Error("Failed to find target category");const ne=w.findIndex(se=>se===oe);N(ne)},[u,w,N]),C=ie(()=>{switch(v.type){case"image":return!!v.hotspots?.length;case"360":return m==="running"&&v.images.some($=>!!$.hotspots?.length);default:return!1}},[v,m]),[I,T]=U(!0),A=S(()=>{const $=!I;T($),r($?Ht:Rt)},[r,I]),V=ie(()=>{switch(v.type){case"video":return m!=="running";default:return!0}},[v,m]),[F,Z]=U(!1),J=S(()=>{const $=!F;Z($),r($?$t:Wt)},[r,F]),[K,W]=U(null),Y=S(()=>W(null),[]),j=!!K,ue=ie(()=>{switch(v.type){case"image":return!0;case"360":return m==="running";default:return!1}},[v.type,m]),[te,we]=U(1),re=te!==1,me=te<Je,de=te>1,pe=S($=>{we(oe=>xe(oe+$,1,Je))},[]),Ue=S(()=>we(1),[]),Is=S(()=>pe(wt),[pe]),Ss=S(()=>pe(-wt),[pe]),Lt=S(()=>{Ue(),Y()},[Ue,Y]),[ze,Ms]=U(!1),[Tt,ir]=U(),[Nt,ar]=U(!1),Ae=S(async $=>{Lt(),Ms($),r($?Ot:Vt)},[r,Lt]),Pe=S(()=>{clearTimeout(Tt);const $=setTimeout(()=>{ir(void 0)},$n);ir($)},[Tt]),It=S(async()=>{if(Pe(),n==="full_screen"){const $=await i();if(ar(!$),$)return}Ae(!0)},[n,Ae,i,Pe]),St=S(async()=>{Pe(),!(n==="full_screen"&&(ar(!1),await l()))&&Ae(!1)},[n,Ae,l,Pe]),zs=S(()=>{ze?St():It()},[St,It,ze]);return R(()=>{n==="full_screen"&&(Nt&&ze||o!==ze&&(Pe(),Ae(o)))},[n,Ae,ze,Nt,o,Pe]),s(Xn.Provider,{value:{items:w,setItemInteraction:g,slidable:w.length>1,carrouselItemIndex:f,setCarrouselItemIndex:y,itemIndexCommand:p,setItemIndexCommand:h,masterItemIndex:_,specialCommand:E,isRunningSpecialCommand:L,finishSpecialCommand:M,prevItem:z,nextItem:x,scrollToItemIndex:N,displayedCategoryId:D,changeCategory:P,enableHotspotsControl:C,showHotspots:I,toggleHotspots:A,showGalleryControls:V,showGallery:F,toggleGallery:J,shownDetails:K,isShowingDetails:j,setShownDetails:W,resetShownDetails:Y,showZoomControls:ue,zoom:te,isZooming:re,setZoom:we,resetZoom:Ue,canZoomIn:me,zoomIn:Is,canZoomOut:de,zoomOut:Ss,resetView:Lt,extendMode:ze,enableExtendMode:It,disableExtendMode:St,toggleExtendMode:zs,extendTransition:!!Tt,fakeFullScreen:Nt},children:e})},Zn=["left","center","right","fullW"],Yn=["top","middle","bottom","fullH"],oo=[...Zn,...Yn,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function so(e){return Zn.includes(e)}function io(e){return Yn.includes(e)}function ao(e){return oo.includes(e)}function lo(e){if(!ao(e))throw new Error(`Invalid position: ${e}`);return io(e)?[e,void 0]:so(e)?[void 0,e]:e.split("-")}function O(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function co(e){switch(e){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function jn(e){switch(e){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function uo({positionX:e,positionY:t}){const n=new Array;return e&&n.push(co(e)),t&&n.push(jn(t)),n.join(" ")}function Se(e){const[t,n]=lo(e);return uo({positionX:n,positionY:t})}const ee=({customizationKey:e,className:t,children:n})=>{const{getIconConfig:r}=Fe(),i=r(e)?.Icon;return i?t?s("div",{className:t,children:i}):i:n},po=({className:e})=>s(ee,{className:e,customizationKey:"UI_CLOSE",children:s("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),fo={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},mo={button:"h-8 px-2",icon:"size-8 p-2"},ce=({variant:e="fill",shape:t="button",color:n="primary",className:r,children:o,...i})=>{const l=fo[e][n],c=mo[t];return s("button",{className:O("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",l,c,r),...i,children:o})},Gn=e=>s(ce,{color:"neutral",shape:"icon",...e,children:s(po,{className:"size-full"})}),Bn=({text:e,className:t})=>s("div",{className:O("flex size-full flex-col items-center justify-center gap-y-4",t),children:[s("img",{className:"h-20 small:h-28",src:"https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"}),s("div",{className:"text-2xl font-bold",children:e})]}),ho={primary:"border-primary",foreground:"border-foreground",background:"border-background"},_o={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},qn=({color:e="foreground",size:t="md"})=>{const n=ho[e],r=_o[t];return s("div",{className:O("inline-block animate-rotation rounded-full border-b-transparent",r,n)})},Me=({src:e,className:t,onLoad:n,imgInPlayerWidthRatio:r=1,onlyThumbnail:o,fadeIn:i,...l})=>{const{mediaLoadStrategy:c,playerInViewportWidthRatio:u}=le(),{imageHdWidth:d,usedMediaWidths:w}=be(),[a,b]=ie(()=>{const y=w.map(h=>`${h!==d?pr(e,h):e} ${h}w`);let p;if(o)p=[`${w[0]}px`];else{const h=1/(r*u);switch(c){case"quality":{const _=[...w],v=_.pop();p=_.map(m=>`(max-width: ${h*m}px) ${m}px`),p.push(`${v}px`);break}case"balanced":{p=[];for(let _=0;_<w.length-1;_++){const v=w[_],m=w[_+1],E=Math.round((v+m)/2);p.push(`(max-width: ${h*E}px) ${v}px`)}p.push(`${w[w.length-1]}px`);break}case"speed":{const _=[...w],v=_.shift();p=_.reverse().map(m=>`(min-width: ${h*m}px) ${m}px`),p.push(`${v}px`);break}}}return[y.join(", "),p.join(", ")]},[d,r,c,o,u,e,w]),[g,f]=U();return R(()=>{if(g===!0)return;const y=setTimeout(()=>{f(p=>p??!1)},30);return()=>clearTimeout(y)},[g]),s("img",{src:e,srcSet:a,sizes:b,className:O(t,i&&O(g!==void 0&&"transition-opacity duration-200",g===!1&&"opacity-0",g===!0&&"opacity-100")),onLoad:y=>{f(!0),n?.(y)},...l})},Kn=({className:e})=>s(ee,{className:e,customizationKey:"UI_IMAGE",children:s("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:s("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),bt=({className:e})=>s(ee,{className:e,customizationKey:"UI_PLAY",children:s("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Jn=({className:e})=>s(ee,{className:e,customizationKey:"UI_360",children:s("svg",{className:e,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_134_843)",children:[s("path",{d:"M35.2497 43.93C34.4358 43.93 33.7296 43.325 33.6241 42.4966C33.51 41.5977 34.1457 40.7765 35.0442 40.662C40.2284 40.0015 44.8709 38.5967 48.1162 36.7057C51.0843 34.9767 52.7185 32.9438 52.7185 30.9819C52.7185 28.8196 50.8062 27.0504 49.2014 25.9464C48.455 25.4329 48.2662 24.4117 48.7798 23.6649C49.2933 22.9185 50.3148 22.7297 51.0612 23.2432C54.2921 25.4657 55.9998 28.1416 55.9998 30.9823C55.9998 34.2063 53.8452 37.1659 49.7684 39.5409C46.0988 41.6789 41.1509 43.1922 35.4591 43.9172C35.3886 43.9257 35.3185 43.93 35.2497 43.93Z",fill:"currentColor"}),s("path",{d:"M27.6 41.5797L23.225 37.2047C22.5842 36.5638 21.5455 36.5638 20.9047 37.2047C20.2642 37.8451 20.2642 38.8842 20.9047 39.5246L22.183 40.8029C17.2816 40.2966 12.8289 39.1555 9.38102 37.4973C5.50463 35.6333 3.28124 33.2582 3.28124 30.9818C3.28124 29.0511 4.87316 27.0443 7.76347 25.3311C8.5432 24.8692 8.8004 23.8626 8.33854 23.0833C7.87627 22.3036 6.86968 22.0464 6.09038 22.5083C1.05658 25.4922 0 28.7631 0 30.9818C0 34.622 2.82665 37.9861 7.95915 40.4547C11.9428 42.3701 17.0958 43.6531 22.7098 44.1495L20.9047 45.9546C20.2642 46.5951 20.2642 47.6341 20.9047 48.275C21.2251 48.595 21.6451 48.7552 22.0651 48.7552C22.4846 48.7552 22.9046 48.595 23.225 48.275L27.6 43.9C28.2405 43.2592 28.2405 42.2201 27.6 41.5797Z",fill:"currentColor"}),s("path",{d:"M17.1827 27.6963V27.3016C17.1827 25.9092 16.3303 25.6391 15.1874 25.6391C14.4808 25.6391 14.2522 25.0158 14.2522 24.3924C14.2522 23.7687 14.4808 23.1453 15.1874 23.1453C15.977 23.1453 16.8084 23.0415 16.8084 21.3581C16.8084 20.1529 16.1227 19.8619 15.2703 19.8619C14.2522 19.8619 13.7327 20.1114 13.7327 20.9219C13.7327 21.6282 13.4208 22.1063 12.2155 22.1063C10.7193 22.1063 10.5326 21.7944 10.5326 20.7967C10.5326 19.1762 11.696 17.0771 15.2703 17.0771C17.9098 17.0771 19.9046 18.0329 19.9046 20.8386C19.9046 22.3553 19.3437 23.7687 18.3046 24.2468C19.5308 24.7039 20.4242 25.6182 20.4242 27.3016V27.6963C20.4242 31.1045 18.076 32.393 15.1665 32.393C11.5922 32.393 10.2207 30.2111 10.2207 28.4654C10.2207 27.5301 10.6155 27.2806 11.7584 27.2806C13.0884 27.2806 13.4208 27.5716 13.4208 28.3616C13.4208 29.3382 14.3355 29.5668 15.2703 29.5668C16.6836 29.5668 17.1827 29.0473 17.1827 27.6963Z",fill:"white"}),s("path",{d:"M33.0384 27.3016V27.4887C33.0384 31.063 30.8146 32.393 27.9469 32.393C25.0792 32.393 22.8345 31.063 22.8345 27.4887V21.9815C22.8345 18.4072 25.1412 17.0771 28.134 17.0771C31.646 17.0771 33.0384 19.2591 33.0384 20.9839C33.0384 21.9815 32.5603 22.293 31.5212 22.293C30.6279 22.293 29.8379 22.0644 29.8379 21.1086C29.8379 20.3191 29.0069 19.9034 28.0302 19.9034C26.804 19.9034 26.0764 20.5477 26.0764 21.9815V23.8515C26.7416 23.1244 27.6769 22.9372 28.6745 22.9372C31.0431 22.9372 33.0384 23.9763 33.0384 27.3016ZM26.0764 27.7173C26.0764 29.1511 26.7831 29.7745 27.9469 29.7745C29.1107 29.7745 29.7964 29.1511 29.7964 27.7173V27.5301C29.7964 26.013 29.1107 25.4311 27.926 25.4311C26.804 25.4311 26.0764 25.9715 26.0764 27.343V27.7173Z",fill:"white"}),s("path",{d:"M35.5527 27.4887V21.9815C35.5527 18.4072 37.7761 17.0771 40.6442 17.0771C43.5119 17.0771 45.7562 18.4072 45.7562 21.9815V27.4887C45.7562 31.063 43.5119 32.393 40.6442 32.393C37.7761 32.393 35.5527 31.063 35.5527 27.4887ZM42.5143 21.9815C42.5143 20.5477 41.808 19.9034 40.6442 19.9034C39.4804 19.9034 38.7947 20.5477 38.7947 21.9815V27.4887C38.7947 28.9225 39.4804 29.5668 40.6442 29.5668C41.808 29.5668 42.5143 28.9225 42.5143 27.4887V21.9815Z",fill:"white"}),s("path",{d:"M49.6948 17.0625C46.9805 17.0625 44.7729 14.8545 44.7729 12.1406C44.7729 9.42675 46.9805 7.21875 49.6948 7.21875C52.4087 7.21875 54.6167 9.42675 54.6167 12.1406C54.6167 14.8545 52.4087 17.0625 49.6948 17.0625ZM49.6948 10.5C48.7899 10.5 48.0542 11.2361 48.0542 12.1406C48.0542 13.0455 48.7899 13.7812 49.6948 13.7812C50.5993 13.7812 51.3354 13.0455 51.3354 12.1406C51.3354 11.2361 50.5993 10.5 49.6948 10.5Z",fill:"white"})]}),s("defs",{children:s("clipPath",{id:"clip0_134_843",children:s("rect",{width:"56",height:"56",fill:"white"})})})]})}),go=({src:e,withCdn:t})=>{const{permanentGallery:n}=le();if(!e)return null;const r="size-full object-cover";return t?s(Me,{className:r,src:e,onlyThumbnail:!0,fadeIn:!n}):s("img",{className:r,src:e})},xt=({children:e})=>{const{extendMode:t}=ae();return s("div",{className:O("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",t&&"large:h-3/5 large:p-2"),children:e})},vo=({item:e})=>{const{aspectRatioStyle:t}=be(),{type:n}=e;let r,o;switch(n){case"360":r=e.images[0].src,o=!0;break;case"image":r=e.src,o=!0;break;case"video":r=e.poster,o=!0;break;case"custom":r=e.thumbnailSrc,o=!1;break}const i=s(go,{src:r,withCdn:o});let l;switch(n){case"360":l=s(xt,{children:s(Jn,{className:"size-full text-primary-light"})});break;case"video":l=s(xt,{children:s(bt,{className:"size-full p-0.5 text-background"})});break;case"custom":l=r?null:s(xt,{children:s(Kn,{className:"size-full p-0.5 text-background"})});break}return s("div",{className:"relative bg-foreground/30",style:t,children:[i,l&&s("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:l})]})},wo={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},Qn=({color:e="neutral",orientation:t="horizontal"})=>{const n=wo[e];return s("div",{className:O(n,t==="horizontal"?"h-px w-full":"w-px h-full")})},er=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:n,infiniteCarrousel:r,permanentGallery:o,isFullScreen:i}=le(),{categories:l,aspectRatioStyle:c}=be(),{items:u,extendMode:d,extendTransition:w,masterItemIndex:a,prevItem:b,nextItem:g,scrollToItemIndex:f,resetView:y}=ae(),p=ie(()=>{if(n)return[];const x=new Array;let N=l[0];const D=P=>l.find(C=>C.items.some(I=>I===P));for(let P=0;P<u.length;P++){const C=u[P],I=D(C);I&&I!==N&&(x.push(P),N=I)}return x},[l,n,u]),h=X(null),_=S(()=>{if(!h.current)throw new Error("slider.current is null");return h.current},[]),v=X(!1),m=X(null),[E,k]=U(!1),L=S((x,N)=>{const D=_(),P=D.clientWidth,C=D.scrollWidth/u.length,I=(x+1/2)*C-P/2,T=D.scrollWidth-D.clientWidth;D.scrollTo({left:xe(I,0,T),behavior:N})},[u.length,_]);R(()=>{const x=h.current;if(!x)return;const N=C=>{C.preventDefault(),v.current=!0,m.current={x:C.pageX-x.offsetLeft,scrollLeft:x.scrollLeft}},D=C=>{if(!v.current)return;if(m.current===null)throw new Error("[onMouseMove] scrollStart is null");const T=C.pageX-x.offsetLeft-m.current.x;if(!E&&Math.abs(T)<5)return;const A=m.current.scrollLeft-T;k(!0),requestAnimationFrame(()=>{x.scrollLeft=A})},P=()=>{v.current&&(v.current=!1,requestAnimationFrame(()=>{k(!1)}))};return x.addEventListener("mousedown",N),document.addEventListener("mousemove",D),document.addEventListener("mouseleave",P),document.addEventListener("mouseup",P),document.addEventListener("contextmenu",P),()=>{x.removeEventListener("mousedown",N),document.removeEventListener("mousemove",D),document.removeEventListener("mouseleave",P),document.removeEventListener("mouseup",P),document.removeEventListener("contextmenu",P)}},[E]);const M=X(a);R(()=>{h.current&&(L(a,"smooth"),M.current=a)},[a,L]),R(()=>{h.current&&L(M.current,"instant")},[L,i,d,w]);const z=x=>{E||(r&&x===u.length-1&&a===0?b():r&&x===0&&a===u.length-1?g():f(x),y())};return s("div",{ref:h,className:O("relative w-full overflow-x-auto no-scrollbar",E?"cursor-grab":"cursor-grabbing",e),children:s("div",{className:O("flex h-10 w-fit gap-1 small:h-12 small:gap-2",d&&"large:h-20 large:gap-4",t),children:u.map((x,N)=>s(Q,{children:[p.includes(N)&&s("div",{className:"my-2",children:s(Qn,{color:o&&!i?"neutral":"background",orientation:"vertical"})}),s("div",{className:O("relative h-full overflow-hidden rounded-gallery transition-radius",!E&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",N===a?"after:opacity-100":"after:opacity-0 hover:after:opacity-70"),style:c,onClick:()=>z(N),children:s(vo,{item:x})})]},N))})})},tr=e=>1-Math.pow(1-e,2),yo=({Media:e,itemIndex:t})=>{const{setItemInteraction:n}=ae();return R(()=>{n(t,"ready")},[t,n]),e},nr=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),bo=({onlyPreload:e,...t})=>{const{zoom:n,isZooming:r,setZoom:o}=ae(),i=X(null),l=X(null),c=S(v=>{if(!l.current)throw new Error(`[${v??"getTransformElementOrThrow"}] transformElementRef.current is null`);return l.current},[]),u=X(!1),d=X(null),w=X(new Map),a=X({x:0,y:0,scale:1}),b=X(null),g=S(v=>{const m=c("setTransformStyle"),{x:E,y:k,scale:L}={...a.current,...v},M=xe(L,1,Je),z=m.clientWidth,x=m.clientHeight,N=z*M,D=x*M,P=xe(E,-(N-z),0),C=xe(k,-(D-x),0);a.current={x:P,y:C,scale:M},m.style.transform=`translate(${P}px, ${C}px) scale(${M})`},[c]),f=S((v,m)=>{const{x:E,y:k,scale:L}=a.current,{x:M,y:z,scale:x}={...a.current,...v};b.current&&(cancelAnimationFrame(b.current),b.current=null);const N=()=>{g({x:M,y:z,scale:x}),o(x)},D=Math.abs(M-E)<1&&Math.abs(z-k)<1&&Math.abs(x-L)<.005;if(!m||D){N();return}const P=new Date().getTime(),C=()=>{const I=()=>{const A=new Date().getTime()-P;if(A>=m){N(),b.current=null;return}const V=Math.min(A/m,1),F=tr(V),Z=Qe(E,M,F),J=Qe(k,z,F),K=Qe(L,x,F);g({x:Z,y:J,scale:K}),C()};b.current=requestAnimationFrame(I)};C()},[g,o]),y=S((v,m)=>{let{x:E,y:k}=a.current;v.x&&(E+=v.x),v.y&&(k+=v.y),f({x:E,y:k},m)},[f]),p=S((v,m,E)=>{const k=a.current.scale,L=xe(v,1,Je),M=L/k,{x:z,y:x}=a.current,{x:N,y:D}=m,P=-z+N,C=-x+D,I=P*M,T=C*M,A=I-N,V=T-D,F=-A,Z=-V;f({x:F,y:Z,scale:L},E)},[f]),h=S(v=>{const m=c("shiftZoomFromButton"),E=m.clientWidth,k=m.clientHeight;p(v,{x:E/2,y:k/2},200)},[c,p]),_=S((v,m,E)=>{const{scale:k}=a.current;p(k+v,m,E)},[p]);return R(()=>{e||l.current&&h(n)},[e,h,n]),R(()=>{if(e||!r)return;const v=l.current;if(!v)return;const m=L=>{L.preventDefault(),L.stopPropagation(),u.current=!0,d.current={x:L.clientX,y:L.clientY}},E=L=>{if(!u.current)return;if(!d.current)throw new Error("mouseStartXY.current is null");L.stopPropagation();const M=L.clientX-d.current.x,z=L.clientY-d.current.y;y({x:M,y:z}),d.current={x:L.clientX,y:L.clientY}},k=()=>{u.current=!1};return v.addEventListener("mousedown",m),document.addEventListener("mousemove",E),document.addEventListener("mouseleave",k),document.addEventListener("mouseup",k),document.addEventListener("contextmenu",k),()=>{v.removeEventListener("mousedown",m),document.removeEventListener("mousemove",E),document.removeEventListener("mouseleave",k),document.removeEventListener("mouseup",k),document.removeEventListener("contextmenu",k)}},[r,y,e]),R(()=>{if(e)return;const v=i.current;if(!v)return;const m=E=>{const{ctrlKey:k,clientX:L,clientY:M,deltaX:z,deltaY:x}=E;if(k){if(!r&&x>=0)return;const{left:N,top:D}=v.getBoundingClientRect(),P=L-N,C=M-D;_(-.01*x,{x:P,y:C})}else{if(!r)return;y({x:-2*z,y:-2*x})}E.preventDefault()};return v.addEventListener("wheel",m),()=>{v.removeEventListener("wheel",m)}},[r,y,_,e]),R(()=>{const v=i.current,m=l.current;if(!v||!m)return;const E=w.current,k=z=>{for(let x=0;x<z.changedTouches.length;x++){const N=z.changedTouches[x];E.set(N.identifier,N)}},L=z=>{for(let x=0;x<z.changedTouches.length;x++){const N=z.changedTouches[x];E.delete(N.identifier)}},M=z=>{const x=z.touches.length;if(x===1){if(!r)return;z.preventDefault();const N=z.touches[0],D=E.get(N.identifier);if(!D)throw new Error("touchStart is null");const P=N.clientX-D.clientX,C=N.clientY-D.clientY;y({x:P,y:C}),E.set(N.identifier,N)}else if(x===2){z.preventDefault();const[N,D]=z.touches,P=E.get(N.identifier),C=E.get(D.identifier);if(!P||!C)throw new Error("intialTouch1 or intialTouch2 is null");const I=nr(P,C),A=nr(N,D)/I,{left:V,top:F}=v.getBoundingClientRect();_(A-1,{x:(N.clientX+D.clientX)/2-V,y:(N.clientY+D.clientY)/2-F}),E.set(N.identifier,N),E.set(D.identifier,D)}};return m.addEventListener("touchstart",k),m.addEventListener("touchmove",M),m.addEventListener("touchend",L),m.addEventListener("touchcancel",L),()=>{m.removeEventListener("touchstart",k),m.removeEventListener("touchmove",M),m.removeEventListener("touchend",L),m.removeEventListener("touchcancel",L)}},[r,y,_]),s("div",{ref:i,className:`relative size-full overflow-hidden ${r?"z-zoomed-image cursor-move":""}`,children:s("div",{ref:l,className:"origin-top-left",children:s(Me,{...t,imgInPlayerWidthRatio:e?1:n})})})},xo=({hotspot:e})=>{const{title:t,icon:n,description:r,position:o,detail:i}=e,{getIconConfig:l}=Fe(),c=n?l(n):void 0,{extendMode:u,setShownDetails:d}=ae(),w=!!i,a=i?.type==="image",b=!!t||!!r,g=a?s(Kn,{className:"size-4"}):s("div",{className:"size-1"}),f=()=>{a&&d({src:i.src,title:t,text:r})};return s("div",{className:O("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",w?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:f,children:[s("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",children:[s("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),s("div",{className:"p-1",children:c?.Icon?s("div",{className:"size-4",children:c.Icon}):g})]}),!a&&b&&s("div",{className:O("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",u&&"large:max-w-56",o.y<.55?"-top-1":"-bottom-1",o.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"),children:s("div",{className:"space-y-1 text-pretty",children:[t&&s("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:t}),r&&s("div",{className:"text-xs text-foreground/65 small:text-sm",children:r})]})})]})},Co=({hotspot:e})=>{const{detail:t}=e,n=s(xo,{hotspot:e});switch(t?.type){case"link":case"pdf":return s("a",{href:t.src,target:"_blank",rel:"noreferrer",children:n});default:return n}},rr=({hotspots:e,itemIndex:t,className:n,onLoad:r,...o})=>{const{isShowingDetails:i,showHotspots:l,setItemInteraction:c}=ae();return s("div",{className:O("relative size-full overflow-hidden",n),children:s("div",{className:O("size-full duration-details",i?"scale-105":"scale-100"),children:[s(bo,{className:"size-full object-cover",onLoad:u=>{t!==void 0&&c(t,"ready"),r?.(u)},...o}),l&&e?.map((u,d)=>s(Co,{hotspot:u},d))]})})},Eo=750,ko=1250,Lo=360,To=480,No=({images:e,onlyPreload:t})=>{const{demoSpin:n,reverse360:r}=le(),{isShowingDetails:o,isZooming:i}=ae(),l=i||o,c=X(null),u=X(null),d=X(n),w=X(null),a=S(()=>{w.current&&(clearTimeout(w.current),w.current=null)},[]),b=X(null),g=()=>{b.current&&(cancelAnimationFrame(b.current),b.current=null)},[f,y]=U(0),p=e.length,h=S(()=>{y(v=>(v-1+p)%p)},[p]),_=S(()=>{y(v=>(v+1)%p)},[p]);return R(()=>{if(l){a();return}const v=c.current,m=u.current;if(!v||!m)return;d.current&&(d.current=!1,w.current=setTimeout(()=>{const W=Date.now(),Y=()=>{const j=()=>{const te=(Date.now()-W)/ko,re=Math.round((de=>de*(2-de))(te)*p),me=xe(re%p,0,p-1);y(me),!(re>=p)&&Y()};b.current=requestAnimationFrame(j)};Y()},Eo));const E=Lo/p;let k=null,L=[];const M=W=>{L.push(W),L.length>20&&L.shift()},z=()=>{const W=(()=>{const we=Date.now(),re=L.filter(pe=>we-pe.timestamp<50);if(re.length<2)return 0;const me=re[0],de=re[re.length-1];return(de.value-me.value)/(.001*Math.max(de.timestamp-me.timestamp,1))})(),Y=Date.now();let j=0,ue=Y;const te=()=>{const we=()=>{const re=Date.now(),me=(re-Y)/1e3,de=Math.pow(.05,me),pe=W*de,Ue=(re-ue)/1e3;if(j+=pe*Ue,Math.abs(pe)<5*E&&Math.abs(j)<E){b.current=null;return}Math.abs(j)>=E&&(j>0!==r?_():h(),j=0),ue=re,te()};b.current=requestAnimationFrame(we)};te()},x=()=>{a(),g()},N=W=>{if(W.button!==0)return;W.preventDefault(),W.stopPropagation(),x();const Y=W.clientX;k=Y,L=[{timestamp:Date.now(),value:Y}]},D=W=>{if(k===null)return;W.stopPropagation();const{clientX:Y}=W;M({timestamp:Date.now(),value:Y});const j=Y-k;Math.abs(j)<E||(j>0!==r?_():h(),k=Y)},P=()=>{k!==null&&(k=null,z())};v.addEventListener("mousedown",N),document.addEventListener("mousemove",D),document.addEventListener("mouseleave",P),document.addEventListener("mouseup",P),document.addEventListener("contextmenu",P);const C=To/p,I=()=>m.getBoundingClientRect().width,T=()=>m.scrollWidth/2-I()/2,A=()=>{const W=T();m.scrollLeft=W};A();const V=()=>{const W=m.scrollLeft-T();Math.abs(W)<C||(W<0!==r?_():h(),A())};m.addEventListener("scroll",V);let F=null;const Z=W=>{if(F!==null||W.changedTouches.length!==1)return;x();const{identifier:Y,clientX:j}=W.changedTouches[0];F=Y,k=j,L=[{timestamp:Date.now(),value:j}]},J=W=>{if(!k)return;const Y=Array.from(W.changedTouches).find(({identifier:te})=>te===F);if(!Y)return;W.preventDefault();const{clientX:j}=Y;M({timestamp:Date.now(),value:j});const ue=j-k;Math.abs(ue)<E||(ue>0!==r?_():h(),k=j)},K=W=>{!k||!Array.from(W.changedTouches).some(({identifier:j})=>j===F)||(F=null,k=null,z())};return m.addEventListener("touchstart",Z),m.addEventListener("touchmove",J),m.addEventListener("touchend",K),m.addEventListener("touchcancel",K),()=>{v.removeEventListener("mousedown",N),document.removeEventListener("mousemove",D),document.removeEventListener("mouseleave",P),document.removeEventListener("mouseup",P),document.removeEventListener("contextmenu",P),m.removeEventListener("scroll",V),m.removeEventListener("touchstart",Z),m.removeEventListener("touchmove",J),m.removeEventListener("touchend",K),m.removeEventListener("touchcancel",K)}},[a,_,h,l,r,p]),s("div",{ref:c,className:"cursor-ew-resize",children:s("div",{ref:u,className:"overflow-x-scroll no-scrollbar",children:[s("div",{className:"sticky left-0 top-0",children:[e.map(v=>s(Me,{src:v.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},v.src)),s(rr,{...e[f],onlyPreload:t})]}),s("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},Io=({images:e,onPlaceholderImageLoaded:t,onSpinImagesLoaded:n,onError:r})=>{const{autoLoad360:o}=le(),i=ie(()=>e.map(({src:a})=>a),[e]),[l,c]=U(null),u=l?[...l.values()].filter(a=>a).length/e.length*100:null,d=S(()=>{u===null&&c(new Map(i.map(a=>[a,!1])))},[i,u]),w=S(a=>{c(b=>{const g=new Map(b);return g.set(a,!0),g})},[]);return R(()=>{o&&d()},[o,d]),R(()=>{u===100&&n()},[u,n]),s("div",{className:"relative size-full",children:[u!==null&&u!==100&&s("div",{className:"hidden",children:i.map(a=>s(Me,{src:a,onLoad:()=>w(a),onError:r},a))}),s(Me,{className:"size-full",src:i[0],onLoad:t}),s("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[s(Jn,{className:"size-20 text-primary-light"}),s(ce,{color:"neutral",shape:"icon",onClick:d,children:s(bt,{className:"size-full"})}),s("div",{className:O("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",u===null&&"invisible"),children:s("div",{className:"h-full bg-primary transition-[width]",style:{width:`${u??0}%`}})})]})]})},So=e=>{const{itemIndex:t}=e,{setItemInteraction:n}=ae(),[r,o]=U();return R(()=>{r===null||r==="error"||n(t,r==="spin"?"running":"ready")},[t,n,r]),r==="error"?s(Bn,{className:"text-background",text:"Spin could not be loaded"}):r!=="spin"?s(Io,{...e,onPlaceholderImageLoaded:()=>o(i=>i===null?"placeholder":i),onSpinImagesLoaded:()=>o("spin"),onError:()=>o("error")}):s(No,{...e})},Mo=e=>s(ce,{color:"neutral",shape:"icon",...e,children:s(bt,{className:"size-full"})}),zo=({className:e})=>s(ee,{className:e,customizationKey:"UI_PAUSE",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),Ao=({className:e})=>s(ee,{className:e,customizationKey:"UI_VOLUME",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),Po=({className:e})=>s(ee,{className:e,customizationKey:"UI_VOLUME_OFF",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),or=({progress:e})=>s("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:s("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-e)}%)`}})}),Do=3e3,Oo=({src:e,poster:t,itemIndex:n})=>{const{carrouselItemIndex:r,setItemInteraction:o}=ae(),i=X(null),l=X(null),c=S(()=>{if(!l.current)throw new Error("videoRef.current is null");return l.current},[]);R(()=>{o(n,"ready")},[n,o]);const u=S(()=>{c().play()},[c]),d=S(()=>{c().pause()},[c]);R(()=>{r===n||d()},[r,n,d]);const[w,a]=U(!1),[b,g]=U(!0),f=()=>{a(!0),o(n,"running")},y=()=>{a(!1),o(n,"ready")},p=()=>{g(!1)},h=()=>{g(!0)},[_,v]=U(null),m=T=>{const A=c(),V=T.currentTarget.getBoundingClientRect(),Z=(T.clientX-V.left)/V.width,J=Math.min(1,Math.max(0,Z));A.volume=J,A.muted=!1},E=T=>{const A=c();A.muted=T};R(()=>{const T=l.current;if(!T)return;const A=()=>{v({volume:T.volume,isMuted:T.muted})};return A(),T.addEventListener("volumechange",A),()=>{T.removeEventListener("volumechange",A)}},[]);const[k,L]=U(null),M=k?k.currentTime/k.duration:0;R(()=>{const T=l.current;if(!T)return;const A=()=>{const V=T.currentTime,F=T.duration;isNaN(V)||isNaN(F)||L({currentTime:V,duration:F})};return A(),T.addEventListener("timeupdate",A),()=>{T.removeEventListener("timeupdate",A)}},[]);const z=T=>{const A=c(),V=T.currentTarget.getBoundingClientRect(),Z=(T.clientX-V.left)/V.width,J=A.duration*Z;A.currentTime=J},x=T=>{const A=Math.floor(T%3600/60),V=Math.floor(T%60);return`${A}:${V.toString().padStart(2,"0")}`},[N,D]=U(!1),P=X(void 0),C=S(()=>clearTimeout(P.current),[]),I=S(()=>{C(),P.current=setTimeout(()=>{D(!1)},Do)},[C]);return R(()=>{const T=i.current,A=l.current;if(!T||!A)return;const V=()=>{I(),D(!0)},F=()=>{C(),D(!1)};let Z=!1;const J=()=>{Z=!0},K=()=>{Z&&(Z=!1,d())},W=()=>{Z=!1,V()},Y=j=>{j.preventDefault(),j.touches.length===1&&(I(),D(te=>!te))};return T.addEventListener("mousedown",J),T.addEventListener("mouseup",K),T.addEventListener("mouseenter",V),T.addEventListener("mousemove",W),T.addEventListener("mouseleave",F),A.addEventListener("touchstart",Y),()=>{T.removeEventListener("mousedown",J),T.removeEventListener("mouseup",K),T.removeEventListener("mouseenter",V),T.removeEventListener("mousemove",V),T.removeEventListener("mouseleave",F),A.removeEventListener("touchstart",Y)}},[C,d,I]),s("div",{ref:i,className:"relative size-full",children:[s("video",{ref:l,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:f,onPause:y,onEnded:y,onCanPlay:p,onWaiting:h}),w?s(Q,{children:[s("div",{className:O("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",N?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:T=>T.stopPropagation(),children:[s("div",{className:"flex items-center justify-between text-background",children:[s("div",{className:"flex items-center gap-x-4",children:[s(ce,{shape:"icon",variant:"ghost",color:"neutral",onClick:d,children:s(zo,{className:"size-full"})}),k&&s("span",{className:"text-sm",children:[x(k.currentTime)," /"," ",x(k.duration)]})]}),_&&s("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[s("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${_.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:m,children:s(or,{progress:_.volume})}),s("div",{className:"size-5 cursor-pointer",onClick:()=>E(!_.isMuted),children:_.isMuted?s(Po,{className:"size-full"}):s(Ao,{className:"size-full"})})]})]}),s("div",{className:"cursor-pointer py-1",onClick:z,children:s(or,{progress:M})})]}),b&&s("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:s(qn,{size:"lg",color:"background"})})]}):s("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:s(Mo,{onClick:u})})]})},Vo=({index:e,item:t,isShown:n})=>{const{type:r}=t;let o;switch(r){case"image":o=s(rr,{itemIndex:e,onlyPreload:!n,...t});break;case"video":o=s(Oo,{itemIndex:e,...t});break;case"360":o=s(So,{itemIndex:e,onlyPreload:!n,...t});break;case"custom":o=s(yo,{itemIndex:e,...t})}return o=s("div",{className:"-ml-px h-full w-[calc(100%+2px)]",children:o}),o},Ho=e=>{R(()=>{const t=n=>{n.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function Ro(e){return e.target===e.currentTarget}const $o=({currentIndex:e,maxIndex:t})=>s("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[s("span",{children:e+1}),s("span",{children:"/"}),s("span",{children:t+1})]}),sr=({className:e})=>s(ee,{className:e,customizationKey:"UI_ARROW_RIGHT",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),Wo=({className:e})=>s(ee,{className:e,customizationKey:"UI_EXTEND",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),Fo=({className:e})=>s(ee,{className:e,customizationKey:"UI_GALLERY",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),Uo=({className:e})=>s(ee,{className:e,customizationKey:"UI_HOTSPOTS",children:s("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s("g",{clipPath:"url(#clip0_418_982)",children:s("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),s("defs",{children:s("clipPath",{id:"clip0_418_982",children:s("rect",{width:"12",height:"12",fill:"white"})})})]})}),Xo=({className:e})=>s(ee,{className:e,customizationKey:"UI_MINUS",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Zo=({className:e})=>s(ee,{className:e,customizationKey:"UI_PLUS",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Yo=({className:e})=>s(ee,{className:e,customizationKey:"UI_REDUCE",children:s("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:s("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),jo=({enabled:e,onToggle:t,label:n,className:r,children:o})=>s("label",{className:O("flex cursor-pointer items-center justify-center gap-x-2",r),children:[s("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),n&&s("div",{className:"text-xs text-background",children:n}),s("div",{className:O("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:s("div",{className:O("flex size-4 items-center justify-center rounded-full p-0.5 transition",e?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:o})})]}),Go=({className:e})=>s(ee,{className:e,customizationKey:"UI_BURGER",children:s("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),Bo=({sharedClassName:e})=>{const{categories:t}=be(),{displayedCategoryId:n,changeCategory:r}=ae(),[o,i]=U(!1),l=()=>{i(!o)},c=()=>{i(!1)};return s(Q,{children:[o&&s("div",{className:O(e,"inset-0 small:hidden"),onClick:c}),s("div",{className:O(e,Se("top-left"),"flex gap-x-2 small:hidden"),children:[s(ce,{shape:"icon",color:o?"primary":"neutral",onClick:l,children:s(Go,{})}),o&&s("div",{className:"rounded-ui-md bg-background transition-radius",children:s("ul",{className:"space-y-0.5 p-1",children:t.map(({id:u,title:d})=>s("li",{className:O("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",u===n&&"bg-primary/50"),onClick:()=>{r(u),i(!1)},children:d},u))})})]}),s("div",{className:O(e,jn("top"),"w-full overflow-x-auto max-small:hidden"),children:s("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:t.map(({id:u,title:d})=>s(ce,{variant:u===n?"fill":"ghost",onClick:()=>r(u),children:d},u))})})]})},qo=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:n,extendBehavior:r}=le(),{aspectRatioStyle:o,categories:{length:i}}=be(),{items:{length:l},slidable:c,carrouselItemIndex:u,masterItemIndex:d,prevItem:w,nextItem:a,showGalleryControls:b,enableHotspotsControl:g,showHotspots:f,toggleHotspots:y,showGallery:p,toggleGallery:h,extendMode:_,toggleExtendMode:v,shownDetails:m,isShowingDetails:E,resetShownDetails:k,showZoomControls:L,isZooming:M,canZoomIn:z,zoomIn:x,canZoomOut:N,zoomOut:D,resetView:P}=ae(),C=S(T=>{Ro(T)&&k()},[k]);Ho(k);const I="absolute z-overlay";return s(Q,{children:[!e&&i>1&&s(Bo,{sharedClassName:O(I,"transition-opacity",M?"!pointer-events-none opacity-0":"opacity-100")}),c&&!M&&s("div",{className:O(I,Se("top-right")),children:s($o,{currentIndex:u,maxIndex:l-1})}),c&&s(Q,{children:[s(ce,{shape:"icon",color:"neutral",className:O(I,Se("middle-left"),M?"!pointer-events-none opacity-0":"opacity-100"),onClick:w,disabled:!t&&d<=0,children:s(ee,{customizationKey:"CONTROLS_PREV",children:s(sr,{className:"size-full -scale-x-100"})})}),s(ce,{shape:"icon",color:"neutral",className:O(I,Se("middle-right"),M?"!pointer-events-none opacity-0":"opacity-100"),onClick:a,disabled:!t&&d>=l-1,children:s(ee,{customizationKey:"CONTROLS_NEXT",children:s(sr,{className:"size-full"})})})]}),s("div",{className:O(I,Se("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!n&&c&&s(Q,{children:[s(ce,{className:b&&!M?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:p?"primary":"neutral",shape:"icon",onClick:h,children:s(Fo,{className:"size-full"})}),p&&s(er,{className:O("transition-opacity",b&&!M?"opacity-100":"!pointer-events-none opacity-0","[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),s("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[g&&s(jo,{className:O("transition-opacity",M?"!pointer-events-none opacity-0":"opacity-100"),enabled:f,onToggle:y,children:s(Uo,{className:"size-full"})}),L&&s("div",{className:"max-small:hidden",children:[s(ce,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!z,onClick:x,children:s(Zo,{className:"size-full"})}),s(Qn,{color:"background"}),s(ce,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!N,onClick:D,children:s(Xo,{className:"size-full"})})]}),r!=="none"&&s(ce,{variant:"fill",color:_?"primary":"neutral",shape:"icon",onClick:v,children:_?s(Yo,{className:"size-full"}):s(Wo,{className:"size-full"})})]})]}),s("div",{className:O(I,"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",E?"opacity-100":"pointer-events-none opacity-0"),onClick:C,children:s("div",{className:O("h-full w-3/5 bg-background transition-transform duration-details",E?"translate-x-0":"translate-x-full"),children:!!m&&s(Q,{children:[s(Me,{className:"w-full bg-foreground/65",style:o,src:m.src,imgInPlayerWidthRatio:.6}),s("div",{className:O("space-y-1 px-2 py-1 small:p-3",_&&"large:p-4"),children:[m.title&&s("span",{className:O("text-sm font-semibold small:text-base small:font-bold",_&&"large:text-lg"),children:m.title}),m.text&&s("p",{className:O("text-xs text-foreground/65 small:text-sm",_&&"large:text-base"),children:m.text})]})]})})}),(M||E)&&s(Gn,{className:O(I,Se("top-right")),onClick:P})]})},Ko=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:n,isFullScreen:r}=le(),{aspectRatioStyle:o}=be(),{items:i,slidable:l,carrouselItemIndex:c,setCarrouselItemIndex:u,itemIndexCommand:d,setItemIndexCommand:w,specialCommand:a,isRunningSpecialCommand:b,finishSpecialCommand:g,extendMode:f,extendTransition:y}=ae(),p=X(null),h=S(C=>{if(!p.current)throw new Error(`[${C??"sliderOrThrow"}] slider.current is null`);return p.current},[]),_=X(!1),v=X(null),m=X(null),E=X(null),k=S(()=>{E.current&&cancelAnimationFrame(E.current)},[]),L=S(()=>{const C=h("computeClosestSnapIndex"),I=Array.from(C.children),T=C.scrollLeft;return I.reduce((V,F,Z)=>{const J=F.offsetLeft;return Math.abs(J-T)<Math.abs(I[V].offsetLeft-T)?Z:V},0)},[h]),M=S(C=>{const I=h("setStyleCursor");I.style.cursor=C},[h]),z=S(C=>{const I=h("setStyleSnapState");C==="mandatory"?I.style.scrollSnapType="x mandatory":I.style.scrollSnapType="none"},[h]),x=S((C,I,T)=>{k();const A=h("scrollToIndex"),V=Array.from(A.children),F=A.scrollLeft,Z=V[C].offsetLeft,J=te=>{A.scrollTo({left:te,behavior:"instant"})},K=()=>{J(Z),z("mandatory"),T?.()},W=Math.abs(F-Z);if(W<1||I==="instant"){K();return}const Y=xe(W/2.5,300,1e3),j=new Date().getTime();z("none");const ue=()=>{const te=()=>{const re=new Date().getTime()-j;if(re>=Y){K();return}const me=Math.min(re/Y,1),de=tr(me),pe=Qe(F,Z,de);J(pe),ue()};E.current=requestAnimationFrame(te)};ue()},[k,h,z]),[N,D]=U(),P=!!N;return R(()=>{const C=()=>{clearTimeout(N);const I=setTimeout(()=>{D(void 0)},$n);D(I)};return addEventListener("resize",C),document.addEventListener("fullscreenchange",C),()=>{removeEventListener("resize",C),document.removeEventListener("fullscreenchange",C)}},[N]),R(()=>{if(a)return;const C=L();Number.isNaN(C)||C!==c&&x(c,"instant")},[c,L,x,a,i,N,r,f,y]),R(()=>{if(!l||b){M("auto");return}const C=p.current;if(!C)return;M("grab"),z("mandatory");const I=V=>{V.button===0&&(V.preventDefault(),V.stopPropagation(),k(),_.current=!0,v.current=V.pageX-C.offsetLeft,m.current=C.scrollLeft,M("grabbing"))},T=V=>{if(!_.current)return;if(v.current===null)throw new Error("[onMouseMove] startX is null");z("none");const Z=V.pageX-C.offsetLeft-v.current;requestAnimationFrame(()=>{if(m.current===null)throw new Error("[onMouseMove] scrollLeft is null");C.scrollLeft=m.current-Z})},A=()=>{if(!_.current)return;_.current=!1,M("grab");const V=L();x(V,"smooth")};return C.addEventListener("mousedown",I),document.addEventListener("mousemove",T),document.addEventListener("mouseleave",A),document.addEventListener("mouseup",A),document.addEventListener("contextmenu",A),()=>{C.removeEventListener("mousedown",I),document.removeEventListener("mousemove",T),document.removeEventListener("mouseleave",A),document.removeEventListener("mouseup",A),document.removeEventListener("contextmenu",A)}},[k,L,b,x,M,z,l]),R(()=>{if(y||P)return;const C=p.current;if(!C)return;const I=()=>{const T=L();Number.isNaN(T)||(u(T),T===d&&w(null))};return C.addEventListener("scroll",I),()=>{C.removeEventListener("scroll",I)}},[L,y,P,d,u,w]),R(()=>{if(d===null)return;const C=()=>{setTimeout(()=>{w(null),g()},75)};switch(a){case"first_to_last":x(i.length-1,"instant",C);break;case"last_to_first":x(0,"instant",C);break;case"instant":x(d,"instant",C);break;default:x(d,"smooth");break}},[a,g,d,i.length,x,w]),s("div",{className:O("relative overflow-hidden rounded-carrousel transition-radius",e),style:o,children:[s("div",{ref:p,className:`flex size-full ${l?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:i.map((C,I)=>{const T=I===c,A=I===0,V=I===i.length-1,F=(()=>{if(a==="first_to_last"&&A)return{transform:`translateX(${100*i.length}%)`};if(a==="last_to_first"&&V)return{transform:`translateX(-${100*i.length}%)`}})();let Z=Math.abs(I-c)<=n;Z||=I===d,t&&(Z||=c<n&&i.length-I<=n-c,Z||=c>=i.length-n&&I<=n-(i.length-c));const J=(()=>{let K;switch(C.type){case"360":K=C.images[0].src;break;case"image":K=C.src;break;case"video":K=C.poster??"video";break;case"custom":K="custom";break}return`${I}_${K}`})();return s("div",{className:O("h-full bg-foreground/35",c===I&&"z-1"),style:{...o,...F},children:Z&&s(Vo,{index:I,item:C,isShown:T})},J)})}),s(qo,{})]})},Jo=()=>{const{permanentGallery:e}=le(),{aspectRatioStyle:t}=be(),{prevItem:n,nextItem:r,isShowingDetails:o,resetShownDetails:i,extendMode:l,disableExtendMode:c,isZooming:u,resetZoom:d,fakeFullScreen:w}=ae(),a=X(null),b=X(null),g=X(null);return R(()=>{if(!l)return;const f=a.current,y=b.current,p=g.current;if(!f||!y||!p)return;let h=!1;const _=E=>[f,y,p].includes(E.target),v=E=>{h=_(E)},m=E=>{h&&(_(E)&&c(),h=!1)};return f.addEventListener("mousedown",v),f.addEventListener("mouseup",m),()=>{f.removeEventListener("mousedown",v),f.removeEventListener("mouseup",m)}},[c,l]),R(()=>{const f=y=>{y.key==="Escape"&&(u?d():o?i():c())};return addEventListener("keydown",f),()=>{removeEventListener("keydown",f)}},[c,o,u,r,n,i,d]),s("div",{ref:a,className:O("relative",l&&"flex size-full items-center justify-center",w&&"fixed inset-0 z-overlay bg-foreground/75"),children:[s("div",{ref:b,className:l?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[s("div",{ref:g,className:O(l&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t,children:s(Ko,{className:O(l&&"h-full min-w-0")})}),e&&s(er,{className:O(l&&"my-2 shrink-0 small:my-4")})]}),l&&s(Gn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:c})]})},Qo=()=>{const{emitEvent:e,compositionUrl:t}=le(),{data:n,status:r,isSuccess:o,error:i}=Qr(t);return R(()=>{i?e(Pt,i):r==="fetching"?e(zt,t):o&&e(At,n)},[n,t,e,i,o,r]),i?s(Bn,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):o?s(to,{composition:n,children:s(ro,{children:s(Jo,{})})}):s("div",{className:"flex aspect-square size-full flex-col items-center justify-center gap-y-4",children:[s("div",{className:"animate-pulse text-xl",children:"Loading Player"}),s(qn,{color:"foreground"})]})},es=({compositionUrl:e,hideCategoriesNav:t=!1,infiniteCarrousel:n=!1,permanentGallery:r=!1,mediaLoadStrategy:o=lr,minMediaWidth:i=0,maxMediaWidth:l=1/0,preloadRange:c=1,autoLoad360:u=!1,categoriesFilter:d=cr,extendBehavior:w=ur,eventPrefix:a=Ft,demoSpin:b=!1,reverse360:g=!1,children:f})=>{const y=X(null),[p,h]=U(.5),[_,v]=U(!1),m=S((L,M)=>{const z=a+L,x=new CustomEvent(z,{detail:M});document.dispatchEvent(x)},[a]);R(()=>{if(_){h(1);return}if(!y.current)return;const L=y.current,M=()=>{const z=window.innerWidth,x=L.clientWidth;h(x/z)};return M(),addEventListener("resize",M),()=>{removeEventListener("resize",M)}},[_]),R(()=>{if(w!=="full_screen")return;const L=y.current;if(!L)throw new Error("Wrapper not found");const M=()=>{const{fullscreenElement:z}=document;v(z===L||z?.localName===he)};return document.addEventListener("fullscreenchange",M),()=>{document.removeEventListener("fullscreenchange",M)}},[w]);const E=S(async()=>{const L=y.current;if(!L)throw new Error("Wrapper not found");try{return await L.requestFullscreen(),!0}catch{return!1}},[]),k=S(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return s(eo,{compositionUrl:e,hideCategoriesNav:t,infiniteCarrousel:n,permanentGallery:r,mediaLoadStrategy:o,minMediaWidth:i,maxMediaWidth:l,preloadRange:c,categoriesFilter:d,autoLoad360:u,extendBehavior:w,demoSpin:b,reverse360:g,emitEvent:m,playerInViewportWidthRatio:p,isFullScreen:_,requestFullscreen:E,exitFullscreen:k,children:s(no,{children:[s("div",{ref:y,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--foreground":"var(--cc-webplayer-foreground, 240 10% 3.9%)","--primary":"var(--cc-webplayer-primary, 216 100% 52%)","--primary-foreground":"var(--cc-webplayer-primary-foreground, var(--background))","--primary-light":"var(--cc-webplayer-primary-light, var(--primary))","--neutral":"var(--cc-webplayer-neutral, 0 0% 39%)","--neutral-foreground":"var(--cc-webplayer-neutral-foreground, var(--foreground))","--radius-ui":"var(--cc-webplayer-radius-ui, 16px)","--radius-carrousel":"var(--cc-webplayer-radius-carrousel, 0)","--radius-gallery":"var(--cc-webplayer-radius-gallery, 0)"},children:s(Qo,{})}),f]})})},ts=({children:e,index:t,thumbnailSrc:n})=>{const{registerCustomMedia:r,unregisterCustomMedia:o}=Fe();return R(()=>{if(!e)return;const i=r({Media:e,index:t,thumbnailSrc:n});return()=>{o(i)}},[e,o,t,r,n]),null},ns=e=>yt()?s(ts,{...e}):s("slot",{}),rs=({name:e,children:t})=>{const{registerIconConfig:n,unregisterIconConfig:r}=Fe();return R(()=>{if(t)return n(e,{Icon:t}),()=>{r(e)}},[t,e,n,r]),null},os=e=>yt()?s(rs,{...e}):s("slot",{}),ss='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:4px;right:4px}.inset-y-1{top:4px;bottom:4px}.-bottom-1{bottom:-4px}.-left-1{left:-4px}.-right-1{right:-4px}.-top-1{top:-4px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.left-0{left:0}.left-1{left:4px}.left-1\\/2{left:50%}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-2{top:8px}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:4px;margin-right:4px}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:8px;margin-bottom:8px}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:4px;height:4px}.size-12{width:48px;height:48px}.size-20{width:80px;height:80px}.size-4{width:16px;height:16px}.size-5{width:20px;height:20px}.size-8{width:32px;height:32px}.size-full{width:100%;height:100%}.h-1{height:4px}.h-10{height:40px}.h-20{height:80px}.h-3\\/4{height:75%}.h-5{height:20px}.h-8{height:32px}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0}.w-12{width:48px}.w-3\\/5{width:60%}.w-8{width:32px}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.max-w-40{max-width:160px}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: 6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-x-1{-moz-column-gap:4px;column-gap:4px}.gap-x-2{-moz-column-gap:8px;column-gap:8px}.gap-x-4{-moz-column-gap:16px;column-gap:16px}.gap-y-1{row-gap:4px}.gap-y-2{row-gap:8px}.gap-y-4{row-gap:16px}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + 2px)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - 2px)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.pl-6{padding-left:24px}.pr-12{padding-right:48px}.pr-4{padding-right:16px}.pt-8{padding-top:32px}.text-2xl{font-size:24px;line-height:32px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:8px;right:8px}.small\\:inset-y-2{top:8px;bottom:8px}.small\\:bottom-2{bottom:8px}.small\\:left-2{left:8px}.small\\:right-2{right:8px}.small\\:right-4{right:16px}.small\\:top-2{top:8px}.small\\:top-4{top:16px}.small\\:my-4{margin-top:16px;margin-bottom:16px}.small\\:hidden{display:none}.small\\:h-12{height:48px}.small\\:h-28{height:112px}.small\\:max-w-48{max-width:192px}.small\\:gap-2{gap:8px}.small\\:gap-x-2{-moz-column-gap:8px;column-gap:8px}.small\\:gap-y-2{row-gap:8px}.small\\:gap-y-4{row-gap:16px}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:12px}.small\\:px-2{padding-left:8px;padding-right:8px}.small\\:py-1{padding-top:4px;padding-bottom:4px}.small\\:pl-8{padding-left:32px}.small\\:pr-6{padding-right:24px}.small\\:text-base{font-size:16px;line-height:24px}.small\\:text-sm{font-size:14px;line-height:20px}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:80px}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:224px}.large\\:gap-4{gap:16px}.large\\:p-2{padding:8px}.large\\:p-4{padding:16px}.large\\:text-base{font-size:16px;line-height:24px}.large\\:text-lg{font-size:18px;line-height:28px}}';function is(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>`${n}-${r.toLowerCase()}`)}function Ct(e){return Object.entries(e).reduce((t,[n,r])=>{if(r!==void 0){const o=is(n);t[o]=r.toString()}return t},{})}const as=e=>s(Q,{children:[s("style",{children:ss}),s(es,{...e})]}),ls=e=>Ct(e),cs=e=>Ct(e),us=e=>Ct(e);function ds(e){return{render:function(t){Ln(t,e)},unmount:function(){Mn(e)}}}var ps=Object.defineProperty,fs=(e,t,n)=>t in e?ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t,n)=>(fs(e,typeof t!="symbol"?t+"":t,n),n);const ms={stringify:e=>e,parse:e=>e},hs={stringify:e=>`${e}`,parse:e=>parseFloat(e)},_s={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},gs={stringify:e=>e.name,parse:(e,t,n)=>{const r=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof r=="function"?r.bind(n):void 0}},vs={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},Et={string:ms,number:hs,boolean:_s,function:gs,json:vs};function ws(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>`${n}-${r.toLowerCase()}`)}const tt=Symbol.for("r2wc.render"),nt=Symbol.for("r2wc.connected"),ke=Symbol.for("r2wc.context"),Ce=Symbol.for("r2wc.props");function ys(e,t,n){var r,o,i;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const l=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),c={},u={},d={};for(const a of l){c[a]=Array.isArray(t.props)?"string":t.props[a];const b=ws(a);u[a]=b,d[b]=a}class w extends HTMLElement{constructor(){super(),et(this,r,!0),et(this,o),et(this,i,{}),et(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[Ce].container=this.container;for(const b of l){const g=u[b],f=this.getAttribute(g),y=c[b],p=y?Et[y]:null;p!=null&&p.parse&&f&&(this[Ce][b]=p.parse(f,g,this))}}static get observedAttributes(){return Object.keys(d)}connectedCallback(){this[nt]=!0,this[tt]()}disconnectedCallback(){this[nt]=!1,this[ke]&&n.unmount(this[ke]),delete this[ke]}attributeChangedCallback(b,g,f){const y=d[b],p=c[y],h=p?Et[p]:null;y in c&&h!=null&&h.parse&&f&&(this[Ce][y]=h.parse(f,b,this),this[tt]())}[(r=nt,o=ke,i=Ce,tt)](){this[nt]&&(this[ke]?n.update(this[ke],this[Ce]):this[ke]=n.mount(this.container,e,this[Ce]))}}for(const a of l){const b=u[a],g=c[a];Object.defineProperty(w.prototype,a,{enumerable:!0,configurable:!0,get(){return this[Ce][a]},set(f){this[Ce][a]=f;const y=g?Et[g]:null;if(y!=null&&y.stringify){const p=y.stringify(f,b,this);this.getAttribute(b)!==p&&this.setAttribute(b,p)}else this[tt]()}})}return w}function bs(e,t,n){const r=ds(e),o=Vn.createElement(t,n);return r.render(o),{root:r,ReactComponent:t}}function xs({root:e,ReactComponent:t},n){const r=Vn.createElement(t,n);e.render(r)}function Cs({root:e}){setTimeout(()=>{e.unmount()},0)}function kt(e,t={}){return ys(e,t,{mount:bs,update:xs,unmount:Cs})}const Es=kt(as,{shadow:"open",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean"}}),ks=kt(ns,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),Ls=kt(os,{shadow:"closed",props:{name:"string"}});function Ts(){customElements.define(he,Es),customElements.define(Xe,ks),customElements.define(Ze,Ls)}function Ns(){Ut()||Ts()}G.DEFAULT_EVENT_PREFIX=Ft,G.EVENT_COMPOSITION_LOADED=At,G.EVENT_COMPOSITION_LOADING=zt,G.EVENT_COMPOSITION_LOAD_ERROR=Pt,G.EVENT_EXTEND_MODE_OFF=Vt,G.EVENT_EXTEND_MODE_ON=Ot,G.EVENT_GALLERY_CLOSE=Wt,G.EVENT_GALLERY_OPEN=$t,G.EVENT_HOTSPOTS_OFF=Rt,G.EVENT_HOTSPOTS_ON=Ht,G.EVENT_ITEM_CHANGE=Dt,G.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Xe,G.WEB_PLAYER_ICON_WC_TAG=Ze,G.WEB_PLAYER_WC_TAG=he,G.checkCustomElementsDefinition=Ut,G.ensureCustomElementsDefinition=Ns,G.generateCompositionUrl=dr,G.webPlayerCustomMediaPropsToAttributes=cs,G.webPlayerIconPropsToAttributes=us,G.webPlayerPropsToAttributes=ls,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@car-cutter/wc-webplayer",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": {
6
6
  "name": "CarCutter",
@@ -30,10 +30,10 @@
30
30
  "analyze": "vite-bundle-visualizer"
31
31
  },
32
32
  "devDependencies": {
33
- "@car-cutter/core": "0.10.0",
34
- "@car-cutter/core-ui": "0.10.0",
35
- "@car-cutter/core-wc": "0.10.0",
36
- "@car-cutter/core-wc-react-18": "0.10.0",
33
+ "@car-cutter/core": "0.11.0",
34
+ "@car-cutter/core-ui": "0.11.0",
35
+ "@car-cutter/core-wc": "0.11.0",
36
+ "@car-cutter/core-wc-react-18": "0.11.0",
37
37
  "@car-cutter/eslint-config": "*",
38
38
  "@car-cutter/typescript-config": "*",
39
39
  "@preact/preset-vite": "^2.9.1",