PageSourceSearch

https://maisideias.co/assets/tusUploader.worker-8glCNHF3.js

js maisideias.co collected 2026-10-02 01:20:37 UTC 61,297 bytes, 3 lines download raw bytes

1(function(){"use strict";function ve(e){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(e)}function Lt(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t,r){return t=W(t),Dt(e,be()?Reflect.construct(t,r||[],W(e).constructor):t.apply(e,r))}function Dt(e,t){if(t&&(ve(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return It(e)}function It(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ft(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}function ge(e){var t=typeof Map=="function"?new Map:void 0;return ge=function(n){if(n===null||!$t(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Nt(n,arguments,W(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Z(o,n)},ge(e)}function Nt(e,t,r){if(be())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Z(o,r.prototype),o}function be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(be=function(){return!!e})()}function $t(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Z(e,t)}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},W(e)}var le=function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(Tt(this,t),n=Ct(this,t,[r]),n.originalRequest=u,n.originalResponse=l,n.causingError=o,o!=null&&(r+=", caused by ".concat(o.toString())),u!=null){var c=u.getHeader("X-Request-ID")||"n/a",h=u.getMethod(),m=u.getURL(),v=l?l.getStatus():"n/a",y=l?l.getBody()||"":"n/a";r+=", originated from request (method: ".concat(h,", url: ").concat(m,", response code: ").concat(v,", response text: ").concat(y,", request id: ").concat(c,")")}return n.message=r,n}return Ft(t,e),Lt(t)}(ge(Error));function Pn(e){}function J(e){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(e)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qt(n.key),n)}}function Ht(e,t,r){return t&&Bt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qt(e){var t=Mt(e,"string");return J(t)=="symbol"?t:t+""}function Mt(e,t){if(J(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(J(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gt=function(){function e(){zt(this,e)}return Ht(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}])}();const Fe="3.7.8",Kt=Fe,M=typeof Buffer=="function",Ne=typeof TextDecoder=="function"?new TextDecoder:void 0,$e=typeof TextEncoder=="function"?new TextEncoder:void 0,Q=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/="),fe=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(Q),Vt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,S=String.fromCharCode.bind(String),ze=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Be=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),He=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),qe=e=>{let t,r,n,o,u="";const l=e.length%3;for(let c=0;c<e.length;){if((r=e.charCodeAt(c++))>255||(n=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,u+=Q[t>>18&63]+Q[t>>12&63]+Q[t>>6&63]+Q[t&63]}return l?u.slice(0,l-3)+"===".substring(l):u},_e=typeof btoa=="function"?e=>btoa(e):M?e=>Buffer.from(e,"binary").toString("base64"):qe,we=M?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,o=e.length;n<o;n+=4096)r.push(S.apply(null,e.subarray(n,n+4096)));return _e(r.join(""))},ce=(e,t=!1)=>t?Be(we(e)):we(e),Xt=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?S(192|t>>>6)+S(128|t&63):S(224|t>>>12&15)+S(128|t>>>6&63)+S(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return S(240|t>>>18&7)+S(128|t>>>12&63)+S(128|t>>>6&63)+S(128|t&63)}},Yt=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Me=e=>e.replace(Yt,Xt),Ge=M?e=>Buffer.from(e,"utf8").toString("base64"):$e?e=>we($e.encode(e)):e=>_e(Me(e)),G=(e,t=!1)=>t?Be(Ge(e)):Ge(e),Ke=e=>G(e,!0),Zt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Wt=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return S((r>>>10)+55296)+S((r&1023)+56320);case 3:return S((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return S((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ve=e=>e.replace(Zt,Wt),Xe=e=>{if(e=e.replace(/\s+/g,""),!Vt.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r,n,o=[];for(let u=0;u<e.length;)t=fe[e.charAt(u++)]<<18|fe[e.charAt(u++)]<<12|(r=fe[e.charAt(u++)])<<6|(n=fe[e.charAt(u++)]),r===64?o.push(S(t>>16&255)):n===64?o.push(S(t>>16&255,t>>8&255)):o.push(S(t>>16&255,t>>8&255,t&255));return o.join("")},Se=typeof atob=="function"?e=>atob(He(e)):M?e=>Buffer.from(e,"base64").toString("binary"):Xe,Ye=M?e=>ze(Buffer.from(e,"base64")):e=>ze(Se(e).split("").map(t=>t.charCodeAt(0))),Ze=e=>Ye(We(e)),Jt=M?e=>Buffer.from(e,"base64").toString("utf8"):Ne?e=>Ne.decode(Ye(e)):e=>Ve(Se(e)),We=e=>He(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ue=e=>Jt(We(e)),Qt=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Je=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Qe=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,Je(r));e("fromBase64",function(){return Ue(this)}),e("toBase64",function(t){return G(this,t)}),e("toBase64URI",function(){return G(this,!0)}),e("toBase64URL",function(){return G(this,!0)}),e("toUint8Array",function(){return Ze(this)})},et=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,Je(r));e("toBase64",function(t){return ce(this,t)}),e("toBase64URI",function(){return ce(this,!0)}),e("toBase64URL",function(){return ce(this,!0)})},er={version:Fe,VERSION:Kt,atob:Se,atobPolyfill:Xe,btoa:_e,btoaPolyfill:qe,fromBase64:Ue,toBase64:G,encode:G,encodeURI:Ke,encodeURL:Ke,utob:Me,btou:Ve,decode:Ue,isValid:Qt,fromUint8Array:ce,toUint8Array:Ze,extendString:Qe,extendUint8Array:et,extendBuiltins:()=>{Qe(),et()}};var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},Pe={},nr=Object.prototype.hasOwnProperty,or;function rt(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function nt(e){try{return encodeURIComponent(e)}catch{return null}}function ir(e){for(var t=/([^=?#&]+)=?([^&]*)/g,r={},n;n=t.exec(e);){var o=rt(n[1]),u=rt(n[2]);o===null||u===null||o in r||(r[o]=u)}return r}function ar(e,t){t=t||"";var r=[],n,o;typeof t!="string"&&(t="?");for(o in e)if(nr.call(e,o)){if(n=e[o],!n&&(n===null||n===or||isNaN(n))&&(n=""),o=nt(o),n=nt(n),o===null||n===null)continue;r.push(o+"="+n)}return r.length?t+r.join("&"):""}Pe.stringify=ar,Pe.parse=ir;var ot=rr,pe=Pe,ur=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,it=/[\n\r\t]/g,sr=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,at=/:\d+$/,lr=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,fr=/^[a-zA-Z]:/;function xe(e){return(e||"").toString().replace(ur,"")}var Oe=[["#","hash"],["?","query"],function(t,r){return L(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ut={hash:1,query:1};function st(e){var t;typeof window<"u"?t=window:typeof tt<"u"?t=tt:typeof self<"u"?t=self:t={};var r=t.location||{};e=e||r;var n={},o=typeof e,u;if(e.protocol==="blob:")n=new T(unescape(e.pathname),{});
vendor: 5,200 bytes, line 1
1else if(o==="string"){n=new T(e,{});for(u in ut)delete n[u]}else if(o==="object"){for(u in e)u in ut||(n[u]=e[u]);n.slashes===void 0&&(n.slashes=sr.test(e.href))}return n}function L(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function lt(e,t){e=xe(e),e=e.replace(it,""),t=t||{};var r=lr.exec(e),n=r[1]?r[1].toLowerCase():"",o=!!r[2],u=!!r[3],l=0,c;return o?u?(c=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(c=r[2]+r[4],l=r[2].length):u?(c=r[3]+r[4],l=r[3].length):c=r[4],n==="file:"?l>=2&&(c=c.slice(2)):L(n)?c=r[4]:n?o&&(c=c.slice(2)):l>=2&&L(t.protocol)&&(c=r[4]),{protocol:n,slashes:o||L(n),slashesCount:l,rest:c}}function cr(e,t){if(e==="")return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],u=!1,l=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),l++):l&&(n===0&&(u=!0),r.splice(n,1),l--);return u&&r.unshift(""),(o==="."||o==="..")&&r.push(""),r.join("/")}function T(e,t,r){if(e=xe(e),e=e.replace(it,""),!(this instanceof T))return new T(e,t,r);var n,o,u,l,c,h,m=Oe.slice(),v=typeof t,y=this,k=0;for(v!=="object"&&v!=="string"&&(r=t,t=null),r&&typeof r!="function"&&(r=pe.parse),t=st(t),o=lt(e||"",t),n=!o.protocol&&!o.slashes,y.slashes=o.slashes||n&&t.slashes,y.protocol=o.protocol||t.protocol||"",e=o.rest,(o.protocol==="file:"&&(o.slashesCount!==2||fr.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!L(y.protocol)))&&(m[3]=[/(.*)/,"pathname"]);k<m.length;k++){if(l=m[k],typeof l=="function"){e=l(e,y);continue}u=l[0],h=l[1],u!==u?y[h]=e:typeof u=="string"?(c=u==="@"?e.lastIndexOf(u):e.indexOf(u),~c&&(typeof l[2]=="number"?(y[h]=e.slice(0,c),e=e.slice(c+l[2])):(y[h]=e.slice(c),e=e.slice(0,c)))):(c=u.exec(e))&&(y[h]=c[1],e=e.slice(0,c.index)),y[h]=y[h]||n&&l[3]&&t[h]||"",l[4]&&(y[h]=y[h].toLowerCase())}r&&(y.query=r(y.query)),n&&t.slashes&&y.pathname.charAt(0)!=="/"&&(y.pathname!==""||t.pathname!=="")&&(y.pathname=cr(y.pathname,t.pathname)),y.pathname.charAt(0)!=="/"&&L(y.protocol)&&(y.pathname="/"+y.pathname),ot(y.port,y.protocol)||(y.host=y.hostname,y.port=""),y.username=y.password="",y.auth&&(c=y.auth.indexOf(":"),~c?(y.username=y.auth.slice(0,c),y.username=encodeURIComponent(decodeURIComponent(y.username)),y.password=y.auth.slice(c+1),y.password=encodeURIComponent(decodeURIComponent(y.password))):y.username=encodeURIComponent(decodeURIComponent(y.auth)),y.auth=y.password?y.username+":"+y.password:y.username),y.origin=y.protocol!=="file:"&&L(y.protocol)&&y.host?y.protocol+"//"+y.host:"null",y.href=y.toString()}function pr(e,t,r){var n=this;switch(e){case"query":typeof t=="string"&&t.length&&(t=(r||pe.parse)(t)),n[e]=t;break;case"port":n[e]=t,ot(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,at.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o=e==="pathname"?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var u=t.indexOf(":");~u?(n.username=t.slice(0,u),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(u+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<Oe.length;l++){var c=Oe[l];c[4]&&(n[c[1]]=n[c[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin=n.protocol!=="file:"&&L(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function hr(e){(!e||typeof e!="function")&&(e=pe.stringify);var t,r=this,n=r.host,o=r.protocol;o&&o.charAt(o.length-1)!==":"&&(o+=":");var u=o+(r.protocol&&r.slashes||L(r.protocol)?"//":"");return r.username?(u+=r.username,r.password&&(u+=":"+r.password),u+="@"):r.password?(u+=":"+r.password,u+="@"):r.protocol!=="file:"&&L(r.protocol)&&!n&&r.pathname!=="/"&&(u+="@"),(n[n.length-1]===":"||at.test(r.hostname)&&!r.port)&&(n+=":"),u+=n+r.pathname,t=typeof r.query=="object"?e(r.query):r.query,t&&(u+=t.charAt(0)!=="?"?"?"+t:t),r.hash&&(u+=r.hash),u}T.prototype={set:pr,toString:hr},T.extractProtocol=lt,T.location=st,T.trimLeft=xe,T.qs=pe;var dr=T,yr=tr(dr);function mr(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function Ee(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ee=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(s,i,a){s[i]=a.value},u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function m(s,i,a){return Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}),s[i]}try{m({},"")}catch{m=function(a,f,d){return a[f]=d}}function v(s,i,a,f){var d=i&&i.prototype instanceof C?i:C,p=Object.create(d.prototype),g=new H(f||[]);return o(p,"_invoke",{value:De(s,a,g)}
vendor: 4,081 bytes, line 1
1),p}function y(s,i,a){try{return{type:"normal",arg:s.call(i,a)}}catch(f){return{type:"throw",arg:f}}}t.wrap=v;var k="suspendedStart",ae="suspendedYield",$="executing",A="completed",w={};function C(){}function E(){}function U(){}var j={};m(j,l,function(){return this});var z=Object.getPrototypeOf,D=z&&z(z(q([])));D&&D!==r&&n.call(D,l)&&(j=D);var R=U.prototype=C.prototype=Object.create(j);function ue(s){["next","throw","return"].forEach(function(i){m(s,i,function(a){return this._invoke(i,a)})})}function I(s,i){function a(d,p,g,b){var _=y(s[d],s,p);if(_.type!=="throw"){var x=_.arg,P=x.value;return P&&F(P)=="object"&&n.call(P,"__await")?i.resolve(P.__await).then(function(O){a("next",O,g,b)},function(O){a("throw",O,g,b)}):i.resolve(P).then(function(O){x.value=O,g(x)},function(O){return a("throw",O,g,b)})}b(_.arg)}var f;o(this,"_invoke",{value:function(p,g){function b(){return new i(function(_,x){a(p,g,_,x)})}return f=f?f.then(b,b):b()}})}function De(s,i,a){var f=k;return function(d,p){if(f===$)throw Error("Generator is already running");if(f===A){if(d==="throw")throw p;return{value:e,done:!0}}for(a.method=d,a.arg=p;;){var g=a.delegate;if(g){var b=se(g,a);if(b){if(b===w)continue;return b}}if(a.method==="next")a.sent=a._sent=a.arg;else if(a.method==="throw"){if(f===k)throw f=A,a.arg;a.dispatchException(a.arg)}else a.method==="return"&&a.abrupt("return",a.arg);f=$;var _=y(s,i,a);if(_.type==="normal"){if(f=a.done?A:ae,_.arg===w)continue;return{value:_.arg,done:a.done}}_.type==="throw"&&(f=A,a.method="throw",a.arg=_.arg)}}}function se(s,i){var a=i.method,f=s.iterator[a];if(f===e)return i.delegate=null,a==="throw"&&s.iterator.return&&(i.method="return",i.arg=e,se(s,i),i.method==="throw")||a!=="return"&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+a+"' method")),w;var d=y(f,s.iterator,i.arg);if(d.type==="throw")return i.method="throw",i.arg=d.arg,i.delegate=null,w;var p=d.arg;return p?p.done?(i[s.resultName]=p.value,i.next=s.nextLoc,i.method!=="return"&&(i.method="next",i.arg=e),i.delegate=null,w):p:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,w)}function Ie(s){var i={tryLoc:s[0]};1 in s&&(i.catchLoc=s[1]),2 in s&&(i.finallyLoc=s[2],i.afterLoc=s[3]),this.tryEntries.push(i)}function B(s){var i=s.completion||{};i.type="normal",delete i.arg,s.completion=i}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(Ie,this),this.reset(!0)}function q(s){if(s||s===""){var i=s[l];if(i)return i.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var a=-1,f=function d(){for(;++a<s.length;)if(n.call(s,a))return d.value=s[a],d.done=!1,d;return d.value=e,d.done=!0,d};return f.next=f}}throw new TypeError(F(s)+" is not iterable")}return E.prototype=U,o(R,"constructor",{value:U,configurable:!0}),o(U,"constructor",{value:E,configurable:!0}),E.displayName=m(U,h,"GeneratorFunction"),t.isGeneratorFunction=function(s){var i=typeof s=="function"&&s.constructor;return!!i&&(i===E||(i.displayName||i.name)==="GeneratorFunction")},t.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,U):(s.__proto__=U,m(s,h,"GeneratorFunction")),s.prototype=Object.create(R),s},t.awrap=function(s){return{__await:s}},ue(I.prototype),m(I.prototype,c,function(){return this}),t.AsyncIterator=I,t.async=function(s,i,a,f,d){d===void 0&&(d=Promise);var p=new I(v(s,i,a,f),d);return t.isGeneratorFunction(i)?p:p.next().then(function(g){return g.done?g.value:p.next()})},ue(R),m(R,h,"Generator"),m(R,l,function(){return this}),m(R,"toString",function(){return"[object Generator]"}),t.keys=function(s){var i=Object(s),a=[];for(var f in i)a.push(f);return a.reverse(),function d(){for(;a.length;){var p=a.pop();if(p in i)return d.value=p,d.done=!1,d}return d.done=!0,d}},t.values=q,H.prototype={constructor:H,reset:function(i){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(B),!i)for(var a in this)a.charAt(0)==="t"&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;
1var i=this.tryEntries[0].completion;if(i.type==="throw")throw i.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var a=this;function f(x,P){return g.type="throw",g.arg=i,a.next=x,P&&(a.method="next",a.arg=e),!!P}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return f("end");if(p.tryLoc<=this.prev){var b=n.call(p,"catchLoc"),_=n.call(p,"finallyLoc");if(b&&_){if(this.prev<p.catchLoc)return f(p.catchLoc,!0);if(this.prev<p.finallyLoc)return f(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return f(p.catchLoc,!0)}else{if(!_)throw Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return f(p.finallyLoc)}}}},abrupt:function(i,a){for(var f=this.tryEntries.length-1;f>=0;--f){var d=this.tryEntries[f];if(d.tryLoc<=this.prev&&n.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(i==="break"||i==="continue")&&p.tryLoc<=a&&a<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=i,g.arg=a,p?(this.method="next",this.next=p.finallyLoc,w):this.complete(g)},complete:function(i,a){if(i.type==="throw")throw i.arg;return i.type==="break"||i.type==="continue"?this.next=i.arg:i.type==="return"?(this.rval=this.arg=i.arg,this.method="return",this.next="end"):i.type==="normal"&&a&&(this.next=a),w},finish:function(i){for(var a=this.tryEntries.length-1;a>=0;--a){var f=this.tryEntries[a];if(f.finallyLoc===i)return this.complete(f.completion,f.afterLoc),B(f),w}},catch:function(i){for(var a=this.tryEntries.length-1;a>=0;--a){var f=this.tryEntries[a];if(f.tryLoc===i){var d=f.completion;if(d.type==="throw"){var p=d.arg;B(f)}return p}}throw Error("illegal catch attempt")},delegateYield:function(i,a,f){return this.delegate={iterator:q(i),resultName:a,nextLoc:f},this.method==="next"&&(this.arg=e),w}},t}function ft(e,t,r,n,o,u,l){try{var c=e[u](l),h=c.value}catch(m){r(m);return}c.done?t(h):Promise.resolve(h).then(n,o)}function vr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var u=e.apply(t,r);function l(h){ft(u,n,o,l,c,"next",h)}function c(h){ft(u,n,o,l,c,"throw",h)}l(void 0)})}}function ct(e,t){return _r(e)||br(e,t)||pt(e,t)||gr()}function gr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function br(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,u,l,c=[],h=!0,m=!1;try{if(u=(r=r.call(e)).next,t!==0)for(;!(h=(n=u.call(r)).done)&&(c.push(n.value),c.length!==t);h=!0);}catch(v){m=!0,o=v}finally{try{if(!h&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(m)throw o}}return c}}function _r(e){if(Array.isArray(e))return e}function F(e){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(e)}function wr(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=pt(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(m){throw m},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,l=!1,c;return{s:function(){r=r.call(e)},n:function(){var m=r.next();return u=m.done,m},e:function(m){l=!0,c=m},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(l)throw c}}}}function pt(e,t){if(e){if(typeof e=="string")return ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ht(e,t)}}function ht(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 5,048 bytes, line 3
3t%2?dt(Object(r),!0).forEach(function(n){Sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sr(e,t,r){return t=mt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mt(n.key),n)}}function Pr(e,t,r){return t&&yt(e.prototype,t),r&&yt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mt(e){var t=xr(e,"string");return F(t)=="symbol"?t:t+""}function xr(e,t){if(F(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var he="tus-v1",de="ietf-draft-03",ee="ietf-draft-05",Or={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:wt,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:he},ye=function(){function e(t,r){Ur(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return Pr(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(![he,de,ee].includes(this.options.protocol)){this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var o=this.options.retryDelays;if(o!=null&&Object.prototype.toString.call(o)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var u=0,l=["uploadUrl","uploadSize","uploadLengthDeferred"];u<l.length;u++){var c=l[u];if(this.options[c]){this._emitError(new Error("tus: cannot use the ".concat(c," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(h){return r._fingerprint=h,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(h){if(r._source=h,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(h){r._emitError(h)})}},{key:"_startParallelUpload",value:function(){var r,n=this,o=this._size,u=0;this._parallelUploads=[];var l=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,c=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:Rr(this._source.size,l);
3this._parallelUploadUrls&&c.forEach(function(v,y){v.uploadUrl=n._parallelUploadUrls[y]||null}),this._parallelUploadUrls=new Array(c.length);var h=c.map(function(v,y){var k=0;return n._source.slice(v.start,v.end).then(function(ae){var $=ae.value;return new Promise(function(A,w){var C=K(K({},n.options),{},{uploadUrl:v.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:n.options.metadataForPartialUploads,headers:K(K({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:A,onError:w,onProgress:function(j){u=u-k+j,k=j,n._emitProgress(u,o)},onUploadUrlAvailable:function(){n._parallelUploadUrls[y]=E.url,n._parallelUploadUrls.filter(function(j){return!!j}).length===c.length&&n._saveUploadInUrlStorage()}}),E=new e($,C);E.start(),n._parallelUploads.push(E)})})}),m;Promise.all(h).then(function(){m=n._openRequest("POST",n.options.endpoint),m.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var v=vt(n.options.metadata);return v!==""&&m.setHeader("Upload-Metadata",v),n._sendRequest(m,null)}).then(function(v){if(!V(v.getStatus(),200)){n._emitHttpError(m,v,"tus: unexpected response while creating upload");return}var y=v.getHeader("Location");if(y==null){n._emitHttpError(m,v,"tus: invalid or missing Location header");return}n.url=St(n.options.endpoint,y),"Created upload at ".concat(n.url),n._emitSuccess(v)}).catch(function(v){n._emitError(v)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;if(this._parallelUploads!=null){var o=wr(this._parallelUploads),u;try{for(o.s();!(u=o.n()).done;){var l=u.value;l.abort(r)}}catch(c){o.e(c)}finally{o.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,o,u){this._emitError(new le(o,u,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var o=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(o&&(this._retryAttempt=0),_t(r,this._retryAttempt,this.options)){var u=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},u);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(r){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:r})}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,o){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,o)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length","1"):n.setHeader("Upload-Length","".concat(this._size));var o=vt(this.options.metadata);o!==""&&n.setHeader("Upload-Metadata",o);var u;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,u=this._addChunkToRequest(n)):((this.options.protocol===de||this.options.protocol===ee)&&n.setHeader("Upload-Complete","?0"),u=this._sendRequest(n,null)),u.then(function(l){if(!V(l.getStatus(),200)){r._emitHttpError(n,l,"tus: unexpected response while creating upload");return}var c=l.getHeader("Location");
3if(c==null){r._emitHttpError(n,l,"tus: invalid or missing Location header");return}if(r.url=St(r.options.endpoint,c),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(l),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,l):(r._offset=0,r._performUpload())})}).catch(function(l){r._emitHttpError(n,null,"tus: failed to create upload",l)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),o=this._sendRequest(n,null);o.then(function(u){var l=u.getStatus();if(!V(l,200)){if(l===423){r._emitHttpError(n,u,"tus: upload is currently locked; retry later");return}if(V(l,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,u,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var c=Number.parseInt(u.getHeader("Upload-Offset"),10);if(Number.isNaN(c)){r._emitHttpError(n,u,"tus: invalid or missing offset value");return}var h=Number.parseInt(u.getHeader("Upload-Length"),10);if(Number.isNaN(h)&&!r.options.uploadLengthDeferred&&r.options.protocol===he){r._emitHttpError(n,u,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(c===h){r._emitProgress(h,h),r._emitSuccess(u);return}r._offset=c,r._performUpload()})}).catch(function(u){r._emitHttpError(n,null,"tus: failed to resume upload",u)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset","".concat(this._offset));var o=this._addChunkToRequest(n);o.then(function(u){if(!V(u.getStatus(),200)){r._emitHttpError(n,u,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,u)}).catch(function(u){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),u)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,o=this._offset,u=this._offset+this.options.chunkSize;return r.setProgressHandler(function(l){n._emitProgress(o+l,n._size)}),this.options.protocol===he?r.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===ee&&r.setHeader("Content-Type","application/partial-upload"),(u===Number.POSITIVE_INFINITY||u>this._size)&&!this.options.uploadLengthDeferred&&(u=this._size),this._source.slice(o,u).then(function(l){var c=l.value,h=l.done,m=c!=null&&c.size?c.size:0;n.options.uploadLengthDeferred&&h&&(n._size=n._offset+m,r.setHeader("Upload-Length","".concat(n._size)));var v=n._offset+m;return!n.options.uploadLengthDeferred&&h&&v!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(v," bytes"))):c===null?n._sendRequest(r):((n.options.protocol===de||n.options.protocol===ee)&&r.setHeader("Upload-Complete",h?"?1":"?0"),n._emitProgress(n._offset,n._size),n._sendRequest(r,c))})}},{key:"_handleUploadResponse",value:function(r,n){var o=Number.parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(o)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(o,this._size),this._emitChunkComplete(o-this._offset,o,this._size),this._offset=o,o===this._size){this._emitSuccess(n),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var o=gt(r,n,this.options);return this._req=o,o}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(o){r._urlStorageKey=o})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return bt(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=gt("DELETE",r,n);return bt(o,null,n).then(function(u){if(u.getStatus()!==204)throw new le("tus: unexpected response while terminating upload",null,o,u)}).catch(function(u){if(u instanceof le||(u=new le("tus: failed to terminate upload",u,o,null)),!_t(u,0,n))throw u;var l=n.retryDelays[0],c=n.retryDelays.slice(1),h=K(K({},n),{},{retryDelays:c});return new Promise(function(m){return setTimeout(m,l)}).then(function(){return e.terminate(r,h)})})}}])}();function vt(e){return Object.entries(e).map(function(t){var r=ct(t,2),n=r[0],o=r[1];return"".concat(n," ").concat(er.encode(String(o)))}).join(",")}function V(e,t){return e>=t&&e<t+100}function gt(e,t,r){var n=r.httpStack.createRequest(e,t);r.protocol===de?n.setHeader("Upload-Draft-Interop-Version","5"):r.protocol===ee?n.setHeader("Upload-Draft-Interop-Version","6"):n.setHeader("Tus-Resumable","1.0.0");for(var o=r.headers||{},u=0,l=Object.entries(o);u<l.length;u++){var c=ct(l[u],2),h=c[0],m=c[1];n.setHeader(h,m)}if(r.addRequestId){var v=mr();n.setHeader("X-Request-ID",v)}return n}function bt(e,t,r){return Re.apply(this,arguments)}function Re(){return Re=vr(Ee().mark(function e(t,r,n){var o;return Ee().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(typeof n.onBeforeRequest!="function"){l.next=3;break}return l.next=3,n.onBeforeRequest(t);case 3:return l.next=5,t.send(r);case 5:if(o=l.sent,typeof n.onAfterResponse!="function"){l.next=9;break}return l.next=9,n.onAfterResponse(t,o);case 9:return l.abrupt("return",o);case 10:case"end":return l.stop()}},e)})),Re.apply(this,arguments)}function Er(){var e=!0;return typeof navigator<"u"&&navigator.onLine===!1&&(e=!1),e}function _t(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):wt(e)}function wt(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!V(t,400)||t===409||t===423)&&Er()}function St(e,t){return new yr(t,e).toString()}function Rr(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}ye.defaultOptions=Or;var Ut=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function kr(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var o=n.response;t(o)},n.onerror=function(o){r(o)},n.open("GET",e),n.send()})}var jr=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function Ar(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var o=new Uint8Array(n.result);t({value:o})},n.onerror=function(o){r(o)},n.readAsArrayBuffer(e)})}function te(e){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(e)}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dr(n.key),n)}}function Cr(e,t,r){return t&&Tr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dr(e){var t=Ir(e,"string");return te(t)=="symbol"?t:t+""}function Ir(e,t){if(te(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(te(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pt=function(){function e(t){Lr(this,e),this._file=t,this.size=t.size}return Cr(e,[{key:"slice",value:function(r,n){if(jr())return Ar(this._file.slice(r,n));var o=this._file.slice(r,n),u=n>=this.size;return Promise.resolve({value:o,done:u})}},{key:"close",value:function(){}}])}();function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zr(n.key),n)}}function $r(e,t,r){return t&&Nr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zr(e){var t=Br(e,"string");return re(t)=="symbol"?t:t+""}function Br(e,t){if(re(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(re(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xt(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function Hr(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var qr=function(){function e(t){Fr(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return $r(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var o=this,u=n<=this._bufferOffset+xt(this._buffer);if(this._done||u){var l=this._getDataFromBuffer(r,n),c=l==null?this._done:!1;return Promise.resolve({value:l,done:c})}return this._reader.read().then(function(h){var m=h.value,v=h.done;return v?o._done=!0:o._buffer===void 0?o._buffer=m:o._buffer=Hr(
vendor: 5,296 bytes, line 3
3o._buffer,m),o._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var o=xt(this._buffer)===0;return this._done&&o?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])}();function N(e){"@babel/helpers - typeof";return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(e)}function ke(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ke=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(s,i,a){s[i]=a.value},u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function m(s,i,a){return Object.defineProperty(s,i,{value:a,enumerable:!0,configurable:!0,writable:!0}),s[i]}try{m({},"")}catch{m=function(a,f,d){return a[f]=d}}function v(s,i,a,f){var d=i&&i.prototype instanceof C?i:C,p=Object.create(d.prototype),g=new H(f||[]);return o(p,"_invoke",{value:De(s,a,g)}),p}function y(s,i,a){try{return{type:"normal",arg:s.call(i,a)}}catch(f){return{type:"throw",arg:f}}}t.wrap=v;var k="suspendedStart",ae="suspendedYield",$="executing",A="completed",w={};function C(){}function E(){}function U(){}var j={};m(j,l,function(){return this});var z=Object.getPrototypeOf,D=z&&z(z(q([])));D&&D!==r&&n.call(D,l)&&(j=D);var R=U.prototype=C.prototype=Object.create(j);function ue(s){["next","throw","return"].forEach(function(i){m(s,i,function(a){return this._invoke(i,a)})})}function I(s,i){function a(d,p,g,b){var _=y(s[d],s,p);if(_.type!=="throw"){var x=_.arg,P=x.value;return P&&N(P)=="object"&&n.call(P,"__await")?i.resolve(P.__await).then(function(O){a("next",O,g,b)},function(O){a("throw",O,g,b)}):i.resolve(P).then(function(O){x.value=O,g(x)},function(O){return a("throw",O,g,b)})}b(_.arg)}var f;o(this,"_invoke",{value:function(p,g){function b(){return new i(function(_,x){a(p,g,_,x)})}return f=f?f.then(b,b):b()}})}function De(s,i,a){var f=k;return function(d,p){if(f===$)throw Error("Generator is already running");if(f===A){if(d==="throw")throw p;return{value:e,done:!0}}for(a.method=d,a.arg=p;;){var g=a.delegate;if(g){var b=se(g,a);if(b){if(b===w)continue;return b}}if(a.method==="next")a.sent=a._sent=a.arg;else if(a.method==="throw"){if(f===k)throw f=A,a.arg;a.dispatchException(a.arg)}else a.method==="return"&&a.abrupt("return",a.arg);f=$;var _=y(s,i,a);if(_.type==="normal"){if(f=a.done?A:ae,_.arg===w)continue;return{value:_.arg,done:a.done}}_.type==="throw"&&(f=A,a.method="throw",a.arg=_.arg)}}}function se(s,i){var a=i.method,f=s.iterator[a];if(f===e)return i.delegate=null,a==="throw"&&s.iterator.return&&(i.method="return",i.arg=e,se(s,i),i.method==="throw")||a!=="return"&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+a+"' method")),w;var d=y(f,s.iterator,i.arg);if(d.type==="throw")return i.method="throw",i.arg=d.arg,i.delegate=null,w;var p=d.arg;return p?p.done?(i[s.resultName]=p.value,i.next=s.nextLoc,i.method!=="return"&&(i.method="next",i.arg=e),i.delegate=null,w):p:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,w)}function Ie(s){var i={tryLoc:s[0]};1 in s&&(i.catchLoc=s[1]),2 in s&&(i.finallyLoc=s[2],i.afterLoc=s[3]),this.tryEntries.push(i)}function B(s){var i=s.completion||{};i.type="normal",delete i.arg,s.completion=i}function H(s){this.tryEntries=[{tryLoc:"root"}],s.forEach(Ie,this),this.reset(!0)}function q(s){if(s||s===""){var i=s[l];if(i)return i.call(s);if(typeof s.next=="function")return s;if(!isNaN(s.length)){var a=-1,f=function d(){for(;++a<s.length;)if(n.call(s,a))return d.value=s[a],d.done=!1,d;return d.value=e,d.done=!0,d};return f.next=f}}throw new TypeError(N(s)+" is not iterable")}return E.prototype=U,o(R,"constructor",{value:U,configurable:!0}),o(U,"constructor",{value:E,configurable:!0}),E.displayName=m(U,h,"GeneratorFunction"),t.isGeneratorFunction=function(s){var i=typeof s=="function"&&s.constructor;return!!i&&(i===E||(i.displayName||i.name)==="GeneratorFunction")},t.mark=function(s){return Object.setPrototypeOf?Object.setPrototypeOf(s,U):(s.__proto__=U,m(s,h,"GeneratorFunction")),s.prototype=Object.create(R),s},t.awrap=function(s){return{__await:s}},ue(I.prototype),m(I.prototype,c,function(){return this}),t.AsyncIterator=I,t.async=function(s,i,a,f,d){d===void 0&&(d=Promise);var p=new I(v(s,i,a,f),d);return t.isGeneratorFunction(i)?p:p.next().then(function(g){return g.done?g.value:p.next()})},ue(R),m(R,h,"Generator"),m(R,l,function(){return this}),m(R,"toString",function(){return"[object Generator]"}),t.keys=function(s){var i=Object(s),a=[];for(var f in i)a.push(f);return a.reverse(),function d(){for(;a.length;){var p=a.pop();if(p in i)return d.value=p,d.done=!1,d}return d.done=!0,d}},t.values=q,H.prototype={constructor:H,reset:function(i){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
3h(B),!i)for(var a in this)a.charAt(0)==="t"&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var i=this.tryEntries[0].completion;if(i.type==="throw")throw i.arg;return this.rval},dispatchException:function(i){if(this.done)throw i;var a=this;function f(x,P){return g.type="throw",g.arg=i,a.next=x,P&&(a.method="next",a.arg=e),!!P}for(var d=this.tryEntries.length-1;d>=0;--d){var p=this.tryEntries[d],g=p.completion;if(p.tryLoc==="root")return f("end");if(p.tryLoc<=this.prev){var b=n.call(p,"catchLoc"),_=n.call(p,"finallyLoc");if(b&&_){if(this.prev<p.catchLoc)return f(p.catchLoc,!0);if(this.prev<p.finallyLoc)return f(p.finallyLoc)}else if(b){if(this.prev<p.catchLoc)return f(p.catchLoc,!0)}else{if(!_)throw Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return f(p.finallyLoc)}}}},abrupt:function(i,a){for(var f=this.tryEntries.length-1;f>=0;--f){var d=this.tryEntries[f];if(d.tryLoc<=this.prev&&n.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var p=d;break}}p&&(i==="break"||i==="continue")&&p.tryLoc<=a&&a<=p.finallyLoc&&(p=null);var g=p?p.completion:{};return g.type=i,g.arg=a,p?(this.method="next",this.next=p.finallyLoc,w):this.complete(g)},complete:function(i,a){if(i.type==="throw")throw i.arg;return i.type==="break"||i.type==="continue"?this.next=i.arg:i.type==="return"?(this.rval=this.arg=i.arg,this.method="return",this.next="end"):i.type==="normal"&&a&&(this.next=a),w},finish:function(i){for(var a=this.tryEntries.length-1;a>=0;--a){var f=this.tryEntries[a];if(f.finallyLoc===i)return this.complete(f.completion,f.afterLoc),B(f),w}},catch:function(i){for(var a=this.tryEntries.length-1;a>=0;--a){var f=this.tryEntries[a];if(f.tryLoc===i){var d=f.completion;if(d.type==="throw"){var p=d.arg;B(f)}return p}}throw Error("illegal catch attempt")},delegateYield:function(i,a,f){return this.delegate={iterator:q(i),resultName:a,nextLoc:f},this.method==="next"&&(this.arg=e),w}},t}function Ot(e,t,r,n,o,u,l){try{var c=e[u](l),h=c.value}catch(m){r(m);return}c.done?t(h):Promise.resolve(h).then(n,o)}function Mr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var u=e.apply(t,r);function l(h){Ot(u,n,o,l,c,"next",h)}function c(h){Ot(u,n,o,l,c,"throw",h)}l(void 0)})}}function Gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xr(n.key),n)}}function Vr(e,t,r){return t&&Kr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xr(e){var t=Yr(e,"string");return N(t)=="symbol"?t:t+""}function Yr(e,t){if(N(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(N(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zr=function(){function e(){Gr(this,e)}return Vr(e,[{key:"openFile",value:function(){var t=Mr(ke().mark(function n(o,u){var l;return ke().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!(Ut()&&o&&typeof o.uri<"u")){h.next=11;break}return h.prev=1,h.next=4,kr(o.uri);case 4:return l=h.sent,h.abrupt("return",new Pt(l));case 8:throw h.prev=8,h.t0=h.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(h.t0));case 11:if(!(typeof o.slice=="function"&&typeof o.size<"u")){h.next=13;break}return h.abrupt("return",Promise.resolve(new Pt(o)));case 13:if(typeof o.read!="function"){h.next=18;break}if(u=Number(u),Number.isFinite(u)){h.next=17;break}return h.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return h.abrupt("return",Promise.resolve(new qr(o,u)));case 18:return h.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return h.stop()}},n,null,[[1,8]])}));function r(n,o){return t.apply(this,arguments)}return r}()}])}();function Wr(e,t){return Ut()?Promise.resolve(Jr(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function Jr(e,t){var r=e.exif?Qr(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function Qr(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function ne(e){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function en(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tn(n.key),n)}}function Ae(e,t,r){return t&&en(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tn(e){var t=rn(e,"string");return ne(t)=="symbol"?t:t+""}function rn(e,t){if(ne(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ne(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nn=function(){function e(){je(this,e)}return Ae(e,[{key:"createRequest",value:function(r,n){return new on(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}])}(),on=function(){function e(t,r){je(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return Ae(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(o,u){r._xhr.onload=function(){o(new an(r._xhr))},r._xhr.onerror=function(l){u(l)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),an=function(){function e(t){je(this,e),this._xhr=t}return Ae(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}();function oe(e){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oe(e)}function un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fn(n.key),n)}}function ln(e,t,r){return t&&sn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fn(e){var t=cn(e,"string");return oe(t)=="symbol"?t:t+""}function cn(e,t){if(oe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Le=!1;try{Le="localStorage"in window;var Te="tusSupport",Et=localStorage.getItem(Te);localStorage.setItem(Te,Et),Et===null&&localStorage.removeItem(Te)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)Le=!1;else throw e}var pn=Le,hn=function(){function e(){un(this,e)}return ln(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var o=Math.round(Math.random()*1e12),u="tus::".concat(r,"::").concat(o);return localStorage.setItem(u,JSON.stringify(n)),Promise.resolve(u)}},{key:"_findEntries",value:function(r){for(var n=[],o=0;o<localStorage.length;o++){var u=localStorage.key(o);if(u.indexOf(r)===0)try{var l=JSON.parse(localStorage.getItem(u));l.urlStorageKey=u,n.push(l)}catch{}}return n}}])}();function X(e){"@babel/helpers - typeof";return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(e)}function dn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jt(n.key),n)}}function mn(e,t,r){return r&&yn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vn(e,t,r){return t=me(t),gn(e,Rt()?Reflect.construct(t,r||[],me(e).constructor):t.apply(e,r))}function gn(e,t){if(t&&(X(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!e})()}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},me(e)}function _n(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ce(e,t)}function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
3t%2?kt(Object(r),!0).forEach(function(n){wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wn(e,t,r){return t=jt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jt(e){var t=Sn(e,"string");return X(t)=="symbol"?t:t+""}function Sn(e,t){if(X(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(X(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var At=Y(Y({},ye.defaultOptions),{},{httpStack:new nn,fileReader:new Zr,urlStorage:pn?new hn:new Gt,fingerprint:Wr}),Un=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return dn(this,t),n=Y(Y({},At),n),vn(this,t,[r,n])}return _n(t,e),mn(t,null,[{key:"terminate",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return o=Y(Y({},At),o),ye.terminate(n,o)}}])}(ye);const ie=new Map;self.onmessage=e=>{const t=e.data;if(t.type==="cancel"){const r=ie.get(t.id);r&&(r.abort(!0).catch(()=>{}),ie.delete(t.id));return}if(t.type==="start"){const{id:r,file:n,fileName:o,endpoint:u,token:l,bucketName:c,contentType:h}=t,m=new Un(n,{endpoint:u,retryDelays:[0,3e3,5e3,1e4,2e4,3e4],headers:{authorization:`Bearer ${l}`,"x-upsert":"false"},uploadDataDuringCreation:!0,removeFingerprintOnSuccess:!0,metadata:{bucketName:c,objectName:o,contentType:h||"video/mp4",cacheControl:"3600"},chunkSize:6*1024*1024,onError:v=>{ie.delete(r),self.postMessage({type:"error",id:r,message:v.message||String(v)})},onProgress:(v,y)=>{self.postMessage({type:"progress",id:r,bytesUploaded:v,bytesTotal:y})},onSuccess:()=>{ie.delete(r),self.postMessage({type:"success",id:r,fileName:o})}});ie.set(r,m),m.findPreviousUploads().then(v=>{v.length&&m.resumeFromPreviousUpload(v[0]),m.start()}).catch(()=>m.start())}}})();

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.