PageSourceSearch

https://nordpass.com/_next/static/chunks/2ngzueybmgzf0.js?dpl=1-365-0

js nordpass.com collected 2026-10-01 08:32:31 UTC 46,540 bytes, 4 lines download raw bytes

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]="dbfc1bda-0188-d54e-b0e5-43fa15668f4b")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,136940,e=>{"use strict";var t=e.i(108604),r=e.i(843793),n=e.i(150568),o=e.i(799458),s=e.i(127994),i=e.i(937918),a=e.i(247421),l=e.i(88979),u=e.i(758834),c=e.i(875303);function d(e){let t=e,r=[];return{execute:e=>(!Number.isFinite(t)||t<=0?Promise.resolve():new Promise(e=>{let n=()=>{if(!Number.isFinite(t)||t<=0)return void e();let o=Date.now();for(;r.length>0&&r[0]<=o-1e3;)r.shift();if(r.length<t){r.push(o),e();return}let s=r[0]+1e3-o;setTimeout(n,s>0?s:0)};n()})).then(e),setLimit:e=>{t=e}}}let f=/\/v2\/cdn\/stories\/.+$/;function p(e){let t=e.headers.get("x-ratelimit-policy");if(!t||t.includes('"concurrent-requests"'))return;let r=t.match(/q=(\d+)/);if(r)return Math.min(Number.parseInt(r[1],10),1e3)}var h=class extends Error{response;constructor(e,t){super(e),this.name="ClientError",this.response={status:t.status,statusText:t.statusText,data:t.data}}};let y={bodySerializer:e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t)},b=e=>{let{allowReserved:t,explode:r,name:n,style:o,value:s}=e;if(!r){let e=(t?s:s.map(e=>encodeURIComponent(e))).join((e=>{switch(e){case"form":default:return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20"}})(o));switch(o){case"label":return`.${e}`;case"matrix":return`;${n}=${e}`;case"simple":return e;default:return`${n}=${e}`}}let i=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(o),a=s.map(e=>"label"===o||"simple"===o?t?e:encodeURIComponent(e):g({allowReserved:t,name:n,value:e})).join(i);return"label"===o||"matrix"===o?i+a:a},g=e=>{let{allowReserved:t,name:r,value:n}=e;if(null==n)return"";if("object"==typeof n)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${t?n:encodeURIComponent(n)}`},m=e=>{let{allowReserved:t,explode:r,name:n,style:o,value:s,valueOnly:i}=e;if(s instanceof Date)return i?s.toISOString():`${n}=${s.toISOString()}`;if("deepObject"!==o&&!r){let e=[];Object.entries(s).forEach(r=>{let[n,o]=r;e=[...e,n,t?o:encodeURIComponent(o)]});let r=e.join(",");switch(o){case"form":return`${n}=${r}`;case"label":return`.${r}`;case"matrix":return`;${n}=${r}`;default:return r}}let a=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(o),l=Object.entries(s).map(e=>{let[r,s]=e;return g({allowReserved:t,name:"deepObject"===o?`${n}[${r}]`:r,value:s})}).join(a);return"label"===o||"matrix"===o?a+l:l},v=/\{[^{}]+\}/g;function w(e){let t=void 0!==e.body;return t&&e.bodySerializer?"serializedBody"in e?void 0!==e.serializedBody&&""!==e.serializedBody?e.serializedBody:null:""!==e.body?e.body:null:t?e.body:void 0}let _=async(e,t)=>{let r="function"==typeof t?await t(e):t;if(r)return"bearer"===e.scheme?`Bearer ${r}`:"basic"===e.scheme?`Basic ${btoa(r)}`:r},T=function(){let{parameters:e={},...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r=>{let n=[];if(r&&"object"==typeof r)for(let o in r){let s=r[o];if(null==s)continue;let i=e[o]||t;if(Array.isArray(s)){let e=b({allowReserved:i.allowReserved,explode:!0,name:o,style:"form",value:s,...i.array});e&&n.push(e)}else if("object"==typeof s){let e=m({allowReserved:i.allowReserved,explode:!0,name:o,style:"deepObject",value:s,...i.object});e&&n.push(e)}else{let e=g({allowReserved:i.allowReserved,name:o,value:s});e&&n.push(e)}}return n.join("&")}},R=(e,t)=>!!t&&!!(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`)),k=async e=>{let{security:t,...r}=e;for(let e of t){if(R(r,e.name))continue;let t=await _(e,r.auth);if(!t)continue;let n=e.name??"Authorization";switch(e.in){case"query":r.query||(r.query={}),r.query[n]=t;break;case"cookie":r.headers.append("Cookie",`${n}=${t}`);break;default:r.headers.set(n,t)}}},E=e=>(e=>{let{baseUrl:t,path:r,query:n,querySerializer:o,url:s}=e,i=(t??"")+(s.startsWith("/")?s:`/${s}`);r&&(i=(e=>{let{path:t,url:r}=e,n=r,o=r.match(v);if(o)for(let e of o){let r=!1,o=e.substring(1,e.length-1),s="simple";o.endsWith("*")&&(r=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),s="label"):o.startsWith(";")&&(o=o.substring(1),s="matrix");let i=t[o];if(null==i)continue;if(Array.isArray(i)){n=n.replace(e,b({explode:r,name:o,style:s,value:i}));continue}if("object"==typeof i){n=n.replace(e,m({explode:r,name:o,style:s,value:i,valueOnly:!0}));continue}if("matrix"===s){n=n.replace(e,`;${g({name:o,value:i})}`);continue}let a=encodeURIComponent("label"===s?`.${i}`:i);n=n.replace(e,a)}return n})({path:r,url:i}));let a=n?o(n):"";return a.startsWith("?")&&(a=a.substring(1)),a&&(i+=`?${a}`),i})({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:"function"==typeof e.querySerializer?e.querySerializer:T(e.querySerializer),url:e.url}),S=(e,t)=>{let r={...e,...t};return r.baseUrl?.endsWith("/")&&(r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1)),r.headers=q(e.headers,t.headers),r},x=e=>{let t=[];return e.forEach((e,r)=>{t.push([r,e])}),t},q=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=new Headers;for(let e of t)if(e)for(let[t,r]of e instanceof Headers?x(e):Object.entries(e))if(null===r)n.delete(t);else if(Array.isArray(r))for(let e of r)n.append(t,e);else void 0!==r&&n.set(t,"object"==typeof r?JSON.stringify(r):r);return n};var A=class{fns=[];clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);this.fns[t]&&(this.fns[t]=null)}exists(e){let t=this.getInterceptorIndex(e);return!!this.fns[t]}getInterceptorIndex(e){return"number"==typeof e?this.fns[e]?e:-1:this.fns.indexOf(e)}update(e,t){let r=this.getInterceptorIndex(e);return!!this.fns[r]&&(this.fns[r]=t,e)}use(e){return this.fns.push(e),this.fns.length-1}};let O=T({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),j={"Content-Type":"application/json"},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...y,headers:j,parseAs:"auto",querySerializer:O,throwOnError:!1,timeout:1e4,...e}};
2class C extends Error{response;request;options;constructor(e,t,r){const n=e.status||0===e.status?e.status:"",o=e.statusText??"",s=`${n} ${o}`.trim(),i=s?`status code ${s}`:"an unknown error";super(`Request failed with ${i}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}}class L extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}class U extends Error{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new L(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}}let D=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),$="function"==typeof globalThis.AbortController,N="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,B="function"==typeof globalThis.ReadableStream,z="function"==typeof globalThis.FormData,I=["get","post","put","patch","head","delete"],M={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},G=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,W=Symbol("stop");class H{options;constructor(e){this.options=e}}let K=e=>new H(e),F={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},J={next:!0},V={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},Y=(e,t,r)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(e,s){if(s.enqueue(e),n){o+=n.byteLength;let e=0===t?0:o/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,o),transferredBytes:o},n)}n=e},flush(){n&&(o+=n.byteLength,r?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},n))}}))},X=e=>null!==e&&"object"==typeof e,Q=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t)if((!X(e)||Array.isArray(e))&&void 0!==e)throw TypeError("The `options` argument must be an object");return en({},...t)},Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new globalThis.Headers(e),n=t instanceof globalThis.Headers;for(let[e,o]of new globalThis.Headers(t).entries())n&&"undefined"===o||void 0===o?r.delete(e):r.set(e,o);return r};function ee(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:en(e[r]??[],t[r]??[])}let et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{beforeRequest:ee(e,t,"beforeRequest"),beforeRetry:ee(e,t,"beforeRetry"),afterResponse:ee(e,t,"afterResponse"),beforeError:ee(e,t,"beforeError")}},er=(e,t)=>{let r=new URLSearchParams;for(let n of[e,t])if(void 0!==n)if(n instanceof URLSearchParams)for(let[e,t]of n.entries())r.append(e,t);else if(Array.isArray(n))for(let e of n){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1]))}else if(X(n))for(let[e,t]of Object.entries(n))void 0!==t&&r.append(e,String(t));else for(let[e,t]of new URLSearchParams(n).entries())r.append(e,t);return r},en=function(){let e;for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o={},s={},i={},a=[];for(let t of r)if(Array.isArray(t))Array.isArray(o)||(o=[]),o=[...o,...t];else if(X(t)){for(let[r,n]of Object.entries(t)){if("signal"===r&&n instanceof globalThis.AbortSignal){a.push(n);continue}if("context"===r){if(null!=n&&(!X(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");o={...o,context:null==n?{}:{...o.context,...n}};continue}if("searchParams"===r){e=null==n?void 0:void 0===e?n:er(e,n);continue}X(n)&&r in o&&(n=en(o[r],n)),o={...o,[r]:n}}X(t.hooks)&&(i=et(i,t.hooks),o.hooks=i),X(t.headers)&&(s=Z(s,t.headers),o.headers=s)}return void 0!==e&&(o.searchParams=e),a.length>0&&(1===a.length?o.signal=a[0]:N?o.signal=AbortSignal.any(a):o.signal=a.at(-1)),o},eo={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},es=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("number"==typeof e)return{...eo,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.methods&&=e.methods.map(e=>e.toLowerCase()),e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t}));return{...eo,...t}};
2class ei extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}async function ea(e,t,r,n){return new Promise((o,s)=>{let i=setTimeout(()=>{r&&r.abort(),s(new ei(e))},n.timeout);n.fetch(e,t).then(o).catch(s).then(()=>{clearTimeout(i)})})}async function el(e,t){let{signal:r}=t;return new Promise((t,n)=>{function o(){clearTimeout(s),n(r.reason)}r&&(r.throwIfAborted(),r.addEventListener("abort",o,{once:!0}));let s=setTimeout(()=>{r?.removeEventListener("abort",o),t()},e)})}class eu{static create(e,t){let r=new eu(e,t),n=async()=>{if("number"==typeof r.#e.timeout&&r.#e.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await r.#t();for(let t of r.#e.hooks.afterResponse){let n,o=r.#r(e.clone());try{n=await t(r.request,r.#n(),o,{retryCount:r.#o})}catch(t){throw r.#s(o),r.#s(e),t}if(n instanceof H)throw r.#s(o),r.#s(e),new U(n.options);let s=n instanceof globalThis.Response?n:e;o!==s&&r.#s(o),e!==s&&r.#s(e),e=s}if(r.#r(e),!e.ok&&("function"==typeof r.#e.throwHttpErrors?r.#e.throwHttpErrors(e.status):r.#e.throwHttpErrors)){let t=new C(e,r.request,r.#n());for(let e of r.#e.hooks.beforeError)t=await e(t,{retryCount:r.#o});throw t}if(r.#e.onDownloadProgress){if("function"!=typeof r.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!B)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let n=e.clone();r.#s(e);var t=r.#e.onDownloadProgress;if(!n.body)return n;if(204===n.status)return new Response(null,{status:n.status,statusText:n.statusText,headers:n.headers});let o=Math.max(0,Number(n.headers.get("content-length"))||0);return new Response(Y(n.body,o,t),{status:n.status,statusText:n.statusText,headers:n.headers})}return e},o=r.#i(n).finally(()=>{let e=r.#a;r.#l(e?.body??void 0),r.#l(r.request.body??void 0)});for(let[e,n]of Object.entries(M))("bytes"!==e||"function"==typeof globalThis.Response?.prototype?.bytes)&&(o[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||n);let s=await o;if("json"===e){if(204===s.status)return"";let e=await s.text();return""===e?"":t.parseJson?t.parseJson(e):JSON.parse(e)}return s[e]()});return o}static #u(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t}))}request;#c;#o=0;#d;#e;#a;#f;#p;constructor(e,t={}){if(this.#d=e,this.#e={...t,headers:Z(this.#d.headers,t.headers),hooks:et({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(e=>I.includes(e)?e.toUpperCase():e)(t.method??this.#d.method??"GET"),prefixUrl:String(t.prefixUrl||""),retry:es(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#d&&!(this.#d instanceof URL||this.#d instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this.#e.prefixUrl&&"string"==typeof this.#d){if(this.#d.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this.#e.prefixUrl.endsWith("/")||(this.#e.prefixUrl+="/"),this.#d=this.#e.prefixUrl+this.#d}$&&N&&(this.#f=this.#e.signal??this.#d.signal,this.#c=new globalThis.AbortController,this.#e.signal=this.#f?AbortSignal.any([this.#f,this.#c.signal]):this.#c.signal),D&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#d instanceof globalThis.Request&&(z&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!r&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#d,this.#e),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#e.searchParams)){const e="string"==typeof this.#e.searchParams?this.#e.searchParams.replace(/^\?/,""):new URLSearchParams(eu.#u(this.#e.searchParams)).toString(),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);this.request=new globalThis.Request(t,this.#e)}if(this.#e.onUploadProgress){if("function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!D)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request=this.#h(this.request,this.#e.body??void 0)}}#y(){let e=this.#e.retry.delay(this.#o),t=e;return!0===this.#e.retry.jitter?t=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(t=this.#e.retry.jitter(e))||t<0)&&(t=e),Math.min(this.#e.retry.backoffLimit??1/0,t)}async #b(e){if(this.#o++,this.#o>this.#e.retry.limit)throw e;let t=e instanceof Error?e:new L(e);if(t instanceof U)return t.customDelay??this.#y();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let r=await this.#e.retry.shouldRetry({error:t,retryCount:this.#o});if(!1===r)throw e;if(!0===r)return this.#y()}if((e instanceof ei||e?.name===ei.name)&&!this.#e.retry.retryOnTimeout)throw e;if(e instanceof C||e?.name===C.name){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let r=this.#e.retry.maxRetryAfter??e;return e<r?e:r}if(413===e.response.status)throw e}return this.#y()}#r(e){return this.#e.parseJson&&(e.json=async()=>this.#e.parseJson(await e.text())),e}#l(e){e&&e.cancel().catch(()=>void 0)}#s(e){this.#l(e.body??void 0)}async #i(e){try{return await e()}catch(r){let t=Math.min(await this.#b(r),0x7fffffff);if(this.#o<1)throw r;if(await el(t,this.#f?{signal:this.#f}:{}),r instanceof U&&r.customRequest){let e=this.#e.signal?new globalThis.Request(r.customRequest,{signal:this.#e.signal}):new globalThis.Request(r.customRequest);this.#g(e)}for(let e of this.#e.hooks.beforeRetry){let t=await e({request:this.request,options:this.#n(),error:r,retryCount:this.#o});if(t instanceof globalThis.Request){this.#g(t);break}if(t instanceof globalThis.Response)return t;if(t===W)return}return this.#i(e)}}async #t(){for(let e of(this.#c?.signal.aborted&&(this.#c=new globalThis.AbortController,this.#e.signal=this.#f?AbortSignal.any([this.#f,this.#c.signal]):this.#c.signal,this.request=new globalThis.Request(this.request,{signal:this.#e.signal})),this.#e.hooks.beforeRequest)){let t=await e(this.request,this.#n(),{retryCount:this.#o});if(t instanceof Response)return t;if(t instanceof globalThis.Request){this.#g(t);break}}let e=((e,t)=>{let r={};for(let n in t)Object.hasOwn(t,n)&&(n in V||n in F||n in e&&!(n in J)||(r[n]=t[n]));return r})(this.request,this.#e);return(this.#a=this.request,this.request=this.#a.clone(),!1===this.#e.timeout)?this.#e.fetch(this.#a,e):ea(this.#a,e,this.#c,this.#e)}#n(){if(!this.#p){let{hooks:e,...t}=this.#e;this.#p=Object.freeze(t)}return this.#p}#g(e){this.#p=void 0,this.request=this.#h(e)}#h(e,t){return this.#e.onUploadProgress&&e.body?((e,t,r)=>{if(!e.body)return e;let n=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,n]of e)t+=G,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${r}"`).length,t+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{}return 0})(r??e.body);
2return new Request(e,{duplex:"half",body:Y(e.body,n,t)})})(e,this.#e.onUploadProgress,t??this.#e.body??void 0):e}}let ec=e=>{let t=(t,r)=>eu.create(t,Q(e,r));for(let r of I)t[r]=(t,n)=>eu.create(t,Q(e,n,{method:r}));return t.create=e=>ec(Q(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),ec(Q(e,t))),t.stop=W,t.retry=K,t},ed=ec(),ef=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=S(P(),e),r=()=>({...t}),n={error:new A,request:new A,response:new A},o=async e=>{let r={...t,...e,headers:q(t.headers,e.headers),ky:e.ky??t.ky??ed,serializedBody:void 0};return r.security&&await k({...r,security:r.security}),r.requestValidator&&await r.requestValidator(r),void 0!==r.body&&r.bodySerializer&&(r.serializedBody=r.bodySerializer(r.body)),(void 0===r.body||""===r.serializedBody)&&r.headers.delete("Content-Type"),{opts:r,url:E(r)}},s=async(e,t,r,n)=>{let o,s=await e.text();try{o=JSON.parse(s)}catch{o=void 0}let i=o??s,a=i;for(let o of n.error.fns)o&&(a=await o(i,e,t,r));if(a=a||{},r.throwOnError)throw a;return"data"===r.responseStyle?void 0:{error:a,request:t,response:e}},i=async e=>{let t,{opts:r,url:i}=await o(e),a=r.ky,l={body:w(r),cache:r.cache,credentials:r.credentials,headers:r.headers,integrity:r.integrity,keepalive:r.keepalive,method:r.method,mode:r.mode,redirect:"follow",referrer:r.referrer,referrerPolicy:r.referrerPolicy,signal:r.signal,throwHttpErrors:r.throwOnError??!1,timeout:r.timeout,...r.kyOptions};if(r.retry&&"object"==typeof r.retry){let e=r.retry;l.retry={limit:e.limit??2,methods:e.methods,statusCodes:e.statusCodes}}let u=new Request(i,{body:l.body,headers:l.headers,method:l.method});for(let e of n.request.fns)e&&(u=await e(u,r));try{t=await a(u,l)}catch(e){if(e&&"object"==typeof e&&"response"in e){for(let o of(t=e.response,n.response.fns))o&&(t=await o(t,u,r));return s(t,u,r,n)}throw e}for(let e of n.response.fns)e&&(t=await e(t,u,r));let c={request:u,response:t};if(t.ok){let e,n=("auto"===r.parseAs?(e=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if("multipart/form-data"===t)return"formData";if(["application/","audio/","image/","video/"].some(e=>
2t.startsWith(e)))return"blob";if(t.startsWith("text/"))return"text"}})(t.headers.get("Content-Type")):r.parseAs)??"json";if(204===t.status||"0"===t.headers.get("Content-Length")){let e;switch(n){case"arrayBuffer":case"blob":case"text":e=await t[n]();break;case"formData":e=new FormData;break;case"stream":e=t.body;break;default:e={}}return"data"===r.responseStyle?e:{data:e,...c}}switch(n){case"arrayBuffer":case"blob":case"formData":case"text":e=await t[n]();break;case"json":{let r=await t.text();e=r?JSON.parse(r):{};break}case"stream":return"data"===r.responseStyle?t.body:{data:t.body,...c}}return"json"===n&&(r.responseValidator&&await r.responseValidator(e),r.responseTransformer&&(e=await r.responseTransformer(e))),"data"===r.responseStyle?e:{data:e,...c}}return s(t,u,r,n)},a=e=>t=>i({...t,method:e}),l=e=>async t=>{let{opts:r,url:s}=await o(t);return(e=>{let t,{onRequest:r,onSseError:n,onSseEvent:o,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:a,sseMaxRetryAttempts:l,sseMaxRetryDelay:u,sseSleepFn:c,url:d,...f}=e,p=c??(e=>new Promise(t=>setTimeout(t,e)));return{stream:async function*(){let e=a??3e3,c=0,h=f.signal??new AbortController().signal;for(;!h.aborted;){c++;let a=f.headers instanceof Headers?f.headers:new Headers(f.headers);void 0!==t&&a.set("Last-Event-ID",t);try{let n={redirect:"follow",...f,body:f.serializedBody,headers:a,signal:h},l=new Request(d,n);r&&(l=await r(d,n));let u=await (f.fetch??globalThis.fetch)(l);if(!u.ok)throw Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw Error("No body in SSE response");let c=u.body.pipeThrough(new TextDecoderStream).getReader(),p="",y=()=>{try{c.cancel()}catch{}};h.addEventListener("abort",y);try{for(;;){let{done:r,value:n}=await c.read();if(r)break;p+=n;let a=(p=p.replace(/\r\n/g,"\n").replace(/\r/g,"\n")).split("\n\n");for(let r of(p=a.pop()??"",a)){let n,a,l=r.split("\n"),u=[];for(let r of l)if(r.startsWith("data:"))u.push(r.replace(/^data:\s*/,""));else if(r.startsWith("event:"))n=r.replace(/^event:\s*/,"");else if(r.startsWith("id:"))t=r.replace(/^id:\s*/,"");else if(r.startsWith("retry:")){let t=Number.parseInt(r.replace(/^retry:\s*/,""),10);Number.isNaN(t)||(e=t)}let c=!1;if(u.length){let e=u.join("\n");try{a=JSON.parse(e),c=!0}catch{a=e}}c&&(i&&await i(a),s&&(a=await s(a))),o?.({data:a,event:n,id:t,retry:e}),u.length&&(yield a)}}}finally{h.removeEventListener("abort",y),c.releaseLock()}break}catch(r){if(n?.(r),void 0!==l&&c>=l)break;let t=Math.min(e*2**(c-1),u??3e4);await p(t)}}}()}})({...r,body:r.body,fetch:globalThis.fetch,headers:r.headers,method:e,onRequest:async(e,t)=>{let o=new Request(e,t);for(let e of n.request.fns)e&&(o=await e(o,r));return o},serializedBody:w(r),url:s})};return{buildUrl:E,connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:n,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:i,setConfig:e=>(t=S(t,e),r()),sse:{connect:l("CONNECT"),delete:l("DELETE"),get:l("GET"),head:l("HEAD"),options:l("OPTIONS"),patch:l("PATCH"),post:l("POST"),put:l("PUT"),trace:l("TRACE")},trace:a("TRACE")}},ep=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.maxEntries??1e3,r=new Map;return{async get(e){let t=r.get(e);if(t)return Date.now()-t.storedAt>t.ttlMs?void r.delete(e):t},async set(e,n){let o={...n,storedAt:n.storedAt??Date.now()};if(r.has(e)&&r.delete(e),r.set(e,o),r.size>t){let e=r.keys().next().value;void 0!==e&&r.delete(e)}},async flush(){r.clear()}}},eh=new Set([408,413,429]),ey=e=>e>=500||eh.has(e),eb=e=>{console.warn("[storyblok/api-client] SWR background revalidation failed:",e)},eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onRevalidationError:t=eb}=e,r=new Map,n=e=>{try{e()}catch(e){console.error("[storyblok/api-client] SWR revalidation reporting threw:",e)}};return async e=>{let{key:o,cachedResult:s,loadNetwork:i,getFailure:a}=e;if(void 0!==s){if(!r.has(o)){let e=i().then(e=>n(()=>{let r=a?.(e);void 0!==r&&t(r.error)}),e=>{n(()=>{t(e)})}).finally(()=>{r.delete(o)});r.set(o,e)}return s}return i()}},em=(e,t)=>
2"network-first"===e?async e=>{let{cachedResult:t,loadNetwork:r,getFailure:n,getThrownFailure:o}=e;try{let e=await r();if(void 0!==t&&n?.(e)?.transient===!0)return t;return e}catch(e){if(void 0!==t&&o?.(e).transient!==!1)return t;throw e}}:"swr"===e?eg(t):async e=>{let{cachedResult:t,loadNetwork:r}=e;return void 0!==t?t:r()},ev=new Set(["GET"]),ew=new Set(["/v2/cdn/spaces/me"]),e_=e=>e.startsWith("/")?e:`/${e}`,eT=e=>{if(Array.isArray(e))return e.map(e=>eT(e));if(e&&"object"==typeof e){let t={};for(let[r,n]of Object.entries(e).sort((e,t)=>{let[r]=e,[n]=t;return r<n?-1:+(r>n)}))t[r]=eT(n);return t}return e},eR=e=>{let t=[];for(let[r,n]of Object.entries(e))!function e(t,r,n){if(null==r)return;if(r instanceof Date)return void n.push(`${t}=${r.toISOString()}`);if(Array.isArray(r)){if(r.some(e=>null!==e&&"object"==typeof e)){for(let o of r)e(`${t}[]`,o,n);return}let o=b({explode:!0,name:t,style:"form",value:r});o&&n.push(o);return}if("object"==typeof r){for(let[o,s]of Object.entries(r))e(`${t}[${o}]`,s,n);return}let o=g({name:t,value:r});o&&n.push(o)}(r,n,t);return t.join("&")},ek=ef(P({baseUrl:"https://api.storyblok.com"})),eE=e=>(e?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/stories",...e}),eS=new Set(["cv","fallback_lang","from_release","language","resolve_assets","resolve_links","resolve_links_level","version"]),ex=async e=>{let{client:t,uuids:r,baseQuery:n,throttleManager:o}=e,s={...(e=>{let t={};for(let r of eS)void 0!==e[r]&&(t[r]=e[r]);return t})(n),per_page:50},i=(e=>{let t=[];for(let r=0;r<e.length;r+=50)t.push(e.slice(r,r+50));return t})(r);return(await Promise.all(i.map(e=>o.execute("/v2/cdn/stories",s,async()=>{let r=await eE({client:t,query:{...s,by_uuids:e.join(","),per_page:50}});if(o.adaptToResponse(r.response),void 0!==r.error)throw r.error;if(void 0===r.data)throw Error("Failed to fetch missing relations.");return r.data.stories})))).flat()},eq=(e,t,r,n)=>{let o=n.get(e.uuid);if(o)return o;let s=structuredClone(e);return n.set(e.uuid,s),s.content=function e(t,r,n,o){if(Array.isArray(t))return t.map(t=>e(t,r,n,o));if(!(null!==t&&"object"==typeof t&&!Array.isArray(t)))return t;if("string"==typeof t.component&&"string"==typeof t._uid){for(let[s,i]of Object.entries(t)){if("component"===s||"_uid"===s)continue;let a=`${t.component}.${s}`;t[s]=n.has(a)?function t(r,n,o,s){if("string"==typeof r){let e=n.get(r);return e?eq(e,o,n,s):r}return Array.isArray(r)?r.map(e=>t(e,n,o,s)):e(r,n,o,s)}(i,r,n,o):e(i,r,n,o)}return t}for(let[s,i]of Object.entries(t))t[s]=e(i,r,n,o);return t}(s.content,r,t,n),s},eA=async(e,t,r)=>{let{client:n,throttleManager:o}=r,s="string"!=typeof t.resolve_relations?[]:(e=>{if(/%[0-9A-F]{2}/i.test(e))try{return decodeURIComponent(e)}catch{}return e})(t.resolve_relations).split(",").map(e=>e.trim()).filter(e=>{let[t="",r="",...n]=e.split(".");return t.length>0&&r.length>0&&0===n.length});if(0===s.length)return null;let i=(e=>{let t=new Map;for(let r of e??[])t.set(r.uuid,r);return t})(e.rels);if(e.rel_uuids?.length){let r=e.rel_uuids.filter(e=>!i.has(e));if(r.length>0)for(let e of(await ex({client:n,uuids:r,baseQuery:t,throttleManager:o}
2)))i.set(e.uuid,e)}return{relationPaths:s,relationMap:i}},eO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ej="api.storyblok.com",eP={eu:{name:"Europe",apiDomain:ej,managementApiDomain:"mapi.storyblok.com"},us:{name:"United States",apiDomain:"api-us.storyblok.com",managementApiDomain:"api-us.storyblok.com"},cn:{name:"China",apiDomain:"app.storyblokchina.cn",managementApiDomain:"app.storyblokchina.cn"},ap:{name:"Australia",apiDomain:"api-ap.storyblok.com",managementApiDomain:"api-ap.storyblok.com"},ca:{name:"Canada",apiDomain:"api-ca.storyblok.com",managementApiDomain:"api-ca.storyblok.com"}},eC=e=>void 0===e.error?void 0:{transient:ey(e.response?.status??0),error:e.error},eL=e=>({transient:!(e instanceof h)||ey(e.response.status),error:e});var eU=e.i(656140),eD=e.i(703573);let e$=eD.object({uuid:eD.string(),id:eD.number(),name:eD.string()}).nullable(),eN=eD.object({config:eD.object({blog_popups:eD.object({b2b:e$,b2c:e$,b2b_enabled:eD.boolean(),b2c_enabled:eD.boolean()}),popup_blog_post_rules:eD.array(eD.object({id:eD.string(),name:eD.string(),pages:eD.array(eD.string()),enabled:eD.boolean(),popup:e$})),popup_landing_page_rules:eD.array(eD.object({id:eD.string(),name:eD.string(),pages:eD.array(eD.string()),enabled:eD.boolean(),popup:e$})),blog_sticky_banners:eD.object({b2b:e$,b2c:e$,b2b_enabled:eD.boolean(),b2c_enabled:eD.boolean()}),sticky_banner_rules:eD.object({b2b:e$,b2c:e$,b2b_enabled:eD.boolean(),b2c_enabled:eD.boolean()}),sticky_banner_landing_page_rules:eD.array(eD.object({id:eD.string(),name:eD.string(),pages:eD.array(eD.string()),enabled:eD.boolean(),sticky_banner:e$})),sticky_banner_blog_post_rules:eD.array(eD.object({id:eD.string(),name:eD.string(),pages:eD.array(eD.string()),enabled:eD.boolean(),sticky_banner:e$})).default([]),hide_sticky_banner_on_urls:eD.array(eD.string())})}),eB={config:{blog_popups:{b2b:null,b2c:null,b2b_enabled:!1,b2c_enabled:!1},popup_blog_post_rules:[],popup_landing_page_rules:[],blog_sticky_banners:{b2b:null,b2c:null,b2b_enabled:!1,b2c_enabled:!1},sticky_banner_rules:{b2b:null,b2c:null,b2b_enabled:!1,b2c_enabled:!1},sticky_banner_landing_page_rules:[],sticky_banner_blog_post_rules:[],hide_sticky_banner_on_urls:[]},sticky_stories:{}};async function ez(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.DEFAULT_LOCALE,r=e={...(e=>{let t,{accessToken:r,region:n="eu",baseUrl:o,headers:s={},throwOnError:i=!1,cache:a={},inlineRelations:l=!1,retry:u,timeout:c=3e4,rateLimit:y,fetch:b}=e,g={limit:3,backoffLimit:2e4,jitter:!0,...u},m=function(e){if(!1===e)return{execute:(e,t,r)=>r(),adaptToResponse:()=>{}};let{requestsPerSecond:t,maxConcurrency:r,adaptToServerHeaders:n=!0}="number"==typeof e?{requestsPerSecond:e}:e,o=t??r;if(void 0!==o){let e=Math.min(o,1e3),t=d(e);return{execute:(e,r,n)=>t.execute(n),adaptToResponse:r=>{if(!n||void 0===r)return;let o=p(r);void 0!==o&&t.setLimit(Math.min(e,o))}}}let s={SINGLE_OR_SMALL:d(50),MEDIUM:d(15),LARGE:d(10),VERY_LARGE:d(6)};return{execute:(e,t,r)=>s[function(e,t){if(f.test(e))return"SINGLE_OR_SMALL";let r=t.per_page,n="number"==typeof r?r:"string"==typeof r&&Number.parseInt(r,10)||25;return n<=25?"SINGLE_OR_SMALL":n<=50?"MEDIUM":n<=75?"LARGE":"VERY_LARGE"}(e,t)].execute(r),adaptToResponse:e=>{if(!n||void 0===e)return;let t=p(e);void 0!==t&&s.SINGLE_OR_SMALL.setLimit(Math.min(50,t))}}}(y??{}),v=a.provider??ep(),w=a.onRevalidationError?{onRevalidationError:a.onRevalidationError}:void 0,_=a.strategy?"string"==typeof a.strategy?em(a.strategy,w):a.strategy:em("cache-first"),T=a.ttlMs??6e4,R=a.flush??"auto",k=a.cv??"auto",E=ef(P({auth:r,baseUrl:o||function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return`${r}://${t=e,eP[t]?.apiDomain||ej}`}(n),headers:s,querySerializer:eR,throwOnError:i,kyOptions:{throwHttpErrors:!0,timeout:c,retry:g,...b&&{fetch:b}}}));E.interceptors.error.use((e,t)=>new h(t?.statusText||"API request failed",{status:t?.status??0,statusText:t?.statusText??"",data:e}));let S=[{in:"query",name:"token",type:"apiKey"}],x=async e=>{let r,n=(r=e.data)&&"object"==typeof r&&"cv"in r&&"number"==typeof r.cv?r.cv:void 0;return void 0===n||(void 0===t||!(n<t))&&("auto"===R&&void 0!==t&&t!==n&&await v.flush(),t=n,!0)},q=async(e,t)=>{let r=await x(t);return void 0===t.error&&r&&await v.set(e,{value:t,ttlMs:T}),t},A=async(e,t,r,n)=>E.request({...n,method:e,query:r,security:S,url:t}),O=async(e,r,n,o,s)=>{let i,a,l,u,c,d="auto"===k&&void 0!==t?(i=n,a=t,"draft"===i.version||void 0!==i.cv?i:{...i,cv:a}):n;if(l=e,u=r,c=n,!ev.has(l)||ew.has(e_(u))||"draft"===c.version){let e=await o(d);return m.adaptToResponse(e.response),await x(e),e}let f=JSON.stringify({method:e,path:e_(r),query:eT(n)}),p=s?.cacheKeyPrefix?`${s.cacheKeyPrefix}:${f}`:f,h=(await v.get(p))?.value,y=async()=>{let e=await o(d);return m.adaptToResponse(e.response),q(p,e)};return _({key:p,cachedResult:h,loadNetwork:y,getFailure:eC,getThrownFailure:eL})},j=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.query||{};return O(e,t,n,o=>m.execute(t,n,()=>A(e,t,o,r)))},C={client:E,requestWithCache:O,asApiResponse:e=>e,throttleManager:m},L=function(e){let{client:t,requestWithCache:r,asApiResponse:n,inlineRelations:o,throttleManager:s}=e;return{get:async function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{query:a={},signal:l,throwOnError:u,fetchOptions:c}=i,d=a??{},f="string"==typeof e&&eO.test(e)&&!d.find_by?{...d,find_by:"uuid"}:d,p=`/v2/cdn/stories/${e}`;return r("GET",p,f,async r=>{var i,a,d;let f=await s.execute(p,r,()=>{let o;return n(((o={client:t,path:{id:e},query:r,signal:l,...void 0===u?{}:{throwOnError:u},...c?{kyOptions:{...t.getConfig().kyOptions,...c}}:{}}).client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/stories/{id}",...o}
2))});if(!o||void 0===f.data)return f;let h=f.data,y=await eA(h,r,{client:t,throttleManager:s});return y?{...f,data:{...f.data,story:(i=h.story,a=y.relationPaths,d=y.relationMap,eq(i,new Set(a),d,new Map))}}:f},o?{cacheKeyPrefix:"inline"}:void 0)},list:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:i={},signal:a,throwOnError:l,fetchOptions:u}=e,c="/v2/cdn/stories";return r("GET",c,i??{},async e=>{var r,i,d;let f,p,h=await s.execute(c,e,()=>n(eE({client:t,query:e,signal:a,...void 0===l?{}:{throwOnError:l},...u?{kyOptions:{...t.getConfig().kyOptions,...u}}:{}})));if(!o||void 0===h.data)return h;let y=h.data,b=await eA(y,e,{client:t,throttleManager:s});return b?{...h,data:{...h.data,stories:(r=y.stories,i=b.relationPaths,d=b.relationMap,f=new Set(i),p=new Map,r.map(e=>eq(e,f,d,p)))}}:h},o?{cacheKeyPrefix:"inline"}:void 0)}}}({...C,inlineRelations:l}),U=async()=>{await v.flush(),t=void 0};return{datasourceEntries:function(e){let{client:t,requestWithCache:r,asApiResponse:n,throttleManager:o}=e;return{list:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:s={},signal:i,throwOnError:a,fetchOptions:l}=e,u="/v2/cdn/datasource_entries";return r("GET",u,s,e=>o.execute(u,e,()=>{let r;return n((r={client:t,query:e,signal:i,...void 0===a?{}:{throwOnError:a},...l?{kyOptions:{...t.getConfig().kyOptions,...l}}:{}},(r?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/datasource_entries",...r})))}))}}}(C),datasources:function(e){let{client:t,requestWithCache:r,asApiResponse:n,throttleManager:o}=e;return{get:async function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{query:i={},signal:a,throwOnError:l,fetchOptions:u}=s,c=`/v2/cdn/datasources/${e}`;return r("GET",c,i??{},r=>o.execute(c,r,()=>{let o;return n(((o={client:t,path:{id:e},query:r,signal:a,...void 0===l?{}:{throwOnError:l},...u?{kyOptions:{...t.getConfig().kyOptions,...u}}:{}}).client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/datasources/{id}",...o}))}))},list:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:s={},signal:i,throwOnError:a,fetchOptions:l}=e,u="/v2/cdn/datasources";return r("GET",u,s,e=>o.execute(u,e,()=>{let r;return n((r={client:t,query:e,signal:i,...void 0===a?{}:{throwOnError:a},...l?{kyOptions:{...t.getConfig().kyOptions,...l}}:{}},(r?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/datasources",...r})))}))}}}(C),experiments:function(e){let{client:t,requestWithCache:r,asApiResponse:n,throttleManager:o}=e;return{list:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:s={},signal:i,throwOnError:a,fetchOptions:l}=e,u="/v2/cdn/experiments";return r("GET",u,s,e=>o.execute(u,e,()=>{let r;return n((r={client:t,query:e,signal:i,...void 0===a?{}:{throwOnError:a},...l?{kyOptions:{...t.getConfig().kyOptions,...l}}:{}},(r?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/experiments",...r})))}))}}}(C),flushCache:U,get:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j("GET",e,t)},interceptors:E.interceptors,links:function(e){let{client:t,requestWithCache:r,asApiResponse:n,throttleManager:o}=e;return{list:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:s={},signal:i,throwOnError:a,fetchOptions:l}=e,u="/v2/cdn/links";return r("GET",u,s,e=>o.execute(u,e,()=>{let r;return n((r={client:t,query:e,signal:i,...void 0===a?{}:{throwOnError:a},...l?{kyOptions:{...t.getConfig().kyOptions,...l}}:{}},(r?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/links",...r})))}))}}}(C),spaces:function(e){let{client:t,requestWithCache:r,asApiResponse:n,throttleManager:o}=e;return{get:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:s={},signal:i,throwOnError:a,fetchOptions:l}=e,u="/v2/cdn/spaces/me";return r("GET",u,s,e=>o.execute(u,e,()=>{let r;return n((r={client:t,query:e,signal:i,...void 0===a?{}:{throwOnError:a},...l?{kyOptions:{...t.getConfig().kyOptions,...l}}:{}},(r?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/spaces/me",...r})))}))}}}(C),stories:L,tags:function(e){let{client:t,requestWithCache:r,asApiResponse:n,throttleManager:o}=e;return{list:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:s={},signal:i,throwOnError:a,fetchOptions:l}=e,u="/v2/cdn/tags";return r("GET",u,s,e=>o.execute(u,e,()=>{let r;return n((r={client:t,query:e,signal:i,...void 0===a?{}:{throwOnError:a},...l?{kyOptions:{...t.getConfig().kyOptions,...l}}:{}},(r?.client??ek).get({security:[{in:"query",name:"token",type:"apiKey"}],url:"/v2/cdn/tags",...r})))}))}}}(C)}})({accessToken:c.default.env.STORYBLOK_API_TOKEN}),withTypes:()=>e},s=await r.stories.get(eU.OVERLAY_CONFIG_SLUG,{query:{version:n.SB_PARAMS.version}});if(s.error){if(404===s.error.response.status)return eB;throw s.error}if(!s.data)throw Error("Config response has no data");let{data:i,error:a}=eN.safeParse(s.data.story.content);if(a)return console.error(`[fetchStickyOverlayConfig] Error parsing overlay config: ${a}`),o.captureException(a,{tags:{source:"fetchStickyOverlayConfig"}}),await o.flush(2e3),eB;let l=i.config,u=new Set,y=e=>{e?.uuid&&u.add(e.uuid)},b=l.blog_sticky_banners;b?.b2b_enabled&&y(b.b2b),b?.b2c_enabled&&y(b.b2c);let g=l.sticky_banner_rules;if(g?.b2b_enabled&&y(g.b2b),g?.b2c_enabled&&y(g.b2c),Array.isArray(l.sticky_banner_landing_page_rules)
2)for(let e of l.sticky_banner_landing_page_rules)e.enabled&&y(e.sticky_banner);if(Array.isArray(l.sticky_banner_blog_post_rules))for(let e of l.sticky_banner_blog_post_rules)e.enabled&&y(e.sticky_banner);let m=new Map;if(u.size>0){let e=await r.stories.list({query:{by_uuids:Array.from(u).join(","),version:n.SB_PARAMS.version,language:t,per_page:100}});if(e.error)throw e.error;if(!e.data)return o.captureException(Error("Sticky stories response has no data"),{tags:{source:"fetchStickyOverlayConfig"}}),await o.flush(2e3),eB;for(let t of e.data.stories)m.set(t.uuid,{uuid:t.uuid,id:t.id,name:t.name,content:t.content})}return{config:l,sticky_stories:Object.fromEntries(m)}}var eI=e.i(424360),eM=e.i(85669);async function eG(e,t,r,n){try{let o=await ez(n),s=function(e,t,r,n){let o=(0,eI.normalizeUrlPath)((0,eM.removeLocalePrefixFromPath)(t)),{config:s,sticky_stories:i={}}=e;if(s.hide_sticky_banner_on_urls?.some(e=>(0,eI.normalizeUrlPath)(e)===o))return null;let a=e=>e?i[e.uuid]??null:null;for(let e of s.sticky_banner_landing_page_rules??[])if(e.enabled&&e.pages.some(e=>(0,eI.normalizeUrlPath)(e)===o))return a(e.sticky_banner);if(r){for(let e of s.sticky_banner_blog_post_rules??[])if(e.enabled&&e.pages.some(e=>(0,eI.normalizeUrlPath)(e)===o))return a(e.sticky_banner)}if(r){let e=s.blog_sticky_banners;return e?n&&e.b2b_enabled?a(e.b2b):!n&&e.b2c_enabled?a(e.b2c):null:null}let l=s.sticky_banner_rules;return l?n&&l.b2b_enabled?a(l.b2b):!n&&l.b2c_enabled?a(l.b2c):null:null}(o,e,t,r);if(!s)return null;let i={...s.content,story_uuid:s.uuid};return(0,u.unstable_cache)(async()=>i,[e,n],{tags:[eU.PAGE_WITH_STICKY_CACHE_TAG,(0,eU.getStickyBannerCacheTag)(s.id)]})()}catch(s){return o.captureException(s,{tags:{source:"resolveServerSticky"},extra:{fullSlug:e,isBlogPost:t,isBusinessPage:r,locale:n}}),await o.flush(2e3),null}}async function eW(e){let{children:t,story:n,locale:o}=e;if(!n)return(0,r.jsx)(l.StickyProvider,{initialBlok:null,children:t});let s=n.content?.component==="post",i=!!n.content?.business_page,a=await eG(n.full_slug,s,i,o);return(0,r.jsx)(l.StickyProvider,{initialBlok:a,children:t})}e.i(716789);var eH=e.i(726724),eH=eH;let eK=async e=>{let{blok:t,storyMeta:l,page:u,footer:c,header:d,locale:f}=e,{first_published_at:p,full_slug:h}=l,{content:y,featured_image:b,read_time:g,title:m,excerpt:v,author:w,reviewer:_,categories:T,blog_sidebar_banner:R,hide_toc:k,key_takeaways:E}=t,S=(e=>{let t=e.categories;if(!Array.isArray(t))return!1;let[r]=t;return!!r&&("string"==typeof r?r===n.BUSINESS_CATEGORY_UID:r.uuid===n.BUSINESS_CATEGORY_UID)})(t),x=_&&"string"!=typeof _&&_.content?_:void 0,q=((e,t)=>{let r=[];if(t||!e||e[0]?.component!=="post_content")return[];try{e[0]?.items.forEach(e=>{if("rich_text"===e.component){let{content:{content:t}}=e;t?.forEach(e=>{if("heading"===e.type){let t=e?.content?.map(e=>{let{text:t}=e;return t}).join("")||"n/a",n=(0,s.default)(t),o="number"==typeof e.attrs?.level&&e.attrs.level>2;e.attrs.id=n,r.push({id:n,heading:t,isNested:o})}})}})}catch(e){return o.captureException(e,{tags:{api:"process-content-headings"}}),[]}return r})(y,k),A={...u,content:{...u.content,business_page:S}};return(0,r.jsx)(a.HeaderBackgroundProvider,{isWhite:!1,children:(0,r.jsx)(eW,{story:A,locale:f,children:(0,r.jsx)(i.default,{story:A,footer:c,header:d,children:(0,r.jsx)(eH.default,{readTime:g||"0",featuredImage:b,content:y,publishDate:p,data:{title:m,excerpt:v},categories:T,author:w,reviewer:x,fullSlug:h,blogSidebarBanner:R,isBlogPost:!0,isBusinessPost:S,hideTOC:k,tocItems:q,keyTakeaways:E})})})})},eF={page:t.default,post:eK};e.s(["default",0,eF],136940)},505414,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"io",{enumerable:!0,get:function(){return o}});let n=Promise.resolve(void 0);function o(){return n}n.status="fulfilled",n.value=void 0,("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)},758834,(e,t,r)=>{let n;e.i(875303);{let t=e=>function(){throw Error(`\`${e}\` is only available in a Server Component.`)};n={unstable_cache:function(e){return"function"!=typeof e?e:function(){return e.apply(this,arguments)}},unstable_noStore:function(){},io:e.r(505414).io,updateTag:t("updateTag"),revalidateTag:t("revalidateTag"),revalidatePath:t("revalidatePath"),refresh:t("refresh"),cacheLife:t("cacheLife"),cacheTag:t("cacheTag")}}let o=!1,s=!1;n.unstable_cacheLife=function(){return o||(o=!0,console.error(Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js."))),n.cacheLife.apply(this,arguments)},n.unstable_cacheTag=function(){return s||(s=!0,console.error(Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js."))),n.cacheTag.apply(this,arguments)},t.exports=n,r.unstable_cache=n.unstable_cache,r.revalidatePath=n.revalidatePath,r.revalidateTag=n.revalidateTag,r.updateTag=n.updateTag,r.unstable_noStore=n.unstable_noStore,r.cacheLife=n.cacheLife,r.unstable_cacheLife=n.unstable_cacheLife,r.cacheTag=n.cacheTag,r.unstable_cacheTag=n.unstable_cacheTag,r.refresh=n.refresh,r.io=n.io}]);
3
4//# debugId=dbfc1bda-0188-d54e-b0e5-43fa15668f4b

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.