@zeniai/web-cockpit-ui 2.0.62-dev → 2.0.62-next
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.
- package/dist/assets/CreditAgentRoutes-DF_JOjZH.js +4 -0
- package/dist/assets/Preview-Ciq7dXYi-C6UHJ-dG.js +1 -0
- package/dist/assets/ScreenRoutes-xhS5KnwE.js +185 -0
- package/dist/assets/SignInScreen-t_oI3_zX.js +1 -0
- package/dist/assets/__vite-browser-external-FmFgRqLi-Bre4IUow.js +1 -0
- package/dist/assets/{analytics-D2hq1pB4.js → analytics-D0nfjXSz.js} +1 -1
- package/dist/assets/{analyticsHelper-Duy8p9G0.js → analyticsHelper-BidapgRT.js} +1 -1
- package/dist/assets/core-Jhwj2cWt.js +12 -0
- package/dist/assets/dash.all.min-D0CkNF8g-0432FG2N.js +21 -0
- package/dist/assets/epic-CauFcFaa.js +2 -0
- package/dist/assets/hls-fD7GzkMr-CIetwlf6.js +40 -0
- package/dist/assets/index-C_rFPbpi-DsH_Uf7X.js +3299 -0
- package/dist/assets/index-CnaD4GI7.js +80686 -0
- package/dist/assets/index-CsCrKvDl-C675kzjP.js +2 -0
- package/dist/assets/index-DVThwdcI.css +1 -0
- package/dist/assets/lexical-CDqLTwdI.js +1 -0
- package/dist/assets/{liveblocks-DtPrLDJS.js → liveblocks-2qCiW-lz.js} +15 -15
- package/dist/assets/lottie-DsFjtNAa.js +1 -0
- package/dist/assets/mixin-XJuHfVsL-BC7tPWd5.js +43 -0
- package/dist/assets/mui-DK0XZjs0.js +9 -0
- package/dist/assets/react-3LeYKPCr-PCrhYwP8.js +6 -0
- package/dist/assets/react-6Tvfe2S2-AIR7GwlO.js +19 -0
- package/dist/assets/react-B2-P-PS--D8HoPiLp.js +19 -0
- package/dist/assets/react-CWXWcDMY-gRCgPi-n.js +17 -0
- package/dist/assets/react-CWt3gw2R-DR3R7x_6.js +21 -0
- package/dist/assets/react-CytUn6Kg-eWmFZ2Rf.js +22 -0
- package/dist/assets/react-G6j-OGKl-BmOQta5r.js +34 -0
- package/dist/assets/react-kuaGVSkA-DCIamgmw.js +7 -0
- package/dist/assets/recharts-CDqLTwdI.js +1 -0
- package/dist/assets/{sentry-DGdrGMts.js → sentry-Gbc14BJL.js} +2 -2
- package/dist/assets/utils-1Oo38JiV.js +36 -0
- package/dist/assets/{zeni-epic-state-BrXQ4qCB.js → zeni-epic-state-CvtUqjnz.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CreditAgentRoutes-Dfd0Kd6I.js +0 -4
- package/dist/assets/Preview-IR8wZl18.js +0 -1
- package/dist/assets/ScreenRoutes-CWwjG5zs.js +0 -180
- package/dist/assets/SignInScreen-D3CJKpcD.js +0 -1
- package/dist/assets/core-Bd7Ijkb8.js +0 -12
- package/dist/assets/dash.all.min-DEn1t6rn.js +0 -21
- package/dist/assets/empty-BWs4yw6m.js +0 -1
- package/dist/assets/empty-Cuv-JavI.js +0 -1
- package/dist/assets/epic-BEruqsXy.js +0 -2
- package/dist/assets/hls-DifHSkbp.js +0 -40
- package/dist/assets/index-B4tJfZBM.js +0 -1
- package/dist/assets/index-BHnFF6Mj.js +0 -3304
- package/dist/assets/index-Ddpazk8i.js +0 -1
- package/dist/assets/index-ICxwMH4m.js +0 -1
- package/dist/assets/index-IYkmdsJO.js +0 -80176
- package/dist/assets/index-aPW1WLF7.js +0 -2
- package/dist/assets/index-aa1-CqLI.js +0 -1
- package/dist/assets/index-y98xvd7i.css +0 -1
- package/dist/assets/lexical-DUprPrXL.js +0 -21
- package/dist/assets/lottie-CxiyciuX.js +0 -2
- package/dist/assets/mixin-BPAPQfSE.js +0 -43
- package/dist/assets/mui-7i_-G9Wo.js +0 -9
- package/dist/assets/react-BP_tYIvG.js +0 -17
- package/dist/assets/react-BUCt2wJF.js +0 -21
- package/dist/assets/react-BmixicuU.js +0 -34
- package/dist/assets/react-D0Ona832.js +0 -19
- package/dist/assets/react-D1eycK3j.js +0 -7
- package/dist/assets/react-DZOlfJ3z.js +0 -6
- package/dist/assets/react-Da7CbJkT.js +0 -19
- package/dist/assets/react-Dy5N-1E1.js +0 -22
- package/dist/assets/recharts-ukUg8EgD.js +0 -65
- package/dist/assets/url-B6X-Y6dN.js +0 -6
- package/dist/assets/url-BHD2x5lb.js +0 -1
- package/dist/assets/utils-DOKAIlnQ.js +0 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./zeni-epic-state-CvtUqjnz.js";import"./sentry-Gbc14BJL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e22901e6-3266-4cb7-a753-ab666eb813e2",e._sentryDebugIdIdentifier="sentry-dbid-e22901e6-3266-4cb7-a753-ab666eb813e2")}catch{}})();
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="69f43b0e-5479-4b55-9455-f06add8a9e9f",n._sentryDebugIdIdentifier="sentry-dbid-69f43b0e-5479-4b55-9455-f06add8a9e9f")}catch{}})();const C=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],I=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function H(n){return`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
line-height: 0;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: end;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
audio {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
<slot name="media">
|
|
15
|
+
<audio${$(n)}></audio>
|
|
16
|
+
</slot>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
`}function z(n){return`
|
|
19
|
+
<style>
|
|
20
|
+
:host {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
line-height: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
video {
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
max-height: 100%;
|
|
28
|
+
min-width: 100%;
|
|
29
|
+
min-height: 100%;
|
|
30
|
+
object-fit: var(--media-object-fit, contain);
|
|
31
|
+
object-position: var(--media-object-position, 50% 50%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
video::-webkit-media-text-track-container {
|
|
35
|
+
transform: var(--media-webkit-text-track-transform);
|
|
36
|
+
transition: var(--media-webkit-text-track-transition);
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
<slot name="media">
|
|
40
|
+
<video${$(n)}></video>
|
|
41
|
+
</slot>
|
|
42
|
+
<slot></slot>
|
|
43
|
+
`}function P(n,{tag:t,is:s}){const o=globalThis.document?.createElement?.(t,{is:s}),h=o?function(c){const e=[];for(let r=Object.getPrototypeOf(c);r&&r!==HTMLElement.prototype;r=Object.getPrototypeOf(r)){const a=Object.getOwnPropertyNames(r);e.push(...a)}return e}(o):[];return class T extends n{static getTemplateHTML=t.endsWith("audio")?H:z;static shadowRootOptions={mode:"open"};static Events=C;static#t=!1;static get observedAttributes(){return T.#n(),[...o?.constructor?.observedAttributes??[],...I]}static#n(){if(this.#t)return;this.#t=!0;const e=new Set(this.observedAttributes);e.delete("muted");for(const r of h)if(!(r in this.prototype))if(typeof o[r]=="function")this.prototype[r]=function(...a){return this.#s(),this.call?this.call(r,...a):this.nativeEl?.[r]?.apply(this.nativeEl,a)};else{const a={get(){this.#s();const d=r.toLowerCase();if(e.has(d)){const u=this.getAttribute(d);return u!==null&&(u===""||u)}return this.get?.(r)??this.nativeEl?.[r]}};r!==r.toUpperCase()&&(a.set=function(d){this.#s();const u=r.toLowerCase();e.has(u)?d===!0||d===!1||d==null?this.toggleAttribute(u,!!d):this.setAttribute(u,d):this.set?this.set(r,d):this.nativeEl&&(this.nativeEl[r]=d)}),Object.defineProperty(this.prototype,r,a)}}#e=!1;#i=null;#r=new Map;#o;get;set;call;get nativeEl(){return this.#s(),this.#i??this.querySelector(":scope > [slot=media]")??this.querySelector(t)??this.shadowRoot?.querySelector(t)??null}set nativeEl(e){this.#i=e}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",e)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(e){this.setAttribute("preload",`${e}`)}#s(){this.#e||(this.#e=!0,this.init())}init(){if(!this.shadowRoot){this.attachShadow({mode:"open"});const e=function(r){const a={};for(const d of r)a[d.name]=d.value;return a}(this.attributes);s&&(e.is=s),t&&(e.part=t),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.nativeEl.muted=this.hasAttribute("muted");for(const e of h)this.#h(e);this.#o=new MutationObserver(this.#c.bind(this)),this.shadowRoot.addEventListener("slotchange",()=>this.#a()),this.#a();for(const e of this.constructor.Events)this.shadowRoot.addEventListener(e,this,!0)}handleEvent(e){e.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail}))}#a(){const e=new Map(this.#r);(this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0}).filter(d=>["track","source"].includes(d.localName))).forEach(d=>{e.delete(d);let u=this.#r.get(d);u||(u=d.cloneNode(),this.#r.set(d,u),this.#o?.observe(d,{attributes:!0})),this.nativeEl?.append(u),this.#d(u)}),e.forEach((d,u)=>{d.remove(),this.#r.delete(u)})}#c(e){for(const r of e)if(r.type==="attributes"){const{target:a,attributeName:d}=r,u=this.#r.get(a);u&&d&&(u.setAttribute(d,a.getAttribute(d)??""),this.#d(u))}}#d(e){e&&e.localName==="track"&&e.default&&(e.kind==="chapters"||e.kind==="metadata")&&e.track.mode==="disabled"&&(e.track.mode="hidden")}#h(e){if(Object.prototype.hasOwnProperty.call(this,e)){const r=this[e];delete this[e],this[e]=r}}attributeChangedCallback(e,r,a){this.#s(),this.#u(e,r,a)}#u(e,r,a){["id","class"].includes(e)||!T.observedAttributes.includes(e)&&this.constructor.observedAttributes.includes(e)||(a===null?this.nativeEl?.removeAttribute(e):this.nativeEl?.getAttribute(e)!==a&&this.nativeEl?.setAttribute(e,a))}connectedCallback(){this.#s()}}}function $(n){let t="";for(const s in n){if(!I.includes(s))continue;const o=n[s];t+=o===""?` ${s}`:` ${s}="${o}"`}return t}const N=P(globalThis.HTMLElement??class{},{tag:"video"});P(globalThis.HTMLElement??class{},{tag:"audio"});class g extends Event{track;constructor(t,s){super(t),this.track=s.track}}const k=new WeakMap;function i(n){return k.get(n)??function(t,s){let o=k.get(t);return o||k.set(t,o={}),Object.assign(o,s)}(n,{})}function b(n,t){const s=n.videoTracks;i(t).media=n,i(t).renditionSet||(i(t).renditionSet=new Set);const o=i(s).trackSet;o.add(t);const h=o.size-1;h in L.prototype||Object.defineProperty(L.prototype,h,{get(){return[...i(this).trackSet][h]}}),queueMicrotask(()=>{s.dispatchEvent(new g("addtrack",{track:t}))})}function y(n){const t=i(n).media?.videoTracks;t&&(i(t).trackSet.delete(n),queueMicrotask(()=>{t.dispatchEvent(new g("removetrack",{track:n}))}))}class L extends EventTarget{#t;#n;#e;constructor(){super(),i(this).trackSet=new Set}get#i(){return i(this).trackSet}[Symbol.iterator](){return this.#i.values()}get length(){return this.#i.size}getTrackById(t){return[...this.#i].find(s=>s.id===t)??null}get selectedIndex(){return[...this.#i].findIndex(t=>t.selected)}get onaddtrack(){return this.#t}set onaddtrack(t){this.#t&&(this.removeEventListener("addtrack",this.#t),this.#t=void 0),typeof t=="function"&&(this.#t=t,this.addEventListener("addtrack",t))}get onremovetrack(){return this.#n}set onremovetrack(t){this.#n&&(this.removeEventListener("removetrack",this.#n),this.#n=void 0),typeof t=="function"&&(this.#n=t,this.addEventListener("removetrack",t))}get onchange(){return this.#e}set onchange(t){this.#e&&(this.removeEventListener("change",this.#e),this.#e=void 0),typeof t=="function"&&(this.#e=t,this.addEventListener("change",t))}}class f extends Event{rendition;constructor(t,s){super(t),this.rendition=s.rendition}}function l(n){return[...i(n).media.videoTracks].filter(t=>t.selected).flatMap(t=>[...i(t).renditionSet])}class R extends EventTarget{#t;#n;#e;[Symbol.iterator](){return l(this).values()}get length(){return l(this).length}getRenditionById(t){return l(this).find(s=>`${s.id}`==`${t}`)??null}get selectedIndex(){return l(this).findIndex(t=>t.selected)}set selectedIndex(t){for(const[s,o]of l(this).entries())o.selected=s===t}get onaddrendition(){return this.#t}set onaddrendition(t){this.#t&&(this.removeEventListener("addrendition",this.#t),this.#t=void 0),typeof t=="function"&&(this.#t=t,this.addEventListener("addrendition",t))}get onremoverendition(){return this.#n}set onremoverendition(t){this.#n&&(this.removeEventListener("removerendition",this.#n),this.#n=void 0),typeof t=="function"&&(this.#n=t,this.addEventListener("removerendition",t))}get onchange(){return this.#e}set onchange(t){this.#e&&(this.removeEventListener("change",this.#e),this.#e=void 0),typeof t=="function"&&(this.#e=t,this.addEventListener("change",t))}}class B{src;id;width;height;bitrate;frameRate;codec;#t=!1;get selected(){return this.#t}set selected(t){this.#t!==t&&(this.#t=t,function(s){const o=i(s).media.videoRenditions;o&&!i(o).changeRequested&&(i(o).changeRequested=!0,queueMicrotask(()=>{delete i(o).changeRequested,i(s).track.selected&&o.dispatchEvent(new Event("change"))}))}(this))}}class A{id;kind;label="";language="";sourceBuffer;#t=!1;addRendition(t,s,o,h,c,e){const r=new B;return r.src=t,r.width=s,r.height=o,r.frameRate=e,r.bitrate=c,r.codec=h,function(a,d){const u=i(a).media.videoRenditions;i(d).media=i(a).media,i(d).track=a;const q=i(a).renditionSet;q.add(d);const m=q.size-1;m in R.prototype||Object.defineProperty(R.prototype,m,{get(){return l(this)[m]}}),queueMicrotask(()=>{a.selected&&u.dispatchEvent(new f("addrendition",{rendition:d}))})}(this,r),r}removeRendition(t){(function(s){const o=i(s).media.videoRenditions,h=i(s).track;i(h).renditionSet.delete(s),queueMicrotask(()=>{i(s).track.selected&&o.dispatchEvent(new f("removerendition",{rendition:s}))})})(t)}get selected(){return this.#t}set selected(t){this.#t!==t&&(this.#t=t,t===!0&&function(s){const o=i(s).media.videoTracks??[];let h=!1;for(const c of o)c!==s&&(c.selected=!1,h=!0);if(h){if(i(o).changeRequested)return;i(o).changeRequested=!0,queueMicrotask(()=>{delete i(o).changeRequested,o.dispatchEvent(new Event("change"))})}}(this))}}function v(n){return[...i(n).media.audioTracks].filter(t=>t.enabled).flatMap(t=>[...i(t).renditionSet])}class S extends EventTarget{#t;#n;#e;[Symbol.iterator](){return v(this).values()}get length(){return v(this).length}getRenditionById(t){return v(this).find(s=>`${s.id}`==`${t}`)??null}get selectedIndex(){return v(this).findIndex(t=>t.selected)}set selectedIndex(t){for(const[s,o]of v(this).entries())o.selected=s===t}get onaddrendition(){return this.#t}set onaddrendition(t){this.#t&&(this.removeEventListener("addrendition",this.#t),this.#t=void 0),typeof t=="function"&&(this.#t=t,this.addEventListener("addrendition",t))}get onremoverendition(){return this.#n}set onremoverendition(t){this.#n&&(this.removeEventListener("removerendition",this.#n),this.#n=void 0),typeof t=="function"&&(this.#n=t,this.addEventListener("removerendition",t))}get onchange(){return this.#e}set onchange(t){this.#e&&(this.removeEventListener("change",this.#e),this.#e=void 0),typeof t=="function"&&(this.#e=t,this.addEventListener("change",t))}}class D{src;id;bitrate;codec;#t=!1;get selected(){return this.#t}set selected(t){this.#t!==t&&(this.#t=t,function(s){const o=i(s).media.audioRenditions;o&&!i(o).changeRequested&&(i(o).changeRequested=!0,queueMicrotask(()=>{delete i(o).changeRequested,i(s).track.enabled&&o.dispatchEvent(new Event("change"))}))}(this))}}function E(n,t){const s=n.audioTracks;i(t).media=n,i(t).renditionSet||(i(t).renditionSet=new Set);const o=i(s).trackSet;o.add(t);const h=o.size-1;h in M.prototype||Object.defineProperty(M.prototype,h,{get(){return[...i(this).trackSet][h]}}),queueMicrotask(()=>{s.dispatchEvent(new g("addtrack",{track:t}))})}function w(n){const t=i(n).media?.audioTracks;t&&(i(t).trackSet.delete(n),queueMicrotask(()=>{t.dispatchEvent(new g("removetrack",{track:n}))}))}class M extends EventTarget{#t;#n;#e;constructor(){super(),i(this).trackSet=new Set}get#i(){return i(this).trackSet}[Symbol.iterator](){return this.#i.values()}get length(){return this.#i.size}getTrackById(t){return[...this.#i].find(s=>s.id===t)??null}get onaddtrack(){return this.#t}set onaddtrack(t){this.#t&&(this.removeEventListener("addtrack",this.#t),this.#t=void 0),typeof t=="function"&&(this.#t=t,this.addEventListener("addtrack",t))}get onremovetrack(){return this.#n}set onremovetrack(t){this.#n&&(this.removeEventListener("removetrack",this.#n),this.#n=void 0),typeof t=="function"&&(this.#n=t,this.addEventListener("removetrack",t))}get onchange(){return this.#e}set onchange(t){this.#e&&(this.removeEventListener("change",this.#e),this.#e=void 0),typeof t=="function"&&(this.#e=t,this.addEventListener("change",t))}}class x{id;kind;label="";language="";sourceBuffer;#t=!1;addRendition(t,s,o){const h=new D;return h.src=t,h.codec=s,h.bitrate=o,function(c,e){const r=i(c).media.audioRenditions;i(e).media=i(c).media,i(e).track=c;const a=i(c).renditionSet;a.add(e);const d=a.size-1;d in S.prototype||Object.defineProperty(S.prototype,d,{get(){return v(this)[d]}}),queueMicrotask(()=>{c.enabled&&r.dispatchEvent(new f("addrendition",{rendition:e}))})}(this,h),h}removeRendition(t){(function(s){const o=i(s).media.audioRenditions,h=i(s).track;i(h).renditionSet.delete(s),queueMicrotask(()=>{i(s).track.enabled&&o.dispatchEvent(new f("removerendition",{rendition:s}))})})(t)}get enabled(){return this.#t}set enabled(t){this.#t!==t&&(this.#t=t,function(s){const o=i(s).media.audioTracks;o&&!i(o).changeRequested&&(i(o).changeRequested=!0,queueMicrotask(()=>{delete i(o).changeRequested,o.dispatchEvent(new Event("change"))}))}(this))}}const O=p(globalThis.HTMLMediaElement,"video"),j=p(globalThis.HTMLMediaElement,"audio");function V(n){if(!n?.prototype)return n;const t=p(n,"video");t&&!`${t}`.includes("[native code]")||Object.defineProperty(n.prototype,"videoTracks",{get(){return function(c){let e=i(c).videoTracks;if(!e&&(e=new L,i(c).videoTracks=e,O)){const r=O.call(c.nativeEl??c);for(const a of r)b(c,a);r.addEventListener("change",()=>{e.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",a=>{if([...e].some(d=>d instanceof A))for(const d of r)y(d);else b(c,a.track)}),r.addEventListener("removetrack",a=>{y(a.track)})}return e}(this)}});const s=p(n,"audio");s&&!`${s}`.includes("[native code]")||Object.defineProperty(n.prototype,"audioTracks",{get(){return function(c){let e=i(c).audioTracks;if(!e&&(e=new M,i(c).audioTracks=e,j)){const r=j.call(c.nativeEl??c);for(const a of r)E(c,a);r.addEventListener("change",()=>{e.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",a=>{if([...e].some(d=>d instanceof x))for(const d of r)w(d);else E(c,a.track)}),r.addEventListener("removetrack",a=>{w(a.track)})}return e}(this)}}),"addVideoTrack"in n.prototype||(n.prototype.addVideoTrack=function(c,e="",r=""){const a=new A;return a.kind=c,a.label=e,a.language=r,b(this,a),a}),"removeVideoTrack"in n.prototype||(n.prototype.removeVideoTrack=y),"addAudioTrack"in n.prototype||(n.prototype.addAudioTrack=function(c,e="",r=""){const a=new x;return a.kind=c,a.label=e,a.language=r,E(this,a),a}),"removeAudioTrack"in n.prototype||(n.prototype.removeAudioTrack=w),"videoRenditions"in n.prototype||Object.defineProperty(n.prototype,"videoRenditions",{get(){return o(this)}});const o=c=>{let e=i(c).videoRenditions;return e||(e=new R,i(e).media=c,i(c).videoRenditions=e),e};"audioRenditions"in n.prototype||Object.defineProperty(n.prototype,"audioRenditions",{get(){return h(this)}});const h=c=>{let e=i(c).audioRenditions;return e||(e=new S,i(e).media=c,i(c).audioRenditions=e),e};return n}function p(n,t){if(n?.prototype)return Object.getOwnPropertyDescriptor(n.prototype,`${t}Tracks`)?.get}export{V as M,N as s};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{a as v,R as Yn,e as Ue}from"./sentry-Gbc14BJL.js";import{j as Y}from"./liveblocks-2qCiW-lz.js";import{_ as Xn,R as ft,e as qn,r as Qn}from"./core-Jhwj2cWt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e7847497-5644-4734-aa2d-e9cca511f776",e._sentryDebugIdIdentifier="sentry-dbid-e7847497-5644-4734-aa2d-e9cca511f776")}catch{}})();function cn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Zn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jn=cn(function(e){return Zn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function eo(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function to(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ro=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(to(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=eo(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),q="-ms-",xt="-moz-",B="-webkit-",ln="comm",cr="rule",lr="decl",no="@import",un="@keyframes",oo="@layer",io=Math.abs,Pt=String.fromCharCode,so=Object.assign;function ao(e,t){return X(e,0)^45?(((t<<2^X(e,0))<<2^X(e,1))<<2^X(e,2))<<2^X(e,3):0}function fn(e){return e.trim()}function co(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,r){return e.replace(t,r)}function Zt(e,t){return e.indexOf(t)}function X(e,t){return e.charCodeAt(t)|0}function Ze(e,t,r){return e.slice(t,r)}function se(e){return e.length}function ur(e){return e.length}function dt(e,t){return t.push(e),e}function lo(e,t){return e.map(t).join("")}var $t=1,De=1,dn=0,Q=0,G=0,je="";function Rt(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:$t,column:De,length:s,return:""}}function Ve(e,t){return so(Rt("",null,null,"",null,null,0),e,{length:-e.length},t)}function uo(){return G}function fo(){return G=Q>0?X(je,--Q):0,De--,G===10&&(De=1,$t--),G}function J(){return G=Q<dn?X(je,Q++):0,De++,G===10&&(De=1,$t++),G}function ce(){return X(je,Q)}function gt(){return Q}function rt(e,t){return Ze(je,e,t)}function Je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pn(e){return $t=De=1,dn=se(je=e),Q=0,[]}function mn(e){return je="",e}function yt(e){return fn(rt(Q-1,Jt(e===91?e+2:e===40?e+1:e)))}function po(e){for(;(G=ce())&&G<33;)J();return Je(e)>2||Je(G)>3?"":" "}function mo(e,t){for(;--t&&J()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return rt(e,gt()+(t<6&&ce()==32&&J()==32))}function Jt(e){for(;J();)switch(G){case e:return Q;case 34:case 39:e!==34&&e!==39&&Jt(G);break;case 40:e===41&&Jt(e);break;case 92:J();break}return Q}function ho(e,t){for(;J()&&e+G!==57;)if(e+G===84&&ce()===47)break;return"/*"+rt(t,Q-1)+"*"+Pt(e===47?e:J())}function go(e){for(;!Je(ce());)J();return rt(e,Q)}function yo(e){return mn(bt("",null,null,null,[""],e=pn(e),0,[0],e))}function bt(e,t,r,n,o,i,s,a,l){for(var u=0,d=0,p=s,g=0,y=0,h=0,f=1,x=1,P=1,$=0,E="",w=o,A=i,S=n,C=E;x;)switch(h=$,$=J()){case 40:if(h!=108&&X(C,p-1)==58){Zt(C+=N(yt($),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:C+=yt($);break;case 9:case 10:case 13:case 32:C+=po(h);break;case 92:C+=mo(gt()-1,7);continue;case 47:switch(ce()){case 42:case 47:dt(bo(ho(J(),gt()),t,r),l);break;default:C+="/"}break;case 123*f:a[u++]=se(C)*P;case 125*f:case 59:case 0:switch($){case 0:case 125:x=0;case 59+d:P==-1&&(C=N(C,/\f/g,"")),y>0&&se(C)-p&&dt(y>32?kr(C+";",n,r,p-1):kr(N(C," ","")+";",n,r,p-2),l);break;case 59:C+=";";default:if(dt(S=Er(C,t,r,u,d,o,a,E,w=[],A=[],p),i),$===123)if(d===0)bt(C,t,S,S,w,i,p,a,A);else switch(g===99&&X(C,3)===110?100:g){case 100:case 108:case 109:case 115:bt(e,S,S,n&&dt(Er(e,S,S,0,0,o,a,E,o,w=[],p),A),o,A,p,a,n?w:A);break;default:bt(C,S,S,S,[""],A,0,a,A)}}u=d=y=0,f=P=1,E=C="",p=s;break;case 58:p=1+se(C),y=h;default:if(f<1){if($==123)--f;else if($==125&&f++==0&&fo()==125)continue}switch(C+=Pt($),$*f){case 38:P=d>0?1:(C+="\f",-1);break;case 44:a[u++]=(se(C)-1)*P,P=1;break;case 64:ce()===45&&(C+=yt(J())),g=ce(),d=p=se(E=C+=go(gt())),$++;break;case 45:h===45&&se(C)==2&&(f=0)}}return i}function Er(e,t,r,n,o,i,s,a,l,u,d){for(var p=o-1,g=o===0?i:[""],y=ur(g),h=0,f=0,x=0;h<n;++h)for(var P=0,$=Ze(e,p+1,p=io(f=s[h])),E=e;P<y;++P)(E=fn(f>0?g[P]+" "+$:N($,/&\f/g,g[P])))&&(l[x++]=E);return Rt(e,t,r,o===0?cr:a,l,u,d)}function bo(e,t,r){return Rt(e,t,r,ln,Pt(uo()),Ze(e,2,-2),0)}function kr(e,t,r,n){return Rt(e,t,r,lr,Ze(e,0,n),Ze(e,n+1,-1),n)}function Ne(e,t){for(var r="",n=ur(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function vo(e,t,r,n){switch(e.type){case oo:if(e.children.length)break;case no:case lr:return e.return=e.return||e.value;case ln:return"";case un:return e.return=e.value+"{"+Ne(e.children,n)+"}";case cr:e.value=e.props.join(",")}return se(r=Ne(e.children,n))?e.return=e.value+"{"+r+"}":""}function xo(e){var t=ur(e);return function(r,n,o,i){for(var s="",a=0;a<t;a++)s+=e[a](r,n,o,i)||"";return s}}function So(e){return function(t){t.root||(t=t.return)&&e(t)}}function Co(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wo=function(t,r,n){for(var o=0,i=0;o=i,i=ce(),o===38&&i===12&&(r[n]=1),!Je(i);)J();return rt(t,Q)},Eo=function(t,r){var n=-1,o=44;do switch(Je(o)){case 0:o===38&&ce()===12&&(r[n]=1),t[n]+=wo(Q-1,r,n);break;case 2:t[n]+=yt(o);break;case 4:if(o===44){t[++n]=ce()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Pt(o)}while(o=J());return t},ko=function(t,r){return mn(Eo(pn(t),r))},Tr=new WeakMap,To=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Tr.get(n))&&!o){Tr.set(t,!0);for(var i=[],s=ko(r,i),a=n.props,l=0,u=0;l<s.length;l++)for(var d=0;d<a.length;d++,u++)t.props[u]=i[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},Po=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function hn(e,t){switch(ao(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+xt+e+q+e+e;case 6828:case 4268:return B+e+q+e+e;case 6165:return B+e+q+"flex-"+e+e;case 5187:return B+e+N(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return B+e+q+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return B+e+q+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+q+N(e,"shrink","negative")+e;case 5292:return B+e+q+N(e,"basis","preferred-size")+e;case 6060:return B+"box-"+N(e,"-grow","")+B+e+q+N(e,"grow","positive")+e;case 4554:return B+N(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(se(e)-1-t>6)switch(X(e,t+1)){case 109:if(X(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+xt+(X(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zt(e,"stretch")?hn(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(X(e,t+1)!==115)break;case 6444:switch(X(e,se(e)-3-(~Zt(e,"!important")&&10))){case 107:return N(e,":",":"+B)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(X(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(X(e,t+11)){case 114:return B+e+q+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+q+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+q+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+q+e+e}return e}var $o=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case lr:t.return=hn(t.value,t.length);break;case un:return Ne([Ve(t,{value:N(t.value,"@","@"+B)})],o);case cr:if(t.length)return lo(t.props,function(i){switch(co(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([Ve(t,{props:[N(i,/:(read-\w+)/,":"+xt+"$1")]})],o);case"::placeholder":return Ne([Ve(t,{props:[N(i,/:(plac\w+)/,":"+B+"input-$1")]}),Ve(t,{props:[N(i,/:(plac\w+)/,":"+xt+"$1")]}),Ve(t,{props:[N(i,/:(plac\w+)/,q+"input-$1")]})],o)}return""})}},Ro=[$o],Ao=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var x=f.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ro,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),P=1;P<x.length;P++)i[x[P]]=!0;a.push(f)});var l,u=[To,Po];{var d,p=[vo,So(function(f){d.insert(f)})],g=xo(u.concat(o,p)),y=function(x){return Ne(yo(x),g)};l=function(x,P,$,E){d=$,y(x?x+"{"+P.styles+"}":P.styles),E&&(h.inserted[P.name]=!0)}}var h={key:r,sheet:new ro({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(a),h},Oo=!0;function gn(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var fr=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Oo===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},dr=function(t,r,n){fr(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Io(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bo=/[A-Z]|^ms/g,No=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yn=function(t){return t.charCodeAt(1)===45},Pr=function(t){return t!=null&&typeof t!="boolean"},Gt=cn(function(e){return yn(e)?e:e.replace(Bo,"-$&").toLowerCase()}),$r=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(No,function(n,o,i){return ae={name:o,styles:i,next:ae},o})}return _o[t]!==1&&!yn(t)&&typeof r=="number"&&r!==0?r+"px":r};function et(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ae={name:r.name,styles:r.styles,next:ae},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ae={name:n.name,styles:n.styles,next:ae},n=n.next;var o=r.styles+";";return o}return Mo(e,t,r)}case"function":{if(e!==void 0){var i=ae,s=r(e);return ae=i,et(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function Mo(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=et(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":Pr(s)&&(n+=Gt(i)+":"+$r(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)Pr(s[a])&&(n+=Gt(i)+":"+$r(i,s[a])+";");else{var l=et(e,t,s);switch(i){case"animation":case"animationName":{n+=Gt(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Rr=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ae,At=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";ae=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=et(n,r,s)):i+=s[0];for(var a=1;a<t.length;a++)i+=et(n,r,t[a]),o&&(i+=s[a]);Rr.lastIndex=0;for(var l="",u;(u=Rr.exec(i))!==null;)l+="-"+u[1];var d=Io(i)+l;return{name:d,styles:i,next:ae}},pr={}.hasOwnProperty,bn=v.createContext(typeof HTMLElement<"u"?Ao({key:"css"}):null),Sc=bn.Provider,mr=function(t){return v.forwardRef(function(r,n){var o=v.useContext(bn);return t(r,o,n)})},nt=v.createContext({}),Cc=function(){return v.useContext(nt)},Do=v.useInsertionEffect?v.useInsertionEffect:function(t){t()};function Fo(e){Do(e)}var er="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Lo=function(t,r){var n={};for(var o in r)pr.call(r,o)&&(n[o]=r[o]);return n[er]=t,n},jo=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return fr(r,n,o),Fo(function(){return dr(r,n,o)}),null},Wo=mr(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[er],i=[n],s="";typeof e.className=="string"?s=gn(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=At(i,void 0,v.useContext(nt));s+=t.key+"-"+a.name;var l={};for(var u in e)pr.call(e,u)&&u!=="css"&&u!==er&&(l[u]=e[u]);return l.ref=r,l.className=s,v.createElement(v.Fragment,null,v.createElement(jo,{cache:t,serialized:a,isStringTag:typeof o=="string"}),v.createElement(o,l))}),wc=function(t,r){var n=arguments;if(r==null||!pr.call(r,"css"))return v.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Wo,i[1]=Lo(t,r);for(var s=2;s<o;s++)i[s]=n[s];return v.createElement.apply(null,i)},Ar=v.useInsertionEffect?v.useInsertionEffect:v.useLayoutEffect,Ec=mr(function(e,t){var r=e.styles,n=At([r],void 0,v.useContext(nt)),o=v.useRef();return Ar(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",i),s.hydrate([l])),o.current=[s,a],function(){s.flush()}},[t]),Ar(function(){var i=o.current,s=i[0],a=i[1];if(a){i[1]=!1;return}if(n.next!==void 0&&dr(t,n.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function zo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return At(t)}var kc=function(){var t=zo.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Ho=Jn,Vo=function(t){return t!=="theme"},Or=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ho:Vo},Ir=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Go=v.useInsertionEffect?v.useInsertionEffect:function(t){t()};function Uo(e){Go(e)}var Ko=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return fr(r,n,o),Uo(function(){return dr(r,n,o)}),null},Yo=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Ir(t,r,n),l=a||Or(o),u=!l("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{p.push(d[0][0]);for(var g=d.length,y=1;y<g;y++)p.push(d[y],d[0][y])}var h=mr(function(f,x,P){var $=u&&f.as||o,E="",w=[],A=f;if(f.theme==null){A={};for(var S in f)A[S]=f[S];A.theme=v.useContext(nt)}typeof f.className=="string"?E=gn(x.registered,w,f.className):f.className!=null&&(E=f.className+" ");var C=At(p.concat(w),x.registered,A);E+=x.key+"-"+C.name,s!==void 0&&(E+=" "+s);var _=u&&a===void 0?Or($):l,O={};for(var M in f)u&&M==="as"||_(M)&&(O[M]=f[M]);return O.className=E,O.ref=P,v.createElement(v.Fragment,null,v.createElement(Ko,{cache:x,serialized:C,isStringTag:typeof $=="string"}),v.createElement($,O))});return h.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=p,h.__emotion_forwardProp=a,Object.defineProperty(h,"toString",{value:function(){return"."+s}}),h.withComponent=function(f,x){return e(f,Xn({},r,x,{shouldForwardProp:Ir(h,x,!0)})).apply(void 0,p)},h}},Xo=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],tr=Yo.bind();Xo.forEach(function(e){tr[e]=tr(e)});const St=typeof window<"u"?v.useLayoutEffect:v.useEffect;function vn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=vn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=vn(e))&&(n&&(n+=" "),n+=t);return n}function Ct(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],a=t[i];if(!a)n[i]=s||{};else if(!s)n[i]=a;else{n[i]={...a};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const u=l;n[i][u]=Ct(s[u],a[u],r)}}}else i==="className"&&r&&t.className?n.className=ee(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function qo(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ct(t.components[r].defaultProps,n)}var Ut={exports:{}},j={};var _r;function Qo(){if(_r)return j;_r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function h(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case r:case o:case n:case l:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case s:case a:case p:case d:return f;case i:return f;default:return x}}case t:return x}}}return j.ContextConsumer=i,j.ContextProvider=s,j.Element=e,j.ForwardRef=a,j.Fragment=r,j.Lazy=p,j.Memo=d,j.Portal=t,j.Profiler=o,j.StrictMode=n,j.Suspense=l,j.SuspenseList=u,j.isContextConsumer=function(f){return h(f)===i},j.isContextProvider=function(f){return h(f)===s},j.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},j.isForwardRef=function(f){return h(f)===a},j.isFragment=function(f){return h(f)===r},j.isLazy=function(f){return h(f)===p},j.isMemo=function(f){return h(f)===d},j.isPortal=function(f){return h(f)===t},j.isProfiler=function(f){return h(f)===o},j.isStrictMode=function(f){return h(f)===n},j.isSuspense=function(f){return h(f)===l},j.isSuspenseList=function(f){return h(f)===u},j.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===l||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===i||f.$$typeof===a||f.$$typeof===y||f.getModuleId!==void 0)},j.typeOf=h,j}var Br;function Zo(){return Br||(Br=1,Ut.exports=Qo()),Ut.exports}var xn=Zo();function fe(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Sn(e){if(v.isValidElement(e)||xn.isValidElementType(e)||!fe(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Sn(e[r])}),t}function te(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return fe(e)&&fe(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||xn.isValidElementType(t[o])?n[o]=t[o]:fe(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&fe(e[o])?n[o]=te(e[o],t[o],r):r.clone?n[o]=fe(t[o])?Sn(t[o]):t[o]:n[o]=t[o]}),n}const Jo=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function ei(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=Jo(t),s=Object.keys(i);function a(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function l(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function u(g,y){const h=s.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:y)-n/100}${r})`}function d(g){return s.indexOf(g)+1<s.length?u(g,s[s.indexOf(g)+1]):a(g)}function p(g){const y=s.indexOf(g);return y===0?a(s[1]):y===s.length-1?l(s[y]):u(g,s[s.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:u,only:d,not:p,unit:r,...o}}function ke(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Nr(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function ti(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ri(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function ni(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function r(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const oi={borderRadius:4};function qe(e,t){return t?te(e,t,{clone:!1}):e}const Ot={xs:0,sm:600,md:900,lg:1200,xl:1536},Mr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ot[e]}px)`},ii={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ot[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function de(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Mr;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Mr;return Object.keys(t).reduce((s,a)=>{if(ti(i.keys,a)){const l=ri(n.containerQueries?n:ii,a);l&&(s[l]=r(t[a],a))}else if(Object.keys(i.values||Ot).includes(a)){const l=i.up(a);s[l]=r(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return r(t)}function si(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function Dr(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function we(e){if(typeof e!="string")throw new Error(ke(7));return e.charAt(0).toUpperCase()+e.slice(1)}function It(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function wt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=It(e,r)||n,t&&(o=t(o,n,e)),o}function V(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=It(l,n)||{};return de(s,a,p=>{let g=wt(u,o,p);return p===g&&typeof p=="string"&&(g=wt(u,o,`${t}${p==="default"?"":we(p)}`,p)),r===!1?g:{[r]:g}})};return i.propTypes={},i.filterProps=[t],i}function ai(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ci={m:"margin",p:"padding"},li={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ui=ai(e=>{if(e.length>2)if(Fr[e])e=Fr[e];else return[e];const[t,r]=e.split(""),n=ci[t],o=li[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),hr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hr,...gr];function ot(e,t,r,n){const o=It(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i),a=o[s];return i>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:()=>{}}function yr(e){return ot(e,"spacing",8)}function it(e,t){return typeof t=="string"||t==null?t:e(t)}function fi(e,t){return r=>e.reduce((n,o)=>(n[o]=it(t,r),n),{})}function di(e,t,r,n){if(!t.includes(r))return null;const o=ui(r),i=fi(o,n),s=e[r];return de(e,s,i)}function Cn(e,t){const r=yr(e.theme);return Object.keys(e).map(n=>di(e,t,n,r)).reduce(qe,{})}function z(e){return Cn(e,hr)}z.propTypes={};z.filterProps=hr;function H(e){return Cn(e,gr)}H.propTypes={};H.filterProps=gr;function wn(e=8,t=yr({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function _t(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?qe(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function re(e){return typeof e!="number"?e:`${e}px solid`}function ne(e,t){return V({prop:e,themeKey:"borders",transform:t})}const pi=ne("border",re),mi=ne("borderTop",re),hi=ne("borderRight",re),gi=ne("borderBottom",re),yi=ne("borderLeft",re),bi=ne("borderColor"),vi=ne("borderTopColor"),xi=ne("borderRightColor"),Si=ne("borderBottomColor"),Ci=ne("borderLeftColor"),wi=ne("outline",re),Ei=ne("outlineColor"),Bt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ot(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:it(t,n)});return de(e,e.borderRadius,r)}return null};Bt.propTypes={};Bt.filterProps=["borderRadius"];_t(pi,mi,hi,gi,yi,bi,vi,xi,Si,Ci,Bt,wi,Ei);const Nt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ot(e.theme,"spacing",8),r=n=>({gap:it(t,n)});return de(e,e.gap,r)}return null};Nt.propTypes={};Nt.filterProps=["gap"];const Mt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ot(e.theme,"spacing",8),r=n=>({columnGap:it(t,n)});return de(e,e.columnGap,r)}return null};Mt.propTypes={};Mt.filterProps=["columnGap"];const Dt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ot(e.theme,"spacing",8),r=n=>({rowGap:it(t,n)});return de(e,e.rowGap,r)}return null};Dt.propTypes={};Dt.filterProps=["rowGap"];const ki=V({prop:"gridColumn"}),Ti=V({prop:"gridRow"}),Pi=V({prop:"gridAutoFlow"}),$i=V({prop:"gridAutoColumns"}),Ri=V({prop:"gridAutoRows"}),Ai=V({prop:"gridTemplateColumns"}),Oi=V({prop:"gridTemplateRows"}),Ii=V({prop:"gridTemplateAreas"}),_i=V({prop:"gridArea"});_t(Nt,Mt,Dt,ki,Ti,Pi,$i,Ri,Ai,Oi,Ii,_i);function Me(e,t){return t==="grey"?t:e}const Bi=V({prop:"color",themeKey:"palette",transform:Me}),Ni=V({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Me}),Mi=V({prop:"backgroundColor",themeKey:"palette",transform:Me});_t(Bi,Ni,Mi);function Z(e){return e<=1&&e!==0?`${e*100}%`:e}const Di=V({prop:"width",transform:Z}),br=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Ot[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Z(r)}};return de(e,e.maxWidth,t)}return null};br.filterProps=["maxWidth"];const Fi=V({prop:"minWidth",transform:Z}),Li=V({prop:"height",transform:Z}),ji=V({prop:"maxHeight",transform:Z}),Wi=V({prop:"minHeight",transform:Z});V({prop:"size",cssProperty:"width",transform:Z});V({prop:"size",cssProperty:"height",transform:Z});const zi=V({prop:"boxSizing"});_t(Di,br,Fi,Li,ji,Wi,zi);const Ft={border:{themeKey:"borders",transform:re},borderTop:{themeKey:"borders",transform:re},borderRight:{themeKey:"borders",transform:re},borderBottom:{themeKey:"borders",transform:re},borderLeft:{themeKey:"borders",transform:re},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:re},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bt},color:{themeKey:"palette",transform:Me},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Me},backgroundColor:{themeKey:"palette",transform:Me},p:{style:H},pt:{style:H},pr:{style:H},pb:{style:H},pl:{style:H},px:{style:H},py:{style:H},padding:{style:H},paddingTop:{style:H},paddingRight:{style:H},paddingBottom:{style:H},paddingLeft:{style:H},paddingX:{style:H},paddingY:{style:H},paddingInline:{style:H},paddingInlineStart:{style:H},paddingInlineEnd:{style:H},paddingBlock:{style:H},paddingBlockStart:{style:H},paddingBlockEnd:{style:H},m:{style:z},mt:{style:z},mr:{style:z},mb:{style:z},ml:{style:z},mx:{style:z},my:{style:z},margin:{style:z},marginTop:{style:z},marginRight:{style:z},marginBottom:{style:z},marginLeft:{style:z},marginX:{style:z},marginY:{style:z},marginInline:{style:z},marginInlineStart:{style:z},marginInlineEnd:{style:z},marginBlock:{style:z},marginBlockStart:{style:z},marginBlockEnd:{style:z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Nt},rowGap:{style:Dt},columnGap:{style:Mt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Z},maxWidth:{style:br},minWidth:{transform:Z},height:{transform:Z},maxHeight:{transform:Z},minHeight:{transform:Z},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Hi(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Vi(e,t){return typeof e=="function"?e(t):e}function Gi(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:d,style:p}=a;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const g=It(o,u)||{};return p?p(s):de(s,n,h=>{let f=wt(g,d,h);return h===f&&typeof h=="string"&&(f=wt(g,d,`${r}${h==="default"?"":we(h)}`,h)),l===!1?f:{[l]:f}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??Ft;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const d=si(o.breakpoints),p=Object.keys(d);let g=d;return Object.keys(u).forEach(y=>{const h=Vi(u[y],o);if(h!=null)if(typeof h=="object")if(s[y])g=qe(g,e(y,h,o,s));else{const f=de({theme:o},h,x=>({[y]:x}));Hi(f,h)?g[y]=t({sx:h,theme:o,nested:!0}):g=qe(g,f)}else g=qe(g,e(y,h,o,s))}),!i&&o.modularCssLayers?{"@layer sx":Nr(o,Dr(p,g))}:Nr(o,Dr(p,g))}return Array.isArray(n)?n.map(a):a(n)}return t}const Fe=Gi();Fe.filterProps=["sx"];function Ui(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function vr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...s}=e,a=ei(r),l=wn(o);let u=te({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...oi,...i}},s);return u=ni(u),u.applyStyles=Ui,u=t.reduce((d,p)=>te(d,p),u),u.unstable_sxConfig={...Ft,...s?.unstable_sxConfig},u.unstable_sx=function(p){return Fe({sx:p,theme:this})},u}function Ki(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xi=/[A-Z]|^ms/g,qi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,En=function(t){return t.charCodeAt(1)===45},Lr=function(t){return t!=null&&typeof t!="boolean"},Kt=Co(function(e){return En(e)?e:e.replace(Xi,"-$&").toLowerCase()}),jr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qi,function(n,o,i){return pe={name:o,styles:i,next:pe},o})}return Yi[t]!==1&&!En(t)&&typeof r=="number"&&r!==0?r+"px":r};function Et(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return pe={name:o.name,styles:o.styles,next:pe},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)pe={name:s.name,styles:s.styles,next:pe},s=s.next;var a=i.styles+";";return a}return Qi(e,t,r)}}var l=r;return l}function Qi(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Et(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var a=s;Lr(a)&&(n+=Kt(i)+":"+jr(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Lr(s[l])&&(n+=Kt(i)+":"+jr(i,s[l])+";");else{var u=Et(e,t,s);switch(i){case"animation":case"animationName":{n+=Kt(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var Wr=/label:\s*([^\s;{]+)\s*(;|$)/g,pe;function Zi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";pe=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Et(r,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=Et(r,t,e[a]),n){var l=i;o+=l[a]}Wr.lastIndex=0;for(var u="",d;(d=Wr.exec(o))!==null;)u+="-"+d[1];var p=Ki(o)+u;return{name:p,styles:o,next:pe}}function Ji(e,t){return tr(e,t)}function es(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const zr=[];function Ee(e){return zr[0]=e,Zi(zr)}function ts(e){return Object.keys(e).length===0}function kn(e=null){const t=v.useContext(nt);return!t||ts(t)?e:t}const rs=vr();function ns(e=rs){return kn(e)}function os(e,t,r,n,o){const[i,s]=v.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return St(()=>{if(!r)return;const a=r(e),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,r]),i}const is={...Yn},Tn=is.useSyncExternalStore;function ss(e,t,r,n,o){const i=v.useCallback(()=>t,[t]),s=v.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return i},[i,e,n,o,r]),[a,l]=v.useMemo(()=>{if(r===null)return[i,()=>()=>{}];const d=r(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,r,e]);return Tn(l,a,s)}function Pn(e={}){const{themeId:t}=e;return function(n,o={}){let i=kn();i&&t&&(i=i[t]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=qo({name:"MuiUseMediaQuery",props:o,theme:i});let p=typeof n=="function"?n(i):n;return p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
2
|
+
`)),(Tn!==void 0?ss:os)(p,a,l,u,d)}}Pn();const xr="$$material",Tc=Pn({themeId:xr}),tt={black:"#000",white:"#fff"},$e={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Re={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ae={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Oe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ie={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ge={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},as={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Hr=e=>e,cs=()=>{let e=Hr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Hr}}},ls=cs(),us={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function We(e,t,r="Mui"){const n=us[t];return n?`${r}-${n}`:`${ls.generate(e)}-${t}`}function st(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=We(e,o,r)}),n}function $n(e){const{variants:t,...r}=e,n={variants:t,style:Ee(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ee(o.style))}),n}const fs=vr();function Yt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ce(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ds(e){return e?(t,r)=>r[e]:null}function ps(e,t,r){e.theme=gs(e.theme)?r:e.theme[t]||e.theme}function vt(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>vt(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Ce(n.style,r):n.style;else{const{variants:i,...s}=n;o=r?Ce(Ee(s),r):s}return Rn(e,n.variants,[o],r)}return n?.isProcessed?r?Ce(Ee(n.style),r):n.style:r?Ce(Ee(n),r):n}function Rn(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&e.ownerState?.[a]!==s.props[a])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Ce(Ee(s.style(o)),n):s.style(o))):r.push(n?Ce(Ee(s.style),n):s.style)}return r}function ms(e={}){const{themeId:t,defaultTheme:r=fs,rootShouldForwardProp:n=Yt,slotShouldForwardProp:o=Yt}=e;function i(a){ps(a,t,r)}return(a,l={})=>{es(a,S=>S.filter(C=>C!==Fe));const{name:u,slot:d,skipVariantsResolver:p,skipSx:g,overridesResolver:y=ds(bs(d)),...h}=l,f=u&&u.startsWith("Mui")||d?"components":"custom",x=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,P=g||!1;let $=Yt;d==="Root"||d==="root"?$=n:d?$=o:ys(a)&&($=void 0);const E=Ji(a,{shouldForwardProp:$,label:hs(),...h}),w=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(_){return vt(_,S,_.theme.modularCssLayers?f:void 0)};if(fe(S)){const C=$n(S);return function(O){return C.variants?vt(O,C,O.theme.modularCssLayers?f:void 0):O.theme.modularCssLayers?Ce(C.style,f):C.style}}return S},A=(...S)=>{const C=[],_=S.map(w),O=[];if(C.push(i),u&&y&&O.push(function(k){const T=k.theme.components?.[u]?.styleOverrides;if(!T)return null;const R={};for(const U in T)R[U]=vt(k,T[U],k.theme.modularCssLayers?"theme":void 0);return y(k,R)}),u&&!x&&O.push(function(k){const T=k.theme?.components?.[u]?.variants;return T?Rn(k,T,[],k.theme.modularCssLayers?"theme":void 0):null}),P||O.push(Fe),Array.isArray(_[0])){const c=_.shift(),k=new Array(C.length).fill(""),b=new Array(O.length).fill("");let T;T=[...k,...c,...b],T.raw=[...k,...c.raw,...b],C.unshift(T)}const M=[...C,..._,...O],L=E(...M);return a.muiName&&(L.muiName=a.muiName),L};return E.withConfig&&(A.withConfig=E.withConfig),A}}function hs(e,t){return void 0}function gs(e){for(const t in e)return!1;return!0}function ys(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bs(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function vs(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Sr(e,t=0,r=1){return vs(e,t,r)}function xs(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function he(e){if(e.type)return e;if(e.charAt(0)==="#")return he(xs(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ke(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ke(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Ss=e=>{const t=he(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Ke=(e,t)=>{try{return Ss(e)}catch{return e}};function Lt(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function An(e){e=he(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(u,d=(u+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Lt({type:a,values:l})}function rr(e){e=he(e);let t=e.type==="hsl"||e.type==="hsla"?he(An(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Cs(e,t){const r=rr(e),n=rr(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function kt(e,t){return e=he(e),t=Sr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Lt(e)}function ve(e,t,r){try{return kt(e,t)}catch{return e}}function jt(e,t){if(e=he(e),t=Sr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Lt(e)}function D(e,t,r){try{return jt(e,t)}catch{return e}}function Wt(e,t){if(e=he(e),t=Sr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Lt(e)}function F(e,t,r){try{return Wt(e,t)}catch{return e}}function ws(e,t=.15){return rr(e)>.5?jt(e,t):Wt(e,t)}function pt(e,t,r){try{return ws(e,t)}catch{return e}}const Es=v.createContext(),ks=()=>v.useContext(Es)??!1,Ts=v.createContext(void 0);function Ps(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ct(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ct(o,n,t.components.mergeClassNameAndStyle):n}function $s({props:e,name:t}){const r=v.useContext(Ts);return Ps({props:e,name:t,theme:{components:r}})}const Vr={theme:void 0};function Rs(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Vr.theme=o.theme,i=$n(e(Vr)),t=i,r=o.theme),i}}function As(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Gr=(e,t,r,n=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Os=(e,t,r)=>{function n(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!r||r&&!r([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}n(e)},Is=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xt(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},s={};return Os(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(a,l))){const d=`--${r?`${r}-`:""}${a.join("-")}`,p=Is(a,l);Object.assign(o,{[d]:p}),Gr(i,a,`var(${d})`,u),Gr(s,a,`var(${d}, ${p})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function _s(e,t={}){const{getSelector:r=P,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...u}=e,{vars:d,css:p,varsWithDefaults:g}=Xt(u,t);let y=g;const h={},{[l]:f,...x}=s;if(Object.entries(x||{}).forEach(([w,A])=>{const{vars:S,css:C,varsWithDefaults:_}=Xt(A,t);y=te(y,_),h[w]={css:C,vars:S}}),f){const{css:w,vars:A,varsWithDefaults:S}=Xt(f,t);y=te(y,S),h[l]={css:w,vars:A}}function P(w,A){let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),w){if(S==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${s[w]?.palette?.mode||w})`]:{":root":A}};if(S)return e.defaultColorScheme===w?`:root, ${S.replace("%s",String(w))}`:S.replace("%s",String(w))}return":root"}return{vars:y,generateThemeVars:()=>{let w={...d};return Object.entries(h).forEach(([,{vars:A}])=>{w=te(w,A)}),w},generateStyleSheets:()=>{const w=[],A=e.defaultColorScheme||"light";function S(O,M){Object.keys(M).length&&w.push(typeof O=="string"?{[O]:{...M}}:O)}S(r(void 0,{...p}),p);const{[A]:C,..._}=h;if(C){const{css:O}=C,M=s[A]?.palette?.mode,L=!n&&M?{colorScheme:M,...O}:{...O};S(r(A,{...L}),L)}return Object.entries(_).forEach(([O,{css:M}])=>{const L=s[O]?.palette?.mode,c=!n&&L?{colorScheme:L,...M}:{...M};S(r(O,{...c}),c)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function Bs(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function at(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(s+=(a===!0?"":" ")+t(u),a=!1,r&&r[u]&&(s+=" "+r[u]))}n[o]=s}return n}function On(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tt.white,default:tt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const In=On();function _n(){return{text:{primary:tt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const nr=_n();function Ur(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Wt(e.main,o):t==="dark"&&(e.dark=jt(e.main,i)))}function Kr(e,t,r,n,o){const i=o.light||o,s=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function Ns(e="light"){return e==="dark"?{main:Ae[200],light:Ae[50],dark:Ae[400]}:{main:Ae[700],light:Ae[400],dark:Ae[800]}}function Ms(e="light"){return e==="dark"?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[500],light:Re[300],dark:Re[700]}}function Ds(e="light"){return e==="dark"?{main:$e[500],light:$e[300],dark:$e[700]}:{main:$e[700],light:$e[400],dark:$e[800]}}function Fs(e="light"){return e==="dark"?{main:Oe[400],light:Oe[300],dark:Oe[700]}:{main:Oe[700],light:Oe[500],dark:Oe[900]}}function Ls(e="light"){return e==="dark"?{main:Ie[400],light:Ie[300],dark:Ie[700]}:{main:Ie[800],light:Ie[500],dark:Ie[900]}}function js(e="light"){return e==="dark"?{main:Ge[400],light:Ge[300],dark:Ge[700]}:{main:"#ed6c02",light:Ge[500],dark:Ge[900]}}function Ws(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Cr(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,s=e.primary||Ns(t),a=e.secondary||Ms(t),l=e.error||Ds(t),u=e.info||Fs(t),d=e.success||Ls(t),p=e.warning||js(t);function g(x){return o?Ws(x):Cs(x,nr.text.primary)>=r?nr.text.primary:In.text.primary}const y=({color:x,name:P,mainShade:$=500,lightShade:E=300,darkShade:w=700})=>{if(x={...x},!x.main&&x[$]&&(x.main=x[$]),!x.hasOwnProperty("main"))throw new Error(ke(11,P?` (${P})`:"",$));if(typeof x.main!="string")throw new Error(ke(12,P?` (${P})`:"",JSON.stringify(x.main)));return o?(Kr(o,x,"light",E,n),Kr(o,x,"dark",w,n)):(Ur(x,"light",E,n),Ur(x,"dark",w,n)),x.contrastText||(x.contrastText=g(x.main)),x};let h;return t==="light"?h=On():t==="dark"&&(h=_n()),te({common:{...tt},mode:t,primary:y({color:s,name:"primary"}),secondary:y({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:l,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:as,contrastThreshold:r,getContrastText:g,augmentColor:y,tonalOffset:n,...h},i)}function zs(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Hs(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Vs(e){return Math.round(e*1e5)/1e5}const Yr={textTransform:"uppercase"},Xr='"Roboto", "Helvetica", "Arial", sans-serif';function Gs(e,t){const{fontFamily:r=Xr,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t,g=n/14,y=d||(x=>`${x/l*g}rem`),h=(x,P,$,E,w)=>({fontFamily:r,fontWeight:x,fontSize:y(P),lineHeight:$,...r===Xr?{letterSpacing:`${Vs(E/P)}em`}:{},...w,...u}),f={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,Yr),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Yr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return te({htmlFontSize:l,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...f},p,{clone:!1})}const Us=.2,Ks=.14,Ys=.12;function W(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Us})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ks})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ys})`].join(",")}const Xs=["none",W(0,2,1,-1,0,1,1,0,0,1,3,0),W(0,3,1,-2,0,2,2,0,0,1,5,0),W(0,3,3,-2,0,3,4,0,0,1,8,0),W(0,2,4,-1,0,4,5,0,0,1,10,0),W(0,3,5,-1,0,5,8,0,0,1,14,0),W(0,3,5,-1,0,6,10,0,0,1,18,0),W(0,4,5,-2,0,7,10,1,0,2,16,1),W(0,5,5,-3,0,8,10,1,0,3,14,2),W(0,5,6,-3,0,9,12,1,0,3,16,2),W(0,6,6,-3,0,10,14,1,0,4,18,3),W(0,6,7,-4,0,11,15,1,0,4,20,3),W(0,7,8,-4,0,12,17,2,0,5,22,4),W(0,7,8,-4,0,13,19,2,0,5,24,4),W(0,7,9,-4,0,14,21,2,0,5,26,4),W(0,8,9,-5,0,15,22,2,0,6,28,5),W(0,8,10,-5,0,16,24,2,0,6,30,5),W(0,8,11,-5,0,17,26,2,0,6,32,5),W(0,9,11,-5,0,18,28,2,0,7,34,6),W(0,9,12,-6,0,19,29,2,0,7,36,6),W(0,10,13,-6,0,20,31,3,0,8,38,7),W(0,10,13,-6,0,21,33,3,0,8,40,7),W(0,10,14,-6,0,22,35,3,0,8,42,7),W(0,11,14,-7,0,23,36,3,0,9,44,8),W(0,11,15,-7,0,24,38,3,0,9,46,8)],qs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Qs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qr(e){return`${Math.round(e)}ms`}function Zs(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Js(e){const t={...qs,...e.easing},r={...Qs,...e.duration};return{getAutoHeightDuration:Zs,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:a=t.easeInOut,delay:l=0,...u}=i;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:qr(s)} ${a} ${typeof l=="string"?l:qr(l)}`).join(",")},...e,easing:t,duration:r}}const ea={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ta(e){return fe(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Bn(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[s,a]=o[i];!ta(a)||s.startsWith("unstable_")?delete n[s]:fe(a)&&(n[s]={...a},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
3
|
+
|
|
4
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
5
|
+
|
|
6
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
7
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
8
|
+
|
|
9
|
+
export default theme;`}function Qr(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const ra=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function na(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:kt(t,ra(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Qr(r)})`:Wt(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Qr(r)})`:jt(t,r)}})}function or(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ke(20));const p=Cr({...i,colorSpace:u}),g=vr(e);let y=te(g,{mixins:Hs(g.breakpoints,n),palette:p,shadows:Xs.slice(),typography:Gs(p,a),transitions:Js(s),zIndex:{...ea}});return y=te(y,d),y=t.reduce((h,f)=>te(h,f),y),y.unstable_sxConfig={...Ft,...d?.unstable_sxConfig},y.unstable_sx=function(f){return Fe({sx:f,theme:this})},y.toRuntimeSource=Bn,na(y),y}function ir(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const oa=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ir(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Nn(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Mn(e){return e==="dark"?oa:[]}function ia(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,s=Cr({...t,colorSpace:o});return{palette:s,opacity:{...Nn(s.mode),...r},overlays:n||Mn(s.mode),...i}}function sa(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const aa=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ca=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return aa(e.cssVarPrefix).forEach(a=>{s[a]=r[a],delete r[a]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:i?{[i.replace("%s",t)]:s,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function la(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function m(e,t,r){!e[t]&&r&&(e[t]=r)}function Ye(e){return typeof e!="string"||!e.startsWith("hsl")?e:An(e)}function ue(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ke(Ye(e[t])))}function ua(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ie=e=>{try{return e()}catch{}},fa=(e="mui")=>As(e);function qt(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=ia({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:s,...a}=or({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...Nn(i),...r?.opacity},overlays:r?.overlays||Mn(i)},a}function da(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=sa,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(r)[0],g=n||(r.light&&p!=="light"?"light":p),y=fa(i),{[g]:h,light:f,dark:x,...P}=r,$={...P};let E=h;if((g==="dark"&&!("dark"in r)||g==="light"&&!("light"in r))&&(E=!0),!E)throw new Error(ke(21,g));let w;s&&(w="oklch");const A=qt(w,$,E,d,g);f&&!$.light&&qt(w,$,f,void 0,"light"),x&&!$.dark&&qt(w,$,x,void 0,"dark");let S={defaultColorScheme:g,...A,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:y,colorSchemes:$,font:{...zs(A.typography),...A.font},spacing:ua(d.spacing)};Object.keys(S.colorSchemes).forEach(L=>{const c=S.colorSchemes[L].palette,k=T=>{const R=T.split("-"),U=R[1],I=R[2];return y(T,c[U][I])};c.mode==="light"&&(m(c.common,"background","#fff"),m(c.common,"onBackground","#000")),c.mode==="dark"&&(m(c.common,"background","#000"),m(c.common,"onBackground","#fff"));function b(T,R,U){if(w){let I;return T===ve&&(I=`transparent ${((1-U)*100).toFixed(0)}%`),T===D&&(I=`#000 ${(U*100).toFixed(0)}%`),T===F&&(I=`#fff ${(U*100).toFixed(0)}%`),`color-mix(in ${w}, ${R}, ${I})`}return T(R,U)}if(la(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){m(c.Alert,"errorColor",b(D,c.error.light,.6)),m(c.Alert,"infoColor",b(D,c.info.light,.6)),m(c.Alert,"successColor",b(D,c.success.light,.6)),m(c.Alert,"warningColor",b(D,c.warning.light,.6)),m(c.Alert,"errorFilledBg",k("palette-error-main")),m(c.Alert,"infoFilledBg",k("palette-info-main")),m(c.Alert,"successFilledBg",k("palette-success-main")),m(c.Alert,"warningFilledBg",k("palette-warning-main")),m(c.Alert,"errorFilledColor",ie(()=>c.getContrastText(c.error.main))),m(c.Alert,"infoFilledColor",ie(()=>c.getContrastText(c.info.main))),m(c.Alert,"successFilledColor",ie(()=>c.getContrastText(c.success.main))),m(c.Alert,"warningFilledColor",ie(()=>c.getContrastText(c.warning.main))),m(c.Alert,"errorStandardBg",b(F,c.error.light,.9)),m(c.Alert,"infoStandardBg",b(F,c.info.light,.9)),m(c.Alert,"successStandardBg",b(F,c.success.light,.9)),m(c.Alert,"warningStandardBg",b(F,c.warning.light,.9)),m(c.Alert,"errorIconColor",k("palette-error-main")),m(c.Alert,"infoIconColor",k("palette-info-main")),m(c.Alert,"successIconColor",k("palette-success-main")),m(c.Alert,"warningIconColor",k("palette-warning-main")),m(c.AppBar,"defaultBg",k("palette-grey-100")),m(c.Avatar,"defaultBg",k("palette-grey-400")),m(c.Button,"inheritContainedBg",k("palette-grey-300")),m(c.Button,"inheritContainedHoverBg",k("palette-grey-A100")),m(c.Chip,"defaultBorder",k("palette-grey-400")),m(c.Chip,"defaultAvatarColor",k("palette-grey-700")),m(c.Chip,"defaultIconColor",k("palette-grey-700")),m(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),m(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),m(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),m(c.LinearProgress,"primaryBg",b(F,c.primary.main,.62)),m(c.LinearProgress,"secondaryBg",b(F,c.secondary.main,.62)),m(c.LinearProgress,"errorBg",b(F,c.error.main,.62)),m(c.LinearProgress,"infoBg",b(F,c.info.main,.62)),m(c.LinearProgress,"successBg",b(F,c.success.main,.62)),m(c.LinearProgress,"warningBg",b(F,c.warning.main,.62)),m(c.Skeleton,"bg",w?b(ve,c.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),m(c.Slider,"primaryTrack",b(F,c.primary.main,.62)),m(c.Slider,"secondaryTrack",b(F,c.secondary.main,.62)),m(c.Slider,"errorTrack",b(F,c.error.main,.62)),m(c.Slider,"infoTrack",b(F,c.info.main,.62)),m(c.Slider,"successTrack",b(F,c.success.main,.62)),m(c.Slider,"warningTrack",b(F,c.warning.main,.62));const T=w?b(D,c.background.default,.6825):pt(c.background.default,.8);m(c.SnackbarContent,"bg",T),m(c.SnackbarContent,"color",ie(()=>w?nr.text.primary:c.getContrastText(T))),m(c.SpeedDialAction,"fabHoverBg",pt(c.background.paper,.15)),m(c.StepConnector,"border",k("palette-grey-400")),m(c.StepContent,"border",k("palette-grey-400")),m(c.Switch,"defaultColor",k("palette-common-white")),m(c.Switch,"defaultDisabledColor",k("palette-grey-100")),m(c.Switch,"primaryDisabledColor",b(F,c.primary.main,.62)),m(c.Switch,"secondaryDisabledColor",b(F,c.secondary.main,.62)),m(c.Switch,"errorDisabledColor",b(F,c.error.main,.62)),m(c.Switch,"infoDisabledColor",b(F,c.info.main,.62)),m(c.Switch,"successDisabledColor",b(F,c.success.main,.62)),m(c.Switch,"warningDisabledColor",b(F,c.warning.main,.62)),m(c.TableCell,"border",b(F,b(ve,c.divider,1),.88)),m(c.Tooltip,"bg",b(ve,c.grey[700],.92))}if(c.mode==="dark"){m(c.Alert,"errorColor",b(F,c.error.light,.6)),m(c.Alert,"infoColor",b(F,c.info.light,.6)),m(c.Alert,"successColor",b(F,c.success.light,.6)),m(c.Alert,"warningColor",b(F,c.warning.light,.6)),m(c.Alert,"errorFilledBg",k("palette-error-dark")),m(c.Alert,"infoFilledBg",k("palette-info-dark")),m(c.Alert,"successFilledBg",k("palette-success-dark")),m(c.Alert,"warningFilledBg",k("palette-warning-dark")),m(c.Alert,"errorFilledColor",ie(()=>c.getContrastText(c.error.dark))),m(c.Alert,"infoFilledColor",ie(()=>c.getContrastText(c.info.dark))),m(c.Alert,"successFilledColor",ie(()=>c.getContrastText(c.success.dark))),m(c.Alert,"warningFilledColor",ie(()=>c.getContrastText(c.warning.dark))),m(c.Alert,"errorStandardBg",b(D,c.error.light,.9)),m(c.Alert,"infoStandardBg",b(D,c.info.light,.9)),m(c.Alert,"successStandardBg",b(D,c.success.light,.9)),m(c.Alert,"warningStandardBg",b(D,c.warning.light,.9)),m(c.Alert,"errorIconColor",k("palette-error-main")),m(c.Alert,"infoIconColor",k("palette-info-main")),m(c.Alert,"successIconColor",k("palette-success-main")),m(c.Alert,"warningIconColor",k("palette-warning-main")),m(c.AppBar,"defaultBg",k("palette-grey-900")),m(c.AppBar,"darkBg",k("palette-background-paper")),m(c.AppBar,"darkColor",k("palette-text-primary")),m(c.Avatar,"defaultBg",k("palette-grey-600")),m(c.Button,"inheritContainedBg",k("palette-grey-800")),m(c.Button,"inheritContainedHoverBg",k("palette-grey-700")),m(c.Chip,"defaultBorder",k("palette-grey-700")),m(c.Chip,"defaultAvatarColor",k("palette-grey-300")),m(c.Chip,"defaultIconColor",k("palette-grey-300")),m(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),m(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),m(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),m(c.LinearProgress,"primaryBg",b(D,c.primary.main,.5)),m(c.LinearProgress,"secondaryBg",b(D,c.secondary.main,.5)),m(c.LinearProgress,"errorBg",b(D,c.error.main,.5)),m(c.LinearProgress,"infoBg",b(D,c.info.main,.5)),m(c.LinearProgress,"successBg",b(D,c.success.main,.5)),m(c.LinearProgress,"warningBg",b(D,c.warning.main,.5)),m(c.Skeleton,"bg",w?b(ve,c.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),m(c.Slider,"primaryTrack",b(D,c.primary.main,.5)),m(c.Slider,"secondaryTrack",b(D,c.secondary.main,.5)),m(c.Slider,"errorTrack",b(D,c.error.main,.5)),m(c.Slider,"infoTrack",b(D,c.info.main,.5)),m(c.Slider,"successTrack",b(D,c.success.main,.5)),m(c.Slider,"warningTrack",b(D,c.warning.main,.5));const T=w?b(F,c.background.default,.985):pt(c.background.default,.98);m(c.SnackbarContent,"bg",T),m(c.SnackbarContent,"color",ie(()=>w?In.text.primary:c.getContrastText(T))),m(c.SpeedDialAction,"fabHoverBg",pt(c.background.paper,.15)),m(c.StepConnector,"border",k("palette-grey-600")),m(c.StepContent,"border",k("palette-grey-600")),m(c.Switch,"defaultColor",k("palette-grey-300")),m(c.Switch,"defaultDisabledColor",k("palette-grey-600")),m(c.Switch,"primaryDisabledColor",b(D,c.primary.main,.55)),m(c.Switch,"secondaryDisabledColor",b(D,c.secondary.main,.55)),m(c.Switch,"errorDisabledColor",b(D,c.error.main,.55)),m(c.Switch,"infoDisabledColor",b(D,c.info.main,.55)),m(c.Switch,"successDisabledColor",b(D,c.success.main,.55)),m(c.Switch,"warningDisabledColor",b(D,c.warning.main,.55)),m(c.TableCell,"border",b(D,b(ve,c.divider,1),.68)),m(c.Tooltip,"bg",b(ve,c.grey[700],.92))}ue(c.background,"default"),ue(c.background,"paper"),ue(c.common,"background"),ue(c.common,"onBackground"),ue(c,"divider"),Object.keys(c).forEach(T=>{const R=c[T];T!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&m(c[T],"mainChannel",Ke(Ye(R.main))),R.light&&m(c[T],"lightChannel",Ke(Ye(R.light))),R.dark&&m(c[T],"darkChannel",Ke(Ye(R.dark))),R.contrastText&&m(c[T],"contrastTextChannel",Ke(Ye(R.contrastText))),T==="text"&&(ue(c[T],"primary"),ue(c[T],"secondary")),T==="action"&&(R.active&&ue(c[T],"active"),R.selected&&ue(c[T],"selected")))})}),S=t.reduce((L,c)=>te(L,c),S);const C={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:ca(S),enableContrastVars:s},{vars:_,generateThemeVars:O,generateStyleSheets:M}=_s(S,C);return S.vars=_,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([L,c])=>{S[L]=c}),S.generateThemeVars=O,S.generateStyleSheets=M,S.generateSpacing=function(){return wn(d.spacing,yr(this))},S.getColorSchemeSelector=Bs(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...Ft,...d?.unstable_sxConfig},S.unstable_sx=function(c){return Fe({sx:c,theme:this})},S.toRuntimeSource=Bn,S}function Zr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Cr({...r===!0?{}:r.palette,mode:t})})}function pa(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...s}=e,a=i||"light",l=o?.[a],u={...o,...r?{[a]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return or(e,...t);let d=r;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const p=or({...e,palette:d},...t);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Zr(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Zr(p,"light",u.light)),p}return!r&&!("light"in u)&&a==="light"&&(u.light=!0),da({...s,colorSchemes:u,defaultColorScheme:a,...typeof n!="boolean"&&n},...t)}const Dn=pa();function zt(){const e=ns(Dn);return e[xr]||e}function ma(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fn=e=>ma(e)&&e!=="classes",ge=ms({themeId:xr,defaultTheme:Dn,rootShouldForwardProp:Fn});function Jr(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}const ct=Rs;function lt(e){return $s(e)}function ha(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Te(e){return e&&e.ownerDocument||document}function Le(e){return Te(e).defaultView||window}function en(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function tn(e){const t=v.useRef(e);return St(()=>{t.current=e}),v.useRef((...r)=>(0,t.current)(...r)).current}function ze(...e){const t=v.useRef(void 0),r=v.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(n);return typeof a=="function"?a:()=>{s(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return v.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function ga(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function ya(e,t){if(!e)return t;function r(s,a){const l={};return Object.keys(a).forEach(u=>{ga(u,a[u])&&typeof s[u]=="function"&&(l[u]=(...d)=>{s[u](...d),a[u](...d)})}),l}if(typeof e=="function"||typeof t=="function")return s=>{const a=typeof t=="function"?t(s):t,l=typeof e=="function"?e({...s,...a}):e,u=ee(s?.className,a?.className,l?.className),d=r(l,a);return{...a,...l,...d,...!!u&&{className:u},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const n=t,o=r(e,n),i=ee(n?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function sr(e,t){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},sr(e,t)}function ba(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sr(e,t)}const rn={disabled:!1},Ln=Ue.createContext(null);var va=function(t){return t.scrollTop},Xe="unmounted",xe="exited",Se="entering",Be="entered",ar="exiting",le=function(e){ba(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,a=s&&!s.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?a?(l=xe,i.appearStatus=Se):l=Be:n.unmountOnExit||n.mountOnEnter?l=Xe:l=xe,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Xe?{status:xe}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Se&&s!==Be&&(i=Se):(s===Se||s===Be)&&(i=ar)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Se){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ft.findDOMNode(this);s&&va(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xe&&this.setState({status:Xe})},r.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[ft.findDOMNode(this),a],u=l[0],d=l[1],p=this.getTimeouts(),g=a?p.appear:p.enter;if(!o&&!s||rn.disabled){this.safeSetState({status:Be},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Se},function(){i.props.onEntering(u,d),i.onTransitionEnd(g,function(){i.safeSetState({status:Be},function(){i.props.onEntered(u,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ft.findDOMNode(this);if(!i||rn.disabled){this.safeSetState({status:xe},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ar},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:xe},function(){o.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ft.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Xe)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=qn(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ue.createElement(Ln.Provider,{value:null},typeof s=="function"?s(o,a):Ue.cloneElement(Ue.Children.only(s),a))},t}(Ue.Component);le.contextType=Ln;le.propTypes={};function _e(){}le.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_e,onEntering:_e,onEntered:_e,onExit:_e,onExiting:_e,onExited:_e};le.UNMOUNTED=Xe;le.EXITED=xe;le.ENTERING=Se;le.ENTERED=Be;le.EXITING=ar;const jn=e=>e.scrollTop;function Tt(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function xa(e){return typeof e=="string"}function Sa(e,t,r){return e===void 0||xa(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Ca(e,t,r){return typeof e=="function"?e(t,r):e}function Wn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function nn(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function wa(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const y=ee(r?.className,i,o?.className,n?.className),h={...r?.style,...o?.style,...n?.style},f={...r,...o,...n};return y.length>0&&(f.className=y),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:void 0}}const s=Wn({...o,...n}),a=nn(n),l=nn(o),u=t(s),d=ee(u?.className,r?.className,i,o?.className,n?.className),p={...u?.style,...r?.style,...o?.style,...n?.style},g={...u,...r,...l,...a};return d.length>0&&(g.className=d),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:u.ref}}function me(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...g}=i,y=d[e]||n,h=Ca(p[e],o),{props:{component:f,...x},internalRef:P}=wa({className:r,...l,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:h}),$=ze(P,h?.ref,t.ref),E=e==="root"?f||u:f,w=Sa(y,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...x,...E&&!a&&{as:E},...E&&a&&{component:E},ref:$},o);return[y,w]}function Ea(e){return We("MuiPaper",e)}st("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const ka=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return at(i,Ea,o)},Ta=ge("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ct(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Pa=v.forwardRef(function(t,r){const n=lt({props:t,name:"MuiPaper"}),o=zt(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...d}=n,p={...n,component:s,elevation:a,square:l,variant:u},g=ka(p);return Y.jsx(Ta,{as:s,ownerState:p,className:ee(g.root,i),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${kt("#fff",ir(a))}, ${kt("#fff",ir(a))})`}},...d.style}})});function Ht(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}function $a(e){return typeof e=="function"?e():e}const Ra=v.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[s,a]=v.useState(null),l=ze(v.isValidElement(n)?Ht(n):null,r);if(St(()=>{i||a($a(o)||document.body)},[o,i]),St(()=>{if(s&&!i)return en(r,s),()=>{en(r,null)}},[r,s,i]),i){if(v.isValidElement(n)){const u={ref:l};return v.cloneElement(n,u)}return n}return s&&Qn.createPortal(n,s)}),Aa={entering:{opacity:1},entered:{opacity:1}},Oa=v.forwardRef(function(t,r){const n=zt(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:d,onEntered:p,onEntering:g,onExit:y,onExited:h,onExiting:f,style:x,timeout:P=o,TransitionComponent:$=le,...E}=t,w=v.useRef(null),A=ze(w,Ht(a),r),S=b=>T=>{if(b){const R=w.current;T===void 0?b(R):b(R,T)}},C=S(g),_=S((b,T)=>{jn(b);const R=Tt({style:x,timeout:P,easing:l},{mode:"enter"});b.style.webkitTransition=n.transitions.create("opacity",R),b.style.transition=n.transitions.create("opacity",R),d&&d(b,T)}),O=S(p),M=S(f),L=S(b=>{const T=Tt({style:x,timeout:P,easing:l},{mode:"exit"});b.style.webkitTransition=n.transitions.create("opacity",T),b.style.transition=n.transitions.create("opacity",T),y&&y(b)}),c=S(h),k=b=>{i&&i(w.current,b)};return Y.jsx($,{appear:s,in:u,nodeRef:w,onEnter:_,onEntered:O,onEntering:C,onExit:L,onExited:c,onExiting:M,addEndListener:k,timeout:P,...E,children:(b,{ownerState:T,...R})=>v.cloneElement(a,{style:{opacity:0,visibility:b==="exited"&&!u?"hidden":void 0,...Aa[b],...x,...a.props.style},ref:A,...R})})});function Ia(e){return We("MuiBackdrop",e)}st("MuiBackdrop",["root","invisible"]);const _a=e=>{const{classes:t,invisible:r}=e;return at({root:["root",r&&"invisible"]},Ia,t)},Ba=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Na=v.forwardRef(function(t,r){const n=lt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:d={},slotProps:p={},slots:g={},TransitionComponent:y,transitionDuration:h,...f}=n,x={...n,component:s,invisible:a},P=_a(x),$={transition:y,root:u.Root,...g},E={...d,...p},w={component:s,slots:$,slotProps:E},[A,S]=me("root",{elementType:Ba,externalForwardedProps:w,className:ee(P.root,i),ownerState:x}),[C,_]=me("transition",{elementType:Oa,externalForwardedProps:w,ownerState:x});return Y.jsx(C,{in:l,timeout:h,...f,..._,children:Y.jsx(A,{"aria-hidden":!0,...S,classes:P,ref:r,children:o})})}),Ma=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t}),Da=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});function Fa(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function La(e){const t=Te(e);return t.body===e?Le(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Qe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function on(e){return parseInt(Le(e).getComputedStyle(e).paddingRight,10)||0}function ja(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function sn(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,s=>{const a=!i.includes(s),l=!ja(s);a&&l&&Qe(s,o)})}function Qt(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Wa(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(La(n)){const s=Fa(Le(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${on(n)+s}px`;const a=Te(n).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${on(l)+s}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=Te(n).body;else{const s=n.parentElement,a=Le(n);i=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function za(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ha{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Qe(t.modalRef,!1);const o=za(r);sn(r,t.mount,t.modalRef,o,!0);const i=Qt(this.containers,s=>s.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Qt(this.containers,i=>i.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=Wa(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Qt(this.containers,s=>s.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Qe(t.modalRef,r),sn(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Qe(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Va=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ga(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ua(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Ka(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ua(e))}function Ya(e){const t=[],r=[];return Array.from(e.querySelectorAll(Va)).forEach((n,o)=>{const i=Ga(n);i===-1||!Ka(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function Xa(){return!0}function qa(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ya,isEnabled:s=Xa,open:a}=e,l=v.useRef(!1),u=v.useRef(null),d=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(!1),h=v.useRef(null),f=ze(Ht(t),h),x=v.useRef(null);v.useEffect(()=>{!a||!h.current||(y.current=!r)},[r,a]),v.useEffect(()=>{if(!a||!h.current)return;const E=Te(h.current);return h.current.contains(E.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),y.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),v.useEffect(()=>{if(!a||!h.current)return;const E=Te(h.current),w=C=>{x.current=C,!(n||!s()||C.key!=="Tab")&&E.activeElement===h.current&&C.shiftKey&&(l.current=!0,d.current&&d.current.focus())},A=()=>{const C=h.current;if(C===null)return;if(!E.hasFocus()||!s()||l.current){l.current=!1;return}if(C.contains(E.activeElement)||n&&E.activeElement!==u.current&&E.activeElement!==d.current)return;if(E.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let _=[];if((E.activeElement===u.current||E.activeElement===d.current)&&(_=i(h.current)),_.length>0){const O=!!(x.current?.shiftKey&&x.current?.key==="Tab"),M=_[0],L=_[_.length-1];typeof M!="string"&&typeof L!="string"&&(O?L.focus():M.focus())}else C.focus()};E.addEventListener("focusin",A),E.addEventListener("keydown",w,!0);const S=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(S),E.removeEventListener("focusin",A),E.removeEventListener("keydown",w,!0)}},[r,n,o,s,a,i]);const P=E=>{p.current===null&&(p.current=E.relatedTarget),y.current=!0,g.current=E.target;const w=t.props.onFocus;w&&w(E)},$=E=>{p.current===null&&(p.current=E.relatedTarget),y.current=!0};return Y.jsxs(v.Fragment,{children:[Y.jsx("div",{tabIndex:a?0:-1,onFocus:$,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:f,onFocus:P}),Y.jsx("div",{tabIndex:a?0:-1,onFocus:$,ref:d,"data-testid":"sentinelEnd"})]})}function Qa(e){return typeof e=="function"?e():e}function Za(e){return e?e.props.hasOwnProperty("in"):!1}const an=()=>{},mt=new Ha;function Ja(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:u,rootRef:d}=e,p=v.useRef({}),g=v.useRef(null),y=v.useRef(null),h=ze(y,d),[f,x]=v.useState(!u),P=Za(a);let $=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&($=!1);const E=()=>Te(g.current),w=()=>(p.current.modalRef=y.current,p.current.mount=g.current,p.current),A=()=>{mt.mount(w(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},S=tn(()=>{const T=Qa(t)||E().body;mt.add(w(),T),y.current&&A()}),C=()=>mt.isTopModal(w()),_=tn(T=>{g.current=T,T&&(u&&C()?A():y.current&&Qe(y.current,$))}),O=v.useCallback(()=>{mt.remove(w(),$)},[$]);v.useEffect(()=>()=>{O()},[O]),v.useEffect(()=>{u?S():(!P||!o)&&O()},[u,O,P,o,S]);const M=T=>R=>{T.onKeyDown?.(R),!(R.key!=="Escape"||R.which===229||!C())&&(r||(R.stopPropagation(),l&&l(R,"escapeKeyDown")))},L=T=>R=>{T.onClick?.(R),R.target===R.currentTarget&&l&&l(R,"backdropClick")};return{getRootProps:(T={})=>{const R=Wn(e);delete R.onTransitionEnter,delete R.onTransitionExited;const U={...R,...T};return{role:"presentation",...U,onKeyDown:M(U),ref:h}},getBackdropProps:(T={})=>{const R=T;return{"aria-hidden":!0,...R,onClick:L(R),open:u}},getTransitionProps:()=>{const T=()=>{x(!1),i&&i()},R=()=>{x(!0),s&&s(),o&&O()};return{onEnter:Jr(T,a?.props.onEnter??an),onExited:Jr(R,a?.props.onExited??an)}},rootRef:h,portalRef:_,isTopModal:C,exited:f,hasTransition:P}}function ec(e){return We("MuiModal",e)}st("MuiModal",["root","hidden","backdrop"]);const tc=e=>{const{open:t,exited:r,classes:n}=e;return at({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ec,n)},rc=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),nc=ge(Na,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),oc=v.forwardRef(function(t,r){const n=lt({name:"MuiModal",props:t}),{BackdropComponent:o=nc,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:u,container:d,component:p,components:g={},componentsProps:y={},disableAutoFocus:h=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:x=!1,disablePortal:P=!1,disableRestoreFocus:$=!1,disableScrollLock:E=!1,hideBackdrop:w=!1,keepMounted:A=!1,onClose:S,onTransitionEnter:C,onTransitionExited:_,open:O,slotProps:M={},slots:L={},theme:c,...k}=n,b={...n,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:f,disableEscapeKeyDown:x,disablePortal:P,disableRestoreFocus:$,disableScrollLock:E,hideBackdrop:w,keepMounted:A},{getRootProps:T,getBackdropProps:R,getTransitionProps:U,portalRef:I,isTopModal:K,exited:oe,hasTransition:ut}=Ja({...b,rootRef:r}),ye={...b,exited:oe},Pe=tc(ye),be={};if(u.props.tabIndex===void 0&&(be.tabIndex="-1"),ut){const{onEnter:He,onExited:Vt}=U();be.onEnter=He,be.onExited=Vt}const wr={slots:{root:g.Root,backdrop:g.Backdrop,...L},slotProps:{...y,...M}},[Vn,Gn]=me("root",{ref:r,elementType:rc,externalForwardedProps:{...wr,...k,component:p},getSlotProps:T,ownerState:ye,className:ee(a,Pe?.root,!ye.open&&ye.exited&&Pe?.hidden)}),[Un,Kn]=me("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:wr,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:He=>R({...He,onClick:Vt=>{He?.onClick&&He.onClick(Vt)}}),className:ee(i?.className,Pe?.backdrop),ownerState:ye});return!A&&!O&&(!ut||oe)?null:Y.jsx(Ra,{ref:I,container:d,disablePortal:P,children:Y.jsxs(Vn,{...Gn,children:[!w&&o?Y.jsx(Un,{...Kn}):null,Y.jsx(qa,{disableEnforceFocus:f,disableAutoFocus:h,disableRestoreFocus:$,isEnabled:K,open:O,children:v.cloneElement(u,be)})]})})});function ic(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),i=Le(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=i.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+a-n.left}px)`:`translateX(${i.innerWidth+a-n.left}px)`:e==="right"?o?`translateX(-${n.right-o.left-a}px)`:`translateX(-${n.left+n.width-a}px)`:e==="up"?o?`translateY(${o.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:o?`translateY(-${n.top-o.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function sc(e){return typeof e=="function"?e():e}function ht(e,t,r){const n=sc(r),o=ic(e,t,n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const ac=v.forwardRef(function(t,r){const n=zt(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:u,direction:d="down",easing:p=o,in:g,onEnter:y,onEntered:h,onEntering:f,onExit:x,onExited:P,onExiting:$,style:E,timeout:w=i,TransitionComponent:A=le,...S}=t,C=v.useRef(null),_=ze(Ht(l),C,r),O=I=>K=>{I&&(K===void 0?I(C.current):I(C.current,K))},M=O((I,K)=>{ht(d,I,u),jn(I),y&&y(I,K)}),L=O((I,K)=>{const oe=Tt({timeout:w,style:E,easing:p},{mode:"enter"});I.style.webkitTransition=n.transitions.create("-webkit-transform",{...oe}),I.style.transition=n.transitions.create("transform",{...oe}),I.style.webkitTransform="none",I.style.transform="none",f&&f(I,K)}),c=O(h),k=O($),b=O(I=>{const K=Tt({timeout:w,style:E,easing:p},{mode:"exit"});I.style.webkitTransition=n.transitions.create("-webkit-transform",K),I.style.transition=n.transitions.create("transform",K),ht(d,I,u),x&&x(I)}),T=O(I=>{I.style.webkitTransition="",I.style.transition="",P&&P(I)}),R=I=>{s&&s(C.current,I)},U=v.useCallback(()=>{C.current&&ht(d,C.current,u)},[d,u]);return v.useEffect(()=>{if(g||d==="down"||d==="right")return;const I=ha(()=>{C.current&&ht(d,C.current,u)}),K=Le(C.current);return K.addEventListener("resize",I),()=>{I.clear(),K.removeEventListener("resize",I)}},[d,g,u]),v.useEffect(()=>{g||U()},[g,U]),Y.jsx(A,{nodeRef:C,onEnter:M,onEntered:c,onEntering:L,onExit:b,onExited:T,onExiting:k,addEndListener:R,appear:a,in:g,timeout:w,...S,children:(I,{ownerState:K,...oe})=>v.cloneElement(l,{ref:_,style:{visibility:I==="exited"&&!g?"hidden":void 0,...E,...l.props.style},...oe})})});function cc(e){return We("MuiDrawer",e)}st("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const zn=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},lc=e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root",`anchor${we(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${we(r)}`,n!=="temporary"&&`paperAnchorDocked${we(r)}`]};return at(o,cc,t)},uc=ge(oc,{name:"MuiDrawer",slot:"Root",overridesResolver:zn})(ct(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),fc=ge("div",{shouldForwardProp:Fn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:zn})({flex:"0 0 auto"}),dc=ge(Pa,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${we(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${we(r.anchor)}`]]}})(ct(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Hn={left:"right",right:"left",top:"down",bottom:"up"};function pc(e){return["left","right"].includes(e)}function mc({direction:e},t){return e==="rtl"&&pc(t)?Hn[t]:t}const Pc=v.forwardRef(function(t,r){const n=lt({props:t,name:"MuiDrawer"}),o=zt(),i=ks(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:u,className:d,elevation:p=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:y,...h}={},onClose:f,open:x=!1,PaperProps:P={},SlideProps:$,TransitionComponent:E,transitionDuration:w=s,variant:A="temporary",slots:S={},slotProps:C={},..._}=n,O=v.useRef(!1);v.useEffect(()=>{O.current=!0},[]);const M=mc({direction:i?"rtl":"ltr"},a),c={...n,anchor:a,elevation:p,open:x,variant:A,..._},k=lc(c),b={slots:{transition:E,...S},slotProps:{paper:P,transition:$,...C,backdrop:ya(C.backdrop||{...l,...y},{transitionDuration:w})}},[T,R]=me("root",{ref:r,elementType:uc,className:ee(k.root,k.modal,d),shouldForwardComponentProp:!0,ownerState:c,externalForwardedProps:{...b,..._,...h},additionalProps:{open:x,onClose:f,hideBackdrop:g,slots:{backdrop:b.slots.backdrop},slotProps:{backdrop:b.slotProps.backdrop}}}),[U,I]=me("paper",{elementType:dc,shouldForwardComponentProp:!0,className:ee(k.paper,P.className),ownerState:c,externalForwardedProps:b,additionalProps:{elevation:A==="temporary"?p:0,square:!0,...A==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[K,oe]=me("docked",{elementType:fc,ref:r,className:ee(k.root,k.docked,d),ownerState:c,externalForwardedProps:b,additionalProps:_}),[ut,ye]=me("transition",{elementType:ac,ownerState:c,externalForwardedProps:b,additionalProps:{in:x,direction:Hn[M],timeout:w,appear:O.current}}),Pe=Y.jsx(U,{...I,children:u});if(A==="permanent")return Y.jsx(K,{...oe,children:Pe});const be=Y.jsx(ut,{...ye,children:Pe});return A==="persistent"?Y.jsx(K,{...oe,children:be}):Y.jsx(T,{...R,children:be})});function hc(e){return We("MuiScopedCssBaseline",e)}st("MuiScopedCssBaseline",["root"]);const gc=e=>{const{classes:t}=e;return at({root:["root"]},hc,t)},yc=ge("div",{name:"MuiScopedCssBaseline",slot:"Root"})(ct(({theme:e})=>{const t={};return e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,n])=>{const o=e.getColorSchemeSelector(r);o.startsWith("@")?t[o]={colorScheme:n.palette?.mode}:t[`&${o.replace(/\s*&/,"")}`]={colorScheme:n.palette?.mode}}),{...Ma(e,!1),...Da(e),"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold},variants:[{props:{enableColorScheme:!0},style:e.vars?t:{colorScheme:e.palette.mode}}]}})),$c=v.forwardRef(function(t,r){const n=lt({props:t,name:"MuiScopedCssBaseline"}),{className:o,component:i="div",enableColorScheme:s,...a}=n,l={...n,component:i},u=gc(l);return Y.jsx(yc,{as:i,className:ee(u.root,o),ref:r,ownerState:l,...a})});export{Sc as C,Pc as D,Ec as G,$c as S,nt as T,Tc as a,zo as c,wc as j,kc as k,tr as n,Cc as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{e as x}from"./sentry-Gbc14BJL.js";import{M as A,s as N}from"./mixin-XJuHfVsL-BC7tPWd5.js";import{u}from"./hls-fD7GzkMr-CIetwlf6.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b62ae5aa-92f8-4b57-8848-eb44243a2373",t._sentryDebugIdIdentifier="sentry-dbid-b62ae5aa-92f8-4b57-8848-eb44243a2373")}catch{}})();const M=(L=A(N),class extends L{static shadowRootOptions={...L.shadowRootOptions};static getTemplateHTML=(t,e={})=>{const{src:i,...h}=t;return`
|
|
2
|
+
<script type="application/json" id="config">
|
|
3
|
+
${JSON.stringify(e.config||{})}
|
|
4
|
+
<\/script>
|
|
5
|
+
${L.getTemplateHTML(h)}
|
|
6
|
+
`};#t=null;#e=null;constructor(){super(),this.#s("config")}get config(){return this.#e}set config(t){this.#e=t}attributeChangedCallback(t,e,i){t!=="src"&&super.attributeChangedCallback(t,e,i),t==="src"&&e!=i&&this.load()}#n(){var t,e;(t=this.#t)==null||t.remove(),(e=this.nativeEl)==null||e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#i),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}async load(){var t,e;const i=!this.api;if(this.#n(),this.src){if(i&&!this.#e&&(this.#e=JSON.parse(((t=this.shadowRoot.getElementById("config"))==null?void 0:t.textContent)||"{}")),u.isSupported()){switch(await Promise.resolve(),this.api=new u({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{const l=()=>this.api.startLoad();this.nativeEl.addEventListener("play",l,{once:!0}),this.api.on(u.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",l)});break}case"metadata":{const l=this.api.config.maxBufferLength,a=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;const r=()=>{this.api.config.maxBufferLength=l,this.api.config.maxBufferSize=a};this.nativeEl.addEventListener("play",r,{once:!0}),this.api.on(u.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",r)}),this.api.startLoad();break}default:this.api.startLoad()}this.nativeEl.webkitCurrentPlaybackTargetIsWireless&&this.api.stopLoad(),this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#i),this.#t=document.createElement("source"),this.#t.setAttribute("type","application/x-mpegURL"),this.#t.setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append(this.#t);const h=new WeakMap;this.api.on(u.Events.MANIFEST_PARSED,(l,a)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(d=>{console.warn("Autoplay failed:",d)}),b();let r=this.videoTracks.getTrackById("main");r||(r=this.addVideoTrack("main"),r.id="main",r.selected=!0);for(const[d,n]of a.levels.entries()){const E=r.addRendition(n.url[0],n.width,n.height,n.videoCodec,n.bitrate);h.set(n,`${d}`),E.id=`${d}`}for(let[d,n]of a.audioTracks.entries()){const E=n.default?"main":"alternative",y=this.addAudioTrack(E,n.name,n.lang);y.id=`${d}`,n.default&&(y.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var l;const a=+((l=[...this.audioTracks].find(d=>d.enabled))==null?void 0:l.id),r=this.api.audioTracks.map(d=>d.id);a!=this.api.audioTrack&&r.includes(a)&&(this.api.audioTrack=a)}),this.api.on(u.Events.LEVELS_UPDATED,(l,a)=>{const r=this.videoTracks[this.videoTracks.selectedIndex??0];if(!r)return;const d=a.levels.map(n=>h.get(n));for(const n of this.videoRenditions)n.id&&!d.includes(n.id)&&r.removeRendition(n)});let v=null;this.api.on(u.Events.ERROR,(l,a)=>{a.type===u.ErrorTypes.NETWORK_ERROR&&a.details===u.ErrorDetails.FRAG_LOAD_ERROR&&(v=a.frag.level)}),this.api.on(u.Events.LEVEL_SWITCHED,(l,a)=>{const r=a.level;v!==null&&r<v&&(console.warn(`⚠️ hls.js downgraded quality from level ${v} to ${r} due to fragment load failure.`),this.videoRenditions.selectedIndex=r,v=null)});const w=l=>{const a=l.target.selectedIndex;a!=this.api.nextLevel&&(this.api.nextLevel=a)};(e=this.videoRenditions)==null||e.addEventListener("change",w);const b=()=>{for(const l of this.videoTracks)this.removeVideoTrack(l);for(const l of this.audioTracks)this.removeAudioTrack(l)};return void this.api.once(u.Events.DESTROYING,b)}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}#i=()=>{var t,e,i;(t=this.nativeEl)!=null&&t.webkitCurrentPlaybackTargetIsWireless?(e=this.api)==null||e.stopLoad():(i=this.api)==null||i.startLoad()};#s(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}});var L;globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",M);var D=M,_=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),H={className:"class",htmlFor:"for"};function S(t){return t.toLowerCase()}function O(t){return typeof t=="boolean"?t?"":void 0:typeof t=="function"||typeof t=="object"&&t!==null?void 0:t}function C(t,e,i){var h;t[e]=i,i==null&&e in(((h=globalThis.HTMLElement)==null?void 0:h.prototype)??{})&&t.removeAttribute(e)}var $=function({react:t,tagName:e,elementClass:i,events:h,displayName:v,defaultProps:w,toAttributeName:b=S,toAttributeValue:l=O}){const a=Number.parseInt(t.version)>=19,r=t.forwardRef((d,n)=>{var E,y;const p=t.useRef(null),k=t.useRef(new Map),R={},I={},m={},T={};for(const[s,o]of Object.entries(d)){if(_.has(s)){m[s]=o;continue}const c=b(H[s]??s);if(i.prototype&&s in i.prototype&&!(s in(((E=globalThis.HTMLElement)==null?void 0:E.prototype)??{}))&&!((y=i.observedAttributes)!=null&&y.some(g=>g===c))){T[s]=o;continue}if(s.startsWith("on")){R[s]=o;continue}const f=l(o);if(c&&f!=null&&(I[c]=String(f),a||(m[c]=f)),c&&a){const g=O(o);m[c]=f!==g?f:o}}if(typeof window<"u"){for(const s in R){const o=R[s],c=s.endsWith("Capture"),f=(h?.[s]??s.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const g=p?.current;if(g&&typeof o=="function")return g.addEventListener(f,o,c),()=>{g.removeEventListener(f,o,c)}},[p?.current,o])}t.useLayoutEffect(()=>{if(p.current===null)return;const s=new Map;for(const o in T)C(p.current,o,T[o]),k.current.delete(o),s.set(o,T[o]);for(const[o,c]of k.current)C(p.current,o,void 0);k.current=s})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:s,delegatesFocus:o}=i.shadowRootOptions,c=t.createElement("template",{shadowrootmode:s,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(I,d)},key:"ce-la-react-ssr-template-shadow-root"});m.children=[c,m.children]}return t.createElement(e,{...w,...m,ref:t.useCallback(s=>{p.current=s,typeof n=="function"?n(s):n!==null&&(n.current=s)},[n])},m.children)});return r.displayName=v??i.name,r}({react:x,tagName:"hls-video",elementClass:D,toAttributeName:t=>t==="muted"?"":t==="defaultMuted"?"muted":S(t)});export{$ as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{e as P}from"./sentry-Gbc14BJL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c2c877dd-ea61-444c-9f94-ecaff27e6c16",e._sentryDebugIdIdentifier="sentry-dbid-c2c877dd-ea61-444c-9f94-ecaff27e6c16")}catch{}})();const O=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,h={INIT:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},x={[h.INIT]:"emptied",[h.PAUSED]:"pause",[h.ENDED]:"ended",[h.PLAYING]:"play",[h.BUFFERING]:"waiting"};function M(e,t={}){const n={src:H(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(n["data-config"]=JSON.stringify(t.config)),`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display:inline-block;
|
|
5
|
+
min-width: 300px;
|
|
6
|
+
min-height: 150px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position:absolute;
|
|
11
|
+
top:0;
|
|
12
|
+
left:0;
|
|
13
|
+
width:100%;
|
|
14
|
+
height:100%;
|
|
15
|
+
border:0;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
<iframe ${function(o){let r="";for(const a in o){const u=o[a];r+=u===""?` ${E(a)}`:` ${E(a)}="${E(`${u}`)}"`}return r}(n)} title="TikTok video"></iframe>
|
|
19
|
+
`}function H(e,t={}){if(!e.src)return;const n=e.src.match(O);return`https://www.tiktok.com/player/v1/${n&&n[1]}?${function(o){return String(new URLSearchParams(function(r){let a={};for(let u in r){let p=r[u];p===!0||p===""?a[u]=1:p===!1?a[u]=0:p!=null&&(a[u]=p)}return a}(o)))}({controls:e.controls===""?null:0,autoplay:e.autoplay,muted:e.muted,loop:e.loop,rel:0,...t.config})}`}class y extends(globalThis.HTMLElement??class{}){static getTemplateHTML=M;static shadowRootOptions={mode:"open"};static get observedAttributes(){return["src","controls","loop","autoplay","muted"]}loadComplete=new A;#s;#i;#e=!1;#r=0;#a=!0;#l=null;#n=100;#u=0;#o;constructor(){super(),this.#f("config")}async load(){if(this.#s)return;this.shadowRoot||this.attachShadow(y.shadowRootOptions);const t=!this.#i;if(this.#i&&(this.loadComplete=new A),this.#i=!0,await(this.#s=Promise.resolve()),this.#s=null,this.#r=0,this.#e=!1,this.#a=!0,!this.src)return this.shadowRoot.innerHTML="",void globalThis.removeEventListener("message",this.#c);let n=this.shadowRoot.querySelector("iframe");const o=function(r){let a={};for(let u of r)a[u.name]=u.value;return a}(this.attributes);t&&n&&(this.#l=JSON.parse(n.getAttribute("data-config")||"{}")),n?.src&&n.src===H(o,this)||(this.shadowRoot.innerHTML=M(o,this),n=this.shadowRoot.querySelector("iframe")),this.#o=n,globalThis.addEventListener("message",this.#c)}async attributeChangedCallback(t,n,o){if(n!==o)switch(t){case"muted":await this.loadComplete,this.muted=o!=null;break;case"autoplay":case"controls":case"loop":case"src":return void this.load()}}get config(){return this.#l}set config(t){this.#l=t}#c=t=>{var n;if(t.source!==((n=this.#o)==null?void 0:n.contentWindow))return;const o=t.data;if(o?.["x-tiktok-player"])switch(o.type){case"onPlayerReady":this.loadComplete.resolve();break;case"onStateChange":{this.#a=[h.INIT,h.PAUSED,h.ENDED].includes(o.value);const r=x[o.value];r&&this.dispatchEvent(new Event(r));break}case"onCurrentTime":this.#r=o.value.currentTime,this.#u=o.value.duration,this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("timeupdate"));break;case"onVolumeChange":this.#n=o.value,this.dispatchEvent(new Event("volumechange"));break;case"onMute":this.#e=!!o.value,this.#n=o.value?0:this.#n,this.dispatchEvent(new Event("volumechange"));break;case"onError":this.dispatchEvent(new Event("error"));break;default:console.warn("Unhandled TikTok player message:",o)}};#t(t,n){var o;if(!((o=this.#o)!=null&&o.contentWindow))return;const r={"x-tiktok-player":!0,type:t,...n!==void 0?{value:n}:{}};this.#o.contentWindow.postMessage(r,"*")}async play(){await this.loadComplete,this.#t("play")}async pause(){await this.loadComplete,this.#t("pause")}async#d(t){await this.loadComplete,this.#t("seekTo",Number(t))}async#h(){await this.loadComplete,this.#t("mute")}async#p(){await this.loadComplete,this.#t("unMute")}get volume(){return this.#n/100}set volume(t){console.warn("Volume control is not supported for TikTok videos.")}get currentTime(){return this.#r}set currentTime(t){this.#d(t)}get muted(){return this.#e}set muted(t){this.#e=t,t?this.#h():this.#p()}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get paused(){return this.#a}get duration(){return this.#u}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t??"")}#f(t){if(Object.prototype.hasOwnProperty.call(this,t)){const n=this[t];delete this[t],this[t]=n}}}class A extends Promise{constructor(t=()=>{}){let n,o;super((r,a)=>{t(r,a),n=r,o=a}),this.resolve=n,this.reject=o}}function E(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}globalThis.customElements&&!globalThis.customElements.get("tiktok-video")&&globalThis.customElements.define("tiktok-video",y);var U=y,W=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),$={className:"class",htmlFor:"for"};function R(e){return e.toLowerCase()}function S(e){return typeof e=="boolean"?e?"":void 0:typeof e=="function"||typeof e=="object"&&e!==null?void 0:e}function D(e,t,n){var o;e[t]=n,n==null&&t in(((o=globalThis.HTMLElement)==null?void 0:o.prototype)??{})&&e.removeAttribute(t)}var _=function({react:e,tagName:t,elementClass:n,events:o,displayName:r,defaultProps:a,toAttributeName:u=R,toAttributeValue:p=S}){const T=Number.parseInt(e.version)>=19,k=e.forwardRef((C,v)=>{var L,N;const c=e.useRef(null),w=e.useRef(new Map),b={},I={},f={},g={};for(const[s,i]of Object.entries(C)){if(W.has(s)){f[s]=i;continue}const l=u($[s]??s);if(n.prototype&&s in n.prototype&&!(s in(((L=globalThis.HTMLElement)==null?void 0:L.prototype)??{}))&&!((N=n.observedAttributes)!=null&&N.some(m=>m===l))){g[s]=i;continue}if(s.startsWith("on")){b[s]=i;continue}const d=p(i);if(l&&d!=null&&(I[l]=String(d),T||(f[l]=d)),l&&T){const m=S(i);f[l]=d!==m?d:i}}if(typeof window<"u"){for(const s in b){const i=b[s],l=s.endsWith("Capture"),d=(o?.[s]??s.slice(2).toLowerCase()).slice(0,l?-7:void 0);e.useLayoutEffect(()=>{const m=c?.current;if(m&&typeof i=="function")return m.addEventListener(d,i,l),()=>{m.removeEventListener(d,i,l)}},[c?.current,i])}e.useLayoutEffect(()=>{if(c.current===null)return;const s=new Map;for(const i in g)D(c.current,i,g[i]),w.current.delete(i),s.set(i,g[i]);for(const[i,l]of w.current)D(c.current,i,void 0);w.current=s})}if(typeof window>"u"&&n?.getTemplateHTML&&n?.shadowRootOptions){const{mode:s,delegatesFocus:i}=n.shadowRootOptions,l=e.createElement("template",{shadowrootmode:s,shadowrootdelegatesfocus:i,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(I,C)},key:"ce-la-react-ssr-template-shadow-root"});f.children=[l,f.children]}return e.createElement(t,{...a,...f,ref:e.useCallback(s=>{c.current=s,typeof v=="function"?v(s):v!==null&&(v.current=s)},[v])},f.children)});return k.displayName=r??n.name,k}({react:P,tagName:"tiktok-video",elementClass:U,toAttributeName:e=>e==="muted"?"":e==="defaultMuted"?"muted":R(e)});export{_ as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{e as Re,b as $}from"./sentry-Gbc14BJL.js";(function(){try{var n=typeof window<"u"?window:typeof $<"u"?$:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="5387d7db-4e13-4cd7-95aa-d680ac4525b2",n._sentryDebugIdIdentifier="sentry-dbid-5387d7db-4e13-4cd7-95aa-d680ac4525b2")}catch{}})();function ce(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),e.push.apply(e,r)}return e}function le(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(e),!0).forEach(function(r){Q(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ce(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function N(){N=function(){return n};var n={},t=Object.prototype,e=t.hasOwnProperty,r=Object.defineProperty||function(f,c,p){f[c]=p.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(f,c,p){return Object.defineProperty(f,c,{value:p,enumerable:!0,configurable:!0,writable:!0}),f[c]}try{u({},"")}catch{u=function(c,p,E){return c[p]=E}}function v(f,c,p,E){var g=c&&c.prototype instanceof y?c:y,j=Object.create(g.prototype),C=new O(E||[]);return r(j,"_invoke",{value:h(f,p,C)}),j}function b(f,c,p){try{return{type:"normal",arg:f.call(c,p)}}catch(E){return{type:"throw",arg:E}}}n.wrap=v;var w={};function y(){}function T(){}function x(){}var P={};u(P,o,function(){return this});var A=Object.getPrototypeOf,S=A&&A(A(q([])));S&&S!==t&&e.call(S,o)&&(P=S);var _=x.prototype=y.prototype=Object.create(P);function M(f){["next","throw","return"].forEach(function(c){u(f,c,function(p){return this._invoke(c,p)})})}function l(f,c){function p(g,j,C,R){var F=b(f[g],f,j);if(F.type!=="throw"){var B=F.arg,G=B.value;return G&&typeof G=="object"&&e.call(G,"__await")?c.resolve(G.__await).then(function(W){p("next",W,C,R)},function(W){p("throw",W,C,R)}):c.resolve(G).then(function(W){B.value=W,C(B)},function(W){return p("throw",W,C,R)})}R(F.arg)}var E;r(this,"_invoke",{value:function(g,j){function C(){return new c(function(R,F){p(g,j,R,F)})}return E=E?E.then(C,C):C()}})}function h(f,c,p){var E="suspendedStart";return function(g,j){if(E==="executing")throw new Error("Generator is already running");if(E==="completed"){if(g==="throw")throw j;return{value:void 0,done:!0}}for(p.method=g,p.arg=j;;){var C=p.delegate;if(C){var R=d(C,p);if(R){if(R===w)continue;return R}}if(p.method==="next")p.sent=p._sent=p.arg;else if(p.method==="throw"){if(E==="suspendedStart")throw E="completed",p.arg;p.dispatchException(p.arg)}else p.method==="return"&&p.abrupt("return",p.arg);E="executing";var F=b(f,c,p);if(F.type==="normal"){if(E=p.done?"completed":"suspendedYield",F.arg===w)continue;return{value:F.arg,done:p.done}}F.type==="throw"&&(E="completed",p.method="throw",p.arg=F.arg)}}}function d(f,c){var p=c.method,E=f.iterator[p];if(E===void 0)return c.delegate=null,p==="throw"&&f.iterator.return&&(c.method="return",c.arg=void 0,d(f,c),c.method==="throw")||p!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+p+"' method")),w;var g=b(E,f.iterator,c.arg);if(g.type==="throw")return c.method="throw",c.arg=g.arg,c.delegate=null,w;var j=g.arg;return j?j.done?(c[f.resultName]=j.value,c.next=f.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,w):j:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,w)}function k(f){var c={tryLoc:f[0]};1 in f&&(c.catchLoc=f[1]),2 in f&&(c.finallyLoc=f[2],c.afterLoc=f[3]),this.tryEntries.push(c)}function m(f){var c=f.completion||{};c.type="normal",delete c.arg,f.completion=c}function O(f){this.tryEntries=[{tryLoc:"root"}],f.forEach(k,this),this.reset(!0)}function q(f){if(f){var c=f[o];if(c)return c.call(f);if(typeof f.next=="function")return f;if(!isNaN(f.length)){var p=-1,E=function g(){for(;++p<f.length;)if(e.call(f,p))return g.value=f[p],g.done=!1,g;return g.value=void 0,g.done=!0,g};return E.next=E}}return{next:ne}}function ne(){return{value:void 0,done:!0}}return T.prototype=x,r(_,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:T,configurable:!0}),T.displayName=u(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(f){var c=typeof f=="function"&&f.constructor;return!!c&&(c===T||(c.displayName||c.name)==="GeneratorFunction")},n.mark=function(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,x):(f.__proto__=x,u(f,s,"GeneratorFunction")),f.prototype=Object.create(_),f},n.awrap=function(f){return{__await:f}},M(l.prototype),u(l.prototype,a,function(){return this}),n.AsyncIterator=l,n.async=function(f,c,p,E,g){g===void 0&&(g=Promise);var j=new l(v(f,c,p,E),g);return n.isGeneratorFunction(c)?j:j.next().then(function(C){return C.done?C.value:j.next()})},M(_),u(_,s,"Generator"),u(_,o,function(){return this}),u(_,"toString",function(){return"[object Generator]"}),n.keys=function(f){var c=Object(f),p=[];for(var E in c)p.push(E);return p.reverse(),function g(){for(;p.length;){var j=p.pop();if(j in c)return g.value=j,g.done=!1,g}return g.done=!0,g}},n.values=q,O.prototype={constructor:O,reset:function(f){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(m),!f)for(var c in this)c.charAt(0)==="t"&&e.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var f=this.tryEntries[0].completion;if(f.type==="throw")throw f.arg;return this.rval},dispatchException:function(f){if(this.done)throw f;var c=this;function p(F,B){return j.type="throw",j.arg=f,c.next=F,B&&(c.method="next",c.arg=void 0),!!B}for(var E=this.tryEntries.length-1;E>=0;--E){var g=this.tryEntries[E],j=g.completion;if(g.tryLoc==="root")return p("end");if(g.tryLoc<=this.prev){var C=e.call(g,"catchLoc"),R=e.call(g,"finallyLoc");if(C&&R){if(this.prev<g.catchLoc)return p(g.catchLoc,!0);if(this.prev<g.finallyLoc)return p(g.finallyLoc)}else if(C){if(this.prev<g.catchLoc)return p(g.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return p(g.finallyLoc)}}}},abrupt:function(f,c){for(var p=this.tryEntries.length-1;p>=0;--p){var E=this.tryEntries[p];if(E.tryLoc<=this.prev&&e.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var g=E;break}}g&&(f==="break"||f==="continue")&&g.tryLoc<=c&&c<=g.finallyLoc&&(g=null);var j=g?g.completion:{};return j.type=f,j.arg=c,g?(this.method="next",this.next=g.finallyLoc,w):this.complete(j)},complete:function(f,c){if(f.type==="throw")throw f.arg;return f.type==="break"||f.type==="continue"?this.next=f.arg:f.type==="return"?(this.rval=this.arg=f.arg,this.method="return",this.next="end"):f.type==="normal"&&c&&(this.next=c),w},finish:function(f){for(var c=this.tryEntries.length-1;c>=0;--c){var p=this.tryEntries[c];if(p.finallyLoc===f)return this.complete(p.completion,p.afterLoc),m(p),w}},catch:function(f){for(var c=this.tryEntries.length-1;c>=0;--c){var p=this.tryEntries[c];if(p.tryLoc===f){var E=p.completion;if(E.type==="throw"){var g=E.arg;m(p)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(f,c,p){return this.delegate={iterator:q(f),resultName:c,nextLoc:p},this.method==="next"&&(this.arg=void 0),w}},n}function fe(n,t,e,r,i,o,a){try{var s=n[o](a),u=s.value}catch(v){return void e(v)}s.done?t(u):Promise.resolve(u).then(r,i)}function H(n){return function(){var t=this,e=arguments;return new Promise(function(r,i){var o=n.apply(t,e);function a(u){fe(o,r,i,a,s,"next",u)}function s(u){fe(o,r,i,a,s,"throw",u)}a(void 0)})}}function Te(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function Pe(n,t,e){return t&&function(r,i){for(var o=0;o<i.length;o++){var a=i[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,Oe(a.key),a)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function Q(n,t,e){return(t=Oe(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Z(n){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(n)}function te(n,t){return(te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e})(n,t)}function je(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _e(n,t,e){return(_e=je()?Reflect.construct.bind():function(r,i,o){var a=[null];a.push.apply(a,i);var s=new(Function.bind.apply(r,a));return o&&te(s,o.prototype),s}).apply(null,arguments)}function ae(n){var t=typeof Map=="function"?new Map:void 0;return ae=function(e){if(e===null||(r=e,Function.toString.call(r).indexOf("[native code]")===-1))return e;var r;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return _e(e,arguments,Z(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),te(i,e)},ae(n)}function J(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Fe(n){var t=je();return function(){var e,r=Z(n);if(t){var i=Z(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J(o)}(this,e)}}function Oe(n){var t=function(e,r){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var o=i.call(e,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n,"string");return typeof t=="symbol"?t:String(t)}var Ae=typeof $<"u"&&{}.toString.call($)==="[object global]";function he(n,t){return n.indexOf(t.toLowerCase())===0?n:"".concat(t.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function z(n){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(n)}function de(n){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(n)}function Ce(){var n,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.id,r=t.url,i=e||r;if(!i)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(n=i,!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n)return"https://vimeo.com/".concat(i);if(z(i))return i.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(i,"” is not a vimeo.com url."))}var pe=function(n,t,e){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",o=typeof t=="string"?[t]:t;return o.forEach(function(a){n[r](a,e)}),{cancel:function(){return o.forEach(function(a){return n[i](a,e)})}}},Ie=Array.prototype.indexOf!==void 0,qe=typeof window<"u"&&window.postMessage!==void 0;if(!(Ae||Ie&&qe))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof $<"u"?$:typeof self<"u"?self:{};(function(n){if(!n.WeakMap){var t=Object.prototype.hasOwnProperty,e=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),r=function(o,a,s){e?Object.defineProperty(o,a,{configurable:!0,writable:!0,value:s}):o[a]=s};n.WeakMap=function(){function o(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id","_WeakMap_"+s()+"."+s()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function a(u,v){if(!i(u)||!t.call(u,"_id"))throw new TypeError(v+" method called on incompatible receiver "+typeof u)}function s(){return Math.random().toString().substring(2)}return r(o.prototype,"delete",function(u){if(a(this,"delete"),!i(u))return!1;var v=u[this._id];return!(!v||v[0]!==u)&&(delete u[this._id],!0)}),r(o.prototype,"get",function(u){if(a(this,"get"),i(u)){var v=u[this._id];return v&&v[0]===u?v[1]:void 0}}),r(o.prototype,"has",function(u){if(a(this,"has"),!i(u))return!1;var v=u[this._id];return!(!v||v[0]!==u)}),r(o.prototype,"set",function(u,v){if(a(this,"set"),!i(u))throw new TypeError("Invalid value used as weak map key");var b=u[this._id];return b&&b[0]===u?(b[1]=v,this):(r(u,this._id,[u,v]),this)}),r(o,"_polyfill",!0),o}()}function i(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Me);var ve,re,I=(ve=function(n){var t,e,r;r=function(){var i,o,a,s=Object.prototype.toString,u=typeof setImmediate<"u"?function(l){return setImmediate(l)}:setTimeout;try{Object.defineProperty({},"x",{}),i=function(l,h,d,k){return Object.defineProperty(l,h,{value:d,writable:!0,configurable:k!==!1})}}catch{i=function(h,d,k){return h[d]=k,h}}function v(l,h){a.add(l,h),o||(o=u(a.drain))}function b(l){var h,d=typeof l;return l==null||d!="object"&&d!="function"||(h=l.then),typeof h=="function"&&h}function w(){for(var l=0;l<this.chain.length;l++)y(this,this.state===1?this.chain[l].success:this.chain[l].failure,this.chain[l]);this.chain.length=0}function y(l,h,d){var k,m;try{h===!1?d.reject(l.msg):(k=h===!0?l.msg:h.call(void 0,l.msg))===d.promise?d.reject(TypeError("Promise-chain cycle")):(m=b(k))?m.call(k,d.resolve,d.reject):d.resolve(k)}catch(O){d.reject(O)}}function T(l){var h,d=this;if(!d.triggered){d.triggered=!0,d.def&&(d=d.def);try{(h=b(l))?v(function(){var k=new A(d);try{h.call(l,function(){T.apply(k,arguments)},function(){x.apply(k,arguments)})}catch(m){x.call(k,m)}}):(d.msg=l,d.state=1,d.chain.length>0&&v(w,d))}catch(k){x.call(new A(d),k)}}}function x(l){var h=this;h.triggered||(h.triggered=!0,h.def&&(h=h.def),h.msg=l,h.state=2,h.chain.length>0&&v(w,h))}function P(l,h,d,k){for(var m=0;m<h.length;m++)(function(O){l.resolve(h[O]).then(function(q){d(O,q)},k)})(m)}function A(l){this.def=l,this.triggered=!1}function S(l){this.promise=l,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function _(l){if(typeof l!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var h=new S(this);this.then=function(d,k){var m={success:typeof d!="function"||d,failure:typeof k=="function"&&k};return m.promise=new this.constructor(function(O,q){if(typeof O!="function"||typeof q!="function")throw TypeError("Not a function");m.resolve=O,m.reject=q}),h.chain.push(m),h.state!==0&&v(w,h),m.promise},this.catch=function(d){return this.then(void 0,d)};try{l.call(void 0,function(d){T.call(h,d)},function(d){x.call(h,d)})}catch(d){x.call(h,d)}}a=function(){var l,h,d;function k(m,O){this.fn=m,this.self=O,this.next=void 0}return{add:function(m,O){d=new k(m,O),h?h.next=d:l=d,h=d,d=void 0},drain:function(){var m=l;for(l=h=o=void 0;m;)m.fn.call(m.self),m=m.next}}}();var M=i({},"constructor",_,!1);return _.prototype=M,i(M,"__NPO__",0,!1),i(_,"resolve",function(l){return l&&typeof l=="object"&&l.__NPO__===1?l:new this(function(h,d){if(typeof h!="function"||typeof d!="function")throw TypeError("Not a function");h(l)})}),i(_,"reject",function(l){return new this(function(h,d){if(typeof h!="function"||typeof d!="function")throw TypeError("Not a function");d(l)})}),i(_,"all",function(l){var h=this;return s.call(l)!="[object Array]"?h.reject(TypeError("Not an array")):l.length===0?h.resolve([]):new h(function(d,k){if(typeof d!="function"||typeof k!="function")throw TypeError("Not a function");var m=l.length,O=Array(m),q=0;P(h,l,function(ne,f){O[ne]=f,++q===m&&d(O)},k)})}),i(_,"race",function(l){var h=this;return s.call(l)!="[object Array]"?h.reject(TypeError("Not an array")):new h(function(d,k){if(typeof d!="function"||typeof k!="function")throw TypeError("Not a function");P(h,l,function(m,O){d(O)},k)})}),_},(e=Me)[t="Promise"]=e[t]||r(),n.exports&&(n.exports=e[t])},ve(re={exports:{}},re.exports),re.exports),V=new WeakMap;function Y(n,t,e){var r=V.get(n.element)||{};t in r||(r[t]=[]),r[t].push(e),V.set(n.element,r)}function X(n,t){return(V.get(n.element)||{})[t]||[]}function K(n,t,e){var r=V.get(n.element)||{};if(!r[t])return!0;if(!e)return r[t]=[],V.set(n.element,r),!0;var i=r[t].indexOf(e);return i!==-1&&r[t].splice(i,1),V.set(n.element,r),r[t]&&r[t].length===0}function ee(n){if(typeof n=="string")try{n=JSON.parse(n)}catch(t){return console.warn(t),{}}return n}function D(n,t,e){if(n.element.contentWindow&&n.element.contentWindow.postMessage){var r={method:t};e!==void 0&&(r.value=e);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin)}}function Ve(n,t){var e,r=[];if((t=ee(t)).event)t.event==="error"&&X(n,t.data.method).forEach(function(o){var a=new Error(t.data.message);a.name=t.data.name,o.reject(a),K(n,t.data.method,o)}),r=X(n,"event:".concat(t.event)),e=t.data;else if(t.method){var i=function(o,a){var s=X(o,a);if(s.length<1)return!1;var u=s.shift();return K(o,a,u),u}(n,t.method);i&&(r.push(i),e=t.value)}r.forEach(function(o){try{if(typeof o=="function")return void o.call(n,e);o.resolve(e)}catch{}})}var We=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Ne(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return We.reduce(function(e,r){var i=n.getAttribute("data-vimeo-".concat(r));return(i||i==="")&&(e[r]=i===""?1:i),e},t)}function se(n,t){var e=n.html;if(!t)throw new TypeError("An element must be provided");if(t.getAttribute("data-vimeo-initialized")!==null)return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=e,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Le(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!z(n))throw new TypeError("“".concat(n,"” is not a vimeo.com url."));var o=function(v){for(var b=(v||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),w=(b&&b[1]||"").replace("player.",""),y=0,T=[".videoji.hk",".vimeo.work",".videoji.cn"];y<T.length;y++){var x=T[y];if(w.endsWith(x))return w}return"vimeo.com"}(n),a="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(n));for(var s in t)t.hasOwnProperty(s)&&(a+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var u="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;u.open("GET",a,!0),u.onload=function(){if(u.status!==404)if(u.status!==403)try{var v=JSON.parse(u.responseText);if(v.domain_status_code===403)return se(v,e),void i(new Error("“".concat(n,"” is not embeddable.")));r(v)}catch(b){i(b)}else i(new Error("“".concat(n,"” is not embeddable.")));else i(new Error("“".concat(n,"” was not found.")))},u.onerror=function(){var v=u.status?" (".concat(u.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(v,".")))},u.send()})}var De={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},He=function(){(function(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),a&&te(o,a)})(i,ae(EventTarget));var n,t,e,r=Fe(i);function i(o,a){var s,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3?arguments[3]:void 0;return Te(this,i),Q(J(s=r.call(this)),"logger",void 0),Q(J(s),"speedAdjustment",0),Q(J(s),"adjustSpeed",function(){var b=H(N().mark(function w(y,T){var x;return N().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(s.speedAdjustment!==T){P.next=2;break}return P.abrupt("return");case 2:return P.next=4,y.getPlaybackRate();case 4:return P.t0=P.sent,P.t1=s.speedAdjustment,P.t2=P.t0-P.t1,P.t3=T,x=P.t2+P.t3,s.log("New playbackRate: ".concat(x)),P.next=12,y.setPlaybackRate(x);case 12:s.speedAdjustment=T;case 13:case"end":return P.stop()}},w)}));return function(w,y){return b.apply(this,arguments)}}()),s.logger=v,s.init(a,o,le(le({},De),u)),s}return Pe(i,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(e=H(N().mark(function o(a,s,u){var v,b,w,y=this;return N().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.waitForTOReadyState(a,"open");case 2:if(u.role!=="viewer"){T.next=10;break}return T.next=5,this.updatePlayer(a,s,u);case 5:v=pe(a,"change",function(){return y.updatePlayer(a,s,u)}),b=this.maintainPlaybackPosition(a,s,u),this.addEventListener("disconnect",function(){b.cancel(),v.cancel()}),T.next=14;break;case 10:return T.next=12,this.updateTimingObject(a,s);case 12:w=pe(s,["seeked","play","pause","ratechange"],function(){return y.updateTimingObject(a,s)},"on","off"),this.addEventListener("disconnect",function(){return w.cancel()});case 14:case"end":return T.stop()}},o,this)})),function(o,a,s){return e.apply(this,arguments)})},{key:"updateTimingObject",value:(t=H(N().mark(function o(a,s){return N().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.t0=a,u.next=3,s.getCurrentTime();case 3:return u.t1=u.sent,u.next=6,s.getPaused();case 6:if(!u.sent){u.next=10;break}u.t2=0,u.next=13;break;case 10:return u.next=12,s.getPlaybackRate();case 12:u.t2=u.sent;case 13:u.t3=u.t2,u.t4={position:u.t1,velocity:u.t3},u.t0.update.call(u.t0,u.t4);case 16:case"end":return u.stop()}},o)})),function(o,a){return t.apply(this,arguments)})},{key:"updatePlayer",value:(n=H(N().mark(function o(a,s,u){var v,b,w;return N().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(v=a.query(),b=v.position,w=v.velocity,typeof b=="number"&&s.setCurrentTime(b),typeof w!="number"){y.next=25;break}if(w!==0){y.next=11;break}return y.next=6,s.getPaused();case 6:if(y.t0=y.sent,y.t0!==!1){y.next=9;break}s.pause();case 9:y.next=25;break;case 11:if(!(w>0)){y.next=25;break}return y.next=14,s.getPaused();case 14:if(y.t1=y.sent,y.t1!==!0){y.next=19;break}return y.next=18,s.play().catch(function(){var T=H(N().mark(function x(P){return N().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(P.name!=="NotAllowedError"||!u.autoPlayMuted){A.next=5;break}return A.next=3,s.setMuted(!0);case 3:return A.next=5,s.play().catch(function(S){return console.error("Couldn't play the video from TimingSrcConnector. Error:",S)});case 5:case"end":return A.stop()}},x)}));return function(x){return T.apply(this,arguments)}}());case 18:this.updatePlayer(a,s,u);case 19:return y.next=21,s.getPlaybackRate();case 21:if(y.t2=y.sent,y.t3=w,y.t2===y.t3){y.next=25;break}s.setPlaybackRate(w);case 25:case"end":return y.stop()}},o,this)})),function(o,a,s){return n.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(o,a,s){var u=this,v=s.allowedDrift,b=s.maxAllowedDrift,w=s.minCheckInterval,y=s.maxRateAdjustment,T=s.maxTimeToCatchUp,x=1e3*Math.min(T,Math.max(w,b)),P=function(){var S=H(N().mark(function _(){var M,l,h,d,k;return N().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(m.t0=o.query().velocity===0,m.t0){m.next=6;break}return m.next=4,a.getPaused();case 4:m.t1=m.sent,m.t0=m.t1===!0;case 6:if(!m.t0){m.next=8;break}return m.abrupt("return");case 8:return m.t2=o.query().position,m.next=11,a.getCurrentTime();case 11:if(m.t3=m.sent,M=m.t2-m.t3,l=Math.abs(M),u.log("Drift: ".concat(M)),!(l>b)){m.next=22;break}return m.next=18,u.adjustSpeed(a,0);case 18:a.setCurrentTime(o.query().position),u.log("Resync by currentTime"),m.next=29;break;case 22:if(!(l>v)){m.next=29;break}return k=(h=l/T)<(d=y)?(d-h)/2:d,m.next=28,u.adjustSpeed(a,k*Math.sign(M));case 28:u.log("Resync by playbackRate");case 29:case"end":return m.stop()}},_)}));return function(){return S.apply(this,arguments)}}(),A=setInterval(function(){return P()},x);return{cancel:function(){return clearInterval(A)}}}},{key:"log",value:function(o){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(o))}},{key:"waitForTOReadyState",value:function(o,a){return new Promise(function(s){(function u(){o.readyState===a?s():o.addEventListener("readystatechange",u,{once:!0})})()})}}]),i}(),U=new WeakMap,ie=new WeakMap,L={},ue=function(){function n(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Te(this,n),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!function(u){return!!(u&&u.nodeType===1&&"nodeName"in u&&u.ownerDocument&&u.ownerDocument.defaultView)}(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var o=e.querySelector("iframe");o&&(e=o)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(U.has(e))return U.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var a=new I(function(u,v){if(r._onMessage=function(w){if(z(w.origin)&&r.element.contentWindow===w.source){r.origin==="*"&&(r.origin=w.origin);var y=ee(w.data);if(y&&y.event==="error"&&y.data&&y.data.method==="ready"){var T=new Error(y.data.message);return T.name=y.data.name,void v(T)}var x=y&&y.event==="ready",P=y&&y.method==="ping";if(x||P)return r.element.setAttribute("data-ready","true"),void u();Ve(r,y)}},r._window.addEventListener("message",r._onMessage),r.element.nodeName!=="IFRAME"){var b=Ne(e,i);Le(Ce(b),b,e).then(function(w){var y,T,x,P=se(w,e);return r.element=P,r._originalElement=e,y=e,T=P,x=V.get(y),V.set(T,x),V.delete(y),U.set(r.element,r),w}).catch(v)}});if(ie.set(this,a),U.set(this.element,this),this.element.nodeName==="IFRAME"&&D(this,"ping"),L.isEnabled){var s=function(){return L.exit()};this.fullscreenchangeHandler=function(){L.isFullscreen?Y(r,"event:exitFullscreen",s):K(r,"event:exitFullscreen",s),r.ready().then(function(){D(r,"fullscreenchange",L.isFullscreen)})},L.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t;return Pe(n,[{key:"callMethod",value:function(e){for(var r=this,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(e==null)throw new TypeError("You must pass a method name.");return new I(function(s,u){return r.ready().then(function(){Y(r,e,{resolve:s,reject:u}),D(r,e,o)}).catch(u)})}},{key:"get",value:function(e){var r=this;return new I(function(i,o){return e=he(e,"get"),r.ready().then(function(){Y(r,e,{resolve:i,reject:o}),D(r,e)}).catch(o)})}},{key:"set",value:function(e,r){var i=this;return new I(function(o,a){if(e=he(e,"set"),r==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){Y(i,e,{resolve:o,reject:a}),D(i,e,r)}).catch(a)})}},{key:"on",value:function(e,r){if(!e)throw new TypeError("You must pass an event name.");if(!r)throw new TypeError("You must pass a callback function.");if(typeof r!="function")throw new TypeError("The callback must be a function.");X(this,"event:".concat(e)).length===0&&this.callMethod("addEventListener",e).catch(function(){}),Y(this,"event:".concat(e),r)}},{key:"off",value:function(e,r){if(!e)throw new TypeError("You must pass an event name.");if(r&&typeof r!="function")throw new TypeError("The callback must be a function.");K(this,"event:".concat(e),r)&&this.callMethod("removeEventListener",e).catch(function(i){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=ie.get(this)||new I(function(r,i){i(new Error("Unknown player. Probably unloaded."))});return I.resolve(e)}},{key:"addCuePoint",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:r})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,r){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:r})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return L.isEnabled?L.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return L.isEnabled?L.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return L.isEnabled?I.resolve(L.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new I(function(r){if(ie.delete(e),U.delete(e.element),e._originalElement&&(U.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&e.element.nodeName==="IFRAME"&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&e.element.nodeName==="DIV"&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var i=e.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&e._originalElement&&e._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}e._window.removeEventListener("message",e._onMessage),L.isEnabled&&L.off("fullscreenchange",e.fullscreenchangeHandler),r()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return I.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new I(function(o,a){return a(new TypeError("Argument must be an array."))});var r=new I(function(o){return o(null)}),i=[e[0]?this.set("colorOne",e[0]):r,e[1]?this.set("colorTwo",e[1]):r,e[2]?this.set("colorThree",e[2]):r,e[3]?this.set("colorFour",e[3]):r];return I.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=H(N().mark(function e(r,i){var o,a=this;return N().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(r){s.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return s.next=4,this.ready();case 4:return o=new He(this,r,i),D(this,"notifyTimingObjectConnect"),o.addEventListener("disconnect",function(){return D(a,"notifyTimingObjectDisconnect")}),s.abrupt("return",o);case 8:case"end":return s.stop()}},e,this)})),function(e,r){return t.apply(this,arguments)})}]),n}();Ae||(L=function(){var n=function(){for(var r,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=0,a=i.length,s={};o<a;o++)if((r=i[o])&&r[1]in document){for(o=0;o<r.length;o++)s[i[0][o]]=r[o];return s}return!1}(),t={fullscreenchange:n.fullscreenchange,fullscreenerror:n.fullscreenerror},e={request:function(r){return new Promise(function(i,o){var a=function u(){e.off("fullscreenchange",u),i()};e.on("fullscreenchange",a);var s=(r=r||document.documentElement)[n.requestFullscreen]();s instanceof Promise&&s.then(a).catch(o)})},exit:function(){return new Promise(function(r,i){if(e.isFullscreen){var o=function s(){e.off("fullscreenchange",s),r()};e.on("fullscreenchange",o);var a=document[n.exitFullscreen]();a instanceof Promise&&a.then(o).catch(i)}else r()})},on:function(r,i){var o=t[r];o&&document.addEventListener(o,i)},off:function(r,i){var o=t[r];o&&document.removeEventListener(o,i)}};return Object.defineProperties(e,{isFullscreen:{get:function(){return!!document[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[n.fullscreenEnabled]}}}),e}(),function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=[].slice.call(n.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),e=function(r){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(r))};t.forEach(function(r){try{if(r.getAttribute("data-vimeo-defer")!==null)return;var i=Ne(r);Le(Ce(i),i,r).then(function(o){return se(o,r)}).catch(e)}catch(o){e(o)}})}(),function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(z(t.origin)&&t.data&&t.data.event==="spacechange"){for(var e=n.querySelectorAll("iframe"),r=0;r<e.length;r++)if(e[r].contentWindow===t.source){e[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}}))}(),function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(z(t.origin)){var e=ee(t.data);if(e&&e.event==="ready")for(var r=n.querySelectorAll("iframe"),i=0;i<r.length;i++){var o=r[i],a=o.contentWindow===t.source;de(o.src)&&a&&new ue(o).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",function(e){if(z(e.origin)){var r=ee(e.data);if(r&&r.event==="ready")for(var i=n.querySelectorAll("iframe"),o=function(){var s=i[a],u=s.contentWindow===e.source;if(de(s.src)&&u){var v=new ue(s);v.getVideoId().then(function(b){var w=new RegExp("[?&]vimeo_t_".concat(b,"=([^&#]*)")).exec(window.location.href);if(w&&w[1]){var y=decodeURI(w[1]);v.setCurrentTime(y)}}).catch(t)}},a=0;a<i.length;a++)o()}})}}());const ze=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function me(n,t={}){const e={src:Be(n,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(e["data-config"]=JSON.stringify(t.config)),`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 300px;
|
|
6
|
+
min-height: 150px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
}
|
|
14
|
+
:host(:not([controls])) {
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
<iframe${function(r){let i="";for(const o in r){const a=r[o];i+=a===""?` ${oe(o)}`:` ${oe(o)}="${oe(`${a}`)}"`}return i}(e)}></iframe>
|
|
19
|
+
`}function Be(n,t){if(!n.src)return;let e=new URL(n.src);const r=n.src.match(ze),i=r&&r[1],o=r&&r[2],a=e.searchParams.get("h")||void 0,s={controls:n.controls===""?null:0,autoplay:n.autoplay,loop:n.loop,muted:n.muted,playsinline:n.playsinline,preload:n.preload??"metadata",transparent:!1,autopause:n.autopause,h:a,...t.config};return i==="event/"?`https://vimeo.com/event/${o}/embed?${ye(s)}`:`https://player.vimeo.com/video/${o}?${ye(s)}`}class Se extends(globalThis.HTMLElement??class{}){static getTemplateHTML=me;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new ge;#l;#f;#p;#t=0;#n=NaN;#r=!1;#e=!this.autoplay;#a=1;#u=0;#i=0;#s=!1;#o=1;#h=NaN;#d=NaN;#c=null;constructor(){super(),this.#v("config")}requestFullscreen(){var t,e;return(e=(t=this.api)==null?void 0:t.requestFullscreen)==null?void 0:e.call(t)}exitFullscreen(){var t,e;return(e=(t=this.api)==null?void 0:t.exitFullscreen)==null?void 0:e.call(t)}requestPictureInPicture(){var t,e;return(e=(t=this.api)==null?void 0:t.requestPictureInPicture)==null?void 0:e.call(t)}exitPictureInPicture(){var t,e;return(e=(t=this.api)==null?void 0:t.exitPictureInPicture)==null?void 0:e.call(t)}get config(){return this.#c}set config(t){this.#c=t}async load(){var t;if(this.#l)return;const e=!this.#f;this.#f&&(this.loadComplete=new ge),this.#f=!0,await(this.#l=Promise.resolve()),this.#l=null,this.#t=0,this.#n=NaN,this.#r=!1,this.#e=!this.autoplay,this.#a=1,this.#u=0,this.#i=0,this.#s=!1,this.#o=1,this.#i=0,this.#h=NaN,this.#d=NaN,this.dispatchEvent(new Event("emptied"));let r=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const i={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInline,preload:this.preload??"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),...this.#c},o=async()=>{this.#i=1,this.dispatchEvent(new Event("loadedmetadata")),this.api&&(this.#r=await this.api.getMuted(),this.#o=await this.api.getVolume(),this.dispatchEvent(new Event("volumechange")),this.#n=await this.api.getDuration(),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()};if(this.#p)return this.api=r,await this.api.loadVideo({...i,url:this.src}),await o(),void await this.loadComplete;this.#p=!0;let a=(t=this.shadowRoot)==null?void 0:t.querySelector("iframe");e&&a&&(this.#c=JSON.parse(a.getAttribute("data-config")||"{}")),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=me(function(v){let b={};for(let w of v)b[w.name]=w.value;return b}(this.attributes),this),a=this.shadowRoot.querySelector("iframe")),this.api=new ue(a);const s=document.createElement("video");this.textTracks=s.textTracks,this.api.getTextTracks().then(v=>{v.forEach(b=>{s.addTextTrack(b.kind,b.label,b.language)})}),this.textTracks.addEventListener("change",()=>{const v=Array.from(this.textTracks).find(b=>b.mode==="showing");v?this.api.enableTextTrack(v.language,v.kind):this.api.disableTextTrack()});const u=()=>{this.api.off("loaded",u),o()};this.api.on("loaded",u),this.api.on("bufferstart",()=>{this.#e&&(this.#e=!1,this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{this.#e&&(this.#e=!1,this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{this.#i=3,this.#e=!1,this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{this.#s=!0,this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",()=>{this.#s=!1,this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{this.#e=!0,this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{this.#e=!0,this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:v})=>{this.#a=v,this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:v})=>{this.#o=v,this.api&&(this.#r=await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:v})=>{this.#n=v,this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:v})=>{this.#t=v,this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:v})=>{this.#u=v,this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:v,videoHeight:b})=>{this.#h=v,this.#d=b,this.dispatchEvent(new Event("resize"))}),await this.loadComplete}async attributeChangedCallback(t,e,r){if(e!==r){switch(t){case"autoplay":case"controls":case"src":return void this.load()}await this.loadComplete,t==="loop"&&this.api.setLoop(this.loop)}}async play(){var t;this.#e=!1,this.dispatchEvent(new Event("play")),await this.loadComplete;try{await((t=this.api)==null?void 0:t.play())}catch(e){throw this.#e=!0,this.dispatchEvent(new Event("pause")),e}}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get ended(){return this.#t>=this.#n}get seeking(){return this.#s}get readyState(){return this.#i}get videoWidth(){return this.#h}get videoHeight(){return this.#d}get src(){return this.getAttribute("src")}set src(t){this.src!=t&&this.setAttribute("src",t)}get paused(){return this.#e}get duration(){return this.#n}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get buffered(){return this.#u>0?we(0,this.#u):we()}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){return this.#t}set currentTime(t){this.currentTime!=t&&(this.#t=t,this.loadComplete.then(()=>{var e;(e=this.api)==null||e.setCurrentTime(t).catch(()=>{})}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.defaultMuted!=t&&this.toggleAttribute("muted",!!t)}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get muted(){return this.#r}set muted(t){this.muted!=t&&(this.#r=t,this.loadComplete.then(()=>{var e;(e=this.api)==null||e.setMuted(t).catch(()=>{})}))}get playbackRate(){return this.#a}set playbackRate(t){this.playbackRate!=t&&(this.#a=t,this.loadComplete.then(()=>{var e;(e=this.api)==null||e.setPlaybackRate(t).catch(()=>{})}))}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.playsInline!=t&&this.toggleAttribute("playsinline",!!t)}get poster(){return this.getAttribute("poster")}set poster(t){this.poster!=t&&this.setAttribute("poster",`${t}`)}get volume(){return this.#o}set volume(t){this.volume!=t&&(this.#o=t,this.loadComplete.then(()=>{var e;(e=this.api)==null||e.setVolume(t).catch(()=>{})}))}#v(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}}function oe(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function ye(n){return String(new URLSearchParams(function(t){let e={};for(let r in t){let i=t[r];i===!0||i===""?e[r]=1:i===!1?e[r]=0:i!=null&&(e[r]=i)}return e}(n)))}class ge extends Promise{constructor(t=()=>{}){let e,r;super((i,o)=>{t(i,o),e=i,r=o}),this.resolve=e,this.reject=r}}function we(n,t){return Array.isArray(n)?be(n):be(n==null||t==null||n===0&&t===0?[[0,0]]:[[n,t]])}function be(n){return Object.defineProperties(n,{start:{value:t=>n[t][0]},end:{value:t=>n[t][1]}}),n}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",Se);var Ue=Se,$e=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),Ge={className:"class",htmlFor:"for"};function ke(n){return n.toLowerCase()}function Ee(n){return typeof n=="boolean"?n?"":void 0:typeof n=="function"||typeof n=="object"&&n!==null?void 0:n}function xe(n,t,e){var r;n[t]=e,e==null&&t in(((r=globalThis.HTMLElement)==null?void 0:r.prototype)??{})&&n.removeAttribute(t)}var Qe=function({react:n,tagName:t,elementClass:e,events:r,displayName:i,defaultProps:o,toAttributeName:a=ke,toAttributeValue:s=Ee}){const u=Number.parseInt(n.version)>=19,v=n.forwardRef((b,w)=>{var y,T;const x=n.useRef(null),P=n.useRef(new Map),A={},S={},_={},M={};for(const[l,h]of Object.entries(b)){if($e.has(l)){_[l]=h;continue}const d=a(Ge[l]??l);if(e.prototype&&l in e.prototype&&!(l in(((y=globalThis.HTMLElement)==null?void 0:y.prototype)??{}))&&!((T=e.observedAttributes)!=null&&T.some(m=>m===d))){M[l]=h;continue}if(l.startsWith("on")){A[l]=h;continue}const k=s(h);if(d&&k!=null&&(S[d]=String(k),u||(_[d]=k)),d&&u){const m=Ee(h);_[d]=k!==m?k:h}}if(typeof window<"u"){for(const l in A){const h=A[l],d=l.endsWith("Capture"),k=(r?.[l]??l.slice(2).toLowerCase()).slice(0,d?-7:void 0);n.useLayoutEffect(()=>{const m=x?.current;if(m&&typeof h=="function")return m.addEventListener(k,h,d),()=>{m.removeEventListener(k,h,d)}},[x?.current,h])}n.useLayoutEffect(()=>{if(x.current===null)return;const l=new Map;for(const h in M)xe(x.current,h,M[h]),P.current.delete(h),l.set(h,M[h]);for(const[h,d]of P.current)xe(x.current,h,void 0);P.current=l})}if(typeof window>"u"&&e?.getTemplateHTML&&e?.shadowRootOptions){const{mode:l,delegatesFocus:h}=e.shadowRootOptions,d=n.createElement("template",{shadowrootmode:l,shadowrootdelegatesfocus:h,dangerouslySetInnerHTML:{__html:e.getTemplateHTML(S,b)},key:"ce-la-react-ssr-template-shadow-root"});_.children=[d,_.children]}return n.createElement(t,{...o,..._,ref:n.useCallback(l=>{x.current=l,typeof w=="function"?w(l):w!==null&&(w.current=l)},[w])},_.children)});return v.displayName=i??e.name,v}({react:Re,tagName:"vimeo-video",elementClass:Ue,toAttributeName:n=>n==="muted"?"":n==="defaultMuted"?"muted":ke(n)});export{Qe as default};
|