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]="0e30a98d-2ba7-b4c4-c0b1-f92c6f1f7a33")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95691,e=>{"use strict";let t,r;var n,i,o,a=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,d=(e,t,r)=>(r=null==e?{}:a(u(e)),((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var n,i=c(t),o=0,a=i.length;o<a;o++)n=i[o],f.call(e,n)||void 0===n||s(e,n,{get:(e=>t[e]).bind(null,n),enumerable:!(r=l(t,n))||r.enumerable});return e})(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),m=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),p={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},g={0:8203,1:8204,2:8205,3:65279},h={0:String.fromCodePoint(g[0]),1:String.fromCodePoint(g[1]),2:String.fromCodePoint(g[2]),3:String.fromCodePoint(g[3])},v=[,,,,].fill(String.fromCodePoint(g[0])).join(""),E=Object.fromEntries(Object.entries(h).map(e=>[e[1],+e[0]])),y=Object.fromEntries(Object.entries(p).map(e=>e.reverse())),b=`${Object.values(p).map(e=>`\\u{${e.toString(16)}}`).join("")}`,_=RegExp(`[${b}]{4,}`,"gu"),T=m((e,t)=>{var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(e,t,i){if("[object Function]"!==n.call(t))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)t.call(i,e[a],a,e);else for(var s in e)r.call(e,s)&&t.call(i,e[s],s,e)}}),I=["nt_experiences","nt_name","nt_description","nt_audience_id","nt_rules","nt_metadata","nt_experience_id","nt_type","nt_config","nt_audience","nt_variants"],C=I.map(e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase()));[...I,...C];var O="4.10.11",S=!1,w=e=>(...t)=>{S&&console[e](...t)},D={error:w("error"),warn:w("warn"),log:w("log")},A=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function M(e,t,r){let n={...t,method:e,source:"live-preview-sdk",location:window.location.href,version:O};D.log("Send message",n),r.forEach(e=>{window.top?.postMessage(n,e)})}function L(e,t=100){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}var N=(t=(t,r)=>{var n,i,o,a="__lodash_hash_undefined__",s="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Function]",m="[object Map]",p="[object Number]",g="[object Object]",h="[object Promise]",v="[object RegExp]",E="[object Set]",y="[object String]",b="[object WeakMap]",_="[object ArrayBuffer]",T="[object DataView]",I=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[s]=O[l]=O[_]=O[c]=O[T]=O[u]=O[f]=O[d]=O[m]=O[p]=O[g]=O[v]=O[E]=O[y]=O[b]=!1;var S=e.g&&e.g.Object===Object&&e.g,w="object"==typeof self&&self&&self.Object===Object&&self,D=S||w||Function("return this")(),A="object"==typeof t&&t&&!t.nodeType&&t,M=A&&"object"==typeof r&&r&&!r.nodeType&&r,L=M&&M.exports===A,N=L&&S.process,R=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),j=R&&R.isTypedArray;function P(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function F(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var U=Array.prototype,x=Function.prototype,k=Object.prototype,B=D["__core-js_shared__"],z=x.toString,G=k.hasOwnProperty,$=(n=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Y=k.toString,V=RegExp("^"+z.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=L?D.Buffer:void 0,q=D.Symbol,H=D.Uint8Array,K=k.propertyIsEnumerable,W=U.splice,J=q?q.toStringTag:void 0,X=Object.getOwnPropertySymbols,Q=Z?Z.isBuffer:void 0,ee=(i=Object.keys,o=Object,function(e){return i(o(e))}),et=eO(D,"DataView"),er=eO(D,"Map"),en=eO(D,"Promise"),ei=eO(D,"Set"),eo=eO(D,"WeakMap"),ea=eO(Object,"create"),es=eD(et),el=eD(er),ec=eD(en),eu=eD(ei),ef=eD(eo),ed=q?q.prototype:void 0,em=ed?ed.valueOf
2:void 0;function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eh(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new eh;++t<r;)this.add(e[t])}function eE(e){var t=this.__data__=new eg(e);this.size=t.size}function ey(e,t){for(var r=e.length;r--;)if(eA(e[r][0],t))return r;return -1}function eb(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=G.call(e,J),r=e[J];try{e[J]=void 0;var n=!0}catch{}var i=Y.call(e);return n&&(t?e[J]=r:delete e[J]),i}(e):Y.call(e)}function e_(e){return eF(e)&&eb(e)==s}function eT(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,f=!0,d=2&r?new ev:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var m=e[u],p=t[u];if(n)var g=a?n(p,m,u,t,e,o):n(m,p,u,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!d.has(t)&&(m===e||i(m,e,r,n,o)))return d.push(t)})){f=!1;break}}else if(!(m===p||i(m,p,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function eI(e){var t;return t=ex(e),eL(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eS(e))}function eC(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function eO(e,t){var r=e?.[t];return!(!eP(r)||$&&$ in r)&&(eR(r)?V:I).test(eD(r))?r:void 0}ep.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ep.prototype.get=function(e){var t=this.__data__;if(ea){var r=t[e];return r===a?void 0:r}return G.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:G.call(t,e)},ep.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ea&&void 0===t?a:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,r=ey(t,e);return!(r<0)&&(r==t.length-1?t.pop():W.call(t,r,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,r=ey(t,e);return r<0?void 0:t[r][1]},eg.prototype.has=function(e){return ey(this.__data__,e)>-1},eg.prototype.set=function(e,t){var r=this.__data__,n=ey(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},eh.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(er||eg),string:new ep}},eh.prototype.delete=function(e){var t=eC(this,e).delete(e);return this.size-=!!t,t},eh.prototype.get=function(e){return eC(this,e).get(e)},eh.prototype.has=function(e){return eC(this,e).has(e)},eh.prototype.set=function(e,t){var r=eC(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,a),this},ev.prototype.has=function(e){return this.__data__.has(e)},eE.prototype.clear=function(){this.__data__=new eg,this.size=0},eE.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eE.prototype.get=function(e){return this.__data__.get(e)},eE.prototype.has=function(e){return this.__data__.has(e)},eE.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eg){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eh(n)}return r.set(e,t),this.size=r.size,this};var eS=X?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}(X(e=Object(e)),function(t){return K.call(e,t)})}:function(){return[]},ew=eb;function eD(e){if(null!=e){try{return z.call(e)}catch{}try{return e+""}catch{}}return""}function eA(e,t){return e===t||e!=e&&t!=t}(et&&ew(new et(new ArrayBuffer(1)))!=T||er&&ew(new er)!=m||en&&ew(en.resolve())!=h||ei&&ew(new ei)!=E||eo&&ew(new eo)!=b)&&(ew=function(e){var t=eb(e),r=t==g?e.constructor:void 0,n=r?eD(r):"";if(n)switch(n){case es:return T;case el:return m;case ec:return h;case eu:return E;case ef:return b}return t});var eM=e_(function(){return arguments}())?e_:function(e){return eF(e)&&G.call(e,"callee")&&!K.call(e,"callee")},eL=Array.isArray,eN=Q||function(){return!1};function eR(e){if(!eP(e))return!1;var t=eb(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ej(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eP(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eF(e){return"object"==typeof e&&!!e}var eU=j?function(e){return j(e)}:function(e){return eF(e)&&ej(e.length)&&!!O[eb(e)]};function ex(e){return null!=e&&ej(e.length)&&!eR(e)?function(e){var t,r=eL(e),n=!r&&eM(e),i=!r&&!n&&eN(e),o=!r&&!n&&!i&&eU(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)G.call(e,c)&&!(a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||(t=l,(t??=0x1fffffffffffff)&&("number"==typeof c||C.test(c))&&c>-1&&c%1==0&&c<t)))&&s.push(c);return s}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||k))return ee(e);var t,r=[];for(var n in Object(e))G.call(e,n)&&"constructor"!=n&&r.push(n);return r}(e)}r.exports=function(e,t){return function e(t,r,n,i,o){return t===r||(null!=t&&null!=r&&(eF(t)||eF(r))?function(e,t,r,n,i,o){var a=eL(e),d=eL(t),h=a?l:ew(e),b=d?l:ew(t);h=h==s?g:h,b=b==s?g:b;var I=h==g,C=b==g,O=h==b;if(O&&eN(e)){if(!eN(t))return!1;a=!0,I=!1}if(O&&!I)return o||=new eE,a||eU(e)?eT(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new H(e),new H(t)));case c:case u:case p:return eA(+e,+t);case f:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case m:var s=P;
2case E:var l=1&n;if(s||=F,e.size!=t.size&&!l)break;var d=a.get(e);if(d)return d==t;n|=2,a.set(e,t);var g=eT(s(e),s(t),n,i,o,a);return a.delete(e),g;case"[object Symbol]":if(em)return em.call(e)==em.call(t)}return!1}(e,t,h,r,n,i,o);if(!(1&r)){var S=I&&G.call(e,"__wrapped__"),w=C&&G.call(t,"__wrapped__");if(S||w)return i(S?e.value():e,w?t.value():t,r,n,o||=new eE)}return!!O&&function(e,t,r,n,i,o){var a=1&r,s=eI(e),l=s.length;if(l!=eI(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:G.call(t,u)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var d=!0;o.set(e,t),o.set(t,e);for(var m=a;++c<l;){var p=e[u=s[c]],g=t[u];if(n)var h=a?n(g,p,u,t,e,o):n(p,g,u,e,t,o);if(!(void 0===h?p===g||i(p,g,r,n,o):h)){d=!1;break}m||="constructor"==u}if(d&&!m){var v=e.constructor,E=t.constructor;v!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E)&&(d=!1)}return o.delete(e),o.delete(t),d}(e,t,r,n,i,o||=new eE)}(t,r,n,i,e,o):t!=t&&r!=r)}(e,t)}},()=>(r||(t((r={exports:{}}).exports,r),t=null),r.exports)),R=d(N(),1),j=((n={}).FIELD_ID="data-contentful-field-id",n.ENTRY_ID="data-contentful-entry-id",n.ASSET_ID="data-contentful-asset-id",n.LOCALE="data-contentful-locale",n.SPACE="data-contentful-space",n.ENVIRONMENT="data-contentful-environment",n),P=((i={}).MOUSE_MOVE="MOUSE_MOVE",i.SCROLL_START="SCROLL_START",i.SCROLL_END="SCROLL_END",i.RESIZE_START="RESIZE_START",i.RESIZE_END="RESIZE_END",i.TAGGED_ELEMENTS="TAGGED_ELEMENTS",i.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",i),F={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},U={0:8203,1:8204,2:8205,3:65279},x={0:String.fromCodePoint(U[0]),1:String.fromCodePoint(U[1]),2:String.fromCodePoint(U[2]),3:String.fromCodePoint(U[3])};[,,,,].fill(String.fromCodePoint(U[0])).join(""),Object.fromEntries(Object.entries(x).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(F).map(e=>e.reverse()));var k=`${Object.values(F).map(e=>`\\u{${e.toString(16)}}`).join("")}`,B=RegExp(`[${k}]{4,}`,"gu");function z(e,t){return e.href===t.href}function G({root:e=window.document,options:t}){var r,n;let i,o=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${j.ASSET_ID}][${j.FIELD_ID}], [${j.ENTRY_ID}][${j.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(j.FIELD_ID)||!e.hasAttribute(j.ENTRY_ID)&&!e.hasAttribute(j.ASSET_ID))))return null;let r={fieldId:e.getAttribute(j.FIELD_ID),locale:e.getAttribute(j.LOCALE)??t.locale,environment:e.getAttribute(j.ENVIRONMENT)??t.environment,space:e.getAttribute(j.SPACE)??t.space,manuallyTagged:!0};if(!r.fieldId)return D.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(j.ENTRY_ID)??e.getAttribute(j.ASSET_ID),sharedProps:r}),null;let n=e.getAttribute(j.ENTRY_ID);if(n)return{...r,entryId:n};let i=e.getAttribute(j.ASSET_ID);return i?{...r,assetId:i}:null}(e,t)})).filter(({attributes:e})=>null!==e),a=[];for(let{node:t,text:n}of(r="body"in e?e.body:e,i=[],"function"==typeof r.matches&&r.matches("*")&&(i=[r]),[...i,...Array.from(r.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>{var t;return{node:e,text:(t=e).matches("input[type=submit], input[type=button], input[type=reset]")?t.value:t.matches("img, video")?t.alt:Array.from(t.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")}}).filter(({text:e})=>!!(e&&e.match(B))))){let e=function(e){let t=e.match(_);return t?function(e,t=!1){let r=Array.from(e),n=1/0,i=-1;for(let e=0;e<r.length;++e)r[e]===v[0]&&r[e+1]===v[1]&&r[e+2]===v[2]&&r[e+3]===v[3]&&(n=Math.min(n,e),i=Math.max(i,e));if(-1===i)return function(e,t){let r=[];for(let t=.5*e.length;t--;){let n=`${y[e[2*t].codePointAt(0)]}${y[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let n=[],i=[r.join("")],o=10;for(;i.length;){let e=i.shift();try{if(n.push(JSON.parse(e)),t)break}catch(r){if(!o--)throw r;let t=+r.message.match(/\sposition\s(\d+)$/)?.[1];if(!t)throw r;i.unshift(e.substring(0,t),e.substring(t))}}return n}(r,t);for(let e=n;e<=i;++e)if(!((r.length-e)%4))try{let n=r.slice(e+4),i=new Uint8Array(n.length/4);for(let e=0;e<i.length;e++)i[e]=E[n[4*e]]<<6|E[n[4*e+1]]<<4|E[n[4*e+2]]<<2|E[n[4*e+3]];let o=new TextDecoder().decode(i);if(t){let e=o.indexOf("\0");return -1===e&&(e=o.length),[JSON.parse(o.slice(0,e))]}
2return o.split("\0").filter(Boolean).map(e=>JSON.parse(e))}catch{}return[]}(t[0],!0)[0]:void 0}(n);if(!e||!e.origin.includes("contentful.com")){D.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from Contentful",{node:t,sourceMap:e});continue}if(!(function(e,t){for(let r of t)if(r.element===e||r.element.contains(e))return!0;return!1}(t,o)||a.some(r=>r.element.contains(t)&&z(r.sourceMap,e)))){if(t.matches("img")){let r=t.closest("figure")||t.closest("picture")||t;a.push({element:r,sourceMap:e});continue}a.push({element:t,sourceMap:e})}}let s=a.filter((e,t)=>a.findIndex(t=>!(!z(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of s){let r=null;if(t.href){let n=function(e){try{let t=new URL(e),r=t.searchParams.get("focusedField"),n=t.searchParams.get("focusedLocale"),i=t.pathname.split("/").filter(Boolean),o=i.indexOf("spaces"),a=i.indexOf("environments"),s=-1===o?void 0:i[o+1],l=-1===a?void 0:i[a+1],c,u,f=i.indexOf("entries"),d=i.indexOf("assets");return -1===f?-1!==d&&(c="Asset",u=i[d+1]):(c="Entry",u=i[f+1]),c&&u?r?n?s&&l?{entityId:u,entityType:c,fieldId:r,locale:n,space:s,environment:l}:(console.warn("Missing space or environment in href path",{href:e}),null):(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null):(console.warn("Unable to determine entityType or entityId from href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}(t.href);if(!n)continue;if("Asset"===n.entityType)r={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,assetId:n.entityId};else if("Entry"===n.entityType)r={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,entryId:n.entityId};else{D.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(n=t.contentful)&&"string"==typeof n.entity&&"string"==typeof n.field&&"string"==typeof n.locale&&"string"==typeof n.space&&"string"==typeof n.environment&&("Asset"===n.entityType||"Entry"===n.entityType)){let n=t.contentful;if(!n.entity||!n.field||!n.locale||!n.space||!n.environment){D.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:e,sourceMap:t});continue}let i={fieldId:n.field,locale:n.locale,space:n.space,environment:n.environment};if("Asset"===n.entityType)i.assetId=n.entity,r=i;else if("Entry"===n.entityType)i.entryId=n.entity,r=i;else{D.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{D.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}o.push({element:e,attributes:r})}let l=o.filter(({attributes:e})=>e?.manuallyTagged===!1||!e?.manuallyTagged).length;return{taggedElements:o,manuallyTaggedCount:o.length-l,automaticallyTaggedCount:l,autoTaggedElements:s}}function $({options:e}){return[...new Set(G({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}var Y=class{options;delay=300;isScrolling=!1;scrollTimeout;isResizing=!1;resizeTimeout;hoveredElement;taggedElements=[];manuallyTaggedCount=0;automaticallyTaggedCount=0;releaseId;intersectionObserver;observersCB=[];cleanupCB=[];constructor(e){this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let r of e)if(r.isIntersecting)for(let e of t)e.element===r.target&&(e.coordinates=r.intersectionRect,e.isVisible=r.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}init=()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()};cleanup=()=>{this.observersCB.forEach(e=>
2e()),this.cleanupCB.forEach(e=>e())};receiveMessage=e=>{if(e.method===P.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t,releaseId:r}=e;this.releaseId=r,t?this.init():this.cleanup()}};observe=e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))};addScrollListener=()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,M(P.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,M(P.SCROLL_END,{},e),this.updateElements()},this.delay)},r={capture:!0,passive:!0};return window.addEventListener("scroll",t,r),()=>window.removeEventListener("scroll",t,r)};addMutationListener=e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[j.ENTRY_ID,j.FIELD_ID,j.LOCALE,j.SPACE,j.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()};addResizeListener=()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,M(P.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,M(P.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()};addHoverListener=()=>{let e=L(e=>{let t;for(let r of e){let e=r;if("BODY"===e.nodeName)break;let n=this.taggedElements.find(t=>t.element===e);if(n){t=n;break}}this.hoveredElement=t?.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)};sendTaggedElements=()=>{M(P.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement,snapshot:A.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(e=>`${e.name}="${e.value}"`).join(" ")}:{[e.element.tagName.toLowerCase()]:e.element.innerHTML}})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount,...void 0!==this.releaseId&&{releaseId:this.releaseId}},this.options.targetOrigin)};updateElements=()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:r}=G({options:this.options}),n=((e,t=window.document)=>((e,t=window.document)=>e.map(e=>({...e,isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:((e,t,r=window.document)=>{let{top:n,right:i,bottom:o,left:a}=t,s=r.elementFromPoint(a+1,n+1),l=r.elementFromPoint(i-1,n+1),c=r.elementFromPoint(a+1,o-1),u=r.elementFromPoint(i-1,o-1),f=t=>!!t&&(e===t||e.contains(t));return[f(s),f(l),f(c),f(u)].filter(Boolean).length<2})(e.element,e.coordinates,t)})))(e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t})),t))(e);(0,R.default)(n,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=n,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=r)}},{parse:V,stringify:Z}=JSON,{keys:q}=Object,H=String,K=(e,t)=>t,W=(e,t,r)=>{let n=H(t.push(r)-1);return e.set(r,n),n},J=((o=J||{}).CONNECTED="CONNECTED",o.DISCONNECTED="DISCONNECTED",o.ERROR="ERROR",o.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",o.URL_CHANGED="URL_CHANGED",o.SUBSCRIBED="SUBSCRIBED",o.UNSUBSCRIBED="UNSUBSCRIBED",o.ENTRY_UPDATED="ENTRY_UPDATED",o.ENTRY_SAVED="ENTRY_SAVED",o.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",o),X=class{subscriptions=new Map;defaultLocale;sendMessage;constructor({locale:e,targetOrigin:t}){this.defaultLocale=e,this.sendMessage=(e,r)=>M(e,r,t)}async receiveMessage(e){if(e.method===J.ENTRY_UPDATED){let{data:t,subscriptionId:r}=e,n=this.subscriptions.get(r);n?(n.callback(t),n.data=t,this.subscriptions.set(r,n)):D.error("Received an update for an unknown subscription",{subscriptionId:r,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,r=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let n={locale:r,event:"edit",id:t,config:(e=>
2{let t=new Map,r=[],n=[],i=+W(t,r,K.call({"":e},"",e)),o=!i;for(;i<r.length;)o=!0,n[i]=Z(r[i++],a,void 0);return"["+n.join(",")+"]";function a(e,n){if(o)return o=!o,n;let i=K.call(this,e,n);switch(typeof i){case"object":if(null===i)break;case"string":return t.get(i)||W(t,r,i)}return i}})(e)};return this.sendMessage(J.SUBSCRIBED,n),()=>{this.sendMessage(J.UNSUBSCRIBED,n),this.subscriptions.delete(t)}}},Q=class{locale;options;inspectorModeEnabled;subscription;constructor({locale:e,options:t,inspectorModeEnabled:r}){this.locale=e,this.options=t,this.inspectorModeEnabled=r}subscribe(e){return this.subscription&&D.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===J.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?$({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}},ee=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"],et=class e{static initialized=!1;static inspectorMode=null;static liveUpdates=null;static saveEvent=null;static inspectorModeEnabled=!0;static liveUpdatesEnabled=!0;static locale;static space;static environment;static sendMessage;static targetOrigin;static init(t){if("object"!=typeof t||!t?.locale)throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:r,enableInspectorMode:n,enableLiveUpdates:i,locale:o,environment:a,space:s,targetOrigin:l}=t;{if(!function(){try{return window.top?.location.href!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(r&&(S=r),"boolean"==typeof n&&(this.inspectorModeEnabled=n),"boolean"==typeof i&&(this.liveUpdatesEnabled=i),this.locale=o,this.space=s,this.environment=a,this.initTargetOrigin(l),this.initialized)return D.log("You have already initialized the Live Preview SDK."),Promise.resolve(e.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new Y({locale:o,space:s,environment:a,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:t.experimental?.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new X({locale:o,targetOrigin:this.targetOrigin}),this.saveEvent=new Q({locale:o,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{if("object"==typeof e.data&&e.data&&"source"in e.data&&"live-preview-editor"===e.data.source){if(D.log("Received message",e.data),e.data.method===J.DEBUG_MODE_ENABLED)return void(S=!0);this.inspectorModeEnabled&&this.inspectorMode?.receiveMessage(e.data),this.liveUpdatesEnabled&&(this.liveUpdates?.receiveMessage(e.data),this.saveEvent?.receiveMessage(e.data))}}),function(e,t=500){let r=window.location.href,n=setInterval(()=>{let t=window.location.href;t!==r&&(r=t,e(t))},t)}(()=>{M(J.URL_CHANGED,{action:J.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${j.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:c,manuallyTaggedCount:u,automaticallyTaggedCount:f}=this.inspectorModeEnabled?G({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},d=c.length;return M(J.CONNECTED,{action:J.CONNECTED,connected:!0,tags:d,taggedElementCount:d,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:u,automaticallyTaggedElementCount:f,hideCoveredElementOutlines:t.experimental?.hideCoveredElementOutlines,version:O},this.targetOrigin),this.initialized=!0,Promise.resolve(e.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?ee.find(t=>e.contains(t)):ee.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let r="string"==typeof e?e:"edit",n="object"==typeof e?e:t;if("save"===r){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(n.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(n)}static getProps(e){let{fieldId:t,locale:r,environment:n,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let o={...r?{[j.LOCALE]:r}:{},...n?{[j.ENVIRONMENT]:n}:{},...i?{[j.SPACE]:i}:{},[j.FIELD_ID]:t};
2if(r&&(o[j.LOCALE]=r),void 0!==e.assetId)return{...o,[j.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...o,[j.ENTRY_ID]:e.entryId}}return D.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){let t={locale:this.locale,environment:this.environment,space:this.space};if(void 0!==e.assetId&&e.fieldId||void 0!==e.entryId&&e.fieldId){var r,n;return void(r={...t,...e},n=this.targetOrigin,M("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...r},n))}D.error("Please provide field id and entry/asset id to openEntryInEditor.",{...e})}static getEntryList(){return $({options:{locale:this.locale,space:this.space,environment:this.environment}})}},er=e.i(533337),en=e.i(968946),ei=d(N(),1),eo=(0,er.createContext)(null);e.s(["ContentfulLivePreviewProvider",0,function({children:e,locale:t,space:r,environment:n,debugMode:i=!1,enableInspectorMode:o=!0,enableLiveUpdates:a=!0,targetOrigin:s,experimental:l}){if(!t)throw Error('ContentfulLivePreviewProvider has to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');et.init({locale:t,space:r,environment:n,debugMode:i,enableInspectorMode:o,enableLiveUpdates:a,targetOrigin:s,experimental:l});let c=(0,er.useMemo)(()=>({locale:t,space:r,environment:n,debugMode:i,enableInspectorMode:o,enableLiveUpdates:a,targetOrigin:s}),[t,r,n,i,o,a,s]);return(0,en.jsx)(eo.Provider,{value:c,children:e})},"useContentfulInspectorMode",0,function(e){let t=(0,er.useContext)(eo);return(0,er.useCallback)(r=>t?.enableInspectorMode?et.getProps({...e,...r}):null,[t?.enableInspectorMode,e])},"useContentfulLiveUpdates",0,function(e,t,r=!1){var n,i;let o,a,[s,l]=(0,er.useState)({data:e,version:1}),c=(0,er.useRef)(e),u=(0,er.useRef)(L(l)),f=(0,er.useContext)(eo),d="object"==typeof t?t:{locale:t,skip:r},m=(0,er.useMemo)(()=>(!f||!!f.enableLiveUpdates)&&!d.skip&&!!(Array.isArray(e)&&e.length||e&&"object"==typeof e&&Object.keys(e).length),[f,d.skip,e]);return n=()=>{if(c.current!==e&&(l({data:e,version:1}),c.current=e),m)return et.subscribe("edit",{data:e,locale:d.locale,query:d.query,callback:e=>{u.current(t=>({data:e,version:t.version+1}))}})},i=[e,m,d.locale,d.query],(0,er.useEffect)(n,(o=(0,er.useRef)(i),a=(0,er.useRef)(0),(0,ei.default)(i,o.current)||(o.current=i,a.current+=1),(0,er.useMemo)(()=>o.current,[a.current]))),s.data}],95691)},688620,272655,e=>{"use strict";var t=e.i(274466),r=e.i(597576),n=e.i(533337),i=e.i(901674),o=e.i(492260),a=e.i(44060),s=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function l(e,t,n){var i=e.locale,o=e.formats,a=e.onError;void 0===n&&(n={});var l=n.format,c=l&&(0,r.getNamedFormat)(o,"number",l,a)||{};return t(i,(0,r.filterProps)(n,s,c))}function c(e,t,r,n){void 0===n&&(n={});try{return l(e,t,n).format(r)}catch(t){e.onError(new a.IntlFormatError("Error formatting number.",e.locale,t))}return String(r)}function u(e,t,r,n){void 0===n&&(n={});try{return l(e,t,n).formatToParts(r)}catch(t){e.onError(new a.IntlFormatError("Error formatting number.",e.locale,t))}return[]}var f=e.i(512767),d=["numeric","style"];function m(e,t,n,i,o){void 0===o&&(o={}),i||(i="second"),Intl.RelativeTimeFormat||e.onError(new f.FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',f.ErrorCode.MISSING_INTL_API));try{var s,l,c,u,m,p;return(s=o,l=e.locale,c=e.formats,u=e.onError,void 0===s&&(s={}),p=!!(m=s.format)&&(0,r.getNamedFormat)(c,"relative",m,u)||{},t(l,(0,r.filterProps)(s,d,p))).format(n,i)}catch(t){e.onError(new a.IntlFormatError("Error formatting relative time.",e.locale,t))}return String(n)}var p=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function g(e,n,i,o){var a=e.locale,s=e.formats,l=e.onError,c=e.timeZone;void 0===o&&(o={});var u=o.format,f=(0,t.__assign)((0,t.__assign)({},c&&{timeZone:c}
2),u&&(0,r.getNamedFormat)(s,n,u,l)),d=(0,r.filterProps)(o,p,f);return"time"!==n||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,t.__assign)((0,t.__assign)({},d),{hour:"numeric",minute:"numeric"})),i(a,d)}function h(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return g(e,"date",t,void 0===o?{}:o).format(s)}catch(t){e.onError(new a.IntlFormatError("Error formatting date.",e.locale,t))}return String(s)}function v(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return g(e,"time",t,void 0===o?{}:o).format(s)}catch(t){e.onError(new a.IntlFormatError("Error formatting time.",e.locale,t))}return String(s)}function E(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=n[0],s=n[1],l=n[2],c=e.timeZone,u=e.locale,f=e.onError,d=(0,r.filterProps)(void 0===l?{}:l,p,c?{timeZone:c}:{});try{return t(u,d).formatRange(o,s)}catch(t){f(new a.IntlFormatError("Error formatting date time range.",e.locale,t))}return String(o)}function y(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return g(e,"date",t,void 0===o?{}:o).formatToParts(s)}catch(t){e.onError(new a.IntlFormatError("Error formatting date.",e.locale,t))}return[]}function b(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],s="string"==typeof i?new Date(i||0):i;try{return g(e,"time",t,void 0===o?{}:o).formatToParts(s)}catch(t){e.onError(new a.IntlFormatError("Error formatting time.",e.locale,t))}return[]}var _=["type"];function T(e,t,n,i){var o=e.locale,s=e.onError;void 0===i&&(i={}),Intl.PluralRules||s(new f.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',f.ErrorCode.MISSING_INTL_API));var l=(0,r.filterProps)(i,_);try{return t(o,l).select(n)}catch(e){s(new a.IntlFormatError("Error formatting plural.",o,e))}return"other"}var I=e.i(131370),C=e.i(870371);e.i(160659);var O=e.i(195823);function S(e,r){return Object.keys(e).reduce(function(n,i){return n[i]=(0,t.__assign)({timeZone:r},e[i]),n},{})}function w(e,r){return Object.keys((0,t.__assign)((0,t.__assign)({},e),r)).reduce(function(n,i){return n[i]=(0,t.__assign)((0,t.__assign)({},e[i]||{}),r[i]||{}),n},{})}function D(e,r){if(!r)return e;var n=C.IntlMessageFormat.formats;return(0,t.__assign)((0,t.__assign)((0,t.__assign)({},n),e),{date:w(S(n.date,r),S(e.date||{},r)),time:w(S(n.time,r),S(e.time||{},r))})}var A=function(e,r,n,i,o){var s=e.locale,l=e.formats,c=e.messages,u=e.defaultLocale,f=e.defaultFormats,d=e.fallbackOnEmptyString,m=e.onError,p=e.timeZone,g=e.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,v=n.defaultMessage;(0,I.invariant)(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var E=String(h),y=c&&Object.prototype.hasOwnProperty.call(c,E)&&c[E];if(Array.isArray(y)&&1===y.length&&y[0].type===O.TYPE.literal)return y[0].value;if(!i&&y&&"string"==typeof y&&!g)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=(0,t.__assign)((0,t.__assign)({},g),i||{}),l=D(l,p),f=D(f,p),!y){if(!1===d&&""===y)return y;if((!v||s&&s.toLowerCase()!==u.toLowerCase())&&m(new a.MissingTranslationError(n,s)),v)try{var b=r.getMessageFormat(v,u,f,o);return b.format(i)}catch(e){return m(new a.MessageFormatError('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),s,n,e)),"string"==typeof v?v:E}return E}try{var b=r.getMessageFormat(y,s,l,(0,t.__assign)({formatters:r},o||{}));return b.format(i)}catch(e){m(new a.MessageFormatError('Error formatting message: "'.concat(E,'", using ').concat(v?"default message":"id"," as fallback."),s,n,e))}
2if(v)try{var b=r.getMessageFormat(v,u,f,o);return b.format(i)}catch(e){m(new a.MessageFormatError('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),s,n,e))}return"string"==typeof y?y:"string"==typeof v?v:E},M=["type","style"],L=Date.now();function N(e,t,r,n){void 0===n&&(n={});var i=R(e,t,r,n).reduce(function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===i.length?i[0]:0===i.length?"":i}function R(e,n,i,o){var s=e.locale,l=e.onError;void 0===o&&(o={}),Intl.ListFormat||l(new f.FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',f.ErrorCode.MISSING_INTL_API));var c=(0,r.filterProps)(o,M);try{var u={},d=i.map(function(e,t){if("object"==typeof e){var r="".concat(L,"_").concat(t,"_").concat(L);return u[r]=e,r}return String(e)});return n(s,c).formatToParts(d).map(function(e){return"literal"===e.type?e:(0,t.__assign)((0,t.__assign)({},e),{value:u[e.value]||e.value})})}catch(e){l(new a.IntlFormatError("Error formatting list.",s,e))}return i}var j=["style","type","fallback","languageDisplay"];function P(e,t,n,i){var o=e.locale,s=e.onError;Intl.DisplayNames||s(new f.FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',f.ErrorCode.MISSING_INTL_API));var l=(0,r.filterProps)(i,j);try{return t(o,l).of(n)}catch(e){s(new a.IntlFormatError("Error formatting display name.",o,e))}}var F=e.i(16894);function U(e){return e?Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=(0,F.isFormatXMLElementFn)(n)?(0,i.assignUniqueKeysToParts)(n):n,t},{}):e}var x=function(e,r,i,o){for(var a=[],s=4;s<arguments.length;s++)a[s-4]=arguments[s];var l=U(o),c=A.apply(void 0,(0,t.__spreadArray)([e,r,i,l],a,!1));return Array.isArray(c)?n.Children.toArray(c):c},k=function(e,n){var o,s,l,f,d,p,g,_=e.defaultRichTextElements,I=(0,t.__rest)(e,["defaultRichTextElements"]),C=U(_),O=(o=(0,t.__assign)((0,t.__assign)((0,t.__assign)({},i.DEFAULT_INTL_CONFIG),I),{defaultRichTextElements:C}),s=(0,r.createFormatters)(n),f=(l=(0,t.__assign)((0,t.__assign)({},r.DEFAULT_INTL_CONFIG),o)).locale,d=l.defaultLocale,p=l.onError,f?!Intl.NumberFormat.supportedLocalesOf(f).length&&p?p(new a.MissingDataError('Missing locale data for locale: "'.concat(f,'" in Intl.NumberFormat. Using default locale: "').concat(d,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(f).length&&p&&p(new a.MissingDataError('Missing locale data for locale: "'.concat(f,'" in Intl.DateTimeFormat. Using default locale: "').concat(d,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(p&&p(new a.InvalidConfigError('"locale" was not configured, using "'.concat(d,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),l.onWarn&&l.defaultRichTextElements&&"string"==typeof(g=l.messages||{})[Object.keys(g)[0]]&&l.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution'),(0,t.__assign)((0,t.__assign)({},l),{formatters:s,formatNumber:c.bind(null,l,s.getNumberFormat),formatNumberToParts:u.bind(null,l,s.getNumberFormat),formatRelativeTime:m.bind(null,l,s.getRelativeTimeFormat),formatDate:h.bind(null,l,s.getDateTimeFormat),formatDateToParts:y.bind(null,l,s.getDateTimeFormat),formatTime:v.bind(null,l,s.getDateTimeFormat),formatDateTimeRange:E.bind(null,l,s.getDateTimeFormat),formatTimeToParts:b.bind(null,l,s.getDateTimeFormat),formatPlural:T.bind(null,l,s.getPluralRules),formatMessage:A.bind(null,l,s),$t:A.bind(null,l,s),formatList:N.bind(null,l,s.getListFormat),formatListToParts:R.bind(null,l,s.getListFormat),formatDisplayName:P.bind(null,l,s.getDisplayNames)})),S={locale:O.locale,timeZone:O.timeZone,fallbackOnEmptyString:O.fallbackOnEmptyString,formats:O.formats,defaultLocale:O.defaultLocale,defaultFormats:O.defaultFormats,messages:O.messages,onError:O.onError,defaultRichTextElements:C};return(0,t.__assign)((0,t.__assign)({},O),{formatMessage:x.bind(null,S,O.formatters),$t:x.bind(null,S,O.formatters)})};function B(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}e.s(["createIntl",0,k],272655);var z=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,r.createIntlCache)(),t.state={cache:t.cache,intl:k(B(t.props),t.cac
2he),prevConfig:B(t.props)},t}return(0,t.__extends)(a,e),a.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=B(e);return(0,i.shallowEqual)(r,o)?null:{intl:k(o,n),prevConfig:o}},a.prototype.render=function(){return(0,i.invariantIntlContext)(this.state.intl),n.createElement(o.Provider,{value:this.state.intl},this.props.children)},a.displayName="IntlProvider",a.defaultProps=i.DEFAULT_INTL_CONFIG,a}(n.PureComponent);e.s(["default",0,z],688620)},270910,e=>{"use strict";var t=e.i(15574),r=e.i(237681);e.i(193036);var n=e.i(133648),i=e.i(789173);function o(e){let{deviceId:n,url:i}=e;if(void 0===n)return i;let o=new URL(i);return o.searchParams.has(r.ANALYTICS_DEVICE_ID_AS_QUERY_PARAM_KEY)||o.searchParams.set(r.ANALYTICS_DEVICE_ID_AS_QUERY_PARAM_KEY,(0,t.getAnalyticsId)(n)),o}e.s(["appendCrossOverDeviceIdParamsToUrl",0,o,"maybeAppendCrossOverDeviceIdToNextURL",0,function(e,t){return e.origin.endsWith(n.publicDomainName)||(e.origin===n.domainBaseUrl||e.origin===n.frontDomainBaseUrl)&&i.ALLOWED_APP_ROUTES_FOR_DEVICE_ATTRIBUTION.has(e.pathname)?o({url:e,deviceId:t}):e}])},438542,e=>{"use strict";e.s(["CANCEL_NEXTJS_ROUTER_NAVIGATION",0,"Canceled Next.js router navigation"])},956296,e=>{"use strict";e.s(["BlockTable",0,"block","CollectionTable",0,"collection","CustomEmojiTable",0,"custom_emoji","MarketplaceProfileTable",0,"marketplace_profile","SpaceTable",0,"space","TeamTable",0,"team","ThreadTable",0,"thread","UserTable",0,"notion_user"])}]); 3 4//# debugId=0e30a98d-2ba7-b4c4-c0b1-f92c6f1f7a33 5//# sourceMappingURL=2_b0jnxfe-3pv.js.map
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.