(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5211],{54098:function(t,r){var s="undefined"!=typeof self?self:this,u=function(){function F(){this.fetch=!1,this.DOMException=s.DOMException}return F.prototype=s,new F}();(function(t){var r={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};if(r.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function normalizeName(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw TypeError("Invalid character in header field name");return t.toLowerCase()}function normalizeValue(t){return"string"!=typeof t&&(t=String(t)),t}function iteratorFor(t){var s={next:function(){var r=t.shift();return{done:void 0===r,value:r}}};return r.iterable&&(s[Symbol.iterator]=function(){return s}),s}function Headers(t){this.map={},t instanceof Headers?t.forEach(function(t,r){this.append(r,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(r){this.append(r,t[r])},this)}function consumed(t){if(t.bodyUsed)return Promise.reject(TypeError("Already read"));t.bodyUsed=!0}function fileReaderReady(t){return new Promise(function(r,s){t.onload=function(){r(t.result)},t.onerror=function(){s(t.error)}})}function readBlobAsArrayBuffer(t){var r=new FileReader,s=fileReaderReady(r);return r.readAsArrayBuffer(t),s}function bufferClone(t){if(t.slice)return t.slice(0);var r=new Uint8Array(t.byteLength);return r.set(new Uint8Array(t)),r.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t){if("string"==typeof t)this._bodyText=t;else if(r.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(r.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else{var s;r.arrayBuffer&&r.blob&&(s=t)&&DataView.prototype.isPrototypeOf(s)?(this._bodyArrayBuffer=bufferClone(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=bufferClone(t):this._bodyText=t=Object.prototype.toString.call(t)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var t=consumed(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var t,r,s,u=consumed(this);if(u)return u;if(this._bodyBlob)return t=this._bodyBlob,s=fileReaderReady(r=new FileReader),r.readAsText(t),s;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var r=new Uint8Array(t),s=Array(r.length),u=0;u-1?u:s),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&c)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(c)}function decode(t){var r=new FormData;return t.trim().split("&").forEach(function(t){if(t){var s=t.split("="),u=s.shift().replace(/\+/g," "),c=s.join("=").replace(/\+/g," ");r.append(decodeURIComponent(u),decodeURIComponent(c))}}),r}function Response(t,r){r||(r={}),this.type="default",this.status=void 0===r.status?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in r?r.statusText:"OK",this.headers=new Headers(r.headers),this.url=r.url||"",this._initBody(t)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var t=new Response(null,{status:0,statusText:""});return t.type="error",t};var l=[301,302,303,307,308];Response.redirect=function(t,r){if(-1===l.indexOf(r))throw RangeError("Invalid status code");return new Response(null,{status:r,headers:{location:t}})},t.DOMException=u.DOMException;try{new t.DOMException}catch(r){t.DOMException=function(t,r){this.message=t,this.name=r;var s=Error(t);this.stack=s.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function fetch(s,u){return new Promise(function(c,f){var l=new Request(s,u);if(l.signal&&l.signal.aborted)return f(new t.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function abortXhr(){d.abort()}d.onload=function(){var t,r,s={status:d.status,statusText:d.statusText,headers:(t=d.getAllResponseHeaders()||"",r=new Headers,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var s=t.split(":"),u=s.shift().trim();if(u){var c=s.join(":").trim();r.append(u,c)}}),r)};s.url="responseURL"in d?d.responseURL:s.headers.get("X-Request-URL");var u="response"in d?d.response:d.responseText;c(new Response(u,s))},d.onerror=function(){f(TypeError("Network request failed"))},d.ontimeout=function(){f(TypeError("Network request failed"))},d.onabort=function(){f(new t.DOMException("Aborted","AbortError"))},d.open(l.method,l.url,!0),"include"===l.credentials?d.withCredentials=!0:"omit"===l.credentials&&(d.withCredentials=!1),"responseType"in d&&r.blob&&(d.responseType="blob"),l.headers.forEach(function(t,r){d.setRequestHeader(r,t)}),l.signal&&(l.signal.addEventListener("abort",abortXhr),d.onreadystatechange=function(){4===d.readyState&&l.signal.removeEventListener("abort",abortXhr)}),d.send(void 0===l._bodyInit?null:l._bodyInit)})}fetch.polyfill=!0,u.fetch||(u.fetch=fetch,u.Headers=Headers,u.Request=Request,u.Response=Response),t.Headers=Headers,t.Request=Request,t.Response=Response,t.fetch=fetch,Object.defineProperty(t,"__esModule",{value:!0})})({}),u.fetch.ponyfill=!0,delete u.fetch.polyfill,(r=u.fetch).default=u.fetch,r.fetch=u.fetch,r.Headers=u.Headers,r.Request=u.Request,r.Response=u.Response,t.exports=r},72445:function(t){"use strict";t.exports=function(t){var r=t.uri,s=t.name,u=t.type;this.uri=r,this.name=s,this.type=u}},40804:function(t,r,s){"use strict";var u=s(51268);t.exports=function extractFiles(t,r,s){void 0===r&&(r=""),void 0===s&&(s=u);var c,f=new Map;function addFile(t,r){var s=f.get(r);s?s.push.apply(s,t):f.set(r,t)}if(s(t))c=null,addFile([r],t);else{var l=r?r+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)c=Array.prototype.map.call(t,function(t,r){return addFile([""+l+r],t),null});else if(Array.isArray(t))c=t.map(function(t,r){var u=extractFiles(t,""+l+r,s);return u.files.forEach(addFile),u.clone});else if(t&&t.constructor===Object)for(var d in c={},t){var m=extractFiles(t[d],""+l+d,s);m.files.forEach(addFile),c[d]=m.clone}else c=t}return{clone:c,files:f}}},34823:function(t,r,s){"use strict";r.ReactNativeFile=s(72445),r.extractFiles=s(40804),r.isExtractableFile=s(51268)},51268:function(t,r,s){"use strict";var u=s(72445);t.exports=function(t){return"undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob||t instanceof u}},6230:function(t){t.exports="object"==typeof self?self.FormData:window.FormData},78458:function(t,r,s){"use strict";var u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var c=s(34823),f=u(s(6230)),isExtractableFileEnhanced=function(t){return c.isExtractableFile(t)||null!==t&&"object"==typeof t&&"function"==typeof t.pipe};r.default=function(t,r,s){var u=c.extractFiles({query:t,variables:r,operationName:s},"",isExtractableFileEnhanced),l=u.clone,d=u.files;if(0===d.size){if(!Array.isArray(t))return JSON.stringify(l);if(void 0!==r&&!Array.isArray(r))throw Error("Cannot create request body with given variable type, array expected");return JSON.stringify(t.reduce(function(t,s,u){return t.push({query:s,variables:r?r[u]:void 0}),t},[]))}var m=new("undefined"==typeof FormData?f.default:FormData);m.append("operations",JSON.stringify(l));var _={},j=0;return d.forEach(function(t){_[++j]=t}),m.append("map",JSON.stringify(_)),j=0,d.forEach(function(t,r){m.append(""+ ++j,r)}),m}},28687:function(t,r,s){"use strict";var u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var r,s=1,u=arguments.length;s0&&c[c.length-1])&&(6===f[0]||2===f[0])){l=0;continue}if(3===f[0]&&(!c||f[1]>c[0]&&f[1]r.indexOf(u)&&(s[u]=t[u]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var c=0,u=Object.getOwnPropertySymbols(t);cr.indexOf(u[c])&&Object.prototype.propertyIsEnumerable.call(t,u[c])&&(s[u[c]]=t[u[c]]);return s},j=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.gql=r.batchRequests=r.request=r.rawRequest=r.GraphQLClient=r.ClientError=void 0;var O=l(s(54098)),S=s(79627),E=j(s(78458)),x=s(8308);Object.defineProperty(r,"ClientError",{enumerable:!0,get:function(){return x.ClientError}});var resolveHeaders=function(t){var r,s={};return t&&("undefined"!=typeof Headers&&t instanceof Headers||t instanceof O.Headers?(r={},t.forEach(function(t,s){r[s]=t}),s=r):Array.isArray(t)?t.forEach(function(t){var r=t[0],u=t[1];s[r]=u}):s=t),s},queryCleanner=function(t){return t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},buildGetQueryParams=function(t){var r=t.query,s=t.variables,u=t.operationName;if(!Array.isArray(r)){var c=["query="+encodeURIComponent(queryCleanner(r))];return s&&c.push("variables="+encodeURIComponent(JSON.stringify(s))),u&&c.push("operationName="+encodeURIComponent(u)),c.join("&")}if(void 0!==s&&!Array.isArray(s))throw Error("Cannot create query with given variable type, array expected");return"query="+encodeURIComponent(JSON.stringify(r.reduce(function(t,r,u){return t.push({query:queryCleanner(r),variables:s?JSON.stringify(s[u]):void 0}),t},[])))},post=function(t){var r=t.url,s=t.query,c=t.variables,f=t.operationName,l=t.headers,_=t.fetch,j=t.fetchOptions;return d(void 0,void 0,void 0,function(){var t;return m(this,function(d){switch(d.label){case 0:return t=E.default(s,c,f),[4,_(r,u({method:"POST",headers:u(u({},"string"==typeof t?{"Content-Type":"application/json"}:{}),l),body:t},j))];case 1:return[2,d.sent()]}})})},get=function(t){var r=t.url,s=t.query,c=t.variables,f=t.operationName,l=t.headers,_=t.fetch,j=t.fetchOptions;return d(void 0,void 0,void 0,function(){return m(this,function(t){switch(t.label){case 0:return[4,_(r+"?"+buildGetQueryParams({query:s,variables:c,operationName:f}),u({method:"GET",headers:l},j))];case 1:return[2,t.sent()]}})})},A=function(){function GraphQLClient(t,r){this.url=t,this.options=r||{}}return GraphQLClient.prototype.rawRequest=function(t,r,s){var c=this.options,f=c.headers,l=c.fetch,d=void 0===l?O.default:l,m=c.method,j=_(c,["headers","fetch","method"]);return makeRequest({url:this.url,query:t,variables:r,headers:u(u({},resolveHeaders(f)),resolveHeaders(s)),operationName:void 0,fetch:d,method:void 0===m?"POST":m,fetchOptions:j})},GraphQLClient.prototype.request=function(t,r,s){return d(this,void 0,void 0,function(){var c,f,l,d,j,S,E,x,A,k,T;return m(this,function(m){switch(m.label){case 0:return f=(c=this.options).headers,d=void 0===(l=c.fetch)?O.default:l,S=void 0===(j=c.method)?"POST":j,E=_(c,["headers","fetch","method"]),x=this.url,k=(A=resolveRequestDocument(t)).query,T=A.operationName,[4,makeRequest({url:x,query:k,variables:r,headers:u(u({},resolveHeaders(f)),resolveHeaders(s)),operationName:T,fetch:d,method:S,fetchOptions:E})];case 1:return[2,m.sent().data]}})})},GraphQLClient.prototype.batchRequests=function(t,r){return d(this,void 0,void 0,function(){var s,c,f,l,d,j,S;return m(this,function(m){switch(m.label){case 0:return c=(s=this.options).headers,l=void 0===(f=s.fetch)?O.default:f,j=void 0===(d=s.method)?"POST":d,S=_(s,["headers","fetch","method"]),[4,makeRequest({url:this.url,query:t.map(function(t){return resolveRequestDocument(t.document).query}),variables:t.map(function(t){return t.variables}),headers:u(u({},resolveHeaders(c)),resolveHeaders(r)),operationName:void 0,fetch:l,method:j,fetchOptions:S})];case 1:return[2,m.sent().data]}})})},GraphQLClient.prototype.setHeaders=function(t){return this.options.headers=t,this},GraphQLClient.prototype.setHeader=function(t,r){var s,u=this.options.headers;return u?u[t]=r:this.options.headers=((s={})[t]=r,s),this},GraphQLClient.prototype.setEndpoint=function(t){return this.url=t,this},GraphQLClient}();function makeRequest(t){var r=t.url,s=t.query,c=t.variables,f=t.headers,l=t.operationName,_=t.fetch,j=t.method,O=void 0===j?"POST":j,S=t.fetchOptions;return d(this,void 0,void 0,function(){var t,d,j,E,A,k,T,D;return m(this,function(m){switch(m.label){case 0:return t="POST"===O.toUpperCase()?post:get,d=Array.isArray(s),[4,t({url:r,query:s,variables:c,operationName:l,headers:f,fetch:_,fetchOptions:S})];case 1:var C,q;return[4,(q=(C=j=m.sent()).headers.get("Content-Type"))&&q.startsWith("application/json")?C.json():C.text()];case 2:if(E=m.sent(),A=d&&Array.isArray(E)?!E.some(function(t){return!t.data}):!!E.data,j.ok&&!E.errors&&A)return k=j.headers,T=j.status,[2,u(u({},d?{data:E}:E),{headers:k,status:T})];throw D="string"==typeof E?{error:E}:E,new x.ClientError(u(u({},D),{status:j.status,headers:j.headers}),{query:s,variables:c})}})})}function request(t,r,s,u){return d(this,void 0,void 0,function(){return m(this,function(c){return[2,new A(t).request(r,s,u)]})})}function resolveRequestDocument(t){if("string"==typeof t)return{query:t};var r,s=void 0,u=t.definitions.filter(function(t){return"OperationDefinition"===t.kind});return 1===u.length&&(s=null===(r=u[0].name)||void 0===r?void 0:r.value),{query:S.print(t),operationName:s}}r.GraphQLClient=A,r.rawRequest=function(t,r,s,u){return d(this,void 0,void 0,function(){return m(this,function(c){return[2,new A(t).rawRequest(r,s,u)]})})},r.request=request,r.batchRequests=function(t,r,s){return d(this,void 0,void 0,function(){return m(this,function(u){return[2,new A(t).batchRequests(r,s)]})})},r.default=request,r.gql=function(t){for(var r=[],s=1;s-1},ListCache.prototype.set=function(t,r){var s=this.__data__,u=assocIndexOf(s,t);return u<0?s.push([t,r]):s[u][1]=r,this},MapCache.prototype.clear=function(){this.__data__={hash:new Hash,map:new(eb||ListCache),string:new Hash}},MapCache.prototype.delete=function(t){return getMapData(this,t).delete(t)},MapCache.prototype.get=function(t){return getMapData(this,t).get(t)},MapCache.prototype.has=function(t){return getMapData(this,t).has(t)},MapCache.prototype.set=function(t,r){return getMapData(this,t).set(t,r),this},SetCache.prototype.add=SetCache.prototype.push=function(t){return this.__data__.set(t,_),this},SetCache.prototype.has=function(t){return this.__data__.has(t)},Stack.prototype.clear=function(){this.__data__=new ListCache},Stack.prototype.delete=function(t){return this.__data__.delete(t)},Stack.prototype.get=function(t){return this.__data__.get(t)},Stack.prototype.has=function(t){return this.__data__.has(t)},Stack.prototype.set=function(t,r){var s=this.__data__;if(s instanceof ListCache){var u=s.__data__;if(!eb||u.length<199)return u.push([t,r]),this;s=this.__data__=new MapCache(u)}return s.set(t,r),this};var baseEach=function(t,r){if(null==t)return t;if(!isArrayLike(t)){var s,c;return s=t,c=r,s&&baseFor(s,c,keys)}for(var f=t.length,l=u?f:-1,d=Object(t);(u?l--:++ld))return!1;var _=f.get(t);if(_&&f.get(r))return _==r;var j=-1,O=!0,S=1&c?new SetCache:void 0;for(f.set(t,r),f.set(r,t);++j-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function isObject(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function isObjectLike(t){return!!t&&"object"==typeof t}function isSymbol(t){return"symbol"==typeof t||isObjectLike(t)&&ef.call(t)==L}var eF=en?function(t){return en(t)}:function(t){return isObjectLike(t)&&isLength(t.length)&&!!K[ef.call(t)]};function keys(t){return isArrayLike(t)?function(t,r){var s=eN(t)||isArguments(t)?function(t,r){for(var s=-1,u=Array(t);++s{if(V.current&&U.current){let t=U.current.getBoundingClientRect(),r=V.current.getBoundingClientRect(),u=t.width,c=r.width;("up"===m||"down"===m)&&(u=t.height,c=r.height),s&&u&&c?M(c{if(P&&(z(),V.current&&U.current)){let t=new ResizeObserver(()=>z());return t.observe(U.current),t.observe(V.current),()=>{t&&t.disconnect()}}},[z,U,P]),u.useEffect(()=>{z()},[z,D]),u.useEffect(()=>{B(!0)},[]),u.useEffect(()=>{"function"==typeof T&&T()},[]);let G=u.useMemo(()=>s?N*L/_:NObject.assign(Object.assign({},t),{"--pause-on-hover":!f||l?"paused":"running","--pause-on-click":!f||l&&!d||d?"paused":"running","--width":"up"===m||"down"===m?"100vh":"100%","--transform":"up"===m?"rotate(-90deg)":"down"===m?"rotate(90deg)":"none"}),[t,f,l,d,m]),$=u.useMemo(()=>({"--gradient-color":E,"--gradient-width":"number"==typeof x?`${x}px`:x}),[E,x]),K=u.useMemo(()=>({"--play":f?"running":"paused","--direction":"left"===m?"normal":"reverse","--duration":`${G}s`,"--delay":`${j}s`,"--iteration-count":O?`${O}`:"infinite","--min-width":s?"auto":"100%"}),[f,m,G,j,O,s]),Q=u.useMemo(()=>({"--transform":"up"===m?"rotate(90deg)":"down"===m?"rotate(-90deg)":"none"}),[m]),X=u.useCallback(t=>[...Array(Number.isFinite(t)&&t>=0?t:0)].map((t,r)=>c.default.createElement(u.Fragment,{key:r},u.Children.map(D,t=>c.default.createElement("div",{style:Q,className:"rfm-child"},t)))),[Q,D]);return P?c.default.createElement("div",{ref:U,style:J,className:"rfm-marquee-container "+r},S&&c.default.createElement("div",{style:$,className:"rfm-overlay"}),c.default.createElement("div",{className:"rfm-marquee",style:K,onAnimationIteration:k,onAnimationEnd:A},c.default.createElement("div",{className:"rfm-initial-child-container",ref:V},u.Children.map(D,t=>c.default.createElement("div",{style:Q,className:"rfm-child"},t))),X(L-1)),c.default.createElement("div",{className:"rfm-marquee",style:K},X(L))):null});r.Z=f},40275:function(t,r,s){"use strict";let u;s.d(r,{Kx:function(){return w},T:function(){return g},o_:function(){return v}});var c=s(67294);let f=new Uint8Array(16),l=[];for(let t=0;t<256;++t)l.push((t+256).toString(16).slice(1));var d={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let m=["channel/disconnect","channel/response","channel/heartbeat"],_=["handshake/syn","handshake/syn-ack","handshake/ack"],p=t=>m.some(r=>r===t),h=t=>_.some(r=>r===t),y=({data:t={}})=>"object"==typeof t&&null!==t&&!Array.isArray(t)&&!("domain"in t)&&["id","type","from","to"].every(r=>r in t)&&t.type.startsWith("handshake/");function g(t,r,s){let[m,_]=(0,c.useState)(),[j,O]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let t=function(t){let r=window.self!==window.top||window.opener,s={buffer:[],id:null,origin:null,source:null,status:"connecting"};function o(r,c){if(h(r)||p(r)||"connecting"!==s.status&&"reconnecting"!==s.status){if(s.id&&s.origin&&s.source){let m={connectionId:s.id,data:c,domain:"sanity/channels",from:t.id,id:function(t,r,s){if(d.randomUUID&&!t)return d.randomUUID();let c=(t=t||{}).random||(t.rng||function(){if(!u&&!(u="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 u(f)})();return c[6]=15&c[6]|64,c[8]=63&c[8]|128,function(t,r=0){return l[t[r+0]]+l[t[r+1]]+l[t[r+2]]+l[t[r+3]]+"-"+l[t[r+4]]+l[t[r+5]]+"-"+l[t[r+6]]+l[t[r+7]]+"-"+l[t[r+8]]+l[t[r+9]]+"-"+l[t[r+10]]+l[t[r+11]]+l[t[r+12]]+l[t[r+13]]+l[t[r+14]]+l[t[r+15]]}(c)}(),to:t.connectTo,type:r};try{s.source.postMessage(m,{targetOrigin:s.origin})}catch{throw Error(`Failed to postMessage '${m.id}' on '${t.id}'`)}}}else s.buffer.push({type:r,data:c})}function i(r){if(y(r))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(r){let{data:s}=r;return"sanity/channels"===s.domain&&s.to===t.id&&s.from===t.connectTo&&"channel/response"!==s.type}(r)){let{data:t}=r;if(s.origin&&r.origin!==s.origin)return;if(r.source&&s.source!==r.source&&(s.source=r.source),h(t.type)&&t.data){if("handshake/syn"===t.type)return s.origin=r.origin,s.id=t.data.id,a("connecting"),void o("handshake/syn-ack",{id:s.id});if("handshake/ack"===t.type&&t.data.id===s.id)return void a("connected")}else if(t.connectionId===s.id&&r.origin===s.origin){if("channel/disconnect"===t.type)return void a("disconnected");{let r=[t.type,t.data];c.forEach(t=>{t(...r)}),o("channel/response",{responseTo:t.id})}return}}}let c=new Set,m=new Set;function a(t){s.status=t,m.forEach(r=>{r(t)}),"connected"===t&&function(){let t=[...s.buffer];s.buffer.splice(0,s.buffer.length),t.forEach(({type:t,data:r})=>{o(t,r)})}()}return window.addEventListener("message",i,!1),a("connecting"),{destroy:function(){["disconnected"].includes(s.status)||a("disconnected"),c.clear(),m.clear(),window.removeEventListener("message",i,!1)},inFrame:r,send:function(t,r){o(t,r)},subscribe:function(t){return c.add(t),()=>c.delete(t)},onStatusUpdate:function(t){return m.add(t),()=>m.delete(t)}}}({id:"preview-kit",connectTo:"presentation"});t.onStatusUpdate(t=>{"connected"===t?O(!0):"disconnected"===t&&O(!1)});let r=setTimeout(()=>_(t),0);return()=>{clearTimeout(r),t.destroy(),_(void 0)}},[s,r]);let S=JSON.stringify(Array.from(t.keys()));(0,c.useEffect)(()=>{"[]"!==S&&m&&j&&m.send("preview-kit/documents",{projectId:r,dataset:s,perspective:"previewDrafts",documents:Array.from(t.values())})},[S,m,j,s,t,r])}function w(t){let r=(0,c.useMemo)(()=>JSON.stringify(t||{}),[t]);return(0,c.useMemo)(()=>JSON.parse(r),[r])}function v(t){let{refreshInterval:r}=t,s=function(){let[t,r]=(0,c.useState)(!1);(0,c.useEffect)(()=>{r(navigator.onLine);let e=()=>r(!0),n=()=>r(!1);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}},[]);let s=(0,c.useSyncExternalStore)(b,()=>document.visibilityState,()=>"hidden");return!t||"hidden"===s}(),[u,f]=(0,c.useState)("hit"),l=(0,c.useCallback)(()=>(f("inflight"),()=>f("hit")),[]);return(0,c.useEffect)(()=>{if(!r||"hit"!==u)return;let t=setTimeout(()=>f("stale"),r);return()=>clearTimeout(t)},[r,u]),(0,c.useEffect)(()=>{if("hit"!==u)return;let e=()=>f("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[r,u]),(0,c.useEffect)(()=>{s&&"hit"===u&&f("stale"),s||"stale"!==u||f("refresh")},[s,u]),[u,l]}function b(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}},80684:function(t,r,s){"use strict";s.d(r,{d:function(){return c}});var u=s(67294);let c=(0,u.createContext)(null)},74356:function(t,r,s){"use strict";s.d(r,{Ji:function(){return k},yR:function(){return g}});var u,c,f=s(40275),l=s(67294),d=s(80684),m="u">typeof Element,_="function"==typeof Map,j="function"==typeof Set,O="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView,S=(u=function(t,r){try{return function v(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var s,u,c,f;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((s=t.length)!=r.length)return!1;for(u=s;0!=u--;)if(!v(t[u],r[u]))return!1;return!0}if(_&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(f=t.entries();!(u=f.next()).done;)if(!r.has(u.value[0]))return!1;for(f=t.entries();!(u=f.next()).done;)if(!v(u.value[1],r.get(u.value[0])))return!1;return!0}if(j&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(f=t.entries();!(u=f.next()).done;)if(!r.has(u.value[0]))return!1;return!0}if(O&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((s=t.length)!=r.length)return!1;for(u=s;0!=u--;)if(t[u]!==r[u])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof r.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof r.toString)return t.toString()===r.toString();if((s=(c=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(r,c[u]))return!1;if(m&&t instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!t.$$typeof)&&!v(t[c[u]],r[c[u]]))return!1;return!0}return t!=t&&r!=r}(t,r)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}).__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u,E={exports:{}},x={};/** * @license React * use-sync-external-store-with-selector.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */E.exports=function(){if(c)return x;c=1;var t="function"==typeof Object.is?Object.is:function(t,r){return t===r&&(0!==t||1/t==1/r)||t!=t&&r!=r},r=l.useSyncExternalStore,s=l.useRef,u=l.useEffect,f=l.useMemo,d=l.useDebugValue;return x.useSyncExternalStoreWithSelector=function(c,l,m,_,j){var O=s(null);if(null===O.current){var S={hasValue:!1,value:null};O.current=S}else S=O.current;var E=r(c,(O=f(function(){function e(c){if(!u){if(u=!0,r=c,c=_(c),void 0!==j&&S.hasValue){var f=S.value;if(j(f,c))return s=f}return s=c}if(f=s,t(r,c))return f;var l=_(c);return void 0!==j&&j(f,l)?f:(r=c,s=l)}var r,s,u=!1,c=void 0===m?null:m;return[function(){return e(l())},null===c?void 0:function(){return e(c())}]},[l,m,_,j]))[0],O[1]);return u(function(){S.hasValue=!0,S.value=E},[E]),d(E),E},x}();var A=E.exports;function g(t,r,s,u){let{isEqual:c=S}=u||{},m=(0,l.useContext)(d.d),_=(0,f.Kx)(s),j=(0,l.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>t}),[t]),O=(0,l.useMemo)(()=>(null==m?void 0:m(t,r,_))||{subscribe:()=>()=>{},getSnapshot:()=>t},[m,t,_,r]),[E]=(0,l.useState)(()=>{if(void 0===t)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(t))}catch(r){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:t,error:r}),t}}),x=(0,l.useCallback)(()=>E,[E]),k=(0,l.useCallback)(t=>t,[]),T=A.useSyncExternalStoreWithSelector((null==O?void 0:O.subscribe)||j.subscribe,(null==O?void 0:O.getSnapshot)||j.getSnapshot,x,k,c),D=null!==m;return[T,D&&E===T,D]}let k=(0,l.lazy)(()=>s.e(6166).then(s.bind(s,46166)))},79627:function(t,r,s){"use strict";s.r(r),s.d(r,{print:function(){return print}});var u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function defineInspect(t){var r=t.prototype.toJSON;"function"==typeof r||function(t,r){throw Error(null!=r?r:"Unexpected invariant triggered.")}(0),t.prototype.inspect=r,u&&(t.prototype[u]=r)}function isNode(t){return null!=t&&"string"==typeof t.kind}defineInspect(function(){function Location(t,r,s){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=s}return Location.prototype.toJSON=function(){return{start:this.start,end:this.end}},Location}()),defineInspect(function(){function Token(t,r,s,u,c,f,l){this.kind=t,this.start=r,this.end=s,this.line=u,this.column=c,this.value=l,this.prev=f,this.next=null}return Token.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}());var c={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},f=Object.freeze({});function print(t){return function(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,l=void 0,d=Array.isArray(t),m=[t],_=-1,j=[],O=void 0,S=void 0,E=void 0,x=[],A=[],k=t;do{var T,D=++_===m.length,C=D&&0!==j.length;if(D){if(S=0===A.length?void 0:x[x.length-1],O=E,E=A.pop(),C){if(d)O=O.slice();else{for(var q={},R=0,N=Object.keys(O);R2)return"[Array]";for(var s=Math.min(10,t.length),u=t.length-s,c=[],f=0;f1&&c.push("... ".concat(u," more items")),"["+c.join(", ")+"]"}(t,f);return 0===(c=Object.keys(t)).length?"{}":f.length>2?"["+function(t){var r=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===r&&"function"==typeof t.constructor){var s=t.constructor.name;if("string"==typeof s&&""!==s)return s}return r}(t)+"]":"{ "+c.map(function(r){var s=formatValue(t[r],f);return r+": "+s}).join(", ")+" }"}(t,r);default:return String(t)}}(O,[]),"."));var U=function(t,r,s){var u=t[r];if(u){if(!s&&"function"==typeof u)return u;var c=s?u.leave:u.enter;if("function"==typeof c)return c}else{var f=s?t.leave:t.enter;if(f){if("function"==typeof f)return f;var l=f[r];if("function"==typeof l)return l}}}(r,O.kind,D);if(U){if((H=U.call(r,O,S,E,x,A))===f)break;if(!1===H){if(!D){x.pop();continue}}else if(void 0!==H&&(j.push([S,H]),!D)){if(isNode(H))O=H;else{x.pop();continue}}}}void 0===H&&C&&j.push([S,O]),D?x.pop():(l={inArray:d,index:_,keys:m,edits:j,prev:l},m=(d=Array.isArray(O))?O:null!==(T=s[O.kind])&&void 0!==T?T:[],_=-1,j=[],E&&A.push(E),E=O)}while(void 0!==l);return 0!==j.length&&(k=j[j.length-1][1]),k}(t,{leave:l})}var l={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return join(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var r=t.operation,s=t.name,u=wrap("(",join(t.variableDefinitions,", "),")"),c=join(t.directives," "),f=t.selectionSet;return s||c||u||"query"!==r?join([r,join([s,u]),c,f]," "):f},VariableDefinition:function(t){var r=t.variable,s=t.type,u=t.defaultValue,c=t.directives;return r+": "+s+wrap(" = ",u)+wrap(" ",join(c," "))},SelectionSet:function(t){return block(t.selections)},Field:function(t){var r=t.alias,s=t.name,u=t.arguments,c=t.directives,f=t.selectionSet,l=wrap("",r,": ")+s,d=l+wrap("(",join(u,", "),")");return d.length>80&&(d=l+wrap("(\n",indent(join(u,"\n")),"\n)")),join([d,join(c," "),f]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+wrap(" ",join(t.directives," "))},InlineFragment:function(t){var r=t.typeCondition,s=t.directives,u=t.selectionSet;return join(["...",wrap("on ",r),join(s," "),u]," ")},FragmentDefinition:function(t){var r=t.name,s=t.typeCondition,u=t.variableDefinitions,c=t.directives,f=t.selectionSet;return"fragment ".concat(r).concat(wrap("(",join(u,", "),")")," ")+"on ".concat(s," ").concat(wrap("",join(c," ")," "))+f},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,r){var s=t.value;return t.block?function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=-1===t.indexOf("\n"),c=" "===t[0]||" "===t[0],f='"'===t[t.length-1],l="\\"===t[t.length-1],d=!u||f||l||s,m="";return d&&!(u&&c)&&(m+="\n"+r),m+=r?t.replace(/\n/g,"\n"+r):t,d&&(m+="\n"),'"""'+m.replace(/"""/g,'\\"""')+'"""'}(s,"description"===r?"":" "):JSON.stringify(s)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+join(t.values,", ")+"]"},ObjectValue:function(t){return"{"+join(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+wrap("(",join(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:addDescription(function(t){var r=t.directives,s=t.operationTypes;return join(["schema",join(r," "),block(s)]," ")}),OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:addDescription(function(t){return join(["scalar",t.name,join(t.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(t){var r=t.name,s=t.interfaces,u=t.directives,c=t.fields;return join(["type",r,wrap("implements ",join(s," & ")),join(u," "),block(c)]," ")}),FieldDefinition:addDescription(function(t){var r=t.name,s=t.arguments,u=t.type,c=t.directives;return r+(hasMultilineItems(s)?wrap("(\n",indent(join(s,"\n")),"\n)"):wrap("(",join(s,", "),")"))+": "+u+wrap(" ",join(c," "))}),InputValueDefinition:addDescription(function(t){var r=t.name,s=t.type,u=t.defaultValue,c=t.directives;return join([r+": "+s,wrap("= ",u),join(c," ")]," ")}),InterfaceTypeDefinition:addDescription(function(t){var r=t.name,s=t.interfaces,u=t.directives,c=t.fields;return join(["interface",r,wrap("implements ",join(s," & ")),join(u," "),block(c)]," ")}),UnionTypeDefinition:addDescription(function(t){var r=t.name,s=t.directives,u=t.types;return join(["union",r,join(s," "),u&&0!==u.length?"= "+join(u," | "):""]," ")}),EnumTypeDefinition:addDescription(function(t){var r=t.name,s=t.directives,u=t.values;return join(["enum",r,join(s," "),block(u)]," ")}),EnumValueDefinition:addDescription(function(t){return join([t.name,join(t.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(t){var r=t.name,s=t.directives,u=t.fields;return join(["input",r,join(s," "),block(u)]," ")}),DirectiveDefinition:addDescription(function(t){var r=t.name,s=t.arguments,u=t.repeatable,c=t.locations;return"directive @"+r+(hasMultilineItems(s)?wrap("(\n",indent(join(s,"\n")),"\n)"):wrap("(",join(s,", "),")"))+(u?" repeatable":"")+" on "+join(c," | ")}),SchemaExtension:function(t){var r=t.directives,s=t.operationTypes;return join(["extend schema",join(r," "),block(s)]," ")},ScalarTypeExtension:function(t){return join(["extend scalar",t.name,join(t.directives," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,s=t.interfaces,u=t.directives,c=t.fields;return join(["extend type",r,wrap("implements ",join(s," & ")),join(u," "),block(c)]," ")},InterfaceTypeExtension:function(t){var r=t.name,s=t.interfaces,u=t.directives,c=t.fields;return join(["extend interface",r,wrap("implements ",join(s," & ")),join(u," "),block(c)]," ")},UnionTypeExtension:function(t){var r=t.name,s=t.directives,u=t.types;return join(["extend union",r,join(s," "),u&&0!==u.length?"= "+join(u," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,s=t.directives,u=t.values;return join(["extend enum",r,join(s," "),block(u)]," ")},InputObjectTypeExtension:function(t){var r=t.name,s=t.directives,u=t.fields;return join(["extend input",r,join(s," "),block(u)]," ")}};function addDescription(t){return function(r){return join([r.description,t(r)],"\n")}}function join(t){var r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(r=null==t?void 0:t.filter(function(t){return t}).join(s))&&void 0!==r?r:""}function block(t){return wrap("{\n",indent(join(t,"\n")),"\n}")}function wrap(t,r){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=r&&""!==r?t+r+s:""}function indent(t){return wrap(" ",t.replace(/\n/g,"\n "))}function isMultiline(t){return -1!==t.indexOf("\n")}function hasMultilineItems(t){return null!=t&&t.some(isMultiline)}},34764:function(t,r,s){"use strict";function groq(t,...r){let s=t.length-1;return t.slice(0,s).reduce((t,s,u)=>t+s+r[u],"")+t[s]}s.d(r,{Z:function(){return groq}})}}]);