(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3186],{48243:function(e,n,t){"use strict";t.d(n,{q:function(){return o}});var r=t(5268),i=t(67294);function o(e){return i.createElement("svg",(0,r.i)({viewBox:"0 0 24 24",fill:"none"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1z",fill:"currentColor"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.293 7.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L17.586 12l-3.293-3.293a1 1 0 010-1.414z",fill:"currentColor"}))}},97005:function(e,n,t){var r=t(67294),i=r&&"object"==typeof r&&"default"in r?r:{default:r};!function(e){if(!e||"undefined"==typeof window)return;let n=document.createElement("style");n.setAttribute("type","text/css"),n.innerHTML=e,document.head.appendChild(n)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), transparent);\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');let o=r.forwardRef(function({style:e={},className:n="",autoFill:t=!1,play:o=!0,pauseOnHover:a=!1,pauseOnClick:u=!1,direction:s="left",speed:c=50,delay:l=0,loop:f=0,gradient:d=!1,gradientColor:p="white",gradientWidth:m=200,onFinish:h,onCycleComplete:y,onMount:v,children:g},w){let[b,E]=r.useState(0),[S,k]=r.useState(0),[x,O]=r.useState(1),[M,j]=r.useState(!1),C=r.useRef(null),N=w||C,R=r.useRef(null),A=r.useCallback(()=>{if(R.current&&N.current){let e=N.current.getBoundingClientRect(),n=R.current.getBoundingClientRect(),r=e.width,i=n.width;("up"===s||"down"===s)&&(r=e.height,i=n.height),t&&r&&i?O(i{if(M&&(A(),R.current&&N.current)){let e=new ResizeObserver(()=>A());return e.observe(N.current),e.observe(R.current),()=>{e&&e.disconnect()}}},[A,N,M]),r.useEffect(()=>{A()},[A,g]),r.useEffect(()=>{j(!0)},[]),r.useEffect(()=>{"function"==typeof v&&v()},[]);let L=r.useMemo(()=>t?S*x/c:SObject.assign(Object.assign({},e),{"--pause-on-hover":!o||a?"paused":"running","--pause-on-click":!o||a&&!u||u?"paused":"running","--width":"up"===s||"down"===s?"100vh":"100%","--transform":"up"===s?"rotate(-90deg)":"down"===s?"rotate(90deg)":"none"}),[e,o,a,u,s]),_=r.useMemo(()=>({"--gradient-color":p,"--gradient-width":"number"==typeof m?`${m}px`:m}),[p,m]),z=r.useMemo(()=>({"--play":o?"running":"paused","--direction":"left"===s?"normal":"reverse","--duration":`${L}s`,"--delay":`${l}s`,"--iteration-count":f?`${f}`:"infinite","--min-width":t?"auto":"100%"}),[o,s,L,l,f,t]),V=r.useMemo(()=>({"--transform":"up"===s?"rotate(90deg)":"down"===s?"rotate(-90deg)":"none"}),[s]),I=r.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,n)=>i.default.createElement(r.Fragment,{key:n},r.Children.map(g,e=>i.default.createElement("div",{style:V,className:"rfm-child"},e)))),[V,g]);return M?i.default.createElement("div",{ref:N,style:U,className:"rfm-marquee-container "+n},d&&i.default.createElement("div",{style:_,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:z,onAnimationIteration:y,onAnimationEnd:h},i.default.createElement("div",{className:"rfm-initial-child-container",ref:R},r.Children.map(g,e=>i.default.createElement("div",{style:V,className:"rfm-child"},e))),I(x-1)),i.default.createElement("div",{className:"rfm-marquee",style:z},I(x))):null});n.Z=o},40275:function(e,n,t){"use strict";let r;t.d(n,{Kx:function(){return m},T:function(){return p},o_:function(){return h}});var i=t(67294);let o=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var u={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s=["channel/disconnect","channel/response","channel/heartbeat"],c=["handshake/syn","handshake/syn-ack","handshake/ack"],l=e=>s.some(n=>n===e),f=e=>c.some(n=>n===e),d=({data:e={}})=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&!("domain"in e)&&["id","type","from","to"].every(n=>n in e)&&e.type.startsWith("handshake/");function p(e,n,t){let[s,c]=(0,i.useState)(),[p,m]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let e=function(e){let n=window.self!==window.top||window.opener,t={buffer:[],id:null,origin:null,source:null,status:"connecting"};function i(n,i){if(f(n)||l(n)||"connecting"!==t.status&&"reconnecting"!==t.status){if(t.id&&t.origin&&t.source){let s={connectionId:t.id,data:i,domain:"sanity/channels",from:e.id,id:function(e,n,t){if(u.randomUUID&&!e)return u.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)})();return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(e,n=0){return a[e[n+0]]+a[e[n+1]]+a[e[n+2]]+a[e[n+3]]+"-"+a[e[n+4]]+a[e[n+5]]+"-"+a[e[n+6]]+a[e[n+7]]+"-"+a[e[n+8]]+a[e[n+9]]+"-"+a[e[n+10]]+a[e[n+11]]+a[e[n+12]]+a[e[n+13]]+a[e[n+14]]+a[e[n+15]]}(i)}(),to:e.connectTo,type:n};try{t.source.postMessage(s,{targetOrigin:t.origin})}catch{throw Error(`Failed to postMessage '${s.id}' on '${e.id}'`)}}}else t.buffer.push({type:n,data:i})}function s(n){if(d(n))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(n){let{data:t}=n;return"sanity/channels"===t.domain&&t.to===e.id&&t.from===e.connectTo&&"channel/response"!==t.type}(n)){let{data:e}=n;if(t.origin&&n.origin!==t.origin)return;if(n.source&&t.source!==n.source&&(t.source=n.source),f(e.type)&&e.data){if("handshake/syn"===e.type)return t.origin=n.origin,t.id=e.data.id,m("connecting"),void i("handshake/syn-ack",{id:t.id});if("handshake/ack"===e.type&&e.data.id===t.id)return void m("connected")}else if(e.connectionId===t.id&&n.origin===t.origin){if("channel/disconnect"===e.type)return void m("disconnected");{let n=[e.type,e.data];c.forEach(e=>{e(...n)}),i("channel/response",{responseTo:e.id})}return}}}let c=new Set,p=new Set;function m(e){t.status=e,p.forEach(n=>{n(e)}),"connected"===e&&function(){let e=[...t.buffer];t.buffer.splice(0,t.buffer.length),e.forEach(({type:e,data:n})=>{i(e,n)})}()}return window.addEventListener("message",s,!1),m("connecting"),{destroy:function(){["disconnected"].includes(t.status)||m("disconnected"),c.clear(),p.clear(),window.removeEventListener("message",s,!1)},inFrame:n,send:function(e,n){i(e,n)},subscribe:function(e){return c.add(e),()=>c.delete(e)},onStatusUpdate:function(e){return p.add(e),()=>p.delete(e)}}}({id:"preview-kit",connectTo:"presentation"});e.onStatusUpdate(e=>{"connected"===e?m(!0):"disconnected"===e&&m(!1)});let n=setTimeout(()=>c(e),0);return()=>{clearTimeout(n),e.destroy(),c(void 0)}},[t,n]);let h=JSON.stringify(Array.from(e.keys()));(0,i.useEffect)(()=>{"[]"!==h&&s&&p&&s.send("preview-kit/documents",{projectId:n,dataset:t,perspective:"previewDrafts",documents:Array.from(e.values())})},[h,s,p,t,e,n])}function m(e){let n=(0,i.useMemo)(()=>JSON.stringify(e||{}),[e]);return(0,i.useMemo)(()=>JSON.parse(n),[n])}function h(e){let{refreshInterval:n}=e,t=function(){let[e,n]=(0,i.useState)(!1);(0,i.useEffect)(()=>{n(navigator.onLine);let e=()=>n(!0),t=()=>n(!1);return window.addEventListener("online",e),window.addEventListener("offline",t),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[]);let t=(0,i.useSyncExternalStore)(y,()=>document.visibilityState,()=>"hidden");return!e||"hidden"===t}(),[r,o]=(0,i.useState)("hit"),a=(0,i.useCallback)(()=>(o("inflight"),()=>o("hit")),[]);return(0,i.useEffect)(()=>{if(!n||"hit"!==r)return;let e=setTimeout(()=>o("stale"),n);return()=>clearTimeout(e)},[n,r]),(0,i.useEffect)(()=>{if("hit"!==r)return;let e=()=>o("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[n,r]),(0,i.useEffect)(()=>{t&&"hit"===r&&o("stale"),t||"stale"!==r||o("refresh")},[t,r]),[r,a]}function y(e){return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},80684:function(e,n,t){"use strict";t.d(n,{d:function(){return r}});let r=(0,t(67294).createContext)(null)},74356:function(e,n,t){"use strict";t.d(n,{Ji:function(){return v},yR:function(){return y}});var r,i,o=t(40275),a=t(67294),u=t(80684),s="u">typeof Element,c="function"==typeof Map,l="function"==typeof Set,f="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView,d=(r=function(e,n){try{return function e(n,t){if(n===t)return!0;if(n&&t&&"object"==typeof n&&"object"==typeof t){var r,i,o,a;if(n.constructor!==t.constructor)return!1;if(Array.isArray(n)){if((r=n.length)!=t.length)return!1;for(i=r;0!=i--;)if(!e(n[i],t[i]))return!1;return!0}if(c&&n instanceof Map&&t instanceof Map){if(n.size!==t.size)return!1;for(a=n.entries();!(i=a.next()).done;)if(!t.has(i.value[0]))return!1;for(a=n.entries();!(i=a.next()).done;)if(!e(i.value[1],t.get(i.value[0])))return!1;return!0}if(l&&n instanceof Set&&t instanceof Set){if(n.size!==t.size)return!1;for(a=n.entries();!(i=a.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(f&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(t)){if((r=n.length)!=t.length)return!1;for(i=r;0!=i--;)if(n[i]!==t[i])return!1;return!0}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf&&"function"==typeof n.valueOf&&"function"==typeof t.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString&&"function"==typeof n.toString&&"function"==typeof t.toString)return n.toString()===t.toString();if((r=(o=Object.keys(n)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;if(s&&n instanceof Element)return!1;for(i=r;0!=i--;)if(("_owner"!==o[i]&&"__v"!==o[i]&&"__o"!==o[i]||!n.$$typeof)&&!e(n[o[i]],t[o[i]]))return!1;return!0}return n!=n&&t!=t}(e,n)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}).__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,p={exports:{}},m={};p.exports=function(){if(i)return m;i=1;var e="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},n=a.useSyncExternalStore,t=a.useRef,r=a.useEffect,o=a.useMemo,u=a.useDebugValue;return m.useSyncExternalStoreWithSelector=function(i,a,s,c,l){var f=t(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=n(i,(f=o(function(){function n(n){if(!i){if(i=!0,t=n,n=c(n),void 0!==l&&d.hasValue){var o=d.value;if(l(o,n))return r=o}return r=n}if(o=r,e(t,n))return o;var a=c(n);return void 0!==l&&l(o,a)?o:(t=n,r=a)}var t,r,i=!1,o=void 0===s?null:s;return[function(){return n(a())},null===o?void 0:function(){return n(o())}]},[a,s,c,l]))[0],f[1]);return r(function(){d.hasValue=!0,d.value=p},[p]),u(p),p},m}();var h=p.exports;function y(e,n,t,r){let{isEqual:i=d}=r||{},s=(0,a.useContext)(u.d),c=(0,o.Kx)(t),l=(0,a.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>e}),[e]),f=(0,a.useMemo)(()=>(null==s?void 0:s(e,n,c))||{subscribe:()=>()=>{},getSnapshot:()=>e},[s,e,c,n]),[p]=(0,a.useState)(()=>{if(void 0===e)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(e))}catch(n){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:e,error:n}),e}}),m=(0,a.useCallback)(()=>p,[p]),y=(0,a.useCallback)(e=>e,[]),v=h.useSyncExternalStoreWithSelector((null==f?void 0:f.subscribe)||l.subscribe,(null==f?void 0:f.getSnapshot)||l.getSnapshot,m,y,i),g=null!==s;return[v,g&&p===v,g]}let v=(0,a.lazy)(()=>t.e(6166).then(t.bind(t,46166)))},34764:function(e,n,t){"use strict";function r(e,...n){let t=e.length-1;return e.slice(0,t).reduce((e,t,r)=>e+t+n[r],"")+e[t]}t.d(n,{Z:function(){return r}})}}]);