@aiquants/markdown-explorer 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +86 -0
- package/README.md +4 -2
- package/dist/{EditSurface-Dis52Iwq.cjs → EditSurface-DFHZLbWC.cjs} +2 -2
- package/dist/{EditSurface-BTrQ1viw.js → EditSurface-DV4FuQVx.js} +211 -211
- package/dist/{ExplorerSplit-Dq7HfNre.js → ExplorerSplit-DTkr0q2C.js} +407 -407
- package/dist/{ExplorerSplit-13nPIuf0.cjs → ExplorerSplit-DnuuUifU.cjs} +1 -1
- package/dist/{MultiLayout-B7RvBpCj.cjs → MultiLayout-CC0VPiFf.cjs} +1 -1
- package/dist/{MultiLayout-1rKm2Hzt.js → MultiLayout-S77I1xQr.js} +3 -3
- package/dist/{NativeScrollBar-D63-6AL1.cjs → NativeScrollBar-C2n-DzEJ.cjs} +1 -1
- package/dist/{NativeScrollBar-Bg05yuzM.js → NativeScrollBar-DMCPxFeR.js} +2 -2
- package/dist/{TreeLayout-9eEP62LF.js → TreeLayout-BGTzh0L4.js} +3 -3
- package/dist/{TreeLayout-CNE0XkWz.cjs → TreeLayout-DjJMAxWJ.cjs} +1 -1
- package/dist/core/config.d.cts +2 -0
- package/dist/core/config.d.ts +2 -0
- package/dist/core/geometry.d.cts +0 -1
- package/dist/core/geometry.d.ts +0 -1
- package/dist/{explorerCore-GCqatHTO.js → explorerCore-COhVrnGO.js} +1 -1
- package/dist/{explorerCore-5qeC3-gt.cjs → explorerCore-diILGZTv.cjs} +1 -1
- package/dist/{index-_XNluAcx.cjs → index-AfEbgYQI.cjs} +8 -8
- package/dist/{index-C52Nj37x.js → index-CWFyLa0N.js} +9 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -15
- package/dist/location-Csj3eAm_.cjs +1 -0
- package/dist/{location-CJvL6JNs.js → location-DFfbnUZ9.js} +95 -89
- package/dist/{merge-CnrrjXmc.js → merge-D-Oak4Xy.js} +1 -1
- package/dist/{merge-CKpFyeqR.cjs → merge-DvoikrFp.cjs} +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.js +3 -3
- package/dist/serverCore.cjs +1 -1
- package/dist/serverCore.js +3 -3
- package/dist/styles/markdown-explorer.css +1 -1
- package/dist/{tapScrollCircle-6etmzCb7.cjs → tapScrollCircle-CS3hbyGb.cjs} +1 -1
- package/dist/{tapScrollCircle-D-Lgzdxx.js → tapScrollCircle-DKoj17z6.js} +1 -1
- package/dist/{useSplitPersistence-CD_n1ivo.cjs → useSplitPersistence-C6s7a4Iu.cjs} +1 -1
- package/dist/{useSplitPersistence-tbTu3P5m.js → useSplitPersistence-CC9bx9iq.js} +1 -1
- package/package.json +5 -5
- package/dist/location-DOIG84V9.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("node-diff3"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("node-diff3"),r=require("./index-AfEbgYQI.cjs"),R=(n,t,i,l)=>{if(t===n||t===i)return{kind:"clean",text:i};if(i===n)return{kind:"clean",text:t};const d=g.diff3Merge(t.split(`
|
|
2
2
|
`),n.split(`
|
|
3
3
|
`),i.split(`
|
|
4
4
|
`),{excludeFalseConflicts:!0}),o=[];let c=0;const u=s(l.ours),a=s(l.theirs);for(const e of d)e.ok!==void 0?o.push(...e.ok):e.conflict!==void 0&&(c+=1,o.push(`${r.CONFLICT_OURS_MARKER} ${u}`,...e.conflict.a,r.CONFLICT_SEPARATOR,...e.conflict.b,`${r.CONFLICT_THEIRS_MARKER} ${a}`));const f=o.join(`
|
package/dist/server.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./ownUrls-BTPGNhBt.cjs"),v=require("./location-DOIG84V9.cjs"),P=require("./explorerCore-5qeC3-gt.cjs"),ne=require("node:crypto"),ye=require("@aiquants/markdown/server"),N=require("node:fs"),S=require("node:path"),U=require("node:url"),O=require("./describeValue-Ccvhbt36.cjs"),i=require("./sanitizerService-DomN7lwC.cjs"),X=require("./lru-SGmUyBQU.cjs"),be=require("node:worker_threads"),R=require("node:fs/promises"),xe=require("node:stream");var G=typeof document<"u"?document.currentScript:null;const J=Object.freeze({kind:"anonymous"}),Se=Object.freeze({authenticate:async()=>({status:"signed-in",principal:J}),principalKey:()=>J.kind,signedOutPage:(e,t)=>new Response(null,{status:401,headers:t})}),ke=(e,t)=>{const r=new be.Worker(e,{resourceLimits:t});return{postMessage:o=>{r.postMessage(o)},terminate:()=>r.terminate(),ref:()=>{r.ref()},unref:()=>{r.unref()},listen:({message:o,failure:a})=>{r.on("message",o),r.on("error",a),r.on("messageerror",a),r.on("exit",p=>{a(new Error(`[markdown-explorer] a worker exited with code ${String(p)}`))})}}},Te=({url:e,size:t,deadlineMs:r,jobsPerScope:o,maxQueuedJobs:a,heapLimits:p})=>{i.assertPoolLimit("size",t,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("deadline",r,X.MAX_TIMER_MILLISECONDS),i.assertPoolLimit("jobsPerScope",o,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("maxQueuedJobs",a,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("maxOldGenerationSizeMb",p.maxOldGenerationSizeMb,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("maxYoungGenerationSizeMb",p.maxYoungGenerationSizeMb,Number.MAX_SAFE_INTEGER);const x=Object.freeze({maxOldGenerationSizeMb:p.maxOldGenerationSizeMb,maxYoungGenerationSizeMb:p.maxYoungGenerationSizeMb});return i.createWorkerPoolCore({start:()=>ke(e,x),size:t,deadlineMs:r,jobsPerScope:o,maxQueuedJobs:a})},_e=2,Oe=32,se=({workerHeapMb:e,maxHtmlBytes:t})=>i.htmlNodeBudgetOf(t,e),Ne=64,Me=1024*1024,ve=(e,t)=>{if(e!==void 0&&!O.isPlainObject(e))throw new TypeError("[markdown-explorer] sanitizer must be a plain object of { workers, deadlineMs, maxHtmlBytes, cacheBytes, workerHeapMb, jobsPerScope, maxQueuedJobs }");const{workers:r,deadlineMs:o,maxHtmlBytes:a,cacheBytes:p,workerHeapMb:x,jobsPerScope:l,maxQueuedJobs:w}=e??{},L=i.readLimit("workers",r,_e,Ne),I=i.readLimit("jobsPerScope",l,i.defaultSanitizerJobsPerScope(t,L),Number.MAX_SAFE_INTEGER),k=Object.freeze({workers:L,deadlineMs:i.readLimit("deadlineMs",o,i.DEFAULT_SANITIZER_DEADLINE_MS,X.MAX_TIMER_MILLISECONDS),maxHtmlBytes:i.readLimit("maxHtmlBytes",a,i.DEFAULT_SANITIZER_MAX_HTML_BYTES,i.MAX_HTML_BYTES),cacheBytes:i.readLimit("cacheBytes",p,i.DEFAULT_SANITIZER_CACHE_BYTES,Number.MAX_SAFE_INTEGER),workerHeapMb:i.readLimit("workerHeapMb",x,i.DEFAULT_SANITIZER_WORKER_HEAP_MB,Me),jobsPerScope:I,maxQueuedJobs:i.readLimit("maxQueuedJobs",w,i.SANITIZER_QUEUED_READERS*I,Number.MAX_SAFE_INTEGER)});if(i.assertAdmissionCoversPanels(k,t),se(k)<i.MIN_HTML_NODE_BUDGET)throw new RangeError(`[markdown-explorer] sanitizer.workerHeapMb (${String(k.workerHeapMb)} MiB) must leave room for ${String(i.MIN_HTML_NODE_BUDGET)} parsed nodes beside HTML of sanitizer.maxHtmlBytes (${String(k.maxHtmlBytes)} bytes); raise workerHeapMb or lower maxHtmlBytes`);return k},Le=()=>{const e=typeof document>"u"?require("url").pathToFileURL(__filename).href:G&&G.tagName.toUpperCase()==="SCRIPT"&&G.src||new URL("server.cjs",document.baseURI).href,t=new URL(`./sanitizeWorker${S.extname(U.fileURLToPath(e))}`,e);if(!N.existsSync(U.fileURLToPath(t)))throw new Error(`[markdown-explorer] the HTML sanitizer worker is missing: ${U.fileURLToPath(t)}`);return t},Q=new Map,Ae=(e,t)=>{const r=[e.href,t.workers,t.deadlineMs,t.workerHeapMb,t.jobsPerScope,t.maxQueuedJobs].map(String).join("\0");let o=Q.get(r);return o===void 0&&(o=Te({url:e,size:t.workers,deadlineMs:t.deadlineMs,jobsPerScope:t.jobsPerScope,maxQueuedJobs:t.maxQueuedJobs,heapLimits:{maxOldGenerationSizeMb:t.workerHeapMb,maxYoungGenerationSizeMb:Oe}}),Q.set(r,o)),o},Re=e=>e instanceof Error&&e.code==="ERR_WORKER_OUT_OF_MEMORY",Pe=e=>({utf8Bytes:Buffer.byteLength(e,"utf8"),hash:ne.createHash("sha256").update(e,"utf8").digest("base64")}),Ie=e=>t=>Re(t)?{reason:"too-large",message:`[markdown-explorer] the HTML sanitizer ran out of its ${String(e)} MiB worker heap`}:null,Z=32,De=e=>{if(typeof e!="string")throw new TypeError(`[markdown-explorer] scopeSecret must be a string; got ${typeof e}`);if(e.length<Z)throw new RangeError(`[markdown-explorer] scopeSecret must have at least ${String(Z)} characters; got ${String(e.length)}`);return e},je=({scopeSecret:e})=>Object.freeze({prepareScope:()=>{const r=De(e);return o=>ne.createHmac("sha256",r).update(o,"utf8").digest("base64url").slice(0,X.EXPLORER_SCOPE_LENGTH)},createSanitizer:({options:r,maxPanels:o,iframeHosts:a,dataPath:p,ownUrls:x})=>{const l=ve(r,o);return i.createHtmlSanitizerService({iframeHosts:a,dataPath:p,ownUrls:x,limits:l,nodeBudget:se(l),measureHtml:Pe,classifyCrash:Ie(l.workerHeapMb),pool:Ae(Le(),l)})},createLinkCardHandler:r=>ye.createLinkCardHandler(r)}),Be=e=>{if(e===null||typeof e!="object")throw new TypeError("[markdown-explorer] the server configuration must be an object");const{scopeSecret:t,...r}=e;return P.createExplorerServer({...r,readSettings:o=>v.readCookieValue(o.headers.get("Cookie"),e.config.settingsCookie),assetMaxRangeBytes:null},je({scopeSecret:t}))},z=Object.freeze({maxEntries:2e4,maxDocumentBytes:2*1024*1024,textPreviewBytes:8*1024,walkConcurrency:8}),Ce=new Set(["md","markdown","mdx"]),ee="image/svg+xml",ae=new Map([...[["png","image/png"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["gif","image/gif"],["svg",ee],["webp","image/webp"],["ico","image/x-icon"],["bmp","image/bmp"],["tif","image/tiff"],["tiff","image/tiff"],["avif","image/avif"]].map(([e,t])=>[e,{kind:"image",imageType:t===ee?"svg":"raster",contentType:t}]),...[["mp4","video/mp4"],["m4v","video/mp4"],["webm","video/webm"],["mov","video/quicktime"],["avi","video/x-msvideo"],["mkv","video/x-matroska"],["ogv","video/ogg"]].map(([e,t])=>[e,{kind:"media",mediaType:"video",contentType:t}]),...[["mp3","audio/mpeg"],["wav","audio/wav"],["ogg","audio/ogg"],["oga","audio/ogg"],["opus","audio/ogg"],["m4a","audio/mp4"],["flac","audio/flac"],["aac","audio/aac"],["wma","audio/x-ms-wma"]].map(([e,t])=>[e,{kind:"media",mediaType:"audio",contentType:t}]),["pdf",{kind:"media",mediaType:"pdf",contentType:"application/pdf"}]]),ze=new Map([["csv","csv"],["tsv","tsv"],["tab","tsv"],["xlsx","workbook"],["xlsm","workbook"],["ods","workbook"]]),He=new Set(["txt","text","log","json","jsonc","json5","ndjson","yaml","yml","toml","ini","cfg","conf","properties","xml","xsl","xsd","dtd","html","htm","xhtml","css","scss","sass","less","styl","js","mjs","cjs","jsx","ts","mts","cts","tsx","vue","svelte","astro","py","pyi","rb","go","rs","java","kt","kts","scala","groovy","gradle","c","h","cc","cpp","cxx","hpp","hh","hxx","cs","fs","vb","swift","m","mm","php","pl","pm","r","jl","lua","dart","ex","exs","erl","hrl","hs","ml","mli","clj","cljs","elm","nim","zig","v","sol","tf","hcl","nix","sh","bash","zsh","fish","ps1","psm1","bat","cmd","sql","graphql","gql","proto","thrift","avsc","rst","adoc","asciidoc","tex","bib","org","textile","diff","patch","srt","vtt","ics","vcf","gitignore","gitattributes","editorconfig","dockerignore","npmignore","prettierrc","eslintrc","babelrc","mailmap"]),Fe=new Set(["readme","license","licence","copying","notice","authors","contributors","changelog","changes","todo","makefile","dockerfile","containerfile","procfile","gemfile","rakefile","vagrantfile","jenkinsfile","brewfile","codeowners"]),ie=typeof N.constants.O_NOFOLLOW=="number"?N.constants.O_NOFOLLOW:0,ce=typeof N.constants.O_NONBLOCK=="number"?N.constants.O_NONBLOCK:0,te=e=>`${e.size}-${e.mtimeNs}`,$e=e=>e!==""&&e!=="."&&e!==".."&&!e.includes(":")&&!e.endsWith(".")&&!e.endsWith(" "),re=e=>g.isAcceptableDocumentPath(e)&&e===e.normalize("NFC")&&e.split("/").every($e),le=e=>{const t=e.toLowerCase(),r=t.lastIndexOf(".");return r<0?"":t.slice(r+1)},Ue=e=>{const t=le(e);if(Ce.has(t))return{kind:"markdown"};const r=ae.get(t);if(r!==void 0)return r.kind==="image"?{kind:"image",imageType:r.imageType}:{kind:"media",mediaType:r.mediaType};const o=ze.get(t);if(o!==void 0)return{kind:"spreadsheet",format:o};const a=e.toLowerCase();return He.has(t)||!a.includes(".")&&Fe.has(a)?{kind:"text"}:{kind:"file"}},W=e=>{switch(typeof e=="object"&&e!==null?e.code:void 0){case"ENOENT":case"ENOTDIR":return"not-found";case"ELOOP":case"EACCES":case"EPERM":return"forbidden";case"ENAMETOOLONG":return"invalid";case"EISDIR":return"unsupported";default:return null}},de=e=>{const t=W(e);return t===null?e:new P.ExplorerError(t)},ue=e=>{const t=typeof e=="object"&&e!==null?e.code:void 0;return t==="EACCES"||t==="EPERM"||t==="ENOENT"||t==="ENOTDIR"},Ge=async e=>{try{return Math.trunc((await R.lstat(e)).mtimeMs)}catch(t){if(ue(t))return;throw t}},oe=async(e,t)=>{const r=[];for await(const o of e.createReadStream({start:0,end:t-1,autoClose:!1}))r.push(o);return Buffer.concat(r)},We=(e,t)=>e!==null?{start:e.offset,end:e.offset+e.length-1}:t===0n?{}:{start:0,end:Number(t)-1},Xe=async(e,t,r,o)=>{let a;try{a=await R.open(e,N.constants.O_RDONLY|ie|ce);const w=await a.stat({bigint:!0});if(!w.isFile()||w.ino!==t.ino||w.dev!==t.dev||w.size!==t.size||w.mtimeNs!==t.mtimeNs)throw new P.ExplorerError("not-found")}catch(w){throw await a?.close(),de(w)}const p=a.createReadStream(We(r,t.size)),x=xe.Readable.toWeb(p),l=()=>{p.destroy(o.reason)};return o.aborted?l():o.addEventListener("abort",l,{once:!0}),x},qe=(e,t)=>{const r=v.NAME_COLLATOR.compare(e,t);return r!==0?r:e===t?0:e<t?-1:1},Ye=e=>{let t=0;const r=[];return async o=>{t<e?t+=1:await new Promise(a=>r.push(a));try{return await o()}finally{const a=r.shift();a===void 0?t-=1:a()}}},Ve=(e,t)=>{if(e.isSymbolicLink())return"symbolic-link";if(!(e.isDirectory()||e.isFile()))return"special-file";const{name:r}=e;return r!==r.normalize("NFC")?"not-nfc":r.includes(":")?"colon":r.endsWith(".")||r.endsWith(" ")?"trailing-dot-or-space":g.isAcceptableDocumentPath(r)?g.isAcceptableDocumentPath(t)?null:"path-too-long":"control-character-or-backslash"},Ke=new Set(["id","label","root","pathPrefix","lang","parse","deny","maxEntries","maxDocumentBytes","textPreviewBytes","legacyTextEncoding","walkConcurrency","cacheScope","reportSkipped"]),H=(e,t,r)=>{if(t===void 0)return r;if(typeof t!="number"||!Number.isSafeInteger(t)||t<=0)throw new RangeError(`[markdown-explorer] ${e} must be a positive integer; got ${O.describeValue(t)}`);return t},Je=e=>{if(e===null||typeof e!="object")throw new TypeError("[markdown-explorer] createFileSystemSource needs an options object");for(const n of Object.keys(e))if(!Ke.has(n))throw new TypeError(`[markdown-explorer] createFileSystemSource does not know the option ${O.describeValue(n)}`);const{id:t,label:r,root:o,parse:a}=e;if(typeof t!="string"||t==="")throw new TypeError("[markdown-explorer] a file-system source needs a non-empty id");if(typeof r!="string"||r.trim()==="")throw new TypeError("[markdown-explorer] a file-system source needs a non-blank label");if(typeof a!="function")throw new TypeError("[markdown-explorer] a file-system source needs a parse function");if(typeof o!="string"||!S.isAbsolute(o))throw new RangeError(`[markdown-explorer] root must be an absolute path; got ${O.describeValue(o)}`);let p;try{p=N.statSync(o).isDirectory()}catch(n){throw new RangeError(`[markdown-explorer] root does not exist: ${o}`,{cause:n})}if(!p)throw new RangeError(`[markdown-explorer] root is not a directory: ${o}`);const x=N.realpathSync(o),l=e.pathPrefix;if(typeof l!="string")throw new TypeError('[markdown-explorer] pathPrefix is required: "" for a source over the whole root, or relative segments ending with "/"');if(l!==""&&!(l.endsWith("/")&&re(l.slice(0,-1))))throw new RangeError(`[markdown-explorer] pathPrefix must be empty or relative segments ending with "/"; got ${O.describeValue(l)}`);const w=e.lang;if(typeof w!="string")throw new TypeError('[markdown-explorer] lang is required: the language of the documents, a canonical BCP 47 language tag such as "ja" or "en-US"');if(!g.isExplorerDocumentLang(w))throw new RangeError(`[markdown-explorer] lang must be a canonical BCP 47 language tag (such as "ja" or "en-US"); got ${O.describeValue(w)}`);const L=g.resolvePathRules(e.deny),I=H("maxEntries",e.maxEntries,z.maxEntries),k=H("maxDocumentBytes",e.maxDocumentBytes,z.maxDocumentBytes),q=H("textPreviewBytes",e.textPreviewBytes,z.textPreviewBytes),D=e.legacyTextEncoding;if(D!=null&&typeof D!="string")throw new TypeError("[markdown-explorer] legacyTextEncoding must be a string or null");const Y=typeof D=="string"?v.legacyTextEncodingOf(D):null,me=H("walkConcurrency",e.walkConcurrency,z.walkConcurrency),B=e.cacheScope===void 0?"principal":e.cacheScope;if(B!=="principal"&&B!=="shared")throw new RangeError(`[markdown-explorer] cacheScope must be "principal" or "shared"; got ${O.describeValue(B)}`);const C=e.reportSkipped;if(C!==void 0&&typeof C!="function")throw new TypeError("[markdown-explorer] reportSkipped must be a function");const fe=C===void 0?n=>{console.warn(`[markdown-explorer] the file-system source ${O.describeValue(n.sourceId)} does not list ${O.describeValue(n.path)}: ${n.reason}`)}:C,F=new Set,pe=n=>{const d=S.resolve(x,...n.split("/")),c=S.relative(x,d);return c===""||c===".."||c.startsWith(`..${S.sep}`)||S.isAbsolute(c)?null:d},V=(n,d)=>{const c=`${d}\0${n}`;F.has(c)||F.size>=I||(F.add(c),fe({sourceId:t,path:n,reason:d}))},we=async({signal:n})=>{n.throwIfAborted();const d=new AbortController,c=()=>{d.abort(n.reason)};n.addEventListener("abort",c,{once:!0});const m=Ye(me);let f=0;const h=async(s,y)=>{const b=await m(async()=>{d.signal.throwIfAborted();try{return await R.readdir(s,{withFileTypes:!0})}catch(u){if(y===""||!ue(u))throw u;return null}});if(d.signal.throwIfAborted(),b===null)return V(`${l}${y}`,"unreadable-directory"),null;const E=[];for(const u of b){if(L.deniesName(u.name))continue;const T=y===""?u.name:`${y}/${u.name}`,_=`${l}${T}`,M=Ve(u,_);if(M!==null){V(_,M);continue}E.push({dirent:u,relativePath:T,path:_})}if(f+=E.length,f>I)throw new P.ExplorerError("too-large");return E.sort((u,T)=>qe(u.dirent.name,T.dirent.name)),(await Promise.all(E.map(async({dirent:u,relativePath:T,path:_})=>{const M=await Ge(S.join(s,u.name)),j=M===void 0?{}:{modifiedAt:M};if(!u.isDirectory())return{name:u.name,path:_,type:"file",...j};const K=await h(S.join(s,u.name),T);return K===null?null:{name:u.name,path:_,type:"directory",...j,children:K}}))).filter(u=>u!==null)};try{const s=await h(x,"");if(s===null)throw new Error("[markdown-explorer] the source's root could not be listed");return s}catch(s){throw d.abort(),s}finally{n.removeEventListener("abort",c)}},$=async n=>{if(!n.startsWith(l))return{status:"refused",reason:"not-found"};const d=n.slice(l.length);if(!re(d))return{status:"refused",reason:"invalid"};if(L.deniesPath(d))return{status:"refused",reason:"forbidden"};const c=pe(d);if(c===null)return{status:"refused",reason:"forbidden"};const m=await R.lstat(c,{bigint:!0});if(m.isSymbolicLink())return{status:"refused",reason:"forbidden"};if(!m.isFile())return{status:"refused",reason:"unsupported"};const f=await R.realpath(c);return f!==c||L.deniesPath(S.relative(x,f).split(S.sep).join("/"))?{status:"refused",reason:"forbidden"}:{status:"file",target:c,name:d.slice(d.lastIndexOf("/")+1),stats:m}},Ee=async(n,d,c)=>{let m;try{const f=await $(c);if(f.status==="refused")return g.failureDocument(f.reason);const{target:h,name:s,stats:y}=f,b=Ue(s),E=te(y);if(b.kind==="image")return{kind:"image",name:s,imageType:b.imageType,version:E};if(b.kind==="media")return{kind:"media",name:s,mediaType:b.mediaType,version:E};if(b.kind==="spreadsheet")return{kind:"spreadsheet",name:s,format:b.format,firstSheetText:null,edit:null,version:E};if(b.kind==="file")return{kind:"file",name:s,version:E};m=await R.open(h,N.constants.O_RDONLY|ie|ce);const A=await m.stat({bigint:!0});if(!A.isFile()||A.ino!==y.ino||A.dev!==y.dev)return g.failureDocument("forbidden");if(b.kind==="markdown"){if(A.size>BigInt(k))return g.failureDocument("too-large");const M=await oe(m,k+1);if(M.length>k)return g.failureDocument("too-large");const j=await a(v.decodeTextLeniently(M,!0,Y),d);return{kind:"markdown",name:s,htmlContent:j.htmlContent,headings:j.headings,lang:w,edit:null}}const u=await oe(m,q),T=A.size>BigInt(q),_=v.decodeTextLeniently(u,!T,Y);return _.includes("\0")?{kind:"file",name:s,version:E}:{kind:"text",name:s,text:_,truncated:T,lang:w,version:E}}catch(f){const h=W(f);if(h===null)throw f;return g.failureDocument(h)}finally{await m?.close()}},ge=async(n,d,c)=>{let m;try{m=await $(c)}catch(E){throw de(E)}if(m.status==="refused")throw new P.ExplorerError(m.reason);const{target:f,name:h,stats:s}=m,y=ae.get(le(h)),b=y===void 0?"":y.contentType;return{name:h,contentType:b,size:Number(s.size),version:te(s),open:E=>Xe(f,s,E,n.signal)}},he=async(n,d,c)=>{let m;try{m=await $(c)}catch(s){if(W(s)!==null)return null;throw s}if(m.status==="refused")return null;const f=c.slice(l.length).split("/");if(f.some(s=>L.deniesName(s)))return null;const h=f.slice(0,-1);return h.map((s,y)=>`${l}${h.slice(0,y+1).join("/")}`)};return Object.freeze({id:t,label:r,cacheScope:B,boundary:Object.freeze({contains:n=>n.startsWith(l)}),tree:we,ancestors:he,document:Ee,asset:ge})};exports.DEFAULT_DENIED_PATH_SEGMENTS=g.DEFAULT_DENIED_PATH_SEGMENTS;exports.MAX_DOCUMENT_PATH_LENGTH=g.MAX_DOCUMENT_PATH_LENGTH;exports.isAcceptableDocumentPath=g.isAcceptableDocumentPath;exports.isDeniedPath=g.isDeniedPath;exports.decodeText=v.decodeText;exports.decodeTextLeniently=v.decodeTextLeniently;exports.legacyTextEncodingOf=v.legacyTextEncodingOf;exports.ExplorerError=P.ExplorerError;exports.anonymousAccess=Se;exports.createFileSystemSource=Je;exports.createMarkdownExplorer=Be;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./ownUrls-BTPGNhBt.cjs"),v=require("./location-Csj3eAm_.cjs"),P=require("./explorerCore-diILGZTv.cjs"),ne=require("node:crypto"),ye=require("@aiquants/markdown/server"),N=require("node:fs"),S=require("node:path"),U=require("node:url"),O=require("./describeValue-Ccvhbt36.cjs"),i=require("./sanitizerService-DomN7lwC.cjs"),X=require("./lru-SGmUyBQU.cjs"),be=require("node:worker_threads"),R=require("node:fs/promises"),xe=require("node:stream");var G=typeof document<"u"?document.currentScript:null;const J=Object.freeze({kind:"anonymous"}),Se=Object.freeze({authenticate:async()=>({status:"signed-in",principal:J}),principalKey:()=>J.kind,signedOutPage:(e,t)=>new Response(null,{status:401,headers:t})}),ke=(e,t)=>{const r=new be.Worker(e,{resourceLimits:t});return{postMessage:o=>{r.postMessage(o)},terminate:()=>r.terminate(),ref:()=>{r.ref()},unref:()=>{r.unref()},listen:({message:o,failure:a})=>{r.on("message",o),r.on("error",a),r.on("messageerror",a),r.on("exit",p=>{a(new Error(`[markdown-explorer] a worker exited with code ${String(p)}`))})}}},Te=({url:e,size:t,deadlineMs:r,jobsPerScope:o,maxQueuedJobs:a,heapLimits:p})=>{i.assertPoolLimit("size",t,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("deadline",r,X.MAX_TIMER_MILLISECONDS),i.assertPoolLimit("jobsPerScope",o,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("maxQueuedJobs",a,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("maxOldGenerationSizeMb",p.maxOldGenerationSizeMb,Number.MAX_SAFE_INTEGER),i.assertPoolLimit("maxYoungGenerationSizeMb",p.maxYoungGenerationSizeMb,Number.MAX_SAFE_INTEGER);const x=Object.freeze({maxOldGenerationSizeMb:p.maxOldGenerationSizeMb,maxYoungGenerationSizeMb:p.maxYoungGenerationSizeMb});return i.createWorkerPoolCore({start:()=>ke(e,x),size:t,deadlineMs:r,jobsPerScope:o,maxQueuedJobs:a})},_e=2,Oe=32,se=({workerHeapMb:e,maxHtmlBytes:t})=>i.htmlNodeBudgetOf(t,e),Ne=64,Me=1024*1024,ve=(e,t)=>{if(e!==void 0&&!O.isPlainObject(e))throw new TypeError("[markdown-explorer] sanitizer must be a plain object of { workers, deadlineMs, maxHtmlBytes, cacheBytes, workerHeapMb, jobsPerScope, maxQueuedJobs }");const{workers:r,deadlineMs:o,maxHtmlBytes:a,cacheBytes:p,workerHeapMb:x,jobsPerScope:l,maxQueuedJobs:w}=e??{},L=i.readLimit("workers",r,_e,Ne),I=i.readLimit("jobsPerScope",l,i.defaultSanitizerJobsPerScope(t,L),Number.MAX_SAFE_INTEGER),k=Object.freeze({workers:L,deadlineMs:i.readLimit("deadlineMs",o,i.DEFAULT_SANITIZER_DEADLINE_MS,X.MAX_TIMER_MILLISECONDS),maxHtmlBytes:i.readLimit("maxHtmlBytes",a,i.DEFAULT_SANITIZER_MAX_HTML_BYTES,i.MAX_HTML_BYTES),cacheBytes:i.readLimit("cacheBytes",p,i.DEFAULT_SANITIZER_CACHE_BYTES,Number.MAX_SAFE_INTEGER),workerHeapMb:i.readLimit("workerHeapMb",x,i.DEFAULT_SANITIZER_WORKER_HEAP_MB,Me),jobsPerScope:I,maxQueuedJobs:i.readLimit("maxQueuedJobs",w,i.SANITIZER_QUEUED_READERS*I,Number.MAX_SAFE_INTEGER)});if(i.assertAdmissionCoversPanels(k,t),se(k)<i.MIN_HTML_NODE_BUDGET)throw new RangeError(`[markdown-explorer] sanitizer.workerHeapMb (${String(k.workerHeapMb)} MiB) must leave room for ${String(i.MIN_HTML_NODE_BUDGET)} parsed nodes beside HTML of sanitizer.maxHtmlBytes (${String(k.maxHtmlBytes)} bytes); raise workerHeapMb or lower maxHtmlBytes`);return k},Le=()=>{const e=typeof document>"u"?require("url").pathToFileURL(__filename).href:G&&G.tagName.toUpperCase()==="SCRIPT"&&G.src||new URL("server.cjs",document.baseURI).href,t=new URL(`./sanitizeWorker${S.extname(U.fileURLToPath(e))}`,e);if(!N.existsSync(U.fileURLToPath(t)))throw new Error(`[markdown-explorer] the HTML sanitizer worker is missing: ${U.fileURLToPath(t)}`);return t},Q=new Map,Ae=(e,t)=>{const r=[e.href,t.workers,t.deadlineMs,t.workerHeapMb,t.jobsPerScope,t.maxQueuedJobs].map(String).join("\0");let o=Q.get(r);return o===void 0&&(o=Te({url:e,size:t.workers,deadlineMs:t.deadlineMs,jobsPerScope:t.jobsPerScope,maxQueuedJobs:t.maxQueuedJobs,heapLimits:{maxOldGenerationSizeMb:t.workerHeapMb,maxYoungGenerationSizeMb:Oe}}),Q.set(r,o)),o},Re=e=>e instanceof Error&&e.code==="ERR_WORKER_OUT_OF_MEMORY",Pe=e=>({utf8Bytes:Buffer.byteLength(e,"utf8"),hash:ne.createHash("sha256").update(e,"utf8").digest("base64")}),Ie=e=>t=>Re(t)?{reason:"too-large",message:`[markdown-explorer] the HTML sanitizer ran out of its ${String(e)} MiB worker heap`}:null,Z=32,De=e=>{if(typeof e!="string")throw new TypeError(`[markdown-explorer] scopeSecret must be a string; got ${typeof e}`);if(e.length<Z)throw new RangeError(`[markdown-explorer] scopeSecret must have at least ${String(Z)} characters; got ${String(e.length)}`);return e},je=({scopeSecret:e})=>Object.freeze({prepareScope:()=>{const r=De(e);return o=>ne.createHmac("sha256",r).update(o,"utf8").digest("base64url").slice(0,X.EXPLORER_SCOPE_LENGTH)},createSanitizer:({options:r,maxPanels:o,iframeHosts:a,dataPath:p,ownUrls:x})=>{const l=ve(r,o);return i.createHtmlSanitizerService({iframeHosts:a,dataPath:p,ownUrls:x,limits:l,nodeBudget:se(l),measureHtml:Pe,classifyCrash:Ie(l.workerHeapMb),pool:Ae(Le(),l)})},createLinkCardHandler:r=>ye.createLinkCardHandler(r)}),Be=e=>{if(e===null||typeof e!="object")throw new TypeError("[markdown-explorer] the server configuration must be an object");const{scopeSecret:t,...r}=e;return P.createExplorerServer({...r,readSettings:o=>v.readCookieValue(o.headers.get("Cookie"),e.config.settingsCookie),assetMaxRangeBytes:null},je({scopeSecret:t}))},z=Object.freeze({maxEntries:2e4,maxDocumentBytes:2*1024*1024,textPreviewBytes:8*1024,walkConcurrency:8}),Ce=new Set(["md","markdown","mdx"]),ee="image/svg+xml",ae=new Map([...[["png","image/png"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["gif","image/gif"],["svg",ee],["webp","image/webp"],["ico","image/x-icon"],["bmp","image/bmp"],["tif","image/tiff"],["tiff","image/tiff"],["avif","image/avif"]].map(([e,t])=>[e,{kind:"image",imageType:t===ee?"svg":"raster",contentType:t}]),...[["mp4","video/mp4"],["m4v","video/mp4"],["webm","video/webm"],["mov","video/quicktime"],["avi","video/x-msvideo"],["mkv","video/x-matroska"],["ogv","video/ogg"]].map(([e,t])=>[e,{kind:"media",mediaType:"video",contentType:t}]),...[["mp3","audio/mpeg"],["wav","audio/wav"],["ogg","audio/ogg"],["oga","audio/ogg"],["opus","audio/ogg"],["m4a","audio/mp4"],["flac","audio/flac"],["aac","audio/aac"],["wma","audio/x-ms-wma"]].map(([e,t])=>[e,{kind:"media",mediaType:"audio",contentType:t}]),["pdf",{kind:"media",mediaType:"pdf",contentType:"application/pdf"}]]),ze=new Map([["csv","csv"],["tsv","tsv"],["tab","tsv"],["xlsx","workbook"],["xlsm","workbook"],["ods","workbook"]]),He=new Set(["txt","text","log","json","jsonc","json5","ndjson","yaml","yml","toml","ini","cfg","conf","properties","xml","xsl","xsd","dtd","html","htm","xhtml","css","scss","sass","less","styl","js","mjs","cjs","jsx","ts","mts","cts","tsx","vue","svelte","astro","py","pyi","rb","go","rs","java","kt","kts","scala","groovy","gradle","c","h","cc","cpp","cxx","hpp","hh","hxx","cs","fs","vb","swift","m","mm","php","pl","pm","r","jl","lua","dart","ex","exs","erl","hrl","hs","ml","mli","clj","cljs","elm","nim","zig","v","sol","tf","hcl","nix","sh","bash","zsh","fish","ps1","psm1","bat","cmd","sql","graphql","gql","proto","thrift","avsc","rst","adoc","asciidoc","tex","bib","org","textile","diff","patch","srt","vtt","ics","vcf","gitignore","gitattributes","editorconfig","dockerignore","npmignore","prettierrc","eslintrc","babelrc","mailmap"]),Fe=new Set(["readme","license","licence","copying","notice","authors","contributors","changelog","changes","todo","makefile","dockerfile","containerfile","procfile","gemfile","rakefile","vagrantfile","jenkinsfile","brewfile","codeowners"]),ie=typeof N.constants.O_NOFOLLOW=="number"?N.constants.O_NOFOLLOW:0,ce=typeof N.constants.O_NONBLOCK=="number"?N.constants.O_NONBLOCK:0,te=e=>`${e.size}-${e.mtimeNs}`,$e=e=>e!==""&&e!=="."&&e!==".."&&!e.includes(":")&&!e.endsWith(".")&&!e.endsWith(" "),re=e=>g.isAcceptableDocumentPath(e)&&e===e.normalize("NFC")&&e.split("/").every($e),le=e=>{const t=e.toLowerCase(),r=t.lastIndexOf(".");return r<0?"":t.slice(r+1)},Ue=e=>{const t=le(e);if(Ce.has(t))return{kind:"markdown"};const r=ae.get(t);if(r!==void 0)return r.kind==="image"?{kind:"image",imageType:r.imageType}:{kind:"media",mediaType:r.mediaType};const o=ze.get(t);if(o!==void 0)return{kind:"spreadsheet",format:o};const a=e.toLowerCase();return He.has(t)||!a.includes(".")&&Fe.has(a)?{kind:"text"}:{kind:"file"}},W=e=>{switch(typeof e=="object"&&e!==null?e.code:void 0){case"ENOENT":case"ENOTDIR":return"not-found";case"ELOOP":case"EACCES":case"EPERM":return"forbidden";case"ENAMETOOLONG":return"invalid";case"EISDIR":return"unsupported";default:return null}},de=e=>{const t=W(e);return t===null?e:new P.ExplorerError(t)},ue=e=>{const t=typeof e=="object"&&e!==null?e.code:void 0;return t==="EACCES"||t==="EPERM"||t==="ENOENT"||t==="ENOTDIR"},Ge=async e=>{try{return Math.trunc((await R.lstat(e)).mtimeMs)}catch(t){if(ue(t))return;throw t}},oe=async(e,t)=>{const r=[];for await(const o of e.createReadStream({start:0,end:t-1,autoClose:!1}))r.push(o);return Buffer.concat(r)},We=(e,t)=>e!==null?{start:e.offset,end:e.offset+e.length-1}:t===0n?{}:{start:0,end:Number(t)-1},Xe=async(e,t,r,o)=>{let a;try{a=await R.open(e,N.constants.O_RDONLY|ie|ce);const w=await a.stat({bigint:!0});if(!w.isFile()||w.ino!==t.ino||w.dev!==t.dev||w.size!==t.size||w.mtimeNs!==t.mtimeNs)throw new P.ExplorerError("not-found")}catch(w){throw await a?.close(),de(w)}const p=a.createReadStream(We(r,t.size)),x=xe.Readable.toWeb(p),l=()=>{p.destroy(o.reason)};return o.aborted?l():o.addEventListener("abort",l,{once:!0}),x},qe=(e,t)=>{const r=v.NAME_COLLATOR.compare(e,t);return r!==0?r:e===t?0:e<t?-1:1},Ye=e=>{let t=0;const r=[];return async o=>{t<e?t+=1:await new Promise(a=>r.push(a));try{return await o()}finally{const a=r.shift();a===void 0?t-=1:a()}}},Ve=(e,t)=>{if(e.isSymbolicLink())return"symbolic-link";if(!(e.isDirectory()||e.isFile()))return"special-file";const{name:r}=e;return r!==r.normalize("NFC")?"not-nfc":r.includes(":")?"colon":r.endsWith(".")||r.endsWith(" ")?"trailing-dot-or-space":g.isAcceptableDocumentPath(r)?g.isAcceptableDocumentPath(t)?null:"path-too-long":"control-character-or-backslash"},Ke=new Set(["id","label","root","pathPrefix","lang","parse","deny","maxEntries","maxDocumentBytes","textPreviewBytes","legacyTextEncoding","walkConcurrency","cacheScope","reportSkipped"]),H=(e,t,r)=>{if(t===void 0)return r;if(typeof t!="number"||!Number.isSafeInteger(t)||t<=0)throw new RangeError(`[markdown-explorer] ${e} must be a positive integer; got ${O.describeValue(t)}`);return t},Je=e=>{if(e===null||typeof e!="object")throw new TypeError("[markdown-explorer] createFileSystemSource needs an options object");for(const n of Object.keys(e))if(!Ke.has(n))throw new TypeError(`[markdown-explorer] createFileSystemSource does not know the option ${O.describeValue(n)}`);const{id:t,label:r,root:o,parse:a}=e;if(typeof t!="string"||t==="")throw new TypeError("[markdown-explorer] a file-system source needs a non-empty id");if(typeof r!="string"||r.trim()==="")throw new TypeError("[markdown-explorer] a file-system source needs a non-blank label");if(typeof a!="function")throw new TypeError("[markdown-explorer] a file-system source needs a parse function");if(typeof o!="string"||!S.isAbsolute(o))throw new RangeError(`[markdown-explorer] root must be an absolute path; got ${O.describeValue(o)}`);let p;try{p=N.statSync(o).isDirectory()}catch(n){throw new RangeError(`[markdown-explorer] root does not exist: ${o}`,{cause:n})}if(!p)throw new RangeError(`[markdown-explorer] root is not a directory: ${o}`);const x=N.realpathSync(o),l=e.pathPrefix;if(typeof l!="string")throw new TypeError('[markdown-explorer] pathPrefix is required: "" for a source over the whole root, or relative segments ending with "/"');if(l!==""&&!(l.endsWith("/")&&re(l.slice(0,-1))))throw new RangeError(`[markdown-explorer] pathPrefix must be empty or relative segments ending with "/"; got ${O.describeValue(l)}`);const w=e.lang;if(typeof w!="string")throw new TypeError('[markdown-explorer] lang is required: the language of the documents, a canonical BCP 47 language tag such as "ja" or "en-US"');if(!g.isExplorerDocumentLang(w))throw new RangeError(`[markdown-explorer] lang must be a canonical BCP 47 language tag (such as "ja" or "en-US"); got ${O.describeValue(w)}`);const L=g.resolvePathRules(e.deny),I=H("maxEntries",e.maxEntries,z.maxEntries),k=H("maxDocumentBytes",e.maxDocumentBytes,z.maxDocumentBytes),q=H("textPreviewBytes",e.textPreviewBytes,z.textPreviewBytes),D=e.legacyTextEncoding;if(D!=null&&typeof D!="string")throw new TypeError("[markdown-explorer] legacyTextEncoding must be a string or null");const Y=typeof D=="string"?v.legacyTextEncodingOf(D):null,me=H("walkConcurrency",e.walkConcurrency,z.walkConcurrency),B=e.cacheScope===void 0?"principal":e.cacheScope;if(B!=="principal"&&B!=="shared")throw new RangeError(`[markdown-explorer] cacheScope must be "principal" or "shared"; got ${O.describeValue(B)}`);const C=e.reportSkipped;if(C!==void 0&&typeof C!="function")throw new TypeError("[markdown-explorer] reportSkipped must be a function");const fe=C===void 0?n=>{console.warn(`[markdown-explorer] the file-system source ${O.describeValue(n.sourceId)} does not list ${O.describeValue(n.path)}: ${n.reason}`)}:C,F=new Set,pe=n=>{const d=S.resolve(x,...n.split("/")),c=S.relative(x,d);return c===""||c===".."||c.startsWith(`..${S.sep}`)||S.isAbsolute(c)?null:d},V=(n,d)=>{const c=`${d}\0${n}`;F.has(c)||F.size>=I||(F.add(c),fe({sourceId:t,path:n,reason:d}))},we=async({signal:n})=>{n.throwIfAborted();const d=new AbortController,c=()=>{d.abort(n.reason)};n.addEventListener("abort",c,{once:!0});const m=Ye(me);let f=0;const h=async(s,y)=>{const b=await m(async()=>{d.signal.throwIfAborted();try{return await R.readdir(s,{withFileTypes:!0})}catch(u){if(y===""||!ue(u))throw u;return null}});if(d.signal.throwIfAborted(),b===null)return V(`${l}${y}`,"unreadable-directory"),null;const E=[];for(const u of b){if(L.deniesName(u.name))continue;const T=y===""?u.name:`${y}/${u.name}`,_=`${l}${T}`,M=Ve(u,_);if(M!==null){V(_,M);continue}E.push({dirent:u,relativePath:T,path:_})}if(f+=E.length,f>I)throw new P.ExplorerError("too-large");return E.sort((u,T)=>qe(u.dirent.name,T.dirent.name)),(await Promise.all(E.map(async({dirent:u,relativePath:T,path:_})=>{const M=await Ge(S.join(s,u.name)),j=M===void 0?{}:{modifiedAt:M};if(!u.isDirectory())return{name:u.name,path:_,type:"file",...j};const K=await h(S.join(s,u.name),T);return K===null?null:{name:u.name,path:_,type:"directory",...j,children:K}}))).filter(u=>u!==null)};try{const s=await h(x,"");if(s===null)throw new Error("[markdown-explorer] the source's root could not be listed");return s}catch(s){throw d.abort(),s}finally{n.removeEventListener("abort",c)}},$=async n=>{if(!n.startsWith(l))return{status:"refused",reason:"not-found"};const d=n.slice(l.length);if(!re(d))return{status:"refused",reason:"invalid"};if(L.deniesPath(d))return{status:"refused",reason:"forbidden"};const c=pe(d);if(c===null)return{status:"refused",reason:"forbidden"};const m=await R.lstat(c,{bigint:!0});if(m.isSymbolicLink())return{status:"refused",reason:"forbidden"};if(!m.isFile())return{status:"refused",reason:"unsupported"};const f=await R.realpath(c);return f!==c||L.deniesPath(S.relative(x,f).split(S.sep).join("/"))?{status:"refused",reason:"forbidden"}:{status:"file",target:c,name:d.slice(d.lastIndexOf("/")+1),stats:m}},Ee=async(n,d,c)=>{let m;try{const f=await $(c);if(f.status==="refused")return g.failureDocument(f.reason);const{target:h,name:s,stats:y}=f,b=Ue(s),E=te(y);if(b.kind==="image")return{kind:"image",name:s,imageType:b.imageType,version:E};if(b.kind==="media")return{kind:"media",name:s,mediaType:b.mediaType,version:E};if(b.kind==="spreadsheet")return{kind:"spreadsheet",name:s,format:b.format,firstSheetText:null,edit:null,version:E};if(b.kind==="file")return{kind:"file",name:s,version:E};m=await R.open(h,N.constants.O_RDONLY|ie|ce);const A=await m.stat({bigint:!0});if(!A.isFile()||A.ino!==y.ino||A.dev!==y.dev)return g.failureDocument("forbidden");if(b.kind==="markdown"){if(A.size>BigInt(k))return g.failureDocument("too-large");const M=await oe(m,k+1);if(M.length>k)return g.failureDocument("too-large");const j=await a(v.decodeTextLeniently(M,!0,Y),d);return{kind:"markdown",name:s,htmlContent:j.htmlContent,headings:j.headings,lang:w,edit:null}}const u=await oe(m,q),T=A.size>BigInt(q),_=v.decodeTextLeniently(u,!T,Y);return _.includes("\0")?{kind:"file",name:s,version:E}:{kind:"text",name:s,text:_,truncated:T,lang:w,version:E}}catch(f){const h=W(f);if(h===null)throw f;return g.failureDocument(h)}finally{await m?.close()}},ge=async(n,d,c)=>{let m;try{m=await $(c)}catch(E){throw de(E)}if(m.status==="refused")throw new P.ExplorerError(m.reason);const{target:f,name:h,stats:s}=m,y=ae.get(le(h)),b=y===void 0?"":y.contentType;return{name:h,contentType:b,size:Number(s.size),version:te(s),open:E=>Xe(f,s,E,n.signal)}},he=async(n,d,c)=>{let m;try{m=await $(c)}catch(s){if(W(s)!==null)return null;throw s}if(m.status==="refused")return null;const f=c.slice(l.length).split("/");if(f.some(s=>L.deniesName(s)))return null;const h=f.slice(0,-1);return h.map((s,y)=>`${l}${h.slice(0,y+1).join("/")}`)};return Object.freeze({id:t,label:r,cacheScope:B,boundary:Object.freeze({contains:n=>n.startsWith(l)}),tree:we,ancestors:he,document:Ee,asset:ge})};exports.DEFAULT_DENIED_PATH_SEGMENTS=g.DEFAULT_DENIED_PATH_SEGMENTS;exports.MAX_DOCUMENT_PATH_LENGTH=g.MAX_DOCUMENT_PATH_LENGTH;exports.isAcceptableDocumentPath=g.isAcceptableDocumentPath;exports.isDeniedPath=g.isDeniedPath;exports.decodeText=v.decodeText;exports.decodeTextLeniently=v.decodeTextLeniently;exports.legacyTextEncodingOf=v.legacyTextEncodingOf;exports.ExplorerError=P.ExplorerError;exports.anonymousAccess=Se;exports.createFileSystemSource=Je;exports.createMarkdownExplorer=Be;
|
package/dist/server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as Te, f as _e, i as $, g as I } from "./ownUrls-DD0cSCsF.js";
|
|
2
2
|
import { D as Yt, M as Kt, a as Jt } from "./ownUrls-DD0cSCsF.js";
|
|
3
|
-
import { r as Oe, l as Ne, b as K, N as Me } from "./location-
|
|
4
|
-
import { d as Zt } from "./location-
|
|
5
|
-
import { c as ve, E as C } from "./explorerCore-
|
|
3
|
+
import { r as Oe, l as Ne, b as K, N as Me } from "./location-DFfbnUZ9.js";
|
|
4
|
+
import { d as Zt } from "./location-DFfbnUZ9.js";
|
|
5
|
+
import { c as ve, E as C } from "./explorerCore-COhVrnGO.js";
|
|
6
6
|
import { createHash as Re, createHmac as Ae } from "node:crypto";
|
|
7
7
|
import { createLinkCardHandler as Le } from "@aiquants/markdown/server";
|
|
8
8
|
import { existsSync as Ie, statSync as Pe, realpathSync as je, constants as v } from "node:fs";
|
package/dist/serverCore.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./location-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./location-Csj3eAm_.cjs"),c=require("./ownUrls-BTPGNhBt.cjs"),u=require("./explorerCore-diILGZTv.cjs"),x=require("react-router"),d=require("./describeValue-Ccvhbt36.cjs"),_=(i,e)=>new Promise((o,a)=>{const t=()=>a(e.reason);e.addEventListener("abort",t,{once:!0}),i.then(n=>{e.removeEventListener("abort",t),o(n)},n=>{e.removeEventListener("abort",t),a(n)}),e.aborted&&t()}),L=(i,{dataPath:e,pageAddress:o})=>{if(E.assertMountPath("dataPath",e),typeof o!="string")throw new TypeError(`[markdown-explorer] pageAddress must be a string; got ${d.describeValue(o)}`);if(!URL.canParse(e,o))throw new RangeError(`[markdown-explorer] pageAddress must be an absolute URL the data path resolves against; got ${d.describeValue(o)}`);const a=new URL(o),t=`${e}/`;return async(n,h)=>{const s=new Request(n instanceof Request?n:new URL(String(n),a),h);s.signal.throwIfAborted();const r=new URL(s.url);if(r.protocol!==a.protocol||r.host!==a.host||!r.pathname.startsWith(t))throw new TypeError(`[markdown-explorer] the in-process fetch answers only ${t}*; got ${r.protocol}//${r.host}${r.pathname}`);const T={request:s,url:r,pattern:`${e}/*`,params:{"*":r.pathname.slice(t.length)},context:new x.RouterContextProvider},p=s.method==="GET"||s.method==="HEAD",l=await _(p?i.dataLoader(T):i.dataAction(T),s.signal);return s.method==="HEAD"?new Response(null,{headers:l.headers,status:l.status,statusText:l.statusText}):l}};exports.decodeText=E.decodeText;exports.decodeTextLeniently=E.decodeTextLeniently;exports.isExplorerSourceId=E.isExplorerSourceId;exports.legacyTextEncodingOf=E.legacyTextEncodingOf;exports.DEFAULT_DENIED_PATH_SEGMENTS=c.DEFAULT_DENIED_PATH_SEGMENTS;exports.EXPLORER_MAX_HEADINGS=c.EXPLORER_MAX_HEADINGS;exports.MAX_DOCUMENT_PATH_LENGTH=c.MAX_DOCUMENT_PATH_LENGTH;exports.isAcceptableDocumentPath=c.isAcceptableDocumentPath;exports.isDeniedPath=c.isDeniedPath;exports.isExplorerDocumentLang=c.isExplorerDocumentLang;exports.ASSET_CONTENT_SECURITY_POLICIES=u.ASSET_CONTENT_SECURITY_POLICIES;exports.ExplorerError=u.ExplorerError;exports.createExplorerServer=u.createExplorerServer;exports.createInProcessDataFetch=L;
|
package/dist/serverCore.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as l } from "./location-
|
|
2
|
-
import { d as R, b as A, i as D, l as _ } from "./location-
|
|
1
|
+
import { a as l } from "./location-DFfbnUZ9.js";
|
|
2
|
+
import { d as R, b as A, i as D, l as _ } from "./location-DFfbnUZ9.js";
|
|
3
3
|
import { D as g, E as P, M as I, i as U, a as $, b as v } from "./ownUrls-DD0cSCsF.js";
|
|
4
|
-
import { A as N, E as H, c as M } from "./explorerCore-
|
|
4
|
+
import { A as N, E as H, c as M } from "./explorerCore-COhVrnGO.js";
|
|
5
5
|
import { RouterContextProvider as d } from "react-router";
|
|
6
6
|
import { d as p } from "./describeValue-CLlVRO8d.js";
|
|
7
7
|
const u = (c, e) => new Promise((o, n) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
|
|
2
2
|
/*! @aiquants/markdown-explorer — component styles, layered in `components`. The layer order is pinned first (theme, base, components, utilities, as Tailwind CSS declares it), so a Tailwind host's preflight in `base` cannot override the explorer when this sheet is the first to name a layer. */
|
|
3
|
-
@layer theme,base;@layer components{.aqmx-root{color-scheme:light;--aqmx-space-1:.0625rem;--aqmx-space-2:.125rem;--aqmx-space-3:.1875rem;--aqmx-space-4:.3125rem;--aqmx-space-5:.5rem;--aqmx-space-6:.8125rem;--aqmx-space-7:1.3125rem;--aqmx-space-8:2.125rem;--aqmx-space-9:3.4375rem;--aqmx-control:2.75rem;--aqmx-focus-ring-width:var(--aqmx-space-2);--aqmx-focus-ring-offset:var(--aqmx-space-2);--aqmx-icon:1rem;--aqmx-radius-s:.3125rem;--aqmx-radius-m:.5rem;--aqmx-radius-l:.8125rem;--aqmx-duration-1:89ms;--aqmx-duration-2:.144s;--aqmx-duration-3:.233s;--aqmx-duration-4:.377s;--aqmx-delay-progress:.233s;--aqmx-ease:cubic-bezier(.2, 0, 0, 1);--aqmx-font-size-body:.8125rem;--aqmx-font-size-title:1rem;--aqmx-font-size-display:1.3125rem;--aqmx-line-height-compact:1.382;--aqmx-line-height-prose:1.618;--aqmx-column-measure:40ch;--aqmx-tap-circle-gutter-size:54px;--aqmx-scroll-bar-overlay-size:0px;--aqmx-scroll-bar-slot-size:8px;--aqmx-split-handle-size:24px;--aqmx-surface:#fff;--aqmx-surface-raised:#f8fafc;--aqmx-surface-sunken:#f1f5f9;--aqmx-border:#cbd5e1;--aqmx-border-strong:#94a3b8;--aqmx-text:#0f172a;--aqmx-text-muted:#3d4a5c;--aqmx-accent:#1d3fa6;--aqmx-accent-surface:#dbeafe;--aqmx-tree-line:#64748b;--aqmx-tree-row-tint:#f1f1f2;--aqmx-tree-row-accent-tint:#dce6fc;--aqmx-focus:#2563eb;--aqmx-info-surface:#eff6ff;--aqmx-info-border:#93c5fd;--aqmx-info-text:#1e3a8a;--aqmx-warning-surface:#fffbeb;--aqmx-warning-border:#fcd34d;--aqmx-warning-text:#78350f;--aqmx-danger-surface:#fef2f2;--aqmx-danger-border:#fca5a5;--aqmx-danger-text:#7f1d1d;--aqmx-syntax-heading:#172554;--aqmx-syntax-link:#1e3a8a;--aqmx-syntax-url:#5b21b6;--aqmx-syntax-code:#7c2d12;--aqmx-syntax-quote:#334155;--aqmx-syntax-mark:#3d4a5c;--aqmx-editor-gutter:#334155;--aqmx-editor-selection:#2563eb36;--aqmx-editor-active-line:#0f172a0d;--aqmx-conflict-ours-tint:#16a34a21;--aqmx-conflict-theirs-tint:#2563eb21;--aqmx-conflict-marker-tint:#d9770636;--aqmx-shadow:0 .0625rem .1875rem #0f172a21, 0 .3125rem .8125rem #0f172a14}.aqmx-root[data-aqmx-theme=dark]{color-scheme:dark;--aqmx-surface:#0f172a;--aqmx-surface-raised:#1e293b;--aqmx-surface-sunken:#020617;--aqmx-border:#334155;--aqmx-border-strong:#64748b;--aqmx-text:#e2e8f0;--aqmx-text-muted:#aab6c8;--aqmx-accent:#bfdbfe;--aqmx-accent-surface:#1e3a8a;--aqmx-tree-line:#94a3b8;--aqmx-tree-row-tint:#1c2436;--aqmx-tree-row-accent-tint:#19387f;--aqmx-focus:#60a5fa;--aqmx-info-surface:#172554;--aqmx-info-border:#1d4ed8;--aqmx-info-text:#bfdbfe;--aqmx-warning-surface:#422006;--aqmx-warning-border:#a16207;--aqmx-warning-text:#fde68a;--aqmx-danger-surface:#450a0a;--aqmx-danger-border:#b91c1c;--aqmx-danger-text:#fecaca;--aqmx-syntax-heading:#bfdbfe;--aqmx-syntax-link:#c7d2fe;--aqmx-syntax-url:#ddd6fe;--aqmx-syntax-code:#fdba74;--aqmx-syntax-quote:#cbd5e1;--aqmx-syntax-mark:#cbd5e1;--aqmx-editor-gutter:#cbd5e1;--aqmx-editor-selection:#3b82f657;--aqmx-editor-active-line:#e2e8f00d;--aqmx-conflict-ours-tint:#22c55e36;--aqmx-conflict-theirs-tint:#3b82f636;--aqmx-conflict-marker-tint:#f59e0b36;--aqmx-shadow:0 .0625rem .1875rem #0000008c, 0 .3125rem .8125rem #00000057}@media (pointer:coarse){.aqmx-root{--aqmx-font-size-body:1rem;--aqmx-tap-circle-gutter-size:0px;--aqmx-scroll-bar-overlay-size:8px;--aqmx-scroll-bar-slot-size:0px;--aqmx-split-handle-size:44px}}@media (forced-colors:active){.aqmx-root.aqmx-root[data-aqmx-theme]{--aqmx-tree-line:CanvasText}}@media (prefers-reduced-motion:reduce){.aqmx-root{--aqmx-duration-1:0s;--aqmx-duration-2:0s;--aqmx-duration-3:0s;--aqmx-duration-4:0s}}.aqmx-root{block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-direction:column;display:flex;position:relative}.aqmx-root *,.aqmx-root :before,.aqmx-root :after{box-sizing:border-box}.aqmx-icon-button{inline-size:var(--aqmx-control);block-size:var(--aqmx-control);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease), color var(--aqmx-duration-2) var(--aqmx-ease);background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.aqmx-icon-button:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-icon-button:disabled{opacity:.382;cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]{cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]:hover{color:var(--aqmx-text-muted);background:0 0}.aqmx-icon-button>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-icon-button[aria-disabled=true]>svg{opacity:.382}.aqmx-icon-button:has(>input[type=radio]){position:relative}.aqmx-icon-button>input[type=radio]{opacity:0;cursor:inherit;margin:0;position:absolute;inset:0}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:var(--aqmx-focus-ring-offset)}.aqmx-callout{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-info-border);border-radius:var(--aqmx-radius-l);color:var(--aqmx-info-text);background:var(--aqmx-info-surface);line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-callout[data-aqmx-tone=warning]{border-color:var(--aqmx-warning-border);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface)}.aqmx-callout[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-access-failure{flex:none;min-inline-size:0}.aqmx-callout-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-callout-body{margin:0}.aqmx-callout-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-callout-action{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-m);color:inherit;font:inherit;cursor:pointer;background:0 0;justify-self:start;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.aqmx-progress{z-index:2;block-size:var(--aqmx-space-3);pointer-events:none;position:absolute;inset-block-start:0;inset-inline:0;overflow:hidden}.aqmx-progress:before{content:"";background:var(--aqmx-accent);inline-size:38.1966%;animation:aqmx-progress calc(var(--aqmx-duration-4) * 3) var(--aqmx-ease) infinite;position:absolute;inset-block:0}@keyframes aqmx-progress{0%{inset-inline-start:-38.1966%}to{inset-inline-start:100%}}.aqmx-empty{place-content:center;justify-items:center;gap:var(--aqmx-space-6);block-size:100%;padding:var(--aqmx-space-8);color:var(--aqmx-text-muted);text-align:center;line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-empty-title{color:var(--aqmx-text);font-size:var(--aqmx-font-size-title);margin:0;font-weight:600}.aqmx-skeleton{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-skeleton>span{block-size:var(--aqmx-space-6);border-radius:var(--aqmx-radius-s);background:var(--aqmx-surface-sunken);animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite;display:block}.aqmx-skeleton>span:nth-child(3n+1){inline-size:61.8034%}.aqmx-skeleton>span:nth-child(3n+2){inline-size:100%}.aqmx-skeleton>span:nth-child(3n){inline-size:85.4102%}@keyframes aqmx-pulse{50%{opacity:.618}}.aqmx-sr-only,.aqmx-document-refresh-bar[data-aqmx-sheet-bar] .aqmx-labelled-button>span{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.aqmx-native-scroll-bar{display:flex}@media (pointer:coarse){.aqmx-native-scroll-bar{inline-size:0;position:relative}.aqmx-native-scroll-bar>[data-aqvs-scrollbar]{pointer-events:none;position:absolute;inset-block-start:0;inset-inline-end:0}}.aqmx-toast{z-index:60;max-inline-size:min(34rem, calc(100% - var(--aqmx-space-8)));padding:var(--aqmx-space-5) var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-warning-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface);box-shadow:var(--aqmx-shadow);position:absolute;inset-block-start:var(--aqmx-space-6);inset-inline-end:var(--aqmx-space-7)}@media (prefers-reduced-motion:reduce){.aqmx-progress:before,.aqmx-skeleton>span{animation:none}}@media (forced-colors:active){.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-icon-button[aria-disabled=true]{color:graytext}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline-color:highlight}.aqmx-progress:before{forced-color-adjust:none;background:highlight}.aqmx-skeleton>span{forced-color-adjust:none;background:graytext}}.aqmx-explorer{gap:var(--aqmx-space-5);block-size:100%;min-block-size:0;min-inline-size:0;padding:var(--aqmx-space-4);color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow-y:auto}.aqmx-explorer-header{align-items:center;gap:var(--aqmx-space-4);min-block-size:var(--aqmx-control);flex-wrap:wrap;flex:none;display:flex}.aqmx-explorer-source{min-inline-size:min(100%,9rem);block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface-raised);font:inherit;text-overflow:ellipsis;cursor:pointer;flex:9rem}.aqmx-explorer-actions{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);flex-wrap:wrap;flex:0 auto;min-inline-size:0;margin-inline-start:auto;display:flex}.aqmx-explorer-body{gap:var(--aqmx-space-5);flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex;position:relative}.aqmx-labelled-button{gap:var(--aqmx-space-2);min-inline-size:var(--aqmx-control);inline-size:auto;padding-inline:var(--aqmx-space-3);white-space:nowrap;flex:0 auto;display:inline-flex}.aqmx-labelled-button>svg{flex:none}.aqmx-labelled-button>span{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}.aqmx-explorer-refresh-failure,.aqmx-explorer-expand-all-stop{padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid;border-radius:var(--aqmx-radius-m);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;flex:none;margin:0}.aqmx-sheet-access-failures{gap:var(--aqmx-space-3);flex-direction:column;flex:none;max-block-size:38.1966%;min-inline-size:0;display:flex;overflow-y:auto}.aqmx-explorer-refresh-failure{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-explorer-expand-all-stop{border-color:var(--aqmx-info-border);color:var(--aqmx-info-text);background:var(--aqmx-info-surface)}.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}@keyframes aqmx-explorer-spin{to{rotate:1turn}}.aqmx-explorer-actions>.aqmx-icon-button[aria-busy=true]{cursor:progress}.aqmx-explorer-menu{z-index:50;gap:var(--aqmx-space-1);max-block-size:100%;inline-size:min(21rem,100%);padding:var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);display:grid;position:absolute;inset-block-start:0;inset-inline-end:0;overflow-y:auto}.aqmx-explorer-menu-item{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;transition:background-color var(--aqmx-duration-1) var(--aqmx-ease);background:0 0;border:0;display:flex}.aqmx-explorer-menu-item:hover,.aqmx-explorer-menu-item:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-explorer-menu-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);color:var(--aqmx-text-muted);flex:none}.aqmx-explorer-menu-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;overflow:hidden}.aqmx-explorer-menu-value{color:var(--aqmx-accent);font-variant-numeric:tabular-nums;flex:none;font-weight:600}.aqmx-explorer-notices{gap:var(--aqmx-space-5);flex:none;display:grid}.aqmx-explorer-tree-area{min-block-size:calc(var(--aqmx-control) * 3);flex-direction:column;flex:1 1 0;min-inline-size:0;display:flex;position:relative}.aqmx-explorer-tree{flex:1 1 0;min-block-size:0;position:relative}.aqmx-explorer-tree-view{block-size:100%}@media (pointer:coarse){.aqmx-explorer-tree [data-aqvs-scrollbar]:has(>[data-aqvs-scrollbar-arrow]){visibility:hidden}}.aqmx-explorer-tree-progress{z-index:1;align-items:center;gap:var(--aqmx-space-2) var(--aqmx-space-4);max-inline-size:calc(100% - var(--aqmx-space-5) * 3);padding:var(--aqmx-space-3) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;pointer-events:none;animation:aqmx-appear var(--aqmx-duration-2) ease-out var(--aqmx-delay-progress) both;flex-wrap:wrap;margin:0;display:flex;position:absolute;inset-block-end:var(--aqmx-space-9);inset-inline-start:var(--aqmx-space-5)}.aqmx-explorer-tree-progress-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite;flex:none}@keyframes aqmx-appear{0%{opacity:0}}.aqmx-explorer-tree-probe{inline-size:0;block-size:var(--aqmx-control);visibility:hidden;pointer-events:none;color:var(--aqmx-tree-line);forced-color-adjust:none;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-explorer-loading{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6) var(--aqmx-space-5);color:var(--aqmx-text-muted);display:grid}.aqmx-explorer-loading-text{margin:0}.aqmx-explorer-loading>.aqmx-skeleton{padding:0}.aqmx-explorer-tree-message{padding:var(--aqmx-space-5);overflow-y:auto}.aqmx-explorer-empty-icon{inline-size:var(--aqmx-space-8);block-size:var(--aqmx-space-8);color:var(--aqmx-border-strong)}.aqmx-explorer-empty-body{margin:0}.aqmx-explorer-tree [role=treeitem]{border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);transition:background-color var(--aqmx-duration-1) var(--aqmx-ease)}.aqmx-explorer-tree [role=treeitem]:hover{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint)}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint);box-shadow:inset var(--aqmx-space-2) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{color:var(--aqmx-accent);background:var(--aqmx-tree-row-accent-tint)}.aqmx-explorer-tree [role=treeitem]:focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible{box-shadow:inset calc(var(--aqmx-space-2) + var(--aqmx-focus-ring-width)) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{font-weight:600}.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite}.aqmx-explorer-tree [role=treeitem][data-aqmx-loop]{color:var(--aqmx-text-muted);font-style:italic}.aqmx-explorer-folder-failed{--aqmx-folder-name-floor:3em;align-items:center;min-inline-size:0;max-inline-size:100%;display:flex}.aqmx-explorer-folder-name{flex:10000 1 var(--aqmx-folder-name-floor);text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;max-inline-size:max-content;overflow:hidden}.aqmx-explorer-folder-error{min-inline-size:0;color:var(--aqmx-danger-text);text-indent:var(--aqmx-space-4);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;overflow:hidden}.aqmx-explorer-folder-retry{flex:1000000 0 calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);min-inline-size:calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);max-inline-size:max-content;min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-s);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);font:inherit;line-height:var(--aqmx-line-height-compact);cursor:pointer;justify-content:center;align-items:center;margin-inline-start:var(--aqmx-space-4);display:inline-flex;overflow:hidden}.aqmx-explorer-folder-retry:focus-visible{outline-offset:calc(-1 * (var(--aqmx-focus-ring-width) + var(--aqmx-space-1)))}.aqmx-explorer-folder-retry-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-explorer-folder-retry-text{min-inline-size:0;text-indent:var(--aqmx-space-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aqmx-explorer-tray{gap:var(--aqmx-space-4);min-block-size:calc(var(--aqmx-control) + (var(--aqmx-space-5) + var(--aqmx-space-1)) * 2);padding:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.aqmx-explorer-tray-header{justify-content:space-between;align-items:center;gap:var(--aqmx-space-5);flex:none;display:flex}.aqmx-explorer-tray-title{margin:0;font-weight:600}.aqmx-explorer-tray-button{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-accent);font:inherit;cursor:pointer;background:0 0;border:0;flex:none;font-weight:600}.aqmx-explorer-tray-button:hover{background:var(--aqmx-surface-sunken)}.aqmx-explorer-tray-list{gap:var(--aqmx-space-1);min-block-size:var(--aqmx-control);max-block-size:calc(var(--aqmx-control) * 3);flex:0 auto;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.aqmx-explorer-tray-item{align-items:center;gap:var(--aqmx-space-4);display:flex}.aqmx-explorer-tray-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.aqmx-explorer-tray-open{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border-radius:var(--aqmx-radius-m);color:var(--aqmx-surface);background:var(--aqmx-accent);font:inherit;cursor:pointer;border:0;flex:none;font-weight:600}@media (forced-colors:active){.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true],.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true],.aqmx-explorer-menu-item[aria-checked=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-explorer-menu-item[aria-checked=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true] *{color:inherit!important}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]:focus-visible{outline-color:highlighttext}.aqmx-explorer-tray-button,.aqmx-explorer-tray-open,.aqmx-explorer-tray-remove{border:var(--aqmx-space-1) solid ButtonText}}@media (prefers-reduced-motion:reduce){.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg,.aqmx-explorer-tree-progress-icon,.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:none}}.aqmx-document{contain:layout paint;--aqmd-toolbar-inset-block-start:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset));block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow:hidden}.aqmx-document-viewer:has([data-aqmd-scroll-bar]){--aqmd-toolbar-inset-inline-end:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset) + var(--aqmx-scroll-bar-overlay-size))}.aqmx-document [data-theme]{background-color:#0000!important}.aqmx-document .markdown-body :is(sup,sub) a{outline-offset:var(--aqmx-focus-ring-offset)!important}.aqmx-document *{scroll-margin:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-document :is([data-aqmd-scroll-container],[data-aqmx-document-scroller]):focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-document[aria-busy=true]>:not(.aqmx-progress){opacity:.618;transition:opacity var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-document-viewer{flex:1 1 0;min-block-size:0;min-inline-size:0}.aqmx-document>.aqmx-document-viewer:is(:first-child,.aqmx-progress+*){--aqmd-toolbar-reserve-before-measure:1}.aqmx-document-notice{margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;overflow-wrap:anywhere;flex:none}.aqmx-document-notices{flex-direction:column;flex:none;display:flex}.aqmx-document-notices:not(:empty){padding-block-end:var(--aqmx-space-6)}.aqmx-document-scroll-row{flex:1 1 0;min-block-size:0}.aqmx-document-failure{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;padding-inline-end:calc(var(--aqmx-space-7) + var(--aqmx-tap-circle-gutter,0px));overflow:auto}.aqmx-document-file{flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex}.aqmx-document-spreadsheet-body{min-block-size:0;flex:1 1 0;padding-inline-end:var(--aqmx-tap-circle-gutter,0px);overflow:auto}.aqmx-document-spreadsheet-column{flex-direction:column;min-block-size:100%;display:flex}.aqmx-document-spreadsheet{min-inline-size:0;padding:var(--aqmx-space-6) var(--aqmx-space-7) var(--aqmx-space-7);flex:auto;grid-template:minmax(min-content,1fr)/minmax(0,1fr);display:grid}.aqmx-document-spreadsheet-stage{padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:auto;place-items:center;display:grid}.aqmx-document-notice+.aqmx-document-spreadsheet-stage{margin-block-start:var(--aqmx-space-6)}.aqmx-document-spreadsheet-failure{padding:var(--aqmx-space-7);flex:auto}.aqmx-document-spreadsheet>[data-aqmd-spreadsheet]{margin-block:0}.aqmx-sheet-tabs{gap:var(--aqmx-space-3);margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;flex-wrap:wrap;flex:none;display:flex}.aqmx-sheet-tab{min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);max-inline-size:100%;padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);font:inherit;text-align:start;overflow-wrap:anywhere;cursor:pointer;background:0 0;align-items:center;display:inline-flex}.aqmx-sheet-tab:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-sheet-tab[aria-selected=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface);border-color:currentColor;font-weight:600}.aqmx-document-spreadsheet-sheet{flex-direction:column;flex:auto;min-inline-size:0;display:flex}@media (forced-colors:active){.aqmx-sheet-tab[aria-selected=true]{forced-color-adjust:none;color:highlighttext;background:highlight}}.aqmx-document-toolbar{align-items:center;gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex-wrap:wrap;flex:none;display:flex}.aqmx-document-file-icon{color:var(--aqmx-text-muted);flex:none;display:inline-flex}.aqmx-document-file-icon>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-document-title{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-inline-size:0;font-weight:600;overflow:hidden}.aqmx-document-level{min-inline-size:var(--aqmx-space-9);color:var(--aqmx-text-muted);font-variant-numeric:tabular-nums;text-align:center;flex:none}.aqmx-document-canvas{touch-action:pan-x pan-y;min-block-size:0;padding:var(--aqmx-space-7);background-color:var(--aqmx-surface-sunken);background-image:radial-gradient(var(--aqmx-border) var(--aqmx-space-1), transparent var(--aqmx-space-1));background-size:var(--aqmx-space-6) var(--aqmx-space-6);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);padding-inline-end:calc(var(--aqmx-space-7) + var(--aqmx-tap-circle-gutter,0px));display:grid;overflow:auto}.aqmx-document-image{margin:auto;display:block}.aqmx-document-image[data-aqmx-image-mode=fit]{object-fit:contain;max-block-size:100%;max-inline-size:100%}.aqmx-document-image[data-aqmx-image-mode=level]{max-block-size:none;max-inline-size:none}.aqmx-document-stage{min-block-size:0;padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;padding-inline-end:calc(var(--aqmx-space-7) + var(--aqmx-tap-circle-gutter,0px));display:grid;overflow:auto}.aqmx-document-file[data-aqmx-media-type=pdf] .aqmx-document-stage{place-items:stretch stretch;padding:0;padding-inline-end:var(--aqmx-tap-circle-gutter,0px)}.aqmx-document-video{border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface-raised);max-block-size:100%;max-inline-size:100%;box-shadow:var(--aqmx-shadow)}.aqmx-document-audio{inline-size:min(100%, var(--aqmx-column-measure))}.aqmx-document-frame{background:var(--aqmx-surface);border:0;block-size:100%;inline-size:100%}.aqmx-document-inert-link{color:var(--aqmx-text-muted);cursor:not-allowed;text-decoration-style:dotted}.aqmx-document[data-aqmx-document-flow=content]{contain:layout;block-size:auto;overflow:visible}.aqmx-document[data-aqmx-document-flow=content]>*,.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-file>*{flex:none}.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-frame{aspect-ratio:1/1.41421;block-size:auto}.aqmx-document-refresh-bar{flex-direction:column;flex:none;display:flex;container:aqmx-document-bar/inline-size}.aqmx-document-refresh-row{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);padding:var(--aqmx-space-4);display:flex}.aqmx-document-column>.aqmx-document-refresh-bar>.aqmx-document-refresh-row{padding-inline-end:calc(var(--aqmx-space-4) + var(--aqmx-page-bar-inset-inline-end,0px))}.aqmx-document-refresh-bar[data-aqmx-sheet-bar]{border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised)}.aqmx-document-refresh-bar[data-aqmx-sheet-bar=merged]>.aqmx-document-refresh-row{padding-inline-start:calc(var(--aqmx-space-4) * 2 + var(--aqmx-control))}.aqmx-document-refresh-failure{margin:0 var(--aqmx-space-3) var(--aqmx-space-2);padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere}.aqmx-document-refresh-bar>.aqmx-access-failure{margin:0 var(--aqmx-space-3) var(--aqmx-space-2)}.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}.aqmx-document-refresh-row>.aqmx-icon-button[aria-busy=true]{cursor:progress}@media (prefers-reduced-motion:reduce){.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:none}}.aqmx-edit{background:var(--aqmx-surface);flex:1 1 0;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);min-block-size:0;min-inline-size:0;display:grid;position:relative}.aqmx-edit[data-aqmx-edit-layout=content]{display:block}.aqmx-edit-editor,.aqmx-edit-preview{background:var(--aqmx-surface);min-block-size:0;min-inline-size:0}.aqmx-edit-editor{-webkit-user-select:text;user-select:text}.aqmx-edit-editor:has(.cm-content:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-edit-preview{flex-direction:column;display:flex;overflow:hidden}.aqmx-edit-preview [data-aqmd-scroll-container]{overflow-anchor:none}.aqmx-edit[data-aqmx-edit-split=beside]{grid-template-columns:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split=stacked]{grid-template-rows:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split]>.aqmx-edit-editor{grid-area:1/1}.aqmx-edit[data-aqmx-edit-split=beside]>.aqmx-edit-preview{grid-area:1/3}.aqmx-edit[data-aqmx-edit-split=stacked]>.aqmx-edit-preview{grid-area:3/1}.aqmx-edit[data-aqmx-edit-split]:before{content:"";background:var(--aqmx-border)}.aqmx-edit[data-aqmx-edit-split=beside]:before{inline-size:var(--aqmx-space-1);grid-area:1/2;justify-self:center}.aqmx-edit[data-aqmx-edit-split=stacked]:before{block-size:var(--aqmx-space-1);grid-area:2/1;align-self:center}.aqmx-edit-split{pointer-events:none;position:absolute;inset:0}.aqmx-edit-split-handle{pointer-events:auto}.aqmx-edit-split-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;block-size:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-edit:is([data-aqmx-edit-view=editor],[data-aqmx-edit-view=preview])>:is(.aqmx-edit-editor,.aqmx-edit-preview){grid-area:1/1}.aqmx-edit[data-aqmx-edit-view=editor]>.aqmx-edit-preview,.aqmx-edit[data-aqmx-edit-view=preview]>.aqmx-edit-editor{visibility:hidden}.aqmx-edit[data-aqmx-edit-layout=content]>.aqmx-edit-preview{display:block;overflow:visible}.aqmx-edit[data-aqmx-edit-layout=content]>[hidden]{display:none}.aqmx-edit-view{gap:var(--aqmx-space-2);flex:0 auto;min-inline-size:0;display:flex}@container aqmx-document-bar not (min-inline-size:calc(80ch + 24px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}@media (pointer:coarse){@container aqmx-document-bar not (min-inline-size:calc(80ch + 44px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}}.aqmx-edit-editor [data-aqmx-conflict-line=ours]{background-color:var(--aqmx-conflict-ours-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=theirs]{background-color:var(--aqmx-conflict-theirs-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=marker]{background-color:var(--aqmx-conflict-marker-tint)}.aqmx-edit-editor [data-aqmx-conflict-actions]{gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);background-color:var(--aqmx-conflict-marker-tint);font-family:system-ui,sans-serif;font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-wrap:wrap;display:flex}.aqmx-edit-editor [data-aqmx-conflict-choice]{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;font-weight:600}.aqmx-edit-editor [data-aqmx-conflict-choice]:hover{background:var(--aqmx-surface-sunken)}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] .cm-panels-top{inset-block-start:var(--aqmx-multi-panel-pinned-block-size)!important}.aqmx-edit-message{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;overflow:auto}.aqmx-edit-grant-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-edit-status{min-inline-size:0;padding-inline:var(--aqmx-space-3);color:var(--aqmx-text-muted);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;margin:0;overflow:hidden}.aqmx-edit-status[data-aqmx-save=conflicts]{color:var(--aqmx-warning-text)}.aqmx-edit-status[data-aqmx-save=failed]{color:var(--aqmx-danger-text)}.aqmx-document-refresh-bar>.aqmx-edit-grant{margin:0 var(--aqmx-space-3) var(--aqmx-space-2)}.aqmx-confirm{inset:var(--aqmx-dialog-top) auto auto var(--aqmx-dialog-left);margin:var(--aqmx-space-7);inline-size:min(34rem, calc(100vw - 2 * var(--aqmx-space-7)));border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-l);max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface);box-shadow:var(--aqmx-shadow);padding:0;position:fixed}.aqmx-confirm::backdrop{background:#0f172a61}.aqmx-confirm-panel{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-confirm-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-confirm-body{line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;margin:0}.aqmx-confirm-actions{justify-content:flex-end;gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-confirm-actions>.aqmx-callout-action{justify-self:auto}.aqmx-confirm-actions>[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-confirm-actions>[aria-disabled=true]{opacity:.618;cursor:not-allowed}.aqmx-history{inline-size:min(55rem, calc(100vw - 2 * var(--aqmx-space-7)))}.aqmx-history-panel{max-block-size:calc(100vh - 2 * var(--aqmx-space-7));overflow:auto}.aqmx-history-note{color:var(--aqmx-text-muted);margin:0}.aqmx-history-list{gap:var(--aqmx-space-2);max-block-size:34vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.aqmx-history-entry{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding:var(--aqmx-space-3) var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;flex-wrap:wrap;display:flex}.aqmx-history-entry:hover{background:var(--aqmx-surface-sunken)}.aqmx-history-entry[aria-pressed=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-history-mark{padding-inline:var(--aqmx-space-4);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-s)}.aqmx-history-text{max-block-size:34vh;padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);overflow:auto}.aqmx-history-text>pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.aqmx-multi-stage{--aqmx-multi-panel-body-floor:calc(3rem * var(--aqmx-line-height-prose));--aqdd-stage-padding-block:var(--aqmx-space-7);--aqdd-stage-padding-inline:var(--aqmx-space-6) calc(var(--aqmx-space-6) + var(--aqmx-multi-stage-bar-gutter));--aqdd-column-gap:var(--aqmx-space-6);--aqdd-panel-surface:var(--aqmx-surface);--aqdd-panel-border:var(--aqmx-border);--aqdd-panel-title-color:var(--aqmx-text);--aqdd-header-button-color:var(--aqmx-text-muted);--aqdd-header-button-hover-color:var(--aqmx-text);--aqdd-header-button-hover-surface:var(--aqmx-surface-sunken);--aqdd-custom-badge-color:var(--aqmx-warning-text);--aqdd-custom-badge-surface:var(--aqmx-warning-surface);--aqdd-restore-button-color:var(--aqmx-surface);--aqdd-restore-button-surface:var(--aqmx-accent);--aqdd-restore-button-hover-surface:var(--aqmx-info-text);--aqdd-drop-placeholder-color:var(--aqmx-accent);--aqdd-drop-placeholder-surface:var(--aqmx-surface);--aqdd-drop-placeholder-target-surface:var(--aqmx-accent-surface);--aqdd-maximize-top:var(--aqmx-maximize-top,0px);--aqdd-maximize-right:var(--aqmx-maximize-right,0px);--aqdd-maximize-bottom:var(--aqmx-maximize-bottom,0px);--aqdd-maximize-left:var(--aqmx-maximize-left,0px);background:var(--aqmx-surface-sunken);block-size:100%;min-block-size:0;min-inline-size:0;color:var(--aqmx-text);flex-direction:column;display:flex;position:relative}.aqmx-multi-stage:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;pointer-events:none;block-size:0;font-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-multi-layout{flex:auto;min-block-size:0}.aqmx-multi-skeleton{grid-template-columns:repeat(auto-fit, minmax(min(100%, var(--aqmx-column-measure)), 1fr));align-content:start;gap:var(--aqmx-space-7);padding:var(--aqmx-space-7);display:grid;overflow:hidden}.aqmx-multi-skeleton-column{border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface)}.aqmx-multi-column{min-inline-size:0}.aqmx-multi-panel{outline:var(--aqmx-space-1) solid var(--aqmx-border-strong);outline-offset:0;color:var(--aqmx-text)}.aqmx-multi-panel[data-maximized]{outline-color:var(--aqmx-focus)}.aqmx-multi-panel-frame{content-visibility:auto;contain-intrinsic-block-size:auto var(--aqmx-space-9);min-block-size:100%}.aqmx-multi-panel-frame:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-panel-frame[data-aqmx-maximized=false]{-webkit-user-select:none;user-select:none}.aqmx-multi-panel-frame>.aqmx-document-refresh-bar{z-index:1;background:var(--aqmx-surface);position:sticky;inset-block-start:0}.aqmx-multi-panel-frame{--aqmx-multi-panel-pinned-block-size:0px}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] *{scroll-margin-block-start:calc(var(--aqmx-multi-panel-pinned-block-size) + var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-multi-panel-frame:has(>.aqmx-document[data-aqmx-document-flow=fill]){flex-direction:column;block-size:100%;display:flex}.aqmx-multi-panel-frame>.aqmx-document[data-aqmx-document-flow=fill]{flex:1 1 0;block-size:auto}.aqmx-multi-panel-frame .aqmx-document-toolbar>.aqmx-icon-button{flex-shrink:1;min-inline-size:0}.aqmx-multi-toast{animation:aqmx-multi-toast-in var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-multi-toast:popover-open{max-inline-size:min(34rem, calc(var(--aqmx-multi-toast-room) - var(--aqmx-space-8)));margin:0;position:fixed;inset:auto;inset-block-start:calc(var(--aqmx-multi-toast-block-start) + var(--aqmx-space-6));inset-inline-end:calc(var(--aqmx-multi-toast-inline-end) + var(--aqmx-space-7));overflow:visible}@keyframes aqmx-multi-toast-in{0%{opacity:0;translate:0 calc(var(--aqmx-space-5) * -1)}}@media (prefers-reduced-motion:reduce){.aqmx-multi-toast{animation:none}}@media (forced-colors:active){.aqmx-multi-stage:focus-visible,.aqmx-multi-stage :focus-visible,.aqmx-multi-panel[data-maximized]{outline-color:highlight}}.aqmx-split-frame{flex-direction:column;flex:auto;min-block-size:0;min-inline-size:0;display:flex;position:relative;container:aqmx-split-frame/inline-size}.aqmx-rem-probe{visibility:hidden;pointer-events:none;block-size:0;inline-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0}.aqmx-split-row{flex:auto;min-block-size:0;min-inline-size:0;display:flex}.aqmx-split{--aqmx-split-band:var(--aqmx-split-handle-size);flex:auto;min-block-size:0}.aqmx-split-frame:not([data-aqmx-explorer-mode=split]) .aqmx-split{--aqmx-split-band:0px}.aqmx-split-rail{padding:var(--aqmx-space-4);border-inline-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex-direction:column;flex:none;display:flex}.aqmx-split-explorer,.aqmx-split-content{background:var(--aqmx-surface);min-block-size:0}.aqmx-split-explorer{background:var(--aqmx-surface-raised)}.aqmx-split-explorer .aqmx-explorer{margin-inline-end:calc(var(--aqmx-split-band) / 2)}.aqmx-split-content{padding-inline-start:calc(var(--aqmx-split-band) / 2)}.aqmx-split-handle{background:var(--aqmx-surface-raised);transition:background-color var(--aqmx-duration-2) var(--aqmx-ease)}.aqmx-split-handle:hover,.aqmx-split-handle:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-sheet-bar{padding:var(--aqmx-space-4);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex:none;align-items:center;display:flex}.aqmx-sheet-bar[data-aqmx-sheet-bar-merged=true]{z-index:1;background:0 0;border-block-end:0;position:absolute;inset-block-start:0;inset-inline-start:0}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-split-explorer{min-inline-size:13rem!important}@container aqmx-split-frame not (min-width:34.0344rem){.aqmx-split-frame[data-aqmx-measured=false] :is(.aqmx-split-explorer,.aqmx-split-handle,.aqmx-split-rail){display:none!important}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-split{--aqmx-split-band:0px}.aqmx-split-frame[data-aqmx-measured=false]:not(:has(.aqmx-tree-document>.aqmx-document-refresh-bar)):before{content:"";block-size:var(--aqmx-space-9);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex:none}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-tree-document>.aqmx-document-refresh-bar{border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised)}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-tree-document>.aqmx-document-refresh-bar>.aqmx-document-refresh-row{padding-inline-start:calc(var(--aqmx-space-4) * 2 + var(--aqmx-control))}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-tree-document>.aqmx-document-refresh-bar .aqmx-labelled-button>span{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}.aqmx-explorer-toggle,.aqmx-explorer-close{justify-content:center;align-items:center;gap:var(--aqmx-space-5);min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease);display:inline-flex}.aqmx-explorer-close{z-index:1;color:var(--aqmx-text-muted);background:var(--aqmx-surface);pointer-events:auto;border-color:#0000;padding:0;position:relative}.aqmx-explorer-toggle:hover,.aqmx-explorer-close:hover{background:var(--aqmx-surface-sunken)}.aqmx-explorer-toggle>svg,.aqmx-explorer-close>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-sheet{inline-size:min(calc(100vw - var(--aqmx-space-9)), 21rem);border:0;border-inline-end:var(--aqmx-space-1) solid var(--aqmx-border);block-size:100dvh;max-block-size:none;max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);margin:0;padding:0;position:fixed;inset-block:0;inset-inline:0 auto}.aqmx-sheet::backdrop{background:#0f172a61}.aqmx-sheet-panel{flex-direction:column;block-size:100%;display:flex;position:relative}.aqmx-explorer-chrome{z-index:1;padding:var(--aqmx-space-4);pointer-events:none;justify-content:flex-end;align-items:flex-start;display:flex;position:absolute;inset-block-start:0;inset-inline:0}.aqmx-split-explorer .aqmx-explorer-chrome{inset-inline-end:calc(var(--aqmx-split-band) / 2)}:is(.aqmx-sheet,.aqmx-split-explorer) .aqmx-explorer-header>:first-child{min-block-size:var(--aqmx-control);margin-inline-end:calc(var(--aqmx-control) + var(--aqmx-space-4))}:is(.aqmx-sheet,.aqmx-split-explorer) .aqmx-explorer-source{flex-basis:100%;min-inline-size:0}.aqmx-sheet-notice-slot>.aqmx-toast{--aqmx-sheet-notice-band:calc(var(--aqmx-control) + var(--aqmx-space-4) * 2);--aqmx-sheet-notice-line:calc(var(--aqmx-line-height-compact) * 1em);--aqmx-sheet-notice-inset:calc((var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-line)) / 2);z-index:0;max-inline-size:none;padding-block:var(--aqmx-sheet-notice-inset) 0;padding-inline:var(--aqmx-space-6) var(--aqmx-space-4);border:0;border-block-end:var(--aqmx-space-1) solid var(--aqmx-warning-border);line-height:var(--aqmx-line-height-compact);overflow-wrap:anywhere;box-shadow:none;pointer-events:auto;border-radius:0;position:absolute;inset-block:0 auto;inset-inline:0}.aqmx-sheet-notice-slot>.aqmx-toast:before{content:"";float:inline-end;inline-size:calc(var(--aqmx-control) + var(--aqmx-space-4));block-size:calc(var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1))}.aqmx-sheet-notice-slot>.aqmx-toast:after{content:"";block-size:calc(var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1));display:block}.aqmx-sheet-body{isolation:isolate;flex-direction:column;flex:auto;min-block-size:0;display:flex;position:relative;overflow:hidden}.aqmx-document-column{flex-direction:column;min-block-size:0;display:flex}.aqmx-document-column>.aqmx-document{flex:1 1 0;block-size:auto;min-block-size:0}.aqmx-single{flex:auto;position:relative}.aqmx-tree-document{block-size:100%;inline-size:100%}.aqmx-tree-document[data-aqmx-maximized=true]{top:var(--aqmx-maximize-top,0px);right:var(--aqmx-maximize-right,0px);bottom:var(--aqmx-maximize-bottom,0px);left:var(--aqmx-maximize-left,0px);z-index:50;background:var(--aqmx-surface);block-size:auto;inline-size:auto;position:fixed}.aqmx-split-fallback,.aqmx-stage-fallback{background:var(--aqmx-surface-sunken);flex:auto;min-block-size:0}@media (forced-colors:active){.aqmx-explorer-toggle[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-explorer-toggle:focus-visible,.aqmx-explorer-close:focus-visible{outline-color:highlight}.aqmx-split-handle:focus-visible{outline:var(--aqmx-focus-ring-width) solid Highlight!important;outline-offset:calc(-1 * var(--aqmx-focus-ring-width))!important}}@media (prefers-reduced-motion:reduce){.aqmx-split-handle,.aqmx-split-handle *{transition-duration:0s!important}}}@layer utilities;
|
|
3
|
+
@layer theme,base;@layer components{.aqmx-root{color-scheme:light;font-family:var(--aqmx-ui-font-family,inherit);--aqmx-space-1:.0625rem;--aqmx-space-2:.125rem;--aqmx-space-3:.1875rem;--aqmx-space-4:.3125rem;--aqmx-space-5:.5rem;--aqmx-space-6:.8125rem;--aqmx-space-7:1.3125rem;--aqmx-space-8:2.125rem;--aqmx-space-9:3.4375rem;--aqmx-control:2.75rem;--aqmx-focus-ring-width:var(--aqmx-space-2);--aqmx-focus-ring-offset:var(--aqmx-space-2);--aqmx-icon:1rem;--aqmx-radius-s:.3125rem;--aqmx-radius-m:.5rem;--aqmx-radius-l:.8125rem;--aqmx-duration-1:89ms;--aqmx-duration-2:.144s;--aqmx-duration-3:.233s;--aqmx-duration-4:.377s;--aqmx-delay-progress:.233s;--aqmx-ease:cubic-bezier(.2, 0, 0, 1);--aqmx-font-size-body:.8125rem;--aqmx-font-size-title:1rem;--aqmx-font-size-display:1.3125rem;--aqmx-line-height-compact:1.382;--aqmx-line-height-prose:1.618;--aqmx-column-measure:40ch;--aqmx-tap-circle-gutter-size:54px;--aqmx-scroll-bar-overlay-size:0px;--aqmx-scroll-bar-slot-size:8px;--aqmx-split-handle-size:44px;--aqmx-document-min-block-size:0px;--aqmx-surface:#fff;--aqmx-surface-raised:#f8fafc;--aqmx-surface-sunken:#f1f5f9;--aqmx-border:#cbd5e1;--aqmx-border-strong:#94a3b8;--aqmx-text:#0f172a;--aqmx-text-muted:#3d4a5c;--aqmx-accent:#1d3fa6;--aqmx-accent-surface:#dbeafe;--aqmx-tree-line:#64748b;--aqmx-tree-row-tint:#f1f1f2;--aqmx-tree-row-accent-tint:#dce6fc;--aqmx-focus:#2563eb;--aqmx-info-surface:#eff6ff;--aqmx-info-border:#93c5fd;--aqmx-info-text:#1e3a8a;--aqmx-warning-surface:#fffbeb;--aqmx-warning-border:#fcd34d;--aqmx-warning-text:#78350f;--aqmx-danger-surface:#fef2f2;--aqmx-danger-border:#fca5a5;--aqmx-danger-text:#7f1d1d;--aqmx-syntax-heading:#172554;--aqmx-syntax-link:#1e3a8a;--aqmx-syntax-url:#5b21b6;--aqmx-syntax-code:#7c2d12;--aqmx-syntax-quote:#334155;--aqmx-syntax-mark:#3d4a5c;--aqmx-editor-gutter:#334155;--aqmx-editor-selection:#2563eb36;--aqmx-editor-active-line:#0f172a0d;--aqmx-conflict-ours-tint:#16a34a21;--aqmx-conflict-theirs-tint:#2563eb21;--aqmx-conflict-marker-tint:#d9770636;--aqmx-shadow:0 .0625rem .1875rem #0f172a21, 0 .3125rem .8125rem #0f172a14}.aqmx-root[data-aqmx-theme=dark]{color-scheme:dark;--aqmx-surface:#0f172a;--aqmx-surface-raised:#1e293b;--aqmx-surface-sunken:#020617;--aqmx-border:#334155;--aqmx-border-strong:#64748b;--aqmx-text:#e2e8f0;--aqmx-text-muted:#aab6c8;--aqmx-accent:#bfdbfe;--aqmx-accent-surface:#1e3a8a;--aqmx-tree-line:#94a3b8;--aqmx-tree-row-tint:#1c2436;--aqmx-tree-row-accent-tint:#19387f;--aqmx-focus:#60a5fa;--aqmx-info-surface:#172554;--aqmx-info-border:#1d4ed8;--aqmx-info-text:#bfdbfe;--aqmx-warning-surface:#422006;--aqmx-warning-border:#a16207;--aqmx-warning-text:#fde68a;--aqmx-danger-surface:#450a0a;--aqmx-danger-border:#b91c1c;--aqmx-danger-text:#fecaca;--aqmx-syntax-heading:#bfdbfe;--aqmx-syntax-link:#c7d2fe;--aqmx-syntax-url:#ddd6fe;--aqmx-syntax-code:#fdba74;--aqmx-syntax-quote:#cbd5e1;--aqmx-syntax-mark:#cbd5e1;--aqmx-editor-gutter:#cbd5e1;--aqmx-editor-selection:#3b82f657;--aqmx-editor-active-line:#e2e8f00d;--aqmx-conflict-ours-tint:#22c55e36;--aqmx-conflict-theirs-tint:#3b82f636;--aqmx-conflict-marker-tint:#f59e0b36;--aqmx-shadow:0 .0625rem .1875rem #0000008c, 0 .3125rem .8125rem #00000057}@media (pointer:coarse){.aqmx-root{--aqmx-font-size-body:1rem;--aqmx-tap-circle-gutter-size:0px;--aqmx-scroll-bar-overlay-size:8px;--aqmx-scroll-bar-slot-size:0px}}@media (forced-colors:active){.aqmx-root.aqmx-root[data-aqmx-theme]{--aqmx-tree-line:CanvasText}}@media (prefers-reduced-motion:reduce){.aqmx-root{--aqmx-duration-1:0s;--aqmx-duration-2:0s;--aqmx-duration-3:0s;--aqmx-duration-4:0s}}.aqmx-root{block-size:100%;min-block-size:auto;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-direction:column;display:flex;position:relative}.aqmx-root *,.aqmx-root :before,.aqmx-root :after{box-sizing:border-box}.aqmx-icon-button{inline-size:var(--aqmx-control);block-size:var(--aqmx-control);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease), color var(--aqmx-duration-2) var(--aqmx-ease);background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.aqmx-icon-button:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-icon-button:disabled{opacity:.382;cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]{cursor:not-allowed}.aqmx-icon-button[aria-disabled=true]:hover{color:var(--aqmx-text-muted);background:0 0}.aqmx-icon-button>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-icon-button[aria-disabled=true]>svg{opacity:.382}.aqmx-icon-button:has(>input[type=radio]){position:relative}.aqmx-icon-button>input[type=radio]{opacity:0;cursor:inherit;margin:0;position:absolute;inset:0}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:var(--aqmx-focus-ring-offset)}.aqmx-callout{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-info-border);border-radius:var(--aqmx-radius-l);color:var(--aqmx-info-text);background:var(--aqmx-info-surface);line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-callout[data-aqmx-tone=warning]{border-color:var(--aqmx-warning-border);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface)}.aqmx-callout[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-access-failure{flex:none;min-inline-size:0}.aqmx-callout-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-callout-body{line-height:var(--aqmx-line-height-prose);margin:0}.aqmx-callout-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-callout-action{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-m);color:inherit;font:inherit;cursor:pointer;background:0 0;justify-self:start;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.aqmx-progress{z-index:2;block-size:var(--aqmx-space-3);pointer-events:none;position:absolute;inset-block-start:0;inset-inline:0;overflow:hidden}.aqmx-progress:before{content:"";background:var(--aqmx-accent);inline-size:38.1966%;animation:aqmx-progress calc(var(--aqmx-duration-4) * 3) var(--aqmx-ease) infinite;position:absolute;inset-block:0}@keyframes aqmx-progress{0%{inset-inline-start:-38.1966%}to{inset-inline-start:100%}}.aqmx-empty{place-content:center;justify-items:center;gap:var(--aqmx-space-6);block-size:100%;padding:var(--aqmx-space-8);color:var(--aqmx-text-muted);text-align:center;line-height:var(--aqmx-line-height-prose);display:grid}.aqmx-empty-title{color:var(--aqmx-text);font-size:var(--aqmx-font-size-title);margin:0;font-weight:600}.aqmx-skeleton{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-skeleton>span{block-size:var(--aqmx-space-6);border-radius:var(--aqmx-radius-s);background:var(--aqmx-surface-sunken);animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite;display:block}.aqmx-skeleton>span:nth-child(3n+1){inline-size:61.8034%}.aqmx-skeleton>span:nth-child(3n+2){inline-size:100%}.aqmx-skeleton>span:nth-child(3n){inline-size:85.4102%}@keyframes aqmx-pulse{50%{opacity:.618}}.aqmx-sr-only,.aqmx-document-refresh-bar[data-aqmx-sheet-bar] .aqmx-labelled-button>span{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.aqmx-native-scroll-bar{display:flex}@media (pointer:coarse){.aqmx-native-scroll-bar{inline-size:0;position:relative}.aqmx-native-scroll-bar>[data-aqvs-scrollbar]{pointer-events:none;position:absolute;inset-block-start:0;inset-inline-end:0}}.aqmx-toast{z-index:60;max-inline-size:min(34rem, calc(100% - var(--aqmx-space-8)));padding:var(--aqmx-space-5) var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-warning-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-warning-text);background:var(--aqmx-warning-surface);line-height:var(--aqmx-line-height-prose);box-shadow:var(--aqmx-shadow);position:absolute;inset-block-start:var(--aqmx-space-6);inset-inline-end:var(--aqmx-space-7)}@media (prefers-reduced-motion:reduce){.aqmx-progress:before,.aqmx-skeleton>span{animation:none}}@media (forced-colors:active){.aqmx-icon-button[aria-pressed=true],.aqmx-icon-button:has(>input:checked),.aqmx-icon-button[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-icon-button[aria-disabled=true]{color:graytext}.aqmx-root :focus-visible,.aqmx-icon-button:has(>input:focus-visible){outline-color:highlight}.aqmx-progress:before{forced-color-adjust:none;background:highlight}.aqmx-skeleton>span{forced-color-adjust:none;background:graytext}}.aqmx-explorer{gap:var(--aqmx-space-5);block-size:100%;min-block-size:0;min-inline-size:0;padding:var(--aqmx-space-4);color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow-y:auto}.aqmx-explorer-header{align-items:center;gap:var(--aqmx-space-4);min-block-size:var(--aqmx-control);flex-wrap:wrap;flex:none;display:flex}.aqmx-explorer-source{min-inline-size:min(100%,9rem);block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface-raised);font:inherit;text-overflow:ellipsis;cursor:pointer;flex:9rem}.aqmx-explorer-actions{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);flex-wrap:wrap;flex:0 auto;min-inline-size:0;margin-inline-start:auto;display:flex}.aqmx-explorer-body{gap:var(--aqmx-space-5);flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex;position:relative}.aqmx-labelled-button{gap:var(--aqmx-space-2);min-inline-size:var(--aqmx-control);inline-size:auto;padding-inline:var(--aqmx-space-3);white-space:nowrap;flex:0 auto;display:inline-flex}.aqmx-labelled-button>svg{flex:none}.aqmx-labelled-button>span{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}.aqmx-explorer-refresh-failure,.aqmx-explorer-expand-all-stop{padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid;border-radius:var(--aqmx-radius-m);line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;flex:none;margin:0}.aqmx-sheet-access-failures{gap:var(--aqmx-space-3);flex-direction:column;flex:none;max-block-size:38.1966%;min-inline-size:0;display:flex;overflow-y:auto}.aqmx-explorer-refresh-failure{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-explorer-expand-all-stop{border-color:var(--aqmx-info-border);color:var(--aqmx-info-text);background:var(--aqmx-info-surface)}.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}@keyframes aqmx-explorer-spin{to{rotate:1turn}}.aqmx-explorer-actions>.aqmx-icon-button[aria-busy=true]{cursor:progress}.aqmx-explorer-menu{z-index:50;gap:var(--aqmx-space-1);max-block-size:100%;inline-size:min(21rem,100%);padding:var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);display:grid;position:absolute;inset-block-start:0;inset-inline-end:0;overflow-y:auto}.aqmx-explorer-menu-item{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;transition:background-color var(--aqmx-duration-1) var(--aqmx-ease);background:0 0;border:0;display:flex}.aqmx-explorer-menu-item:hover,.aqmx-explorer-menu-item:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-explorer-menu-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);color:var(--aqmx-text-muted);flex:none}.aqmx-explorer-menu-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;overflow:hidden}.aqmx-explorer-menu-value{color:var(--aqmx-accent);font-variant-numeric:tabular-nums;flex:none;font-weight:600}.aqmx-explorer-notices{gap:var(--aqmx-space-5);flex:none;display:grid}.aqmx-explorer-tree-area{min-block-size:calc(var(--aqmx-control) * 3);flex-direction:column;flex:1 1 0;min-inline-size:0;display:flex;position:relative}.aqmx-explorer-tree{flex:1 1 0;min-block-size:0;position:relative}.aqmx-explorer-tree-view{block-size:100%}@media (pointer:coarse){.aqmx-explorer-tree [data-aqvs-scrollbar]:has(>[data-aqvs-scrollbar-arrow]){visibility:hidden}}.aqmx-explorer-tree-progress{z-index:1;align-items:center;gap:var(--aqmx-space-2) var(--aqmx-space-4);max-inline-size:calc(100% - var(--aqmx-space-5) * 3);padding:var(--aqmx-space-3) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;pointer-events:none;animation:aqmx-appear var(--aqmx-duration-2) ease-out var(--aqmx-delay-progress) both;flex-wrap:wrap;margin:0;display:flex;position:absolute;inset-block-end:var(--aqmx-space-9);inset-inline-start:var(--aqmx-space-5)}.aqmx-explorer-tree-progress-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite;flex:none}@keyframes aqmx-appear{0%{opacity:0}}.aqmx-explorer-tree-probe{inline-size:0;block-size:var(--aqmx-control);visibility:hidden;pointer-events:none;color:var(--aqmx-tree-line);forced-color-adjust:none;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-explorer-loading{gap:var(--aqmx-space-5);padding:var(--aqmx-space-6) var(--aqmx-space-5);color:var(--aqmx-text-muted);display:grid}.aqmx-explorer-loading-text{margin:0}.aqmx-explorer-loading>.aqmx-skeleton{padding:0}.aqmx-explorer-tree-message{padding:var(--aqmx-space-5);line-height:var(--aqmx-line-height-prose);overflow-y:auto}.aqmx-explorer-empty-icon{inline-size:var(--aqmx-space-8);block-size:var(--aqmx-space-8);color:var(--aqmx-border-strong)}.aqmx-explorer-empty-body{margin:0}.aqmx-explorer-tree [role=treeitem]{border-radius:var(--aqmx-radius-s);color:var(--aqmx-text);transition:background-color var(--aqmx-duration-1) var(--aqmx-ease)}.aqmx-explorer-tree [role=treeitem]:hover{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint)}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]{color:var(--aqmx-text);background:var(--aqmx-tree-row-tint);box-shadow:inset var(--aqmx-space-2) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{color:var(--aqmx-accent);background:var(--aqmx-tree-row-accent-tint)}.aqmx-explorer-tree [role=treeitem]:focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible{box-shadow:inset calc(var(--aqmx-space-2) + var(--aqmx-focus-ring-width)) 0 0 currentColor}.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]{font-weight:600}.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:aqmx-pulse calc(var(--aqmx-duration-4) * 4) ease-in-out infinite}.aqmx-explorer-tree [role=treeitem][data-aqmx-loop]{color:var(--aqmx-text-muted);font-style:italic}.aqmx-explorer-folder-failed{--aqmx-folder-name-floor:3em;align-items:center;min-inline-size:0;max-inline-size:100%;display:flex}.aqmx-explorer-folder-name{flex:10000 1 var(--aqmx-folder-name-floor);text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;max-inline-size:max-content;overflow:hidden}.aqmx-explorer-folder-error{min-inline-size:0;color:var(--aqmx-danger-text);text-indent:var(--aqmx-space-4);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;overflow:hidden}.aqmx-explorer-folder-retry{flex:1000000 0 calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);min-inline-size:calc(var(--aqmx-icon) + (var(--aqmx-space-3) + var(--aqmx-space-1)) * 2);max-inline-size:max-content;min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-3);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-s);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);font:inherit;line-height:var(--aqmx-line-height-compact);cursor:pointer;justify-content:center;align-items:center;margin-inline-start:var(--aqmx-space-4);display:inline-flex;overflow:hidden}.aqmx-explorer-folder-retry:focus-visible{outline-offset:calc(-1 * (var(--aqmx-focus-ring-width) + var(--aqmx-space-1)))}.aqmx-explorer-folder-retry-icon{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-explorer-folder-retry-text{min-inline-size:0;text-indent:var(--aqmx-space-3);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.aqmx-explorer-tray{gap:var(--aqmx-space-4);min-block-size:calc(var(--aqmx-control) + (var(--aqmx-space-5) + var(--aqmx-space-1)) * 2);padding:var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);flex-direction:column;flex:0 auto;display:flex;overflow-y:auto}.aqmx-explorer-tray-header{justify-content:space-between;align-items:center;gap:var(--aqmx-space-5);flex:none;display:flex}.aqmx-explorer-tray-title{margin:0;font-weight:600}.aqmx-explorer-tray-button{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-accent);font:inherit;cursor:pointer;background:0 0;border:0;flex:none;font-weight:600}.aqmx-explorer-tray-button:hover{background:var(--aqmx-surface-sunken)}.aqmx-explorer-tray-list{gap:var(--aqmx-space-1);min-block-size:var(--aqmx-control);max-block-size:calc(var(--aqmx-control) * 3);flex:0 auto;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.aqmx-explorer-tray-item{align-items:center;gap:var(--aqmx-space-4);display:flex}.aqmx-explorer-tray-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-inline-size:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow:hidden}.aqmx-explorer-tray-open{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border-radius:var(--aqmx-radius-m);color:var(--aqmx-surface);background:var(--aqmx-accent);font:inherit;cursor:pointer;border:0;flex:none;font-weight:600}@media (forced-colors:active){.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true],.aqmx-explorer-tree [role=treeitem][data-entry-selected=true],.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true],.aqmx-explorer-menu-item[aria-checked=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-explorer-menu-item[aria-checked=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true] *,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true] *{color:inherit!important}.aqmx-explorer-tree [role=treeitem][data-entry-item-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-entry-selected=true]:focus-visible,.aqmx-explorer-tree [role=treeitem][data-aqmx-open=true]:focus-visible{outline-color:highlighttext}.aqmx-explorer-tray-button,.aqmx-explorer-tray-open,.aqmx-explorer-tray-remove{border:var(--aqmx-space-1) solid ButtonText}}@media (prefers-reduced-motion:reduce){.aqmx-explorer-actions>.aqmx-labelled-button[data-aqmx-busy=true]>svg,.aqmx-explorer-tree-progress-icon,.aqmx-explorer-tree [role=treeitem][data-aqmx-children=loading]{animation:none}}.aqmx-document{contain:layout paint;--aqmd-toolbar-inset-block-start:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset));block-size:100%;min-block-size:auto;inline-size:100%;min-inline-size:0;color:var(--aqmx-text);background:var(--aqmx-surface);flex-direction:column;display:flex;position:relative;overflow:hidden}.aqmx-document-viewer:has([data-aqmd-scroll-bar]){--aqmd-toolbar-inset-inline-end:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset) + var(--aqmx-scroll-bar-overlay-size))}.aqmx-document [data-theme]{background-color:#0000!important}.aqmx-document .markdown-body :is(sup,sub) a{outline-offset:var(--aqmx-focus-ring-offset)!important}.aqmx-document *{scroll-margin:calc(var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-document :is([data-aqmd-scroll-container],[data-aqmx-document-scroller]):focus-visible{outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-document[aria-busy=true]>:not(.aqmx-progress){opacity:.618;transition:opacity var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-document-viewer{min-inline-size:0;min-block-size:var(--aqmx-document-min-block-size);contain:size;flex:1 1 0}.aqmx-document>.aqmx-document-viewer:is(:first-child,.aqmx-progress+*){--aqmd-toolbar-reserve-before-measure:1}.aqmx-document-notice{margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;flex:none}.aqmx-document-notices{flex-direction:column;flex:none;display:flex}.aqmx-document-notices:not(:empty){padding-block-end:var(--aqmx-space-6)}.aqmx-document-scroll-row{min-block-size:var(--aqmx-document-min-block-size);contain:size;flex:1 1 0}.aqmx-document-failure{min-block-size:0;padding:var(--aqmx-space-7);flex:1 1 0;padding-inline-end:calc(var(--aqmx-space-7) + var(--aqmx-tap-circle-gutter,0px));overflow:auto}.aqmx-document-file{flex-direction:column;flex:1 1 0;min-block-size:0;min-inline-size:0;display:flex}.aqmx-document-spreadsheet-body{min-block-size:0;flex:1 1 0;padding-inline-end:var(--aqmx-tap-circle-gutter,0px);overflow:auto}.aqmx-document-spreadsheet-column{flex-direction:column;min-block-size:100%;display:flex}.aqmx-document-spreadsheet{min-inline-size:0;padding:var(--aqmx-space-6) var(--aqmx-space-7) var(--aqmx-space-7);flex:auto;grid-template:minmax(min-content,1fr)/minmax(0,1fr);display:grid}.aqmx-document-spreadsheet-stage{padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:auto;place-items:center;display:grid}.aqmx-document-notice+.aqmx-document-spreadsheet-stage{margin-block-start:var(--aqmx-space-6)}.aqmx-document-spreadsheet-failure{padding:var(--aqmx-space-7);flex:auto}.aqmx-document-spreadsheet>[data-aqmd-spreadsheet]{margin-block:0}.aqmx-sheet-tabs{gap:var(--aqmx-space-3);margin:var(--aqmx-space-6) var(--aqmx-space-7) 0;flex-wrap:wrap;flex:none;display:flex}.aqmx-sheet-tab{min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);max-inline-size:100%;padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text-muted);font:inherit;text-align:start;overflow-wrap:anywhere;cursor:pointer;background:0 0;align-items:center;display:inline-flex}.aqmx-sheet-tab:hover{color:var(--aqmx-text);background:var(--aqmx-surface-sunken)}.aqmx-sheet-tab[aria-selected=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface);border-color:currentColor;font-weight:600}.aqmx-document-spreadsheet-sheet{flex-direction:column;flex:auto;min-inline-size:0;display:flex}@media (forced-colors:active){.aqmx-sheet-tab[aria-selected=true]{forced-color-adjust:none;color:highlighttext;background:highlight}}.aqmx-document-toolbar{align-items:center;gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex-wrap:wrap;flex:none;display:flex}.aqmx-document-file-icon{color:var(--aqmx-text-muted);flex:none;display:inline-flex}.aqmx-document-file-icon>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon)}.aqmx-document-title{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-inline-size:0;font-weight:600;overflow:hidden}.aqmx-document-level{min-inline-size:var(--aqmx-space-9);color:var(--aqmx-text-muted);font-variant-numeric:tabular-nums;text-align:center;flex:none}.aqmx-document-canvas{touch-action:pan-x pan-y;min-block-size:0;padding:var(--aqmx-space-7);background-color:var(--aqmx-surface-sunken);background-image:radial-gradient(var(--aqmx-border) var(--aqmx-space-1), transparent var(--aqmx-space-1));background-size:var(--aqmx-space-6) var(--aqmx-space-6);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);padding-inline-end:calc(var(--aqmx-space-7) + var(--aqmx-tap-circle-gutter,0px));display:grid;overflow:auto}.aqmx-document-image{margin:auto;display:block}.aqmx-document-image[data-aqmx-image-mode=fit]{object-fit:contain;max-block-size:100%;max-inline-size:100%}.aqmx-document-image[data-aqmx-image-mode=level]{max-block-size:none;max-inline-size:none}.aqmx-document-stage{min-block-size:0;padding:var(--aqmx-space-7);background:var(--aqmx-surface-sunken);flex:1 1 0;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;padding-inline-end:calc(var(--aqmx-space-7) + var(--aqmx-tap-circle-gutter,0px));display:grid;overflow:auto}.aqmx-document-file[data-aqmx-media-type=pdf] .aqmx-document-stage{place-items:stretch stretch;padding:0;padding-inline-end:var(--aqmx-tap-circle-gutter,0px)}.aqmx-document-video{border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface-raised);max-block-size:100%;max-inline-size:100%;box-shadow:var(--aqmx-shadow)}.aqmx-document-audio{inline-size:min(100%, var(--aqmx-column-measure))}.aqmx-document-frame{background:var(--aqmx-surface);border:0;block-size:100%;inline-size:100%}.aqmx-document-inert-link{color:var(--aqmx-text-muted);cursor:not-allowed;text-decoration-style:dotted}.aqmx-document[data-aqmx-document-flow=content]{contain:layout;block-size:auto;overflow:visible}.aqmx-document[data-aqmx-document-flow=content]>*,.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-file>*{flex:none}.aqmx-document[data-aqmx-document-flow=content] .aqmx-document-frame{aspect-ratio:1/1.41421;block-size:auto}.aqmx-document-refresh-bar{flex-direction:column;flex:none;display:flex;container:aqmx-document-bar/inline-size}.aqmx-document-refresh-row{justify-content:flex-end;align-items:center;gap:var(--aqmx-space-2);padding:var(--aqmx-space-4);display:flex}.aqmx-document-column>.aqmx-document-refresh-bar>.aqmx-document-refresh-row{padding-inline-end:calc(var(--aqmx-space-4) + var(--aqmx-page-bar-inset-inline-end,0px))}.aqmx-document-refresh-bar[data-aqmx-sheet-bar]{border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised)}.aqmx-document-refresh-bar[data-aqmx-sheet-bar=merged]>.aqmx-document-refresh-row{padding-inline-start:calc(var(--aqmx-space-4) * 2 + var(--aqmx-control))}.aqmx-document-refresh-failure{margin:0 var(--aqmx-space-3) var(--aqmx-space-2);padding:var(--aqmx-space-4) var(--aqmx-space-5);border:var(--aqmx-space-1) solid var(--aqmx-danger-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface);line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere}.aqmx-document-refresh-bar>.aqmx-access-failure{margin:0 var(--aqmx-space-3) var(--aqmx-space-2)}.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:aqmx-explorer-spin calc(var(--aqmx-duration-4) * 3) linear infinite}.aqmx-document-refresh-row>.aqmx-icon-button[aria-busy=true]{cursor:progress}@media (prefers-reduced-motion:reduce){.aqmx-document-refresh-row>.aqmx-icon-button[data-aqmx-busy=true]>svg{animation:none}}.aqmx-edit{background:var(--aqmx-surface);flex:1 1 0;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);min-block-size:auto;min-inline-size:0;display:grid;position:relative}.aqmx-edit[data-aqmx-edit-layout=content]{display:block}.aqmx-edit-editor,.aqmx-edit-preview{background:var(--aqmx-surface);min-inline-size:0}.aqmx-edit-editor{min-block-size:0}.aqmx-edit-preview{min-block-size:var(--aqmx-document-min-block-size);contain:size}.aqmx-edit-editor{-webkit-user-select:text;user-select:text}.aqmx-edit-editor:has(.cm-content:focus-visible){outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-edit-preview{flex-direction:column;display:flex;overflow:hidden}.aqmx-edit-preview [data-aqmd-scroll-container]{overflow-anchor:none}.aqmx-edit[data-aqmx-edit-split=beside]{grid-template-columns:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split=stacked]{grid-template-rows:minmax(0, calc(var(--aqmx-edit-share) - var(--aqmx-edit-gutter) / 2)) var(--aqmx-edit-gutter) minmax(0, 1fr)}.aqmx-edit[data-aqmx-edit-split]>.aqmx-edit-editor{grid-area:1/1}.aqmx-edit[data-aqmx-edit-split=beside]>.aqmx-edit-preview{grid-area:1/3}.aqmx-edit[data-aqmx-edit-split=stacked]>.aqmx-edit-preview{grid-area:3/1}.aqmx-edit[data-aqmx-edit-split]:before{content:"";background:var(--aqmx-border)}.aqmx-edit[data-aqmx-edit-split=beside]:before{inline-size:var(--aqmx-space-1);grid-area:1/2;justify-self:center}.aqmx-edit[data-aqmx-edit-split=stacked]:before{block-size:var(--aqmx-space-1);grid-area:2/1;align-self:center}.aqmx-edit-split{pointer-events:none;position:absolute;inset:0}.aqmx-edit-split-handle{pointer-events:auto}.aqmx-edit-split-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;block-size:0;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-edit:is([data-aqmx-edit-view=editor],[data-aqmx-edit-view=preview])>:is(.aqmx-edit-editor,.aqmx-edit-preview){grid-area:1/1}.aqmx-edit[data-aqmx-edit-view=editor]>.aqmx-edit-preview,.aqmx-edit[data-aqmx-edit-view=preview]>.aqmx-edit-editor{visibility:hidden}.aqmx-edit[data-aqmx-edit-layout=content]>.aqmx-edit-preview{display:block;overflow:visible}.aqmx-edit[data-aqmx-edit-layout=content]>[hidden]{display:none}.aqmx-edit-view{gap:var(--aqmx-space-2);flex:0 auto;min-inline-size:0;display:flex}@container aqmx-document-bar not (min-inline-size:calc(80ch + 44px)){.aqmx-edit-view>.aqmx-labelled-button>span{display:none}}.aqmx-edit-editor [data-aqmx-conflict-line=ours]{background-color:var(--aqmx-conflict-ours-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=theirs]{background-color:var(--aqmx-conflict-theirs-tint)}.aqmx-edit-editor [data-aqmx-conflict-line=marker]{background-color:var(--aqmx-conflict-marker-tint)}.aqmx-edit-editor [data-aqmx-conflict-actions]{gap:var(--aqmx-space-3);padding:var(--aqmx-space-3) var(--aqmx-space-6);background-color:var(--aqmx-conflict-marker-tint);font-family:system-ui,sans-serif;font-size:var(--aqmx-font-size-body);line-height:var(--aqmx-line-height-compact);flex-wrap:wrap;display:flex}.aqmx-edit-editor [data-aqmx-conflict-choice]{min-block-size:var(--aqmx-control);padding-inline:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;font-weight:600}.aqmx-edit-editor [data-aqmx-conflict-choice]:hover{background:var(--aqmx-surface-sunken)}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] .cm-panels-top{inset-block-start:var(--aqmx-multi-panel-pinned-block-size)!important}.aqmx-edit-message{min-block-size:0;padding:var(--aqmx-space-7);line-height:var(--aqmx-line-height-prose);flex:1 1 0;overflow:auto}.aqmx-edit-grant-actions{gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-edit-status{min-inline-size:0;padding-inline:var(--aqmx-space-3);color:var(--aqmx-text-muted);text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;margin:0;overflow:hidden}.aqmx-edit-status[data-aqmx-save=conflicts]{color:var(--aqmx-warning-text)}.aqmx-edit-status[data-aqmx-save=failed]{color:var(--aqmx-danger-text)}.aqmx-document-refresh-bar>.aqmx-edit-grant{margin:0 var(--aqmx-space-3) var(--aqmx-space-2)}.aqmx-confirm{inset:var(--aqmx-dialog-top) auto auto var(--aqmx-dialog-left);margin:var(--aqmx-space-7);inline-size:min(34rem, calc(100vw - 2 * var(--aqmx-space-7)));border:var(--aqmx-space-1) solid var(--aqmx-border-strong);border-radius:var(--aqmx-radius-l);max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface);box-shadow:var(--aqmx-shadow);padding:0;position:fixed}.aqmx-confirm::backdrop{background:#0f172a61}.aqmx-confirm-panel{gap:var(--aqmx-space-6);padding:var(--aqmx-space-7);display:grid}.aqmx-confirm-title{font-size:var(--aqmx-font-size-title);font-weight:600;line-height:var(--aqmx-line-height-compact);margin:0}.aqmx-confirm-body{line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;margin:0}.aqmx-confirm-actions{justify-content:flex-end;gap:var(--aqmx-space-5);flex-wrap:wrap;display:flex}.aqmx-confirm-actions>.aqmx-callout-action{justify-self:auto}.aqmx-confirm-actions>[data-aqmx-tone=danger]{border-color:var(--aqmx-danger-border);color:var(--aqmx-danger-text);background:var(--aqmx-danger-surface)}.aqmx-confirm-actions>[aria-disabled=true]{opacity:.618;cursor:not-allowed}.aqmx-history{inline-size:min(55rem, calc(100vw - 2 * var(--aqmx-space-7)))}.aqmx-history-panel{max-block-size:calc(100vh - 2 * var(--aqmx-space-7));overflow:auto}.aqmx-history-note{color:var(--aqmx-text-muted);margin:0}.aqmx-history-list{gap:var(--aqmx-space-2);max-block-size:34vh;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.aqmx-history-entry{align-items:center;gap:var(--aqmx-space-5);inline-size:100%;min-block-size:var(--aqmx-control);padding:var(--aqmx-space-3) var(--aqmx-space-5);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;flex-wrap:wrap;display:flex}.aqmx-history-entry:hover{background:var(--aqmx-surface-sunken)}.aqmx-history-entry[aria-pressed=true]{color:var(--aqmx-accent);background:var(--aqmx-accent-surface)}.aqmx-history-mark{padding-inline:var(--aqmx-space-4);border:var(--aqmx-space-1) solid currentColor;border-radius:var(--aqmx-radius-s)}.aqmx-history-text{max-block-size:34vh;padding:var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);background:var(--aqmx-surface-raised);overflow:auto}.aqmx-history-text>pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace}.aqmx-multi-stage{--aqmx-multi-panel-body-floor:calc(3rem * var(--aqmx-line-height-prose));--aqdd-stage-padding-block:var(--aqmx-space-7);--aqdd-stage-padding-inline:var(--aqmx-space-6) calc(var(--aqmx-space-6) + var(--aqmx-multi-stage-bar-gutter));--aqdd-column-gap:var(--aqmx-space-6);--aqdd-panel-surface:var(--aqmx-surface);--aqdd-panel-border:var(--aqmx-border);--aqdd-panel-title-color:var(--aqmx-text);--aqdd-header-button-color:var(--aqmx-text-muted);--aqdd-header-button-hover-color:var(--aqmx-text);--aqdd-header-button-hover-surface:var(--aqmx-surface-sunken);--aqdd-custom-badge-color:var(--aqmx-warning-text);--aqdd-custom-badge-surface:var(--aqmx-warning-surface);--aqdd-restore-button-color:var(--aqmx-surface);--aqdd-restore-button-surface:var(--aqmx-accent);--aqdd-restore-button-hover-surface:var(--aqmx-info-text);--aqdd-drop-placeholder-color:var(--aqmx-accent);--aqdd-drop-placeholder-surface:var(--aqmx-surface);--aqdd-drop-placeholder-target-surface:var(--aqmx-accent-surface);--aqdd-maximize-top:var(--aqmx-maximize-top,0px);--aqdd-maximize-right:var(--aqmx-maximize-right,0px);--aqdd-maximize-bottom:var(--aqmx-maximize-bottom,0px);--aqdd-maximize-left:var(--aqmx-maximize-left,0px);background:var(--aqmx-surface-sunken);block-size:100%;min-block-size:0;min-inline-size:0;color:var(--aqmx-text);flex-direction:column;display:flex;position:relative}.aqmx-multi-stage:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-probe{inline-size:var(--aqmx-column-measure);visibility:hidden;pointer-events:none;block-size:0;font-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0;overflow:hidden}.aqmx-multi-layout{flex:auto;min-block-size:0}.aqmx-multi-skeleton{grid-template-columns:repeat(auto-fit, minmax(min(100%, var(--aqmx-column-measure)), 1fr));align-content:start;gap:var(--aqmx-space-7);padding:var(--aqmx-space-7);display:grid;overflow:hidden}.aqmx-multi-skeleton-column{border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-l);background:var(--aqmx-surface)}.aqmx-multi-column{min-inline-size:0}.aqmx-multi-panel{outline:var(--aqmx-space-1) solid var(--aqmx-border-strong);outline-offset:0;color:var(--aqmx-text)}.aqmx-multi-panel[data-maximized]{outline-color:var(--aqmx-focus)}.aqmx-multi-panel-frame{content-visibility:auto;contain-intrinsic-block-size:auto var(--aqmx-space-9);min-block-size:100%}.aqmx-multi-panel-frame:focus-visible{outline:var(--aqmx-focus-ring-width) solid var(--aqmx-focus);outline-offset:calc(-1 * var(--aqmx-focus-ring-width))}.aqmx-multi-panel-frame[data-aqmx-maximized=false]{-webkit-user-select:none;user-select:none}.aqmx-multi-panel-frame>.aqmx-document-refresh-bar{z-index:1;background:var(--aqmx-surface);position:sticky;inset-block-start:0}.aqmx-multi-panel-frame{--aqmx-multi-panel-pinned-block-size:0px}.aqmx-multi-panel-frame .aqmx-document[data-aqmx-document-flow=content] *{scroll-margin-block-start:calc(var(--aqmx-multi-panel-pinned-block-size) + var(--aqmx-focus-ring-width) + var(--aqmx-focus-ring-offset))}.aqmx-multi-panel-frame:has(>.aqmx-document[data-aqmx-document-flow=fill]){flex-direction:column;block-size:100%;display:flex}.aqmx-multi-panel-frame>.aqmx-document[data-aqmx-document-flow=fill]{flex:1 1 0;block-size:auto}.aqmx-multi-panel-frame .aqmx-document-toolbar>.aqmx-icon-button{flex-shrink:1;min-inline-size:0}.aqmx-multi-toast{animation:aqmx-multi-toast-in var(--aqmx-duration-3) var(--aqmx-ease)}.aqmx-multi-toast:popover-open{max-inline-size:min(34rem, calc(var(--aqmx-multi-toast-room) - var(--aqmx-space-8)));margin:0;position:fixed;inset:auto;inset-block-start:calc(var(--aqmx-multi-toast-block-start) + var(--aqmx-space-6));inset-inline-end:calc(var(--aqmx-multi-toast-inline-end) + var(--aqmx-space-7));overflow:visible}@keyframes aqmx-multi-toast-in{0%{opacity:0;translate:0 calc(var(--aqmx-space-5) * -1)}}@media (prefers-reduced-motion:reduce){.aqmx-multi-toast{animation:none}}@media (forced-colors:active){.aqmx-multi-stage:focus-visible,.aqmx-multi-stage :focus-visible,.aqmx-multi-panel[data-maximized]{outline-color:highlight}}.aqmx-split-frame{flex-direction:column;flex:auto;min-block-size:auto;min-inline-size:0;display:flex;position:relative;container:aqmx-split-frame/inline-size}.aqmx-rem-probe{visibility:hidden;pointer-events:none;block-size:0;inline-size:1rem;position:absolute;inset-block-start:0;inset-inline-start:0}.aqmx-split-row{flex:auto;min-block-size:auto;min-inline-size:0;display:flex}.aqmx-split{--aqmx-split-band:var(--aqmx-split-handle-size);flex:auto;min-block-size:auto}.aqmx-split-frame:not([data-aqmx-explorer-mode=split]) .aqmx-split{--aqmx-split-band:0px}.aqmx-split-rail{padding:var(--aqmx-space-4);border-inline-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex-direction:column;flex:none;display:flex}.aqmx-split-explorer{background:var(--aqmx-surface);min-block-size:0}.aqmx-split-content{background:var(--aqmx-surface);min-block-size:auto}.aqmx-split-explorer{background:var(--aqmx-surface-raised)}.aqmx-split-explorer .aqmx-explorer{margin-inline-end:calc(var(--aqmx-split-band) / 2)}.aqmx-split-content{padding-inline-start:calc(var(--aqmx-split-band) / 2)}.aqmx-split-handle{background:var(--aqmx-surface-raised);transition:background-color var(--aqmx-duration-2) var(--aqmx-ease)}.aqmx-split-handle:hover,.aqmx-split-handle:focus-visible{background:var(--aqmx-surface-sunken)}.aqmx-sheet-bar{padding:var(--aqmx-space-4);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex:none;align-items:center;display:flex}.aqmx-sheet-bar[data-aqmx-sheet-bar-merged=true]{z-index:1;background:0 0;border-block-end:0;position:absolute;inset-block-start:0;inset-inline-start:0}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-split-explorer{min-inline-size:13rem!important}@container aqmx-split-frame not (min-width:34.0344rem){.aqmx-split-frame[data-aqmx-measured=false] :is(.aqmx-split-explorer,.aqmx-split-handle,.aqmx-split-rail){display:none!important}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-split{--aqmx-split-band:0px}.aqmx-split-frame[data-aqmx-measured=false]:not(:has(.aqmx-tree-document>.aqmx-document-refresh-bar)):before{content:"";block-size:var(--aqmx-space-9);border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised);flex:none}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-tree-document>.aqmx-document-refresh-bar{border-block-end:var(--aqmx-space-1) solid var(--aqmx-border);background:var(--aqmx-surface-raised)}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-tree-document>.aqmx-document-refresh-bar>.aqmx-document-refresh-row{padding-inline-start:calc(var(--aqmx-space-4) * 2 + var(--aqmx-control))}.aqmx-split-frame[data-aqmx-measured=false] .aqmx-tree-document>.aqmx-document-refresh-bar .aqmx-labelled-button>span{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}.aqmx-explorer-toggle,.aqmx-explorer-close{justify-content:center;align-items:center;gap:var(--aqmx-space-5);min-inline-size:var(--aqmx-control);min-block-size:var(--aqmx-control);padding:0 var(--aqmx-space-6);border:var(--aqmx-space-1) solid var(--aqmx-border);border-radius:var(--aqmx-radius-m);color:var(--aqmx-text);background:var(--aqmx-surface);font:inherit;cursor:pointer;transition:background-color var(--aqmx-duration-2) var(--aqmx-ease);display:inline-flex}.aqmx-explorer-close{z-index:1;color:var(--aqmx-text-muted);background:var(--aqmx-surface);pointer-events:auto;border-color:#0000;padding:0;position:relative}.aqmx-explorer-toggle:hover,.aqmx-explorer-close:hover{background:var(--aqmx-surface-sunken)}.aqmx-explorer-toggle>svg,.aqmx-explorer-close>svg{inline-size:var(--aqmx-icon);block-size:var(--aqmx-icon);flex:none}.aqmx-sheet{inline-size:min(calc(100vw - var(--aqmx-space-9)), 21rem);border:0;border-inline-end:var(--aqmx-space-1) solid var(--aqmx-border);block-size:100dvh;max-block-size:none;max-inline-size:none;color:var(--aqmx-text);background:var(--aqmx-surface-raised);box-shadow:var(--aqmx-shadow);margin:0;padding:0;position:fixed;inset-block:0;inset-inline:0 auto}.aqmx-sheet::backdrop{background:#0f172a61}.aqmx-sheet-panel{flex-direction:column;block-size:100%;display:flex;position:relative}.aqmx-explorer-chrome{z-index:1;padding:var(--aqmx-space-4);pointer-events:none;justify-content:flex-end;align-items:flex-start;display:flex;position:absolute;inset-block-start:0;inset-inline:0}.aqmx-split-explorer .aqmx-explorer-chrome{inset-inline-end:calc(var(--aqmx-split-band) / 2)}:is(.aqmx-sheet,.aqmx-split-explorer) .aqmx-explorer-header>:first-child{min-block-size:var(--aqmx-control);margin-inline-end:calc(var(--aqmx-control) + var(--aqmx-space-4))}:is(.aqmx-sheet,.aqmx-split-explorer) .aqmx-explorer-source{flex-basis:100%;min-inline-size:0}.aqmx-sheet-notice-slot>.aqmx-toast{--aqmx-sheet-notice-band:calc(var(--aqmx-control) + var(--aqmx-space-4) * 2);--aqmx-sheet-notice-line:calc(var(--aqmx-line-height-prose) * 1em);--aqmx-sheet-notice-inset:calc((var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-line)) / 2);z-index:0;max-inline-size:none;padding-block:var(--aqmx-sheet-notice-inset) 0;padding-inline:var(--aqmx-space-6) var(--aqmx-space-4);border:0;border-block-end:var(--aqmx-space-1) solid var(--aqmx-warning-border);line-height:var(--aqmx-line-height-prose);overflow-wrap:anywhere;box-shadow:none;pointer-events:auto;border-radius:0;position:absolute;inset-block:0 auto;inset-inline:0}.aqmx-sheet-notice-slot>.aqmx-toast:before{content:"";float:inline-end;inline-size:calc(var(--aqmx-control) + var(--aqmx-space-4));block-size:calc(var(--aqmx-sheet-notice-band) - var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1))}.aqmx-sheet-notice-slot>.aqmx-toast:after{content:"";block-size:calc(var(--aqmx-sheet-notice-inset) - var(--aqmx-space-1));display:block}.aqmx-sheet-body{isolation:isolate;flex-direction:column;flex:auto;min-block-size:0;display:flex;position:relative;overflow:hidden}.aqmx-document-column{flex-direction:column;min-block-size:auto;display:flex}.aqmx-document-column>.aqmx-document{flex:1 1 0;block-size:auto;min-block-size:auto}.aqmx-single{flex:auto;position:relative}.aqmx-tree-document{block-size:100%;inline-size:100%}.aqmx-tree-document[data-aqmx-maximized=true]{top:var(--aqmx-maximize-top,0px);right:var(--aqmx-maximize-right,0px);bottom:var(--aqmx-maximize-bottom,0px);left:var(--aqmx-maximize-left,0px);z-index:50;background:var(--aqmx-surface);block-size:auto;inline-size:auto;position:fixed}.aqmx-split-fallback,.aqmx-stage-fallback{background:var(--aqmx-surface-sunken);flex:auto;min-block-size:0}@media (forced-colors:active){.aqmx-explorer-toggle[aria-expanded=true]{forced-color-adjust:none;color:highlighttext;background:highlight}.aqmx-explorer-toggle:focus-visible,.aqmx-explorer-close:focus-visible{outline-color:highlight}.aqmx-split-handle:focus-visible{outline:var(--aqmx-focus-ring-width) solid Highlight!important;outline-offset:calc(-1 * var(--aqmx-focus-ring-width))!important}}@media (prefers-reduced-motion:reduce){.aqmx-split-handle,.aqmx-split-handle *{transition-duration:0s!important}}}@layer utilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@aiquants/virtualscroll"),e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@aiquants/virtualscroll"),e=require("./index-AfEbgYQI.cjs"),C=Object.freeze({renderVisual:r.tapScrollCircleSampleVisual,...e.TAP_SCROLL_CIRCLE_SPEED_RANGE,size:e.TAP_SCROLL_CIRCLE_SIZE,offsetX:e.TAP_SCROLL_CIRCLE_OFFSET_X}),L=Object.freeze({...C,visibility:"scrolling"}),l=_=>_?L:C,t=Object.freeze({enabled:!1});exports.NO_TAP_SCROLL_CIRCLE=t;exports.TAP_SCROLL_CIRCLE=C;exports.TOUCH_TAP_SCROLL_CIRCLE=L;exports.tapScrollCircleFor=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react"),m=require("./location-
|
|
1
|
+
"use strict";const e=require("react"),m=require("./location-Csj3eAm_.cjs"),f=u=>({minimumExceededSummary:u.panelGroupMinimumExceededSummary,minimumExceededDetail:u.panelGroupMinimumExceededDetail,maximumInsufficientSummary:u.panelGroupMaximumInsufficientSummary,maximumInsufficientDetail:u.panelGroupMaximumInsufficientDetail}),d=u=>{const a=e.useRef(u);e.useLayoutEffect(()=>{a.current=u},[u]);const c=e.useRef(null),r=e.useRef(null),n=e.useRef(!1),t=e.useCallback(()=>{r.current!==null&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,c.current!==null&&a.current(c.current)},m.SPLIT_PERSIST_DELAY_MS)},[]);e.useEffect(()=>()=>{r.current!==null&&clearTimeout(r.current)},[]);const s=e.useCallback((i,o)=>{c.current=i,o.source==="keyboard"?t():o.source==="pointer"&&(n.current=!0)},[t]),l=e.useCallback(i=>{if(i){n.current=!1;return}n.current&&(n.current=!1,t())},[t]);return e.useMemo(()=>({layoutChanged:s,draggingChanged:l}),[s,l])};exports.toPanelGroupLabels=f;exports.useSplitPersistence=d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as t, useLayoutEffect as f, useCallback as m, useEffect as d, useMemo as p } from "react";
|
|
2
|
-
import { S } from "./location-
|
|
2
|
+
import { S } from "./location-DFfbnUZ9.js";
|
|
3
3
|
const E = (e) => ({
|
|
4
4
|
minimumExceededSummary: e.panelGroupMinimumExceededSummary,
|
|
5
5
|
minimumExceededDetail: e.panelGroupMinimumExceededDetail,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiquants/markdown-explorer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "Markdown document explorer for React Router 8 (framework mode): a source tree with a single-document view and a multi-panel reading view, storage-agnostic server ports, golden-ratio layout and an en / ja UI.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
"parse5": "^8.0.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"@aiquants/auth-core": "^0.
|
|
105
|
+
"@aiquants/auth-core": "^0.9.0",
|
|
106
106
|
"@aiquants/directory-tree": "^6.1.1",
|
|
107
107
|
"@aiquants/drag-drop-panels": "^0.14.0",
|
|
108
|
-
"@aiquants/markdown": "^13.
|
|
108
|
+
"@aiquants/markdown": "^13.4.0",
|
|
109
109
|
"@aiquants/resize-panels": "^2.3.0",
|
|
110
110
|
"@aiquants/spreadsheet": "^0.20.0",
|
|
111
111
|
"@aiquants/virtualscroll": "^3.24.0",
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
"react-router": "^8.0.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@aiquants/auth-core": "0.
|
|
117
|
+
"@aiquants/auth-core": "0.9.0",
|
|
118
118
|
"@aiquants/directory-tree": "6.1.3",
|
|
119
119
|
"@aiquants/drag-drop-panels": "0.14.1",
|
|
120
|
-
"@aiquants/markdown": "13.
|
|
120
|
+
"@aiquants/markdown": "13.4.0",
|
|
121
121
|
"@aiquants/resize-panels": "2.3.0",
|
|
122
122
|
"@aiquants/spreadsheet": "0.20.1",
|
|
123
123
|
"@aiquants/virtualscroll": "3.27.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const L=require("@aiquants/markdown/embeds"),T=require("@aiquants/markdown/viewer-settings"),g=require("./ownUrls-BTPGNhBt.cjs"),i=require("./describeValue-Ccvhbt36.cjs"),Je=Object.freeze(["UTF-8","IBM866","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-8-I","ISO-8859-10","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","KOI8-R","KOI8-U","macintosh","windows-874","windows-1250","windows-1251","windows-1252","windows-1253","windows-1254","windows-1255","windows-1256","windows-1257","windows-1258","x-mac-cyrillic","GBK","gb18030","Big5","EUC-JP","ISO-2022-JP","Shift_JIS","EUC-KR","replacement","UTF-16BE","UTF-16LE","x-user-defined"]),Ze=new Map(Je.map(e=>[e.toLowerCase(),e])),$="UTF-8",ae=Object.freeze([Object.freeze({bytes:Object.freeze([239,187,191]),encoding:$}),Object.freeze({bytes:Object.freeze([255,254]),encoding:"UTF-16LE"}),Object.freeze({bytes:Object.freeze([254,255]),encoding:"UTF-16BE"})]),Qe=new Map([[$,"is read before any legacy encoding"],["UTF-16LE","is read only by its byte order mark"],["UTF-16BE","is read only by its byte order mark"],["ISO-2022-JP","writes only bytes below 0x80, which UTF-8 always reads first, so it would never be used"],["x-user-defined","is no text encoding (it maps bytes to private-use characters)"]]),Q=e=>{let r;try{r=new TextDecoder(e).encoding}catch(o){throw o instanceof RangeError?new RangeError(`[markdown-explorer] legacyTextEncoding ${i.describeValue(e)} is no encoding label TextDecoder knows (for example "Shift_JIS" or "windows-1252")`):o}const t=er(r),n=Qe.get(t);if(n!==void 0)throw new RangeError(`[markdown-explorer] legacyTextEncoding ${i.describeValue(e)} names ${t}, which cannot be the legacy encoding: it ${n}`);return t},er=e=>{const r=Ze.get(e);if(r===void 0)throw new RangeError(`[markdown-explorer] TextDecoder answered ${i.describeValue(e)}, which is no encoding of the WHATWG Encoding Standard`);return r},V=(e,r,t)=>{const n=t===null?null:Q(t),o=ae.find(({bytes:a})=>a.every((d,l)=>e[l]===d));if(o!==void 0)return{body:e.subarray(o.bytes.length),encodings:[o.encoding]};const s=r||e.length===0?void 0:ae.find(({bytes:a})=>e.length<a.length&&e.every((d,l)=>a[l]===d));return s!==void 0?{body:e.subarray(e.length),encodings:[s.encoding]}:{body:e,encodings:n===null?[$]:[$,n]}},rr=(e,r,t)=>V(e,r,t).encodings,tr=(e,r,t)=>{try{return new TextDecoder(e,{fatal:!0,ignoreBOM:!0}).decode(r,{stream:!t})}catch(n){if(n instanceof TypeError)return null;throw n}},nr=(e,r,t)=>{const n=ee(V(e,r,t),r);return n===null?null:n.text},ee=({body:e,encodings:r},t)=>{for(const n of r){const o=tr(n,e,t);if(o!==null)return{encoding:n,text:o}}return null},or=(e,r,t)=>{const n=V(e,r,t),o=ee(n,r);return o===null?n.encodings[0]:o.encoding},ir=(e,r,t)=>{const n=V(e,r,t),o=ee(n,r);return o!==null?o.text:new TextDecoder(n.encodings[0],{ignoreBOM:!0}).decode(n.body,{stream:!r})},N=new Intl.Collator("en",{numeric:!0,sensitivity:"variant"}),sr=/^readme(?:\.|$)/iu,de=/^readme(?:\.[^.]*)?$/iu,le=Object.freeze(["md","markdown","mdx","txt",""]),ar=e=>sr.test(e),X=e=>e.type==="file"&&ar(e.name),ce=e=>{const r=e.lastIndexOf("."),t=le.indexOf(r<0?"":e.slice(r+1).toLowerCase());return t<0?le.length:t},dr=(e,r)=>{const t=+!de.test(e.name)-+!de.test(r.name);if(t!==0)return t;const n=ce(e.name)-ce(r.name);if(n!==0)return n;const o=N.compare(e.name,r.name);return o!==0?o:N.compare(e.path,r.path)},lr=e=>{let r=null;for(const t of e)X(t)&&(r===null||dr(t,r)<0)&&(r=t);return r===null?null:r.path},W=Object.freeze({sortMode:"native",folderPlacement:"mixed",readmePlacement:"mixed",selectionMode:"single",doubleClickAction:"recursive",expandIconSize:8,alwaysExpanded:!1,revealDocument:!1,showFolderReadme:!0,removeRootIndent:!1,lines:!0,expandIcons:!0,directoryIcons:!0,fileIcons:!0}),he=[!0,!1],pe=(e,r)=>r?e.settingOn:e.settingOff,y=(e,r)=>({key:e,labelKey:r,values:he,formatValue:pe,requiresTreeView:!1}),cr=Object.freeze({native:e=>e.sortNative,asc:e=>e.sortAscending,desc:e=>e.sortDescending,oldest:e=>e.sortOldest,newest:e=>e.sortNewest}),R=Object.freeze([{key:"sortMode",labelKey:"settingSortMode",values:["native","asc","desc","oldest","newest"],formatValue:(e,r)=>cr[r](e),requiresTreeView:!1},{key:"folderPlacement",labelKey:"settingFolderPlacement",values:["mixed","first","last"],formatValue:(e,r)=>r==="mixed"?e.folderPlacementMixed:r==="first"?e.folderPlacementFirst:e.folderPlacementLast,requiresTreeView:!1},{key:"readmePlacement",labelKey:"settingReadmePlacement",values:["mixed","first","last"],formatValue:(e,r)=>r==="mixed"?e.readmePlacementMixed:r==="first"?e.readmePlacementFirst:e.readmePlacementLast,requiresTreeView:!1},{key:"selectionMode",labelKey:"settingSelectionMode",values:["single","multiple","none"],formatValue:(e,r)=>r==="single"?e.selectionSingle:r==="multiple"?e.selectionMultiple:e.selectionNone,requiresTreeView:!0},{key:"doubleClickAction",labelKey:"settingDoubleClick",values:["recursive","toggle"],formatValue:(e,r)=>r==="recursive"?e.doubleClickRecursive:e.doubleClickToggle,requiresTreeView:!1},{key:"expandIconSize",labelKey:"settingExpandIconSize",values:[8,13,5],formatValue:(e,r)=>e.expandIconSizeValue(r),requiresTreeView:!1},y("alwaysExpanded","settingAlwaysExpanded"),y("revealDocument","settingRevealDocument"),{key:"showFolderReadme",labelKey:"settingShowFolderReadme",values:he,formatValue:pe,requiresTreeView:!0},y("removeRootIndent","settingRemoveRootIndent"),y("lines","settingTreeLines"),y("expandIcons","settingExpandIcons"),y("directoryIcons","settingDirectoryIcons"),y("fileIcons","settingFileIcons")]),ur=e=>e==="tree"?R:R.filter(r=>!r.requiresTreeView),be=e=>{const r=R.find(t=>t.key===e);if(r===void 0)throw new RangeError(`[markdown-explorer] no tree setting descriptor for ${e}`);return r},mr=(e,r)=>{const t=be(r).values,n=t[(t.indexOf(e[r])+1)%t.length];return{...e,[r]:n}},fr=(e,r,t)=>be(t).formatValue(e,r[t]),xe=2,H=Object.freeze({}),re=(e,r)=>Object.freeze(Object.fromEntries(R.filter(t=>r(t,e[t.key])).map(t=>[t.key,e[t.key]]))),ue="directoriesFirst",wr=e=>{if(!Object.hasOwn(e,ue))return e;const{[ue]:r,...t}=e;return Object.hasOwn(t,"folderPlacement")||typeof r!="boolean"?t:{...t,folderPlacement:r?"first":"mixed"}},gr=e=>{if(e===null||typeof e!="object"||Array.isArray(e))return H;const r=e;return r.version!==xe||r.settings===null||typeof r.settings!="object"||Array.isArray(r.settings)?H:re(wr(r.settings),(t,n)=>t.values.includes(n))},Er=(e,r)=>{const t=re(r,(n,o)=>o!==void 0&&o!==e[n.key]);return Object.keys(t).length===0?e:Object.freeze({...e,...t})},hr=(e,r,t,n)=>re({...e,[r]:t},(o,s)=>s!==void 0&&!(o.key===r&&s===n[r])),pr=e=>JSON.stringify({version:xe,settings:e}),br=(e,r,t)=>e===void 0||r===void 0?e===r?0:e===void 0?1:-1:t*(e-r),xr=e=>{const{sortMode:r,folderPlacement:t,readmePlacement:n}=e;if(r==="native"&&t==="mixed"&&n==="mixed")return;const o=(s,a)=>{const d=N.compare(s.name,a.name);return d!==0?d:N.compare(s.path,a.path)};return(s,a)=>{if(t!=="mixed"&&s.type!==a.type)return s.type==="directory"==(t==="first")?-1:1;if(n!=="mixed"){const l=X(s);if(l!==X(a))return l===(n==="first")?-1:1}if(r==="native")return 0;if(r==="asc")return o(s,a);if(r==="desc")return-o(s,a);const d=br(s.modifiedAt,a.modifiedAt,r==="oldest"?1:-1);return d!==0?d:o(s,a)}},b=(1+Math.sqrt(5))/2,Sr=100/b**3,Or=100/b**4,te=100/b**2,Se=13,Tr=16,yr=Object.freeze({gripThickness:5,gripLength:34,barThickness:2,barLength:21}),K=Object.freeze([1,2,3,5,8,13,21,34,55]),_r=Object.freeze([89,144,233,377]),ne=44,Ir=ne,Rr=24;2*K[3]+ne+K[0];const kr=1/b,Pr=1/b**3,Ar="40ch",Lr=e=>{if(!Number.isFinite(e)||e<=0)throw new RangeError(`[markdown-explorer] rootFontPixels must be a finite number > 0; got ${i.describeValue(e)}`)},Oe=e=>(Lr(e),Se*e),Nr=e=>Oe(e)*b**2,Dr=233,vr=50,Te=100/b**3,$r=100-Te,Cr=_r[0],S=(e,r)=>{if(!Number.isFinite(r)||r<0)throw new RangeError(`[markdown-explorer] ${e} must be a finite number >= 0; got ${i.describeValue(r)}`)},Mr=({trackInlineSize:e,gap:r,minColumnInlineSize:t,logicalColumns:n})=>{if(S("trackInlineSize",e),S("gap",r),!Number.isFinite(t)||t<=0)throw new RangeError(`[markdown-explorer] minColumnInlineSize must be a finite number > 0; got ${i.describeValue(t)}`);if(!Number.isInteger(n)||n<1)throw new RangeError(`[markdown-explorer] logicalColumns must be a positive integer; got ${i.describeValue(n)}`);const o=Math.floor((e+r)/(t+r));return Math.min(n,Math.max(1,o))},Vr=(e,r)=>{const{trackInlineSize:t,gap:n,minColumnInlineSize:o,logicalColumns:s}=r;if(!([t,n,o].every(Number.isFinite)&&t>0&&n>=0&&o>0))return e;const d=Mr(r);if(e===null||d===e)return d;const l=Math.min(s,Math.max(1,e));if(d>l){const w=(l+1)*o+l*n+n/b;return t>=w?d:l}return t>=l*o+(l-1)*n?l:d},zr=(e,r)=>{if(!(Number.isInteger(e)&&Number.isInteger(r))||r<1||r>e)throw new RangeError(`[markdown-explorer] visible columns must be an integer in 1..${String(e)}; got ${i.describeValue(r)}`);return Array.from({length:r},(t,n)=>[Math.floor(n*e/r),Math.floor((n+1)*e/r)])},jr=(e,r,t)=>{if(S("surfaceInlineSize",e),S("handlePixels",t),!Number.isFinite(r)||r<=0)throw new RangeError(`[markdown-explorer] measure must be a finite number > 0; got ${i.describeValue(r)}`);return e>=2*r+t?"beside":"stacked"},B=(e,r,t)=>Math.max(r,Math.min(e,t)),me=(e,r,t,n)=>{const o=(B(e,0,t)+B(r,0,t))/2;return B(o-n/2,0,t-n)},Fr=(e,r,t)=>{for(const[n,o]of Object.entries(e))if(!Number.isFinite(o))throw new RangeError(`[markdown-explorer] anchor.${n} must be a finite number; got ${i.describeValue(o)}`);return S("marginBox.width",r.width),S("marginBox.height",r.height),S("viewport.width",t.width),S("viewport.height",t.height),{left:me(e.left,e.right,t.width,r.width),top:me(e.top,e.bottom,t.height,r.height)}},Ur=31536e3,Gr=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/u,Br=e=>{if(typeof e!="string"||!Gr.test(e))throw new RangeError(`[markdown-explorer] settingsCookie must be a cookie-name token; got ${i.describeValue(e)}`)},fe=e=>typeof e=="number"&&Number.isFinite(e)&&e>0&&e<=te,v=(e,r)=>typeof r=="string"&&e.includes(r),Xr=(e,r)=>{if(e===null||typeof e!="object"||Array.isArray(e))return{};const t=e,{treeExplorer:n,treeExplorerHidden:o,multiExplorer:s,multiExplorerHidden:a,style:d,align:l,measure:m,documentColors:w}=t;return{...fe(n)?{treeExplorer:n}:{},...o===!0?{treeExplorerHidden:o}:{},...fe(s)?{multiExplorer:s}:{},...a===!0?{multiExplorerHidden:a}:{},...v(r,d)?{style:d}:{},...v(T.CONTENT_ALIGNS,l)?{align:l}:{},...v(T.CONTENT_MEASURES,m)?{measure:m}:{},...v(T.CONTENT_COLORS,w)?{documentColors:w}:{}}},Wr=(e,r)=>{if(e!==null)for(const t of e.split(";")){const n=t.indexOf("=");if(!(n<0)&&t.slice(0,n).trim()===r)return t.slice(n+1).trim()}},Hr=(e,r)=>{if(e===void 0||e==="")return{};try{return Xr(JSON.parse(decodeURIComponent(e)),r)}catch{return{}}},C=100,Kr=Math.floor(te*C)/C,ye=e=>{const r=t=>Math.min(Kr,Math.max(1,Math.round(t*C))/C);return encodeURIComponent(JSON.stringify({...e.treeExplorer===void 0?{}:{treeExplorer:r(e.treeExplorer)},...e.treeExplorerHidden===!0?{treeExplorerHidden:!0}:{},...e.multiExplorer===void 0?{}:{multiExplorer:r(e.multiExplorer)},...e.multiExplorerHidden===!0?{multiExplorerHidden:!0}:{},...e.style===void 0?{}:{style:e.style},...e.align===void 0?{}:{align:e.align},...e.measure===void 0?{}:{measure:e.measure},...e.documentColors===void 0?{}:{documentColors:e.documentColors}}))},qr=(e,r,t)=>`${e}=${ye(r)}; Path=/; Max-Age=${String(Ur)}; SameSite=Lax${t?"; Secure":""}`,_e=["ctrl","shift"],Yr=e=>typeof e=="string"&&_e.includes(e),q=Object.freeze({tree:"tree",multi:"multi",single:"single"}),Ie=Object.freeze({default:12,min:1,max:64}),Re=Object.freeze({default:4,min:1,max:6}),ke=Object.freeze({default:500,min:1,max:1e4}),Pe=Object.freeze({default:16,min:1,max:64}),Ae=Object.freeze({default:16,min:1,max:64}),Le=Object.freeze({default:2*1024*1024,min:1,max:256*1024*1024}),Ne=Object.freeze({default:8*1024*1024,min:1,max:256*1024*1024}),De=/^[A-Za-z0-9][A-Za-z0-9_-]*$/u,Jr=/^[a-z0-9][a-z0-9-]*$/u,Zr=/^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/u,Y=(e,r)=>{if(typeof r!="string")throw new TypeError(`[markdown-explorer] ${e} must be a string; got ${i.describeValue(r)}`);if(!g.isMountPath(r))throw new RangeError(`[markdown-explorer] ${e} must start with "/", have no trailing "/", use only letters, digits and "._~-" in each segment, and have no "." or ".." segment; got ${i.describeValue(r)}`)},we=Object.freeze(Object.keys({basePath:!0,dataPath:!0,settingsCookie:!0,views:!0,documentIds:!0,multiView:!0,expandAll:!0,revealDocument:!0,documentStyles:!0,defaultDocumentStyle:!0,mermaidModifier:!0,iframeHosts:!0,appOrigins:!0,mediaDataPath:!0,embeds:!0,defaultTreeSettings:!0,legacyTextEncoding:!0,spreadsheets:!0})),O=(e,r,t)=>{if(r===void 0)return[];if(!i.isPlainObject(r))throw new TypeError(`[markdown-explorer] ${e} must be a plain object; got ${i.describeValue(r)}`);const n=Object.entries(r);for(const[o]of n)if(!t.includes(o))throw new RangeError(`[markdown-explorer] ${e}.${o} is not an option; expected ${t.join(", ")}`);return n.filter(([,o])=>o!==void 0)},Qr=e=>{const r={...q};for(const[t,n]of O("views",e,Object.keys(q)))r[t]=n;for(const[t,n]of Object.entries(r))if(typeof n!="string"||!De.test(n))throw new RangeError(`[markdown-explorer] views.${t} must start with a letter or digit and use only letters, digits, "_" and "-"; got ${i.describeValue(n)}`);return Object.freeze(r)},et=e=>{if(e===void 0)return null;const r=O("documentIds",e,["slug"]).find(([t])=>t==="slug")?.[1];if(typeof r!="string"||!De.test(r))throw new RangeError(`[markdown-explorer] documentIds.slug must start with a letter or digit and use only letters, digits, "_" and "-"; got ${i.describeValue(r)}`);return Object.freeze({slug:r})},_=(e,r,t)=>{if(r===void 0)return t.default;if(typeof r!="number"||!Number.isInteger(r)||r<t.min||r>t.max)throw new RangeError(`[markdown-explorer] ${e} must be an integer in ${String(t.min)}..${String(t.max)}; got ${i.describeValue(r)}`);return r},rt=(e,r)=>{const t=new Map(O("embeds",e,["providers","linkCards","linkCardSize"]));if(t.size===0)return L.NO_EMBEDS;const n=t.has("providers")?t.get("providers"):[];if(!Array.isArray(n))throw new RangeError(`[markdown-explorer] embeds.providers must be an array of provider ids; got ${i.describeValue(n)}`);for(const d of n)if(!L.isEmbedProviderId(d))throw new RangeError(`[markdown-explorer] embeds.providers must hold only ${L.EMBED_PROVIDER_IDS.join(", ")}; got ${i.describeValue(d)}`);const o=t.has("linkCards")?t.get("linkCards"):!1;if(typeof o!="boolean")throw new RangeError(`[markdown-explorer] embeds.linkCards must be a boolean; got ${i.describeValue(o)}`);const s={providers:Object.freeze([...new Set(n)]),linkCardEndpoint:o?g.explorerLinkCardEndpoint(r):null};if(!t.has("linkCardSize"))return Object.freeze(s);const a=t.get("linkCardSize");if(!L.isLinkCardSize(a))throw new RangeError(`[markdown-explorer] embeds.linkCardSize must be one of ${L.LINK_CARD_SIZES.join(", ")}; got ${i.describeValue(a)}`);if(!o)throw new RangeError(`[markdown-explorer] embeds.linkCardSize needs embeds.linkCards: true; got linkCardSize ${i.describeValue(a)} with linkCards ${i.describeValue(o)}`);return Object.freeze({...s,linkCardSize:a})},tt=e=>{if(e===void 0)return null;if(typeof e!="string")throw new TypeError(`[markdown-explorer] legacyTextEncoding must be a string; got ${i.describeValue(e)}`);return Q(e)},nt=e=>{if(e===void 0)return Object.freeze([]);if(!Array.isArray(e))throw new TypeError(`[markdown-explorer] appOrigins must be an array of origins; got ${i.describeValue(e)}`);for(const[r,t]of e.entries()){if(typeof t!="string")throw new TypeError(`[markdown-explorer] appOrigins[${String(r)}] must be a string; got ${i.describeValue(t)}`);if(!g.isBrowserOrigin(t))throw new RangeError(`[markdown-explorer] appOrigins[${String(r)}] must be an origin as the browser writes it (scheme://host[:port], without a default port, path, query, fragment or user info); got ${i.describeValue(t)}`)}return Object.freeze([...new Set(e)])},ot=e=>{if(e===void 0)return null;if(typeof e!="string")throw new TypeError(`[markdown-explorer] mediaDataPath must be a string; got ${i.describeValue(e)}`);if(!g.isMediaDataUrl(e))throw new RangeError(`[markdown-explorer] mediaDataPath must be an absolute http: or https: URL as the browser writes it, of an origin and a path that starts with "/", has no trailing "/", uses only letters, digits and "._~-" in each segment and has no "." or ".." segment, without a query, fragment or user info; got ${i.describeValue(e)}`);return e},it=e=>{const r=new Map(O("defaultTreeSettings",e,R.map(n=>n.key)));if(r.size===0)return W;const t={...W};for(const n of R){if(!r.has(n.key))continue;const o=r.get(n.key),s=n.values;if(!s.includes(o))throw new RangeError(`[markdown-explorer] defaultTreeSettings.${n.key} must be one of ${s.map(i.describeValue).join(", ")}; got ${i.describeValue(o)}`);t[n.key]=o}return Object.freeze(t)},ve=e=>{if(e===null||typeof e!="object")throw new TypeError("[markdown-explorer] the explorer configuration must be an object");for(const c of Object.keys(e))if(!we.includes(c))throw new RangeError(`[markdown-explorer] ${c} is not an option of the explorer configuration; expected ${we.join(", ")}`);Y("basePath",e.basePath),Y("dataPath",e.dataPath);const r=Qr(e.views);if(new Set([r.tree,r.multi,r.single]).size!==3)throw new RangeError(`[markdown-explorer] the view slugs must differ; got tree ${i.describeValue(r.tree)}, multi ${i.describeValue(r.multi)} and single ${i.describeValue(r.single)}`);const t=et(e.documentIds);if(t!==null&&[r.tree,r.multi,r.single].includes(t.slug))throw new RangeError(`[markdown-explorer] documentIds.slug must differ from the view slugs; got ${i.describeValue(t.slug)}`);if(e.dataPath===e.basePath)throw new RangeError("[markdown-explorer] dataPath must differ from basePath");if(e.dataPath.startsWith(`${e.basePath}/`)){const c=e.dataPath.slice(e.basePath.length+1).split("/")[0];if(c===r.tree||c===r.multi||c===r.single||c===t?.slug)throw new RangeError(`[markdown-explorer] dataPath must not start with a view slug or documentIds.slug under basePath; got ${i.describeValue(e.dataPath)}`)}Br(e.settingsCookie);const n=e.iframeHosts??[];if(!Array.isArray(n))throw new RangeError(`[markdown-explorer] iframeHosts must be an array of lowercase host names without scheme, port or path; got ${i.describeValue(n)}`);for(const[c,x]of n.entries())if(typeof x!="string"||!Zr.test(x))throw new RangeError(`[markdown-explorer] iframeHosts[${String(c)}] must be a lowercase host name without scheme, port or path; got ${i.describeValue(x)}`);const o=Object.fromEntries(O("multiView",e.multiView,["maxPanels","columns"])),s=Object.fromEntries(O("expandAll",e.expandAll,["maxFolders","maxDepth"])),a=Object.fromEntries(O("revealDocument",e.revealDocument,["maxDepth"])),d=Object.fromEntries(O("spreadsheets",e.spreadsheets,["maxBytes","maxWorkbookBytes"])),l=e.documentStyles??T.DEFAULT_MARKDOWN_STYLES;if(!Array.isArray(l)||l.length===0)throw new RangeError("[markdown-explorer] documentStyles must be a non-empty array");const m=new Set;for(const c of l){if(c===null||typeof c!="object"||typeof c.name!="string"||c.name.trim()===""||typeof c.className!="string")throw new RangeError("[markdown-explorer] each document style needs a non-blank name and a className string");if(m.has(c.name))throw new RangeError(`[markdown-explorer] document style names must be unique; ${i.describeValue(c.name)} repeats`);m.add(c.name)}const w=e.defaultDocumentStyle===void 0?T.DEFAULT_MARKDOWN_STYLE:e.defaultDocumentStyle;if(typeof w!="string")throw new TypeError(`[markdown-explorer] defaultDocumentStyle must be a string; got ${i.describeValue(w)}`);if(!m.has(w)){const c=e.defaultDocumentStyle===void 0?" (the default, DEFAULT_MARKDOWN_STYLE; name one of documentStyles)":"";throw new RangeError(`[markdown-explorer] defaultDocumentStyle must name a configured document style (${[...m].map(i.describeValue).join(", ")}); got ${i.describeValue(w)}${c}`)}const f=e.mermaidModifier;if(f!==void 0&&!Yr(f))throw new RangeError(`[markdown-explorer] mermaidModifier must be one of ${_e.map(i.describeValue).join(", ")}; got ${i.describeValue(f)}`);return Object.freeze({basePath:e.basePath,dataPath:e.dataPath,settingsCookie:e.settingsCookie,views:r,documentIds:t,multiView:Object.freeze({maxPanels:_("multiView.maxPanels",o.maxPanels,Ie),columns:_("multiView.columns",o.columns,Re)}),expandAll:Object.freeze({maxFolders:_("expandAll.maxFolders",s.maxFolders,ke),maxDepth:_("expandAll.maxDepth",s.maxDepth,Pe)}),revealDocument:Object.freeze({maxDepth:_("revealDocument.maxDepth",a.maxDepth,Ae)}),documentStyles:Object.freeze(l.map(c=>Object.freeze({name:c.name,className:c.className}))),defaultDocumentStyle:w,mermaidModifier:f,iframeHosts:Object.freeze([...new Set(n)]),appOrigins:nt(e.appOrigins),mediaDataPath:ot(e.mediaDataPath),embeds:rt(e.embeds,e.dataPath),defaultTreeSettings:it(e.defaultTreeSettings),legacyTextEncoding:tt(e.legacyTextEncoding),spreadsheets:Object.freeze({maxBytes:_("spreadsheets.maxBytes",d.maxBytes,Le),maxWorkbookBytes:_("spreadsheets.maxWorkbookBytes",d.maxWorkbookBytes,Ne)})})},st=e=>{const r=e.embeds;if(!i.isPlainObject(r))throw new TypeError(`[markdown-explorer] config.embeds must be the embeds defineExplorerConfig resolved; got ${i.describeValue(r)}`);if(Object.hasOwn(r,"linkCards"))throw new RangeError(`[markdown-explorer] config.embeds.linkCards is an option of defineExplorerConfig, not a key of the embeds it resolves; pass the option to defineExplorerConfig (got linkCards ${i.describeValue(r.linkCards)})`);const t=e.legacyTextEncoding;if(t!==null&&typeof t!="string")throw new TypeError(`[markdown-explorer] config.legacyTextEncoding must be the encoding defineExplorerConfig resolved, or null; got ${i.describeValue(t)}`);const n=e.mediaDataPath;if(n!==null&&typeof n!="string")throw new TypeError(`[markdown-explorer] config.mediaDataPath must be the URL defineExplorerConfig resolved, or null; got ${i.describeValue(n)}`);const o=e.documentIds;if(o!==null&&!i.isPlainObject(o))throw new TypeError(`[markdown-explorer] config.documentIds must be the segment defineExplorerConfig resolved, or null; got ${i.describeValue(o)}`);const{linkCardEndpoint:s,...a}=r,d=ve({...e,embeds:{...a,linkCards:s!==null},legacyTextEncoding:t===null?void 0:t,mediaDataPath:n===null?void 0:n,documentIds:o===null?void 0:o});if(d.embeds.linkCardEndpoint!==s)throw new RangeError(`[markdown-explorer] config.embeds.linkCardEndpoint must be ${i.describeValue(d.embeds.linkCardEndpoint)} (the data route's link-card path) or null; got ${i.describeValue(s)}`);if(d.legacyTextEncoding!==t)throw new RangeError(`[markdown-explorer] config.legacyTextEncoding must be ${i.describeValue(d.legacyTextEncoding)} (the written name of the encoding it names); got ${i.describeValue(t)}`);const l=e;for(const[m,w]of Object.entries(d)){const f=J(l[m],w,m);if(f!==null)throw f.kind==="extra"?new RangeError(`[markdown-explorer] config.${f.path} is not a key of what defineExplorerConfig resolves; got ${i.describeValue(f.given)} there`):new RangeError(`[markdown-explorer] config.${f.path} must be what defineExplorerConfig resolves; got ${i.describeValue(f.given)} where it resolves ${i.describeValue(f.resolved)}`)}return d},J=(e,r,t)=>{if(Object.is(e,r))return null;if(Array.isArray(r)){if(!Array.isArray(e))return{kind:"value",path:t,given:e,resolved:r};if(e.length!==r.length)return{kind:"value",path:`${t}.length`,given:e.length,resolved:r.length};for(const[o,s]of r.entries()){const a=J(e[o],s,`${t}[${String(o)}]`);if(a!==null)return a}return null}if(!(i.isPlainObject(r)&&i.isPlainObject(e)))return{kind:"value",path:t,given:e,resolved:r};for(const o of Object.keys(r)){const s=J(Object.hasOwn(e,o)?e[o]:void 0,r[o],`${t}.${o}`);if(s!==null)return s}const n=Object.keys(e).find(o=>!Object.hasOwn(r,o));return n===void 0?null:{kind:"extra",path:`${t}.${n}`,given:e[n]}},$e=e=>typeof e=="string"&&Jr.test(e),at=(e,r)=>{if(e===null||typeof e!="object")throw new TypeError(`[markdown-explorer] withExplorerSources needs the configuration of defineExplorerConfig; got ${i.describeValue(e)}`);if(!Array.isArray(r)||r.length===0)throw new RangeError(`[markdown-explorer] sourceIds must be a non-empty array; got ${i.describeValue(r)}`);const t=new Set;for(const[n,o]of r.entries()){if(!$e(o))throw new RangeError(`[markdown-explorer] each source id must use lowercase letters, digits and "-" and start with a letter or digit; got ${i.describeValue(o)}`);if(t.has(o))throw new RangeError(`[markdown-explorer] source ids must be unique; ${i.describeValue(o)} repeats at sourceIds[${String(n)}]`);t.add(o)}return Object.freeze({...e,sourceIds:Object.freeze([...r])})},dt=e=>e.documentStyles.map(r=>r.name),lt=e=>Object.freeze({origins:e.appOrigins,resources:Object.freeze([e.dataPath]),links:Object.freeze([e.basePath,e.dataPath]),media:Object.freeze(e.mediaDataPath===null?[]:[e.mediaDataPath])}),u=Object.freeze({source:"source",doc:"doc",maximized:"maximized",style:"style",align:"align",showToc:"showToc",showStyle:"showStyle",showAlign:"showAlign",padding:"padding",width:"width",maxWidth:"maxWidth",markup:"markup"}),Ce="true",Me="true",M="/",ge=".data",Ve=256,ze=/^\d+(?:\.\d+)?$/u,Z=/^\d+(?:\.\d+)?(?:px|rem|em|ch|vw|%)$/u,je=Object.freeze(["showToc","showStyle","showAlign"]),Ee=e=>{const r=encodeURIComponent(e.replaceAll("%","%25"));return r.endsWith(ge)?`${r.slice(0,-ge.length)}%2Edata`:r},ct=e=>e.replaceAll("%25","%"),Fe=e=>{const{sourceIds:r}=e;if(r===void 0)throw new TypeError("[markdown-explorer] the configuration has no source ids; join the server's sources with withExplorerSources(config, sourceIds)");return r},ut=(e,r,t)=>{const n=t.getAll(u.source);if(n.length===0)return r;const[o]=n;return n.length>1||o===void 0||o===r||!e.includes(o)?null:o},Ue=(e,r)=>{const t=r.get(u.style),n=r.get(u.align);return{...t!==null&&e.documentStyles.some(o=>o.name===t)?{style:t}:{},...n!==null&&T.CONTENT_ALIGNS.includes(n)?{align:n}:{}}},Ge=e=>Number.isFinite(e)&&e>=0&&e<=Ve&&ze.test(String(e)),Be=e=>{const r=e.get(u.padding),t=r!==null&&ze.test(r)?Number(r):Number.NaN,n=e.get(u.width),o=e.get(u.maxWidth);return{...e.get(u.showToc)==="false"?{showToc:!1}:{},...e.get(u.showStyle)==="false"?{showStyle:!1}:{},...e.get(u.showAlign)==="false"?{showAlign:!1}:{},...Ge(t)?{padding:t}:{},...n!==null&&Z.test(n)?{width:n}:{},...o!==null&&Z.test(o)?{maxWidth:o}:{}}},Xe=(e,r)=>[...new Set(r.filter(g.isAcceptableDocumentPath))].slice(0,e.multiView.maxPanels),mt=(e,r,t,n)=>{for(const s of r)oe(s);if(new Set(r).size!==r.length)throw new RangeError(`[markdown-explorer] multi-view documents must each appear once; got ${String(r.length)} with repeats`);if(r.length>e.multiView.maxPanels)throw new RangeError(`[markdown-explorer] the multi view opens at most ${String(e.multiView.maxPanels)} documents; got ${String(r.length)}`);if(t!==null&&!r.includes(t))throw new RangeError(`[markdown-explorer] the maximized document must be one of the open documents; got ${i.describeValue(t)}`);if(new Set(n).size!==n.length)throw new RangeError(`[markdown-explorer] the documents shown as written must each appear once; got ${String(n.length)} with repeats`);const o=n.find(s=>!r.includes(s));if(o!==void 0)throw new RangeError(`[markdown-explorer] a document shown as written must be one of the open documents; got ${i.describeValue(o)}`)},oe=e=>{if(!g.isAcceptableDocumentPath(e))throw new RangeError(`[markdown-explorer] not an acceptable document path: ${i.describeValue(e)}`);return e},ft=e=>{if(!We(oe(e)))throw new RangeError(`[markdown-explorer] a document path ending in a slash has no URL (its segment would name a folder): ${i.describeValue(e)}`);return e},We=e=>g.isAcceptableDocumentPath(e)&&!e.endsWith(M),wt=(e,r)=>{if(r.style!==void 0&&!e.documentStyles.some(t=>t.name===r.style))throw new RangeError(`[markdown-explorer] overrides.style must name a configured document style (${e.documentStyles.map(t=>i.describeValue(t.name)).join(", ")}); got ${i.describeValue(r.style)}`);if(r.align!==void 0&&!T.CONTENT_ALIGNS.includes(r.align))throw new RangeError(`[markdown-explorer] overrides.align must be one of ${T.CONTENT_ALIGNS.join(", ")}; got ${i.describeValue(r.align)}`)},gt=e=>{for(const r of je)if(e[r]!==void 0&&typeof e[r]!="boolean")throw new RangeError(`[markdown-explorer] embed.${r} must be a boolean; got ${i.describeValue(e[r])}`);if(e.padding!==void 0&&!Ge(e.padding))throw new RangeError(`[markdown-explorer] embed.padding must be 0..${String(Ve)} px in plain decimal digits; got ${i.describeValue(e.padding)}`);for(const r of["width","maxWidth"]){const t=e[r];if(t!==void 0&&!Z.test(t))throw new RangeError(`[markdown-explorer] embed.${r} must be a CSS length in px, rem, em, ch, vw or %; got ${i.describeValue(t)}`)}},ie=(e,r)=>{if(r.view==="document-id")return Et(e,r);const t=new URLSearchParams;let n=`${e.basePath}/${e.views[r.view]}`;if(r.view==="multi"){const s=r.docs??[],a=r.maximized??null,d=r.markup??[];mt(e,s,a,d);for(const l of s)t.append(u.doc,l);a!==null&&t.set(u.maximized,a);for(const l of s)d.includes(l)&&t.append(u.markup,l)}else{const s=r.doc??null,a=r.view==="tree"?r.folder??null:null;if(s!==null&&a!==null)throw new RangeError("[markdown-explorer] a tree view shows a document or a folder, not both");s!==null&&(n+=`/${Ee(ft(s))}`),a!==null&&(n+=`/${Ee(`${oe(a)}${M}`)}`)}if(r.source!==void 0){const s=Fe(e);if(!s.includes(r.source))throw new RangeError(`[markdown-explorer] unknown source ${i.describeValue(r.source)}; expected one of ${s.join(", ")}`);r.source!==s[0]&&t.set(u.source,r.source)}r.view!=="multi"&&r.overrides!==void 0&&He(e,t,r.overrides);const o=r.view!=="multi"&&(r.doc!==void 0&&r.doc!==null||r.view==="tree"&&r.folder!==void 0&&r.folder!==null);if(r.view==="tree"&&r.maximized===!0){if(!o)throw new RangeError("[markdown-explorer] a tree view without a document or a folder has nothing to maximize");t.set(u.maximized,Me)}if(r.view!=="multi"&&r.markup===!0){if(!o)throw new RangeError("[markdown-explorer] a tree view without a document or a folder has nothing to show as written");t.set(u.markup,Ce)}return r.view==="single"&&r.embed!==void 0&&Ke(t,r.embed),qe(n,t)},Et=(e,r)=>{if(e.documentIds===null)throw new TypeError("[markdown-explorer] an ID link needs documentIds in defineExplorerConfig");if(!g.isCanonicalDocumentId(r.id))throw new RangeError(`[markdown-explorer] not a canonical document ID: ${i.describeValue(r.id)}`);if(r.opens!==void 0&&r.opens!=="single")throw new RangeError(`[markdown-explorer] opens must be "single" or absent; got ${i.describeValue(r.opens)}`);if(r.embed!==void 0&&r.opens!=="single")throw new RangeError('[markdown-explorer] embed needs opens: "single" (only the single view takes embedding options)');const t=new URLSearchParams;r.overrides!==void 0&&He(e,t,r.overrides),r.embed!==void 0&&Ke(t,r.embed);const n=r.opens==="single"?`/${e.views.single}`:"";return qe(`${e.basePath}/${e.documentIds.slug}/${r.id}${n}`,t)},He=(e,r,t)=>{wt(e,t),t.style!==void 0&&r.set(u.style,t.style),t.align!==void 0&&r.set(u.align,t.align)},Ke=(e,r)=>{gt(r);for(const t of je)r[t]===!1&&e.set(u[t],"false");r.padding!==void 0&&e.set(u.padding,String(r.padding)),r.width!==void 0&&e.set(u.width,r.width),r.maxWidth!==void 0&&e.set(u.maxWidth,r.maxWidth)},qe=(e,r)=>{const t=r.toString();return t===""?e:`${e}?${t}`},ht=(e,r)=>Object.keys(e.views).find(t=>e.views[t]===r),pt=(e,r,t)=>{const n=Fe(e),[o]=n;if(o===void 0)throw new RangeError("[markdown-explorer] the configuration has no source");const s=ut(n,o,t),a=s===null?o:s,d=p=>({kind:"redirect",href:ie(e,p),location:p}),l=()=>d({view:"tree",source:a,doc:null,folder:null,overrides:{},markup:!1,maximized:!1});if(r===void 0||r==="")return l();const m=r.indexOf("/"),w=m<0?r:r.slice(0,m),f=m<0?null:r.slice(m+1);if(e.documentIds!==null&&w===e.documentIds.slug)return bt(e,f,t,o,l);const c=ht(e,w);if(c===void 0)return l();if(c==="multi"){const p=t.getAll(u.doc),I=Xe(e,p),z=t.getAll(u.maximized),[j]=z,F=z.length===1&&j!==void 0&&I.includes(j)?j:null,U=t.getAll(u.markup),D=I.filter(A=>U.includes(A)),Ye=D.length===U.length&&D.every((A,G)=>A===U[G]);return f===null&&s!==null&&I.length===p.length&&I.every((A,G)=>A===p[G])&&(z.length===0||F!==null)&&Ye?{kind:"location",location:{view:"multi",source:a,docs:I,maximized:F,markup:D}}:d({view:"multi",source:a,docs:I,maximized:F,markup:D})}const x=f===null?null:ct(f),E=x?.endsWith(M)===!0?x.slice(0,-M.length):null,h=x!==null&&E===null?x:null;if(h!==null&&!g.isAcceptableDocumentPath(h)||E!==null&&!g.isAcceptableDocumentPath(E))return l();const k=Ue(e,t),P=(h!==null||E!==null)&&t.get(u.markup)===Ce;if(c==="single"){if(E!==null)return d({view:"tree",source:a,doc:null,folder:E,overrides:k,markup:P,maximized:!1});if(h===null)return l();const p=Be(t);return s===null?d({view:c,source:a,doc:h,overrides:k,embed:p,markup:P}):{kind:"location",location:{view:c,source:a,doc:h,overrides:k,embed:p,markup:P}}}const se=(h!==null||E!==null)&&t.get(u.maximized)===Me;return s===null?d({view:c,source:a,doc:h,folder:E,overrides:k,markup:P,maximized:se}):{kind:"location",location:{view:c,source:a,doc:h,folder:E,overrides:k,markup:P,maximized:se}}},bt=(e,r,t,n,o)=>{if(r===null||r==="")return o();const s=r.indexOf("/"),a=g.parseDocumentId(s<0?r:r.slice(0,s)),d=s<0?null:r.slice(s+1),l=Ue(e,t),m={view:"tree",source:n,doc:null,folder:null,overrides:{},markup:!1,maximized:!1};return d===e.views.single?{kind:"document-id",id:a,opens:{view:"single",overrides:l,embed:Be(t)},location:m}:d!==null&&a!==null?{kind:"redirect",href:ie(e,{view:"document-id",id:a,overrides:l}),location:m}:{kind:"document-id",id:a,opens:{view:"tree",overrides:l},location:m}},xt=(e,r,t)=>e.view==="single"?{view:"single",source:t,doc:r,overrides:e.overrides,embed:e.embed}:{view:"tree",source:t,doc:r,overrides:e.overrides};exports.ASSUMED_ROOT_FONT_PIXELS=Tr;exports.COARSE_TARGET_PIXELS=Ir;exports.COLUMN_MIN_MEASURE=Ar;exports.CONTROL_BLOCK_PIXELS=ne;exports.DEFAULT_TREE_SETTINGS=W;exports.DEFAULT_VIEW_SLUGS=q;exports.EDIT_SPLIT_DEFAULT_PERCENT=vr;exports.EDIT_SPLIT_MAX_PERCENT=$r;exports.EDIT_SPLIT_MIN_PERCENT=Te;exports.EXPAND_ALL_DEPTH_LIMITS=Pe;exports.EXPAND_ALL_FOLDER_LIMITS=ke;exports.EXPLORER_DEFAULT_PERCENT=Sr;exports.EXPLORER_MAX_PERCENT=te;exports.EXPLORER_MIN_REM=Se;exports.EXPLORER_MULTI_DEFAULT_PERCENT=Or;exports.FIBONACCI_SPACING_PIXELS=K;exports.FINE_TARGET_PIXELS=Rr;exports.GOLDEN_RATIO=b;exports.MULTI_VIEW_COLUMN_LIMITS=Re;exports.MULTI_VIEW_PANEL_LIMITS=Ie;exports.NAME_COLLATOR=N;exports.NO_TREE_SETTING_CHANGES=H;exports.PANEL_MAX_BLOCK_RATIO=kr;exports.PANEL_MIN_BLOCK_RATIO=Pr;exports.PREFETCH_DWELL_MS=Cr;exports.REVEAL_DOCUMENT_DEPTH_LIMITS=Ae;exports.SPLIT_HANDLE_PIXELS=yr;exports.SPLIT_PERSIST_DELAY_MS=Dr;exports.SPREADSHEET_BYTE_LIMITS=Le;exports.WORKBOOK_BYTE_LIMITS=Ne;exports.advanceTreeSetting=mr;exports.applyTreeSettingChanges=Er;exports.assertMountPath=Y;exports.canonicalMultiDocuments=Xe;exports.centeredDialogPosition=Fr;exports.columnGroups=zr;exports.createEntryComparator=xr;exports.decodeText=nr;exports.decodeTextLeniently=ir;exports.defineExplorerConfig=ve;exports.documentIdOpeningTarget=xt;exports.documentStyleNames=dt;exports.editSplitOrientation=jr;exports.explorerHref=ie;exports.explorerMinPixels=Oe;exports.explorerSheetBelowPixels=Nr;exports.folderReadmeOf=lr;exports.formatTreeSettingValue=fr;exports.hasDocumentUrl=We;exports.isExplorerSourceId=$e;exports.legacyTextEncodingOf=Q;exports.ownUrlsOf=lt;exports.parseViewSettings=Hr;exports.readCookieValue=Wr;exports.readTreeSettingChanges=gr;exports.recordTreeSettingChange=hr;exports.replanVisibleColumns=Vr;exports.resolveExplorerLocation=pt;exports.revalidateExplorerConfig=st;exports.serializeTreeSettingChanges=pr;exports.serializeViewSettings=ye;exports.textEncodingOf=or;exports.textEncodingsOf=rr;exports.viewSettingsCookieString=qr;exports.visibleTreeSettingDescriptors=ur;exports.withExplorerSources=at;
|