1"use strict";(self.webpackChunkseascape_web=self.webpackChunkseascape_web||[]).push([[1285],{86250:function(e,t,n){n.d(t,{Z:function(){return $}});var r=n(67294),s=n(93967),a=n.n(s),o=n(98423),i=n(98065),l=n(53124),c=n(83559),d=n(83262);const u=["wrap","nowrap","wrap-reverse"],h=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var g=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&u.includes(n)}})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return h.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const p=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},y=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},m=e=>{const{componentCls:t}=e,n={};return u.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},w=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},b=e=>{const{componentCls:t}=e,n={};return h.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var v=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,s=(0,d.IX)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[p(s),y(s),m(s),w(s),b(s)]}),(()=>({})),{resetStyle:!1}),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};const k=r.forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:s,className:c,style:d,flex:u,gap:h,vertical:f=!1,component:p="div",children:y}=e,m=R(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component","children"]),{flex:w,direction:b,getPrefixCls:k}=r.useContext(l.E_),$=k("flex",n),[C,S,P]=v($),x=null!=f?f:null==w?void 0:w.vertical,O=a()(c,s,null==w?void 0:w.className,$,S,P,g($,e),{[`${$}-rtl`]:"rtl"===b,[`${$}-gap-${h}`]:(0,i.n)(h),[`${$}-vertical`]:x}),I=Object.assign(Object.assign({},null==w?void 0:w.style),d);return u&&(I.flex=u),h&&!(0,i.n)(h)&&(I.gap=h),C(r.createElement(p,Object.assign({ref:t,className:O,style:I},(0,o.Z)(m,["justify","wrap","align"])),y))}));var $=k},66309:function(e,t,n){n.d(t,{Z:function(){return A}});var r=n(67294),s=n(93967),a=n.n(s),o=n(98423),i=n(98787),l=n(69760),c=n(96159),d=n(36728),u=n(53124),h=n(25446),f=n(15063),g=n(14747),p=n(83262),y=n(83559);const m=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,s=e.fontSizeSM;return(0,p.IX)(e,{tagFontSize:s,tagLineHeight:(0,h.bf)(r(e.lineHeightSM).mul(s).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},w=e=>({defaultBg:new f.t(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var b=(0,y.I$)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:s,calc:a}=e,o=a(r).sub(n).equal(),i=a(t).sub(n).equal();return{[s]:Object.assign(Object.assign({},(0,g.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${s}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${s}-close-icon`]:{marginInlineStart:i,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${s}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",curs
1or:"pointer",[`&:not(${s}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${s}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(m(e))),w),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};const R=r.forwardRef(((e,t)=>{const{prefixCls:n,style:s,className:o,checked:i,children:l,icon:c,onChange:d,onClick:h}=e,f=v(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:p}=r.useContext(u.E_),y=g("tag",n),[m,w,R]=b(y),k=a()(y,`${y}-checkable`,{[`${y}-checkable-checked`]:i},null==p?void 0:p.className,o,w,R);return m(r.createElement("span",Object.assign({},f,{ref:t,style:Object.assign(Object.assign({},s),null==p?void 0:p.style),className:k,onClick:e=>{null==d||d(!i),null==h||h(e)}}),c,r.createElement("span",null,l)))}));var k=R,$=n(98719);var C=(0,y.bk)(["Tag","preset"],(e=>(e=>(0,$.Z)(e,((t,{textColor:n,lightBorderColor:r,lightColor:s,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:s,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}))))(m(e))),w);const S=(e,t,n)=>{const r="string"!=typeof(s=n)?s:s.charAt(0).toUpperCase()+s.slice(1);var s;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var P=(0,y.bk)(["Tag","status"],(e=>{const t=m(e);return[S(t,"success","Success"),S(t,"processing","Info"),S(t,"error","Error"),S(t,"warning","Warning")]}),w),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n};const O=r.forwardRef(((e,t)=>{const{prefixCls:n,className:s,rootClassName:h,style:f,children:g,icon:p,color:y,onClose:m,bordered:w=!0,visible:v}=e,R=x(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:k,direction:$,tag:S}=r.useContext(u.E_),[O,I]=r.useState(!0),A=(0,o.Z)(R,["closeIcon","closable"]);r.useEffect((()=>{void 0!==v&&I(v)}),[v]);const T=(0,i.o2)(y),j=(0,i.yT)(y),E=T||j,B=Object.assign(Object.assign({backgroundColor:y&&!E?y:void 0},null==S?void 0:S.style),f),q=k("tag",n),[D,L,N]=b(q),F=a()(q,null==S?void 0:S.className,{[`${q}-${y}`]:E,[`${q}-has-color`]:y&&!E,[`${q}-hidden`]:!O,[`${q}-rtl`]:"rtl"===$,[`${q}-borderless`]:!w},s,h,L,N),M=e=>{e.stopPropagation(),null==m||m(e),e.defaultPrevented||I(!1)},[,_]=(0,l.b)((0,l.w)(e),(0,l.w)(S),{closable:!1,closeIconRender:e=>{const t=r.createElement("span",{className:`${q}-close-icon`,onClick:M},e);return(0,c.wm)(e,t,(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),M(t)},className:a()(null==e?void 0:e.className,`${q}-close-icon`)})))}}),z="function"==typeof R.onClick||g&&"a"===g.type,U=p||null,G=U?r.createElement(r.Fragment,null,U,g&&r.createElement("span",null,g)):g,W=r.createElement("span",Object.assign({},A,{ref:t,className:F,style:B}),G,_,T&&r.createElement(C,{key:"preset",prefixCls:q}),j&&r.createElement(P,{key:"status",prefixCls:q}));return D(z?r.createElement(d.Z,{component:"Tag"},W):W)})),I=O;I.CheckableTag=k;var A=I},54859:function(e,t,n){n.d(t,{e:function(){return M}});const r=e=>Array.isArray(e)?e:[e],s=(e={},t)=>({...e,filters:[...e.filters||[],...r(t)]}
1),a="7.21.0",o=e=>`https://prismic.dev/msg/client/v${a}/${e}`,i=e=>Array.isArray(e)?`[${e.map(i).join(", ")}]`:"string"==typeof e?`"${e}"`:e instanceof Date?`${e.getTime()}`:`${e}`,l=e=>(t,...n)=>{const r=n.map(i).join(", "),s=t&&n.length?", ":"";return`[${e}(${t}${s}${r})]`},c=e=>{const t=l(e);return e=>t(e)},d={at:l("at"),not:l("not"),any:l("any"),in:l("in"),fulltext:l("fulltext"),has:c("has"),missing:c("missing"),similar:(e=>{const t=l(e);return(...e)=>t("",...e)})("similar"),geopointNear:l("geopoint.near"),numberLessThan:l("number.lt"),numberGreaterThan:l("number.gt"),numberInRange:l("number.inRange"),dateAfter:l("date.after"),dateBefore:l("date.before"),dateBetween:l("date.between"),dateDayOfMonth:l("date.day-of-month"),dateDayOfMonthAfter:l("date.day-of-month-after"),dateDayOfMonthBefore:l("date.day-of-month-before"),dateDayOfWeek:l("date.day-of-week"),dateDayOfWeekAfter:l("date.day-of-week-after"),dateDayOfWeekBefore:l("date.day-of-week-before"),dateMonth:l("date.month"),dateMonthAfter:l("date.month-after"),dateMonthBefore:l("date.month-before"),dateYear:l("date.year"),dateHour:l("date.hour"),dateHourAfter:l("date.hour-after"),dateHourBefore:l("date.hour-before")},u=e=>d.at("document.tags",r(e));
1class h extends Error{url;response;constructor(e="An invalid API response was returned",t,n){super(e),this.url=t,this.response=n}}const f=(e,t)=>{const n=e.find((e=>t(e)));if(!n)throw new h("Ref could not be found.",void 0,void 0);return n},g=e=>f(e,(e=>e.isMasterRef)),p=(e,t)=>f(e,(e=>e.id===t)),y=(e,t)=>f(e,(e=>e.label===t)),m=e=>e.replace(/%3B/g,";"),w=({interval:e}={})=>{const t=[];let n=!1,r=0;const s=()=>{!n&&t.length>0&&(t.shift()?.(),n=!0)},a=async(t,a,o)=>{const i=Date.now()-r;var l;e&&i<e&&await(l=e-i,new Promise((e=>setTimeout(e,l))));const c=(async()=>t(...o))();a(c);try{await c}catch{}r=Date.now(),n=!1,s()};return(e,...r)=>new Promise((o=>{((e,r,o)=>{new Promise((e=>{t.push(e)})).then(a.bind(void 0,e,r,o)),(async()=>{await Promise.resolve(),n||s()})()})(e,o,r)}))},b={},v={};async function R(e,t,n){const r=e.toString();let s;if(t?.body){s=(b[e.hostname]||=w({interval:1500}))((()=>n(r,t)))}else{const e=v[r]?.get(t?.signal);if(e)s=e;else{s=n(r,t).finally((()=>{v[r]?.delete(t?.signal),0===v[r]?.size&&delete v[r]}));(v[r]||=new Map).set(t?.signal,s)}}const a=await s;if(429===a.status){const r=Number(a.headers.get("retry-after")),s=Number.isNaN(r)?1500:1e3*r;return await new Promise((e=>setTimeout(e,s))),R(e,t,n)}return a.clone()}const k=e=>d.any("document.tags",r(e));let $,C=0;const S=e=>d.at("document.type",e);class P extends h{}class x extends h{}class O extends h{}class I extends P{}class A extends P{}class T extends P{}class j extends x{}var E=n(91890);const B={accessToken:"access_token"},q=e=>"string"==typeof e?e:"desc"===e.direction?`${e.field} desc`:e.field,D=e=>{try{return new URL(e),!0}catch{return!1}};var L,N;(N=L||(L={})).Master="Master",N.ReleaseID="ReleaseID",N.ReleaseLabel="ReleaseLabel",N.Manual="Manual";class F{fetchFn;fetchOptions;#e;set repositoryName(e){this.#e=e}get repositoryName(){if(!this.#e)throw new h(`A repository name is required for this method but one could not be inferred from the provided API endpoint (\`${this.documentAPIEndpoint}\`). To fix this error, provide a repository name when creating the client. For more details, see ${o("prefer-repository-name")}`,void 0,void 0);return this.#e}documentAPIEndpoint;set endpoint(e){this.documentAPIEndpoint=e}get endpoint(){return this.documentAPIEndpoint}accessToken;routes;brokenRoute;defaultParams;refState={mode:L.Master,autoPreviewsEnabled:!0};cachedRepository;cachedRepositoryExpiration=0;constructor(e,t={}){if(this.fetchOptions=t.fetchOptions,"function"==typeof t.fetch)this.fetchFn=t.fetch;else{if("function"!=typeof globalThis.fetch)throw new h("A valid fetch implementation was not provided. In environments where fetch is not available (including Node.js), a fetch implementation must be provided via a polyfill or the `fetch` option.",void 0,void 0);this.fetchFn=globalThis.fetch}if(this.fetchFn===globalThis.fetch&&(this.fetchFn=this.fetchFn.bind(globalThis)),t.documentAPIEndpoint||D(e),D(e)){this.documentAPIEndpoint=e;try{this.repositoryName=(e=>{try{const t=new URL(e).hostname;if(t.endsWith("prismic.io")||t.endsWith("wroom.io")||t.endsWith("wroom.test"))return t.split(".")[0]}catch{}throw new h(`An invalid Prismic Document API endpoint was provided: ${e}`,void 0,void 0)})(e)}catch(t){console.warn(`[@prismicio/client] A repository name could not be inferred from the provided endpoint (\`${e}\`). Some methods will be disabled. Create the client using a repository name to prevent this warning. For more details, see ${o("prefer-repository-name")}`)}}else this.documentAPIEndpoint=t.documentAPIEndpoint||(e=>{if(/^[a-zA-Z0-9][-a-zA-Z0-9]{2,}[a-zA-Z0-9]$/.test(e))return`https://${e}.cdn.prismic.io/api/v2`;throw new h(`An invalid Prismic repository name was given: ${e}`,void 0,void 0)})(e),this.repositoryName=e;this.accessToken=t.accessToken,this.routes=t.routes,this.brokenRoute=t.brokenRoute,this.defaultParams=t.defaultParams,t.ref&&this.queryContentFromRef(t.ref),this.graphQLFetch=this.graphQLFetch.bind(this)}enableAutoPreviews(){this.refState.autoPreviewsEnabled=!0}enableAutoPreviewsFromReq(e){this.refState.httpRequest=e,this.refState.autoPreviewsEnabled=!0}disableAutoPreviews(){this.refState.autoPreviewsEnabled=!1}async get(e){const{data:t}=await this._get(e);return t}async getFirst(e){const t={...e};e&&e.page||e?.pageSize||(t.pageSize=this.defaultParams?.pageSize??1
1);const{data:n,url:r}=await this._get(t),s=n.results[0];if(s)return s;throw new x("No documents were returned",r,void 0)}async dangerouslyGetAll(e={}){const{limit:t=1/0,...n}=e,r={...n,pageSize:Math.min(t,n.pageSize||this.defaultParams?.pageSize||100)},s=[];let a;for(;(!a||a.next_page)&&s.length<t;){const e=a?a.page+1:void 0;a=await this.get({...r,page:e}),s.push(...a.results),a.next_page&&await new Promise((e=>setTimeout(e,500)))}return s.slice(0,t)}async getByID(e,t){return await this.getFirst(s(t,d.at("document.id",e)))}async getByIDs(e,t){return await this.get(s(t,d.in("document.id",e)))}async getAllByIDs(e,t){return await this.dangerouslyGetAll(s(t,d.in("document.id",e)))}async getByUID(e,t,n){return await this.getFirst(s(n,[S(e),d.at(`my.${e}.uid`,t)]))}async getByUIDs(e,t,n){return await this.get(s(n,[S(e),d.in(`my.${e}.uid`,t)]))}async getAllByUIDs(e,t,n){return await this.dangerouslyGetAll(s(n,[S(e),d.in(`my.${e}.uid`,t)]))}async getSingle(e,t){return await this.getFirst(s(t,S(e)))}async getByType(e,t){return await this.get(s(t,S(e)))}async getAllByType(e,t){return await this.dangerouslyGetAll(s(t,S(e)))}async getByTag(e,t){return await this.get(s(t,k(e)))}async getAllByTag(e,t){return await this.dangerouslyGetAll(s(t,k(e)))}async getByEveryTag(e,t){return await this.get(s(t,u(e)))}async getAllByEveryTag(e,t){return await this.dangerouslyGetAll(s(t,u(e)))}async getBySomeTags(e,t){return await this.get(s(t,k(e)))}async getAllBySomeTags(e,t){return await this.dangerouslyGetAll(s(t,k(e)))}async getRepository(e){const t=new URL(this.documentAPIEndpoint);this.accessToken&&t.searchParams.set("access_token",this.accessToken);const n=await this.#t(t,e);switch(n.status){case 200:return await n.json();case 401:{const e=await n.json();throw new P(e.error,t.toString(),e)}case 404:throw new j(`Prismic repository not found. Check that "${this.documentAPIEndpoint}" is pointing to the correct repository.`,t.toString(),void 0);default:throw new h(void 0,t.toString(),await n.text())}}async getRefs(e){return(await this.getRepository(e)).refs}async getRefByID(e,t){const n=await this.getRefs(t);return p(n,e)}async getRefByLabel(e,t){const n=await this.getRefs(t);return y(n,e)}async getMasterRef(e){const t=await this.getRefs(e);return g(t)}async getReleases(e){return(await this.getRefs(e)).filter((e=>!e.isMasterRef))}async getReleaseByID(e,t){const n=await this.getReleases(t);return p(n,e)}async getReleaseByLabel(e,t){const n=await this.getReleases(t);return y(n,e)}async getTags(e){const t=(await this.getCachedRepository(e)).forms.tags;if(t){const n=new URL(t.action);this.accessToken&&n.searchParams.set("access_token",this.accessToken);const r=await this.#t(n,e);if(r.ok)return await r.json()}return(await this.getRepository(e)).tags}async buildQueryURL({signal:e,fetchOptions:t,...n}={}){const s=n.ref||await this.getResolvedRefString({signal:e,fetchOptions:t}),o=n.integrationFieldsRef||(await this.getCachedRepository({signal:e,fetchOptions:t})).integrationFieldsRef||void 0;return((e,t)=>{const{filters:n,predicates:s,...o}=t,i=new URL("documents/search",`${e}/`);if(n)for(const e of r(n))i.searchParams.append("q",`[${e}]`);if(s)for(const e of r(s))i.searchParams.append("q",`[${e}]`);for(const e in o){const t=B[e]||e;let n=o[e];if("orderings"===t){const e=o[t];null!=e&&(n=`[${r(e).map((e=>q(e))).join(",")}]`)}else"routes"===t&&"object"==typeof o[t]&&(n=JSON.stringify(r(o[t])));null!=n&&i.searchParams.set(t,r(n).join(","))}return i.searchParams.set("x-c",`js-${a}`),i.toString()})(this.documentAPIEndpoint,{...this.defaultParams,...n,ref:s,integrationFieldsRef:o,routes:n.routes||this.routes,brokenRoute:n.brokenRoute||this.brokenRoute,accessToken:n.accessToken||this.accessToken})}async resolvePreviewURL(e){let t=e.documentID,n=e.previewToken;if(void 0!==globalThis.location){const e=new URLSearchParams(globalThis.location.search);t=t||e.get("documentId"),n=n||e.get("token")}else if(this.refState.httpRequest)if("query"in this.refState.httpRequest)t=t||this.refState.httpRequest.query?.documentId,n=n||this.refState.httpRequest.query?.token;else if("url"in this.refState.httpRequest&&this.refState.httpRequest.url){const e=new URL(this.refState.httpRequest.url,"missing-host://").searchParams;t=t||e.get("documentId"),n=n||e.get("token")}if(null!=t&&null!=n){const r=await this.getByID(t,{ref:n,lang:"*",signal:e.signal,fetchOptions:e.fetchOptions}),s=(0,E.s)(r,{linkResolver:e.linkResolver});if("string"==typeof s)return s}return e.defaultURL}queryLatestContent(){this.refState.mode=L.Master}queryContentFromReleaseByID(e){this.refState={...this.refState,mode:L.ReleaseID,releaseID:e}}queryContentFromReleaseByLabel(e){this.refState={...this.refState,mode:L.ReleaseLabel,releaseLabel:e}}queryContentFromRef(e){this.refState={...this.refState,mode:L.Manual,ref:e}}async graphQLFetch(e,t){const n=await this.getCachedRepository(),r=await this.getResolvedRefString(),s={"Prismic-ref":r,Authorization:this.accessToken?`Token ${this.accessToken}`:"",...t?t.headers:{}};n.integrationFieldsRef&&(s["Prismic-integration-field-ref"]=n.integrationFieldsRef);const a={};for(const e in s)s[e]&&(a[e.toLowerCase()]=s[e]);const o=new URL(e);o.searchParams.set("ref",r);const i=o.searchParams.get("query");return i&&o.searchParams.set("query",(e=>e.replace(/(\n| )*( |{|}
1)(\n| )*/gm,((e,t,n)=>n)))(i)),await this.fetchFn(o.toString(),{...t,headers:a})}async getCachedRepository(e){return(!this.cachedRepository||Date.now()>=this.cachedRepositoryExpiration)&&(this.cachedRepository=await this.getRepository(e),this.cachedRepositoryExpiration=Date.now()+5e3),this.cachedRepository}async getResolvedRefString(e){if(this.refState.autoPreviewsEnabled){let e,t;if(this.refState.httpRequest?.headers?"get"in this.refState.httpRequest.headers&&"function"==typeof this.refState.httpRequest.headers.get?t=this.refState.httpRequest.headers.get("cookie"):"cookie"in this.refState.httpRequest.headers&&(t=this.refState.httpRequest.headers.cookie):globalThis.document?.cookie&&(t=globalThis.document.cookie),t&&(e=(e=>{const t=e.split("; ");let n;for(const e of t){const t=e.split("=");if("io.prismic.preview"===m(t[0]).replace(/%3D/g,"=")){n=m(t.slice(1).join("="));break}}return n})(t)),e)return e}const t=await this.getCachedRepository(e),n=this.refState.mode;if(n===L.ReleaseID)return p(t.refs,this.refState.releaseID).ref;if(n===L.ReleaseLabel)return y(t.refs,this.refState.releaseLabel).ref;if(n===L.Manual){const e=await(r=this.refState.ref,"function"==typeof r?r:()=>r)();if("string"==typeof e)return e}var r;return g(t.refs).ref}async _get(e,t=0){const n=await this.buildQueryURL(e);try{const t=await this.#t(new URL(n),e);switch(t.status){case 200:try{return{data:await t.clone().json(),url:n}}catch{throw new h(void 0,n,await t.text())}case 400:{const e=await t.json();throw new O(e.message,n,e)}case 401:{const e=await t.json();throw new P(e.message,n,e)}case 404:{const e=await t.json();switch(e.type){case"api_notfound_error":throw new T(e.message,n,e);case"api_security_error":if(/preview token.*expired/i.test(e.message))throw new I(e.message,n,e);default:throw new x(e.message,n,e)}}case 410:{const e=await t.json();throw new A(e.message,n,e)}default:throw new h(void 0,n,await t.text())}}catch(r){if(!(r instanceof T||r instanceof A)||t>=2)throw r;e?.ref||(this.cachedRepository=void 0);const s=r.message.match(/Master ref is: (?<ref>.*)$/)?.groups?.ref;if(!s)throw r;return((e,t={})=>{const{level:n="log"}=t;e===$&&Date.now()-C<5e3?C=Date.now():(C=Date.now(),$=e,console[n](e))})(`[@prismicio/client] The ref (${new URL(n).searchParams.get("ref")}) was ${r instanceof T?"invalid":"expired"}. Now retrying with the latest master ref (${s}). If you were previewing content, the response will not include draft content.`,{level:"warn"}),await this._get({...e,ref:s},t+1)}}async#t(e,t){return await R(e,this._buildRequestInit(t),this.fetchFn)}_buildRequestInit(e){return{...this.fetchOptions,...e?.fetchOptions,headers:{...this.fetchOptions?.headers,...e?.fetchOptions?.headers},signal:e?.fetchOptions?.signal||e?.signal||this.fetchOptions?.signal}}}const M=(e,t)=>new F(e,t)},91890:function(e,t,n){n.d(t,{s:function(){return o}});const r="Document",s="Media",a="Web",o=(e,...t)=>{if(!e)return null;const n="link_type"in e?e:{link_type:r,id:(o=e).id,uid:o.uid||void 0,type:o.type,tags:o.tags,lang:o.lang,url:null==o.url?void 0:o.url,slug:o.slugs?.[0],...o.data&&Object.keys(o.data).length>0?{data:o.data}:{}};var o;const[i]=t;let l;switch(l="function"==typeof i||null==i?{linkResolver:i}:{...i},n.link_type){case s:case a:return"url"in n?n.url:null;case r:if("id"in n&&l.linkResolver){const e=l.linkResolver(n);if(null!=e)return e}return"url"in n&&n.url?n.url:null;default:return null}}}}]);
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.