multimodalart's picture
Upload hf.js
5a2fdd4
raw
history blame
20.7 kB
/**
* Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.17.1.
* Original file: /npm/@huggingface/hub@0.8.3/dist/browser/index.mjs
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};"function"==typeof e.setTimeout&&setTimeout,"function"==typeof e.clearTimeout&&clearTimeout;function t(e,t){this.fun=e,this.array=t}t.prototype.run=function(){this.fun.apply(null,this.array)};var n=e.performance||{};n.now||n.mozNow||n.msNow||n.oNow||n.webkitNow;new Date;var a=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function r(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),globalThis.btoa(t.join(""))}}var i="undefined"!=typeof window&&void 0!==window.document,s="object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,l=!(!i&&!s),c="https://huggingface.co";async function d(e,t){var n,a;const o=new p(e.url,e.status,null!=(n=e.headers.get("X-Request-Id"))?n:null==t?void 0:t.requestId);if(o.message=`Api error with status ${o.statusCode}.${(null==t?void 0:t.message)?` ${t.message}.`:""} Request ID: ${o.requestId}, url: ${o.url}`,null==(a=e.headers.get("Content-Type"))?void 0:a.startsWith("application/json")){const t=await e.json();o.message=t.error||t.message||o.message,o.data=t}else o.data={message:await e.text()};throw o}var u,h,p=class extends Error{constructor(e,t,n,a){super(a),o(this,"statusCode"),o(this,"url"),o(this,"requestId"),o(this,"data"),this.statusCode=t,this.requestId=n,this.url=e}},f=class extends Error{};function w(e){if(e&&void 0!==e.accessToken&&null!==e.accessToken&&!e.accessToken.startsWith("hf_"))throw new TypeError("Your access token must start with 'hf_'")}function m(e,t){if(isNaN(t)||t<1)throw new RangeError("Invalid chunk size: "+t);return e.length?e.length<=t?[e]:(n=Math.ceil(e.length/t),a?Array(a-n).fill(0).map(((e,t)=>n+t)):Array(n).fill(0).map(((e,t)=>t))).map((n=>e.slice(n*t,(n+1)*t))):[];var n,a}async function y(e,t){const n=[],a=[];let o=0;for(const r of e){const e=o++,i=r().then((t=>{n[e]=t,a.splice(a.indexOf(i),1)}));a.push(i),a.length>=t&&await Promise.race(a)}return await Promise.all(a),n}async function g(e,t){const n=[];for await(const a of e){const e=a().then((()=>{n.splice(n.indexOf(e),1)}));n.push(e),n.length>=t&&await Promise.race(n)}await Promise.all(n)}async function v(e){var t;if(e.size<1e7&&(null==(t=globalThis.crypto)?void 0:t.subtle))return function(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("hex");{const t=[];return e.forEach((e=>{t.push(e.toString(16).padStart(2,"0"))})),t.join("")}}(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",e instanceof Blob?await e.arrayBuffer():e)));if(l){h||(h=await import("/npm/hash-wasm@4.9.0/+esm"));const t=await h.createSHA256();t.init();const n=e.stream().getReader();for(;;){const{done:e,value:a}=await n.read();if(e)break;t.update(a)}return t.digest("hex")}return u||(u=await import("/npm/@huggingface/hub@0.8.3/dist/browser/sha256-node-TNZ2WHTI.mjs/+esm")),u.sha256Node(e)}function b(e){if("string"!=typeof e)return e;if(e.startsWith("model/")||e.startsWith("models/"))throw new TypeError("A repo designation for a model should not start with 'models/', directly specify the model namespace / name");if(e.startsWith("space/"))throw new TypeError("Spaces should start with 'spaces/', plural, not 'space/'");if(e.startsWith("dataset/"))throw new TypeError("Datasets should start with 'dataset/', plural, not 'dataset/'");const t=e.split("/").length-1;if(e.startsWith("spaces/")){if(2!==t)throw new TypeError("Space Id must include namespace and name of the space");return{type:"space",name:e.slice(7)}}if(e.startsWith("datasets/")){if(t>2)throw new TypeError("Too many slashes in repo designation: "+e);return{type:"dataset",name:e.slice(9)}}if(t>1)throw new TypeError("Too many slashes in repo designation: "+e);return{type:"model",name:e}}var $=class extends Blob{constructor(e,t,n,a,r,i){super([]),o(this,"url"),o(this,"start"),o(this,"end"),o(this,"contentType"),o(this,"full"),o(this,"fetch"),this.url=e,this.start=t,this.end=n,this.contentType=a,this.full=r,this.fetch=i}static async create(e,t){var n,a;const o=null!=(n=null==t?void 0:t.fetch)?n:fetch,r=await o(e,{method:"HEAD"}),i=Number(r.headers.get("content-length")),s=r.headers.get("content-type")||"";return!("bytes"===r.headers.get("accept-ranges"))||i<(null!=(a=null==t?void 0:t.cacheBelow)?a:1e6)?await(await o(e)).blob():new $(e,0,i,s,!0,o)}get size(){return this.end-this.start}get type(){return this.contentType}slice(e=0,t=this.size){return new $(this.url,this.start+e,Math.min(this.start+t,this.end),this.contentType,0===e&&t===this.size&&this.full,this.fetch)}async arrayBuffer(){return(await this.fetchRange()).arrayBuffer()}async text(){return(await this.fetchRange()).text()}stream(){const e=new TransformStream;return this.fetchRange().then((t=>{var n;return null==(n=t.body)?void 0:n.pipeThrough(e)})).catch((t=>e.writable.abort(t.message))),e.readable}fetchRange(){const e=this.fetch;return this.full?e(this.url):e(this.url,{headers:{Range:`bytes=${this.start}-${this.end-1}`}})}};var T=10,k=10,U=10;function j(e){const t="addOrUpdate"===e.operation;if(t&&!(e.content instanceof Blob))throw new TypeError("Precondition failed: op.content should be a Blob");return t}async function*E(e){var t,n,a,o,i,s,u,h,E,R;w(e.credentials);const x=b(e.repo);yield"preuploading";const O=new Map,C=await Promise.all(e.operations.map((async t=>{if("addOrUpdate"!==t.operation)return t;if(!(t.content instanceof URL))return{...t,content:t.content};const n=await async function(e,t){if("http:"===e.protocol||"https:"===e.protocol)return $.create(e,{fetch:null==t?void 0:t.fetch});if(l)throw new TypeError(`Unsupported URL protocol "${e.protocol}"`);if("file:"===e.protocol){const{FileBlob:t}=await import("/npm/@huggingface/hub@0.8.3/dist/browser/FileBlob-7MRLQ6TG.mjs/+esm");return t.create(e)}throw new TypeError(`Unsupported URL protocol "${e.protocol}"`)}(t.content,{fetch:e.fetch});return{...t,content:n}}))),A=null==(t=C.filter(j).find((e=>".gitattributes"===e.path)))?void 0:t.content;for(const t of m(C.filter(j),100)){const i={gitAttributes:A&&await A.text(),files:await Promise.all(t.map((async e=>({path:e.path,size:e.content.size,sample:r(new Uint8Array(await e.content.slice(0,512).arrayBuffer()))}))))},s=await(null!=(n=e.fetch)?n:fetch)(`${null!=(a=e.hubUrl)?a:c}/api/${x.type}s/${x.name}/preupload/${encodeURIComponent(null!=(o=e.branch)?o:"main")}`+(e.isPullRequest?"?create_pr=1":""),{method:"POST",headers:{Authorization:`Bearer ${e.credentials.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(i)});if(!s.ok)throw await d(s);const l=await s.json();for(const e of l.files)"lfs"===e.uploadMode&&O.set(e.path,null)}yield"uploading to LFS";for(const t of m(C.filter(j).filter((e=>O.has(e.path))),100)){yield`hashing ${t.length} files`;const n=await y(t.map((e=>async()=>{const t=await v(e.content);return O.set(e.path,t),t})),T),a={operation:"upload",transfers:["basic","multipart"],hash_algo:"sha_256",ref:{name:null!=(i=e.branch)?i:"main"},objects:t.map(((e,t)=>({oid:n[t],size:e.content.size})))},o=await(null!=(s=e.fetch)?s:fetch)(`${null!=(u=e.hubUrl)?u:c}/${"model"===x.type?"":x.type+"s/"}${x.name}.git/info/lfs/objects/batch`,{method:"POST",headers:{Authorization:`Bearer ${e.credentials.accessToken}`,Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"},body:JSON.stringify(a)});if(!o.ok)throw await d(o);const r=await o.json(),h=o.headers.get("X-Request-Id")||void 0,w=new Map(t.map(((e,t)=>[n[t],e])));await g(r.objects.map((a=>async()=>{var r,i,s;const c=w.get(a.oid);if(!c)throw new f("Unrequested object ID in response");if(a.error){const e=`Error while doing LFS batch call for ${t[n.indexOf(a.oid)].path}: ${a.error.message}${h?` - Request ID: ${h}`:""}`;throw new p(o.url,a.error.code,h,e)}if(!(null==(r=a.actions)?void 0:r.upload))return;const u=c.content,m=a.actions.upload.header;if(null==m?void 0:m.chunk_size){const o=parseInt(m.chunk_size),r=a.actions.upload.href,s=Object.keys(m).filter((e=>/^[0-9]+$/.test(e)));if(s.length!==Math.ceil(u.size/o))throw new Error("Invalid server response to upload large LFS file, wrong number of parts");const c={oid:a.oid,parts:s.map((e=>({partNumber:+e,etag:""})))};await g(s.map((r=>async()=>{var i;const s=parseInt(r)-1,p=u.slice(s*o,(s+1)*o),f=await(null!=(i=e.fetch)?i:fetch)(m[r],{method:"PUT",body:p instanceof $&&l?await p.arrayBuffer():p});if(!f.ok)throw await d(f,{requestId:h,message:`Error while uploading part ${r} of ${t[n.indexOf(a.oid)].path} to LFS storage`});const w=f.headers.get("ETag");if(!w)throw new Error("Cannot get ETag of part during multipart upload");c.parts[Number(r)-1].etag=w})),U);const p=await(null!=(i=e.fetch)?i:fetch)(r,{method:"POST",body:JSON.stringify(c),headers:{Accept:"application/vnd.git-lfs+json","Content-Type":"application/vnd.git-lfs+json"}});if(!p.ok)throw await d(p,{requestId:h,message:`Error completing multipart upload of ${t[n.indexOf(a.oid)].path} to LFS storage`})}else{const o=await(null!=(s=e.fetch)?s:fetch)(a.actions.upload.href,{method:"PUT",headers:{...h?{"X-Request-Id":h}:void 0},body:u instanceof $&&l?await u.arrayBuffer():u});if(!o.ok)throw await d(o,{requestId:h,message:`Error while uploading ${t[n.indexOf(a.oid)].path} to LFS storage`})}})),k)}yield"committing";const S=await(null!=(h=e.fetch)?h:fetch)(`${null!=(E=e.hubUrl)?E:c}/api/${x.type}s/${x.name}/commit/${encodeURIComponent(null!=(R=e.branch)?R:"main")}`+(e.isPullRequest?"?create_pr=1":""),{method:"POST",headers:{Authorization:`Bearer ${e.credentials.accessToken}`,"Content-Type":"application/x-ndjson"},body:[{key:"header",value:{summary:e.title,description:e.description,parentCommit:e.parentCommit}},...await Promise.all(C.map((e=>{if(j(e)){const t=O.get(e.path);if(t)return{key:"lfsFile",value:{path:e.path,algo:"sha256",size:e.content.size,oid:t}}}return async function(e){switch(e.operation){case"addOrUpdate":return{key:"file",value:{content:r(new Uint8Array(await e.content.arrayBuffer())),path:e.path,encoding:"base64"}};case"delete":return{key:"deletedFile",value:{path:e.path}};default:throw new TypeError("Unknown operation: "+e.operation)}}(e)})))].map((e=>JSON.stringify(e))).join("\n")});if(!S.ok)throw await d(S);const B=await S.json();return{pullRequestUrl:B.pullRequestUrl,commit:{oid:B.commitOid,url:B.commitUrl},hookOutput:B.hookOutput}}async function R(e){const t=E(e);let n=await t.next();for(;!n.done;)n=await t.next();return n.value}async function x(e){var t,n;w(e.credentials);const a=b(e.repo),[o,i]=a.name.split("/");if(!o||!i)throw new TypeError(`"${a.name}" is not a fully qualified repo name. It should be of the form "{namespace}/{repoName}".`);const s=await(null!=(t=e.fetch)?t:fetch)(`${null!=(n=e.hubUrl)?n:c}/api/repos/create`,{method:"POST",body:JSON.stringify({name:i,private:e.private,organization:o,license:e.license,..."space"===a.type?{type:"space",sdk:"static"}:{type:a.type},files:e.files?await Promise.all(e.files.map((async e=>({encoding:"base64",path:e.path,content:r(new Uint8Array(e.content instanceof Blob?await e.content.arrayBuffer():e.content))})))):void 0}),headers:{Authorization:`Bearer ${e.credentials.accessToken}`,"Content-Type":"application/json"}});if(!s.ok)throw await d(s);return{repoUrl:(await s.json()).url}}function O(e){var t;return R({credentials:e.credentials,repo:e.repo,operations:[{operation:"delete",path:e.path}],title:null!=(t=e.commitTitle)?t:`Delete ${e.path}`,description:e.commitDescription,hubUrl:e.hubUrl,branch:e.branch,isPullRequest:e.isPullRequest,parentCommit:e.parentCommit,fetch:e.fetch})}function C(e){var t;return R({credentials:e.credentials,repo:e.repo,operations:e.paths.map((e=>({operation:"delete",path:e}))),title:null!=(t=e.commitTitle)?t:`Deletes ${e.paths.length} files`,description:e.commitDescription,hubUrl:e.hubUrl,branch:e.branch,isPullRequest:e.isPullRequest,parentCommit:e.parentCommit,fetch:e.fetch})}async function A(e){var t,n;w(e.credentials);const a=b(e.repo),[o,r]=a.name.split("/"),i=await(null!=(t=e.fetch)?t:fetch)(`${null!=(n=e.hubUrl)?n:c}/api/repos/delete`,{method:"DELETE",body:JSON.stringify({name:r,organization:o,type:a.type}),headers:{Authorization:`Bearer ${e.credentials.accessToken}`,"Content-Type":"application/json"}});if(!i.ok)throw await d(i)}async function S(e){var t,n,a;w(e.credentials);const o=b(e.repo),r=`${null!=(t=e.hubUrl)?t:c}/${"model"===o.type?"":`${o.type}s/`}${o.name}/${e.raw?"raw":"resolve"}/${encodeURIComponent(null!=(n=e.revision)?n:"main")}/${e.path}`,i=await(null!=(a=e.fetch)?a:fetch)(r,{headers:{...e.credentials?{Authorization:`Bearer ${e.credentials.accessToken}`}:{},...e.range?{Range:`bytes=${e.range[0]}-${e.range[1]}`}:{}}});if(404===i.status&&"EntryNotFound"===i.headers.get("X-Error-Code"))return null;if(!i.ok)throw await d(i);return i}async function B(e){var t,n,a;w(e.credentials);const o=b(e.repo),r=null!=(t=e.hubUrl)?t:c,i=`${r}/${"model"===o.type?"":`${o.type}s/`}${o.name}/${e.raw?"raw":"resolve"}/${encodeURIComponent(null!=(n=e.revision)?n:"main")}/${e.path}`+(e.noContentDisposition?"?noContentDisposition=1":""),s=await(null!=(a=e.fetch)?a:fetch)(i,{method:"HEAD",headers:e.credentials?{Authorization:`Bearer ${e.credentials.accessToken}`}:{}});if(404===s.status&&"EntryNotFound"===s.headers.get("X-Error-Code"))return null;if(!s.ok)throw await d(s);const l=s.headers.get("ETag");if(!l)throw new f("Expected ETag");const u=s.headers.get("Content-Length");if(!u)throw new f("Expected size information");const h=parseInt(u);if(isNaN(h))throw new f("Invalid file size received");return{etag:l,size:h,downloadLink:new URL(s.url).hostname!==new URL(r).hostname?s.url:null}}async function z(e){return!!await B({...e,raw:!0,fetch:e.fetch})}function P(e){return Object.fromEntries([...e.matchAll(/<(https?:[/][/][^>]+)>;\s+rel="([^"]+)"/g)].map((([,e,t])=>[t,e])))}var q=["private","downloads","gated","likes","lastModified"];async function*I(e){var t,n;w(null==e?void 0:e.credentials);const a=new URLSearchParams([...Object.entries({limit:"500",...(null==(t=null==e?void 0:e.search)?void 0:t.owner)?{author:e.search.owner}:void 0}),...q.map((e=>["expand",e]))]).toString();let o=`${(null==e?void 0:e.hubUrl)||c}/api/datasets`+(a?"?"+a:"");for(;o;){const t=await(null!=(n=null==e?void 0:e.fetch)?n:fetch)(o,{headers:{accept:"application/json",...(null==e?void 0:e.credentials)?{Authorization:`Bearer ${e.credentials.accessToken}`}:void 0}});if(!t.ok)throw d(t);const a=await t.json();for(const e of a)yield{id:e._id,name:e.id,private:e.private,downloads:e.downloads,likes:e.likes,gated:e.gated,updatedAt:new Date(e.lastModified)};const r=t.headers.get("Link");o=r?P(r).next:void 0}}async function*L(e){var t;w(e.credentials);const n=b(e.repo);let a=`${e.hubUrl||c}/api/${n.type}s/${n.name}/tree/${e.revision||"main"}${e.path?"/"+e.path:""}?recursive=${!!e.recursive}&expand=${!!e.expand}`;for(;a;){const n=await(null!=(t=e.fetch)?t:fetch)(a,{headers:{accept:"application/json",...e.credentials?{Authorization:`Bearer ${e.credentials.accessToken}`}:void 0}});if(!n.ok)throw d(n);const o=await n.json();for(const e of o)yield e;const r=n.headers.get("Link");a=r?P(r).next:void 0}}var N=["pipeline_tag","private","gated","downloads","likes"];async function*D(e){var t,n,a;w(null==e?void 0:e.credentials);const o=new URLSearchParams([...Object.entries({limit:"500",...(null==(t=null==e?void 0:e.search)?void 0:t.owner)?{author:e.search.owner}:void 0,...(null==(n=null==e?void 0:e.search)?void 0:n.task)?{pipeline_tag:e.search.task}:void 0}),...N.map((e=>["expand",e]))]).toString();let r=`${(null==e?void 0:e.hubUrl)||c}/api/models?${o}`;for(;r;){const t=await(null!=(a=null==e?void 0:e.fetch)?a:fetch)(r,{headers:{accept:"application/json",...(null==e?void 0:e.credentials)?{Authorization:`Bearer ${e.credentials.accessToken}`}:void 0}});if(!t.ok)throw d(t);const n=await t.json();for(const e of n)yield{id:e._id,name:e.id,private:e.private,task:e.pipeline_tag,downloads:e.downloads,gated:e.gated,likes:e.likes,updatedAt:new Date(e.lastModified)};const o=t.headers.get("Link");r=o?P(o).next:void 0}}var _=["sdk","likes","private","lastModified"];async function*F(e){var t,n;w(null==e?void 0:e.credentials);const a=new URLSearchParams([...Object.entries({limit:"500",...(null==(t=null==e?void 0:e.search)?void 0:t.owner)?{author:e.search.owner}:void 0}),..._.map((e=>["expand",e]))]).toString();let o=`${(null==e?void 0:e.hubUrl)||c}/api/spaces?${a}`;for(;o;){const t=await(null!=(n=null==e?void 0:e.fetch)?n:fetch)(o,{headers:{accept:"application/json",...(null==e?void 0:e.credentials)?{Authorization:`Bearer ${e.credentials.accessToken}`}:void 0}});if(!t.ok)throw d(t);const a=await t.json();for(const e of a)yield{id:e._id,name:e.id,sdk:e.sdk,likes:e.likes,private:e.private,updatedAt:new Date(e.lastModified)};const r=t.headers.get("Link");o=r?P(r).next:void 0}}function M(e,t){const n=Array.isArray(t)?t:[t];return function(e,t){return Object.assign({},...t.map((t=>{if(void 0!==e[t])return{[t]:e[t]}})))}(e,Object.keys(e).filter((e=>{return t=e,!n.includes(t);var t})))}function W(e){return Object.entries(e)}var J="model.safetensors",H="model.safetensors.index.json",X=5;async function G(e,t){const n=await S({...t,path:e,range:[0,7]});if(!n)throw new Error("Failed to download file: "+e);const a=await n.arrayBuffer(),o=new DataView(a).getBigUint64(0,!0),r=await S({...t,path:e,range:[8,7+Number(o)]});if(!r)throw new Error("Failed to download file: "+e);return await r.json()}async function Q(e){w(e.credentials);if("model"!==b(e.repo).type)throw new TypeError("Only model repos should contain safetensors files.");if(await z({...e,path:J})){const t=await G(J,e);return{sharded:!1,header:t,...e.computeParametersCount&&{parameterCount:V(t)}}}if(await z({...e,path:H})){const{index:t,headers:n}=await async function(e,t){const n=await S({...t,path:e});if(!n)throw new Error("Failed to download file: "+e);const a=await n.json(),o=[...new Set(Object.values(a.weight_map))];return{index:a,headers:Object.fromEntries(await y(o.map((e=>async()=>[e,await G(e,t)])),X))}}(H,e);return{sharded:!0,index:t,headers:n,...e.computeParametersCount&&{parameterCount:Y(n)}}}throw new Error("model id does not seem to contain safetensors weights")}function V(e){var t;const n={},a=M(e,"__metadata__");for(const[,e]of W(a))0!==e.shape.length&&(n[e.dtype]=(null!=(t=n[e.dtype])?t:0)+e.shape.reduce(((e,t)=>e*t)));return n}function Y(e){var t;const n={};for(const a of Object.values(e))for(const[e,o]of W(V(a)))n[e]=(null!=(t=n[e])?t:0)+(null!=o?o:0);return n}function Z(e){var t,n;const a=e.file instanceof URL?null!=(t=e.file.pathname.split("/").at(-1))?t:"file":"path"in e.file?e.file.path:e.file.name;return R({credentials:e.credentials,repo:e.repo,operations:[{operation:"addOrUpdate",path:a,content:"content"in e.file?e.file.content:e.file}],title:null!=(n=e.commitTitle)?n:`Add ${a}`,description:e.commitDescription,hubUrl:e.hubUrl,branch:e.branch,isPullRequest:e.isPullRequest,parentCommit:e.parentCommit,fetch:e.fetch})}function K(e){var t;return R({credentials:e.credentials,repo:e.repo,operations:e.files.map((e=>{var t;return{operation:"addOrUpdate",path:e instanceof URL?null!=(t=e.pathname.split("/").at(-1))?t:"file":"path"in e?e.path:e.name,content:"content"in e?e.content:e}})),title:null!=(t=e.commitTitle)?t:`Add ${e.files.length} files`,description:e.commitDescription,hubUrl:e.hubUrl,branch:e.branch,isPullRequest:e.isPullRequest,parentCommit:e.parentCommit,fetch:e.fetch})}async function ee(e){var t,n,a;w(e.credentials);const o=await(null!=(t=e.fetch)?t:fetch)(`${null!=(n=e.hubUrl)?n:c}/api/whoami-v2`,{headers:{Authorization:`Bearer ${e.credentials.accessToken}`}});if(!o.ok)throw await d(o);const r=await o.json();return"string"==typeof(null==(a=r.auth.accessToken)?void 0:a.expiration)&&(r.auth.accessToken.expiration=new Date(r.auth.accessToken.expiration)),r}export{p as HubApiError,f as InvalidApiResponseFormatError,R as commit,x as createRepo,O as deleteFile,C as deleteFiles,A as deleteRepo,S as downloadFile,B as fileDownloadInfo,z as fileExists,I as listDatasets,L as listFiles,D as listModels,F as listSpaces,Q as parseSafetensorsMetadata,Z as uploadFile,K as uploadFiles,ee as whoAmI};export default null;
//# sourceMappingURL=/sm/8a588381b9fc69c21a985ba8cac69e82bcd0157b62f3a253aad97f6141804cf8.map