1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,730732,e=>{"use strict";var r=e.i(764843),t=e.i(619637),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;e.s(["default",0,function(e,i){if((0,r.default)(e))return!1;var a=typeof e;return!!("number"==a||"symbol"==a||"boolean"==a||null==e||(0,t.default)(e))||n.test(e)||!o.test(e)||null!=i&&e in Object(i)}])},764843,e=>{"use strict";var r=Array.isArray;e.s(["default",0,r])},49862,e=>{"use strict";e.s(["default",0,function(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}])},619637,659173,122954,706462,492943,e=>{"use strict";var r=e.g&&e.g.Object===Object&&e.g,t="object"==typeof self&&self&&self.Object===Object&&self,o=r||t||Function("return this")();e.s(["default",0,o],659173);var n=o.Symbol;e.s(["default",0,n],122954);var i=Object.prototype,a=i.hasOwnProperty,s=i.toString,l=n?n.toStringTag:void 0;let u=function(e){var r=a.call(e,l),t=e[l];try{e[l]=void 0;var o=!0}catch(e){}var n=s.call(e);return o&&(r?e[l]=t:delete e[l]),n};var c=Object.prototype.toString,f=n?n.toStringTag:void 0;let _=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?u(e):c.call(e)};e.s(["default",0,_],706462);let d=function(e){return null!=e&&"object"==typeof e};e.s(["default",0,d],492943),e.s(["default",0,function(e){return"symbol"==typeof e||d(e)&&"[object Symbol]"==_(e)}],619637)},743486,e=>{"use strict";var r=e.i(229827);let t=/\{[^{}]+\}/g;function o(e,r,t){if(null==r)return"";if("object"==typeof r)throw Error("Deeply-nested arrays/objects arenât supported. Provide your own `querySerializer()` to handle these.");return`${e}=${t?.allowReserved===!0?r:encodeURIComponent(r)}`}function n(e,r,t){if(!r||"object"!=typeof r)return"";let n=[],i={simple:",",label:".",matrix:";"}[t.style]||"&";if("deepObject"!==t.style&&!1===t.explode){for(let e in r)n.push(e,!0===t.allowReserved?r[e]:encodeURIComponent(r[e]));let o=n.join(",");switch(t.style){case"form":return`${e}=${o}`;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return o}}for(let i in r){let a="deepObject"===t.style?`${e}[${i}]`:i;n.push(o(a,r[i],t))}let a=n.join(i);return"label"===t.style||"matrix"===t.style?`${i}${a}`:a}function i(e,r,t){if(!Array.isArray(r))return"";if(!1===t.explode){let o={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[t.style]||",",n=(!0===t.allowReserved?r:r.map(e=>encodeURIComponent(e))).join(o);switch(t.style){case"simple":return n;case"label":return`.${n}`;case"matrix":return`;${e}=${n}`;default:return`${e}=${n}`}}let n={simple:",",label:".",matrix:";"}[t.style]||"&",i=[];for(let n of r)"simple"===t.style||"label"===t.style?i.push(!0===t.allowReserved?n:encodeURIComponent(n)):i.push(o(e,n,t));return"label"===t.style||"matrix"===t.style?`${n}${i.join(n)}`:i.join(n)}function a(e){return function(r){let t=[];if(r&&"object"==typeof r)for(let a in r){let s=r[a];if(null!=s){if(Array.isArray(s)){if(0===s.length)continue;t.push(i(a,s,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if("object"==typeof s){t.push(n(a,s,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}t.push(o(a,s,e))}}return t.join("&")}}function s(e,r){let a=e;for(let s of e.match(t)??[]){let e=s.substring(1,s.length-1),t=!1,l="simple";if(e.endsWith("*")&&(t=!0,e=e.substring(0,e.length-1)),e.startsWith(".")?(l="label",e=e.substring(1)):e.startsWith(";")&&(l="matrix",e=e.substring(1)),!r||void 0===r[e]||null===r[e])continue;let u=r[e];if(Array.isArray(u)){a=a.replace(s,i(e,u,{style:l,explode:t}));continue}if("object"==typeof u){a=a.replace(s,n(e,u,{style:l,explode:t}));continue}if("matrix"===l){a=a.replace(s,`;${o(e,u)}`);continue}a=a.replace(s,"label"===l?`.${encodeURIComponent(u)}`:encodeURIComponent(u))}return a}function l(e,r){return e instanceof FormData?e:r&&"application/x-www-form-urlencoded"===(r.get instanceof Function?r.get("Content-Type")??r.get("content-type"):r["Content-Type"]??r["content-type"])?new URLSearchParams(e).toString():JSON.stringify(e)}function u(...e){let r=new Headers;for(let t of e)if(t&&"object"==typeof t)for(let[e,o]of t instanceof Headers?t.entries():Object.entries(t))if(null===o)r.delete(e);else if(Array.isArray(o))for(let t of o)r.append(e,t);else void 0!==o&&r.set(e,o);return r}function c(e){return e.endsWith("/")?e.substring(0,e.length-1):e}e.s(["default",0,function(e){let{baseUrl:t="",Request:o=globalThis.Request,fetch:n=globalThis.fetch,querySerializer:i,bodySerializer:f,pathSerializer:_,headers:d,requestInitExt:E,...p}={...e};E="object"==typeof r.default&&Number.parseInt(r.default?.versions?.n
1ode?.substring(0,2))>=18&&r.default.versions.undici?E:void 0,t=c(t);let h=[];async function A(e,r){var A,O;let I,R,y,T,N,{baseUrl:D,fetch:m=n,Request:g=o,headers:v,params:U={},parseAs:L="json",querySerializer:S,bodySerializer:C=f??l,pathSerializer:b,body:w,middleware:P=[],...F}=r||{},M=t;D&&(M=c(D)??t);let j="function"==typeof i?i:a(i);S&&(j="function"==typeof S?S:a({..."object"==typeof i?i:{},...S}));let $=b||_||s,Y=void 0===w?void 0:C(w,u(d,v,U.header)),G=u(void 0===Y||Y instanceof FormData?{}:{"Content-Type":"application/json"},d,v,U.header),k=[...h,...P],V={redirect:"follow",...p,...F,body:Y,headers:G},x=new g((A=e,O={baseUrl:M,params:U,querySerializer:j,pathSerializer:$},I=`${O.baseUrl}${A}`,O.params?.path&&(I=O.pathSerializer(I,O.params.path)),(R=O.querySerializer(O.params.query??{})).startsWith("?")&&(R=R.substring(1)),R&&(I+=`?${R}`),I),V);for(let e in F)e in x||(x[e]=F[e]);if(k.length){for(let r of(y=Math.random().toString(36).slice(2,11),T=Object.freeze({baseUrl:M,fetch:m,parseAs:L,querySerializer:j,bodySerializer:C,pathSerializer:$}),k))if(r&&"object"==typeof r&&"function"==typeof r.onRequest){let t=await r.onRequest({request:x,schemaPath:e,params:U,options:T,id:y});if(t)if(t instanceof g)x=t;else if(t instanceof Response){N=t;break}else throw Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!N){try{N=await m(x,E)}catch(t){let r=t;if(k.length)for(let t=k.length-1;t>=0;t--){let o=k[t];if(o&&"object"==typeof o&&"function"==typeof o.onError){let t=await o.onError({request:x,error:r,schemaPath:e,params:U,options:T,id:y});if(t){if(t instanceof Response){r=void 0,N=t;break}if(t instanceof Error){r=t;continue}throw Error("onError: must return new Response() or instance of Error")}}}if(r)throw r}if(k.length)for(let r=k.length-1;r>=0;r--){let t=k[r];if(t&&"object"==typeof t&&"function"==typeof t.onResponse){let r=await t.onResponse({request:x,response:N,schemaPath:e,params:U,options:T,id:y});if(r){if(!(r instanceof Response))throw Error("onResponse: must return new Response() when modifying the response");N=r}}}}let H=N.headers.get("Content-Length");if(204===N.status||"HEAD"===x.method||"0"===H&&!N.headers.get("Transfer-Encoding")?.includes("chunked"))return N.ok?{data:void 0,response:N}:{error:void 0,response:N};if(N.ok){let e=async()=>{if("stream"===L)return N.body;if("json"===L&&!H){let e=await N.text();return e?JSON.parse(e):void 0}return await N[L]()};return{data:await e(),response:N}}let K=await N.text();try{K=JSON.parse(K)}catch{}return{error:K,response:N}}return{request:(e,r,t)=>A(r,{...t,method:e.toUpperCase()}),GET:(e,r)=>A(e,{...r,method:"GET"}),PUT:(e,r)=>A(e,{...r,method:"PUT"}),POST:(e,r)=>A(e,{...r,method:"POST"}),DELETE:(e,r)=>A(e,{...r,method:"DELETE"}),OPTIONS:(e,r)=>A(e,{...r,method:"OPTIONS"}),HEAD:(e,r)=>A(e,{...r,method:"HEAD"}),PATCH:(e,r)=>A(e,{...r,method:"PATCH"}),TRACE:(e,r)=>A(e,{...r,method:"TRACE"}),use(...e){for(let r of e)if(r){if("object"!=typeof r||!("onRequest"in r||"onResponse"in r||"onError"in r))throw Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");h.push(r)}},eject(...e){for(let r of e){let e=h.indexOf(r);-1!==e&&h.splice(e,1)}}}}])},283516,e=>{"use strict";let r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;e.s(["validate",0,function(e){return"string"==typeof e&&r.test(e)}],283516)},97298,e=>{"use strict";var r,t,o=((r={}).EMAIL_ALREADY_CONFIRMED="Email already confirmed",r.CONFIRMATION_TOKEN_EXPIRED="Confirmation token expired",r.CONFIRMATION_TOKEN_INVALID="Confirmation token invalid",r.PASSWORDS_DO_NOT_MATCH="Passwords do not match",r.INVALID_PASSWORD="Invalid password",r.INVALID_CONFIRMATION_CODE="Invalid confirmation code",r.INVALID_EMAIL="Provided email is invalid",r.EMAIL_NOT_FOUND="Email not found",r.UNCONFIRMED_EMAIL="Unconfirmed email",r.INACTIVE_ACCOUNT="Inactive account",r.DELETED_ACCOUNT="Deleted account",r.SIGNUP_EMAIL_ALREADY_EXISTS="User with that email already exists",r.FOLDER_NAME_USER_ALREADY_EXISTS="Folder with that name already exists for that user",r.LOGIN_WRONG_CREDENTIALS="Wrong credentials provided",r.RECOVERY_KEY_WRONG_PASSPHRASE="Wrong passphrase provided",r.UNKNOW_ERROR="Unknown error",r.ACCOUNT_CREATED_WITH_OTHER_METHOD="Account created with other method",r.REFRESH_TOKEN_FAILED="Refresh token failed",r.AUDIO_FILE_NOT_FOUND="Audio file not found",r.AUDIO_FILE_EXPIRED="Audio file expired",r.AUDIO_FILE_ALREADY_LINKED_TO_PREDICTION="Audio file already linked to prediction",r.NO_FILE_DURATION="Could not get duration of audio file",r.FILE_UPLOAD_TOO_LONG="File upload took too long",r.DURATION_NOT_FOUND="Could not get duration",r.FILE_TOO_LONG="file_too_long",r.INVALID_PAYLOAD="Invalid payload",r.NOT_ENOUGH_CREDITS="Not enough credits",r.AUDIO_PROCESSING_FAILED="Audio processing failed",r.AUDIO_PROCESSING_FAILED_WAV="Audio processing failed wav",r.PREDICTION_EMPTY="Prediction is empty",r.INVALID_UUID="Invalid UUID",r.ALREADY_REFUNDED="Prediction is already refunded",r.DECRYPT_PRIVATE_KEY_ERROR="Decrypt private key error",r.
1KEY_MISSING_FOR_USER="Key is missing for user",r.KEY_INCOMPLETE_FOR_USER="Key is incomplete for user",r.MOOV_ATOM_NOT_FOUND_VIDEO="Moov atom not found video",r.MOOV_ATOM_NOT_FOUND_AUDIO="Moov atom not found audio",r.MOOV_ATOM_NOT_FOUND_AUDIO_MP3="Moov atom not found audio mp3",r.DICTIONARY_INVALID_FORMAT="Invalid dictionary format",r.DICTIONARY_FILE_TOO_LARGE="Dictionary file too large",r.DICTIONARY_EMPTY="Dictionary is empty",r.DICTIONARY_ENTRY_COMMON_WORD="dictionary_entry_common_word",r.DAILY_FREE_TRANSCRIPT_USED="Daily free transcript already used",r.DAILY_FREE_LLM_QUERIES_EXHAUSTED="Daily free LLM queries already used",r.FAIR_USE_LIMIT_REACHED="Fair use limit reached",r.ORG_INVITE_REQUIRES_VOOK_ACCOUNT="The invitee must already have a Vook account. Ask them to sign up first, then try again.",r.ORG_ADMIN_CANNOT_REMOVE_SELF="Cannot remove the organisation admin from their own seat.",r.UNFULFILLED_SUBSCRIPTION_PAYMENT="Unfulfilled subscription payment",r.PAID_PLAN_REQUIRED="paid_plan_required",r.PAID_PLAN_REQUIRED_FOR_FORMAT="paid_plan_required_for_format",r.FORMAT_TEMPLATE_DUPLICATE_TITLE="duplicate_title",r.INVALID_FORMAT_OUTPUT="invalid_format_output",r.FORMATTED_CONTEXT_UNAVAILABLE="formatted_context_unavailable",r.REFINE_SOURCE_EXPIRED="refine_source_expired",r.BILLING_ADDRESS_REQUIRED="billing_address_required",r),n=((t={}).NOT_STARTED="NOT_STARTED",t.LOADING="LOADING",t.ERROR="ERROR",t.SUCCESS="SUCCESS",t);e.s(["ApiError",()=>o,"LoadingStatus",()=>n])},993040,745724,e=>{"use strict";var r,t,o,n=e.i(764843),i=e.i(730732),a=e.i(706462),s=e.i(49862);let l=function(e){if(!(0,s.default)(e))return!1;var r=(0,a.default)(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r};var u=e.i(659173),c=u.default["__core-js_shared__"],f=(r=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",_=Function.prototype.toString;let d=function(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var E=/^\[object .+?Constructor\]$/,p=Object.prototype,h=Function.prototype.toString,A=p.hasOwnProperty,O=RegExp("^"+h.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let I=function(e){return!!(0,s.default)(e)&&(!f||!(f in e))&&(l(e)?O:E).test(d(e))},R=function(e,r){var t=null==e?void 0:e[r];return I(t)?t:void 0};var y=R(Object,"create"),T=Object.prototype.hasOwnProperty,N=Object.prototype.hasOwnProperty;function D(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var o=e[r];this.set(o[0],o[1])}}D.prototype.clear=function(){this.__data__=y?y(null):{},this.size=0},D.prototype.delete=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=!!r,r},D.prototype.get=function(e){var r=this.__data__;if(y){var t=r[e];return"__lodash_hash_undefined__"===t?void 0:t}return T.call(r,e)?r[e]:void 0},D.prototype.has=function(e){var r=this.__data__;return y?void 0!==r[e]:N.call(r,e)},D.prototype.set=function(e,r){var t=this.__data__;return this.size+=+!this.has(e),t[e]=y&&void 0===r?"__lodash_hash_undefined__":r,this};let m=function(e,r){for(var t,o=e.length;o--;)if((t=e[o][0])===r||t!=t&&r!=r)return o;return -1};var g=Array.prototype.splice;function v(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var o=e[r];this.set(o[0],o[1])}}v.prototype.clear=function(){this.__data__=[],this.size=0},v.prototype.delete=function(e){var r=this.__data__,t=m(r,e);return!(t<0)&&(t==r.length-1?r.pop():g.call(r,t,1),--this.size,!0)},v.prototype.get=function(e){var r=this.__data__,t=m(r,e);return t<0?void 0:r[t][1]},v.prototype.has=function(e){return m(this.__data__,e)>-1},v.prototype.set=function(e,r){var t=this.__data__,o=m(t,e);return o<0?(++this.size,t.push([e,r])):t[o][1]=r,this};var U=R(u.default,"Map");let L=function(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e},S=function(e,r){var t=e.__data__;return L(r)?t["string"==typeof r?"string":"hash"]:t.map};function C(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var o=e[r];this.set(o[0],o[1])}}function b(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw TypeError("Expected a function");var t=function(){var o=arguments,n=r?r.apply(this,o):o[0],i=t.cache;if(i.has(n))return i.get(n);var a=e.apply(this,o);return t.cache=i.set(n,a)||i,a};return t.cache=new(b.Cache||C),t}C.prototype.clear=function(){this.size=0,this.__data__={hash:new D,map:new(U||v),string:new D}},C.prototype.delete=function(e){var r=S(this,e).delete(e);return this.size-=!!r,r},C.prototype.get=function(e){return S(this,e).get(e)},C.prototype.has=function(e){return S(this,e).has(e)},C.prototype.set=function(e,r){var t=S(this,e),o=t.size;return t.set(e,r),this.size+=+(t.size!=o),this},b.Cache=C;var w=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,F=(o=(t=b(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(w,function(e,t,o,n){r.push(o?n.replace(P,"$1"):t||e)}),r},function(e){return 500===o.size&&o.clear(),e})).cache,t),M=e.i(122954);let j=function(e,r){for(var t=-1,o=null==e?0:e.length,n=Array(o);++t<o;)n[t]=r(e[t],t,e);return n};var $=e.i(619637),Y=1/0,G=M.default?M.default.prototype:void 0,k=G?G.toString:void 0;let V=function e(r){if("string"==typeof r)return r;if((0,n.default)(r))return j(r,e)+"";if((0,$.default)(r))return k?k.call(r):"";var t=r+"";return"0"==t&&1/r==-Y?"-0":t},x=function(e,r){return(0,n.default)(e)?e:(0,i.default)(e,r)?[e]:F(null==e?"":V(e))};var H=1/0;let K=function(e){if("string"==typeof e||(0,$.default)(e))return e;var r=e+"";return"0"==r&&1/e==-H?"-0":r},W=function(e,r){r=x(r,e);for(var t=0,o=r.length;null!=e&&t<o;)e=e[K(r[t++])];return t&&t==o?e:void 0},q=function(e,r,t){var o=null==e?void 0:W(e,r);
1return void 0===o?t:o};e.s(["get",0,q],745724);var B=e.i(97298);e.s(["toApiError",0,e=>{let r=q(e,"message");return Object.values(B.ApiError).includes(r)?r:B.ApiError.UNKNOW_ERROR}],993040)},280944,e=>{"use strict";var r=e.i(97298),t=e.i(895960);let o=e=>{if(e&&"object"==typeof e&&"status"in e&&"number"==typeof e.status)return e.status};e.s(["getApiErrorStatus",0,o,"getIsBillingAddressRequired",0,e=>400===o(e)&&(0,t.getErrorMessage)(e)===r.ApiError.BILLING_ADDRESS_REQUIRED,"getIsFairUseRefusal",0,e=>429===o(e)&&(0,t.getErrorMessage)(e)===r.ApiError.FAIR_USE_LIMIT_REACHED,"getIsUnfulfilledSubscriptionPayment",0,e=>409===o(e)&&(0,t.getErrorMessage)(e)===r.ApiError.UNFULFILLED_SUBSCRIPTION_PAYMENT])},269126,e=>{"use strict";var r=e.i(283516),t=e.i(26198),o=e.i(744705),n=e.i(544236),i=e.i(97298),a=e.i(280944),s=e.i(895960),l=e.i(513955),u=e.i(350045),c=e.i(78454);let f=(e,r,t,o)=>{(0,l.logToServer)({level:o,message:"API request failed",category:n.LogCategory.Http,metadata:[{title:"request_path",value:r,short:!0},{title:"endpoint",value:L(r),short:!0},{title:"http_status",value:String(t),short:!0},{title:"backend_message",value:(0,s.getErrorMessage)(e),short:!1}]})},_=["/google-authentication","/microsoft-authentication","/authentication/log-in","/authentication/register"],d="/authentication/log-out",E=e=>{if(!t.clientEnv.NEXT_PUBLIC_BACKEND_URL.includes(".ngrok-free.app"))return e;let r=new Headers(e?.headers);return r.set("ngrok-skip-browser-warning","1"),{...e,headers:r}},p=async(e,r)=>{let o=t.clientEnv.NEXT_PUBLIC_BACKEND_URL,n=e.startsWith("http")?e:`${o}${e}`,i=E(r),a=await fetch(n,i);if(401!==a.status||_.includes(e))return a;try{await m()}catch(r){if(e===d)return a;throw T(),r}let s=await fetch(n,i);return 401===s.status&&e!==d&&h(e),s}
1,h=e=>{throw(0,l.logToServer)({level:"warn",message:"Session unrecoverable after refresh",category:n.LogCategory.Http,metadata:[{title:"request_path",value:e,short:!0},{title:"endpoint",value:L(e),short:!0}]}),T(),Object.assign(Error("Session unrecoverable after refresh"),{status:401})},A=async(e,r,t="error")=>{let o=await p(e,r);return await v(o,e,t),o},O=async()=>{let e=`${t.clientEnv.NEXT_PUBLIC_BACKEND_URL}${d}`;await fetch(e,E({method:"POST",credentials:"include"}))},I=async()=>{try{let e=await fetch(`${t.clientEnv.NEXT_PUBLIC_BACKEND_URL}/users/me`,E({credentials:"include"}));if(!e.ok)return!1;let r=await e.json();return!0===r.should_recover_key}catch{return!1}},R=null,y=async()=>R??=I().finally(()=>{R=null}),T=(e=!1)=>{let r=navigator.language.split("-")[0],t=o.routing.locales.includes(r)?r:o.routing.defaultLocale;(0,u.setRedirectCookie)(window.location.pathname),window.location.href=`/${t}/sign-in${e?"?error=true":""}`},N=async()=>{let e=`${t.clientEnv.NEXT_PUBLIC_BACKEND_URL}/authentication/refresh`;if(!(await fetch(e,E({method:"GET",credentials:"include"}))).ok)throw Error("Token refresh failed")},D=null,m=async()=>D??=N().finally(()=>{D=null}),g=async e=>{let{message:r}=e;if("string"!=typeof r)return;let t=r.startsWith(i.ApiError.DECRYPT_PRIVATE_KEY_ERROR);if(t||r.startsWith(i.ApiError.KEY_MISSING_FOR_USER)||r.startsWith(i.ApiError.KEY_INCOMPLETE_FOR_USER)){if(t&&await y())throw window.location.pathname!==c.PAGES.RECOVER_KEY.route&&(window.location.href=c.PAGES.RECOVER_KEY.route),Error(r);throw await O(),T(!0),Error(r)}},v=async(e,r,t)=>{if(!e.ok){let o=await e.json().catch(()=>({})),n={...o,status:e.status};throw f(o,r,e.status,(0,a.getIsFairUseRefusal)(n)?"warn":t),await g(o),n}},U=async(e,r)=>{if(!e.ok){let t=e.clone(),o=await t.json().catch(()=>({message:`HTTP ${e.status}: ${e.statusText}`}));throw f(o,r,e.status,"error"),await g(o),{...o,status:e.status}}},L=e=>e.split("/").map(e=>(0,r.validate)(e)?":id":e).join("/");e.s(["DEFAULT_PAGE_SIZE",0,10,"fetchWithBackendUrl",0,A,"fetchWithRefresh",0,p,"getApiErrorMessageId",0,(e,r)=>{switch(e){case i.ApiError.LOGIN_WRONG_CREDENTIALS:return"error.wrong-credentials";case i.ApiError.INVALID_PASSWORD:return"error.invalid-password";case i.ApiError.SIGNUP_EMAIL_ALREADY_EXISTS:return"error.email-already-exists";case i.ApiError.INVALID_EMAIL:return"error.email-not-accepted";case i.ApiError.UNCONFIRMED_EMAIL:return"error.unconfirmed-email";case i.ApiError.EMAIL_ALREADY_CONFIRMED:return"error.email-already-confirmed";case i.ApiError.DELETED_ACCOUNT:return"error.deleted-account";case i.ApiError.RECOVERY_KEY_WRONG_PASSPHRASE:return"error.wrong-passphrase";case i.ApiError.ACCOUNT_CREATED_WITH_OTHER_METHOD:return"error.account-created-other-method";case i.ApiError.FILE_UPLOAD_TOO_LONG:return"error.file-upload-too-long";case i.ApiError.FILE_TOO_LONG:return"error.file-too-long";case i.ApiError.DURATION_NOT_FOUND:return"error.duration-not-found";case i.ApiError.NOT_ENOUGH_CREDITS:return"error.not-enough-credits";case i.ApiError.AUDIO_PROCESSING_FAILED:case i.ApiError.AUDIO_PROCESSING_FAILED_WAV:return"error.audio-processing-failed";case i.ApiError.MOOV_ATOM_NOT_FOUND_VIDEO:return"error.moov-atom-not-found-video";case i.ApiError.MOOV_ATOM_NOT_FOUND_AUDIO:return"error.moov-atom-not-found-audio-non-mp3";case i.ApiError.MOOV_ATOM_NOT_FOUND_AUDIO_MP3:return"error.moov-atom-not-found-audio-mp3";case i.ApiError.EMAIL_NOT_FOUND:return"error.email-not-found";case i.ApiError.AUDIO_FILE_NOT_FOUND:return"error.audio-file-not-found";case i.ApiError.AUDIO_FILE_EXPIRED:return"error.audio-file-expired";case i.ApiError.FOLDER_NAME_USER_ALREADY_EXISTS:return"error.folder-name-user-already-exists";case i.ApiError.ALREADY_REFUNDED:return"error.already-refunded";case i.ApiError.INVALID_CONFIRMATION_CODE:return"error.invalid-confirmation-code";case i.ApiError.CONFIRMATION_TOKEN_EXPIRED:return"error.reset-link-expired";case i.ApiError.CONFIRMATION_TOKEN_INVALID:return"error.reset-link-invalid";case i.ApiError.PASSWORDS_DO_NOT_MATCH:return"error.password-mismatch";case i.ApiError.DICTIONARY_INVALID_FORMAT:return"error.dictionary-invalid-format";case i.ApiError.DICTIONARY_FILE_TOO_LARGE:return"error.dictionary-file-too-large";case i.ApiError.DICTIONARY_ENTRY_COMMON_WORD:return"error.dictionary-common-word";case i.ApiError.DICTIONARY_EMPTY:return"error.dictionary-empty";case i.ApiError.DAILY_FREE_TRANSCRIPT_USED:return"error.free-daily-limit-reached";case i.ApiError.DAILY_FREE_LLM_QUERIES_EXHAUSTED:return"error.free-daily-llm-limit-reached";case i.ApiError.FAIR_USE_LIMIT_REACHED:return"error.fair-use-limit-reached";case i.ApiError.ORG_INVITE_REQUIRES_VOOK_ACCOUNT:return"error.org-invite-requires-vook-account";case i.ApiError.ORG_ADMIN_CANNOT_REMOVE_SELF:return"error.org-admin-cannot-remove-self";case i.ApiError.UNFULFILLED_SUBSCRIPTION_PAYMENT:return"error.unfulfilled-subscription-payment";default:return r??"error.unknown"}},"throwIfApiErrorForStream",0,U])},517352,e=>{"use strict";let r;var t=e.i(743486),o=e.i(26198),n=e.i(269126);let i=e=>async r=>{let t=new URL(r.url),o=`${t.pathname}${t.search}`,i="GET"===r.method||"HEAD"===r.method?"":await r.text();
1return(0,n.fetchWithBackendUrl)(o,{method:r.method,headers:r.headers,body:""===i?void 0:i,credentials:"include",signal:r.signal,keepalive:r.keepalive},e)},a=i("error"),s=i("warn"),l=async e=>{let r;return 204===(r=e.response).status||205===r.status?void 0:(e=>{if(null==e)throw Error(`Expected data to be defined but received ${null===e?"null":"undefined"}`);return e})(e.data)},u=e=>(n,...i)=>e(r??=(0,t.default)({baseUrl:o.clientEnv.NEXT_PUBLIC_BACKEND_URL,credentials:"include",fetch:a}))(n,...i).then(l),c={GET:u(e=>e.GET),POST:u(e=>e.POST),PUT:u(e=>e.PUT),PATCH:u(e=>e.PATCH),DELETE:u(e=>e.DELETE)};e.s(["api",0,c,"warnOnErrorBackendFetch",0,s])},895960,e=>{"use strict";e.s(["getErrorMessage",0,e=>{if(e instanceof Error)return e.message;if(e&&"object"==typeof e){for(let r of["message","error","errorMessage","msg","description","detail","details"])if("string"==typeof e[r]&&e[r])return e[r];if(Object.keys(e).length>0)try{let r=JSON.stringify(e);if("{}"!==r&&r.length<500)return r}catch{}}if("string"==typeof e&&e.trim())return e.trim();if("number"==typeof e)return`Error code: ${e}`;if("boolean"==typeof e)return`Error: ${e}`;if(null===e)return"Error: null";if(void 0===e)return"Error: undefined";try{let r=String(e);if("[object Object]"!==r&&r.trim())return r.trim()}catch{}return"No error message"},"getErrorStack",0,e=>e instanceof Error?e.stack:void 0])}]);
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.