1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="001964ba-6e97-5520-9bd0-e3462e9344c5")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(132061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let n=e.r(843476),i=e.r(174080),s=e.r(563599),o=e.r(309885),a=e.r(543369);function l({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(843476),i=e.r(271645),s=e.r(667585),o=e.r(652157);function a(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},r=(0,i.lazy)(()=>t.loader().then(a)),u=t.loading;function c(e){let a=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?i.Suspense:i.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...l?{fallback:a}:{},children:d})}return c.displayName="LoadableComponent",c}},770703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(555682)._(e.r(869093));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},654565,e=>{"use strict";var t=e.i(271645),r=e.i(302988);e.s(["default",0,function(e){let[n,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=r.bp[e],s=window.matchMedia(t);s.matches!==n&&i(s.matches);let o=()=>{i(s.matches)};return s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[n,e]),n}])},439884,(e,t,r)=>{e.e,t.exports=function(){function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(e){return("image-"+e.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["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"]
2],s=["clip","crop","fill","fillmax","max","scale","min"],o=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],l=function(){function l(t,r){this.options=void 0,this.options=t?e({},t.options||{},r||{}):e({},r||{})}var u=l.prototype;return u.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,s={baseUrl:n};for(var o in r)r.hasOwnProperty(o)&&(s[function(e){for(var r,n=function(e){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return t(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=n()).done;){var s=r.value,o=s[0],a=s[1];if(e===o||e===a)return o}return e}(o)]=r[o]);return new l(this,e({baseUrl:n},s))},u.image=function(e){return this.withOptions({source:e})},u.dataset=function(e){return this.withOptions({dataset:e})},u.projectId=function(e){return this.withOptions({projectId:e})},u.bg=function(e){return this.withOptions({bg:e})},u.dpr=function(e){return this.withOptions(e&&1!==e?{dpr:e}:{})},u.width=function(e){return this.withOptions({width:e})},u.height=function(e){return this.withOptions({height:e})},u.focalPoint=function(e,t){return this.withOptions({focalPoint:{x:e,y:t}})},u.maxWidth=function(e){return this.withOptions({maxWidth:e})},u.minWidth=function(e){return this.withOptions({minWidth:e})},u.maxHeight=function(e){return this.withOptions({maxHeight:e})},u.minHeight=function(e){return this.withOptions({minHeight:e})},u.size=function(e,t){return this.withOptions({width:e,height:t})},u.blur=function(e){return this.withOptions({blur:e})},u.sharpen=function(e){return this.withOptions({sharpen:e})},u.rect=function(e,t,r,n){return this.withOptions({rect:{left:e,top:t,width:r,height:n}})},u.format=function(e){return this.withOptions({format:e})},u.invert=function(e){return this.withOptions({invert:e})},u.orientation=function(e){return this.withOptions({orientation:e})},u.quality=function(e){return this.withOptions({quality:e})},u.forceDownload=function(e){return this.withOptions({download:e})},u.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},u.flipVertical=function(){return this.withOptions({flipVertical:!0})},u.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},u.fit=function(e){if(-1===s.indexOf(e))throw Error('Invalid fit mode "'+e+'"');return this.withOptions({fit:e})},u.crop=function(e){if(-1===o.indexOf(e))throw Error('Invalid crop mode "'+e+'"');return this.withOptions({crop:e})},u.saturation=function(e){return this.withOptions({saturation:e})},u.auto=function(e){if(-1===a.indexOf(e))throw Error('Invalid auto mode "'+e+'"');return this.withOptions({auto:e})},u.pad=function(e){return this.withOptions({pad:e})},u.url=function(){return function(t){var s=e({},t||{}),o=s.source;delete s.source;var a=function(t){var r,i;if(!t)return null;if("string"==typeof t&&(i=t,/^https?:\/\//.test(""+i)))r={asset:{_ref:n(t)}};else if("string"==typeof t)r={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)r={asset:t};else if(t&&"string"==typeof t._id)r={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)r={asset:{_ref:n(t.asset.url)}};else{if("object"!=typeof t.asset)return null;r=e({},t)}return t.crop&&(r.crop=t.crop),t.hotspot&&(r.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;var r=e({},t);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)}(o);if(!a)throw Error("Unable to resolve image URL from source ("+JSON.stringify(o)+")");var l=function(e){var t=e.split("-"),n=t[1],i=t[2],s=t[3];if(!n||!i||!s)throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');var o=i.split("x"),a=o[0],l=o[1],u=+a,c=+l;if(!(isFinite(u)&&isFinite(c)))throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');return{id:n,width:u,height:c,format:s}}(a.asset._ref||a.asset._id||""),u=Math.round(a.crop.left*l.width),c=Math.round(a.crop.top*l.height),d={left:u,top:c,width:Math.round(l.width-a.crop.right*l.width-u),height:Math.round(l.height-a.crop.bottom*l.height-c)},h=a.hotspot.height*l.height/2,p=a.hotspot.width*l.width/2,f=a.hotspot.x*l.width,m=a.hotspot.y*l.height;return s.rect||s.focalPoint||s.ignoreImageParams||s.crop||(s=e({},s,function(e,t){var r,n=t.width,i=t.height;if(!(n&&i))return{width:n,height:i,rect:e.crop};var s=e.crop,o=e.hotspot,a=n/i;if(s.width/s.height>a){var l=Math.round(s.height),u=Math.round(l*a),c=Math.max(0,Math.round(s.top)),d=Math.max(0,Math.round(Math.round((o.right-o.left)/2+o.left)-u/2));d<s.left?d=s.left:d+u>s.left+s.width&&(d=s.left+s.width-u),r={left:d,top:c,width:u,height:l}}else{var h=s.width,p=Math.round(h/a),f=Math.max(0,Math.round(s.left)),m=Math.max(0,Math.round(Math.round((o.bottom-o.top)/2+o.top)-p/2));m<s.top?m=s.top:m+p>s.top+s.height&&(m=s.top+s.height-p),r={left:f,top:m,width:h,height:p}}return{width:n,height:i,rect:r}}({crop:d,hotspot:{left:f-p,top:m-h,right:f+p,bottom:m+h}},s))),function(e){var t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=e.asset.id+"-"+e.asset.width+"x"+e.asset.height+"."+e.asset.format,n=t+"/images/"+e.projectId+"/"+e.dataset+"/"+r,s=[];if(e.rect){var o=e.rect,a=o.left,l=o.top,u=o.width,c=o.height;(0!==a||0!==l||c!==e.asset.height||u!==e.asset.width)&&s.push("rect="+a+","+l+","+u+","+c)}e.bg&&s.push("bg="+e.bg),e.focalPoint&&(s.push("fp-x="+e.focalPoint.x),s.push("fp-y="+e.focalPoint.y));
2var d=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return(d&&s.push("flip="+d),i.forEach(function(t){var r=t[0],n=t[1];void 0!==e[r]?s.push(n+"="+encodeURIComponent(e[r])):void 0!==e[n]&&s.push(n+"="+encodeURIComponent(e[n]))}),0===s.length)?n:n+"?"+s.join("&")}(e({},s,{asset:l}))}(this.options)},u.toString=function(){return this.url()},l}();return function(e){if(e&&"config"in e&&"function"==typeof e.config){var t=e.config(),r=t.apiHost,n=t.projectId,i=t.dataset;return new l(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}if(e&&"clientConfig"in e&&"object"==typeof e.clientConfig){var s=e.clientConfig,o=s.apiHost,a=s.projectId,u=s.dataset;return new l(null,{baseUrl:(o||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:a,dataset:u})}return new l(null,e)}}()},284357,(e,t,r)=>{var n=e.r(795014);t.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},979589,(e,t,r)=>{var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(e){return n.test(e)}},758672,(e,t,r)=>{t.exports=function(e){return e.split("")}},695365,(e,t,r)=>{var n="\\ud800-\\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",o="[^"+n+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+i+"|"+s+")?",c="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[o,a,l].join("|")+")"+c+u+")*",h=RegExp(s+"(?="+s+")|"+("(?:"+[o+i+"?",i,a,l,"["+n+"]"].join("|"))+")"+(c+u+d),"g");t.exports=function(e){return e.match(h)||[]}},34170,(e,t,r)=>{var n=e.r(758672),i=e.r(979589),s=e.r(695365);t.exports=function(e){return i(e)?s(e):n(e)}},229821,(e,t,r)=>{var n=e.r(284357),i=e.r(979589),s=e.r(34170),o=e.r(702922);t.exports=function(e){return function(t){var r=i(t=o(t))?s(t):void 0,a=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return a[e]()+l}}},232241,(e,t,r)=>{t.exports=e.r(229821)("toUpperCase")},220250,(e,t,r)=>{var n=e.r(702922),i=e.r(232241);t.exports=function(e){return i(n(e).toLowerCase())}},908035,801547,561403,945736,875038,e=>{"use strict";function t(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function r(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>"object"==typeof e&&"_type"in e)}function n(e){return r(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function i(e){return"@list"===e._type}function s(e){return"@span"===e._type}function o(e){return"@text"===e._type}let a=["strong","em","code","underline","strike-through"];function l(e,r,n){if(!t(e)||!e.marks||!e.marks.length)return[];let i=e.marks.slice(),s={};return i.forEach(e=>{s[e]=1;for(let i=r+1;i<n.length;i++){let r=n[i];if(r&&t(r)&&Array.isArray(r.marks)&&-1!==r.marks.indexOf(e))s[e]++;else break}}),i.sort((e,t)=>(function(e,t,r){let n=e[t],i=e[r];if(n!==i)return i-n;let s=a.indexOf(t),o=a.indexOf(r);return s===o?t.localeCompare(r):s-o})(s,e,t))}function u(e,t,r){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:r,level:e.level||1,listItem:e.listItem,children:[e]}}function c(e,r){let n=r.level||1,s=r.listItem||"normal",o="string"==typeof r.listItem;if(i(e)&&(e.level||1)===n&&o&&(e.listItem||"normal")===s)return e;if(!("children"in e))return;let a=e.children[e.children.length-1];return a&&!t(a)?c(a,r):void 0}let d=/^\s/,h=/\s$/;function p(){return(p=Object.assign.bind()).apply(this,arguments)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,r){return(g=!function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&m(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function y(e){var t="function"==typeof Map?new Map:void 0;return(y=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return g(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)})(e)}e.s(["LIST_NEST_MODE_HTML",0,"html","buildMarksTree",0,function(e){let{children:r}=e,n=e.markDefs??[];if(!r||!r.length)return[];let i=r.map(l),s={_type:"@span",children:[],markType:"<unknown>"},o=[s];for(let e=0;e<r.length;e++){let s=r[e];if(!s)continue;let a=i[e]||[],l=1;if(o.length>1)for(;l<o.length;l++){let e=o[l]?.markKey||"",t=a.indexOf(e);if(-1===t)break;a.splice(t,1)}let u=(o=o.slice(0,l))[o.length-1];
2if(u){for(let e of a){let t=n?.find(t=>t._key===e),r={_type:"@span",_key:s._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};u.children.push(r),o.push(r),u=r}if(t(s)){let e=s.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");u.children=u.children.concat(e.map(e=>({_type:"@text",text:e})))}else u.children=u.children.concat(s)}}return s.children},"isPortableTextBlock",0,r,"isPortableTextListItemBlock",0,n,"isPortableTextToolkitList",0,i,"isPortableTextToolkitSpan",0,s,"isPortableTextToolkitTextNode",0,o,"nestLists",0,function(e,t){let r=[],i;for(let a=0;a<e.length;a++){let l=e[a];if(l){var s,o;if(!n(l)){r.push(l),i=void 0;continue}if(!i){i=u(l,a,t),r.push(i);continue}if(s=l,o=i,(s.level||1)===o.level&&s.listItem===o.listItem){i.children.push(l);continue}if((l.level||1)>i.level){let e=u(l,a,t);if("html"===t){let t=i.children[i.children.length-1],r={...t,children:[...t.children,e]};i.children[i.children.length-1]=r}else i.children.push(e);i=e;continue}if((l.level||1)<i.level){let e=r[r.length-1],n=e&&c(e,l);if(n){(i=n).children.push(l);continue}i=u(l,a,t),r.push(i);continue}if(l.listItem!==i.listItem){let e=r[r.length-1],n=e&&c(e,{level:l.level||1});if(n&&n.listItem===l.listItem){(i=n).children.push(l);continue}i=u(l,a,t),r.push(i);continue}console.warn("Unknown state encountered for block",l),r.push(l)}}return r},"spanToPlainText",0,function e(t){let r="";return t.children.forEach(t=>{o(t)?r+=t.text:s(t)&&(r+=e(t))}),r},"toPlainText",0,function(e){let n=Array.isArray(e)?e:[e],i="";return n.forEach((e,s)=>{if(!r(e))return;let o=!1;e.children.forEach(e=>{t(e)?(i+=o&&i&&!h.test(i)&&!d.test(e.text)?" ":"",i+=e.text,o=!1):o=!0}),s!==n.length-1&&(i+="\n\n")}),i}],908035);var b,v,w,x=function(e){function t(t,r){var n;return void 0===r&&(r="Failed to resolve asset ID from source"),(n=e.call(this,r)||this).unresolvable=!0,n.input=t,n}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m(t,e),t}(y(Error));function $(e){return function(){try{return e.apply(void 0,arguments)}catch(e){if(e.unresolvable&&"input"in e)return;throw e}}}var _="https://cdn.sanity.io",C=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+\.[a-z0-9]+$/,I=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})-\d+x\d+\.[a-z0-9]+$/,S=/^(images|files)\/([a-z0-9]+)\/([a-z0-9][-\w]*)\//,j=/^(?:image-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+|file-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+)$/;function T(e){return O(e)&&"string"==typeof e._ref}function k(e){return O(e)&&"string"==typeof e.path}function E(e){return O(e)&&"string"==typeof e.url}function R(e){return O(e)&&e.asset&&"object"==typeof e.asset}function O(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e}function q(e,t){var r=(null==t?void 0:t.projectId)||e.projectId,n=(null==t?void 0:t.dataset)||e.dataset;if(!r||!n)throw Error("Project details (projectId and dataset) required to resolve path for image");var i="metadata"in e?e.metadata.dimensions:{width:e.width,height:e.height},s="originalFilename"in e?e.originalFilename:void 0,o=e.assetId,a=e.extension,l=e.vanityFilename;return"images/"+r+"/"+n+"/"+o+"-"+i.width+"x"+i.height+"."+a+M(s,l,t)}function A(e,t){return _+"/"+q(e,t)}function P(e){if(S.test(e))return e;if(!e.startsWith(_+"/"))throw new x('Failed to resolve path from URL "'+e+'"');var t=e.indexOf("?");return e.slice(_.length+1,-1===t?void 0:t)}var L=$(P);function M(e,t,r){var n=t||e;return(null==r?void 0:r.useVanityName)!==!1&&n?"/"+n:""}function D(e){var t=e.split("-"),r=t[1],n=t[2],i=t[3],s=(n||"").split("x").map(Number),o=s[0],a=s[1];if(!r||!n||!i||!(o>0)||!(a>0))throw Error("Malformed asset ID '"+e+'\'. Expected an id like "image-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-2000x3000-jpg".');return{type:"image",assetId:r,width:o,height:a,extension:i}}function F(e){var t=R(e)?e.asset:e,r="";if("string"==typeof t?r=function(e){var t,r;if(j.test(e))return e;if(0===e.indexOf(_+"/images")||0===e.indexOf(_+"/files"))return N(e);if(S.test(e))return N(_+"/"+e);if(t=e,C.test(t))return N(_+"/files/a/b/"+e);if(r=e,I.test(r))return N(_+"/images/a/b/"+e);throw new x(e)}(t):T(t)?r=t._ref:O(t)&&"string"==typeof t._id?r=t._id:k(t)?r=N(_+"/"+t.path):E(t)&&(r=N(t.url)),!(r&&j.test(r)))throw new x(e);return r}function N(e){var t=P(e).split("/"),r=t[0],n=t[3];return r.replace(/s$/,"")+"-"+n.replace(/\./g,"-")}function U(e){var t=function e(t){if(R(t))return e(t.asset);if(!T(t)){if("string"==typeof t)return S.test(L(t)||"")?P(t):void 0;if(k(t))return t.path;if(E(t))return P(t.url)}}(e);if(!t)throw new x(e,"Failed to resolve project ID and dataset from source");var r=t.match(S)||[],n=r[2],i=r[3];if(!n||!i)throw new x(e,"Failed to resolve project ID and dataset from source");return{projectId:n,dataset:i}}e.s(["buildImageUrl",0,A,"getImageAsset",0,function(e,t){var r=t||U(e),n=p({},r,{useVanityName:!1}),i=F(e),s=(e.asset||e).metadata||{},o=D(i),a=o.assetId,l=o.width,u=o.height,c=o.extension,d=p({},O(e)&&"sanity.imageAsset"===e._type?e:{},{_id:i,_type:"sanity.imageAsset",assetId:a,extension:c,metadata:p({},s,{dimensions:{width:l,height:u,aspectRatio:l/u}}),url:"",path:""});return p({},d,{path:q(d,n),url:A(d,n)})},"getImageDimensions",0,function(e){var t=D(F(e)),r=t.width,n=t.height;return{width:r,height:n,aspectRatio:r/n}}],801547);var z=e.i(439884),W=e.i(271645);let B=(e,t)=>{let r=e.quality(t.quality||75).fit("clip");return null!==t.width?r.width(t.width):r};e.s(["useNextSanityImage",0,function(e,t,r){let n=(null==r?void 0:r.imageBuilder)||B;return(0,W.useMemo)(()=>
2{if(!t)return null;let r=t?"string"==typeof t?t:t.asset?t.asset._ref||t.asset._id:t._ref||t._id||"":null;if(!r)return null;let i=function(e){let[t,r]=e.split("-")[2].split("x").map(e=>parseInt(e,10));return{width:t,height:r,aspectRatio:t/r}}(r),s=function(e,t){let r=e.crop;if(!r)return t;let{width:n,height:i}=t,s=n*(1-(r.left+r.right)),o=i*(1-(r.top+r.bottom));return{width:s,height:o,aspectRatio:s/o}}(t,i),o=n((0,z.default)(e).image(t).auto("format"),{width:null,originalImageDimensions:i,croppedImageDimensions:s,quality:null}),a=o.options.width||(o.options.maxWidth?Math.min(o.options.maxWidth,s.width):s.width),l=o.options.height||(o.options.maxHeight?Math.min(o.options.maxHeight,s.height):Math.round(a/s.aspectRatio));return{loader:r=>{let{width:o,quality:a}=r;return n((0,z.default)(e).image(t).auto("format"),{width:o,originalImageDimensions:i,croppedImageDimensions:s,quality:a||null}).url()||""},src:o.url(),width:a,height:l}},[n,t,e])}],561403);let H=!(typeof navigator>"u")&&"ReactNative"===navigator.product,V={timeout:H?6e4:12e4},G=function(e){let t={...V,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let r=Number(t);return isNaN(r)?e(V.timeout):{connect:r,socket:r}}(t.timeout),t.query){let{url:e,searchParams:r}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let r=e.slice(0,t),n=e.slice(t+1);if(!H)return{url:r,searchParams:new URLSearchParams(n)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let i=new URLSearchParams;for(let e of n.split("&")){let[t,r]=e.split("=");t&&i.append(J(t),J(r||""))}return{url:r,searchParams:i}}(t.url);for(let[n,i]of Object.entries(t.query)){if(void 0!==i)if(Array.isArray(i))for(let e of i)r.append(n,e);else r.append(n,i);let s=r.toString();s&&(t.url=`${e}?${s}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function J(e){return decodeURIComponent(e.replace(/\+/g," "))}let Y=/^https?:\/\//i,K=function(e){if(!Y.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},Q=["request","response","progress","error","abort"],X=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var Z,ee,et,er=(Z=function(){if(et)return ee;et=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return ee=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),i=0;i<n.length;i++){var s,o=n[i],a=o.indexOf(":"),l=e(o.slice(0,a)).toLowerCase(),u=e(o.slice(a+1));typeof r[l]>"u"?r[l]=u:(s=r[l],"[object Array]"===Object.prototype.toString.call(s))?r[l].push(u):r[l]=[r[l],u]}return r}}())&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z;class en{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#s={};#o;open(e,t,r){this.#e=e,this.#t=t,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#n[e]=t}setInit(e,t=!0){this.#s=e,this.#o=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#s,method:this.#e,headers:this.#n,body:e};"function"==typeof AbortController&&this.#o&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(e=>(e.headers.forEach((e,t)=>{this.#r+=`${t}: ${e}\r 3`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let ei="function"==typeof XMLHttpRequest?"xhr":"fetch",es="xhr"===ei?XMLHttpRequest:en,eo=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),i={},s=e.applyMiddleware("interceptRequest",void 0,{adapter:ei,context:e});if(s){let e=setTimeout(t,0,null,s);return{abort:()=>clearTimeout(e)}}let o=new es;o instanceof en&&"object"==typeof n.fetch&&o.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,l=n.timeout,u=!1,c=!1,d=!1;if(o.onerror=e=>{f(o instanceof en?e instanceof Error?e:Error(`Request error while attempting to reach is ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.ontimeout=e=>{f(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.onabort=()=>{p(!0),u=!0},o.onreadystatechange=function(){l&&(p(),i.socket=setTimeout(()=>
3h("ESOCKETTIMEDOUT"),l.socket)),!u&&o&&4===o.readyState&&0!==o.status&&function(){if(!(u||c||d)){if(0===o.status)return f(Error("Unknown XHR error"));p(),c=!0,t(null,{body:o.response||(""===o.responseType||"text"===o.responseType?o.responseText:""),url:n.url,method:n.method,headers:er(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(n.method,n.url,!0),o.withCredentials=!!n.withCredentials,a&&o.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&o.setRequestHeader(e,a[e]);return n.rawBody&&(o.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:ei,request:o,context:e}),o.send(n.body||null),l&&(i.connect=setTimeout(()=>h("ETIMEDOUT"),l.connect)),{abort:function(){u=!0,o&&o.abort()}};function h(t){d=!0,o.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function p(e){(e||u||o&&o.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function f(e){if(c)return;p(!0),c=!0,o=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}};var ea,el,eu,ec,ed,eh=e.i(167225),ep=e.i(467034),ef={exports:{}};ed||(ed=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof eh.default&&"env"in eh.default&&(e=eh.default.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),r=!1,t.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(ec?eu:(ec=1,eu=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set
3:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(el)return ea;el=1;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return ea=function(t,r){r=r||{};var n,i,s=typeof t;if("string"===s&&t.length>0){var o=t;if(!((o=String(o)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"weeks":case"week":case"w":return 6048e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l}}}return}if("number"===s&&isFinite(t))return r.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ef,ef.exports)),ef.exports,Object.prototype.hasOwnProperty;let em=typeof ep.Buffer>"u"?()=>!1:e=>ep.Buffer.isBuffer(e);function eg(e){return"[object Object]"===Object.prototype.toString.call(e)}let ey=["boolean","string","number"];var eb="u">typeof globalThis?globalThis:"u">typeof window?window:e.g;let ev=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((t,i)=>{let s=n.options.cancelToken;s&&s.promise.then(e=>{r.abort.publish(e),i(e)}),r.error.subscribe(i),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){i(e)}},0)})}};class ew{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class ex{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new ew(e),t(this.reason))})}static source=()=>{let e;return{token:new ex(t=>{e=t}),cancel:e}}}ev.Cancel=ew,ev.CancelToken=ex,ev.isCancel=e=>!(!e||!e?.__CANCEL__);var e$=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function e_(e){return 100*Math.pow(2,e)+100*Math.random()}let eC=(e={})=>{var t;let r,n,i;return r=(t={shouldRetry:e$,...e}).maxRetries||5,n=t.retryDelay||e_,i=t.shouldRetry,{onError:(e,t)=>
3{var s;let o=t.options,a=o.maxRetries||r,l=o.retryDelay||n,u=o.shouldRetry||i,c=o.attemptNumber||0;if(null!==(s=o.body)&&"object"==typeof s&&"function"==typeof s.pipe||!u(e,c,o)||c>=a)return e;let d=Object.assign({},t,{options:Object.assign({},o,{attemptNumber:c+1})});return setTimeout(()=>t.channels.request.publish(d),l(c)),null}}};eC.shouldRetry=e$;var eI=function(e,t){return(eI=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function eS(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function ej(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){var u=[a,l];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function eT(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ek(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function eE(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function eR(e){return this instanceof eR?(this.v=e,this):new eR(e)}function eO(e){return"function"==typeof e}function eq(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var eA=eq(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function eP(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var eL=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,i,s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=eT(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(eO(l))try{l()}catch(e){i=e instanceof eA?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=eT(u),d=c.next();!d.done;d=c.next()){var h=d.value;try{eF(h)}catch(e){i=null!=i?i:[],e instanceof eA?i=eE(eE([],ek(i)),ek(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new eA(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)eF(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&eP(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&eP(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),eM=eL.EMPTY;function eD(e){return e instanceof eL||e&&"closed"in e&&eO(e.remove)&&eO(e.add)&&eO(e.unsubscribe)}function eF(e){eO(e)?e():e.unsubscribe()}var eN=void 0,eU={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=eU.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,eE([e,t],ek(r))):setTimeout.apply(void 0,eE([e,t],ek(r)))},clearTimeout:function(e){var t=eU.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ez(e){eU.setTimeout(function(){!1;throw e})}function eW(){}var eB=eH("C",void 0,void 0);function eH(e,t,r){return{kind:e,value:t,error:r}}var eV=null;function eG(e){var t,r,n,i;1;e()}var eJ=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,eD(t)&&t.add(r)):r.destination=e1,r}return eS(t,e),t.create=function(e,t,r){return new eX(e,t,r)},t.prototype.next=function(e){this.isStopped?e0(eH("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?e0(eH("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?e0(eB,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(eL),eY=Function.prototype.bind;function eK(e,t){return eY.call(e,t)}var eQ=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){eZ(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){eZ(e)}else eZ(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){eZ(e)}},e}(),eX=function(e){function t(t,r,n){var i,s,o=e.call(this)||this;return eO(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:i=t,o.destination=new eQ(i),o}return eS(t,e),t}(eJ);function eZ(e){1;ez(e)}function e0(e,t){}var e1={closed:!0,next:eW,error:function(e){throw e},complete:eW},e2="function"==typeof Symbol&&Symbol.observable||"@@observable";function e5(e){return e}function e3(e){return 0===e.length?e5:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var e9=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof eJ||e&&eO(e.next)&&eO(e.error)&&eO(e.complete)&&eD(e)}(e)?new eX(e,t,r):e;return eG(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=e4(t))(function(t,n){var i=new eX({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[e2]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e3(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=e4(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function e4(e){var t;return null!=(t=null!=e?e:eN)?t:Promise}var e6=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function e8(e){return eO(null==e?void 0:e.then)}function e7(e){return Symbol.asyncIterator&&eO(null==e?void 0:e[Symbol.asyncIterator])}function te(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
3d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tt="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tr(e){return eO(null==e?void 0:e[tt])}function tn(e){return function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof eR?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function(){var t,r,n;return ej(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,eR(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,eR(void 0)];case 4:return[2,i.sent()];case 5:return[4,eR(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ti(e){return eO(null==e?void 0:e.getReader)}function ts(e){if(e instanceof e9)return e;if(null!=e){var t,r,n,i;if(eO(e[e2])){return t=e,new e9(function(e){var r=t[e2]();if(eO(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(e6(e)){return r=e,new e9(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(e8(e)){return n=e,new e9(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,ez)})}if(e7(e))return to(e);if(tr(e)){return i=e,new e9(function(e){var t,r;try{for(var n=eT(i),s=n.next();!s.done;s=n.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(ti(e))return to(tn(e))}throw te(e)}function to(e){return new e9(function(t){(function(e,t){var r,n,i,s,o,a,l,u;return o=this,a=void 0,l=void 0,u=function(){var o;return ej(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=eT(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var s,o,a;s=n,o=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:a})},o)})}}}(e),a.label=1;case 1:return[4,r.next()];case 2:if((n=a.sent()).done)return[3,4];if(o=n.value,t.next(o),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(n&&!n.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})},new(l||(l=Promise))(function(e,t){function r(e){try{i(u.next(e))}catch(e){t(e)}}function n(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(r,n)}i((u=u.apply(o,a||[])).next())})})(e,t).catch(function(e){return t.error(e)})})}function ta(e){return new e9(function(t){ts(e()).subscribe(t)})}function tl(e){return e[e.length-1]}function tu(e){var t;return(t=tl(e))&&eO(t.schedule)?e.pop():void 0}function tc(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var s=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(s),!i)return s}function td(e){return function(t){if(eO(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function th(e,t,r,n,i){return new tp(e,t,r,n,i)}var tp=function(e){function t(t,r,n,i,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return eS(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(eJ);function tf(e,t){return void 0===t&&(t=0),td(function(r,n){r.subscribe(th(n,function(r){return tc(n,e,function(){return n.next(r)},t)},function(){return tc(n,e,function(){return n.complete()},t)},function(r){return tc(n,e,function(){return n.error(r)},t)}
3))})}function tm(e,t){return void 0===t&&(t=0),td(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function tg(e,t){if(!e)throw Error("Iterable cannot be null");return new e9(function(r){tc(r,t,function(){var n=e[Symbol.asyncIterator]();tc(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function ty(e,t){return t?function(e,t){if(null!=e){if(eO(e[e2]))return ts(e).pipe(tm(t),tf(t));if(e6(e))return new e9(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(e8(e))return ts(e).pipe(tm(t),tf(t));if(e7(e))return tg(e,t);if(tr(e))return new e9(function(r){var n;return tc(r,t,function(){n=e[tt](),tc(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return eO(null==n?void 0:n.return)&&n.return()}});if(ti(e))return tg(tn(e),t)}throw te(e)}(e,t):ts(e)}function tb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tu(e);return ty(e,r)}function tv(e,t){return td(function(r,n){var i=0;r.subscribe(th(n,function(r){n.next(e.call(t,r,i++))}))})}function tw(e,t,r){return(void 0===r&&(r=1/0),eO(t))?tw(function(r,n){return tv(function(e,i){return t(r,e,n,i)})(ts(e(r,n)))},r):("number"==typeof t&&(r=t),td(function(t,n){var i,s,o,a,l,u,c,d;return i=r,s=[],o=0,a=0,l=!1,u=function(){!l||s.length||o||n.complete()},c=function(e){return o<i?d(e):s.push(e)},d=function(t){o++;var r=!1;ts(e(t,a++)).subscribe(th(n,function(e){n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(o--;s.length&&o<i;)!function(){var e=s.shift();d(e)}();u()}catch(e){n.error(e)}}))},t.subscribe(th(n,c,function(){l=!0,u()})),function(){}}))}var tx=eq(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function t$(e,t){var r="object"==typeof t;return new Promise(function(n,i){var s,o=!1;e.subscribe({next:function(e){s=e,o=!0},error:i,complete:function(){o?n(s):r?n(t.defaultValue):i(new tx)}})})}var t_=eq(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tC=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return eS(t,e),t.prototype.lift=function(e){var t=new tI(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new t_},t.prototype.next=function(e){var t=this;eG(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=eT(t.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;eG(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;eG(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?eM:(this.currentObservers=null,i.push(e),new eL(function(){t.currentObservers=null,eP(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new e9;return e.source=this,e},t.create=function(e,t){return new tI(e,t)},t}(e9),tI=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return eS(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:eM},t}(tC),tS={now:function(){return(tS.delegate||Date).now()},delegate:void 0},tj=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=tS);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return eS(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,s=this._timestampProvider,o=this._windowTime;!r&&(n.push(t),i||n.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},t}(tC);function tT(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new tC}:t,n=e.resetOnError,i=void 0===n||n,s=e.resetOnComplete,o=void 0===s||s,a=e.resetOnRefCountZero,l=void 0===a||a;
3return function(e){var t,n,s,a=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},h=function(){d(),t=s=void 0,u=c=!1},p=function(){var e=t;h(),null==e||e.unsubscribe()};return td(function(e,f){a++,c||u||d();var m=s=null!=s?s:r();f.add(function(){0!=--a||c||u||(n=tk(p,l))}),m.subscribe(f),!t&&a>0&&(t=new eX({next:function(e){return m.next(e)},error:function(e){c=!0,d(),n=tk(h,i,e),m.error(e)},complete:function(){u=!0,d(),n=tk(h,o),m.complete()}}),ts(e).subscribe(t))})(e)}}function tk(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new eX({next:function(){i.unsubscribe(),e()}});return ts(t.apply(void 0,eE([],ek(r)))).subscribe(i)}}function tE(e){return td(function(t,r){var n,i=null,s=!1;i=t.subscribe(th(r,void 0,void 0,function(o){n=ts(e(o,tE(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):s=!0})),s&&(i.unsubscribe(),i=null,n.subscribe(r))})}function tR(e){return void 0===e&&(e=1/0),tw(e5,e)}var tO=function(e){function t(t,r){return e.call(this)||this}return eS(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(eL),tq={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=tq.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,eE([e,t],ek(r))):setInterval.apply(void 0,eE([e,t],ek(r)))},clearInterval:function(e){var t=tq.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},tA=function(e){function t(t,r){var n=e.call(this,t,r)||this;
3return n.scheduler=t,n.work=r,n.pending=!1,n}return eS(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),tq.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&tq.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,eP(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(tO),tP=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=tS.now,e}(),tL=new(function(e){function t(t,r){void 0===r&&(r=tP.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return eS(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(tP))(tA);function tM(e,t){var r=eO(e)?e:function(){return e},n=function(e){return e.error(r())};return new e9(t?function(e){return t.schedule(n,0,e)}:n)}function tD(e){return td(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}var tF=new e9(function(e){return e.complete()});function tN(e,t){var r="object"==typeof t;return new Promise(function(n,i){var s=new eX({next:function(e){n(e),s.unsubscribe()},error:i,complete:function(){r?n(t.defaultValue):i(new tx)}});e.subscribe(s)})}var tU=e.i(247984),tz=Array.isArray,tW=Array.isArray;function tB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=eO(tl(e))?e.pop():void 0;return r?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e3(e)}(tB.apply(void 0,eE([],ek(e))),tv(function(e){return tW(e)?r.apply(void 0,eE([],ek(e))):r(e)})):td(function(t,r){var n,i;(n=eE([t],ek(1===e.length&&tz(e[0])?e[0]:e)),void 0===i&&(i=e5),function(e){var t,r,s;t=void 0,r=function(){for(var t=n.length,r=Array(t),s=t,o=t,a=function(t){var a,l,u;a=void 0,l=function(){var a=ty(n[t],void 0),l=!1;a.subscribe(th(e,function(n){r[t]=n,!l&&(l=!0,o--),o||e.next(i(r.slice()))},function(){--s||e.complete()}))},u=e,a?tc(u,a,l):l()},l=0;l<t;l++)a(l)},s=e,t?tc(s,t,r):r()})(r)})}function tH(e,t){return td(function(r,n){var i=0;r.subscribe(th(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}let tV="drafts.",tG="versions.";function tJ(e){return e.startsWith(tV)}function tY(e){return e.startsWith(tG)}function tK(e){return tY(e)?tV+tZ(e):tJ(e)?e:tV+e}function tQ(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${tG}${t}.${tZ(e)}`}function tX(e){if(!tY(e))return;let[t,r]=e.split(".");return r}function tZ(e){return tY(e)?e.split(".").slice(2).join("."):tJ(e)?e.slice(tV.length):e}let t0=e=>crypto.getRandomValues(new Uint8Array(e)),t1=/\r\n|[\n\r\u2028\u2029]/;function t2(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class t5 extends Error{response;statusCode=400;responseBody;traceId;details;constructor(e,t){const r=t9(e,t);super(r.message),Object.assign(this,r)}}class t3 extends Error{response;statusCode=500;responseBody;traceId;details;constructor(e){const t=t9(e);super(t.message),Object.assign(this,t)}}function t9(e,t){var r,n,i;let s=e.body,o={response:e,statusCode:e.statusCode,responseBody:(r=s,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,tU.isRecord)(s))return o.message=`${t8(e,s)}${t7(o.traceId)}`,o;let a=s.error;if("string"==typeof a&&"string"==typeof s.message)return o.message=`${a} - ${s.message}${t7(o.traceId)}`,o;if("object"!=typeof a||null===a)return"string"==typeof a?o.message=`${a}${t7(o.traceId)}`:"string"==typeof s.message?o.message=`${s.message}${t7(o.traceId)}`:o.message=`${t8(e,s)}${t7(o.traceId)}`,o;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=a.items||[],t=e.slice(0,5).map(e=>
3e.error?.description).filter(Boolean),r=t.length?`: 4- ${t.join(` 5- `)}`:"";return e.length>5&&(r+=` 6...and ${e.length-5} more`),o.message=`${a.description}${t7(o.traceId)}${r}`,o.details=s.error,o}return t4(a)?(o.message=t6(a,t?.options?.query?.tag,o.traceId),o.details=s.error):"description"in a&&"string"==typeof a.description?(o.message=`${a.description}${t7(o.traceId)}`,o.details=a):o.message=`${t8(e,s)}${t7(o.traceId)}`,o}function t4(e){return(0,tU.isRecord)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function t6(e,t,r){let{query:n,start:i,end:s,description:o}=e,a=r?` 7(traceId: ${r})`:"";if(!n||typeof i>"u")return`GROQ query parse error: ${o}${a}`;let l=t?` 8 9Tag: ${t}`:"";return`GROQ query parse error: 10${function(e,t,r){let n=e.split(t1),{start:i,end:s,markerLines:o}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,s=r.column??0,o=n.line,a=n.column,l=Math.max(i-3,0),u=Math.min(t.length,o+3);-1===i&&(l=0),-1===o&&(u=t.length);let c=o-i,d={};if(c)for(let e=0;e<=c;e++){let r=e+i;if(s)if(0===e){let e=t[r-1].length;d[r]=[s,e-s+1]}else if(e===c)d[r]=[0,a];else{let n=t[r-e].length;d[r]=[0,n]}else d[r]=!0}else s===a?s?d[i]=[s,0]:d[i]=!0:d[i]=[s,a-s];return{start:l,end:u,markerLines:d}}({start:t2(t.start,n),end:t.end?t2(t.end,n):void 0},n),a=`${s}`.length;return e.split(t1,s).slice(i,s).map((e,t)=>{let n=i+1+t,s=` ${` ${n}`.slice(-a)} |`,l=o[n],u=!o[n+1];if(!l)return` ${s}${e.length>0?` ${e}`:""}`;let c="";if(Array.isArray(l)){let t=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),n=l[1]||1;c=` 11 `+s.replace(/\d/g," ")+" "+t+"^".repeat(n),u&&r&&(c+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+c}).join(` 12`)}(n,{start:i,end:s},o)}${l}${a}`}function t8(e,t){var r;let n="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}\u2026`:r})`:"",i=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${i}${n}`}function t7(e){return e?` (traceId: ${e})`:""}class re extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;const t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){const{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let rt={onResponse:(e,t)=>{if(e.statusCode>=500)throw new t3(e);if(e.statusCode>=400)throw new t5(e,t);return e}};function rr(e,t={}){return((e=[],t=eo)=>(function e(t,r){let n=[],i=X.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[G],validateOptions:[K]});function s(e){let t,n=Q.reduce((e,t)=>{let r,n;return e[t]=(r=Object.create(null),n=0,{publish:function(e){for(let t in r)r[t](e)},subscribe:function(e){let t=n++;return r[t]=e,function(){delete r[t]}}}),e},{}),s=function(e,t,...r){let n="onError"===e,s=t;for(let t=0;t<i[e].length&&(s=(0,i[e][t])(s,...r),!n||s);t++);return s},o=s("processOptions",e);s("validateOptions",o);let a={options:o,channels:n,applyMiddleware:s},l=n.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let i=e,o=t;if(!i)try{o=s("onResponse",t,r)}catch(e){o=null,i=e}(i=i&&s("onError",i,r))?n.error.publish(i):o&&n.response.publish(o)})(t,r,e))});n.abort.subscribe(()=>{l(),t&&t.abort()});let u=s("onReturn",n,a);return u===n&&n.request.publish(a),u}return s.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return X.forEach(t=>{e[t]&&i[t].push(e[t])}),n.push(e),s},s.clone=()=>e(n,r),t.forEach(s.use),s})(e,t))([eC({shouldRetry:rn}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||em(t)||-1===ey.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===eg(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==eg(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",r=-1!==t.indexOf("application/json");return e.body&&t&&r?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}},rt,function(e={}){let t=e.implementation||eb.Observable;if(!t)throw Error("`Observable` is not available in global scope, and n
12o implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}}({implementation:e9})])}function rn(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),s=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!i)&&!!s||eC.shouldRetry(e,t,r)}function ri(e){return"https://www.sanity.io/help/"+e}let rs=["image","file"],ro=["before","after","replace"],ra=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},rl=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},ru=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},rc=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);ru(e,t._id)},rd=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);var r=t._type;if("string"!=typeof r)throw Error(`\`${e}()\`: \`${r}\` is not a valid document type`)},rh=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},rp=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},rf=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":if(2!==n.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},rm=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},rg=e=>{var t;let r,n;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(n=t(...e),r=!0),n)},ry=rg(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),rb=rg(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),rv=rg(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),rw=rg(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),rx=rg(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${ri("js-client-browser-token")} for more information and how to hide this warning.`]),r$=rg(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),r_=rg(["Using the Sanity client without specifying an API version is deprecated.",`See ${ri("js-client-api-version")}`]),rC=(rg(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),rg(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),rI=rg(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),rS={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},rj=["localhost","127.0.0.1","0.0.0.0"];function rT(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let rk=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||rS.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||r_();let i={...rS,...n};i["~experimental_resource"]&&!i.resource&&(rI(),i.resource=i["~experimental_resource"]);let s=i.resource,o=i.useProjectHostname&&!s;if(typeof Promise>"u"){let e=ri("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(o&&!i.projectId)throw Error("Configuration must contain `projectId`");if(s&&rf(i),"u">typeof i.perspective&&rT(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
12if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,l=a&&(r=window.location.hostname,-1!==rj.indexOf(r)),u=!!i.token;i.withCredentials&&u&&(r$(),i.withCredentials=!1),a&&l&&u&&!0!==i.ignoreBrowserTokenWarning?rx():typeof i.useCdn>"u"&&rb(),o&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&ra(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?rp(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===rS.apiHost,!0===i.useCdn&&i.withCredentials&&ry(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let c=i.apiHost.split("://",2),d=c[0],h=c[1],p=i.isDefaultApi?"apicdn.sanity.io":h;return o?(i.url=`${d}://${i.projectId}.${h}/v${i.apiVersion}`,i.cdnUrl=`${d}://${i.projectId}.${p}/v${i.apiVersion}
12`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class rE extends Error{name="ConnectionFailedError"}class rR extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class rO extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class rq extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class rA extends Error{name="MessageParseError"}let rP=["channelError","disconnect"];function rL(e,t){return ta(()=>{let t=e();return t&&(t instanceof e9||eO(t.lift)&&eO(t.subscribe))?t:tb(t)}).pipe(tw(e=>{var r,n;return r=e,n=t,new e9(e=>{let t=n.includes("open"),i=n.includes("reconnect");function s(t){if("data"in t){let[r,n]=rM(t);e.error(r?new rA("Unable to parse EventSource error message",{cause:n}):new rq((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new rE("EventSource connection failed")):i&&e.next({type:"reconnect"})}function o(){e.next({type:"open"})}function a(t){let[n,i]=rM(t);if(n)return void e.error(new rA("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){var s,o;let t,n=new URL(r.url).searchParams.get("tag");e.error(new rO((s=i?.data,o=n,(t=s.error)?t4(t)?t6(t,o):t.description?t.description:"string"==typeof t?t:JSON.stringify(t,null,2):s.message||"Unknown listener error"),i.data));return}"disconnect"===t.type?e.error(new rR(`Server disconnected client: ${i.data?.reason||"unknown error"}`)):e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",s),t&&r.addEventListener("open",o);let l=[...new Set([...rP,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return l.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",s),t&&r.removeEventListener("open",o),l.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function rM(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function rD(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 13`);throw Error(`Unknown selection - must be one of: 14 15${t}`)}class rF{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return rl("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return((e,t,r)=>{let n="insert(at, selector, items)";if(-1===ro.indexOf(e)){let e=ro.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,s=typeof r>"u"||-1===r?-1:Math.max(0,t+r),o=`${e}[${i}:${i<0&&s>=0?"":s}]`;return this.insert("replace",o,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...rD(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return rl(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class rN extends rF{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new rN(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}class rU extends rF{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new rU(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}let rz={returnDocuments:!1};class rW{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return rl("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return rl(t,e),rc(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return rl(t,e),rc(t,e),this._add({[t]:e})}delete(e){return ru("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class rB extends rW{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new rB([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},rz,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof rU,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new rU(e,{},this.#a));if(!(r instanceof rU))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new rU(e,t||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class rH extends rW{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new rH([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},rz,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof rN)return this._add({patch:e.serialize()});if(r){let r=t(new rN(e,{},this.#a));if(!(r instanceof rN))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let rV=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:o,...a}=r;for(let[r,s]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))void 0!==s&&n.append(`$${r}`,JSON.stringify(s));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===o&&n.append("returnQuery","false"),!1===s&&n.append("includeMutations","fal
15se"),`?${n}`},rG=e=>"response"===e.type,rJ=e=>e.body;function rY(t,r,n,i,s={},o={}){let a="stega"in o?{...n||{},..."boolean"==typeof o.stega?{enabled:o.stega}:o.stega||{}}:n,l=a.enabled?(0,tU.stegaClean)(s):s,u=!1===o.filterResponse?e=>e:e=>e.result,{cache:c,next:d,...h}={useAbortSignal:"u">typeof o.signal,resultSourceMap:a.enabled?"withKeyArraySelector":o.resultSourceMap,...o,returnQuery:!1===o.filterResponse&&!1!==o.returnQuery},p=r7(t,r,"query",{query:i,params:l},"u">typeof c||"u">typeof d?{...h,fetch:{cache:c,next:d}}:h);return a.enabled?p.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tB.apply(void 0,eE([],ek(e)))}(ty(e.A(684927).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),tv(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return u({...e,result:r})})):p.pipe(tv(u))}function rK(e,t,r,n={}){let i={uri:ns(e,"doc",(()=>{if(!n.releaseId)return r;let e=tX(r);if(!e){if(tJ(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return tQ(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return nn(e,t,i).pipe(tH(rG),tv(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function rQ(e,t,r,n={}){let i={uri:ns(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return nn(e,t,i).pipe(tH(rG),tv(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function rX(e,t,r,n={}){return r7(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function rZ(e,t,r,n){return rc("createIfNotExists",r),ne(e,t,r,"createIfNotExists",n)}function r0(e,t,r,n){return rc("createOrReplace",r),ne(e,t,r,"createOrReplace",n)}function r1(e,t,r,n,i){return rc("createVersion",r),rd("createVersion",r),rC(),r8(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function r2(e,t,r,n,i,s,o){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return ru("createVersion",n),ru("createVersion",r),r8(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?tQ(r,i):tK(r),ifBaseRevisionId:s},o)}function r5(e,t,r,n){return r7(e,t,"mutate",{mutations:[{delete:rD(r)}]},n)}function r3(e,t,r,n=!1,i){return r8(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function r9(e,t,r,n){return rc("replaceVersion",r),rd("replaceVersion",r),r8(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function r4(e,t,r,n,i){return r8(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function r6(e,t,r,n){let i;return r7(e,t,"mutate",{mutations:Array.isArray(i=r instanceof rU||r instanceof rN?{patch:r.serialize()}:r instanceof rB||r instanceof rH?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function r8(e,t,r,n){let i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0;return r7(e,t,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function r7(e,t,r,n,i={}){let s="mutate"===r,o="actions"===r,a=s||o?"":rV(n),l=!s&&!o&&a.length<11264,u=l?a:"",c=i.returnFirst,{timeout:d,token:h,tag:p,headers:f,returnQuery:m,lastLiveEventId:g,cacheMode:y}=i,b={method:l?"GET":"POST",uri:ns(e,r,u),json:!0,body:l?void 0:n,query:s&&((e={})=>{let t;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:!!(typeof t>"u")||t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:d,headers:f,token:h,tag:p,returnQuery:m,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:y,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return nn(e,t,b).pipe(tH(rG),tv(rJ),tv(e=>{if(!s)return e;let t=e.results||[];if(i.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let r=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:r}}))}function ne(e,t,r,n,i={}){return r7(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let nt=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},nr=(e,t)=>
15nt(e)&&t.startsWith(ns(e,"query"));function nn(e,t,r){var n;let i=r.url||r.uri,s=e.config(),o=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(i.startsWith("/data/")||nr(e,i)||nt(e)&&i.startsWith(ns(e,"mutate"))||nt(e)&&i.startsWith(ns(e,"doc",""))||nt(e)&&i.startsWith(ns(e,"listen"))||nt(e)&&i.startsWith(ns(e,"history",""))):r.canUseCdn,a=(r.useCdn??s.useCdn)&&o,l=r.tag&&s.requestTagPrefix?[s.requestTagPrefix,r.tag].join("."):r.tag||s.requestTagPrefix;if(l&&null!==r.tag&&(r.query={tag:rp(l),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&nr(e,i)){let e=r.resultSourceMap??s.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||s.perspective;"u">typeof t&&("previewDrafts"===t&&rw(),rT(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&a&&(a=!1,rv())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),a&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let u=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),s=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof s>"u"?3e5:s,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(s,Object.assign({},r,{url:no(e,i,a)})),c=new e9(e=>t(u,s.requester).subscribe(e));return r.signal?c.pipe((n=r.signal,e=>new e9(t=>{let r=()=>t.error(function(e){if(na)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):c}function ni(e,t,r){return nn(e,t,r).pipe(tH(e=>"response"===e.type),tv(e=>e.body))}function ns(e,t,r){let n=e.config();if(n.resource){rf(n);let e=nl(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=rh(n),s=`/${t}/${i}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function no(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let na=!!globalThis.DOMException,nl=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":{let e=n.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function nu(e,t,r){let n=rh(e.config());return ni(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function nc(e,t,r){let n=rh(e.config());return ni(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function nd(e,t,r){let n=rh(e.config());return ni(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class nh{#a;#l;constructor(e,t){this.#a=e,this.#l=t}generate(e){return nu(this.#a,this.#l,e)}transform(e){return nc(this.#a,this.#l,e)}translate(e){return nd(this.#a,this.#l,e)}}class np{#a;#l;constructor(e,t){this.#a=e,this.#l=t}generate(e){return t$(nu(this.#a,this.#l,e))}transform(e){return t$(nc(this.#a,this.#l,e))}translate(e){return t$(nd(this.#a,this.#l,e))}prompt(e){var t,r;let n;return t$((t=this.#a,r=this.#l,n=rh(t.config()),ni(t,r,{method:"POST",uri:`/agent/action/prompt/${n}`,body:e})))}patch(e){var t,r;let n;return t$((t=this.#a,r=this.#l,n=rh(t.config()),ni(t,r,{method:"POST",uri:`/agent/action/patch/${n}`,body:e})))}}class nf{#a;#l;constructor(e,t){this.#a=e,this.#l=t}upload(e,t,r){return ng(this.#a,this.#l,e,t,r)}}class nm{#a;#l;constructor(e,t){this.#a=e,this.#l=t}upload(e,t,r){return t$(ng(this.#a,this.#l,e,t,r).pipe(tH(e=>"response"===e.type),tv(e=>e.body.document)))}}function ng(e,t,r,n,i={}){var s,o;if(-1===rs.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${rs.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let l=e.config(),u=(s=i,o=n,!(typeof File>"u")&&o instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:o.name,contentType:o.type},s):s),{tag:c,label:d,title:h,description:p,creditLine:f,filename:m,source:g}=u,y=l.resource?.type==="media-library",b=y?{title:h,filename:m}:{label:d,title:h,description:p,filename:m,meta:a,creditLine:f};return g&&!y&&(b.sourceId=g.id,b.sourceName=g.name,b.sourceUrl=g.url),nn(e,t,{tag:c,method:"POST",timeout:u.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",n=e.resource;if(n){let{type:e,id:t}=n;switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=rh(e);return`assets/${r}/${i}`}(l,r),headers:u.contentType?{"Content-Type":u.contentType}:{},query:b,body:n})}let ny=ta(()=>e.A(655120)).pipe(tv(({default:e})=>e),tT({connector:function(){return new tj(1,b,v)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1}));function nb(){return function(e){return e.pipe(tE((e,t)=>{var r;return e instanceof rE?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tR(1)(ty(e,tu(e)))}(tb({type:"reconnect"}),(void 0===r&&(r=tL),new e9(function(e){var t=1e3;t<0&&(t=0);var n=0;return r.schedule(function(){e.closed||(e.next(n++),e.complete())},t)})).pipe(tw(()=>t))):tM(()=>e)}
15))}}let nv=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],nw={includeResult:!0};function nx(e,t,r={}){let{url:n,token:i,withCredentials:s,requestTagPrefix:o,headers:a}=this.config(),l=r.tag&&o?[o,r.tag].join("."):r.tag,u={...Object.keys(nw).concat(Object.keys(r)).reduce((e,t)=>(e[t]=typeof r[t]>"u"?nw[t]:r[t],e),{}),tag:l},c=rV({query:e,params:t,options:{tag:l,...nv.reduce((e,t)=>(typeof u[t]>"u"||(e[t]=u[t]),e),{})}}),d=`${n}${ns(this,"listen",c)}`;if(d.length>14800)return tM(()=>Error("Query too large for listener"));let h=u.events?u.events:["mutation"],p={};return s&&(p.withCredentials=!0),(i||a)&&(p.headers={},i&&(p.headers.Authorization=`Bearer ${i}`),a&&Object.assign(p.headers,a)),rL(()=>(typeof EventSource>"u"||p.headers?ny:tb(EventSource)).pipe(tv(e=>new e(d,p))),h).pipe(nb(),tH(e=>h.includes(e.type)),tv(e=>({type:e.type,..."data"in e?e.data:{}})))}let n$="2021-03-25";class n_{#a;constructor(e){this.#a=e}events({includeDrafts:e=!1,tag:t,waitFor:r}={}){var n,i,s,o;let{projectId:a,apiVersion:l,token:u,withCredentials:c,requestTagPrefix:d,headers:h}=this.#a.config(),p=l.replace(/^v/,"");if("X"!==p&&p<n$)throw Error(`The live events API requires API version ${n$} or later. The current API version is ${p}. Please update your API version to use this feature.`);if(e&&!u&&!c)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let f=ns(this.#a,"live/events"),m=new URL(this.#a.getUrl(f,!1)),g=t&&d?[d,t].join("."):t;g&&m.searchParams.set("tag",g),e&&m.searchParams.set("includeDrafts","true"),r&&m.searchParams.set("waitFor",r);let y={};e&&c&&(y.withCredentials=!0),(e&&u||h)&&(y.headers={},e&&u&&(y.headers.Authorization=`Bearer ${u}`),h&&Object.assign(y.headers,h));let b=`${m.href}::${JSON.stringify(y)}`,v=nC.get(b);if(v)return v;let w=rL(()=>(typeof EventSource>"u"||y.headers?ny:tb(EventSource)).pipe(tv(e=>new e(m.href,y))),["message","restart","welcome","reconnect","goaway"]),x=(i=m,s={method:"OPTIONS",mode:"cors",credentials:y.withCredentials?"include":"omit",headers:y.headers},new e9(e=>{let t=new AbortController,r=t.signal;return fetch(i,{...s,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe(tE(()=>{throw new re({projectId:a})})),$=w.pipe(nb(),tw(e=>"reconnect"===e.type?x.pipe(tw(()=>tb(e))):tb(e)),tE(e=>x.pipe(tw(()=>{throw e}))),tv(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe(tD(()=>nC.delete(b)),(o="function"==typeof(n={predicate:e=>"welcome"===e.type})?{predicate:n,...void 0}:n,e=>{var t,r;let n,i=!1,{predicate:s,...a}=o;return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=tu(t),i=(e=1/0,"number"==typeof tl(t)?t.pop():e);return t.length?1===t.length?ts(t[0]):tR(i)(ty(t,n)):tF}(e.pipe((r=eO(t=e=>{o.predicate(e)&&(i=!0,n=e)})?{next:t,error:void 0,complete:void 0}:t)?td(function(e,t){null==(n=r.subscribe)||n.call(r);var n,i=!0;e.subscribe(th(t,function(e){var n;null==(n=r.next)||n.call(r,e),t.next(e)},function(){var e;i=!1,null==(e=r.complete)||e.call(r),t.complete()},function(e){var n;i=!1,null==(n=r.error)||n.call(r,e),t.error(e)},function(){var e,t;i&&(null==(e=r.unsubscribe)||e.call(r)),null==(t=r.finalize)||t.call(r)}))}):e5,tD(()=>{i=!1,n=void 0}),tT(a)),new e9(e=>{i&&e.next(n),e.complete()}))}));return nC.set(b,$),$}}let nC=new Map;class nI{#a;#l;constructor(e,t){this.#a=e,this.#l=t}create(e,t){return nT(this.#a,this.#l,"PUT",e,t)}edit(e,t){return nT(this.#a,this.#l,"PATCH",e,t)}delete(e){return nT(this.#a,this.#l,"DELETE",e)}list(){rm("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),ni(this.#a,this.#l,{uri:r,tag:null})}getEmbeddingsSettings(e){return rm("dataset",this.#a.config()),ra(e),ni(this.#a,this.#l,{uri:nj(this.#a,e),tag:null})}editEmbeddingsSettings(e,t){return rm("dataset",this.#a.config()),ra(e),ni(this.#a,this.#l,{method:"PUT",uri:nj(this.#a,e),body:t,tag:null})}}class nS{#a;#l;constructor(e,t){this.#a=e,this.#l=t}create(e,t){return rm("dataset",this.#a.config()),t$(nT(this.#a,this.#l,"PUT",e,t))}edit(e,t){return rm("dataset",this.#a.config()),t$(nT(this.#a,this.#l,"PATCH",e,t))}delete(e){return rm("dataset",this.#a.config()),t$(nT(this.#a,this.#l,"DELETE",e))}list(){rm("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),t$(ni(this.#a,this.#l,{uri:r,tag:null}))}getEmbeddingsSettings(e){return rm("dataset",this.#a.config()),ra(e),t$(ni(this.#a,this.#l,{uri:nj(this.#a,e),tag:null}))}editEmbeddingsSettings(e,t){return rm("dataset",this.#a.config()),ra(e),t$(ni(this.#a,this.#l,{method:"PUT",uri:nj(this.#a,e),body:t,tag:null}))}}function nj(e,t){let r=e.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function nT(e,t,r,n,i){return rm("dataset",e.config()),ra(n),ni(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class nk{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#a.config(),s=(i.resource||i["~experimental_resource"])?.id,{instanceId:o,library
15Id:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=nR.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),l=a||s;if(!l)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let u=(r=o,n=l,`/media-libraries/${n}/video/${r}/playback-info`),c=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.fit&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return ni(this.#a,this.#l,{method:"GET",uri:u,query:c})}}class nE{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getPlaybackInfo(e,t={}){return t$(new nk(this.#a.observable,this.#l).getPlaybackInfo(e,t))}}let nR=/^media-library:(ml[^:]+):([^:]+)$/;class nO{#a;#l;constructor(e,t){this.#a=e,this.#l=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),ni(this.#a,this.#l,{uri:"/projects",query:t})}getById(e){return ni(this.#a,this.#l,{uri:`/projects/${e}`})}}class nq{#a;#l;constructor(e,t){this.#a=e,this.#l=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),t$(ni(this.#a,this.#l,{uri:"/projects",query:t}))}getById(e){return t$(ni(this.#a,this.#l,{uri:`/projects/${e}`}))}}let nA=((e,t=21)=>{var r;let n,i;return r=t,i=-~(1.6*(n=(2<<Math.log(e.length-1)/Math.LN2)-1)*r/e.length),(t=r)=>{let s="";for(;;){let r=t0(i),o=0|i;for(;o--;)if((s+=e[r[o]&n]||"").length===t)return s}}})("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),nP=(e,t)=>t?tQ(e,t):tK(e);function nL(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=nP(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=tJ(n._id),i=tY(n._id);if(!r&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=tX(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return nP(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let nM=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=nA(),metadata:n={}}=e;return[r,n,t]}return[nA(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class nD{#a;#l;constructor(e,t){this.#a=e,this.#l=t}get({releaseId:e},t){return rK(this.#a,this.#l,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=nM(e,t),{releaseId:i,metadata:s}=r;return r8(this.#a,this.#l,r,n).pipe(tv(e=>({...e,releaseId:i,metadata:s})))}edit({releaseId:e,patch:t},r){return r8(this.#a,this.#l,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return r8(this.#a,this.#l,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return r8(this.#a,this.#l,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return r8(this.#a,this.#l,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return r8(this.#a,this.#l,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return r8(this.#a,this.#l,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return r8(this.#a,this.#l,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return rX(this.#a,this.#l,e,t)}}class nF{#a;#l;constructor(e,t){this.#a=e,this.#l=t}get({releaseId:e},t){return t$(rK(this.#a,this.#l,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=nM(e,t),{releaseId:i,metadata:s}=r;return{...await t$(r8(this.#a,this.#l,r,n)),releaseId:i,metadata:s}}edit({releaseId:e,patch:t},r){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return t$(r8(this.#a,this.#l,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return t$(rX(this.#a,this.#l,e,t))}}class nN{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getById(e){return ni(this.#a,this.#l,{uri:`/users/${e}`})}}class nU{#a;#l;constructor(e,t){this.#a=e,this.#l=t}getById(e){return t$(ni(this.#a,this.#l,{uri:`/users/${e}`}))}}class nz{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#u;#c;#l;listen=nx;constructor(e,t=rS){this.config(t),this.#c=e;const r=t._requestHandler;this.#l=r?(()=>{let n;return(i,s)=>(n||(n=new nW(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,s),n))})():e,this.assets=new nf(this,this.#l),this.datasets=new nI(this,this.#l),this.live=new n_(this),this.mediaLibrary={video:new nk(this,this.#l)},this.projects=new nO(this,this.#l),this.users=new nN(this,this.#l),this.agent={action:new nh(this,this.#l)},this.releases=new nD(this,this.#l)}clone(){return new nz(this.#c,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#u=rk(e,this.#u||{}),this}withConfig(e){let t=this.config();return new nz(this.#c,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return rY(this,this.#l,this.#u.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return rK(this,this.#l,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return rK(this,this.#l,e,r)}getDocuments(e,t){return rQ(this,this.#l,e,t)}create(e,t){return ne(this,this.#l,e,"create",t)}createIfNotExists(e,t){return rZ(this,this.#l,e,t)}createOrReplace(e,t){return r0(this,this.#l,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return r2(this,this.#l,t,n,r,i,s);let o=nL("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o}
15,l=t||tZ(e._id);return r1(this,this.#l,a,l,s)}delete(e,t){return r5(this,this.#l,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=nP(t,e);return r3(this,this.#l,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=nL("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return r9(this,this.#l,s,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=tQ(t,e);return r4(this,this.#l,n,t,r)}mutate(e,t){return r6(this,this.#l,e,t)}patch(e,t){return new rN(e,t,this)}transaction(e){return new rH(e,this)}action(e,t){return r8(this,this.#l,e,t)}request(e){return ni(this,this.#l,e)}getUrl(e,t){return no(this,e,t)}getDataUrl(e,t){return ns(this,e,t)}}class nW{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#u;#c;#l;listen=nx;constructor(e,t=rS){this.config(t),this.#c=e;const r=t._requestHandler;this.#l=r?(()=>{let n;return(i,s)=>(n||(n=new nW(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,s),n))})():e,this.assets=new nm(this,this.#l),this.datasets=new nS(this,this.#l),this.live=new n_(this),this.mediaLibrary={video:new nE(this,this.#l)},this.projects=new nq(this,this.#l),this.users=new nU(this,this.#l),this.agent={action:new np(this,this.#l)},this.releases=new nF(this,this.#l),this.observable=new nz(e,t)}clone(){return new nW(this.#c,this.config())}config(e){if(void 0===e)return{...this.#u};if(this.#u&&!1===this.#u.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#u=rk(e,this.#u||{}),this}withConfig(e){let t=this.config();return new nW(this.#c,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return t$(rY(this,this.#l,this.#u.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return t$(rK(this,this.#l,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return t$(rK(this,this.#l,e,r))}getDocuments(e,t){return t$(rQ(this,this.#l,e,t))}create(e,t){return t$(ne(this,this.#l,e,"create",t))}createIfNotExists(e,t){return t$(rZ(this,this.#l,e,t))}createOrReplace(e,t){return t$(r0(this,this.#l,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return tN(r2(this,this.#l,t,n,r,i,s));let o=nL("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},l=t||tZ(e._id);return tN(r1(this,this.#l,a,l,s))}delete(e,t){return t$(r5(this,this.#l,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=nP(t,e);return t$(r3(this,this.#l,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=nL("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return tN(r9(this,this.#l,s,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=tQ(t,e);return t$(r4(this,this.#l,n,t,r))}mutate(e,t){return t$(r6(this,this.#l,e,t))}patch(e,t){return new rU(e,t,this)}transaction(e){return new rB(e,this)}action(e,t){return t$(r8(this,this.#l,e,t))}request(e){return t$(ni(this,this.#l,e))}dataRequest(e,t,r){return t$(r7(this,this.#l,e,t,r))}getUrl(e,t){return no(this,e,t)}getDataUrl(e,t){return ns(this,e,t)}}let nB={requester:rr(w=[]),createClient:e=>{let t=rr(w,{ignoreWarnings:e.ignoreWarnings});return new nW((r,n)=>(n||t)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,lineage:e.lineage,...r}),e)}},nH=(nB.requester,nB.createClient);e.s(["createClient",0,nH],945736);var nV=e.i(580319),nG=e.i(215349);let nJ=e=>e&&"/"!==e[0]?"/"+e:e,nY=e=>e&&e.endsWith("/")?e.slice(0,-1):e,nK=class{modelName;name;content;description;title;index;enUrl;esUrl;htUrl;viUrl;canonicalUrl;structuredData;ogTitle;ogDescription;ogImage;constructor(e,t){const{fields:{name:r,index:n,structuredData:i}}=e;this.modelName="Metadata",this.name=r??"";const s="es"===t?e.fields.es??e.fields["en-US"]??"":e.fields["en-US"]??"";this.content=s,this.description=(0,nG.localeAccessor)(e,"description",t),this.title=(0,nG.localeAccessor)(e,"title",t),this.index=!!n;let o=nJ(e.fields["[en-US]url"]),a=nJ(e.fields["[es]url"]);if(this.enUrl=nY(o?`https://www.ineedana.com${o}`:"https://www.ineedana.com"),this.esUrl=nY(a?`https://www.ineedana.com/es${a}`:"https://www.ineedana.com/es"),e.fields["[ht]url"]){const t=nJ(e.fields["[ht]url"]);t&&(this.htUrl=nY(`https://www.ineedana.com/ht${t}`))}if(e.fields["[vi]url"]){const t=nJ(e.fields["[vi]url"]);t&&(this.viUrl=nY(`https://www.ineedana.com/vi${t}`))}return this.canonicalUrl=t===nV.default.Default?this.enUrl:this[`${t}Url`]||this.enUrl,e.fields.overrideOGMetadata&&(this.ogTitle=(0,nG.localeAccessor)(e,"ogTitle",t),this.ogDescription=(0,nG.localeAccessor)(e,"ogDescription",t),this.ogImage=e.fields.ogImage),this.structuredData=i,this}
15generateNextMetadata(){let e={title:this.title,description:this.description,robots:{index:this.index},openGraph:{title:this.ogTitle,description:this.ogDescription},alternates:{canonical:this.canonicalUrl,languages:{"en-US":this.enUrl,es:this.esUrl,...this.htUrl&&{ht:this.htUrl},...this.viUrl&&{vi:this.viUrl}}}};return this.ogImage&&(e.openGraph||(e.openGraph={}),e.openGraph.images=[{url:this.ogImage}]),e}};e.s(["Metadata",0,nK],875038)},777159,588447,e=>{"use strict";var t,r=((t={}).en="en",t.es="es",t.ht="ht",t.vi="vi",t);e.s(["ESanityLocale",()=>r],588447),e.s(["convertFromSanityLocale",0,e=>"en"===e?"en-US":e,"convertToSanityLocale",0,e=>e?.split("-")[0]||r.en],777159)},934459,646389,48789,e=>{"use strict";var t=e.i(843476),r=e.i(801547),n=e.i(657688),i=e.i(522016),s=e.i(618566),o=e.i(561403),a=e.i(997053),l=e.i(167225),u=e.i(945736),c=e.i(220250),d=e.i(875038);e.i(580319);var h=e.i(777159);e.s(["generateClinicStructuredData",()=>w,"generateStaticContentMetadata",()=>v,"generateWraparoundProviderStructuredData",()=>$],48789),e.i(908035);var p=e.i(439884),f=e.i(588447);let m=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],g=(e,t)=>e?("richText"===e._type||"localeBlock"===e._type)&&t===f.ESanityLocale.en?e.en:t!==f.ESanityLocale.en&&e?.hasOwnProperty(t)&&e?.[t]!==null?e?.[t]:e?.hasOwnProperty(f.ESanityLocale.en)?e?.[f.ESanityLocale.en]:e?.en:null,y=(e,t)=>{let n=[];if(!e)return[];for(let i of e.map(e=>g(e,t)))if(i)for(let e of i)"image"===e._type&&n.push({...e,dimensions:(0,r.getImageDimensions)(e.asset)});return n},b=e=>` 16 coalesce(cta.${e}.internalLink->metadata.url_path.${e}, 17 cta.${e}.internalLink->slug${(0,c.default)(e)}.current, 18 cta.${e}.internalLink->metadata.url_path.en, 19 cta.${e}.internalLink->slugEn.current, 20 cta.${e}.url, 21 cta.en.url)`;e.s(["convertToPortableText",0,g,"generateContentGROQ",0,e=>"en"!==e?` 22 "${e}": ${e}[] { 23 ..., 24 markDefs[] { 25 ..., 26 _type == "internalLink" => { 27 ..., 28 "blogSlugs": { 29 "en": @.reference->slugEn.current, 30 "es": @.reference->slugEs.current, 31 "ht": @.reference->slugHt.current, 32 "vi": @.reference->slugVi.current 33 }, 34 "pageSlugs": @.reference->metadata.url_path 35 }, 36 _type == "link" => { 37 ..., 38 "internalLink": { 39 "blogSlugs": { 40 "en": internalLink->slugEn.current, 41 "es": internalLink->slugEs.current, 42 "ht": internalLink->slugHt.current, 43 "vi": internalLink->slugVi.current 44 }, 45 "pageSlugs": internalLink->metadata.url_path 46 } 47 } 48 } 49 }, 50 "en": en[] { 51 ..., 52 markDefs[] { 53 ..., 54 _type == "internalLink" => { 55 ..., 56 "blogSlugs": { 57 "en": @.reference->slugEn.current, 58 "es": @.reference->slugEs.current, 59 "ht": @.reference->slugHt.current, 60 "vi": @.reference->slugVi.current 61 }, 62 "pageSlugs": @.reference->metadata.url_path 63 }, 64 _type == "link" => { 65 ..., 66 "internalLink": { 67 "blogSlugs": { 68 "en": internalLink->slugEn.current, 69 "es": internalLink->slugEs.current, 70 "ht": internalLink->slugHt.current, 71 "vi": internalLink->slugVi.current 72 }, 73 "pageSlugs": internalLink->metadata.url_path 74 } 75 } 76 } 77 }`:` 78 "en": en[] { 79 ..., 80 markDefs[] { 81 ..., 82 _type == "internalLink" => { 83 ..., 84 "blogSlugs": { 85 "en": @.reference->slugEn.current, 86 }, 87 "pageSlugs": { 88 "en": @.reference->metadata.url_path.en, 89 }, 90 }, 91 _type == "link" => { 92 ..., 93 "internalLink": { 94 "blogSlugs": { 95 "en": internalLink->slugEn.current, 96 }, 97 "pageSlugs": { 98 "en": internalLink->metadata.url_path.en, 99 }, 100 } 101 }, 102 }, 103 } 104 `,"getBestImageFromPortableText",0,(e,t)=>{let n=((e,t)=>{let r=y(e,t).filter(({dimensions:e})=>e.width>=200&&e.height>=200);if(r.length<=0)return null;let n=r.find(({dimensions:e})=>e.width>=1500&&e.height>=1500);return n||r[0]})(e.pageBuilder,t);if(!n)return null;let i={projectId:"lkoldra3",dataset:l.default.env.NEXT_PUBLIC_SANITY_DATASET??"production"},s=(0,r.getImageAsset)(n,i);return(0,r.buildImageUrl)(s,i)},"inlineBannerQuery",0,e=>` 105 _type=="inlineBannerRef"=>@->{ 106 _type, 107 "heading": coalesce(heading.${e}, heading.en), 108 "subheading": coalesce(subheading.${e}, subheading.en), 109 "layoutStyle": layoutStyle, 110 "theme": theme, 111 "cta": { 112 "label": coalesce(cta.${e}.label, cta.en.label), 113 "isInternal": cta.${e}.isInternal, 114 "url": ${b(e)} 115 } 116 } 117`,"searchEmbedQuery",0,e=>` 118 _type=="searchEmbedRef"=>@->{ 119 _type, 120 "anchorId": coalesce(anchorId.${e}, anchorId.en), 121 "heading": coalesce(header.${e}.heading, header.en.heading), 122 "subheading": coalesce(header.${e}.paragraphText, header.en.paragraphText), 123 dataTypes, 124 services, 125 locations, 126 displaySearchLocation, 127 maxNumberOfResults, 128 "cta": { 129 "label": coalesce(cta.${e}.label, cta.en.label), 130 "isInternal": cta.${e}.isInternal, 131 "url": ${b(e)}, 132 } 133 } 134`,"tableQuery",0,e=>` 135 _type=="tableRef"=>@->{ 136 ..., 137 rows[] { 138 cells[] { 139 "${e}": coalesce(${e}, en), 140 } 141 } 142 } 143`],646389);let v=(e,t)=>
143{let r={id:"none",fields:{name:"static-content-page",index:!0,"[en-US]title":`${e?.title[f.ESanityLocale.en]||"I Need an Abortion"} | ineedana.com`,"[es]title":`${e?.title[f.ESanityLocale.es]||e?.title[f.ESanityLocale.en]||"I Need an Abortion"} | ineedana.com`,"[en-US]description":`${e?.description[f.ESanityLocale.en]||""}`,"[es]description":`${e?.description[f.ESanityLocale.es]||e?.description[f.ESanityLocale.en]||""}`,"[en-US]url":`/${e?.urlPath?.[f.ESanityLocale.en]||""}`,"[es]url":`/${e?.urlPath?.[f.ESanityLocale.es]||""}`,overrideOGMetadata:e?.overrideOGMetadata,"[en-US]ogTitle":e?.ogMetadata?.title?.[f.ESanityLocale.en],"[es]ogTitle":e?.ogMetadata?.title?.[f.ESanityLocale.es]||e?.ogMetadata?.title?.[f.ESanityLocale.en],"[en-US]ogDescription":e?.ogMetadata?.description?.[f.ESanityLocale.en],"[es]ogDescription":e?.ogMetadata?.description?.[f.ESanityLocale.es]||e?.ogMetadata?.description?.[f.ESanityLocale.en],ogImage:e?.ogMetadata?.image??"https://ineedana.com/twitter-card.jpg"}};if(e?.overrideOGMetadata&&e?.ogMetadata.image){let t=_(!1),n=(0,p.default)(t);r.fields.ogImage=n.image(e.ogMetadata.image).url()}return new d.Metadata(r,(0,h.convertFromSanityLocale)(t))},w=(e,t)=>{let r={"@context":"https://schema.org","@type":"MedicalClinic",medicalSpecialty:["Obstetric","Gynecologic"],name:e.name,telephone:e.phone,sameAs:e.website,availableService:[]},{services:n}=e;return n.surgical&&r.availableService.push({"@context":"https://schema.org","@type":"MedicalProcedure",name:t("ld_json_service_surgical")}),n.medical&&r.availableService.push({"@context":"https://schema.org","@type":"MedicalProcedure",name:t("ld_json_service_medical")}),n.medicalByMail&&r.availableService.push({"@context":"https://schema.org","@type":"MedicalProcedure",name:t("ld_json_service_medical_by_mail")}),e.hours&&(r.openingHours=x(e)),!e.hideAddress&&(e.latitude&&(r.latitude=e.latitude),e.longitude&&(r.longitude=e.longitude),e.streetAddress&&(r.address={streetAddress:e.streetAddress,postalCode:e.zipcode,addressLocality:e.city,addressRegion:e.state,addressCountry:(e=>{if(e)return e.includes("Mexico")?"MX":e.includes("Canada")?"CA":"US"})(e.state)||"US"})),JSON.parse(JSON.stringify(r))},x=e=>{let{hours:t}=e;if(t)return Object.keys(t).reduce((e,r)=>{var n;let i;return m.includes(r)?[...e,`${r.substring(0,2)} ${(n=t[r],i=/(?<hours>\d+):(?<minutes>\d+)\s+(?<period>[ap]m)/i,n.split(/\s+[-–]\s+/).map(e=>{let t=i.exec(e);if(!t)return"";let r=[t.groups.hours,t.groups.minutes].map(e=>parseInt(e,10));return"pm"===t.groups.period.toLocaleLowerCase()&&(r[0]+=12),r.map(e=>(e+"").padStart(2,"0")).join(":")}).join("-"))}`]:e},[]).join(",")},$=(e,t)=>({"@context":"https://schema.org","@type":"MedicalClinic",medicalSpecialty:["Obstetric","Gynecologic"],name:e.name,telephone:e.phone,sameAs:e.website,availableService:{"@context":"https://schema.org","@type":"MedicalProcedure",name:t("ld_json_service_medical")}});function _(e){let t=(0,u.createClient)({projectId:"lkoldra3",dataset:l.default.env.NEXT_PUBLIC_SANITY_DATASET||"production",useCdn:!0,apiVersion:"2023-06-28",token:l.default.env.SANITY_SECRET_TOKEN,perspective:"published"});return e?t.withConfig({useCdn:!1,ignoreBrowserTokenWarning:!0,perspective:"previewDrafts"}):t}var C=e.i(302988);let I=a.default.div.withConfig({displayName:"SanityImage__ImageWrapper",componentId:"sc-22509b18-0"})` 144 margin: 0 auto; 145 display: flex; 146 flex-direction: column; 147 justify-content: center; 148 149 img { 150 width: 100%; 151 height: auto; 152 } 153`,S=a.default.figcaption.withConfig({displayName:"SanityImage__StyledCaption",componentId:"sc-22509b18-1"})` 154 font-size: 12px; 155 text-align: center; 156 margin-bottom: 8px; 157`,j=({href:e,children:r})=>e?e.startsWith("http")&&!e.startsWith("https://www.ineedana.com/")?(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:r}):(0,t.jsx)(i.default,{href:e,children:r}):(0,t.jsx)(t.Fragment,{children:r});e.s(["SanityImage",0,e=>{let i,{asset:a,altText:l,caption:u,href:c}=e,d=(0,s.useSearchParams)(),h=_(!!(d&&"true"===d.get("preview"))),p=(0,o.useNextSanityImage)(h,a);if(!a||!p)return null;try{i=(0,r.getImageDimensions)(a)}catch(e){return console.error("Failed to get image dimensions:",e),null}
157let f=e.Wrapper??"figure",m="100%";return e.customWidth?m=e.customWidth:"icon"===e.width?m="12%":"existing"===e.width&&(m=`${i.width}px`),(0,t.jsx)(f,{children:(0,t.jsxs)(I,{style:{maxWidth:m,minWidth:"70px"},children:[u&&(0,t.jsx)(S,{children:u}),(0,t.jsx)(j,{href:c,children:(0,t.jsx)(n.default,{...p,alt:l,sizes:`${C.bp.mdUnder} 100vw, ${m}`})})]})})}],934459)},236726,84196,404082,e=>{"use strict";var t=e.i(843476),r=e.i(908035),n=e.i(271645);let i={textDecoration:"underline"},s=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,o=e=>s(`block type "${e}"`,"types");function a(e){console.warn(e)}let l={display:"none"},u={types:{},block:{normal:({children:e})=>(0,t.jsx)("p",{children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,t.jsx)("h1",{children:e}),h2:({children:e})=>(0,t.jsx)("h2",{children:e}),h3:({children:e})=>(0,t.jsx)("h3",{children:e}),h4:({children:e})=>(0,t.jsx)("h4",{children:e}),h5:({children:e})=>(0,t.jsx)("h5",{children:e}),h6:({children:e})=>(0,t.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,t.jsx)("em",{children:e}),strong:({children:e})=>(0,t.jsx)("strong",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),underline:({children:e})=>(0,t.jsx)("span",{style:i,children:e}),"strike-through":({children:e})=>(0,t.jsx)("del",{children:e}),link:({children:e,value:r})=>(0,t.jsx)("a",{href:r?.href,children:e})},list:{number:({children:e})=>(0,t.jsx)("ol",{children:e}),bullet:({children:e})=>(0,t.jsx)("ul",{children:e})},listItem:({children:e})=>(0,t.jsx)("li",{children:e}),hardBreak:()=>(0,t.jsx)("br",{}),unknownType:({value:e,isInline:r})=>{let n=o(e._type);return(0,t.jsx)(r?"span":"div",{style:l,children:n})},unknownMark:({markType:e,children:r})=>(0,t.jsx)("span",{className:`unknown__pt__mark__${e}`,children:r}),unknownList:({children:e})=>(0,t.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,t.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,t.jsx)("p",{children:e})};function c(e,t,r){let n=t[r],i=e[r];return"function"==typeof n||n&&"function"==typeof i?n:n?{...i,...n}:i}function d(e){let{node:t,index:n,isInline:i,renderNode:s}=e,o=(0,r.buildMarksTree)(t).map((e,t)=>s({node:e,isInline:!0,index:t,renderNode:s}));return{_key:t._key||`block-${n}`,children:o,index:n,isInline:i,node:t}}function h(){}e.s(["PortableText",0,function({value:e,components:i,listNestingMode:l,onMissingComponent:p=a}){let f=p||h,m;m=Array.isArray(e)?e:null==e?[]:[e];let g=(0,r.nestLists)(m,l||r.LIST_NEST_MODE_HTML),y=(0,n.useMemo)(()=>i?function(e,t){let{block:r,list:n,listItem:i,marks:s,types:o,...a}=t;return{...e,block:c(e,t,"block"),list:c(e,t,"list"),listItem:c(e,t,"listItem"),marks:c(e,t,"marks"),types:c(e,t,"types"),...a}}(u,i):u,[i]),b=(0,n.useMemo)(()=>{var e,n;return e=y,n=f,function i(a){var l,u,c,h,p,f,m,g;let y,b,{node:v,index:w,isInline:x}=a,$=v._key||`node-${w}`;return(0,r.isPortableTextToolkitList)(v)?function(r,o,a){let l=r.children.map((e,t)=>i({node:e._key?e:{...e,_key:`li-${o}-${t}`},index:t,isInline:!1,renderNode:i})),u=e.list,c=("function"==typeof u?u:u[r.listItem])||e.unknownList;if(c===e.unknownList){let e=r.listItem||"bullet";n(s(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,t.jsx)(c,{value:r,index:o,isInline:!1,renderNode:i,children:l},a)}(v,w,$):(0,r.isPortableTextListItemBlock)(v)?function(r,o,a){let l=d({node:r,index:o,isInline:!1,renderNode:i}),u=e.listItem,c=("function"==typeof u?u:u[r.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=r.listItem||"bullet";n(s(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let h=l.children;if(r.style&&"normal"!==r.style){let{listItem:e,...t}=r;h=i({node:t,index:o,isInline:!1,renderNode:i})}return(0,t.jsx)(c,{value:r,index:o,isInline:!1,renderNode:i,children:h},a)}(v,w,$):(0,r.isPortableTextToolkitSpan)(v)?function(o,a){let{markDef:l,markType:u,markKey:c}=o,d=e.marks[u]||e.unknownMark,h=o.children.map((e,t)=>i({node:e,index:t,isInline:!0,renderNode:i}));return d===e.unknownMark&&n(s(`mark type "${u}"`,"marks"),{nodeType:"mark",type:u}),(0,t.jsx)(d,{text:(0,r.spanToPlainText)(o),value:l,markType:u,markKey:c,renderNode:i,children:h},a)}(v,$):v._type in e.types?(l=v,u=w,c=$,h=x,(y=e.types[l._type])?(0,t.jsx)(y,{value:l,isInline:h,index:u,renderNode:i},c):null):(0,r.isPortableTextBlock)(v)?function(r,o,a,l){let{_key:u,...c}=d({node:r,index:o,isInline:l,renderNode:i}),h=c.node.style||"normal",p=("function"==typeof e.block?e.block:e.block[h])||e.unknownBlockStyle;return p===e.unknownBlockStyle&&n(s(`block style "${h}"`,"block"),{nodeType:"blockStyle",type:h}),(0,t.jsx)(p,{...c,value:c.node,renderNode:i},a)}(v,w,$,x):(0,r.isPortableTextToolkitTextNode)(v)?function(r,n){if("\n"===r.text){let r=e.hardBreak;return r?(0,t.jsx)(r,{},n):"\n"}return r.text}(v,$):(p=v,f=w,m=$,g=x,n(o(p._type),{nodeType:"block",type:p._type}),b=e.unknownType,(0,t.jsx)(b,{value:p,isInline:g,index:f,renderNode:i},m))}},[y,f]);return(0,t.jsx)(t.Fragment,{children:g.map((e,t)=>
157b({node:e,index:t,isInline:!1,renderNode:b}))})}],236726);var p=e.i(782321);let f=e=>fetch(e).then(e=>e.json());e.s(["default",0,()=>{let{data:e,error:r}=(0,p.default)("/api/policy",f);if(r)return(0,t.jsx)("span",{children:"(There was an error retrieving this data)"});let n=e?.filter(e=>(e?.minors?.parentalConsent||e?.minors?.parentalNotification)&&!e?.banned);return(0,t.jsx)("span",{children:n&&n.length>0?n.length:(0,t.jsx)("span",{children:"    "})})}],84196);var m=e.i(997053),g=e.i(302988);let y=m.default.div.withConfig({displayName:"EmbedWrapper",componentId:"sc-8b2870ba-0"})` 158 margin: 1em 0; 159 display: grid; 160 justify-items: center; 161 162 // If it's YouTube, make it responsive and 16:9 163 ${({$wide:e,$isYouTube:t})=>e&&` 164 ${t?`max-width: 100%; 165 position: relative; 166 padding-bottom: 56.25%; 167 padding-top: 25px; 168 height: 0; 169 170 iframe { 171 position: absolute; 172 top: 0; 173 left: 0; 174 width: 100%; 175 height: 100%; 176 } 177 `:""} 178 179 overflow: hidden; 180 181 @media ${g.bp.lg} { 182 margin: 2rem -75px 3rem; 183 max-width: calc(100% + 150px); 184 } 185 186 @media ${g.bp.smUnder} { 187 margin: 1.5rem -1rem; 188 max-width: calc(100% + 2rem); 189 } 190 191 iframe { 192 max-width: 100%; 193 } 194 `} 195`;e.s(["default",0,y],404082)},199175,e=>{"use strict";e.i(843476);var t=e.i(997053),r=e.i(106889);let n=t.default.hr.withConfig({displayName:"HorizontalRule",componentId:"sc-bee25d17-0"})` 196 margin: ${e=>e.$margin||"24px 0"}; 197 border-width: ${e=>e.$borderWidth||"2px"}; 198 border-style: ${e=>e.$borderStyle||"dashed"}; 199 border-color: ${e=>e.$color||r.default.periwinkle}; 200 border-bottom: none; 201`;e.s(["default",0,n])},61395,e=>{"use strict";let t=["admin","clinic_affiliated","general"],r=class{static isUserAuthenticated(e){let r=e?.["https://ineedana.com/roles"]??[];return t.some(e=>r.includes(e))}};e.s(["default",0,r])},957169,e=>{"use strict";e.s(["default",0,{pinkToYellow:"linear-gradient(148.95deg, rgba(253, 230, 255, 0.49) 5.39%, rgba(253, 226, 208, 0.49) 54.13%, rgba(254, 241, 208, 0.49) 95.75%)",yellowToPurple:"linear-gradient(158.13deg, rgba(255, 226, 151, 0.24) 11.25%, rgba(151, 151, 255, 0.1824) 87.42%)",purpleToYellow:"linear-gradient(160.03deg, rgba(151, 151, 255, 0.24) 11.25%, rgba(255, 226, 151, 0.184) 87.42%)",purpleToYellowVertical:"linear-gradient(0deg, rgba(255, 255, 255, 0) -26.23%, #FCF7ED 31.67%, rgba(192, 193, 242, 0.78) 107.13%)",pinkToPurple:"linear-gradient(141.37deg, rgba(243, 125, 210, 0.15) 27.36%, rgba(116, 141, 241, 0.15) 69.09%)",whiteToTransparent:"linear-gradient(rgba(255,255,255,1),rgba(255,255,255,0))",transparentToPurple:"linear-gradient(rgba(116, 141, 241, 0) 0%, rgba(154, 172, 245, 1) 50%)",pinkToPurpleVertical:"linear-gradient(180deg, rgba(243, 125, 210, 0.1) 10%, rgba(116, 141, 241, 0.25) 69.09%)"}])},208484,(e,t,r)=>{var n=e.r(106966),i=e.r(591692),s=e.r(899850);t.exports=n&&1/s(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i},910339,(e,t,r)=>{var n=e.r(27493),i=e.r(146515),s=e.r(829584),o=e.r(315262),a=e.r(208484),l=e.r(899850);t.exports=function(e,t,r){var u=-1,c=i,d=e.length,h=!0,p=[],f=p;if(r)h=!1,c=s;else if(d>=200){var m=t?null:a(e);if(m)return l(m);h=!1,c=o,f=new n}else f=t?[]:p;e:for(;++u<d;){var g=e[u],y=t?t(g):g;if(g=r||0!==g?g:0,h&&y==y){for(var b=f.length;b--;)if(f[b]===y)continue e;t&&f.push(y),p.push(g)}else c(f,y,r)||(f!==p&&f.push(y),p.push(g))}return p}},909817,(e,t,r)=>{var n=e.r(910339);t.exports=function(e){return e&&e.length?n(e):[]}},393599,e=>{"use strict";var t=e.i(580319),r=e.i(409575),n=e.i(215349);let i=class{acn;analyticsProviderReferralType;appointmentForm;costPills;displayCost;currentStatus;visibility;status;temporarilyNotDoingAbortions;dateUpdated;deliveryTimeInDays;displayOnSite;displayClosedTeleproviderPage;facebook;hideAddress;hideWeeks;id;instagram;is501c3;legalStatus;medLmp;overallLmp;minimumAge;modelName;naf;name;pageUrlLink;phone;priceList;quickLinkToUpdate;serviceEarliest;teleServiceStates;twitter;url;urlSlug;website;restrictedContent;services;relatedListings;featured;costScore;inaaThumb;deliveryTimeScore;practicalityScore;spanishScore;logo;debug;constructor(e,i,s=!1){const{fields:{name:o,dateupdated:a,"current status":l,teleServiceStates:u,acn:c,naf:d,phone:h,appointmentform:p,pricelist:f,servicetranslation:m,servicemedicaid:g,serviceAcceptsFSA:y,serviceAcceptsInsurance:b,serviceAdvancedProvision:v,medLmp:w,serviceearliest:x,minimumAge:$,quickLinkToUpdate:_,"501c3?":C,hideAddress:I,urlSlug:S,hideWeeks:j,pageUrlLink:T,twitter:k,instagram:E,facebook:R,costPills:O,visibility:q,status:A,deliveryTimeInDays:P,inaaThumb:L,notesForSupport:M,legalStatus:D,featured:F,logoInfo:N},id:U}=e,z=(0,n.localeAccessor)(e,"displayName",i);this.id=U,this.name=z?.trim()||o.trim(),this.dateUpdated=a,this.currentStatus=l,this.website=(0,r.default)((0,n.localeAccessor)(e,"website",i)),this.teleServiceStates=u||[],this.legalStatus=D,this.acn=c,this.naf=d,this.phone=h,this.appointmentForm=(0,r.default)(p),this.priceList=(0,r.default)(f),this.medLmp=w,this.overallLmp=w,this.serviceEarliest=x,this.minimumAge=$,this.quickLinkToUpdate=_,this.is501c3=C,this.url=i===t.default.Spanish?`/es/telesalud/${S}`:`/telehealth/${S}`,s&&(this.url=`https://www.ineedana.com${this.url}`);const W=["temporary closure","closed due to weather","temporarily not doing ab"].some(e=>!!l?.includes(e));if(this.visibility=q??"HIDE",this.status=A??(W?"PAUSED":"OPEN"),this.temporarilyNotDoingAbortions="PAUSED"===this.status,this.displayOnSite="HIDE"!==this.visibility,this.displayClosedTeleproviderPage="CLOSED"===this.status,this.twitter=k,this.instagram=E,this.facebook=R,this.costPills=O,this.displayCost=(0,n.localeAccessor)(e,"displayCost",i),this.deliveryTimeInDays=P,this.services={additionalInfo:(0,n.localeAccessor)(e,"serviceAdditionalInfo",i),earliest:x,medLmp:w,overallLmp:w,translations:m,advancedProvision:v,medicaid:g,acceptsInsurance:b,acceptsFSA:y},s&&(this.services.translation=m?m.join(", "):null),this.relatedListings=(0,n.localeAccessor)(e,"relatedListings",i),N)try{this.logo=JSON.parse(N)}catch(e){}s?j&&(this.medLmp=void 0,this.services.medLmp=void 0,this.serviceEarliest=void 0,this.services.earliest=void 0):(this.modelName=n.EModelNames.Telehealth,this.analyticsProviderReferralType="legal"===D?"telehealth":"extralegal-telehealth",this.inaaThumb=L||0,this.urlSlug=S,this.pageUrlLink=T,this.hideAddress=I,this.hideWeeks=j,this.featured=!!F,this.deliveryTimeScore="number"==typeof P?10*P:210,this.spanishScore=i===t.default.Spanish&&m?.includes("Spanish")?-1e3:0,this.costScore=(0,n.getCostScore)(O),this.practicalityScore=this.costScore+this.inaaThumb+this.deliveryTimeScore+this.spanishScore,this.restrictedContent={notesForSupport:M},this.debug={costScore:this.costScore,thumbScore:this.inaaThumb,deliveryTimeScore:this.deliveryTimeScore,spanishScore:this.spanishScore,practicalityScore:this.practicalityScore,featured:this.featured})}};e.s(["UpdateForm",0,{name:"Provider name",website:"Website",teleServiceStates:"Teleservice states",acn:"Member of ACN?",naf:"Member of NAF?",phone:"Provider phone",appointmentForm:"Provider appointment form link (URL)",priceList:"Link to Pricelist (URL)",restrictedContent:{notesForSupport:"Additional information only visible to verified repro workers"},services:{additionalInfo:"Additional information about provider services",earliest:"How early (in gestational weeks) does provider offer abortions?",medLmp:"How late (in gestational weeks) does provider offer medical (abortion pills) abortions?",translations:"Does provider offer translation services?",advancedProvision:"Does provider offer advanced provision?",medicaid:"Does provider accept medicaid?",acceptsInsurance:"Does provider accept insurance?",acceptsFSA:"Does provider accept FSA?"},twitter:"Twitter (URL)",facebook:"Facebook (URL)",instagram:"Instagram (URL)"},"default",0,i])},895495,402208,e=>{"use strict";var t=e.i(811115),r=e.i(393599);e.s(["TelehealthProvider",()=>r.default],402208);var r=r;let n=class{static async getAllTelehealthProviders(e,n=!1,i=!1){return JSON.parse(JSON.stringify((await (0,t.fetchAllTelehealthData)(i)).map(t=>new r.default(t,e,n)))).filter(({visibility:e})=>"PUBLIC"===e||i&&"AUTH"===e)}static async getOpenTelehealthProviders(e,t=!1,r=!1){return(await this.getAllTelehealthProviders(e,t,r)).filter(({status:e})=>"OPEN"===e)}static async getTelehealthProvider(e,t,r=!1,n=!1){return(await this.getAllTelehealthProviders(t,r,n)).find(t=>t?.urlSlug===e)}static async getTelehealthProvidersBySlug(e,t,r=!1,n=!1){return JSON.parse(JSON.stringify((await this.getAllTelehealthProviders(t,r,n)).filter(t=>e.includes(t.urlSlug))))}static async getTelehealthProvidersByStates({states:e,locale:t,forExternalUse:r=!1,isAuthenticated:n=!1,maxRecords:i}){let s=(await this.getAllTelehealthProviders(t,r,n)).filter(({teleServiceStates:t})=>e.some(e=>t.includes(e))).filter(({status:e})=>"OPEN"===e);return i?s.slice(0,i):s}};e.s(["default",0,n],895495)},715694,121925,e=>{"use strict";var t=e.i(106889);let r={filled:{$backgroundColor:t.default.purpleMed,$color:t.default.white,$hoverBackgroun
201dColor:t.default.purpleDeep},filledWhite:{$backgroundColor:t.default.white,$color:t.default.navy,$hoverBackgroundColor:t.default.grayLight},outlined:{$backgroundColor:t.default.transparent,$color:t.default.navyMed,$hoverColor:t.default.purpleMed},outlinedWhite:{$backgroundColor:t.default.transparent,$color:t.default.white,$hoverColor:t.default.purplePastel}},n={light:{$backgroundColor:t.default.white,$color:t.default.navyMed},grayLight:{$backgroundColor:t.default.grayLight,$color:t.default.navyMed},dark:{$backgroundColor:t.default.navyMed,$color:t.default.white},transparent:{$backgroundColor:t.default.transparent,$color:t.default.navyMed},transparentWhite:{$backgroundColor:t.default.transparent,$color:t.default.white}};e.s(["buttonThemes",0,r,"themes",0,n],715694);var i=e.i(843476),s=e.i(948148),o=e.i(997053),a=e.i(161950),l=e.i(160889),u=e.i(302988);let c=e=>"filled"!==e&&"filledWhite"!==e,d=(0,o.default)(l.Link).withConfig({displayName:"SearchButton__StyledButton",componentId:"sc-6bb8e0fe-0"})` 202 display: flex; 203 align-items: center; 204 justify-content: center; 205 padding: 0.5rem 1rem; 206 transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, 207 border-color 0.2s ease-in-out; 208 font-size: ${({$textStyle:e})=>"default"===e?"1rem":"0.875rem"}; 209 font-weight: 700; 210 border-radius: 2rem; 211 text-decoration: none; 212 min-width: 150px; 213 width: ${({$width:e})=>"full"===e?"100%":e||"auto"}; 214 z-index: 1; 215 white-space: nowrap; 216 217 @media ${u.bp.sm} { 218 min-width: 0; 219 } 220 221 svg { 222 margin-left: 0.75rem; 223 } 224 225 ${({$buttonTheme:e})=>o.css` 226 background-color: ${r[e].$backgroundColor}; 227 color: ${r[e].$color}; 228 border: 1px solid 229 ${c(e)?r[e].$color:t.default.transparent}; 230 231 svg { 232 fill: ${r[e].$color}; 233 } 234 235 &:hover { 236 ${!!r[e].$hoverBackgroundColor&&o.css` 237 background-color: ${r[e].$hoverBackgroundColor}; 238 `}; 239 color: ${r[e].$hoverColor?r[e].$hoverColor:r[e].$color}; 240 ${c(e)&&!!r[e].$hoverColor&&o.css` 241 border-color: ${r[e].$hoverColor}; 242 `}; 243 244 svg { 245 ${!!r[e].$hoverColor&&o.css` 246 fill: ${r[e].$hoverColor}; 247 `}; 248 } 249 } 250 `} 251`;e.s(["default",0,({$buttonTheme:e="filled",$showIcon:t=!0,$textStyle:r="default",$width:n="auto",children:o,cta:l})=>{let u=(0,s.useTranslations)("labels.search_banner.inline");return(0,i.jsxs)(d,{href:l?.href||"/search",$buttonTheme:e,$width:n,$textStyle:r,children:[o||l?.label||u("cta"),t&&(0,i.jsx)(a.default,{color:"currentColor",name:"search",width:14,height:14,noPadding:!0})]})}],121925)},568057,e=>{"use strict";var t=e.i(843476),r=e.i(948148),n=e.i(997053),i=e.i(161950),s=e.i(407790),o=e.i(106889),a=e.i(302988),l=e.i(715694),u=e.i(121925);let c=n.default.aside.withConfig({displayName:"InlineSearchBanner__BannerWrapper",componentId:"sc-d65bd41-0"})` 252 background-color: ${e=>l.themes[e.$theme]?.$backgroundColor||o.default.white}; 253 color: ${e=>l.themes[e.$theme]?.$color||o.default.navyMed}; 254 border-radius: ${({$borderRadius:e})=>e??"6px"}; 255 padding: ${({$padding:e,$isInHeader:t})=>e??(t?"1rem 1.5rem":"1.5rem")}; 256 max-width: ${({$maxWidth:e})=>e??"750px"}; 257 ${e=>e.$margin&&n.css` 258 margin: ${e.$margin}; 259 `} 260 261 ${e=>e.$hideImage?n.css` 262 display: flex; 263 flex-direction: column; 264 align-items: flex-start; 265 width: 100%; 266 padding-left: 0; 267 padding-right: 0; 268 gap: 1.5rem; 269 270 @media ${a.bp.md} { 271 flex-direction: row; 272 justify-content: space-between; 273 gap: 2rem; 274 } 275 `:n.css` 276 display: grid; 277 grid-template-columns: repeat(4, 1fr); 278 grid-template-rows: auto auto; 279 grid-row-gap: 1rem; 280 grid-column-gap: 1.2rem; 281 align-items: start; 282 283 @media ${a.bp.sm} { 284 grid-template-columns: 1fr 8fr auto; 285 grid-template-rows: 1fr; 286 grid-row-gap: 0; 287 align-items: center; 288 } 289 290 @media ${a.bp.md} { 291 grid-template-columns: auto 6fr auto; 292 } 293 `} 294`,d=n.default.div.withConfig({displayName:"InlineSearchBanner__TextWrapper",componentId:"sc-d65bd41-1"})` 295 grid-column: span 3 / span 3; 296 297 @media ${a.bp.sm} { 298 grid-column: auto; 299 } 300`,h=n.default.div.withConfig({displayName:"InlineSearchBanner__SearchButtonWrapper",componentId:"sc-d65bd41-2"})` 301 grid-column: span 4 / span 4; 302 grid-row-start: 2; 303 justify-items: center; 304 305 @media ${a.bp.sm} { 306 grid-column: auto; 307 grid-row-start: auto; 308 justify-items: end; 309 } 310`,p=(0,n.default)(s.Text).withConfig({displayName:"InlineSearchBanner__Heading",componentId:"sc-d65bd41-3"})` 311 font-size: ${e=>{switch(e.$textStyle){case"xs":return"0.875rem";case"sm":return"1rem";default:return"1.125rem"}}}; 312 font-weight: 700; 313 margin: 0; 314 color: inherit; 315 line-height: 1.3; 316 317 @media ${a.bp.md} { 318 font-size: ${e=>{switch(e.$textStyle){case"xs":case"sm":return"1rem";default:return"1.125rem"}}}; 319 } 320`,f=(0,n.default)(s.Text).withConfig({displayName:"InlineSearchBanner__Subheading",componentId:"sc-d65bd41-4"})` 321 font-size: ${e=>{switch(e.$textStyle){case"xs":case"sm":return"0.9rem";default:return"1rem"}}}; 322 margin: 0.25rem 0 0; 323 color: inherit; 324 325 @media ${a.bp.md} { 326 font-size: ${e=>{switch(e.$textStyle){case"xs":case"sm":return"0.9rem";default:return"1rem"}}}; 327 } 328`,m=n.default.div.withConfig({displayName:"InlineSearchBanner__IconWrapper",componentId:"sc-d65bd41-5"})` 329 span { 330 max-height: fit-content; 331 } 332 svg { 333 display: flex; 334 align-items: flex-start; 335 justify-content: flex-start; 336 min-width: 80%; 337 height: auto; 338 339 @media ${a.bp.md} { 340 width: 58px; 341 height: 60px; 342 max-height: fit-content; 343 } 344 345 @media ${a.bp.lg} { 346 ${e=>!e.$isInHeader&&n.css` 347 width: 78px; 348 height: 80px; 349 `} 350 } 351 } 352`;e.s(["default",0,({$theme:e="light",$buttonTheme:n="filled",$isInHeader:s=!1,$hideImage:o=!1,$textStyle:a="default",$margin:l,$padding:g,$maxWidth:y,$borderRadius:b,heading:v,subheading:w,cta:x})=>{let $=(0,r.useTranslations)("labels.search_banner"),_=s?"sm":a;return(0,t.jsxs)(c,{$theme:e,$isInHeader:s,$hideImage:o,$margin:l,$padding:g,$maxWidth:y,$borderRadius:b,children:[!
352o&&(0,t.jsx)(m,{$isInHeader:s,children:(0,t.jsx)(i.default,{name:"magnifyingGlass",width:48,height:50,noPadding:!0,display:"block"})}),(0,t.jsxs)(d,{children:[(0,t.jsx)(p,{tag:"h3",customHtmlTag:"strong",$textStyle:_,children:v||$("heading")}),(0,t.jsx)(f,{$textStyle:_,children:w||$("subheading")})]}),(0,t.jsx)(h,{children:(0,t.jsx)(u.default,{$buttonTheme:n,$showIcon:!s,$width:s?"auto":"full",$textStyle:a,cta:x,children:$("cta")})})]})}])},745286,448127,e=>{"use strict";e.s(["default",()=>eY,"generateBlogUri",()=>eH,"generatePageUri",()=>eV],745286);var t,r=e.i(843476),n=e.i(236726),i=e.i(271645),s=e.i(997053),o=e.i(84196),a=e.i(404082),l=e.i(199175),u=e.i(302988),c=e.i(580319),d=e.i(705026);let h=s.default.iframe.withConfig({displayName:"IframeWrapper__StyledIframe",componentId:"sc-d9fffe2a-0"})` 353 width: calc(100% + 2rem); 354 margin: 2rem -1rem 1rem; 355 border-radius: 1rem; 356 border: none; 357 358 @media ${u.bp.lg} { 359 width: calc(100% + 20rem); 360 margin-left: -10rem; 361 margin-right: -10rem; 362 } 363`,p=({id:e,src:t,title:n})=>{let s=(0,d.default)(),o=(0,i.useRef)(null),[a,l]=(0,i.useState)(1400),u=(0,i.useCallback)(e=>{"number"!=typeof e.data?.frameHeight||l(e.data.frameHeight+40)},[l]),p=()=>{window.addEventListener("message",u,!1)};return(0,i.useEffect)(()=>{p()},[o]),(0,r.jsx)(h,{id:e,ref:o,onLoad:p,src:s===c.default.Default?t:`/${s}${t}`,width:"100%",height:`${a}px`,title:n,scrolling:"no"})};var f=e.i(602080),m=e.i(934459);e.i(797730);var g=e.i(661602),y=e.i(94241),b=e.i(48933),v=e.i(770703),w=e.i(948148),x=e.i(161950),$=e.i(385858),_=e.i(430269),C=e.i(407790),I=e.i(61395),S=e.i(106889),j=e.i(957169),T=e.i(831195),k=e.i(521991),E=e.i(611654);let R=s.default.li.withConfig({displayName:"ListItem__Wrapper",componentId:"sc-cb6319c-0"})` 364 display: grid; 365 grid-template-columns: 1fr 4fr; 366 gap: 1rem; 367 width: 100%; 368 box-shadow: 0px 4px 4px 0px #00000040; 369 width: 100%; 370 border-radius: 6px; 371 padding: 0.25rem 1rem 1.25rem 0.5rem; 372 background-color: ${S.default.white}; 373 374 @media ${u.bp.lg} { 375 grid-template-columns: 1fr 8fr 3fr; 376 gap: 2rem; 377 padding: 0.5rem 2rem 1.5rem 1rem; 378 } 379`,O=s.default.div.withConfig({displayName:"ListItem__IconWrapper",componentId:"sc-cb6319c-1"})` 380 display: flex; 381 align-items: center; 382 justify-content: center; 383 flex-direction: column; 384 grid-area: 1 / 1 / 2 / 2; 385 position: relative; 386 387 svg { 388 width: 3rem; 389 height: 3rem; 390 391 @media ${u.bp.md} { 392 width: 4rem; 393 height: 4rem; 394 } 395 } 396`,q=s.default.div.withConfig({displayName:"ListItem__MainContent",componentId:"sc-cb6319c-2"})` 397 display: flex; 398 flex-direction: column; 399 align-items: flex-start; 400 grid-area: 1 / 2 / 2 / 3; 401`,A=s.default.div.withConfig({displayName:"ListItem__CtaWrapper",componentId:"sc-cb6319c-3"})` 402 display: flex; 403 align-items: center; 404 grid-area: 2 / 2 / 3 / 3; 405 text-align: right; 406 margin-top: 1rem; 407 408 @media ${u.bp.lg} { 409 grid-area: 1; 410 margin-top: 0; 411 justify-content: flex-end; 412 } 413`,P=s.default.ul.withConfig({displayName:"ListItem__TagWrapper",componentId:"sc-cb6319c-4"})` 414 display: flex; 415 flex-wrap: wrap; 416 gap: 6px; 417`,L=(0,s.default)(C.Text).withConfig({displayName:"ListItem__Distance",componentId:"sc-cb6319c-5"})` 418 color: ${S.default.grayLight}; 419 margin-left: 0.25rem; 420 padding-bottom: 4px; 421`;var M=((t={}).Clinic="clinic",t.Wraparound="wraparound",t.Telehealth="telehealth",t);let D=({providerType:e,heading:t,tags:n,geoState:s})=>{let o=(0,w.useTranslations)("labels"),a="telehealth"!==e?n:(0,T.default)(n,e=>+(e!==s)),[l,u]=(0,i.useState)(!1);return(0,r.jsxs)(P,{children:["clinic"===e&&(0,r.jsx)("li",{children:(0,r.jsx)(k.Chip,{$backgroundColor:S.default.purpleMed,$color:S.default.white,children:o("search_embed_list_item_tag_provides_abortions")})},`${(0,E.default)(t)}-tag-provides-abortions`),"wraparound"===e&&(0,r.jsx)("li",{children:(0,r.jsx)(k.Chip,{$backgroundColor:S.default.pink,$color:S.default.purpleDark,children:o("search_embed_list_item_tag_no_abortions")})},`${(0,E.default)(t)}-tag-no-abortion-care`),"telehealth"===e&&(0,r.jsx)("li",{children:(0,r.jsx)(k.Chip,{$backgroundColor:S.default.orangeLightest,$color:S.default.navy,children:o("telehealth_servicesmedicalbymail")})},`${(0,E.default)(t)}-online`),a?.map((e,n)=>1!==n||l?n<1||l?(0,r.jsx)("li",{children:(0,r.jsx)(k.Chip,{$backgroundColor:S.default.grayLight,$color:S.default.purpleDark,children:e})},`${(0,E.default)(t)}-tag-${n}`):void 0:(0,r.jsx)("li",{children:(0,r.jsxs)(k.Chip,{as:"button",style:{border:0,cursor:"pointer"},$backgroundColor:S.default.grayLight,$color:S.default.purpleDark,onClick:()=>u(!0),children:["+",a.length-1]})},`${(0,E.default)(t)}-tag-see-more`))]})},F=({heading:e,subheading:t,providerType:n,tags:i,url:s,distance:o,geoState:a})=>{let l=(0,w.useTranslations)("labels"),u=o?5*Math.floor(o/5):void 0;return(0,r.jsxs)(R,{children:[(0,r.jsx)(O,{children:(0,r.jsx)(x.default,{name:{clinic:"medicalCrossCircle",wraparound:"handsAcrossHeart",telehealth:"mailCir
421cle"}[n]})}),(0,r.jsxs)(q,{children:[(0,r.jsx)(C.Text,{tag:"h3",margin:"1rem 0 0.25rem",children:e}),(0,r.jsxs)(C.Text,{children:[t," ",void 0!==u&&(0,r.jsx)(L,{tag:"small",color:S.default.grayDark,size:"0.75rem",fontWeight:600,children:u?`~${u} ${l("clinic_miles_away")}`:l("search_embed_list_item_near_you")})]}),(0,r.jsx)(D,{providerType:n,heading:e,tags:i,geoState:a})]}),(0,r.jsx)(A,{children:!!s&&(0,r.jsx)(_.ButtonLink,{href:s,$styleType:"tertiary",$fontSize:"16px",$fontSizeLg:"20px",target:"_blank",rel:"noopener",children:l("search_embed_list_item_view_provider")})})]})};var N=e.i(210279),U=e.i(909817),z=e.i(671563),W=e.i(895495),B=e.i(678719),H=e.i(231637);let V=(e,t,r)=>r?.length||t?.length?!r?.length&&t?.length?(0,U.default)(t?.filter(t=>!!t.labelKey&&e(`${t.labelKey}`))?.map(t=>e(`${t.labelKey}`)))?.sort():(0,U.default)((0,T.default)(t,e=>e?.labelKey?+!r?.includes(e.fullName):1)?.filter(t=>!!t.labelKey&&e(`${t.labelKey}`))?.map(t=>e(`${t.labelKey}`))):[],G=async({locale:e,t,isCombinedWithWraparound:r,services:n,isAuthenticated:i=!1})=>(({clinics:e,t,isCombinedWithWraparound:r,services:n})=>e.filter(e=>!!e?.name&&(!!(r&&e?.servicesCombined?.includes("surgical"))||!n?.length||e?.servicesCombined?.some(e=>n.includes(e)))).map(e=>{let r=e.state?[e.state]:[];return{providerType:M.Clinic,heading:e.name,subheading:e.formattedCityState,tags:V(t,e.servicesFormatted,n),url:e.url,coordinates:{lat:e.latitude,lng:e.longitude},geoState:e.state,operatingStates:r}}))({clinics:await z.default.getAllClinics(e,i),t,isCombinedWithWraparound:r,services:n}),J=async({locale:e,t,services:r,isAuthenticated:n})=>{let i=await B.default.getAllWraparoundProviders({locale:e,isAuthenticated:n});return i?.length?(({wraparoundProviders:e,t,services:r})=>e.filter(e=>!!e?.name&&(!r?.length||e?.servicesCombined?.some(e=>r.includes(e)))).map(e=>{let n=e.state?[e.state]:[];return{providerType:M.Wraparound,heading:e.name,subheading:e.cityStateText,tags:V(t,e.servicesFormatted,r),url:e.url,coordinates:{lat:e.lat,lng:e.lng},operatingStates:n}}))({wraparoundProviders:i,t,services:r}):[]},Y=async({locale:e,t,state:r})=>(({telehealthProviders:e,state:t,t:r})=>{let n=Object.fromEntries(Object.entries(H.States).map(([e,t])=>[t,e]));return e.filter(e=>!t||e.teleServiceStates.includes(t)).map(e=>({providerType:M.Telehealth,heading:e.name,subheading:r("clinic_telehealth"),tags:e?.teleServiceStates,url:e.url,operatingStates:e.teleServiceStates.map(e=>n[e])}))})({telehealthProviders:await W.default.getAllTelehealthProviders(e),t,state:r}),K=(0,v.default)(()=>e.A(350016),{loadableGenerated:{modules:[548623]},ssr:!0}),Q=s.default.div.withConfig({displayName:"SearchEmbed__SearchEmbedWrapper",componentId:"sc-5de98038-0"})` 422 display: flex; 423 flex-direction: column; 424 align-items: center; 425 width: 100%; 426 padding: 1rem 2rem 0; 427 max-width: 900px; 428 background: ${j.default.pinkToPurpleVertical}; 429 border-radius: 12px; 430 position: relative; 431 432 &:after { 433 content: ''; 434 width: 100%; 435 height: 12rem; 436 background: ${j.default.transparentToPurple}; 437 position: absolute; 438 bottom: 0; 439 left: 0; 440 right: 0; 441 z-index: 1; 442 border-radius: 0 0 12px 12px; 443 } 444`,X=s.default.ul.withConfig({displayName:"SearchEmbed__ListWrapper",componentId:"sc-5de98038-1"})` 445 display: flex; 446 flex-direction: column; 447 align-items: center; 448 gap: 1rem; 449 height: 40rem; 450 overflow: scroll; 451 border-radius: 4px; 452 padding-bottom: 5rem; 453 454 @media ${u.bp.md} { 455 height: 34rem; 456 } 457`,Z=s.default.div.withConfig({displayName:"SearchEmbed__CtaWrapper",componentId:"sc-5de98038-2"})` 458 display: flex; 459 justify-content: center; 460 padding: 0 2rem 2rem; 461 z-index: 2; 462`,ee=s.default.div.withConfig({displayName:"SearchEmbed__SpinnerWrapper",componentId:"sc-5de98038-3"})` 463 display: flex; 464 justify-content: center; 465 align-items: center; 466 height: 100%; 467 width: 100%; 468 z-index: 100; 469 position: absolute; 470 top: 0; 471 left: 0; 472 bottom: 0; 473 right: 0; 474`,et=s.default.div.withConfig({displayName:"SearchEmbed__Heading",componentId:"sc-5de98038-4"})` 475 margin: 0 auto 1.5rem; 476 padding: 0 1rem; 477 max-width: 600px; 478`,er=s.default.div.withConfig({displayName:"SearchEmbed__AutocompleteWrapper",componentId:"sc-5de98038-5"})` 479 padding: 0 1rem 0.25rem; 480 width: 100%; 481 border-radius: 4px; 482 max-width: 600px; 483 484 label { 485 margin-bottom: 0.1rem; 486 font-weight: 700; 487 } 488 489 input { 490 border-width: 4px; 491 border-color: ${S.default.purpleMed}; 492 transition: border-color 0.15s ease-in-out; 493 height: 3.5rem; 494 font-size: 1.15rem; 495 496 &:focus { 497 border-color: ${S.default.purpleDeep}; 498 } 499 } 500`,en=({loading:e})=>{let t=(0,w.useTranslations)("labels");return(0,r.jsx)(ee,{children:e?(0,r.jsx)($.default,{loading:!0}):(0,r.jsx)(C.Text,{children:t("search_embed_no_results_message")})})},ei=({heading:e,subheading:t,cta:n,dataTypes:s,services:o,locations:a,displaySearchLocation:l,maxNumberOfResults:u})=>{let c=(0,d.default)(),h=(0,w.useTranslations)("labels"),[p,f]=(0,i.useState)(!0),[m,v]=(0,i.useState)(null),[$,S]=(0,i.useState)(!1),[j,T]=(0,i.useState)(void 0),[k,E]=(0,i.useState)({}),R=o?.map(e=>e.toLowerCase()),{user:O,isLoading:q}=(0,g.useUser)(),A=I.default.isUserAuthenticated(O);(0,i.useEffect)(()=>{let e=async()=>{f(!0);let e=Object.assign({},...await Promise.all(s.map(async e=>{switch(e){case M.Wraparound:return{wraparound:await J({locale:c,t:h,services:R,isAuthenticated:A})};case M.Clinic:return{clinic:await G({locale:c,t:h,services:R,isCombinedWithWraparound:s?.includes(M.Wraparound),isAuthenticated:A})};case M.Telehealth:return{telehealth:await Y({locale:c,t:h,state:j})}}})));a?E(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.filter(e=>a.some(t=>e.operatingStates.includes(t)))]))):E(e),f(!1)};k.length||q||e()},[j,h,q,a]);let P=(0,i.useMemo)(()=>{let e=[...k?.wraparound||[],...k?.clinic||[],...k?.telehealth||[]];return(0,b.default)(e)},[k?.clinic?.length,k?.wraparound?.length,k?.telehealth?.length]),L=(0,i.useMemo)(()=>
500{if(!m||s?.length===1&&s[0]===M.Telehealth)return P;let e=P.map(e=>((e,t)=>{if(!e?.coordinates)return e;let r=((e,t)=>{let r=e?.coordinates;if(!r)return;let{lat:n,lng:i}=r;if(!n||!i||!t.lat||!t.lng)return;let s=(0,N.getDistance)({lat:n,lng:i},{latitude:t.lat,longitude:t.lng});if(s)return Number((0,N.convertDistance)(s,"mi").toFixed(1))})(e,t);return{...e,distance:r}})(e,m)).filter(e=>(0,y.default)(e.distance)).sort((e,t)=>Number(e.distance)<Number(t.distance)?-1:+(Number(e.distance)>Number(t.distance)));if(!s?.includes(M.Telehealth))return e;let t=P.filter(e=>e.providerType===M.Telehealth);return t?.length?e.filter(e=>e.providerType===M.Clinic||e.providerType===M.Wraparound).reduce((e,r,n)=>(0===n&&e.push(r),(n-1)%2==0&&t?.length&&t[0]&&e.push(t.shift()),0!==n&&e.push(r),e),[]):e},[m,P]);return(0,r.jsxs)(Q,{className:"searchEmbedWrapper",children:[(0,r.jsx)(x.default,{name:"magnifyingGlass",width:"5rem",style:{marginTop:"-3rem"}}),(0,r.jsxs)(et,{children:[(0,r.jsx)(C.Text,{tag:"h2",textAlign:"center",margin:"2rem auto 1rem",children:e}),!!t&&t]}),!1!==l&&(0,r.jsx)(er,{children:(0,r.jsx)(K,{setLatlng:v,setShouldShowError:S,errorMessage:$?h("location_error_text"):void 0,setGeoState:T,inputOptions:{customLabel:h("search_embed_form_location_label"),placeholder:h("search_embed_form_location_placeholder")}})}),(0,r.jsx)(X,{children:L?.length&&!p?L.slice(0,u||6).map(e=>(0,r.jsx)(F,{geoState:j,...e},`${e.heading}-list-item`)):(0,r.jsx)(en,{loading:p})}),(0,r.jsx)(Z,{children:(0,r.jsx)(_.ButtonLink,{href:n?.url||"/advanced-search",$styleType:"primary",$maxWidth:"none",target:"_blank",rel:"noopener",children:n?.label||h("search_embed_cta_label_fallback")})})]})},es=s.default.div.withConfig({displayName:"SanitySearchEmbed__Wrapper",componentId:"sc-377fef1b-0"})` 501 display: flex; 502 justify-content: center; 503 .searchEmbedWrapper { 504 width: calc(100% + 2em); 505 margin: 2rem -1rem; 506 507 @media ${u.bp.md} { 508 width: calc(100% + 2em); 509 margin: 1rem -2rem 2rem; 510 } 511 512 @media ${u.bp.lg} { 513 width: calc(140%); 514 margin: 2rem -20%; 515 } 516 } 517`,eo=({data:e})=>{if(!e)return null;let t=e?.cta?.url&&e?.cta?.url?{label:e?.cta?.label,url:e?.cta?.isInternal?`/${e?.cta?.url}`:e?.cta?.url}:void 0,i=e?.anchorId||(0,E.default)(e?.heading);return(0,r.jsx)(es,{id:i,children:(0,r.jsx)(ei,{heading:e?.heading,subheading:e.subheading?(0,r.jsx)(n.PortableText,{value:e.subheading,components:eY}):void 0,dataTypes:e.dataTypes,services:e.services,locations:e.locations,displaySearchLocation:e.displaySearchLocation,maxNumberOfResults:e.maxNumberOfResults,cta:t})})};var ea=e.i(777159),el=e.i(654565);let eu=s.default.div.withConfig({displayName:"StackedColumn__Wrapper",componentId:"sc-d1a29235-0"})` 518 display: flex; 519 flex-direction: column; 520 gap: 1rem; 521`,ec=s.default.div.withConfig({displayName:"StackedColumn__Card",componentId:"sc-d1a29235-1"})` 522 display: flex; 523 flex-direction: column; 524 background-color: ${S.default.grayLight}; 525 border: 1px solid ${S.default.grayLight}; 526 border-radius: 8px; 527 overflow: hidden; 528 min-width: 100%; 529`,ed=s.default.div.withConfig({displayName:"StackedColumn__Title",componentId:"sc-d1a29235-2"})` 530 font-weight: bold; 531 margin-bottom: 1rem; 532 background-color: ${S.default.purpleDark}; 533 color: ${S.default.white}; 534 padding: 1rem; 535`,eh=s.default.div.withConfig({displayName:"StackedColumn__Content",componentId:"sc-d1a29235-3"})` 536 padding: 0 1rem 1rem; 537 display: flex; 538 flex-direction: column; 539 540 p { 541 font-size: 1rem !important; // Need to override inline styles 542 } 543`,ep=s.default.span.withConfig({displayName:"StackedColumn__CellHeading",componentId:"sc-d1a29235-4"})` 544 font-weight: 900; 545 margin-bottom: 0.25rem; 546 display: inline-block; 547`,ef=s.default.div.withConfig({displayName:"StackedColumn__Item",componentId:"sc-d1a29235-5"})` 548 margin-bottom: 1rem; 549 550 ${({$isLast:e})=>e?"":`border-bottom: 1px solid ${S.default.grayMed}; 551 padding-bottom: 1rem;`} 552`,em=({rows:e,numColumns:t,sanityLocale:i})=>(0,r.jsx)(eu,{children:[...Array(t).keys()].map((t,s)=>0===s?null:(0,r.jsxs)(ec,{children:[(0,r.jsx)(ed,{children:(0,r.jsx)(n.PortableText,{value:e[0]?.cells[s]?.[i],components:eY})}),(0,r.jsx)(eh,{children:e.map((t,o)=>{if(0!=o&&0!==s)return(0,r.jsxs)(ef,{$isLast:o===e?.length-1,children:[(0,r.jsx)(ep,{children:(0,r.jsx)(n.PortableText,{value:t.cells[0][i],components:eY})}),(0,r.jsx)(n.PortableText,{value:t.cells[s][i],components:eY})]},`row-item-${s}-${o}`)})})]},`colTitle-${s}`))}),eg=({rows:e,sanityLocale:t="en"})=>(0,r.jsx)(eu,{children:e?.map((i,s)=>0===s?null:(0,r.jsxs)(ec,{children:[(0,r.jsx)(ed,{children:(0,r.jsx)(n.PortableText,{value:i?.cells[0]?.[t],components:eY})}),(0,r.jsx)(eh,{children:i.cells.map((o,a)=>{let l=e[0].cells[0]?.[t]?.children,u=!l?.[0]?.text?.trim()&&2>(l?.length||0);return 0===a&&u?null:(0,r.jsxs)(ef,{$isLast:a===i.cells?.length-1,children:[(0,r.jsx)(ep,{children:(0,r.jsx)(n.PortableText,{value:e[0]?.cells[a]?.[t],components:eY})}),(0,r.jsx)(n.PortableText,{value:o?.[t],components:eY})]},`stacked-row-cell-${s}-${a}`)})})]},`stacked-row-${s}`))}),ey=S.default.periwinkleLight,eb=`p { 553 font-size: 1rem !important; 554 }`,ev=s.default.div.withConfig({displayName:"SanityTable__TableOuterWrapper",componentId:"sc-3119d67e-0"})` 555 position: relative; 556 margin: 1rem auto 2rem; 557 border-radius: 3px; 558 overflow: hidden; 559 560 @media ${u.bp.md} { 561 margin: 1rem -3rem 2rem; 562 width: calc(100% + 6rem); 563 } 564 565 @media ${u.bp.lg} { 566 margin: 2rem -12rem 3rem; 567 width: calc(100% + 24rem); 568 } 569`,ew=s.default.div.withConfig({displayName:"SanityTable__TableInnerWrapper",componentId:"sc-3119d67e-1"})` 570 border-radius: 3px; 571 overflow: scroll; 572 573 ${({$mobileDisplay:e})=>e?.includes("stacked")?"":` @media ${u.bp.lgUnder} { 574 padding-right: 3rem; 575 576 &:after { 577 content: ''; 578 position: absolute; 579 top: 0; 580 right: -1px; 581 bottom: 0; 582 width: 2.5rem; 583 background-image: linear-gradient( 584 90deg, 585 rgba(0, 0, 0, 0) 0%, 586 rgba(255, 255, 255, 0.25) 50%, 587 rgba(255, 255, 255, 0.4) 70%, 588 rgba(255, 255, 255, 1) 95% 589 ); 590 height: 100%; 591 } 592 }`} 593`,ex=s.default.div.withConfig({displayName:"SanityTable__StyledTable",componentId:"sc-3119d67e-2"})` 594 @media ${u.bp.mdUnder} { 595 ${({$mobileDisplay:e})=>
595{if("full"===e||"condensed"===e)return` 596 color: ${S.default.navy}; 597 font-size: 0.85em; 598 margin: 0 auto; 599 width: 100%; 600 table-layout: fixed; 601 height: 100%; 602 position: relative; 603 display: flex; 604 flex-direction: column; 605 `}} 606 } 607 608 /* If it's not bordered between cells, still have border around table */ 609 ${({$isBordered:e,$mobileDisplay:t})=>e?` 610 border-left: 1px solid ${ey}; 611 border-collapse: collapse; 612 `:`${"full"===t||"condensed"===t?`border: 1px solid ${ey}; border-radius: 3px;`:""} 613 @media ${u.bp.lg} { 614 border: 1px solid ${ey}; border-radius: 3px; 615 }`} 616 617 p { 618 margin: 0; 619 } 620 621 // if stacked in mobile, do not have min width in mobile 622 ${({$mobileDisplay:e,$numColumns:t})=>"full"!==e&&"condensed"!==e?"":`min-width: ${t?`${10*t}rem;`:""}`} 623`,e$=(e,t)=>t?.length?`grid-template-columns: ${t?.map(e=>e?`${e}fr`:"1fr").join(" ")}`:`grid-template-columns: repeat(${e}, 1fr);`,e_=s.default.div.withConfig({displayName:"SanityTable__StyledTr",componentId:"sc-3119d67e-3"})` 624 display: grid; 625 626 ${({$columnWidths:e,$numColumns:t,$mobileDisplay:r})=>"condensed"===r?` 627 @media ${u.bp.lgUnder} { 628 ${e$(t-1,e?.slice(1,e?.length))} 629 } 630 631 @media ${u.bp.lg} { 632 ${e$(t,e)} 633 }`:e$(t,e)}; 634 635 ${({$isTopRow:e})=>e?` 636 border-top-left-radius: 1px; 637 border-top-right-radius: 1px; 638 overflow: hidden; 639 `:""} 640 641 ${({$isStriped:e})=>e?` 642 background-color: ${S.default.grayLight}; 643 `:""} 644 645 ${({$isBordered:e})=>e?`border-bottom: 1px solid ${ey};`:""} 646 647 ${eb} 648`,eC=s.default.div.withConfig({displayName:"SanityTable__StyledTd",componentId:"sc-3119d67e-4"})` 649 white-space: normal; 650 padding: 1rem; 651 white-space: normal; 652 word-break: break-word; 653 display: flex; 654 flex-direction: column; 655 656 ${({$isBordered:e})=>e?`border-right: 1px solid ${ey};`:""} 657 658 ${({$isFirstColumn:e})=>e?`border-right: 1px solid ${ey};`:""} 659 660 ${({$columnAlignment:e,$isBordered:t})=>"left"!==e&&t?"right"===e?`align-items: flex-end; 661 text-align: right;`:`align-items: center; 662 text-align: center;`:`align-items: flex-start; 663 text-align: left;`} 664 665 &:has(figure), 666 &:has(img) { 667 padding: 0; 668 } 669 670 figure, 671 img { 672 max-width: 100%; 673 margin: 0; 674 padding: 0; 675 } 676 677 ${eb} 678`,eI=s.default.div.withConfig({displayName:"SanityTable__StyledTdHeading",componentId:"sc-3119d67e-5"})` 679 font-weight: 700; 680 margin-bottom: 0.5rem; 681`,eS=s.default.div.withConfig({displayName:"SanityTable__StyledTh",componentId:"sc-3119d67e-6"})` 682 background-color: ${S.default.periwinkle}; 683 color: ${S.default.white}; 684 font-size: 1rem; 685 font-weight: 700; 686 display: flex; 687 align-items: center; 688 padding: 1rem; 689 690 a { 691 color: ${S.default.white}; 692 693 &:hover, 694 &:focus { 695 color: ${S.default.grayMed}; 696 } 697 } 698 699 ${({$isBordered:e})=>e?`border-right: 1px solid ${ey}; 700 text-align: center; 701 justify-content: center;`:`text-align: left; 702 justify-content: left;`} 703 704 ${({$isFirstColumn:e})=>e?`border-right: 1px solid ${ey};`:""} 705`,ej=({data:e,numColumns:t,mobileDisplay:i,sanityLocale:s})=>{let o=(0,el.default)("lg"),a=e?.tableColumnStyles?.map(e=>e.columnWidth||0);return"stacked-column"!==i||o?"stacked-row"!==i||o?(0,r.jsx)(r.Fragment,{children:e?.rows?.map((l,u)=>0===u?(0,r.jsx)(e_,{$mobileDisplay:i,$columnWidths:a,$numColumns:t,$isTopRow:!0,$isStriped:e.isStriped&&u%2==0,$isBordered:e?.isBordered,children:l.cells.map((t,a)=>"condensed"!==i||o||0!==a?(0,r.jsx)(eS,{$isBordered:e?.isBordered,$isFirstColumn:e?.isFirstColumnAHeading&&0===a,children:(0,r.jsx)(n.PortableText,{value:t[s],components:eY})},`th-${u}-${a}`):null)},"tr-main-row"):(0,r.jsx)(e_,{$mobileDisplay:i,$columnWidths:a,$numColumns:t,$isStriped:e.isStriped&&u%2==0,$isBordered:e?.isBordered,children:l.cells.map((t,a)=>{let c="condensed"===i&&!o;return c&&0===a?null:(0,r.jsxs)(eC,{$columnAlignment:e?.tableColumnStyles?.[a]?.textAlign,$isBordered:e?.isBordered,$isFirstColumn:e?.isFirstColumnAHeading&&0===a,children:[c&&(0,r.jsx)(eI,{children:(0,r.jsx)(n.PortableText,{value:l?.cells[0]?.[s],components:eY})}),(0,r.jsx)(n.PortableText,{value:t[s],components:eY})]},`td-${u}-${a}`)})},`tr-${u}`))}):(0,r.jsx)(eg,{rows:e.rows,sanityLocale:s}):(0,r.jsx)(em,{rows:e.rows,numColumns:t,sanityLocale:s})},eT=({data:e})=>{let t=(0,d.default)(),n=(0,ea.convertToSanityLocale)(t),i=e?.tableColumnStyles?.length||e?.rows?.[0]?.cells?.length;if(!e)return null;let{mobileDisplay:s,isBordered:o,isStriped:a,isFirstColumnAHeading:l}=e,u=e?.title?(0,E.default)(e?.title):(0,E.default)(e?.name),c=e?.anchorId??u;return(0,r.jsxs)(ev,{id:c,children:[e?.title&&(0,r.jsx)(C.Text,{tag:"h2",color:S.default.navy,children:e.title}),(0,r.jsx)(ew,{$mobileDisplay:s,children:(0,r.jsx)(ex,{$numColumns:i,$mobileDisplay:s,$isStriped:a,$isBordered:o,$isFirstColumnAHeading:l,children:(0,r.jsx)(ej,{sanityLocale:n,data:e,numColumns:i,mobileDisplay:s})})})]})};var ek=e.i(568057),eE=e.i(715694),eR=e.i(121925);let eO=s.default.aside.withConfig({displayName:"TextBasedSearchBanner__BannerWrapper",componentId:"sc-d04eb8a2-0"})` 706 display: flex; 707 flex-direction: column; 708 align-items: center; 709 text-align: center; 710 padding: 1.5rem 1rem; 711 border-radius: 10px; 712 background-color: ${e=>eE.themes[e.$theme]?.$backgroundColor||S.default.white}; 713 color: ${e=>eE.themes[e.$theme]?.$color||S.default.navyMed}; 714 ${e=>e.$margin&&s.css` 715 margin: ${e.$margin}; 716 `} 717 718 @media ${u.bp.md} { 719 padding: 1.5rem; 720 } 721`,eq=(0,s.default)(C.Text).withConfig({displayName:"TextBasedSearchBanner__Heading",componentId:"sc-d04eb8a2-1"})` 722 font-weight: 600; 723 font-size: 18px; 724 margin: 0 0 14px; 725 color: inherit; 726`,eA=(0,s.default)(C.Text).withConfig({displayName:"TextBasedSearchBanner__Subheading",componentId:"sc-d04eb8a2-2"})` 727 font-weight: 400; 728 font-size: 16px; 729 margin: 0 auto 1rem; 730 color: inherit; 731 max-width: 400px; 732`,eP=({$theme:e,$margin:t,heading:n,subheading:i,cta:s})=>{let o=(0,w.useTranslations)("labels.search_banner.text_based");return(0,r.jsxs)(eO,{$theme:e,$margin:t,children:[(0,r.jsx)(eq,{children:n||o("heading")}),(0,r.jsx)(eA,{children:i||o("subheading")}),(0,r.jsx)(eR.default,{$buttonTheme:"filled",$showIcon:!1,$width:"auto",cta:s})]})};e.s(["default",0,eP],448127);var eL=e.i(881917),eM=e.i(588447),eD=e.i(161484),eF=e.i(687868);let eN=s.default.div.withConfig({displayName:"HighlightedBlock",componentId:"sc-38595eaf-0"})` 733 ${e=>`padding: 20px 0; 734 margin: 32px 0; 735 position: relative; 736 737 &:after { 738 content: ''; 739 background-color: ${e.$color||S.default.grayLight}; 740 position: absolute; 741 z-index: -1; 742 width: calc(100% + 36px); // 40px overflows 743 height: 100%; 744 top: 0; 745 bottom: 0; 746 left: -20px; 747 right: -20px; 748 border-radius: 12px; 749 } 750 751 @media ${u.bp.lg} { 752 padding: 20px; 753 margin: 36px -20px; 754 }`}; 755`,eU=e=>{let t="";i.default.Children.map(e,e=>{"string"==typeof e&&(t+=e)});let r=t.replace(/[0-9]/g,"");return(0,E.default)(r)},ez=s.default.li.withConfig({displayName:"PortableText__ListItem",componentId:"sc-e40dd535-0"})` 756 margin-bottom: 12px; 757 margin-left: 0.5rem; 758 padding-left: 0.25rem; 759 list-style: inherit; 760 font-size: 18px; 761 font-family: var(--font-nunito); 762 color: inherit; 763 764 &::marker { 765 color: ${S.default.navy}; 766 } 767 768 ${e=>{if("checkbox"===e.$styleType)return` 769 display: flex; 770 align-items: center; 771 margin-left: 0; 772 padding-left: 0; 773 774 input { 775 margin-right: 0.75rem; 776 } 777 `}} 778 779 ul { 780 margin-top: 1rem; 781 782 li { 783 list-style-type: circle; 784 785 ul { 786 li { 787 list-style-type: disc; 788 } 789 } 790 } 791 } 792`,eW=s.default.ul.withConfig({displayName:"PortableText__UnorderedList",componentId:"sc-e40dd535-1"})` 793 margin-bottom: 2rem; 794 margin-left: 0.5rem; 795 padding-left: 0.5rem; 796 797 ${e=>"checkbox"===e.$styleType?` 798 margin-left: 0; 799 padding-left: 0; 800 list-style: none; 801 `:` 802 list-style: disc; 803 `} 804`,eB=s.default.ol.withConfig({displayName:"PortableText__OrderedList",componentId:"sc-e40dd535-2"})` 805 margin-bottom: 2rem; 806 margin-left: 0.5rem; 807 padding-left: 0.5rem; 808 list-style: number; 809`,eH=(e,t)=>e!==eM.ESanityLocale.en?`/${e}/blog/${t}`:`/blog/${t}`,eV=(e,t)=>e!==eM.ESanityLocale.en?`/${e}/${t}`:`/${t}`,eG=e=>{let{blogSlugs:t={},pageSlugs:r={}}=e??{};return t?.es||t?.en?eH(t?.es?eM.ESanityLocale.es:eM.ESanityLocale.en,t?.es||t?.en):r?.es||r?.en?eV(r?.es?eM.ESanityLocale.es:eM.ESanityLocale.en,r?.es||r?.en):"/"},eJ={types:{captionedImage:({value:e})=>(0,r.jsx)(m.SanityImage,{...e}),image:({value:e})=>(0,r.jsx)(m.SanityImage,{...e}),horizontalRule:()=>(0,r.jsx)(l.default,{}),highlightedBlock:({value:e})=>(0,r.jsx)(eN,{$color:S.default[e.color]||"",children:(0,r.jsx)(n.PortableText,{value:e.content,components:eJ})}),accordion:({value:e})=>(0,r.jsx)(eD.Accordion,{children:e.accordionList&&e.accordionList.map(t=>(0,r.jsx)(eF.AccordionListItem,{heading:t.title,anchorId:t.anchor?.current||void 0,styleType:"no-lines",
809isFullWidth:!0,headingFontWeight:e.headingFontWeight,children:(0,r.jsx)(n.PortableText,{value:t.content,components:eJ})},t._key))}),button:({value:e})=>(0,r.jsx)(_.ButtonLink,{className:"pt-button",$styleType:e.buttonStyle,href:e.buttonHref,children:e.buttonLabel}),table:({value:e})=>(0,r.jsx)(eT,{data:e}),SearchEmbed:({value:e})=>(0,r.jsx)(eo,{data:e}),embed:({value:e})=>{let{wide:t,embed:n,embedType:i,embedInaa:s}=e;return"inaa"===i&&s?(0,r.jsx)(p,{id:s,src:`/embed/${s}`}):(0,r.jsx)(a.default,{$wide:t,$isYouTube:n.includes("youtube"),dangerouslySetInnerHTML:{__html:n}})},dynamicStat:({value:e})=>{let{stat:t}=e;return"number-states-with-consent-laws"===t?(0,r.jsx)(o.default,{}):(0,r.jsx)("span",{})},InlineBanner:({value:e})=>{let{theme:t="dark",layoutStyle:n="horizontal",heading:i,subheading:s,cta:o}=e,a=o?.isInternal&&o?.url?`/${o?.url}`:o?.url;return"vertical"===n?(0,r.jsx)(eP,{$theme:t,heading:i,subheading:s,cta:{href:a,label:o?.label},$margin:"1.5rem 0"}):(0,r.jsx)(ek.default,{$theme:t,$buttonTheme:"filled",heading:i,subheading:s,cta:{href:a,label:o?.label},$margin:"2.5rem 0"})}},block:{h1:({children:e})=>(0,r.jsx)(C.Text,{tag:"h1",textAlign:"center",id:eU(e),children:e}),h2:({children:e})=>(0,r.jsx)(C.Text,{tag:"h2",textAlign:"center",id:eU(e),children:e}),h3:({children:e})=>(0,r.jsx)(C.Text,{tag:"h3",id:eU(e),children:e}),h3Alt:({children:e})=>(0,r.jsx)(C.Text,{tag:"h2",customHtmlTag:"h3",color:S.default.periwinkle,id:eU(e),children:e}),h4:({children:e})=>(0,r.jsx)(C.Text,{tag:"h4",id:eU(e),children:e}),normal:({children:e})=>(0,r.jsx)(C.Text,{inheritColor:!0,size:"18px",style:{overflowWrap:"break-word"},children:e}),normalSmall:({children:e})=>(0,r.jsx)(C.Text,{tag:"small",customHtmlTag:"p",inheritColor:!0,children:e}),small:({children:e})=>(0,r.jsx)(C.Text,{tag:"small",customHtmlTag:"p",inheritColor:!0,children:e}),blockquote:({children:e})=>(0,r.jsx)(C.Text,{children:e})},marks:{internalLink:({value:e,children:t})=>{let n=eG(e);return(0,r.jsx)("a",{href:n,children:t})},link:({value:e,children:t})=>{let{blank:n,href:i}=e;if(!i){let n=eG(e?.internalLink)||"";return(0,r.jsx)(eL.InlineLink,{href:n,children:(0,r.jsx)("span",{children:t})})}let s=i.replace(/\s/g,"");return i.startsWith("http://")?s=s.replace("http://","https://"):s.match(/^(\+?\d{1,3}[-.]?)?(\(?\d{3,5}\)?[-.]?)?\d{3,5}[-.]?\d{4,8}$/)?s=`tel:${s.replace(/[^0-9\+]/g,"")}`:!s.startsWith("http")&&s.match(/(.+)@(.+){2,}\.(.+){2,}/)&&(s=`mailto:${s}`),(0,r.jsx)(eL.InlineLink,{href:s,forceExternalLink:n||s?.includes("//"),children:(0,r.jsx)("span",{children:t})})},anchorId:({value:e,children:t})=>(0,r.jsx)("span",{id:e.id,children:t})},list:{bullet:({children:e})=>(0,r.jsx)(eW,{children:e}),number:({children:e})=>(0,r.jsx)(eB,{children:e}),checkbox:({children:e})=>(0,r.jsx)(eW,{$styleType:"checkbox",children:e})},listItem:({children:e,value:t})=>"checkbox"===t.listItem?(0,r.jsxs)(ez,{$styleType:"checkbox",children:[(0,r.jsx)(f.StyledInput,{id:t._key,type:"checkbox",style:{width:20,height:20}}),(0,r.jsx)("label",{htmlFor:t._key,children:e})]}):(0,r.jsx)(ez,{children:e})},eY=eJ}]); 810 811//# debugId=001964ba-6e97-5520-9bd0-e3462e9344c5
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.