1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1285],{59371:function(t){var i;i=function(){function t(){return(t=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t,i){(null==i||i>t.length)&&(i=t.length);for(var r=0,n=Array(i);r<i;r++)n[r]=t[r];return n}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var e=[["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"],["frame","frame"]],o=["clip","crop","fill","fillmax","max","scale","min"],a=["top","bottom","left","right","center","focalpoint","entropy"],h=["format"],u=function(){function u(i,r){this.options=void 0,this.options=i?t({},i.options||{},r||{}):t({},r||{})}var s=u.prototype;return s.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,o={baseUrl:n};for(var a in r)r.hasOwnProperty(a)&&(o[function(t){for(var r,n=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return i(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,void 0)}}(t))){n&&(t=n);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(r=n()).done;){var o=r.value,a=o[0],h=o[1];if(t===a||t===h)return a}return t}(a)]=r[a]);return new u(this,t({baseUrl:n},o))},s.image=function(t){return this.withOptions({source:t})},s.dataset=function(t){return this.withOptions({dataset:t})},s.projectId=function(t){return this.withOptions({projectId:t})},s.bg=function(t){return this.withOptions({bg:t})},s.dpr=function(t){return this.withOptions(t&&1!==t?{dpr:t}:{})},s.width=function(t){return this.withOptions({width:t})},s.height=function(t){return this.withOptions({height:t})},s.focalPoint=function(t,i){return this.withOptions({focalPoint:{x:t,y:i}})},s.maxWidth=function(t){return this.withOptions({maxWidth:t})},s.minWidth=function(t){return this.withOptions({minWidth:t})},s.maxHeight=function(t){return this.withOptions({maxHeight:t})},s.minHeight=function(t){return this.withOptions({minHeight:t})},s.size=function(t,i){return this.withOptions({width:t,height:i})},s.blur=function(t){return this.withOptions({blur:t})},s.sharpen=function(t){return this.withOptions({sharpen:t})},s.rect=function(t,i,r,n){return this.withOptions({rect:{left:t,top:i,width:r,height:n}})},s.format=function(t){return this.withOptions({format:t})},s.invert=function(t){return this.withOptions({invert:t})},s.orientation=function(t){return this.withOptions({orientation:t})},s.quality=function(t){return this.withOptions({quality:t})},s.forceDownload=function(t){return this.withOptions({download:t})},s.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},s.flipVertical=function(){return this.withOptions({flipVertical:!0})},s.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},s.fit=function(t){if(-1===o.indexOf(t))throw Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},s.crop=function(t){if(-1===a.indexOf(t))throw Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},s.saturation=function(t){return this.withOptions({saturation:t})},s.auto=function(t){if(-1===h.indexOf(t))throw Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},s.pad=function(t){return this.withOptions({pad:t})},s.vanityName=function(t){return this.withOptions({vanityName:t})},s.frame=function(t){if(1!==t)throw Error('Invalid frame value "'+t+'"');return this.withOptions({frame:t})},s.url=function(){return function(i){var o=t({},i||{}),a=o.source;delete o.source;var h=function(i){var r;if(!i)return null;if("string"==typeof i&&/^https?:\/\//.test(""+i))r={asset:{_ref:n(i)}};else if("string"==typeof i)r={asset:{_ref:i}
1};else if(i&&"string"==typeof i._ref)r={asset:i};else if(i&&"string"==typeof i._id)r={asset:{_ref:i._id||""}};else if(i&&i.asset&&"string"==typeof i.asset.url)r={asset:{_ref:n(i.asset.url)}};else{if("object"!=typeof i.asset)return null;r=t({},i)}return i.crop&&(r.crop=i.crop),i.hotspot&&(r.hotspot=i.hotspot),function(i){if(i.crop&&i.hotspot)return i;var r=t({},i);return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(a);if(!h)throw Error("Unable to resolve image URL from source ("+JSON.stringify(a)+")");var u=function(t){var i=t.split("-"),n=i[1],e=i[2],o=i[3];if(!n||!e||!o)throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');var a=e.split("x"),h=a[0],u=a[1],s=+h,f=+u;if(!(isFinite(s)&&isFinite(f)))throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');return{id:n,width:s,height:f,format:o}}(h.asset._ref||h.asset._id||""),s=Math.round(h.crop.left*u.width),f=Math.round(h.crop.top*u.height),c={left:s,top:f,width:Math.round(u.width-h.crop.right*u.width-s),height:Math.round(u.height-h.crop.bottom*u.height-f)},p=h.hotspot.height*u.height/2,l=h.hotspot.width*u.width/2,d=h.hotspot.x*u.width,w=h.hotspot.y*u.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=t({},o,function(t,i){var r,n=i.width,e=i.height;if(!(n&&e))return{width:n,height:e,rect:t.crop};var o=t.crop,a=t.hotspot,h=n/e;if(o.width/o.height>h){var u=Math.round(o.height),s=Math.round(u*h),f=Math.max(0,Math.round(o.top)),c=Math.max(0,Math.round(Math.round((a.right-a.left)/2+a.left)-s/2));c<o.left?c=o.left:c+s>o.left+o.width&&(c=o.left+o.width-s),r={left:c,top:f,width:s,height:u}}
1else{var p=o.width,l=Math.round(p/h),d=Math.max(0,Math.round(o.left)),w=Math.max(0,Math.round(Math.round((a.bottom-a.top)/2+a.top)-l/2));w<o.top?w=o.top:w+l>o.top+o.height&&(w=o.top+o.height-l),r={left:d,top:w,width:p,height:l}}return{width:n,height:e,rect:r}}({crop:c,hotspot:{left:d-l,top:w-p,right:d+l,bottom:w+p}},o))),function(t){var i=(t.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=t.vanityName?"/"+t.vanityName:"",n=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format+r,o=i+"/images/"+t.projectId+"/"+t.dataset+"/"+n,a=[];if(t.rect){var h=t.rect,u=h.left,s=h.top,f=h.width,c=h.height;(0!==u||0!==s||c!==t.asset.height||f!==t.asset.width)&&a.push("rect="+u+","+s+","+f+","+c)}t.bg&&a.push("bg="+t.bg),t.focalPoint&&(a.push("fp-x="+t.focalPoint.x),a.push("fp-y="+t.focalPoint.y));var p=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return(p&&a.push("flip="+p),e.forEach(function(i){var r=i[0],n=i[1];void 0!==t[r]?a.push(n+"="+encodeURIComponent(t[r])):void 0!==t[n]&&a.push(n+"="+encodeURIComponent(t[n]))}),0===a.length)?o:o+"?"+a.join("&")}(t({},o,{asset:u}))}(this.options)},s.toString=function(){return this.url()},u}();return function(t){if(t&&"config"in t&&"function"==typeof t.config){var i=t.config(),r=i.apiHost,n=i.projectId,e=i.dataset;return new u(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:e})}if(t&&"clientConfig"in t&&"object"==typeof t.clientConfig){var o=t.clientConfig,a=o.apiHost,h=o.projectId,s=o.dataset;return new u(null,{baseUrl:(a||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:h,dataset:s})}return new u(null,t||{})}},t.exports=i()},42607:(t,i,r)=>{"use strict";r.d(i,{S:()=>h});var n=r(12115);function e(t,i){return"function"==typeof t?t(i):t&&(t.current=i),t}var o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,a=new WeakMap;function h(t,i){var r,h,u,s=(r=i||null,h=function(i){return t.forEach(function(t){return e(t,i)})},(u=(0,n.useState)(function(){return{value:r,callback:h,facade:{get current(){return u.value},set current(value){var t=u.value;t!==value&&(u.value=value,u.callback(value,t))}}}})[0]).callback=h,u.facade);return o(function(){var i=a.get(s);if(i){var r=new Set(i),n=new Set(t),o=s.current;r.forEach(function(t){n.has(t)||e(t,null)}),n.forEach(function(t){r.has(t)||e(t,o)})}a.set(s,t)},[t]),s}},44577:(t,i,r)=>{"use strict";r.d(i,{C:()=>a,f:()=>h});var n=r(6476);function e(t){return t}function o(t,i){void 0===i&&(i=e);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(t){var e=i(t,n);return r.push(e),function(){r=r.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(n=!0;r.length;){var i=r;r=[],i.forEach(t)}r={push:function(i){return t(i)},filter:function(){return r}}},assignMedium:function(t){n=!0;var i=[];if(r.length){var e=r;r=[],e.forEach(t),i=r}var o=function(){var r=i;i=[],r.forEach(t)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(t){i.push(t),a()},filter:function(t){return i=i.filter(t),r}}}}}function a(t,i){return void 0===i&&(i=e),o(t,i)}function h(t){void 0===t&&(t={});var i=o(null);return i.options=(0,n.Cl)({async:!0,ssr:!1},t),i}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.