@halibegic/react-video-player 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(U,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("lucide-react"),require("hls.js"),require("dashjs")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react","hls.js","dashjs"],p):(U=typeof globalThis<"u"?globalThis:U||self,p(U.ReactVideoPlayer={},U.React,U["lucide-react"],U.Hls,U.dashjs))})(this,(function(U,p,yt,ye,wr){"use strict";function Er(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xr=Er(wr);var Pe={exports:{}},ve={};/**
1
+ (function(U,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("lucide-react"),require("hls.js"),require("dashjs")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react","hls.js","dashjs"],p):(U=typeof globalThis<"u"?globalThis:U||self,p(U.ReactVideoPlayer={},U.React,U["lucide-react"],U.Hls,U.dashjs))})(this,(function(U,p,ae,ve,xn){"use strict";function kn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Pn=kn(xn);var Re={exports:{}},be={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var vt;function kr(){if(vt)return ve;vt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:s}}return ve.Fragment=t,ve.jsx=r,ve.jsxs=r,ve}var be={};/**
9
+ */var bt;function Rn(){if(bt)return be;bt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return be.Fragment=t,be.jsx=n,be.jsxs=n,be}var Se={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var bt;function Pr(){return bt||(bt=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===gt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case P:return"Fragment";case O:return"Profiler";case F:return"StrictMode";case d:return"Suspense";case E:return"SuspenseList";case K:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case C:return"Portal";case k:return(i.displayName||"Context")+".Provider";case A:return(i._context.displayName||"Context")+".Consumer";case R:var h=i.render;return i=i.displayName,i||(i=h.displayName||h.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case y:return h=i.displayName||null,h!==null?h:e(i.type)||"Memo";case W:h=i._payload,i=i._init;try{return e(i(h))}catch{}}return null}function t(i){return""+i}function r(i){try{t(i);var h=!1}catch{h=!0}if(h){h=console;var w=h.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return w.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(i)}}function n(i){if(i===P)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===W)return"<...>";try{var h=e(i);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function o(){var i=Ee.A;return i===null?null:i.getOwner()}function s(){return Error("react-stack-top-frame")}function a(i){if(Be.call(i,"key")){var h=Object.getOwnPropertyDescriptor(i,"key").get;if(h&&h.isReactWarning)return!1}return i.key!==void 0}function c(i,h){function w(){He||(He=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",h))}w.isReactWarning=!0,Object.defineProperty(i,"key",{get:w,configurable:!0})}function u(){var i=e(this.type);return Ge[i]||(Ge[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function l(i,h,w,D,Y,$,X,Z){return w=$.ref,i={$$typeof:S,type:i,key:h,props:$,_owner:Y},(w!==void 0?w:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:u}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function g(i,h,w,D,Y,$,X,Z){var N=h.children;if(N!==void 0)if(D)if(We(N)){for(D=0;D<N.length;D++)m(N[D]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(N);if(Be.call(h,"key")){N=e(i);var z=Object.keys(h).filter(function(ge){return ge!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",q[N+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var St;function Tn(){return St||(St=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===vt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case O:return"Profiler";case F:return"StrictMode";case f:return"Suspense";case E:return"SuspenseList";case K:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case j:return"Portal";case P:return(i.displayName||"Context")+".Provider";case A:return(i._context.displayName||"Context")+".Consumer";case T:var h=i.render;return i=i.displayName,i||(i=h.displayName||h.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case y:return h=i.displayName||null,h!==null?h:e(i.type)||"Memo";case W:h=i._payload,i=i._init;try{return e(i(h))}catch{}}return null}function t(i){return""+i}function n(i){try{t(i);var h=!1}catch{h=!0}if(h){h=console;var w=h.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return w.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(i)}}function r(i){if(i===R)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===W)return"<...>";try{var h=e(i);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function o(){var i=xe.A;return i===null?null:i.getOwner()}function s(){return Error("react-stack-top-frame")}function a(i){if(We.call(i,"key")){var h=Object.getOwnPropertyDescriptor(i,"key").get;if(h&&h.isReactWarning)return!1}return i.key!==void 0}function c(i,h){function w(){Ge||(Ge=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",h))}w.isReactWarning=!0,Object.defineProperty(i,"key",{get:w,configurable:!0})}function u(){var i=e(this.type);return Xe[i]||(Xe[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function l(i,h,w,D,Y,$,X,Z){return w=$.ref,i={$$typeof:S,type:i,key:h,props:$,_owner:Y},(w!==void 0?w:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:u}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function g(i,h,w,D,Y,$,X,Z){var N=h.children;if(N!==void 0)if(D)if(He(N)){for(D=0;D<N.length;D++)m(N[D]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(N);if(We.call(h,"key")){N=e(i);var z=Object.keys(h).filter(function(ye){return ye!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",q[N+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,D,N,z,N),q[N+D]=!0)}if(N=null,w!==void 0&&(r(w),N=""+w),a(h)&&(r(h.key),N=""+h.key),"key"in h){w={};for(var ie in h)ie!=="key"&&(w[ie]=h[ie])}else w=h;return N&&c(w,typeof i=="function"?i.displayName||i.name||"Unknown":i),l(i,N,$,Y,o(),w,X,Z)}function m(i){typeof i=="object"&&i!==null&&i.$$typeof===S&&i._store&&(i._store.validated=1)}var b=p,S=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),gt=Symbol.for("react.client.reference"),Ee=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be=Object.prototype.hasOwnProperty,We=Array.isArray,xe=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(i){return i()}};var He,Ge={},me=b.react_stack_bottom_frame.bind(b,s)(),ke=xe(n(s)),q={};be.Fragment=P,be.jsx=function(i,h,w,D,Y){var $=1e4>Ee.recentlyCreatedOwnerStacks++;return g(i,h,w,!1,D,Y,$?Error("react-stack-top-frame"):me,$?xe(n(i)):ke)},be.jsxs=function(i,h,w,D,Y){var $=1e4>Ee.recentlyCreatedOwnerStacks++;return g(i,h,w,!0,D,Y,$?Error("react-stack-top-frame"):me,$?xe(n(i)):ke)}})()),be}var St;function Rr(){return St||(St=1,process.env.NODE_ENV==="production"?Pe.exports=kr():Pe.exports=Pr()),Pe.exports}var f=Rr();const wt=e=>{let t;const r=new Set,n=(l,g)=>{const m=typeof l=="function"?l(t):l;if(!Object.is(m,t)){const b=t;t=g??(typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(S=>S(t,b))}},o=()=>t,c={setState:n,getState:o,getInitialState:()=>u,subscribe:l=>(r.add(l),()=>r.delete(l))},u=t=e(n,o,c);return c},Tr=(e=>e?wt(e):wt),Cr=e=>e;function Et(e,t=Cr){const r=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(r),r}const xt=e=>{const t=Tr(e),r=n=>Et(t,n);return Object.assign(r,t),r},_r=(e=>e?xt(e):xt);function jr(e,t,r){const n={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(n[t]/n[r])}function Ar(e){return jr(e,"milliseconds","seconds")}const kt=e=>{const t=Math.floor(e/60),r=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`};function Or(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Pt=Or(/iPhone|iPad|iPod/i);function Nr(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function Ir(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function Dr(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function Lr(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const Fr=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const r=t().techRef.current;r&&e({duration:r.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const r=t().techRef.current;r&&(r.loop=t().isLoop,r.volume=r.muted?0:1,t().startTime!==-1&&(r.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:r.currentTime,duration:r.duration,startTime:-1,isMetaLoaded:!0,volume:r.muted?0:100}))},handleLoadStart:()=>{const r=t().techRef.current;r&&(e({isReady:!0}),r.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(n=>e(()=>(console.info("Player failed to autoplay",n),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const r=t().techRef.current;r&&e({currentTime:r.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const r=t().techRef.current;r&&(r.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>Ar(Date.now()-t().pauseTime),play:()=>{const r=t().techRef.current;r&&(r.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:r=>{const n=t().techRef.current;n&&(n.currentTime=r,(n.paused||n.ended)&&n.play(),e({seekTime:-1,currentTime:r,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:r=>e({isLoading:r}),setIsLoop:r=>{const n=t().techRef.current;n&&(n.loop=r,e({isLoop:r}))},setStartTime:r=>e({startTime:r}),setVolume:r=>{const n=t().techRef.current;n&&(n.muted=r===0,n.volume=r/100,e({volume:r}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),$r=e=>({idleLocks:new Set,addIdleLock:t=>e(r=>({idleLocks:new Set(r.idleLocks).add(t)})),removeIdleLock:t=>e(r=>{const n=new Set(r.idleLocks);return n.delete(t),{idleLocks:n}})}),Mr=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{Dr(document),e({isFullscreen:!1})},requestFullscreen:()=>{const r=t().techRef.current,n=t().containerRef.current;if(!r||!n)return;const o=Pt?r:n;o&&Ir(o),e({isFullscreen:!0})},setIsFullscreen:r=>e({isFullscreen:r}),setIsFullscreenReady:r=>e({isFullscreenReady:r})}),zr=e=>({url:"",setURL:t=>e({url:t})}),Vr=e=>()=>({...e}),qr=(e,t)=>_r()((...r)=>({...Fr(...r),...$r(...r),...Mr(...r),...zr(...r),...Vr({techRef:e,containerRef:t})(...r)})),Rt=p.createContext(null),Yr=({children:e})=>{const t=p.useRef(null),r=p.useRef(null),n=p.useRef(null);return t.current||(t.current=qr(r,n)),f.jsx(Rt.Provider,{value:t.current,children:e})},_=e=>{const t=p.useContext(Rt);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Et(t,e)};function Tt({children:e}){return f.jsx(Yr,{children:e})}const Re={hls:"hls",dash:"dash"};function Ur(e){return e&&/\.m3u8/i.test(e)?Re.hls:Re.dash}var M=function(){return M=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},M.apply(this,arguments)};function ee(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Br(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Wr=/^((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)-.*))$/,Hr=Br(function(e){return Wr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),j="-ms-",Se="-moz-",x="-webkit-",Ct="comm",Te="rule",Xe="decl",Gr="@import",_t="@keyframes",Xr="@layer",jt=Math.abs,Je=String.fromCharCode,Ke=Object.assign;function Jr(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function At(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,r){return e.replace(t,r)}function Ce(e,t,r){return e.indexOf(t,r)}function L(e,t){return e.charCodeAt(t)|0}function ae(e,t,r){return e.slice(t,r)}function H(e){return e.length}function Ot(e){return e.length}function we(e,t){return t.push(e),e}function Kr(e,t){return e.map(t).join("")}function Nt(e,t){return e.filter(function(r){return!G(r,t)})}var _e=1,ce=1,It=0,V=0,I=0,le="";function je(e,t,r,n,o,s,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:_e,column:ce,length:a,return:"",siblings:c}}function J(e,t){return Ke(je("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=J(e.root,{children:[e]});we(e,e.siblings)}function Zr(){return I}function Qr(){return I=V>0?L(le,--V):0,ce--,I===10&&(ce=1,_e--),I}function B(){return I=V<It?L(le,V++):0,ce++,I===10&&(ce=1,_e++),I}function te(){return L(le,V)}function Ae(){return V}function Oe(e,t){return ae(le,e,t)}function Ze(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 en(e){return _e=ce=1,It=H(le=e),V=0,[]}function tn(e){return le="",e}function Qe(e){return At(Oe(V-1,et(e===91?e+2:e===40?e+1:e)))}function rn(e){for(;(I=te())&&I<33;)B();return Ze(e)>2||Ze(I)>3?"":" "}function nn(e,t){for(;--t&&B()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return Oe(e,Ae()+(t<6&&te()==32&&B()==32))}function et(e){for(;B();)switch(I){case e:return V;case 34:case 39:e!==34&&e!==39&&et(I);break;case 40:e===41&&et(e);break;case 92:B();break}return V}function on(e,t){for(;B()&&e+I!==57;)if(e+I===84&&te()===47)break;return"/*"+Oe(t,V-1)+"*"+Je(e===47?e:B())}function sn(e){for(;!Ze(te());)B();return Oe(e,V)}function an(e){return tn(Ne("",null,null,null,[""],e=en(e),0,[0],e))}function Ne(e,t,r,n,o,s,a,c,u){for(var l=0,g=0,m=a,b=0,S=0,C=0,P=1,F=1,O=1,A=0,k="",R=o,d=s,E=n,y=k;F;)switch(C=A,A=B()){case 40:if(C!=108&&L(y,m-1)==58){Ce(y+=v(Qe(A),"&","&\f"),"&\f",jt(l?c[l-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:y+=Qe(A);break;case 9:case 10:case 13:case 32:y+=rn(C);break;case 92:y+=nn(Ae()-1,7);continue;case 47:switch(te()){case 42:case 47:we(cn(on(B(),Ae()),t,r,u),u);break;default:y+="/"}break;case 123*P:c[l++]=H(y)*O;case 125*P:case 59:case 0:switch(A){case 0:case 125:F=0;case 59+g:O==-1&&(y=v(y,/\f/g,"")),S>0&&H(y)-m&&we(S>32?Lt(y+";",n,r,m-1,u):Lt(v(y," ","")+";",n,r,m-2,u),u);break;case 59:y+=";";default:if(we(E=Dt(y,t,r,l,g,o,c,k,R=[],d=[],m,s),s),A===123)if(g===0)Ne(y,t,E,E,R,s,m,c,d);else switch(b===99&&L(y,3)===110?100:b){case 100:case 108:case 109:case 115:Ne(e,E,E,n&&we(Dt(e,E,E,0,0,o,c,k,o,R=[],m,d),d),o,d,m,c,n?R:d);break;default:Ne(y,E,E,E,[""],d,0,c,d)}}l=g=S=0,P=O=1,k=y="",m=a;break;case 58:m=1+H(y),S=C;default:if(P<1){if(A==123)--P;else if(A==125&&P++==0&&Qr()==125)continue}switch(y+=Je(A),A*P){case 38:O=g>0?1:(y+="\f",-1);break;case 44:c[l++]=(H(y)-1)*O,O=1;break;case 64:te()===45&&(y+=Qe(B())),b=te(),g=m=H(k=y+=sn(Ae())),A++;break;case 45:C===45&&H(y)==2&&(P=0)}}return s}function Dt(e,t,r,n,o,s,a,c,u,l,g,m){for(var b=o-1,S=o===0?s:[""],C=Ot(S),P=0,F=0,O=0;P<n;++P)for(var A=0,k=ae(e,b+1,b=jt(F=a[P])),R=e;A<C;++A)(R=At(F>0?S[A]+" "+k:v(k,/&\f/g,S[A])))&&(u[O++]=R);return je(e,t,r,o===0?Te:c,u,l,g,m)}function cn(e,t,r,n){return je(e,t,r,Ct,Je(Zr()),ae(e,2,-2),0,n)}function Lt(e,t,r,n,o){return je(e,t,r,Xe,ae(e,0,n),ae(e,n+1,-1),n,o)}function Ft(e,t,r){switch(Jr(e,t)){case 5103:return x+"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 x+e+e;case 4789:return Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return x+e+Se+e+j+e+e;case 5936:switch(L(e,t+11)){case 114:return x+e+j+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return x+e+j+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return x+e+j+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return x+e+j+e+e;case 6165:return x+e+j+"flex-"+e+e;case 5187:return x+e+v(e,/(\w+).+(:[^]+)/,x+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return x+e+j+"flex-item-"+v(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":j+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return x+e+j+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return x+e+j+v(e,"shrink","negative")+e;case 5292:return x+e+j+v(e,"basis","preferred-size")+e;case 6060:return x+"box-"+v(e,"-grow","")+x+e+j+v(e,"grow","positive")+e;case 4554:return x+v(e,/([^-])(transform)/g,"$1"+x+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+j+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+e+e;case 4200:if(!G(e,/flex-|baseline/))return j+"grid-column-align"+ae(e,t)+e;break;case 2592:case 3360:return j+v(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,G(n.props,/grid-\w+-end/)})?~Ce(e+(r=r[t].value),"span",0)?e:j+v(e,"-start","")+e+j+"grid-row-span:"+(~Ce(r,"span",0)?G(r,/\d+/):+G(r,/\d+/)-+G(e,/\d+/))+";":j+v(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return G(n.props,/grid-\w+-start/)})?e:j+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,x+"$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(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+Se+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ce(e,"stretch",0)?Ft(v(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,s,a,c,u,l){return j+o+":"+s+l+(a?j+o+"-span:"+(c?u:+u-+s)+l:"")+e});case 4949:if(L(e,t+6)===121)return v(e,":",":"+x)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(L(e,14)===45?"inline-":"")+"box$3$1"+x+"$2$3$1"+j+"$2box$3")+e;case 100:return v(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}return e}function Ie(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function ln(e,t,r,n){switch(e.type){case Xr:if(e.children.length)break;case Gr:case Xe:return e.return=e.return||e.value;case Ct:return"";case _t:return e.return=e.value+"{"+Ie(e.children,n)+"}";case Te:if(!H(e.value=e.props.join(",")))return""}return H(r=Ie(e.children,n))?e.return=e.value+"{"+r+"}":""}function un(e){var t=Ot(e);return function(r,n,o,s){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,s)||"";return a}}function dn(e){return function(t){t.root||(t=t.return)&&e(t)}}function fn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Xe:e.return=Ft(e.value,e.length,r);return;case _t:return Ie([J(e,{value:v(e.value,"@","@"+x)})],n);case Te:if(e.length)return Kr(r=e.props,function(o){switch(G(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(J(e,{props:[v(o,/:(read-\w+)/,":"+Se+"$1")]})),ue(J(e,{props:[o]})),Ke(e,{props:Nt(r,n)});break;case"::placeholder":ue(J(e,{props:[v(o,/:(plac\w+)/,":"+x+"input-$1")]})),ue(J(e,{props:[v(o,/:(plac\w+)/,":"+Se+"$1")]})),ue(J(e,{props:[v(o,/:(plac\w+)/,j+"input-$1")]})),ue(J(e,{props:[o]})),Ke(e,{props:Nt(r,n)});break}return""})}}var pn={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},re=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$t="active",Mt="data-styled-version",De="6.1.19",tt=`/*!sc*/
23
- `,Le=typeof window<"u"&&typeof document<"u",hn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),zt=/invalid hook call/i,Fe=new Set,mn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
22
+ <%s key={someKey} {...props} />`,D,N,z,N),q[N+D]=!0)}if(N=null,w!==void 0&&(n(w),N=""+w),a(h)&&(n(h.key),N=""+h.key),"key"in h){w={};for(var ie in h)ie!=="key"&&(w[ie]=h[ie])}else w=h;return N&&c(w,typeof i=="function"?i.displayName||i.name||"Unknown":i),l(i,N,$,Y,o(),w,X,Z)}function m(i){typeof i=="object"&&i!==null&&i.$$typeof===S&&i._store&&(i._store.validated=1)}var b=p,S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),vt=Symbol.for("react.client.reference"),xe=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We=Object.prototype.hasOwnProperty,He=Array.isArray,ke=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(i){return i()}};var Ge,Xe={},ge=b.react_stack_bottom_frame.bind(b,s)(),Pe=ke(r(s)),q={};Se.Fragment=R,Se.jsx=function(i,h,w,D,Y){var $=1e4>xe.recentlyCreatedOwnerStacks++;return g(i,h,w,!1,D,Y,$?Error("react-stack-top-frame"):ge,$?ke(r(i)):Pe)},Se.jsxs=function(i,h,w,D,Y){var $=1e4>xe.recentlyCreatedOwnerStacks++;return g(i,h,w,!0,D,Y,$?Error("react-stack-top-frame"):ge,$?ke(r(i)):Pe)}})()),Se}var wt;function Cn(){return wt||(wt=1,process.env.NODE_ENV==="production"?Re.exports=Rn():Re.exports=Tn()),Re.exports}var d=Cn(),M=function(){return M=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},M.apply(this,arguments)};function ee(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function jn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _n=/^((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)-.*))$/,An=jn(function(e){return _n.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_="-ms-",we="-moz-",k="-webkit-",Et="comm",Te="rule",Je="decl",On="@import",xt="@keyframes",Nn="@layer",kt=Math.abs,Ke=String.fromCharCode,Ze=Object.assign;function In(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Pt(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function Ce(e,t,n){return e.indexOf(t,n)}function L(e,t){return e.charCodeAt(t)|0}function ce(e,t,n){return e.slice(t,n)}function H(e){return e.length}function Rt(e){return e.length}function Ee(e,t){return t.push(e),e}function Dn(e,t){return e.map(t).join("")}function Tt(e,t){return e.filter(function(n){return!G(n,t)})}var je=1,le=1,Ct=0,V=0,I=0,ue="";function _e(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:je,column:le,length:a,return:"",siblings:c}}function J(e,t){return Ze(_e("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function de(e){for(;e.root;)e=J(e.root,{children:[e]});Ee(e,e.siblings)}function Ln(){return I}function Fn(){return I=V>0?L(ue,--V):0,le--,I===10&&(le=1,je--),I}function B(){return I=V<Ct?L(ue,V++):0,le++,I===10&&(le=1,je++),I}function te(){return L(ue,V)}function Ae(){return V}function Oe(e,t){return ce(ue,e,t)}function Qe(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 $n(e){return je=le=1,Ct=H(ue=e),V=0,[]}function Mn(e){return ue="",e}function et(e){return Pt(Oe(V-1,tt(e===91?e+2:e===40?e+1:e)))}function zn(e){for(;(I=te())&&I<33;)B();return Qe(e)>2||Qe(I)>3?"":" "}function Vn(e,t){for(;--t&&B()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return Oe(e,Ae()+(t<6&&te()==32&&B()==32))}function tt(e){for(;B();)switch(I){case e:return V;case 34:case 39:e!==34&&e!==39&&tt(I);break;case 40:e===41&&tt(e);break;case 92:B();break}return V}function qn(e,t){for(;B()&&e+I!==57;)if(e+I===84&&te()===47)break;return"/*"+Oe(t,V-1)+"*"+Ke(e===47?e:B())}function Yn(e){for(;!Qe(te());)B();return Oe(e,V)}function Un(e){return Mn(Ne("",null,null,null,[""],e=$n(e),0,[0],e))}function Ne(e,t,n,r,o,s,a,c,u){for(var l=0,g=0,m=a,b=0,S=0,j=0,R=1,F=1,O=1,A=0,P="",T=o,f=s,E=r,y=P;F;)switch(j=A,A=B()){case 40:if(j!=108&&L(y,m-1)==58){Ce(y+=v(et(A),"&","&\f"),"&\f",kt(l?c[l-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:y+=et(A);break;case 9:case 10:case 13:case 32:y+=zn(j);break;case 92:y+=Vn(Ae()-1,7);continue;case 47:switch(te()){case 42:case 47:Ee(Bn(qn(B(),Ae()),t,n,u),u);break;default:y+="/"}break;case 123*R:c[l++]=H(y)*O;case 125*R:case 59:case 0:switch(A){case 0:case 125:F=0;case 59+g:O==-1&&(y=v(y,/\f/g,"")),S>0&&H(y)-m&&Ee(S>32?_t(y+";",r,n,m-1,u):_t(v(y," ","")+";",r,n,m-2,u),u);break;case 59:y+=";";default:if(Ee(E=jt(y,t,n,l,g,o,c,P,T=[],f=[],m,s),s),A===123)if(g===0)Ne(y,t,E,E,T,s,m,c,f);else switch(b===99&&L(y,3)===110?100:b){case 100:case 108:case 109:case 115:Ne(e,E,E,r&&Ee(jt(e,E,E,0,0,o,c,P,o,T=[],m,f),f),o,f,m,c,r?T:f);break;default:Ne(y,E,E,E,[""],f,0,c,f)}}l=g=S=0,R=O=1,P=y="",m=a;break;case 58:m=1+H(y),S=j;default:if(R<1){if(A==123)--R;else if(A==125&&R++==0&&Fn()==125)continue}switch(y+=Ke(A),A*R){case 38:O=g>0?1:(y+="\f",-1);break;case 44:c[l++]=(H(y)-1)*O,O=1;break;case 64:te()===45&&(y+=et(B())),b=te(),g=m=H(P=y+=Yn(Ae())),A++;break;case 45:j===45&&H(y)==2&&(R=0)}}return s}function jt(e,t,n,r,o,s,a,c,u,l,g,m){for(var b=o-1,S=o===0?s:[""],j=Rt(S),R=0,F=0,O=0;R<r;++R)for(var A=0,P=ce(e,b+1,b=kt(F=a[R])),T=e;A<j;++A)(T=Pt(F>0?S[A]+" "+P:v(P,/&\f/g,S[A])))&&(u[O++]=T);return _e(e,t,n,o===0?Te:c,u,l,g,m)}function Bn(e,t,n,r){return _e(e,t,n,Et,Ke(Ln()),ce(e,2,-2),0,r)}function _t(e,t,n,r,o){return _e(e,t,n,Je,ce(e,0,r),ce(e,r+1,-1),r,o)}function At(e,t,n){switch(In(e,t)){case 5103:return k+"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 k+e+e;case 4789:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+we+e+_+e+e;case 5936:switch(L(e,t+11)){case 114:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+_+e+e;case 6165:return k+e+_+"flex-"+e+e;case 5187:return k+e+v(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+_+"flex-$1$2")+e;case 5443:return k+e+_+"flex-item-"+v(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":_+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return k+e+_+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+_+v(e,"shrink","negative")+e;case 5292:return k+e+_+v(e,"basis","preferred-size")+e;case 6060:return k+"box-"+v(e,"-grow","")+k+e+_+v(e,"grow","positive")+e;case 4554:return k+v(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!G(e,/flex-|baseline/))return _+"grid-column-align"+ce(e,t)+e;break;case 2592:case 3360:return _+v(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,G(r.props,/grid-\w+-end/)})?~Ce(e+(n=n[t].value),"span",0)?e:_+v(e,"-start","")+e+_+"grid-row-span:"+(~Ce(n,"span",0)?G(n,/\d+/):+G(n,/\d+/)-+G(e,/\d+/))+";":_+v(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return G(r.props,/grid-\w+-start/)})?e:_+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,k+"$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(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+we+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ce(e,"stretch",0)?At(v(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,a,c,u,l){return _+o+":"+s+l+(a?_+o+"-span:"+(c?u:+u-+s)+l:"")+e});case 4949:if(L(e,t+6)===121)return v(e,":",":"+k)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(L(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+_+"$2box$3")+e;case 100:return v(e,":",":"+_)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}return e}function Ie(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Wn(e,t,n,r){switch(e.type){case Nn:if(e.children.length)break;case On:case Je:return e.return=e.return||e.value;case Et:return"";case xt:return e.return=e.value+"{"+Ie(e.children,r)+"}";case Te:if(!H(e.value=e.props.join(",")))return""}return H(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hn(e){var t=Rt(e);return function(n,r,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,s)||"";return a}}function Gn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Xn(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Je:e.return=At(e.value,e.length,n);return;case xt:return Ie([J(e,{value:v(e.value,"@","@"+k)})],r);case Te:if(e.length)return Dn(n=e.props,function(o){switch(G(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":de(J(e,{props:[v(o,/:(read-\w+)/,":"+we+"$1")]})),de(J(e,{props:[o]})),Ze(e,{props:Tt(n,r)});break;case"::placeholder":de(J(e,{props:[v(o,/:(plac\w+)/,":"+k+"input-$1")]})),de(J(e,{props:[v(o,/:(plac\w+)/,":"+we+"$1")]})),de(J(e,{props:[v(o,/:(plac\w+)/,_+"input-$1")]})),de(J(e,{props:[o]})),Ze(e,{props:Tt(n,r)});break}return""})}}var Jn={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},ne=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",Nt="data-styled-version",De="6.1.19",nt=`/*!sc*/
23
+ `,Le=typeof window<"u"&&typeof document<"u",Kn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),It=/invalid hook call/i,Fe=new Set,Zn=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
24
24
  `)+`You may see this warning because you've called styled inside another component.
25
25
  To resolve this only create new StyledComponents outside of any render method and function component.
26
26
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
27
- `,o=console.error;try{var s=!0;console.error=function(a){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];zt.test(a)?(s=!1,Fe.delete(n)):o.apply(void 0,ee([a],c,!1))},p.useRef(),s&&!Fe.has(n)&&(console.warn(n),Fe.add(n))}catch(a){zt.test(a.message)&&Fe.delete(n)}finally{console.error=o}}},$e=Object.freeze([]),de=Object.freeze({});function gn(e,t,r){return r===void 0&&(r=de),e.theme!==r.theme&&e.theme||t||r.theme}var rt=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),yn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vn=/(^-|-$)/g;function Vt(e){return e.replace(yn,"-").replace(vn,"")}var bn=/(a)(d)/gi,Me=52,qt=function(e){return String.fromCharCode(e+(e>25?39:97))};function nt(e){var t,r="";for(t=Math.abs(e);t>Me;t=t/Me|0)r=qt(t%Me)+r;return(qt(t%Me)+r).replace(bn,"$1-$2")}var ot,Yt=5381,ne=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ut=function(e){return ne(Yt,e)};function Bt(e){return nt(Ut(e)>>>0)}function Wt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function st(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ht=typeof Symbol=="function"&&Symbol.for,Gt=Ht?Symbol.for("react.memo"):60115,Sn=Ht?Symbol.for("react.forward_ref"):60112,wn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},En={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xn=((ot={})[Sn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ot[Gt]=Xt,ot);function Jt(e){return("type"in(t=e)&&t.type.$$typeof)===Gt?Xt:"$$typeof"in e?xn[e.$$typeof]:wn;var t}var kn=Object.defineProperty,Pn=Object.getOwnPropertyNames,Kt=Object.getOwnPropertySymbols,Rn=Object.getOwnPropertyDescriptor,Tn=Object.getPrototypeOf,Zt=Object.prototype;function Qt(e,t,r){if(typeof t!="string"){if(Zt){var n=Tn(t);n&&n!==Zt&&Qt(e,n,r)}var o=Pn(t);Kt&&(o=o.concat(Kt(t)));for(var s=Jt(e),a=Jt(t),c=0;c<o.length;++c){var u=o[c];if(!(u in En||r&&r[u]||a&&u in a||s&&u in s)){var l=Rn(t,u);try{kn(e,u,l)}catch{}}}}return e}function fe(e){return typeof e=="function"}function it(e){return typeof e=="object"&&"styledComponentId"in e}function oe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function at(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function pe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ct(e,t,r){if(r===void 0&&(r=!1),!r&&!pe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ct(e[n],t[n]);else if(pe(t))for(var n in t)e[n]=ct(e[n],t[n]);return e}function lt(e,t){Object.defineProperty(e,"toString",{value:t})}var Cn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
27
+ `,o=console.error;try{var s=!0;console.error=function(a){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];It.test(a)?(s=!1,Fe.delete(r)):o.apply(void 0,ee([a],c,!1))},p.useRef(),s&&!Fe.has(r)&&(console.warn(r),Fe.add(r))}catch(a){It.test(a.message)&&Fe.delete(r)}finally{console.error=o}}},$e=Object.freeze([]),fe=Object.freeze({});function Qn(e,t,n){return n===void 0&&(n=fe),e.theme!==n.theme&&e.theme||t||n.theme}var rt=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),er=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tr=/(^-|-$)/g;function Dt(e){return e.replace(er,"-").replace(tr,"")}var nr=/(a)(d)/gi,Me=52,Lt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Lt(t%Me)+n;return(Lt(t%Me)+n).replace(nr,"$1-$2")}var st,Ft=5381,re=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$t=function(e){return re(Ft,e)};function Mt(e){return ot($t(e)>>>0)}function zt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function it(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Vt=typeof Symbol=="function"&&Symbol.for,qt=Vt?Symbol.for("react.memo"):60115,rr=Vt?Symbol.for("react.forward_ref"):60112,or={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ir=((st={})[rr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},st[qt]=Yt,st);function Ut(e){return("type"in(t=e)&&t.type.$$typeof)===qt?Yt:"$$typeof"in e?ir[e.$$typeof]:or;var t}var ar=Object.defineProperty,cr=Object.getOwnPropertyNames,Bt=Object.getOwnPropertySymbols,lr=Object.getOwnPropertyDescriptor,ur=Object.getPrototypeOf,Wt=Object.prototype;function Ht(e,t,n){if(typeof t!="string"){if(Wt){var r=ur(t);r&&r!==Wt&&Ht(e,r,n)}var o=cr(t);Bt&&(o=o.concat(Bt(t)));for(var s=Ut(e),a=Ut(t),c=0;c<o.length;++c){var u=o[c];if(!(u in sr||n&&n[u]||a&&u in a||s&&u in s)){var l=lr(t,u);try{ar(e,u,l)}catch{}}}}return e}function pe(e){return typeof e=="function"}function at(e){return typeof e=="object"&&"styledComponentId"in e}function oe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ct(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function he(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function lt(e,t,n){if(n===void 0&&(n=!1),!n&&!he(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=lt(e[r],t[r]);else if(he(t))for(var r in t)e[r]=lt(e[r],t[r]);return e}function ut(e,t){Object.defineProperty(e,"toString",{value:t})}var dr=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
28
28
 
29
29
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
30
30
 
@@ -65,7 +65,7 @@ as for instance in your render method then you may be running into this limitati
65
65
 
66
66
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
67
67
  Has styled-components' style tag been unmounted or altered by another script?
68
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function _n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,s=e.length;o<s;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function he(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(_n.apply(void 0,ee([Cn[e]],t,!1)).trim())}var jn=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,s=o;t>=s;)if((s<<=1)<0)throw he(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),u=(a=0,r.length);a<u;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var s=n;s<o;s++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),s=o+n,a=o;a<s;a++)r+="".concat(this.tag.getRule(a)).concat(tt);return r},e})(),An=1<<30,ze=new Map,Ve=new Map,qe=1,Ye=function(e){if(ze.has(e))return ze.get(e);for(;Ve.has(qe);)qe++;var t=qe++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>An))throw he(16,"".concat(t));return ze.set(e,t),Ve.set(t,e),t},On=function(e,t){qe=t+1,ze.set(e,t),Ve.set(t,e)},Nn="style[".concat(re,"][").concat(Mt,'="').concat(De,'"]'),In=new RegExp("^".concat(re,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Dn=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},Ln=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(tt),o=[],s=0,a=n.length;s<a;s++){var c=n[s].trim();if(c){var u=c.match(In);if(u){var l=0|parseInt(u[1],10),g=u[2];l!==0&&(On(g,l),Dn(e,g,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},er=function(e){for(var t=document.querySelectorAll(Nn),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(re)!==$t&&(Ln(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Fn(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var tr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(c){var u=Array.from(c.querySelectorAll("style[".concat(re,"]")));return u[u.length-1]})(r),s=o!==void 0?o.nextSibling:null;n.setAttribute(re,$t),n.setAttribute(Mt,De);var a=Fn();return a&&n.setAttribute("nonce",a),r.insertBefore(n,s),n},$n=(function(){function e(t){this.element=tr(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,s=n.length;o<s;o++){var a=n[o];if(a.ownerNode===r)return a}throw he(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),Mn=(function(){function e(t){this.element=tr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),zn=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),rr=Le,Vn={isServer:!Le,useCSSOMInjection:!hn},nr=(function(){function e(t,r,n){t===void 0&&(t=de),r===void 0&&(r={});var o=this;this.options=M(M({},Vn),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Le&&rr&&(rr=!1,er(this)),lt(this,function(){return(function(s){for(var a=s.getTag(),c=a.length,u="",l=function(m){var b=(function(O){return Ve.get(O)})(m);if(b===void 0)return"continue";var S=s.names.get(b),C=a.getGroup(m);if(S===void 0||!S.size||C.length===0)return"continue";var P="".concat(re,".g").concat(m,'[id="').concat(b,'"]'),F="";S!==void 0&&S.forEach(function(O){O.length>0&&(F+="".concat(O,","))}),u+="".concat(C).concat(P,'{content:"').concat(F,'"}').concat(tt)},g=0;g<c;g++)l(g);return u})(o)})}return e.registerId=function(t){return Ye(t)},e.prototype.rehydrate=function(){!this.server&&Le&&er(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(M(M({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new zn(o):n?new $n(o):new Mn(o)})(this.options),new jn(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Ye(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ye(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ye(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),qn=/&/g,Yn=/^\s*\/\/.*$/gm;function or(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=or(r.children,t)),r})}function Un(e){var t,r,n,o=de,s=o.options,a=s===void 0?de:s,c=o.plugins,u=c===void 0?$e:c,l=function(b,S,C){return C.startsWith(r)&&C.endsWith(r)&&C.replaceAll(r,"").length>0?".".concat(t):b},g=u.slice();g.push(function(b){b.type===Te&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(qn,r).replace(n,l))}),a.prefix&&g.push(fn),g.push(ln);var m=function(b,S,C,P){S===void 0&&(S=""),C===void 0&&(C=""),P===void 0&&(P="&"),t=P,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var F=b.replace(Yn,""),O=an(C||S?"".concat(C," ").concat(S," { ").concat(F," }"):F);a.namespace&&(O=or(O,a.namespace));var A=[];return Ie(O,un(g.concat(dn(function(k){return A.push(k)})))),A};return m.hash=u.length?u.reduce(function(b,S){return S.name||he(15),ne(b,S.name)},Yt).toString():"",m}var Bn=new nr,ut=Un(),sr=p.createContext({shouldForwardProp:void 0,styleSheet:Bn,stylis:ut});sr.Consumer,p.createContext(void 0);function ir(){return p.useContext(sr)}var dt=(function(){function e(t,r){var n=this;this.inject=function(o,s){s===void 0&&(s=ut);var a=n.name+s.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,s(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,lt(this,function(){throw he(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ut),this.name+t.hash},e})(),Wn=function(e){return e>="A"&&e<="Z"};function ar(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Wn(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var cr=function(e){return e==null||e===!1||e===""},lr=function(e){var t,r,n=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!cr(s)&&(Array.isArray(s)&&s.isCss||fe(s)?n.push("".concat(ar(o),":"),s,";"):pe(s)?n.push.apply(n,ee(ee(["".concat(o," {")],lr(s),!1),["}"],!1)):n.push("".concat(ar(o),": ").concat((t=o,(r=s)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in pn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function se(e,t,r,n){if(cr(e))return[];if(it(e))return[".".concat(e.styledComponentId)];if(fe(e)){if(!fe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof dt||pe(o)||o===null||console.error("".concat(Wt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),se(o,t,r,n)}var s;return e instanceof dt?r?(e.inject(r,n),[e.getName(n)]):[e]:pe(e)?lr(e):Array.isArray(e)?Array.prototype.concat.apply($e,e.map(function(a){return se(a,t,r,n)})):[e.toString()]}function Hn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(fe(r)&&!it(r))return!1}return!0}var Gn=Ut(De),Xn=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Hn(t),this.componentId=r,this.baseHash=ne(Gn,r),this.baseStyle=n,nr.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=oe(o,this.staticRulesId);else{var s=at(se(this.rules,t,r,n)),a=nt(ne(this.baseHash,s)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(s,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=oe(o,a),this.staticRulesId=a}else{for(var u=ne(this.baseHash,n.hash),l="",g=0;g<this.rules.length;g++){var m=this.rules[g];if(typeof m=="string")l+=m,process.env.NODE_ENV!=="production"&&(u=ne(u,m));else if(m){var b=at(se(m,t,r,n));u=ne(u,b+g),l+=b}}if(l){var S=nt(u>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(l,".".concat(S),void 0,this.componentId)),o=oe(o,S)}}return o},e})(),ur=p.createContext(void 0);ur.Consumer;var ft={},dr=new Set;function Jn(e,t,r){var n=it(e),o=e,s=!st(e),a=t.attrs,c=a===void 0?$e:a,u=t.componentId,l=u===void 0?(function(R,d){var E=typeof R!="string"?"sc":Vt(R);ft[E]=(ft[E]||0)+1;var y="".concat(E,"-").concat(Bt(De+E+ft[E]));return d?"".concat(d,"-").concat(y):y})(t.displayName,t.parentComponentId):u,g=t.displayName,m=g===void 0?(function(R){return st(R)?"styled.".concat(R):"Styled(".concat(Wt(R),")")})(e):g,b=t.displayName&&t.componentId?"".concat(Vt(t.displayName),"-").concat(t.componentId):t.componentId||l,S=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,C=t.shouldForwardProp;if(n&&o.shouldForwardProp){var P=o.shouldForwardProp;if(t.shouldForwardProp){var F=t.shouldForwardProp;C=function(R,d){return P(R,d)&&F(R,d)}}else C=P}var O=new Xn(r,b,n?o.componentStyle:void 0);function A(R,d){return(function(E,y,W){var K=E.attrs,gt=E.componentStyle,Ee=E.defaultProps,Be=E.foldedComponentIds,We=E.styledComponentId,xe=E.target,He=p.useContext(ur),Ge=ir(),me=E.shouldForwardProp||Ge.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(We);var ke=gn(y,He,Ee)||de,q=(function($,X,Z){for(var N,z=M(M({},X),{className:void 0,theme:Z}),ie=0;ie<$.length;ie+=1){var ge=fe(N=$[ie])?N(z):N;for(var Q in ge)z[Q]=Q==="className"?oe(z[Q],ge[Q]):Q==="style"?M(M({},z[Q]),ge[Q]):ge[Q]}return X.className&&(z.className=oe(z.className,X.className)),z})(K,y,ke),i=q.as||xe,h={};for(var w in q)q[w]===void 0||w[0]==="$"||w==="as"||w==="theme"&&q.theme===ke||(w==="forwardedAs"?h.as=q.forwardedAs:me&&!me(w,i)||(h[w]=q[w],me||process.env.NODE_ENV!=="development"||Hr(w)||dr.has(w)||!rt.has(i)||(dr.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=(function($,X){var Z=ir(),N=$.generateAndInjectStyles(X,Z.styleSheet,Z.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(N),N})(gt,q);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(D);var Y=oe(Be,We);return D&&(Y+=" "+D),q.className&&(Y+=" "+q.className),h[st(i)&&!rt.has(i)?"class":"className"]=Y,W&&(h.ref=W),p.createElement(i,h)})(k,R,d)}A.displayName=m;var k=p.forwardRef(A);return k.attrs=S,k.componentStyle=O,k.displayName=m,k.shouldForwardProp=C,k.foldedComponentIds=n?oe(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=b,k.target=n?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=n?(function(d){for(var E=[],y=1;y<arguments.length;y++)E[y-1]=arguments[y];for(var W=0,K=E;W<K.length;W++)ct(d,K[W],!0);return d})({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(mn(m,b),k.warnTooManyClasses=(function(R,d){var E={},y=!1;return function(W){if(!y&&(E[W]=!0,Object.keys(E).length>=200)){var K=d?' with the id of "'.concat(d,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat(K,`.
68
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function fr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function me(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(fr.apply(void 0,ee([dr[e]],t,!1)).trim())}var pr=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw me(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),u=(a=0,n.length);a<u;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(nt);return n},e})(),hr=1<<30,ze=new Map,Ve=new Map,qe=1,Ye=function(e){if(ze.has(e))return ze.get(e);for(;Ve.has(qe);)qe++;var t=qe++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>hr))throw me(16,"".concat(t));return ze.set(e,t),Ve.set(t,e),t},mr=function(e,t){qe=t+1,ze.set(e,t),Ve.set(t,e)},gr="style[".concat(ne,"][").concat(Nt,'="').concat(De,'"]'),yr=new RegExp("^".concat(ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vr=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},br=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(nt),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var u=c.match(yr);if(u){var l=0|parseInt(u[1],10),g=u[2];l!==0&&(mr(g,l),vr(e,g,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},Gt=function(e){for(var t=document.querySelectorAll(gr),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ne)!==Ot&&(br(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Sr(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(c){var u=Array.from(c.querySelectorAll("style[".concat(ne,"]")));return u[u.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(ne,Ot),r.setAttribute(Nt,De);var a=Sr();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},wr=(function(){function e(t){this.element=Xt(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw me(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Er=(function(){function e(t){this.element=Xt(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),xr=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Jt=Le,kr={isServer:!Le,useCSSOMInjection:!Kn},Kt=(function(){function e(t,n,r){t===void 0&&(t=fe),n===void 0&&(n={});var o=this;this.options=M(M({},kr),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Le&&Jt&&(Jt=!1,Gt(this)),ut(this,function(){return(function(s){for(var a=s.getTag(),c=a.length,u="",l=function(m){var b=(function(O){return Ve.get(O)})(m);if(b===void 0)return"continue";var S=s.names.get(b),j=a.getGroup(m);if(S===void 0||!S.size||j.length===0)return"continue";var R="".concat(ne,".g").concat(m,'[id="').concat(b,'"]'),F="";S!==void 0&&S.forEach(function(O){O.length>0&&(F+="".concat(O,","))}),u+="".concat(j).concat(R,'{content:"').concat(F,'"}').concat(nt)},g=0;g<c;g++)l(g);return u})(o)})}return e.registerId=function(t){return Ye(t)},e.prototype.rehydrate=function(){!this.server&&Le&&Gt(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(M(M({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new xr(o):r?new wr(o):new Er(o)})(this.options),new pr(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Ye(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ye(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ye(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Pr=/&/g,Rr=/^\s*\/\/.*$/gm;function Zt(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Zt(n.children,t)),n})}function Tr(e){var t,n,r,o=fe,s=o.options,a=s===void 0?fe:s,c=o.plugins,u=c===void 0?$e:c,l=function(b,S,j){return j.startsWith(n)&&j.endsWith(n)&&j.replaceAll(n,"").length>0?".".concat(t):b},g=u.slice();g.push(function(b){b.type===Te&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(Pr,n).replace(r,l))}),a.prefix&&g.push(Xn),g.push(Wn);var m=function(b,S,j,R){S===void 0&&(S=""),j===void 0&&(j=""),R===void 0&&(R="&"),t=R,n=S,r=new RegExp("\\".concat(n,"\\b"),"g");var F=b.replace(Rr,""),O=Un(j||S?"".concat(j," ").concat(S," { ").concat(F," }"):F);a.namespace&&(O=Zt(O,a.namespace));var A=[];return Ie(O,Hn(g.concat(Gn(function(P){return A.push(P)})))),A};return m.hash=u.length?u.reduce(function(b,S){return S.name||me(15),re(b,S.name)},Ft).toString():"",m}var Cr=new Kt,dt=Tr(),Qt=p.createContext({shouldForwardProp:void 0,styleSheet:Cr,stylis:dt});Qt.Consumer,p.createContext(void 0);function en(){return p.useContext(Qt)}var ft=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=dt);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ut(this,function(){throw me(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dt),this.name+t.hash},e})(),jr=function(e){return e>="A"&&e<="Z"};function tn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;jr(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var nn=function(e){return e==null||e===!1||e===""},rn=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!nn(s)&&(Array.isArray(s)&&s.isCss||pe(s)?r.push("".concat(tn(o),":"),s,";"):he(s)?r.push.apply(r,ee(ee(["".concat(o," {")],rn(s),!1),["}"],!1)):r.push("".concat(tn(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Jn||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function se(e,t,n,r){if(nn(e))return[];if(at(e))return[".".concat(e.styledComponentId)];if(pe(e)){if(!pe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof ft||he(o)||o===null||console.error("".concat(zt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),se(o,t,n,r)}var s;return e instanceof ft?n?(e.inject(n,r),[e.getName(r)]):[e]:he(e)?rn(e):Array.isArray(e)?Array.prototype.concat.apply($e,e.map(function(a){return se(a,t,n,r)})):[e.toString()]}function _r(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(pe(n)&&!at(n))return!1}return!0}var Ar=$t(De),Or=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_r(t),this.componentId=n,this.baseHash=re(Ar,n),this.baseStyle=r,Kt.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=oe(o,this.staticRulesId);else{var s=ct(se(this.rules,t,n,r)),a=ot(re(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=oe(o,a),this.staticRulesId=a}else{for(var u=re(this.baseHash,r.hash),l="",g=0;g<this.rules.length;g++){var m=this.rules[g];if(typeof m=="string")l+=m,process.env.NODE_ENV!=="production"&&(u=re(u,m));else if(m){var b=ct(se(m,t,n,r));u=re(u,b+g),l+=b}}if(l){var S=ot(u>>>0);n.hasNameForId(this.componentId,S)||n.insertRules(this.componentId,S,r(l,".".concat(S),void 0,this.componentId)),o=oe(o,S)}}return o},e})(),on=p.createContext(void 0);on.Consumer;var pt={},sn=new Set;function Nr(e,t,n){var r=at(e),o=e,s=!it(e),a=t.attrs,c=a===void 0?$e:a,u=t.componentId,l=u===void 0?(function(T,f){var E=typeof T!="string"?"sc":Dt(T);pt[E]=(pt[E]||0)+1;var y="".concat(E,"-").concat(Mt(De+E+pt[E]));return f?"".concat(f,"-").concat(y):y})(t.displayName,t.parentComponentId):u,g=t.displayName,m=g===void 0?(function(T){return it(T)?"styled.".concat(T):"Styled(".concat(zt(T),")")})(e):g,b=t.displayName&&t.componentId?"".concat(Dt(t.displayName),"-").concat(t.componentId):t.componentId||l,S=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,j=t.shouldForwardProp;if(r&&o.shouldForwardProp){var R=o.shouldForwardProp;if(t.shouldForwardProp){var F=t.shouldForwardProp;j=function(T,f){return R(T,f)&&F(T,f)}}else j=R}var O=new Or(n,b,r?o.componentStyle:void 0);function A(T,f){return(function(E,y,W){var K=E.attrs,vt=E.componentStyle,xe=E.defaultProps,We=E.foldedComponentIds,He=E.styledComponentId,ke=E.target,Ge=p.useContext(on),Xe=en(),ge=E.shouldForwardProp||Xe.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(He);var Pe=Qn(y,Ge,xe)||fe,q=(function($,X,Z){for(var N,z=M(M({},X),{className:void 0,theme:Z}),ie=0;ie<$.length;ie+=1){var ye=pe(N=$[ie])?N(z):N;for(var Q in ye)z[Q]=Q==="className"?oe(z[Q],ye[Q]):Q==="style"?M(M({},z[Q]),ye[Q]):ye[Q]}return X.className&&(z.className=oe(z.className,X.className)),z})(K,y,Pe),i=q.as||ke,h={};for(var w in q)q[w]===void 0||w[0]==="$"||w==="as"||w==="theme"&&q.theme===Pe||(w==="forwardedAs"?h.as=q.forwardedAs:ge&&!ge(w,i)||(h[w]=q[w],ge||process.env.NODE_ENV!=="development"||An(w)||sn.has(w)||!rt.has(i)||(sn.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=(function($,X){var Z=en(),N=$.generateAndInjectStyles(X,Z.styleSheet,Z.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(N),N})(vt,q);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(D);var Y=oe(We,He);return D&&(Y+=" "+D),q.className&&(Y+=" "+q.className),h[it(i)&&!rt.has(i)?"class":"className"]=Y,W&&(h.ref=W),p.createElement(i,h)})(P,T,f)}A.displayName=m;var P=p.forwardRef(A);return P.attrs=S,P.componentStyle=O,P.displayName=m,P.shouldForwardProp=j,P.foldedComponentIds=r?oe(o.foldedComponentIds,o.styledComponentId):"",P.styledComponentId=b,P.target=r?o.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?(function(f){for(var E=[],y=1;y<arguments.length;y++)E[y-1]=arguments[y];for(var W=0,K=E;W<K.length;W++)lt(f,K[W],!0);return f})({},o.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Zn(m,b),P.warnTooManyClasses=(function(T,f){var E={},y=!1;return function(W){if(!y&&(E[W]=!0,Object.keys(E).length>=200)){var K=f?' with the id of "'.concat(f,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(K,`.
69
69
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
70
70
  Example:
71
71
  const Component = styled.div.attrs(props => ({
@@ -74,26 +74,18 @@ Example:
74
74
  },
75
75
  }))\`width: 100%;\`
76
76
 
77
- <Component />`),y=!0,E={}}}})(m,b)),lt(k,function(){return".".concat(k.styledComponentId)}),s&&Qt(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function fr(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var pr=function(e){return Object.assign(e,{isCss:!0})};function hr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(fe(e)||pe(e))return pr(se(fr($e,ee([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?se(n):pr(se(fr(n,t)))}function pt(e,t,r){if(r===void 0&&(r=de),!t)throw he(1,t);var n=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,r,hr.apply(void 0,ee([o],s,!1)))};return n.attrs=function(o){return pt(e,t,M(M({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return pt(e,t,M(M({},r),o))},n}var mr=function(e){return pt(Jn,e)},T=mr;rt.forEach(function(e){T[e]=mr(e)});function Kn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=at(hr.apply(void 0,ee([e],t,!1))),o=Bt(n);return new dt(o,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
77
+ <Component />`),y=!0,E={}}}})(m,b)),ut(P,function(){return".".concat(P.styledComponentId)}),s&&Ht(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function an(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var cn=function(e){return Object.assign(e,{isCss:!0})};function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(pe(e)||he(e))return cn(se(an($e,ee([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?se(r):cn(se(an(r,t)))}function ht(e,t,n){if(n===void 0&&(n=fe),!t)throw me(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,ln.apply(void 0,ee([o],s,!1)))};return r.attrs=function(o){return ht(e,t,M(M({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ht(e,t,M(M({},n),o))},r}var un=function(e){return ht(Nr,e)},C=un;rt.forEach(function(e){C[e]=un(e)});function Ir(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=ct(ln.apply(void 0,ee([e],t,!1))),o=Mt(r);return new ft(o,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
78
78
  Perhaps you're looking to import 'styled-components/native'?
79
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(re,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
79
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(ne,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
80
80
 
81
- See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>Promise.resolve().then(()=>No)),Qn=p.lazy(()=>Promise.resolve().then(()=>Io));function gr({url:e,isLive:t,isMuted:r=!1}){const n=_(d=>d.handleDurationChange),o=_(d=>d.handleEnd),s=_(d=>d.handleLoadedMetadata),a=_(d=>d.handleLoadStart),c=_(d=>d.handlePause),u=_(d=>d.handlePlay),l=_(d=>d.handlePlaying),g=_(d=>d.handleSeeked),m=_(d=>d.handleSeeking),b=_(d=>d.handleTimeUpdate),S=_(d=>d.handleWaiting),C=_(d=>d.techRef),P=p.useRef(null),F=()=>t?{}:{onDurationChange:n,onSeeked:g,onSeeking:m,onTimeUpdate:O},O=()=>{(!P.current||Date.now()-P.current>=1e3)&&(b(),P.current=Date.now())},k=(()=>{switch(Ur(e)){case Re.hls:return Zn;case Re.dash:return Qn}return null})();if(!k)return null;const R=F();return f.jsxs(f.Fragment,{children:[f.jsx(p.Suspense,{fallback:null,children:f.jsx(k,{isLive:t,url:e})}),f.jsx(eo,{ref:C,playsInline:!0,autoPlay:!0,controls:!1,muted:r,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:a,onPause:c,onPlay:u,onPlaying:l,onWaiting:S,tabIndex:-1,...R})]})}const eo=T.video`
82
- position: relative;
83
- width: 100%;
84
- height: 100%;
85
-
86
- @media (min-width: 768px) {
87
- pointer-events: none;
88
- }
89
- `;function to({...e}){return f.jsx(ro,{...e})}const ro=T.button`
81
+ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){return d.jsx(Dr,{...e})}const Dr=C.button`
90
82
  display: flex;
91
83
  align-items: center;
92
84
  justify-content: center;
85
+ margin: 0;
86
+ padding: 0;
93
87
  width: 2.25rem;
94
88
  height: 2.25rem;
95
- padding: 0;
96
- margin: 0;
97
89
  cursor: pointer;
98
90
  color: white;
99
91
  background: none;
@@ -110,7 +102,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
110
102
  &:hover {
111
103
  background: rgba(0, 0, 0, 0.1);
112
104
  }
113
- `,yr=()=>{const e=_(l=>l.containerRef),t=_(l=>l.exitFullscreen),r=_(l=>l.isFullscreen),n=_(l=>l.requestFullscreen),o=_(l=>l.setIsFullscreen),s=_(l=>l.setIsFullscreenReady),a=_(l=>l.techRef),c=p.useCallback(l=>{l.stopPropagation(),o(Nr())},[o]),u=()=>{r?t():n()};return p.useEffect(()=>{const l=Pt?a.current:e.current;if(l)return Lr(l,c)},[e,c,a]),p.useEffect(()=>{s(!0)},[s]),f.jsx(to,{onClick:u,children:r?f.jsx(yt.MinimizeIcon,{}):f.jsx(yt.MaximizeIcon,{})})};function no(e,t=500){const[r,n]=p.useState(e);return p.useEffect(()=>{const o=window.setTimeout(()=>n(e),t);return()=>{window.clearTimeout(o)}},[e,t]),r}function vr({style:e,...t}){const r=_(o=>o.isLoading);return no(r,50)?f.jsx(oo,{style:e,...t,children:f.jsx(io,{})}):null}const oo=T.div`
105
+
106
+ &:focus {
107
+ outline: none;
108
+ }
109
+
110
+ &:disabled {
111
+ opacity: 0.5;
112
+ cursor: not-allowed;
113
+ }
114
+ `,dn=e=>{let t;const n=new Set,r=(l,g)=>{const m=typeof l=="function"?l(t):l;if(!Object.is(m,t)){const b=t;t=g??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(S=>S(t,b))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:l=>(n.add(l),()=>n.delete(l))},u=t=e(r,o,c);return c},Lr=(e=>e?dn(e):dn),Fr=e=>e;function fn(e,t=Fr){const n=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(n),n}const pn=e=>{const t=Lr(e),n=r=>fn(t,r);return Object.assign(n,t),n},$r=(e=>e?pn(e):pn);function Mr(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function zr(e){return Mr(e,"milliseconds","seconds")}const hn=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Vr(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const mn=Vr(/iPhone|iPad|iPod/i);function qr(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function Yr(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function Ur(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function Br(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const Wr=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const n=t().techRef.current;n&&e({duration:n.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const n=t().techRef.current;n&&(n.loop=t().isLoop,n.volume=n.muted?0:1,t().startTime!==-1&&(n.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:n.currentTime,duration:n.duration,startTime:-1,isMetaLoaded:!0,volume:n.muted?0:100}))},handleLoadStart:()=>{const n=t().techRef.current;n&&(e({isReady:!0}),n.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(r=>e(()=>(console.info("Player failed to autoplay",r),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const n=t().techRef.current;n&&e({currentTime:n.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const n=t().techRef.current;n&&(n.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>zr(Date.now()-t().pauseTime),play:()=>{const n=t().techRef.current;n&&(n.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:n=>{const r=t().techRef.current;r&&(r.currentTime=n,(r.paused||r.ended)&&r.play(),e({seekTime:-1,currentTime:n,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:n=>e({isLoading:n}),setIsLoop:n=>{const r=t().techRef.current;r&&(r.loop=n,e({isLoop:n}))},setStartTime:n=>e({startTime:n}),setVolume:n=>{const r=t().techRef.current;r&&(r.muted=n===0,r.volume=n/100,e({volume:n}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),Hr=e=>({idleLocks:new Set,addIdleLock:t=>e(n=>({idleLocks:new Set(n.idleLocks).add(t)})),removeIdleLock:t=>e(n=>{const r=new Set(n.idleLocks);return r.delete(t),{idleLocks:r}})}),Gr=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{Ur(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=mn?n:r;o&&Yr(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),Xr=e=>({url:"",setURL:t=>e({url:t})}),Jr=e=>()=>({...e}),Kr=(e,t)=>$r()((...n)=>({...Wr(...n),...Hr(...n),...Gr(...n),...Xr(...n),...Jr({techRef:e,containerRef:t})(...n)})),gn=p.createContext(null),Zr=({children:e})=>{const t=p.useRef(null),n=p.useRef(null),r=p.useRef(null);return t.current||(t.current=Kr(n,r)),d.jsx(gn.Provider,{value:t.current,children:e})},x=e=>{const t=p.useContext(gn);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return fn(t,e)};function Qr(){const[e,t]=p.useState(!1),n=x(a=>a.isPlaying),r=x(a=>a.isStarted),o=x(a=>a.play),s=()=>{n||o()};return p.useEffect(()=>{t(!r&&!n)},[r,n]),e?d.jsx(mt,{onClick:s,children:n?d.jsx(ae.PauseIcon,{}):d.jsx(ae.PlayIcon,{})}):null}function yn({children:e}){return d.jsx(Zr,{children:e})}const Be={hls:"hls",dash:"dash"};function eo(e){return e&&/\.m3u8/i.test(e)?Be.hls:Be.dash}const to=p.lazy(()=>Promise.resolve().then(()=>Do)),no=p.lazy(()=>Promise.resolve().then(()=>Lo));function vn({url:e,isLive:t,isMuted:n=!1}){const r=x(f=>f.handleDurationChange),o=x(f=>f.handleEnd),s=x(f=>f.handleLoadedMetadata),a=x(f=>f.handleLoadStart),c=x(f=>f.handlePause),u=x(f=>f.handlePlay),l=x(f=>f.handlePlaying),g=x(f=>f.handleSeeked),m=x(f=>f.handleSeeking),b=x(f=>f.handleTimeUpdate),S=x(f=>f.handleWaiting),j=x(f=>f.techRef),R=p.useRef(null),F=()=>t?{}:{onDurationChange:r,onSeeked:g,onSeeking:m,onTimeUpdate:O},O=()=>{(!R.current||Date.now()-R.current>=1e3)&&(b(),R.current=Date.now())},P=(()=>{switch(eo(e)){case Be.hls:return to;case Be.dash:return no}return null})();if(!P)return null;const T=F();return d.jsxs(d.Fragment,{children:[d.jsx(p.Suspense,{fallback:null,children:d.jsx(P,{isLive:t,url:e})}),d.jsx(ro,{ref:j,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:a,onPause:c,onPlay:u,onPlaying:l,onWaiting:S,tabIndex:-1,...T})]})}const ro=C.video`
115
+ position: relative;
116
+ width: 100%;
117
+ height: 100%;
118
+
119
+ @media (min-width: 768px) {
120
+ pointer-events: none;
121
+ }
122
+ `,bn=()=>{const e=x(l=>l.containerRef),t=x(l=>l.exitFullscreen),n=x(l=>l.isFullscreen),r=x(l=>l.requestFullscreen),o=x(l=>l.setIsFullscreen),s=x(l=>l.setIsFullscreenReady),a=x(l=>l.techRef),c=p.useCallback(l=>{l.stopPropagation(),o(qr())},[o]),u=()=>{n?t():r()};return p.useEffect(()=>{const l=mn?a.current:e.current;if(l)return Br(l,c)},[e,c,a]),p.useEffect(()=>{s(!0)},[s]),d.jsx(mt,{onClick:u,children:n?d.jsx(ae.MinimizeIcon,{}):d.jsx(ae.MaximizeIcon,{})})};function oo(e,t=500){const[n,r]=p.useState(e);return p.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function Sn({style:e,...t}){const n=x(o=>o.isLoading);return oo(n,50)?d.jsx(so,{style:e,...t,children:d.jsx(ao,{})}):null}const so=C.div`
114
123
  pointer-events: none;
115
124
  position: absolute;
116
125
  top: 0;
@@ -122,21 +131,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
122
131
  height: 100%;
123
132
  align-items: center;
124
133
  justify-content: center;
125
- `,so=Kn`
134
+ `,io=Ir`
126
135
  from {
127
136
  transform: rotate(0deg);
128
137
  }
129
138
  to {
130
139
  transform: rotate(360deg);
131
140
  }
132
- `,io=T.div`
141
+ `,ao=C.div`
133
142
  width: 2rem;
134
143
  height: 2rem;
135
144
  border: 0.25rem solid #fff;
136
145
  border-bottom-color: transparent;
137
146
  border-radius: 50%;
138
- animation: ${so} 1s linear infinite;
139
- `;function ao(e){return f.jsx(Tt,{children:f.jsx(co,{...e})})}function co({url:e}){const t=_(r=>r.containerRef);return f.jsxs(lo,{ref:t,children:[f.jsx(gr,{url:e,isLive:!0}),f.jsx(vr,{}),f.jsx(uo,{children:f.jsx(fo,{children:f.jsxs(po,{children:[f.jsx(ho,{}),f.jsx(mo,{}),f.jsx(go,{children:f.jsx(yr,{})})]})})})]})}const lo=T.div`
147
+ animation: ${io} 1s linear infinite;
148
+ `;function co(e){return d.jsx(yn,{children:d.jsx(lo,{...e})})}function lo({url:e}){const t=x(n=>n.containerRef);return d.jsxs(uo,{ref:t,children:[d.jsx(vn,{url:e,isLive:!0}),d.jsx(Sn,{}),d.jsx(fo,{children:d.jsx(po,{children:d.jsxs(ho,{children:[d.jsx(mo,{children:d.jsx(Qr,{})}),d.jsx(go,{}),d.jsx(yo,{children:d.jsx(bn,{})})]})})})]})}const uo=C.div`
140
149
  position: absolute;
141
150
  top: 0;
142
151
  left: 0;
@@ -145,7 +154,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
145
154
  background-color: black;
146
155
  color: white;
147
156
  overflow: hidden;
148
- `,uo=T.div`
157
+ `,fo=C.div`
149
158
  position: absolute;
150
159
  left: 0;
151
160
  width: 100%;
@@ -157,7 +166,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
157
166
  @media (min-width: 768px) {
158
167
  padding-top: 2rem;
159
168
  }
160
- `,fo=T.div`
169
+ `,po=C.div`
161
170
  display: flex;
162
171
  flex-direction: column;
163
172
  padding-left: 0.5rem;
@@ -169,12 +178,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
169
178
  padding-left: 1rem;
170
179
  padding-right: 1rem;
171
180
  }
172
- `,po=T.div`
181
+ `,ho=C.div`
173
182
  margin: auto 0;
174
183
  display: flex;
175
184
  width: 100%;
176
185
  align-items: center;
177
- `,ht=T.div`
186
+ `,gt=C.div`
178
187
  display: flex;
179
188
  flex: 1;
180
189
  align-items: center;
@@ -183,26 +192,26 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
183
192
  @media (min-width: 768px) {
184
193
  gap: 1rem;
185
194
  }
186
- `,ho=T(ht)`
195
+ `,mo=C(gt)`
187
196
  justify-content: flex-start;
188
- `,mo=T(ht)`
197
+ `,go=C(gt)`
189
198
  justify-content: center;
190
- `,go=T(ht)`
199
+ `,yo=C(gt)`
191
200
  justify-content: flex-end;
192
- `;function yo(e){return null}function vo(){const[e,t]=p.useState(-1),r=_(s=>s.currentTime),n=_(s=>s.duration),o=parseFloat((n?(e!==-1?e:r)/n*100:0).toFixed(1));return f.jsxs(bo,{children:[f.jsx(br,{children:f.jsx(wo,{children:kt(r)})}),f.jsx(So,{children:f.jsx(yo,{value:o,step:.1})}),f.jsx(br,{children:f.jsx(Eo,{children:kt(n)})})]})}const bo=T.div`
201
+ `;function vo(){const e=x(o=>o.isPlaying),t=x(o=>o.pause),n=x(o=>o.play),r=()=>{e?t():n()};return d.jsx(mt,{onClick:r,children:e?d.jsx(ae.PauseIcon,{}):d.jsx(ae.PlayIcon,{})})}function bo(e){return null}function So(){const[e,t]=p.useState(-1),n=x(s=>s.currentTime),r=x(s=>s.duration),o=parseFloat((r?(e!==-1?e:n)/r*100:0).toFixed(1));return d.jsxs(wo,{children:[d.jsx(wn,{children:d.jsx(xo,{children:hn(n)})}),d.jsx(Eo,{children:d.jsx(bo,{value:o,step:.1})}),d.jsx(wn,{children:d.jsx(ko,{children:hn(r)})})]})}const wo=C.div`
193
202
  display: flex;
194
203
  align-items: center;
195
- `,br=T.div``,So=T.div`
204
+ `,wn=C.div``,Eo=C.div`
196
205
  flex: 1;
197
- `,Sr=T.p`
206
+ `,En=C.p`
198
207
  margin: 0;
199
208
  color: #fff;
200
209
  font-size: 0.875rem;
201
- `,wo=T(Sr)`
210
+ `,xo=C(En)`
202
211
  padding-left: 0.25rem;
203
- `,Eo=T(Sr)`
212
+ `,ko=C(En)`
204
213
  padding-right: 0.25rem;
205
- `;function xo(e){return f.jsx(Tt,{children:f.jsx(ko,{...e})})}function ko({url:e}){const t=_(r=>r.containerRef);return f.jsxs(Po,{ref:t,children:[f.jsx(gr,{url:e,isLive:!1}),f.jsx(vr,{}),f.jsx(Ro,{children:f.jsxs(To,{children:[f.jsx(vo,{}),f.jsxs(Co,{children:[f.jsx(_o,{}),f.jsx(jo,{}),f.jsx(Ao,{children:f.jsx(yr,{})})]})]})})]})}const Po=T.div`
214
+ `;function Po(e){return d.jsx(yn,{children:d.jsx(Ro,{...e})})}function Ro({url:e}){const t=x(n=>n.containerRef);return d.jsxs(To,{ref:t,children:[d.jsx(vn,{url:e,isLive:!1}),d.jsx(Sn,{}),d.jsx(Co,{children:d.jsxs(jo,{children:[d.jsx(So,{}),d.jsxs(_o,{children:[d.jsx(Ao,{children:d.jsx(vo,{})}),d.jsx(Oo,{}),d.jsx(No,{children:d.jsx(bn,{})})]})]})})]})}const To=C.div`
206
215
  position: absolute;
207
216
  top: 0;
208
217
  left: 0;
@@ -211,7 +220,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
211
220
  background-color: black;
212
221
  color: white;
213
222
  overflow: hidden;
214
- `,Ro=T.div`
223
+ `,Co=C.div`
215
224
  position: absolute;
216
225
  left: 0;
217
226
  width: 100%;
@@ -223,7 +232,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
223
232
  @media (min-width: 768px) {
224
233
  padding-top: 2rem;
225
234
  }
226
- `,To=T.div`
235
+ `,jo=C.div`
227
236
  display: flex;
228
237
  flex-direction: column;
229
238
  padding-left: 0.5rem;
@@ -237,12 +246,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
237
246
  padding-right: 1rem;
238
247
  height: 4rem;
239
248
  }
240
- `,Co=T.div`
249
+ `,_o=C.div`
241
250
  margin: auto 0;
242
251
  display: flex;
243
252
  width: 100%;
244
253
  align-items: center;
245
- `,mt=T.div`
254
+ `,yt=C.div`
246
255
  display: flex;
247
256
  flex: 1;
248
257
  align-items: center;
@@ -251,11 +260,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);const Zn=p.lazy(()=>P
251
260
  @media (min-width: 768px) {
252
261
  gap: 1rem;
253
262
  }
254
- `,_o=T(mt)`
263
+ `,Ao=C(yt)`
255
264
  justify-content: flex-start;
256
- `,jo=T(mt)`
265
+ `,Oo=C(yt)`
257
266
  justify-content: center;
258
- `,Ao=T(mt)`
267
+ `,No=C(yt)`
259
268
  justify-content: flex-end;
260
- `;function Oo({url:e,isLive:t}){const r=p.useRef(null),n=_(c=>c.techRef),o=p.useCallback(()=>{r.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),r.current.loadSource(e))},[e]),s=p.useCallback(()=>{if(!n.current)return;const l=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(l)),console.log("[Player] Version",ye.version),r.current=new ye(l),r.current.attachMedia(n.current),r.current.on(ye.Events.MEDIA_ATTACHED,o)}catch(g){throw new Error(`Error initializing Hls: ${g}`)}},[o,t,n,e]),a=p.useCallback(()=>{r.current&&(r.current.off(ye.Events.MEDIA_ATTACHED,o),r.current.destroy(),r.current=null)},[o]);return p.useEffect(()=>(ye.isSupported()&&s(),a),[a,s]),null}const No=Object.freeze(Object.defineProperty({__proto__:null,default:Oo},Symbol.toStringTag,{value:"Module"})),Io=Object.freeze(Object.defineProperty({__proto__:null,default:({url:e,isLive:t})=>{const r=p.useRef(null),n=_(c=>c.techRef),o=p.useCallback(c=>{const u=c.codecs;return!(u&&new RegExp(/hev1|hvc1/).test(u))},[]),s=p.useCallback(()=>{if(!n.current)return;const l=t?{abr:{initialBitrate:{video:2e5}},protection:{ignoreKeyStatuses:!0}}:{};try{r.current=xr.MediaPlayer().create(),console.log("[Player] URL",e),console.log("[Player] Version",r.current.getVersion()),console.log("[Player] Config init",JSON.stringify(l)),r.current.registerCustomCapabilitiesFilter(o),r.current.initialize(n.current,e,!0),r.current.updateSettings(l),console.log("[Player] Config current",JSON.stringify(r.current.getSettings()))}catch(g){throw new Error(`Error initializing Dash: ${g}`)}},[o,n,e,t]),a=p.useCallback(()=>{r.current&&(r.current.unregisterCustomCapabilitiesFilter(o),r.current.destroy(),r.current=null,console.log("[Player] Dash destroyed"))},[o]);return p.useEffect(()=>(s(),a),[a,s]),null}},Symbol.toStringTag,{value:"Module"}));U.LivePlayer=ao,U.VodPlayer=xo,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
269
+ `;function Io({url:e,isLive:t}){const n=p.useRef(null),r=x(c=>c.techRef),o=p.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),s=p.useCallback(()=>{if(!r.current)return;const l=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(l)),console.log("[Player] Version",ve.version),n.current=new ve(l),n.current.attachMedia(r.current),n.current.on(ve.Events.MEDIA_ATTACHED,o)}catch(g){throw new Error(`Error initializing Hls: ${g}`)}},[o,t,r,e]),a=p.useCallback(()=>{n.current&&(n.current.off(ve.Events.MEDIA_ATTACHED,o),n.current.destroy(),n.current=null)},[o]);return p.useEffect(()=>(ve.isSupported()&&s(),a),[a,s]),null}const Do=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Lo=Object.freeze(Object.defineProperty({__proto__:null,default:({url:e,isLive:t})=>{const n=p.useRef(null),r=x(c=>c.techRef),o=p.useCallback(c=>{const u=c.codecs;return!(u&&new RegExp(/hev1|hvc1/).test(u))},[]),s=p.useCallback(()=>{if(!r.current)return;const l=t?{abr:{initialBitrate:{video:2e5}},protection:{ignoreKeyStatuses:!0}}:{};try{n.current=Pn.MediaPlayer().create(),console.log("[Player] URL",e),console.log("[Player] Version",n.current.getVersion()),console.log("[Player] Config init",JSON.stringify(l)),n.current.registerCustomCapabilitiesFilter(o),n.current.initialize(r.current,e,!0),n.current.updateSettings(l),console.log("[Player] Config current",JSON.stringify(n.current.getSettings()))}catch(g){throw new Error(`Error initializing Dash: ${g}`)}},[o,r,e,t]),a=p.useCallback(()=>{n.current&&(n.current.unregisterCustomCapabilitiesFilter(o),n.current.destroy(),n.current=null,console.log("[Player] Dash destroyed"))},[o]);return p.useEffect(()=>(s(),a),[a,s]),null}},Symbol.toStringTag,{value:"Module"}));U.LivePlayer=co,U.VodPlayer=Po,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
261
270
  //# sourceMappingURL=react-video-player.umd.js.map