PageSourceSearch

https://digg.com/_next/static/chunks/1qz5hw4e-utvf.js?dpl=dpl_7KizRMkS8hiaeq9KCJTqcosxwVbT

js digg.com collected 2026-09-24 07:01:37 UTC 27,534 bytes, 6 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d0df-a632-7d80-94c6-6f185b18b062")}catch(e){}}();;!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]="2d0da77a-9578-2e52-fa52-abc2a9d07e8b")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,906202,(e,t,r)=>{t.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},970210,(e,t,r)=>{function o(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=o,o.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},o.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},o.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},r),this._options.unref&&this._timer.unref(),!0},o.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},o.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},o.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},o.prototype.start=o.prototype.try,o.prototype.errors=function(){return this._errors},o.prototype.attempts=function(){return this._attempts},o.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,o=0;o<this._errors.length;o++){var n=this._errors[o],a=n.message,i=(e[a]||0)+1;e[a]=i,i>=r&&(t=n,r=i)}return t}},731238,(e,t,r)=>{var o=e.r(970210);r.operation=function(e){return new o(r.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},r.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<t.retries;n++)o.push(this.createTimeout(n,t));return e&&e.forever&&!o.length&&o.push(this.createTimeout(n,t)),o.sort(function(e,t){return e-t}),o},r.createTimeout=function(e,t){var r=Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return Math.min(r,t.maxTimeout)},r.wrap=function(e,t,o){if(t instanceof Array&&(o=t,t=null),!o)for(var n in o=[],e)"function"==typeof e[n]&&o.push(n);for(var a=0;a<o.length;a++){var i=o[a],s=e[i];e[i]=(function(o){var n=r.operation(t),a=Array.prototype.slice.call(arguments,1
2),i=a.pop();a.push(function(e){n.retry(e)||(e&&(arguments[0]=n.mainError()),i.apply(this,arguments))}),n.attempt(function(){o.apply(e,a)})}).bind(e,s),e[i].options=t}}},629103,(e,t,r)=>{t.exports=e.r(731238)},452172,(e,t,r)=>{var o=e.r(629103);t.exports=function(e,t){return new Promise(function(r,n){var a,i=t||{};function s(e){n(e||Error("Aborted"))}function l(e,t){e.bail?s(e):a.retry(e)?i.onRetry&&i.onRetry(e,t):n(a.mainError())}"randomize"in i||(i.randomize=!0),(a=o.operation(i)).attempt(function(t){var o;try{o=e(s,t)}catch(e){l(e,t);return}Promise.resolve(o).then(r).catch(function(e){l(e,t)})})})}},828124,e=>{"use strict";var t,r,o,n=e.i(431326),a=e.i(668390),i=e.i(906202);let s={toWeb(){throw Error("Vercel Blob: Sorry, we cannot get a Readable stream in this environment. If you see this message please open an issue here: https://github.com/vercel/storage/ with details on your environment.")}};var l=e.i(452172);let u=globalThis.fetch.bind(globalThis);var c=e.i(561030),d=new Promise(e=>{try{let t=new Uint8Array([104,101,108,108,111]);new Blob([t]).text().then(t=>{e("hello"===t)}).catch(()=>{e(!1)})}catch{e(!1)}});async function p(e){var t,r;let o;return e instanceof ReadableStream?e:e instanceof Blob?e.stream():h(e)?s.toWeb(e):(o=e instanceof ArrayBuffer?new Uint8Array(e):(t=e,(0,i.default)(t))?e:(r=e,new TextEncoder().encode(r)),await d)?new Blob([o]).stream():new ReadableStream({start(e){e.enqueue(o),e.close()}})}function h(e){return"object"==typeof e&&"function"==typeof e.pipe&&e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState}var f=Symbol.for("@vercel/request-context"),m=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i,b={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000};function y(e){let t;if("number"==typeof e&&!Number.isNaN(e))return e;if("string"!=typeof e)return null;let r=m.exec(e),o="b";if(r){let[,e,,,n]=r;if(!e)return null;t=parseFloat(e),n&&(o=n.toLowerCase())}else t=parseInt(e,10);return Number.isNaN(t)?null:Math.floor(b[o]*t)}function w(e){try{let t=a.default.env[e];return"string"==typeof t&&""!==t.trim()?t.trim():void 0}catch{return}}function g(e){let[,,,t=""]=e.split("_");return t}function v(e){return e.startsWith("store_")?e.slice(6):e}var _=class extends Error{constructor(e){super(`Vercel Blob: ${e}`)}};function T(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var x=["//"],E=(()=>{if(function(){if("u">typeof navigator&&"ReactNative"===navigator.product)return!0;if(void 0!==a.default){let e=a.default.type;return"renderer"!==e&&"worker"!==e&&!!(a.default.versions&&a.default.versions.node)}return!1}())return!0;if(O().startsWith("http://localhost"))return!1;let e=!1,t=new Request(O(),{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})();function O(e=""){let t=null;try{t=a.default.env.VERCEL_BLOB_API_URL||a.default.env.NEXT_PUBLIC_VERCEL_BLOB_API_URL}catch{}return`${t||"https://vercel.com/api/blob"}${e}`}var R="function"==typeof TextEncoder?new TextEncoder:null;function k(e){return e?"string"==typeof e?R?R.encode(e).byteLength:new Blob([e]).size:"byteLength"in e&&"number"==typeof e.byteLength?e.byteLength:"size"in e&&"number"==typeof e.size?e.size:0:0}function U(e){return globalThis.ReadableStream&&e instanceof ReadableStream}function P(e){return!!(U(e)||h(e))}var L=!1;try{((null==(t=a.default.env.DEBUG)?void 0:t.includes("blob"))||(null==(r=a.default.env.NEXT_PUBLIC_DEBUG)?void 0:r.includes("blob")))&&(L=!0)}catch{}function S(e,...t){L&&console.debug(`vercel-blob: ${e}`,...t)}var I=null!=(o=globalThis.DOMException)?o:(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})(),B=Object.prototype.toString,C=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]),A="function"==typeof u,N=A&&E,M=async({input:e,init:t,onUploadProgress:r})=>{let o;if(S("using fetch"),t.body)if(r){var n;let e,a=await p(t.body),i=0,s=(n=e=>{r(i+=e)},e=new Uint8Array(0),new TransformStream({transform(t,r){let o=new Uint8Array(e.length+t.byteLength);for(o.set(e),o.set(new Uint8Array(t),e.length),e=o;e.length>=65536;){let t=e.slice(0,65536);r.enqueue(t),null==n||n(t.byteLength),e=e.slice(65536)}},flush(t){e.length>0&&(t.enqueue(e),null==n||n(e.byteLength))}}));o=a.pipeThrough(s)}else o=t.body;let a=E&&o&&P(o)?"half":void 0;return u(e,{...t,...t.body?{body:o}:{},duplex:a})},$="u">typeof XMLHttpRequest,q=async({input:e,init:t,onUploadProgress:r})=>{S("using xhr");let o=null;return t.body&&(o=U(t.body)?await new Response(t.body).blob():t.body),new Promise((n,a)=>{let i=new XMLHttpRequest;(i.open(t.method||"GET",e.toString(),!0),r&&i.upload.addEventListener("progress",e=>{e.lengthComputable&&r(e.loaded)}),i.onload=()=>{var e;if(null==(e=t.signal)?void 0:e.aborted)return void a(new DOMException("The user aborted the request.","AbortError"));let r=new Headers;
2i.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{let t=e.split(": "),o=t.shift(),n=t.join(": ");o&&r.set(o.toLowerCase(),n)}),n(new Response(i.response,{status:i.status,statusText:i.statusText,headers:r}))},i.onerror=()=>{a(TypeError("Network request failed"))},i.ontimeout=()=>{a(TypeError("Network request timed out"))},i.onabort=()=>{a(new DOMException("The user aborted a request.","AbortError"))},t.headers&&new Headers(t.headers).forEach((e,t)=>{i.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",()=>{i.abort()}),t.signal.aborted))?i.abort():i.send(o)})},V=async({input:e,init:t,onUploadProgress:r})=>{if(r){if(N)return M({input:e,init:t,onUploadProgress:r});if($)return q({input:e,init:t,onUploadProgress:r})}if(A)return M({input:e,init:t});if($)return q({input:e,init:t});throw Error("No request implementation available")},D=class extends _{constructor(){super("Access denied, please provide a valid token for this resource.")}},j=class extends _{constructor(e){super(null!=e?e:"OIDC is enabled for this project, but not for this token's environment.")}},H=class extends _{constructor(e){super(`Content type mismatch, ${e}.`)}},z=class extends _{constructor(e){super(`Pathname mismatch, ${e}. Check the pathname used in upload() or put() matches the one from the client token.`)}},X=class extends _{constructor(){super("Client token has expired.")}},F=class extends _{constructor(e){super(`File is too large, ${e}.`)}},G=class extends _{constructor(){super("This store does not exist.")}},W=class extends _{constructor(){super("This store has been suspended.")}},J=class extends _{constructor(){super("Unknown error, please visit https://vercel.com/help.")}},Y=class extends _{constructor(){super("The requested blob does not exist")}},K=class extends _{constructor(){super("The blob service is currently not available. Please try again.")}},Q=class extends _{constructor(e){super(`Too many requests please lower the number of concurrent requests ${e?` - try again in ${e} seconds`:""}.`),this.retryAfter=null!=e?e:0}},Z=class extends _{constructor(){super("The request was aborted.")}},ee=class extends _{constructor(){super("Precondition failed: ETag mismatch.")}};async function et(e){var t,r,o;let n,a,i,s;try{let i=await e.json();n=null!=(r=null==(t=i.error)?void 0:t.code)?r:"unknown_error",a=null==(o=i.error)?void 0:o.message}catch{n="unknown_error"}switch((null==a?void 0:a.includes("contentType"))&&a.includes("is not allowed")&&(n="content_type_not_allowed"),(null==a?void 0:a.includes('"pathname"'))&&a.includes("does not match the token payload")&&(n="client_token_pathname_mismatch"),"Token expired"===a&&(n="client_token_expired"),(null==a?void 0:a.includes("the file length cannot be greater than"))&&(n="file_too_large"),(null==a?void 0:a.startsWith("OIDC is enabled for this project, but not for the"))&&a.includes("environment.")&&(n="oidc_environment_not_allowed"),n){case"store_suspended":i=new W;break;case"forbidden":i=new D;break;case"oidc_environment_not_allowed":i=new j(a);break;case"content_type_not_allowed":i=new H(a);break;case"client_token_pathname_mismatch":i=new z(a);break;case"client_token_expired":i=new X;break;case"file_too_large":i=new F(a);break;case"not_found":i=new Y;break;case"client_token_not_allowed":i=new _(null!=a?a:"This operation is not available when using a client token. Use a read–write or OIDC token on the server.");break;case"store_not_found":i=new G;break;case"bad_request":i=new _(null!=a?a:"Bad request");break;case"service_unavailable":i=new K;break;case"rate_limited":i=new Q((s=e.headers.get("retry-after"))?parseInt(s,10):void 0);break;case"precondition_failed":i=new ee;break;default:i=new J}return{code:n,error:i}}async function er(e,t,r){let o=function(){let e=null;try{e=a.default.env.VERCEL_BLOB_API_VERSION_OVERRIDE||a.default.env.NEXT_PUBLIC_VERCEL_BLOB_API_VERSION_OVERRIDE}catch{}return`${null!=e?e:12}`}(),i=function(e){var t,r;if(null==e?void 0:e.presignedUrlPayload)return{kind:"presigned",storeId:function(e){let t,r=e.indexOf(".");if(r<0)throw new _("Invalid delegation token format.");let o=e.slice(0,r);try{t=JSON.parse(function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=4-t.length%4;if(4!==r&&(t+="=".repeat(r)),"function"==typeof atob)return atob(t);if(void 0!==n.Buffer)return n.Buffer.from(t,"base64").toString("utf8");throw new _("Cannot decode base64: no atob or Buffer available.")}(o))}catch{throw new _("Invalid delegation token payload.")}if(!t.storeId||"string"!=typeof t.storeId)throw new _("Delegation token payload is missing `storeId`.");return v(t.storeId)}(e.presignedUrlPayload.delegationToken)};if(null==e?void 0:e.token){let t=g(e.token);return{kind:"readWrite",token:e.token,storeId:t}}let o=null==(t=null==e?void 0:e.oidcToken)?void 0:t.trim(),i=o||function(){var e,t,r,o;let n=null==(e=(null!=(o=null==(r=null==(t=globalThis[f])?void 0:t.get)?void 0:r.call(t))?o:{}).headers)?void 0:e["x-vercel-oidc-token"];if("string"==typeof n&&""!==n.trim())return n.trim();try{let e=a.default.env.VERCEL_OIDC_TOKEN;return"string"==typeof e&&""!==e.trim()?e.trim():void 0}catch{return}}();if(i){let t=null==(r=null==e?void 0:e.storeId)?void 0:r.trim();if(t)return{kind:"oidc",token:i,storeId:v(t)};let n=w("BLOB_STORE_ID");if(n)return{kind:"oidc",token:i,storeId:v(n)};if(o)throw new _("oidcToken was passed, but no storeId was found. Pass a `storeId` option or set `BLOB_STORE_ID` to use OIDC auth")}let s=w("BLOB_READ_WRITE_TOKEN");if(s){let e=g(s);return{kind:"readWrite",token:s,storeId:e}}throw new _("No blob credentials found. Pass a `token` option, set `BLOB_READ_WRITE_TOKEN`, or use `oidcToken` (or `VERCEL_OIDC_TOKEN`) with `storeId` or `BLOB_STORE_ID`.")}(r),s="presigned"===i.kind?void 0:i.token,u=function(){let e={};try{"VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in a.default.env&&void 0!==a.default.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API?e["x-proxy-through-alternative-api"]=a.default.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API:"NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in a.default.env&&void 0!==a.default.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API&&(e["x-proxy-through-alternative-api"]=a.default.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API)}catch{}return e}(),c=O(e);(null==r?void 0:r.presignedUrlPayload)&&(c=((e,t)=>{let r=new URL(e);for(let[e,o]of Object.entries(t.params))r.searchParams.set(e,o);return r.searchParams.set("vercel-blob-delegation",t.delegationToken),r.searchParams.set("vercel-blob-signature",t.signature),r.toString()})(c,r.presignedUrlPayload));let d=`${i.storeId}:${Date.now()}:${Math.random().toString(16).slice(2)}`,p=0,h=0,m=0,b=(null==r?void 0:r.onUploadProgress)||function(){try{return"1"===a.default.env.VERCEL_BLOB_USE_X_CONTENT_LENGTH}catch{return!1}}();t.body&&b&&(h=k(t.body)),(null==r?void 0:r.onUploadProgress)&&r.onUploadProgress({loaded:0,total:h,percentage:0});let y=await (0,l.default)(async e=>{let n;try{n=await V({input:c,init:{...t,headers:{"x-api-blob-request-id":d,"x-vercel-blob-store-id":i.storeId,"x-api-blob-request-attempt":String(p),"x-api-version":o,...b?{"x-content-length":String(h)}:{},...void 0!==s?{authorization:`Bearer ${s}`}:{},...u,...t.headers}},onUploadProgress:(null==r?void 0:r.onUploadProgress)?e=>{var t;let o=0!==h?h:e;m=e;let n=h>0?Number((e/o*100).toFixed(2)):0;100===n&&h>0||null==(t=r.onUploadProgress)||t.call(r,{loaded:e,total:o,percentage:n})}:void 0})}catch(t){if(t instanceof I&&"AbortError"===t.name)return void e(new Z);if(t&&"[object Error]"===B.call(t)&&"TypeError"===t.name&&"string"==typeof t.message&&("Load failed"===t.message?void 0===t.stack:C.has(t.message)))throw t;if(t instanceof TypeError)return void e(t);throw t}if(n.ok)return n;let{code:a,error:l}=await et(n);if("unknown_error"===a||"service_unavailable"===a||"internal_server_error"===a)throw l;e(l)},{retries:function(){try{let e=a.default.env.VERCEL_BLOB_RETRIES||"10";return parseInt(e,10)}catch{return 10}}(),onRetry:t=>{t instanceof Error&&S(`retrying API request to ${e}`,t.message),p+=1}});if(!y)throw new J;return(null==r?void 0:r.onUploadProgress)&&r.onUploadProgress({loaded:m,total:m,percentage:100}),await y.json()}var eo="x-allow-overwrite";function en(e,t){let r={};if(r["x-vercel-blob-access"]=t.access,e.includes("contentType")&&t.contentType&&(r["x-content-type"]=t.contentType),e.includes("addRandomSuffix")&&void 0!==t.addRandomSuffix&&(r["x-add-random-suffix"]=t.addRandomSuffix?"1":"0"),e.includes("ifMatch")&&t.ifMatch){if(!1===t.allowOverwrite)throw new _("ifMatch and allowOverwrite: false are contradictory. ifMatch is used for c
2onditional overwrites, which requires allowOverwrite to be true.");r["x-if-match"]=t.ifMatch,e.includes("allowOverwrite")&&void 0===t.allowOverwrite&&(r[eo]="1")}return e.includes("allowOverwrite")&&void 0!==t.allowOverwrite&&(r[eo]=t.allowOverwrite?"1":"0"),e.includes("cacheControlMaxAge")&&void 0!==t.cacheControlMaxAge&&(r["x-cache-control-max-age"]=t.cacheControlMaxAge.toString()),r}async function ea({pathname:e,options:t,extraChecks:r,getToken:o}){if(!e)throw new _("pathname is required");if(e.length>950)throw new _("pathname is too long, maximum length is 950");for(let t of x)if(e.includes(t))throw new _(`pathname cannot contain "${t}", please encode it if needed`);if(!t)throw new _("missing options, see usage");if("public"!==t.access&&"private"!==t.access)throw new _('access must be "private" or "public", see https://vercel.com/docs/vercel-blob');return r&&r(t),o&&(t.token=await o(e,t)),t}async function ei({uploadId:e,key:t,pathname:r,parts:o,headers:n,options:a}){let i=new URLSearchParams({pathname:r});try{let r=await er(`/mpu?${i.toString()}`,{method:"POST",headers:{...n,"content-type":"application/json","x-mpu-action":"complete","x-mpu-upload-id":e,"x-mpu-key":encodeURIComponent(t)},body:JSON.stringify(o),signal:a.abortSignal},a);return S("mpu: complete",r),r}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new K;throw e}}async function es(e,t,r){S("mpu: create","pathname:",e);let o=new URLSearchParams({pathname:e});try{let e=await er(`/mpu?${o.toString()}`,{method:"POST",headers:{...t,"x-mpu-action":"create"},signal:r.abortSignal},r);return S("mpu: create",e),e}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new K;throw e}}async function el({uploadId:e,key:t,pathname:r,headers:o,options:n,internalAbortController:a=new AbortController,part:i}){var s,l,u;let c=new URLSearchParams({pathname:r}),d=er(`/mpu?${c.toString()}`,{signal:a.signal,method:"POST",headers:{...o,"x-mpu-action":"upload","x-mpu-key":encodeURIComponent(t),"x-mpu-upload-id":e,"x-mpu-part-number":i.partNumber.toString()},body:i.blob},n);function p(){a.abort()}(null==(s=n.abortSignal)?void 0:s.aborted)?p():null==(l=n.abortSignal)||l.addEventListener("abort",p);let h=await d;return null==(u=n.abortSignal)||u.removeEventListener("abort",p),h}var eu="u">typeof window?6:8,ec=8388608*eu*2;async function ed(e,t,r,o){S("mpu: init","pathname:",e,"headers:",r);let n={...o,onUploadProgress:void 0};if(void 0!==o.maximumSizeInBytes&&!P(t)&&k(t)>o.maximumSizeInBytes)throw new _(`Body size of ${k(t)} bytes exceeds the maximum allowed size of ${o.maximumSizeInBytes} bytes`);let a=await es(e,r,n),i=k(t),s=await p(t),l=await function({uploadId:e,key:t,pathname:r,stream:o,headers:n,options:a,totalToLoad:i}){S("mpu: upload init","key:",t);let s=new AbortController;return new Promise((l,u)=>{let d,p=[],h=[],f=o.getReader(),m=0,b=!1,w=1,g=!1,v=0,_=!1,T=0,x=[],E=0,O={};async function R(){for(S("mpu: upload read start","activeUploads:",m,"currentBytesInMemory:",`${y(v)}/${y(ec)}`,"bytesSent:",y(T)),b=!0;v<ec&&!g;)try{let{value:e,done:t}=await f.read();if(t){_=!0,S("mpu: upload read consumed the whole stream"),x.length>0?(p.push({partNumber:w++,blob:new Blob(x,{type:"application/octet-stream"})}),U()):0===m&&(f.releaseLock(),l(h)),b=!1;return}v+=e.byteLength;let r=0;for(;r<e.byteLength;){let t=8388608-E,o=Math.min(r+t,e.byteLength),n=e.slice(r,o);x.push(n),E+=n.byteLength,r=o,8388608===E&&(p.push({partNumber:w++,blob:new Blob(x,{type:"application/octet-stream"})}),x=[],E=0,U())}}catch(e){P(e)}S("mpu: upload read end","activeUploads:",m,"currentBytesInMemory:",`${y(v)}/${y(ec)}`,"bytesSent:",y(T)),b=!1}async function k(o){m++,S("mpu: upload send part start","partNumber:",o.partNumber,"size:",o.blob.size,"activeUploads:",m,"currentBytesInMemory:",`${y(v)}/${y(ec)}`,"bytesSent:",y(T));try{let i=a.onUploadProgress?e=>{O[o.partNumber]=e.loaded,d&&d()}:void 0,u=await el({uploadId:e,key:t,pathname:r,headers:n,options:{...a,onUploadProgress:i},internalAbortController:s,part:o});if(S("mpu: upload send part end","partNumber:",o.partNumber,"activeUploads",m,"currentBytesInMemory:",`${y(v)}/${y(ec)}`,"bytesSent:",y(T)),g)return;if(h.push({partNumber:o.partNumber,etag:u.etag}),v-=o.blob.size,m--,T+=o.blob.size,p.length>0&&U(),_){0===m&&(f.releaseLock(),l(h));return}b||R().catch(P)}catch(e){P(e)}}function U(){if(!g)for(S("send parts","activeUploads",m,"partsToUpload",p.length);m<eu&&p.length>0;){let e=p.shift();e&&k(e)}}function P(e){g||(g=!0,s.abort(),f.releaseLock(),e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message)?u(new K):u(e))}
2a.onUploadProgress&&(d=(0,c.default)(()=>{var e;let t=Object.values(O).reduce((e,t)=>e+t,0),r=i||t,o=i>0?Number((100*(t/i||t)).toFixed(2)):0;null==(e=a.onUploadProgress)||e.call(a,{loaded:t,total:r,percentage:o})},150)),R().catch(P)})}({uploadId:a.uploadId,key:a.key,pathname:e,stream:s,headers:r,options:o,totalToLoad:i});return await ei({uploadId:a.uploadId,key:a.key,pathname:e,parts:l,headers:r,options:n})}function ep({allowedOptions:e,getToken:t,getPresignedUrlPayload:r,extraChecks:o}){return async function(n,a,i){if(!a)throw new _("body is required");if(T(a))throw new _("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");let s=await ea({pathname:n,options:i,extraChecks:o,getToken:t}),l=await (null==r?void 0:r(n,s)),u={...s,presignedUrlPayload:l},d=en(e,s);if(!0===s.multipart)return ed(n,a,d,u);let p=s.onUploadProgress?(0,c.default)(s.onUploadProgress,100):void 0,h=new URLSearchParams({pathname:n}),f=await er(`/?${h.toString()}`,{method:"PUT",body:a,headers:d,signal:s.abortSignal},{...u,onUploadProgress:p});return{url:f.url,downloadUrl:f.downloadUrl,pathname:f.pathname,contentType:f.contentType,contentDisposition:f.contentDisposition,etag:f.etag}}}function eh(e){return function(t){if(!t.token.startsWith("vercel_blob_client_"))throw new _(`${e} must be called with a client token`);if(void 0!==t.addRandomSuffix||void 0!==t.allowOverwrite||void 0!==t.cacheControlMaxAge)throw new _(`${e} doesn't allow \`addRandomSuffix\`, \`cacheControlMaxAge\` or \`allowOverwrite\`. Configure these options at the server side when generating client tokens.`)}}new TextEncoder,ep({allowedOptions:["contentType"],extraChecks:eh("client/`put`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:eh("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:eh("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:eh("client/`multipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:eh("client/`completeMultipartUpload`")});var ef=ep({allowedOptions:["contentType"],extraChecks(e){if(void 0===e.handleUploadUrl)throw new _("client/`upload` requires the 'handleUploadUrl' parameter");if(void 0!==e.addRandomSuffix||void 0!==e.allowOverwrite||void 0!==e.cacheControlMaxAge||void 0!==e.ifMatch)throw new _("client/`upload` doesn't allow `addRandomSuffix`, `cacheControlMaxAge`, `allowOverwrite` or `ifMatch`. Configure these options at the server side when generating client tokens.")},async getToken(e,t){var r,o;return em({handleUploadUrl:t.handleUploadUrl,pathname:e,clientPayload:null!=(r=t.clientPayload)?r:null,multipart:null!=(o=t.multipart)&&o,headers:t.headers})}});ep({allowedOptions:["contentType"],extraChecks(e){if(void 0===e.handleUploadUrl)throw new _("client/`upload` requires the 'handleUploadUrl' parameter");if(void 0!==e.addRandomSuffix||void 0!==e.allowOverwrite||void 0!==e.cacheControlMaxAge||void 0!==e.ifMatch)throw new _("client/`uploadPresigned` doesn't allow `addRandomSuffix`, `cacheControlMaxAge`, `allowOverwrite` or `ifMatch`. Configure these options at the server side when generating presigned URLs.")},async getPresignedUrlPayload(e,t){var r,o;return eb({pathname:e,handleUploadUrl:t.handleUploadUrl,clientPayload:null!=(r=t.clientPayload)?r:null,multipart:null!=(o=t.multipart)&&o,headers:t.headers})}});async function em(e){let{handleUploadUrl:t,pathname:r}=e,o=ew(t)?t:ey(t),n={type:"blob.generate-client-token",payload:{pathname:r,clientPayload:e.clientPayload,multipart:e.multipart}},a=await u(o,{method:"POST",body:JSON.stringify(n),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!a.ok)throw new _("Failed to  retrieve the client token");try{let{clientToken:e}=await a.json();return e}catch{throw new _("Failed to retrieve the client token")}}async function eb(e){let{handleUploadUrl:t,pathname:r}=e,o=ew(t)?t:ey(t),n={type:"blob.generate-presigned-url",payload:{pathname:r,clientPayload:e.clientPayload,multipart:e.multipart}},a=await u(o,{method:"POST",body:JSON.stringify(n),headers:{"content-type":"application/json",...e.headers},signal:e.abortSignal});if(!a.ok)throw new _("Failed to retrieve the presigned URL");try{let{presignedUrlPayload:e}=await a.json();if(e)return e;throw new _("Missing presignedUrlPayload")}catch(e){if(e instanceof _)throw e;throw new _("Failed to retrieve the presigned URL")}}function ey(e){return new URL(e,location.href).href}function ew(e){try{return new URL(e),!0}catch{return!1}}e.s(["upload",0,ef],828124)}]);
3
4//# debugId=2d0da77a-9578-2e52-fa52-abc2a9d07e8b
5//# sourceMappingURL=1vee-ryqqnx47.js.map
6//# chunkId=01a0d0df-a632-7d80-94c6-6f185b18b062

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.