(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[863],{8550:function(t,e,n){t.exports=n(9608)},1923:function(t,e,n){"use strict";var r=n(6086),i=n(2695),o=n(1247),s=n(7118),a=n(1051),l=["projectId","dataset","imageOptions","ignoreUnknownTypes"],u={imageOptions:{},ignoreUnknownTypes:!0};function c(t){return"block"===t._type&&t.listItem}t.exports=function(t,e,n,f){var h=r({},u,e),p=Array.isArray(h.blocks)?h.blocks:[h.blocks],d=s(p),m=o(d,h.listNestMode),y=a(n,h.serializers||{}),g=l.reduce((function(t,e){var n=h[e];return"undefined"!==typeof n&&(t[e]=n),t}),{});function v(e,n,r,o){return"list"===(s=e)._type&&s.listItem?function(e){var n=e.listItem,r=e.level,i=e._key,o=e.children.map(v);return t(y.list,{key:i,level:r,type:n,options:g},o)}(e):c(e)?function(e,n){var r=e._key,o=i(e).map(v);return t(y.listItem,{node:e,serializers:y,index:n,key:r,options:g},o)}(e,function(t,e){for(var n=0,r=0;r1){var b=h.className?{className:h.className}:{};return t(y.container,b,k)}return k[0]?k[0]:"function"===typeof y.empty?t(y.empty):y.empty}},2695:function(t){"use strict";var e=["strong","em","code","underline","strike-through"];function n(t,e,n){if(!t.marks||0===t.marks.length)return t.marks||[];var i=t.marks.reduce((function(t,r){t[r]=t[r]?t[r]+1:1;for(var i=e+1;ir?1:0}t.exports=function(t){var e=t.children,r=t.markDefs;if(!e||!e.length)return[];var i=e.map(n),o={_type:"span",children:[]},s=[o];return e.forEach((function(t,e){var n=i[e];if(n){var o=1;if(s.length>1)for(;o=0;e--){var n=t[e];if("span"===n._type&&n.children)return n}return}(s=s.slice(0,o));if(n.forEach((function(e){var n={_type:"span",_key:t._key,children:[],mark:r.find((function(t){return t._key===e}))||e,markKey:e};c.children.push(n),s.push(n),c=n})),"span"!==(u=t)._type||"string"!==typeof u.text||!Array.isArray(u.marks)&&"undefined"!==typeof u.marks)c.children=c.children.concat(t);else{for(var f=t.text.split("\n"),h=f.length;h-- >1;)f.splice(h,0,"\n");c.children=c.children.concat(f)}}else{s[s.length-1].children.push(t)}})),o.children}},7118:function(t,e,n){"use strict";var r=n(6086);function i(t){var e=0,n=t.length;if(0===n)return e;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"html",u=[],c=0;ce.level){var h=s(f);if("html"===n){var p=a(e),d=r({},p,{children:p.children.concat(h)});e.children[e.children.length-1]=d}else e.children.push(h);e=h}else if(f.levelt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var i="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function o(t){var e=t.split("-"),n=e[1],r=e[2],o=e[3];if(!n||!r||!o)throw new Error("Malformed asset _ref '"+t+"'. Expected an id like \""+i+'".');var s=r.split("x"),a=+s[0],l=+s[1];if(!isFinite(a)||!isFinite(l))throw new Error("Malformed asset _ref '"+t+"'. Expected an id like \""+i+'".');return{id:n,width:a,height:l,format:o}}var s=function(t){return!!t&&"string"===typeof t._ref},a=function(t){return!!t&&"string"===typeof t._id},l=function(t){var e=t;return!(!e||!e.asset)&&"string"===typeof e.asset.url};function u(t){if(!t)return null;var e;if("string"===typeof t&&c(t))e={asset:{_ref:f(t)}};else if("string"===typeof t)e={asset:{_ref:t}};else if(s(t))e={asset:t};else if(a(t))e={asset:{_ref:t._id||""}};else if(l(t))e={asset:{_ref:f(t.asset.url)}};else{if("object"!==typeof t.asset)return null;e=t}var n=t;return n.crop&&(e.crop=n.crop),n.hotspot&&(e.hotspot=n.hotspot),h(e)}function c(t){return/^https?:\/\//.test(""+t)}function f(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}function h(e){if(e.crop&&e.hotspot)return e;var n=t({},e);return n.crop||(n.crop={left:0,top:0,bottom:0,right:0}),n.hotspot||(n.hotspot={x:.5,y:.5,height:1,width:1}),n}var p=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]];function d(e){var n=t({},e||{}),r=n.source;delete n.source;var i=u(r);if(!i)return null;var s=o(i.asset._ref||i.asset._id||""),a=Math.round(i.crop.left*s.width),l=Math.round(i.crop.top*s.height),c={left:a,top:l,width:Math.round(s.width-i.crop.right*s.width-a),height:Math.round(s.height-i.crop.bottom*s.height-l)},f=i.hotspot.height*s.height/2,h=i.hotspot.width*s.width/2,p=i.hotspot.x*s.width,d=i.hotspot.y*s.height,g={left:p-h,top:d-f,right:p+h,bottom:d+f};return n.rect||n.focalPoint||n.ignoreImageParams||n.crop||(n=t(t({},n),y({crop:c,hotspot:g},n))),m(t(t({},n),{},{asset:s}))}function m(t){var e=t.baseUrl||"https://cdn.sanity.io",n=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format,r=e+"/images/"+t.projectId+"/"+t.dataset+"/"+n,i=[];if(t.rect){var o=t.rect,s=o.left,a=o.top,l=o.width,u=o.height;(0!==s||0!==a||u!==t.asset.height||l!==t.asset.width)&&i.push("rect="+s+","+a+","+l+","+u)}t.bg&&i.push("bg="+t.bg),t.focalPoint&&(i.push("fp-x="+t.focalPoint.x),i.push("fp-y="+t.focalPoint.y));var c=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return c&&i.push("flip="+c),p.forEach((function(e){var n=e[0],r=e[1];"undefined"!==typeof t[n]?i.push(r+"="+encodeURIComponent(t[n])):"undefined"!==typeof t[r]&&i.push(r+"="+encodeURIComponent(t[r]))})),0===i.length?r:r+"?"+i.join("&")}function y(t,e){var n,r=e.width,i=e.height;if(!r||!i)return{width:r,height:i,rect:t.crop};var o=t.crop,s=t.hotspot,a=r/i;if(o.width/o.height>a){var l=o.height,u=l*a,c=o.top,f=(s.right-s.left)/2+s.left-u/2;fo.left+o.width&&(f=o.left+o.width-u),n={left:Math.round(f),top:Math.round(c),width:Math.round(u),height:Math.round(l)}}else{var h=o.width,p=h/a,d=o.left,m=(s.bottom-s.top)/2+s.top-p/2;mo.top+o.height&&(m=o.top+o.height-p),n={left:Math.max(0,Math.floor(d)),top:Math.max(0,Math.floor(m)),width:Math.round(h),height:Math.round(p)}}return{width:r,height:i,rect:n}}var g=["clip","crop","fill","fillmax","max","scale","min"],v=["top","bottom","left","right","center","focalpoint","entropy"],w=["format"];function k(t){return!!t&&"object"===typeof t.clientConfig}function b(t){for(var e,n=r(p);!(e=n()).done;){var i=e.value,o=i[0],s=i[1];if(t===o||t===s)return o}return t}function O(t){var e=t;if(k(e)){var n=e.clientConfig,r=n.apiHost,i=n.projectId,o=n.dataset;return new x(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:i,dataset:o})}return new x(null,t)}var x=function(){function e(e,n){this.options=t(e?t({},e.options||{}):{},n||{})}var n=e.prototype;return n.withOptions=function(n){var r=n.baseUrl||this.options.baseUrl,i={baseUrl:r};for(var o in n)n.hasOwnProperty(o)&&(i[b(o)]=n[o]);return new e(this,t({baseUrl:r},i))},n.image=function(t){return this.withOptions({source:t})},n.dataset=function(t){return this.withOptions({dataset:t})},n.projectId=function(t){return this.withOptions({projectId:t})},n.bg=function(t){return this.withOptions({bg:t})},n.dpr=function(t){return this.withOptions({dpr:t})},n.width=function(t){return this.withOptions({width:t})},n.height=function(t){return this.withOptions({height:t})},n.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},n.maxWidth=function(t){return this.withOptions({maxWidth:t})},n.minWidth=function(t){return this.withOptions({minWidth:t})},n.maxHeight=function(t){return this.withOptions({maxHeight:t})},n.minHeight=function(t){return this.withOptions({minHeight:t})},n.size=function(t,e){return this.withOptions({width:t,height:e})},n.blur=function(t){return this.withOptions({blur:t})},n.sharpen=function(t){return this.withOptions({sharpen:t})},n.rect=function(t,e,n,r){return this.withOptions({rect:{left:t,top:e,width:n,height:r}})},n.format=function(t){return this.withOptions({format:t})},n.invert=function(t){return this.withOptions({invert:t})},n.orientation=function(t){return this.withOptions({orientation:t})},n.quality=function(t){return this.withOptions({quality:t})},n.forceDownload=function(t){return this.withOptions({download:t})},n.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},n.flipVertical=function(){return this.withOptions({flipVertical:!0})},n.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},n.fit=function(t){if(-1===g.indexOf(t))throw new Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},n.crop=function(t){if(-1===v.indexOf(t))throw new Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},n.saturation=function(t){return this.withOptions({saturation:t})},n.auto=function(t){if(-1===w.indexOf(t))throw new Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},n.pad=function(t){return this.withOptions({pad:t})},n.url=function(){return d(this.options)},n.toString=function(){return this.url()},e}();return O}()},8863:function(t,e,n){"use strict";var r=n(7294),i=n(5697),o=n(8550),s=n(8675),a=s.serializers,l=s.serializeSpan,u=s.renderProps,c=o.getImageUrl,f=o.blocksToNodes,h=o.mergeSerializers,p=r.createElement,d=function t(e){var n=h(t.defaultSerializers,e.serializers),r=Object.assign({},u,e,{serializers:n,blocks:e.blocks||[]});return f(p,r,a,l)};d.defaultSerializers=a,d.getImageUrl=c,d.propTypes={className:i.string,renderContainerOnSingleChild:i.bool,ignoreUnknownTypes:i.bool,projectId:i.string,dataset:i.string,imageOptions:i.object,serializers:i.shape({types:i.object,marks:i.object,list:i.func,listItem:i.func,block:i.func,span:i.func}),blocks:i.oneOfType([i.arrayOf(i.shape({_type:i.string.isRequired})),i.shape({_type:i.string.isRequired})]).isRequired},d.defaultProps={ignoreUnknownTypes:!0,renderContainerOnSingleChild:!1,serializers:{},imageOptions:{}},t.exports=d},8675:function(t,e,n){"use strict";var r=n(7294),i=(0,n(8550).getSerializers)(r.createElement),o=i.defaultSerializers,s=i.serializeSpan;t.exports={serializeSpan:s,serializers:o,renderProps:{nestMarks:!0}}}}]);