

=>{if(!c.includes(t)&&!o.includes(t)){let o=i(u,t);if(o&&(o.writable||o.configurable)){let{value:r,get:n,set:i,enumerable:l=!1}=o,c={};void 0!==r?c.value=r:n?c.get=n:i&&(c.set=i);try{let o=e({context:u,property:t,...c,enumerable:l});p[t]=o}catch(e){if(!(e instanceof TypeError))throw e;try{p[t]=o.value||o.get||o.set}catch{}}}}});let y={originalObject:u,originalProperties:p};if(!a&&void 0!==u?.prototype){let e=r({context:u,property:"prototype",propertiesToExclude:s,skipPrototype:!0});e instanceof Error||(y.originalPrototype=e?.originalObject,y.originalPrototypeProperties=e?.originalProperties)}return e({context:n,property:l,value:u,enumerable:f?.enumerable}),y}function n(t,o){let r=(o||globalThis)[t],n=i(o||globalThis,t);return r&&n&&(n.writable||n.configurable)?(Object.freeze(r),e({context:globalThis,property:t,value:r})):r}function i(e,t){if(e&&t)try{return Reflect.getOwnPropertyDescriptor(e,t)}catch{return}}function l(e){if("string"!=typeof e)return e;try{return decodeURIComponent(e).toLowerCase().trim()}catch{return e.toLowerCase().trim()}}function c(e,t){let o="";if("string"==typeof e)o=e.split("=")[0]?.trim()||"";else{if(!e||"string"!=typeof e.name)return!1;o=e.name}return t.has(l(o)||"")}function a(e,t){let o;return o="string"==typeof e?e.split(";").map(e=>e.trim()).filter(e=>e.length>0):e||[],o.filter(e=>!c(e,t))}var s=null;function u(){return null===s&&(s=typeof Document>"u"?void 0:Object.getOwnPropertyDescriptor(Document.prototype,"cookie")),s}function p(t,o){if(!globalThis?.cookieStore)return;let r=globalThis.cookieStore.get.bind(globalThis.cookieStore),n=globalThis.cookieStore.getAll.bind(globalThis.cookieStore),i=globalThis.cookieStore.set.bind(globalThis.cookieStore),l=globalThis.cookieStore.delete.bind(globalThis.cookieStore);return e({context:globalThis.CookieStore.prototype,property:"get",value:async function(e){return c(("string"==typeof e?e:e.name)||"",t)?null:r.call(this,e)},enumerable:!0}),e({context:globalThis.CookieStore.prototype,property:"getAll",value:async function(){return a(await n.apply(this,Array.from(arguments)),t)},enumerable:!0}),e({context:globalThis.CookieStore.prototype,property:"set",value:async function(){let e=Array.from(arguments);if(!c(1===e.length?e[0].name:e[0],t))return i.apply(this,e);o&&console.warn(o)},enumerable:!0}),e({context:globalThis.CookieStore.prototype,property:"delete",value:async function(){let e=Array.from(arguments);if(!c(1===e.length?e[0].name:e[0],t))return l.apply(this,e)},enumerable:!0}),e({context:globalThis.cookieStore,property:"prototype",value:globalThis.CookieStore.prototype,enumerable:!1}),e({context:globalThis,property:"cookieStore",value:globalThis.cookieStore,enumerable:!0}),{get:r,getAll:n,set:i,delete:l}}var f=["TextEncoder","TextDecoder","XMLHttpRequestEventTarget","EventTarget","URL","JSON","Reflect","Object","Array","Map","Set","WeakMap","WeakSet","Promise","Symbol","Error"],y=["addEventListener","removeEventListener","dispatchEvent","encodeURI","encodeURIComponent","decodeURI","decodeURIComponent"];const d=(e="",t="",o="/")=>`${e}=; ${t?`domain=${t};`:""} max-age=0; path=${o}; expires=Thu, 01 Jan 1970 00:00:01 GMT`,g="client-session-bind",b=[g,"client-binding","svSession","smSession","server-session-bind","wixSession2","wixSession3"].map(e=>e.toLowerCase()),{cookie:h}=function(t,o){let r=new Set(t);return e({context:document,property:"cookie",set:{func:e=>function(e,t,o,r){let n=u(),i=l(t.split(";")[0]||"")||"";[...o].every(e=>!i.startsWith(e.toLowerCase()))&&n?.set?n.set.call(e,t):r&&console.warn(r)}(document,e,r,o)},get:{func:()=>function(e,t){let o=u();if(!o?.get)throw new Error("Cookie descriptor or getter not available");return a(o.get.call(e),t).join("; ")}(document,r)},enumerable:!0}),{cookieStore:p(r,o),cookie:u()}}(b),m="tbReady",v="security_overrideGlobals",{experiments:w,siteFeaturesConfigs:T,accessTokensUrl:S}=window.viewerModel,k=S,x={},E=(()=>{const e=((e,t)=>{try{const o=t?t.get.call(document):document.cookie;return o.split(";").map(e=>e.trim()).filter(t=>t?.startsWith(e))[0]?.split("=")[1]}catch(e){return""}})(g,h);return(()=>{const e=d(g),t=d(g,location.hostname);h.set.call(document,e),h.set.call(document,t)})(),e})();E&&(x["client-binding"]=E);const C=fetch;addEventListener(m,function e(t){const{logger:o}=t.detail;try{window.tb.init({fetch:C,fetchHeaders:x})}catch(e){const t=new Error("TB003");o.meter(`${v}_${t.message}`,{paramsOverrides:{errorType:v,eventString:t.message}}),window?.viewerModel?.mode.debug&&console.error(e)}finally{removeEventListener(m,e)}}),w["specs.thunderbolt.hardenFetchAndXHR"]||(window.fetchDynamicModel=()=>T.sessionManager.isRunningInDifferentSiteContext?Promise.resolve({}):fetch(k,{credentials:"same-origin",headers:x}).then(function(e){if(!e.ok)throw new Error(`[${e.status}]${e.statusText}`);return e.json()}),window.dynamicModelPromise=window.fetchDynamicModel())})(); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/handleAccessTokens.inline.698ac2a0.bundle.min.js.map

