@file-viewer/web-full 2.1.8 → 2.1.9
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){var Qi=Object.create,rt=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,rn=Object.getPrototypeOf,nn=Object.prototype.hasOwnProperty,fe=(l,f)=>()=>(l&&(f=l(l=0)),f),Oe=(l,f)=>()=>(f||(l((f={exports:{}}).exports,f),l=null),f.exports),gt=(l,f)=>{let r={};for(var c in l)rt(r,c,{get:l[c],enumerable:!0});return f||rt(r,Symbol.toStringTag,{value:"Module"}),r},an=(l,f,r,c)=>{if(f&&typeof f=="object"||typeof f=="function")for(var n=tn(f),i=0,a=n.length,e;i<a;i++)e=n[i],!nn.call(l,e)&&e!==r&&rt(l,e,{get:(u=>f[u]).bind(null,e),enumerable:!(c=en(f,e))||c.enumerable});return l},nr=(l,f,r)=>(r=l!=null?Qi(rn(l)):{},an(f||!l||!l.__esModule?rt(r,"default",{value:l,enumerable:!0}):r,l)),on=fe((()=>{})),sn=fe((()=>{on()})),wt,bt,vt,yt,Re,ln,He=fe((()=>{wt=["zip","zipx","7z","rar","tar","gz","gzip","tgz","bz2","bzip2","tbz","tbz2","xz","txz","lzma","zst","tzst","cab","ar","cpio","iso","xar","lha","lzh","jar","war","ear","apk","cbz","cbr"],bt=["glb","gltf","obj","stl","ply","fbx","dae","3ds","3mf","amf","usd","usda","usdc","usdz","kmz","step","stp","iges","igs","ifc","3dm","brep","pcd","wrl","vrml","xyz","vtk","vtp"],vt=["txt","json","js","mjs","cjs","css","java","py","html","htm","jsx","ts","tsx","xml","log","vue","yaml","yml","ini","sh","bash","sql","go","rs","php","c","cpp","cc","h","hpp","cs","diff","patch","bundle","bdl","jsonc","json5","ipynb","toml","proto","hcl","tex","gv","http","react","rb","swift","kt"],yt=["gif","jpg","jpeg","bmp","tiff","tif","png","svg","webp","avif","ico","heic","heif","jxl"],Re=[{id:"office-word-openxml",label:"Word OpenXML",category:"office",extensions:["docx","docm","dotx","dotm"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:!0}},{id:"office-word-binary",label:"Word Binary",category:"office",extensions:["doc","dot"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:!0}},{id:"office-presentation",label:"PowerPoint",category:"office",extensions:["pptx","pptm","potx","potm","ppsx","ppsm"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"open-document",label:"Open Document",category:"office",extensions:["rtf","odt","odp"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"spreadsheet-openxml",label:"Spreadsheet",category:"office",extensions:["xlsx","xltx","xlsm","xlsb","xls","xlt","xltm","csv","ods","fods","numbers"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:"provider",search:!0}},{id:"pdf",label:"PDF",category:"document",extensions:["pdf"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:"provider"}},{id:"ofd",label:"OFD",category:"document",extensions:["ofd"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"typst",label:"Typst",category:"document",extensions:["typ","typst"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:!0}},{id:"archive",label:"Archive",category:"archive",extensions:wt,async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:!1,search:!0}},{id:"email",label:"Email",category:"email",extensions:["eml","msg","mbox"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!0,zoom:!1,search:!0}},{id:"eda",label:"EDA",category:"eda",extensions:["olb","dra","gds","oas","oasis"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:!1,search:!0}},{id:"cad",label:"CAD",category:"cad",extensions:["dxf","dwg","dwf","dwfx","xps"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!1}},{id:"model",label:"3D Model",category:"model",extensions:bt,async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:"provider",search:!1}},{id:"geo",label:"Geospatial",category:"geo",extensions:["geojson","kml","gpx","shp"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"drawing",label:"Drawing",category:"drawing",extensions:["excalidraw","drawio","dio","mermaid","mmd","plantuml","puml"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"mindmap",label:"Mind Map",category:"mindmap",extensions:["xmind"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"epub",label:"EPUB",category:"ebook",extensions:["epub"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!0,zoom:!1,search:"provider"}},{id:"umd",label:"UMD",category:"ebook",extensions:["umd"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"image",label:"Image",category:"image",extensions:yt,async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!1}},{id:"markdown",label:"Markdown",category:"markdown",extensions:["md","markdown"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:!1,search:!0}},{id:"code",label:"Code and Text",category:"code",extensions:vt,async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:!1,search:!0}},{id:"video",label:"Video",category:"media",extensions:["mp4","webm","m3u8"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:!1,search:!1}},{id:"audio",label:"Audio",category:"media",extensions:["mp3","mpeg","wav","ogg","oga","opus","m4a","aac","flac","weba","midi","mid"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:!1,search:!1}},{id:"data-asset",label:"Data Asset",category:"asset",extensions:["ttf","otf","woff","woff2","psd","ai","eps","sqlite","wasm","parquet","avro","webarchive"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!0,zoom:!1,search:!0}}],ln=Object.freeze(Array.from(new Set(Re.flatMap(l=>l.extensions))).sort())})),dn,cn,un=fe((()=>{dn=["[data-viewer-anchor-id]",".pdfViewer .page",".docx-wrapper section",".docx p",".docx li",".docx table",".markdown-body h1",".markdown-body h2",".markdown-body h3",".markdown-body h4",".markdown-body h5",".markdown-body h6",".markdown-body p",".markdown-body li",".markdown-body pre",".markdown-body table","article h1","article h2","article h3","article h4","article h5","article h6","article p","article li","article pre","article table","pre code","p","li","tr","h1","h2","h3","h4","h5","h6","pre","table"].join(","),cn=[".viewer-actions",".viewer-watermark",".state-panel",".pdf-toolbar",".pdf-nav-pane",".flyfish-search-match"].join(",")})),_t,xt,kt,fn=fe((()=>{_t=new WeakMap,xt=(l,f)=>{_t.set(l,f),l.dataset.viewerZoomProvider=l.dataset.viewerZoomProvider||"custom",l.__flyfishViewerZoomProvider=f},kt=l=>{l&&(_t.delete(l),delete l.dataset.viewerZoomProvider,delete l.__flyfishViewerZoomProvider)}})),Je=fe((()=>{un(),fn()})),hn,ar=fe((()=>{Je(),hn=["script","style","textarea","input","select","button",".viewer-actions",".viewer-watermark",".state-panel",".pdf-toolbar",".pdf-nav-pane",".flyfish-search-match",".textLayer",".annotationLayer",".xfaLayer","svg","canvas","iframe","video","audio"].join(",")})),or=fe((()=>{Je(),ar()})),At,Ct=fe((()=>{Je(),At=()=>{const l=new Set;return{emit(){l.forEach(f=>f())},subscribe(f){return l.add(f),()=>{l.delete(f)}}}}})),Ie,it=fe((()=>{Ie=l=>l.trim().replace(/^\./,"").toLowerCase()})),pn,sr,lr,St,dr,cr,ur,Et,fr,Ze,Ge=fe((()=>{pn="zh-CN",sr={"toolbar.zoomGroup":"缩放控制","toolbar.zoomOut":"缩小预览","toolbar.zoomIn":"放大预览","toolbar.zoomReset":"还原比例","toolbar.download":"下载","toolbar.downloadTitle":"下载原始文件","toolbar.print":"打印","toolbar.printTitle":"打印完整渲染内容","toolbar.exportHtml":"HTML","toolbar.exportHtmlTitle":"导出当前渲染后的 HTML","state.ready.title":"预览完成","state.ready.message":"文件内容已完成渲染。","state.empty.title":"暂无文件","state.empty.message":"请选择文件或提供可访问的文件地址后开始预览。","state.unsupported.install.title":"需要装配预览能力","state.unsupported.install.message":"{extension} 格式已在支持矩阵中,但当前项目尚未装配 {rendererLabel} renderer。","state.unsupported.install.description":"推荐安装 {presetPackage},通过 options.preset / options.renderers 注入对应能力{rendererTip};Vite 项目也可以使用 @file-viewer/vite-plugin 自动发现已安装 preset。","state.unsupported.title":"暂不支持在线预览","state.unsupported.message":"不支持{extension}格式的在线预览,请下载后预览或转换为支持的格式。","state.unsupported.description":"支持 Office、PDF、OFD、Typst、压缩包、邮件、OLB/DRA、CAD、地理数据、3D 模型、Excalidraw、draw.io、EPUB、UMD、Markdown、代码/文本、图片、音视频、字体和数据资产的在线预览","state.error.title":"预览失败","preview.downloading":"正在下载文件资源...","preview.streamingPdf":"正在建立 PDF 流式预览...","preview.reading":"正在解析文件内容...","error.download":"下载失败","error.print":"打印失败","error.exportHtml":"导出 HTML 失败","error.noDownloadSource":"当前没有可下载的源文件","error.noExportContent":"当前没有可导出的预览内容","error.printUnavailable":"当前文件类型不支持完整打印,请下载原文件后在本地应用中打印","error.printWindowBlocked":"浏览器拦截了打印窗口","error.remoteDownload":"文件下载失败","error.localRead":"读取文件异常","error.load":"加载文件异常","error.stream":"加载 PDF 流式预览异常","error.beforeOperation":"操作前置校验失败","operation.download":"下载原始文件","operation.print":"打印完整渲染内容","operation.exportHtml":"导出渲染 HTML","operation.zoomIn":"放大预览","operation.zoomOut":"缩小预览","operation.zoomReset":"还原预览比例","pdf.toolbar.toggleNavigation":"切换导航窗格","pdf.toolbar.previousPage":"上一页","pdf.toolbar.nextPage":"下一页","pdf.toolbar.fitWidth":"适合宽度","pdf.toolbar.zoomOut":"缩小","pdf.toolbar.zoomIn":"放大","pdf.toolbar.rotateLeft":"向左旋转","pdf.toolbar.rotateRight":"向右旋转","pdf.nav.typeLabel":"PDF 导航类型","pdf.nav.pagesTab":"页面","pdf.nav.outlineTab":"目录","pdf.nav.pagesTitle":"页面导航","pdf.nav.outlineTitle":"目录导航","pdf.nav.pageCount":"{count} 页","pdf.nav.itemCount":"{count} 项","pdf.nav.pageLabel":"第 {page} 页","pdf.nav.outlineEmpty":"当前 PDF 没有可用目录","pdf.nav.outlineFallbackTitle":"目录 {index}","pdf.thumbnail.alt":"第 {page} 页缩略图","pdf.state.loading":"正在加载 PDF...","pdf.error.browserWindow":"PDF 预览需要浏览器窗口","pdf.error.missingSource":"PDF 缺少可读取的数据源","pdf.error.loadFailed":"PDF 加载失败","pdf.error.notLoaded":"PDF 尚未加载完成,请稍后再试","pdf.error.unloaded":"PDF 已卸载,无法继续打印","pdf.error.canvasUnavailable":"当前浏览器无法创建 PDF 打印画布","pdf.export.pageTitle":"{title} - 第 {page} 页","spreadsheet.loading.kicker":"Excel 表格","spreadsheet.loading.title":"正在解析 Excel 工作簿","spreadsheet.loading.hint":"正在准备工作表、样式和大数据视口,请稍候。","spreadsheet.loading.streaming":"正在平滑补充可视区数据","spreadsheet.tabs.ariaLabel":"工作表列表","spreadsheet.state.parsingWorkbook":"正在解析 Excel 工作簿,请耐心等待...","spreadsheet.state.preparingSheet":"正在准备工作表内容...","spreadsheet.state.preparingSheetNamed":"正在准备「{name}」...","spreadsheet.state.cachedRows":"已缓存 {cached} / {total} 行","spreadsheet.state.rows":"共 {rows} 行,按视口预取平滑加载","spreadsheet.state.rowsAndColumns":"共 {rows} 行,{cols} 列,按视口预取平滑加载","spreadsheet.error.parseFailed":"Excel 解析失败","spreadsheet.error.workerFailed":"Excel Worker 运行失败","archive.error.nestedUnsupported":"不支持 .{type} 格式的在线预览,请下载后预览或转换为支持的格式","archive.loading.readingDirectory":"正在读取压缩包目录...","archive.loading.readingDirectoryHint":"大文件会在 Worker 中解析,避免阻塞主线程。","archive.search.placeholder":"筛选压缩包内文件","archive.sidebar.hide":"隐藏压缩包文件列表","archive.sidebar.show":"显示压缩包文件列表","archive.preview.title":"压缩包内预览","archive.preview.chooseFile":"请选择一个文件","archive.preview.downloadFile":"下载文件","archive.error.title":"压缩包预览提示","archive.stats.summary":"{count} 个文件 · {size} · {previewable} 个可直接预览","archive.warning.encrypted":"检测到加密内容,输入正确密码后即可预览;密码仅在当前会话中传递给 libarchive Worker。","archive.password.title":"请输入压缩包密码","archive.password.description":"该压缩包包含加密内容,需要密码才能继续读取目录或预览内部文件。","archive.password.placeholder":"压缩包密码","archive.password.invalid":"密码不正确或无法解密,请重新输入。","archive.password.required":"请输入密码后继续。","archive.password.cancel":"取消","archive.password.confirm":"解锁预览","archive.error.passwordRequired":"已取消输入密码,无法预览加密压缩包。","archive.error.encryptedRequiresWorker":"该压缩包包含加密内容,需要发布 libarchive Worker/WASM 后才能在线解密预览。","archive.empty.title":"选择左侧文件即可预览","archive.empty.message":"压缩包只读取目录;文件内容会在点击后按需解压,并在体积允许时缓存到 IndexedDB。","archive.loading.initializingCandidate":"正在初始化 {label}...","archive.loading.initializingCandidateHint":"如果当前服务器没有正确发布 Worker/WASM,会自动切换兼容模式。","archive.error.candidateInitTimeout":"{label} 初始化超时","archive.error.encryptedCheckTimeout":"{label} 加密检测超时","archive.loading.directoryReadyHint":"目录读取完成后,点击内部文件才会按需解压。","archive.error.candidateReadTimeout":"{label} 读取目录超时","archive.loading.workerFallback":"Worker 不可用,正在切换 ZIP/TAR 兼容模式...","archive.loading.workerFallbackHint":"兼容模式无需额外静态 Worker,适合手机 WebView 或本地临时服务器。","archive.notice.workerFallback":"当前环境的 libarchive Worker 未能启动,已自动切换到 ZIP/TAR/GZIP 兼容模式。RAR、7z 等格式仍建议发布 vendor/libarchive/worker-bundle.js 与 libarchive.wasm。","archive.error.tooLarge":"压缩包体积 {size} 超过安全上限 {limit},请下载后在本地解压。","archive.loading.initializingWorker":"正在初始化压缩包解析 Worker...","archive.loading.initializingWorkerHint":"大文件会在 Worker 中解析,避免阻塞主线程。","archive.error.workerInitFailed":"压缩包 Worker 初始化失败","archive.error.entryTooLarge":"压缩包内文件 {name} 体积 {size} 超过预览上限 {limit}。","archive.loading.extracting":"正在按需解压 {name}...","archive.loading.rendering":"正在渲染 {name}...","archive.loading.exporting":"正在导出 {name}...","media.audio.title":"音频预览","media.audio.description":"使用浏览器原生播放器打开,兼容性取决于当前浏览器支持的音频编码。","media.audio.unsupported":"当前浏览器不支持音频播放。","media.video.title":"视频预览","media.video.unsupported":"当前浏览器不支持该视频格式。","media.video.hlsHint":"HLS 会优先使用原始 URL 加载分片;如果传入的是本地单文件清单,请确保分片地址可被浏览器访问。","media.midi.title":"MIDI 文件","media.midi.loading":"正在解析 MIDI 轨道...","media.midi.trackHeader":"轨道","media.midi.instrumentHeader":"乐器","media.midi.channelHeader":"通道","media.midi.noteCountHeader":"音符数","media.midi.durationHeader":"时长","media.midi.durationStat":"时长","media.midi.trackStat":"轨道","media.midi.noteStat":"音符","media.midi.parseFailed":"MIDI 解析失败","email.mbox.subject":"{filename} · 第 1 封","email.mbox.summary":"MBOX 共识别 {count} 封邮件,当前展示第 1 封。","email.error.title":"邮件预览提示","email.meta.from":"发件人","email.meta.to":"收件人","email.meta.cc":"抄送","email.meta.date":"时间","email.tabs.text":"正文","email.tabs.headers":"头信息","email.attachments.title":"附件","email.attachments.empty":"暂无附件","email.attachments.download":"下载附件","email.attachments.opening":"正在打开附件 {name}...","email.attachments.nestedUnavailable":"当前运行环境未提供附件嵌套预览入口,请下载 {name} 后查看。","email.loading.parsing":"正在解析邮件...","data.font.sample":"Flyfish Viewer 轻量预览 AaBbCc 1234567890","data.error.fontFaceUnsupported":"当前浏览器不支持 FontFace API","data.title.font":"字体文件预览","data.title.sqlite":"SQLite 数据库预览","data.title.parquet":"Parquet 列式数据预览","data.title.avro":"Avro 对象容器预览","data.title.wasm":"WebAssembly 模块预览","data.title.eps":"EPS 矢量文件摘要","data.title.ai":"Illustrator 文件摘要","data.title.webarchive":"WebArchive 摘要预览","data.title.summary":"数据资产摘要","data.label.format":"格式","data.label.size":"大小","data.label.rendering":"渲染方式","data.label.objects":"对象数","data.label.sampleTable":"示例表","data.label.rows":"行数","data.label.columns":"列数","data.label.sampleRows":"示例行","data.label.imports":"导入","data.label.exports":"导出","data.label.magic":"Magic","data.label.note":"说明","data.label.container":"容器","data.value.schemaRead":"已读取","data.value.schemaUnread":"未读取","data.note.aiSummary":"非 PDF-compatible AI 按摘要展示","data.note.postscriptSummary":"PostScript 摘要展示","data.note.webarchive":"安全提取可读片段,不执行网页脚本","data.image.alt":"资产预览","psd.title":"PSD 图层预览","psd.action.fit":"适合","psd.action.showAll":"全显","psd.action.hideAll":"全隐","psd.layers.title":"图层","psd.layers.redrawable":"{count} 可重绘","psd.layers.empty":"未发现可展示图层,使用合成图预览。","psd.layers.hidden":"隐藏","drawing.error.viewerLoadFailed":"diagrams.net viewer 加载失败","drawing.error.excalidrawEmpty":"Excalidraw 文件中没有可预览图元","drawing.error.excalidrawTimeout":"Excalidraw 官方导出超时,自动切换 rough.js 兼容渲染","drawing.error.drawioParseFailed":"Draw.io XML 解析失败:{message}","drawing.error.drawioNoModel":"当前 Draw.io 文件没有可直接渲染的 mxGraphModel。","drawing.error.drawioNoElements":"当前 Draw.io 文件没有可预览图元。","drawing.error.viewerInitFailed":"diagrams.net viewer 未正确初始化","drawing.error.drawioTimeout":"diagrams.net 官方 Viewer 加载超时,自动切换本地 SVG 预览","drawing.error.svgParseFailed":"SVG 解析失败","drawing.error.plantumlRenderFailed":"PlantUML SVG 渲染失败:{status}","drawing.title.excalidraw":"Excalidraw 官方 SVG 预览","drawing.title.mermaid":"Mermaid SVG 预览","drawing.title.plantuml":"PlantUML SVG 预览","drawing.title.drawio":"Draw.io 离线 SVG 预览","drawing.toolbar.zoomOut":"缩小","drawing.toolbar.zoomIn":"放大","drawing.toolbar.fit":"适合","drawing.toolbar.fitWidth":"适合宽度","drawing.state.loading":"正在加载绘图预览...","text.code.loadingHighlight":"正在加载高亮...","ebook.toc":"目录","ebook.reading":"阅读中","ebook.itemCount":"{count} 项","epub.title":"EPUB 电子书","epub.previousPage":"上一页","epub.nextPage":"下一页","epub.loading":"正在解析 EPUB...","epub.chapterFallback":"章节 {index}","epub.renderIncomplete":"EPUB 正文渲染未完成,请刷新后重试","umd.title":"UMD 电子书","umd.previousChapter":"上一章","umd.nextChapter":"下一章","umd.loading":"正在解析 UMD...","umd.emptyContent":"未解析到正文内容","umd.chapterFallback":"章节 {index}","umd.galleryFallback":"图集 {index}","umd.warningBodyTooShort":"UMD 正文长度小于声明长度,文件可能不完整","umd.error.unexpectedEnd":"UMD 文件结构不完整,读取时遇到意外结尾","umd.error.invalidFile":"不是有效的 UMD 电子书文件","typst.summaryRenderer":"Typst WASM 渲染器","typst.pageSummary.empty":"0 页","typst.pageSummary.ready":"{count} 页 / {width} x {height} pt","typst.status.compiling":"正在编译","typst.status.failed":"编译失败","typst.status.rendered":"已渲染","typst.loading.title":"正在解析 Typst","typst.loading.hint":"加载编译器并生成页面预览...","typst.error.title":"Typst 渲染失败","typst.error.timeout":"Typst WASM / 字体加载或编译超过 {seconds} 秒","typst.error.timeoutHint":"请检查 Typst compiler WASM、renderer WASM、字体目录的下载速度和缓存策略;弱网或跨境部署可通过 options.typst.renderTimeoutMs 调大浏览器端加载/编译超时。","typst.error.assetHint":"Typst 需要本地 compiler / renderer WASM 和字体目录。请运行 file-viewer-copy-assets,或配置 options.typst.compilerWasmUrl / options.typst.rendererWasmUrl / options.typst.fontAssetsUrl,并确认服务器以 application/wasm 返回 WASM。","typst.error.svgParseFailed":"Typst SVG 解析失败","typst.error.wasmLoadFailed":"Typst WASM 加载失败","xmind.toolbar.zoomOut":"缩小","xmind.toolbar.zoomIn":"放大","xmind.toolbar.fit":"适合","xmind.toolbar.fitTitle":"适配画布","xmind.state.loading":"正在解析 XMind 脑图...","xmind.stats.nodes":"节点","xmind.stats.depth":"层级","xmind.stats.theme":"主题","xmind.stats.template":"模板","xmind.badge.paused":"暂停","xmind.badge.collapsed":"折叠","xmind.badge.floating":"浮动","xmind.badge.summary":"概要","xmind.badge.callout":"标注","xmind.imageResource":"图片资源: {name}","xmind.error.unrecognized":"无法识别 XMind 文件: ZIP 中未找到 content.json 或 content.xml","xmind.error.noCanvas":"XMind 文件中没有可预览的画布","cad.toolbar.fit":"适配","cad.toolbar.zoomOut":"缩小","cad.toolbar.zoomIn":"放大","cad.layers.title":"图层","cad.layers.count":"{count} 项","cad.inspector.title":"结构","cad.inspector.entities":"实体","cad.inspector.blocks":"块","cad.inspector.pages":"页面","cad.inspector.drawn":"绘制","cad.state.loadingViewer":"正在加载 CAD 预览器...","cad.state.parsing":"正在解析 CAD...","cad.error.parseFailed":"CAD 文件解析失败","image.alt":"图片","image.lightbox.alt":"图片预览","image.lightbox.close":"关闭图片预览","gitBundle.error.invalid":"当前文件不是标准 Git bundle。","gitBundle.error.missingPack":"Git bundle header 后未找到 PACK 数据。","gitBundle.notice.delta":"当前 bundle 包含 delta 压缩对象。预览器已在浏览器端解析常规 OFS_DELTA / REF_DELTA;若仍有缺失文件,通常是包体过大、对象过多或依赖外部 prerequisite。","gitBundle.title.history":"历史记录","gitBundle.title.fileTree":"文件树","gitBundle.file.choose":"选择文件查看内容","gitBundle.file.noTree":"当前 bundle 的 tree/blob 可能被 delta 压缩,暂未解析到可展开文件。","gitBundle.file.none":"未解析到文件","gitBundle.history.empty":"当前 bundle 未解析到 commit 对象,仅展示 refs 和 pack 摘要。","gitBundle.toolbar.summary":"{commits} commits · {files} files","gitBundle.meta.bundle":"Bundle","gitBundle.meta.refs":"Refs","gitBundle.meta.commits":"Commits","gitBundle.meta.objects":"Objects","gitBundle.meta.deltas":"Deltas","gitBundle.meta.objectFormat":"Object format","gitBundle.meta.objectTypes":"Object types","geo.error.unrecognized":"无法识别的 GeoJSON 数据","geo.error.xmlParseFailed":"XML 解析失败","geo.error.unsupported":"不支持 .{type} 地理格式","geo.title":"地理数据预览","geo.featureCount":"要素数","geo.bounds":"范围","geo.geometryTypes":"几何类型","geo.aria":"地理数据 SVG 预览","geo.loading":"正在解析地理数据...","model.toolbar.fit":"适配","model.toolbar.rotate":"旋转","model.toolbar.wireframe":"线框","model.toolbar.grid":"网格","model.toolbar.axes":"坐标","model.state.loadingSummary":"正在加载模型","model.state.loading":"正在解析 3D 模型...","model.state.loaded":"模型已加载","model.state.parseFailed":"模型解析失败","model.summary.meshes":"{count} 个网格","model.summary.points":"{count} 个点云","model.error.daeEmpty":"DAE 模型未解析出有效场景","model.error.unsupported":"暂不支持 .{type} 模型格式","model.error.parseFailed":"{type} 模型解析失败","model.notice.signature":"检测到文件签名: {signature}。","loading.generic.label":"文件内容","loading.generic.hint":"正在整理内容结构并生成预览。","loading.word.label":"Word 文档","loading.word.hint":"正在准备分页、文本样式和文档结构。","loading.wordWorker.hint":"正在通过 Worker 准备文档结构、文本样式和分页结果。","loading.sheet.label":"Excel 表格","loading.sheet.hint":"正在准备工作表、样式和可视区数据。","loading.csv.label":"表格数据","loading.csv.hint":"正在准备行列数据和基础样式。","loading.presentation.label":"PPT 演示文稿","loading.presentation.hint":"正在构建幻灯片布局和媒体内容。","loading.pdf.label":"PDF 文档","loading.pdf.hint":"正在载入页面位图、文本层和缩放视图。","loading.ofd.label":"OFD 版式文件","loading.ofd.hint":"正在解析国产版式文档和页面对象。","loading.archive.label":"压缩包","loading.archive.hint":"正在启动 Worker 并读取压缩包目录。","loading.email.label":"邮件文件","loading.email.hint":"正在解析邮件头、正文和附件。","loading.msg.hint":"正在解析 Outlook 邮件和附件。","loading.eda.label":"EDA 文件","loading.eda.hint":"正在读取 EDA 容器结构和可读属性。","loading.cad.label":"CAD 图纸","loading.cad.hint":"正在准备 CAD 图层、几何对象和画布视图。","loading.dwg.hint":"正在通过 Worker 加载 DWG 几何和 LibreDWG WASM。","loading.dwf.hint":"正在加载 DWF native renderer 与 W2D/W3D 图形。","loading.dwfx.hint":"正在加载 DWFx/XPS native renderer 与页面图形。","loading.xps.hint":"正在加载 XPS native renderer 与嵌入字体。","loading.drawio.label":"draw.io 图纸","loading.drawio.hint":"正在解析图元、连线和 SVG 预览。","loading.excalidraw.label":"Excalidraw 图纸","loading.excalidraw.hint":"正在解析手绘图元并生成安全 SVG。","loading.epub.label":"EPUB 电子书","loading.epub.hint":"正在解析目录、章节资源和阅读分页。","loading.umd.label":"UMD 电子书","loading.umd.hint":"正在解析移动电子书结构、目录和压缩正文。","loading.image.label":"图片文件","loading.image.hint":"正在解码像素数据并生成预览。","loading.video.label":"视频文件","loading.video.hint":"正在准备媒体资源和播放组件。","loading.audio.label":"音频文件","loading.audio.hint":"正在准备音频资源和播放控件。"},lr={"toolbar.zoomGroup":"Zoom controls","toolbar.zoomOut":"Zoom out","toolbar.zoomIn":"Zoom in","toolbar.zoomReset":"Reset zoom","toolbar.download":"Download","toolbar.downloadTitle":"Download the original file","toolbar.print":"Print","toolbar.printTitle":"Print the complete rendered document","toolbar.exportHtml":"HTML","toolbar.exportHtmlTitle":"Export the rendered HTML","state.ready.title":"Preview ready","state.ready.message":"The file has been rendered.","state.empty.title":"No file selected","state.empty.message":"Choose a file or provide an accessible URL to start previewing.","state.unsupported.install.title":"Preview capability required","state.unsupported.install.message":"{extension} is in the supported matrix, but {rendererLabel} renderer is not assembled in this project.","state.unsupported.install.description":"Install {presetPackage} and pass the capability through options.preset / options.renderers{rendererTip}. Vite projects can also use @file-viewer/vite-plugin to auto-discover installed presets.","state.unsupported.title":"Online preview is not supported yet","state.unsupported.message":"{extension} cannot be previewed online. Download it or convert it to a supported format.","state.unsupported.description":"Supports online preview for Office, PDF, OFD, Typst, archives, email, OLB/DRA, CAD, geospatial data, 3D models, Excalidraw, draw.io, EPUB, UMD, Markdown, code/text, images, audio/video, fonts, and structured data assets.","state.error.title":"Preview failed","preview.downloading":"Downloading file resources...","preview.streamingPdf":"Preparing streaming PDF preview...","preview.reading":"Parsing file content...","error.download":"Download failed","error.print":"Print failed","error.exportHtml":"HTML export failed","error.noDownloadSource":"There is no original file source to download.","error.noExportContent":"There is no rendered preview content to export.","error.printUnavailable":"This file type does not support full-document printing. Download the original file and print it locally.","error.printWindowBlocked":"The browser blocked the print window.","error.remoteDownload":"File download failed","error.localRead":"Failed to read local file","error.load":"Failed to load file","error.stream":"Failed to load streaming PDF preview","error.beforeOperation":"Before-operation check failed","operation.download":"Download original file","operation.print":"Print complete rendered content","operation.exportHtml":"Export rendered HTML","operation.zoomIn":"Zoom in","operation.zoomOut":"Zoom out","operation.zoomReset":"Reset preview zoom","pdf.toolbar.toggleNavigation":"Toggle navigation pane","pdf.toolbar.previousPage":"Previous page","pdf.toolbar.nextPage":"Next page","pdf.toolbar.fitWidth":"Fit to width","pdf.toolbar.zoomOut":"Zoom out","pdf.toolbar.zoomIn":"Zoom in","pdf.toolbar.rotateLeft":"Rotate left","pdf.toolbar.rotateRight":"Rotate right","pdf.nav.typeLabel":"PDF navigation type","pdf.nav.pagesTab":"Pages","pdf.nav.outlineTab":"Outline","pdf.nav.pagesTitle":"Page navigation","pdf.nav.outlineTitle":"Outline navigation","pdf.nav.pageCount":"{count} pages","pdf.nav.itemCount":"{count} items","pdf.nav.pageLabel":"Page {page}","pdf.nav.outlineEmpty":"This PDF has no available outline.","pdf.nav.outlineFallbackTitle":"Outline {index}","pdf.thumbnail.alt":"Page {page} thumbnail","pdf.state.loading":"Loading PDF...","pdf.error.browserWindow":"PDF preview requires a browser window","pdf.error.missingSource":"PDF has no readable data source","pdf.error.loadFailed":"Failed to load PDF","pdf.error.notLoaded":"The PDF is not loaded yet. Please try again later.","pdf.error.unloaded":"The PDF has been unloaded and cannot continue printing.","pdf.error.canvasUnavailable":"This browser cannot create a PDF print canvas.","pdf.export.pageTitle":"{title} - Page {page}","spreadsheet.loading.kicker":"Excel workbook","spreadsheet.loading.title":"Parsing Excel workbook","spreadsheet.loading.hint":"Preparing worksheets, styles, and virtualized viewport data.","spreadsheet.loading.streaming":"Loading visible worksheet data","spreadsheet.tabs.ariaLabel":"Worksheet list","spreadsheet.state.parsingWorkbook":"Parsing the Excel workbook. Please wait...","spreadsheet.state.preparingSheet":"Preparing worksheet content...","spreadsheet.state.preparingSheetNamed":"Preparing “{name}”...","spreadsheet.state.cachedRows":"Cached {cached} / {total} rows","spreadsheet.state.rows":"{rows} rows, loading smoothly by viewport","spreadsheet.state.rowsAndColumns":"{rows} rows, {cols} columns, loading smoothly by viewport","spreadsheet.error.parseFailed":"Failed to parse Excel","spreadsheet.error.workerFailed":"Excel Worker failed","archive.error.nestedUnsupported":".{type} cannot be previewed online. Download it or convert it to a supported format.","archive.loading.readingDirectory":"Reading archive directory...","archive.loading.readingDirectoryHint":"Large files are parsed in a Worker to keep the main thread responsive.","archive.search.placeholder":"Filter files inside the archive","archive.sidebar.hide":"Hide archive file list","archive.sidebar.show":"Show archive file list","archive.preview.title":"Archive entry preview","archive.preview.chooseFile":"Choose a file","archive.preview.downloadFile":"Download file","archive.error.title":"Archive preview notice","archive.stats.summary":"{count} files · {size} · {previewable} directly previewable","archive.warning.encrypted":"Encrypted content was detected. Enter the correct password to preview it; the password is passed only to the libarchive Worker for this session.","archive.password.title":"Enter archive password","archive.password.description":"This archive contains encrypted content. A password is required to read the directory or preview entries.","archive.password.placeholder":"Archive password","archive.password.invalid":"The password is incorrect or the entry could not be decrypted. Try again.","archive.password.required":"Enter a password to continue.","archive.password.cancel":"Cancel","archive.password.confirm":"Unlock preview","archive.error.passwordRequired":"Password entry was cancelled, so the encrypted archive cannot be previewed.","archive.error.encryptedRequiresWorker":"This archive contains encrypted content and requires the libarchive Worker/WASM assets for online decryption.","archive.empty.title":"Choose a file from the left to preview","archive.empty.message":"The archive directory is read first. File contents are extracted on demand and cached in IndexedDB when size allows.","archive.loading.initializingCandidate":"Initializing {label}...","archive.loading.initializingCandidateHint":"If the server does not publish Worker/WASM assets correctly, the viewer falls back automatically.","archive.error.candidateInitTimeout":"{label} initialization timed out","archive.error.encryptedCheckTimeout":"{label} encryption check timed out","archive.loading.directoryReadyHint":"After the directory is ready, click an entry to extract it on demand.","archive.error.candidateReadTimeout":"{label} directory read timed out","archive.loading.workerFallback":"Worker unavailable. Switching to ZIP/TAR compatibility mode...","archive.loading.workerFallbackHint":"Compatibility mode needs no static Worker and works well in mobile WebViews or temporary local servers.","archive.notice.workerFallback":"The libarchive Worker could not start in this environment, so ZIP/TAR/GZIP compatibility mode is active. RAR, 7z, and similar formats should still publish vendor/libarchive/worker-bundle.js and libarchive.wasm.","archive.error.tooLarge":"Archive size {size} exceeds the safety limit {limit}. Download and extract it locally.","archive.loading.initializingWorker":"Initializing archive parsing Worker...","archive.loading.initializingWorkerHint":"Large files are parsed in a Worker to keep the main thread responsive.","archive.error.workerInitFailed":"Archive Worker initialization failed","archive.error.entryTooLarge":"Entry {name} is {size}, exceeding the preview limit {limit}.","archive.loading.extracting":"Extracting {name} on demand...","archive.loading.rendering":"Rendering {name}...","archive.loading.exporting":"Exporting {name}...","media.audio.title":"Audio preview","media.audio.description":"Opened with the browser-native audio player. Codec support depends on the current browser.","media.audio.unsupported":"This browser does not support audio playback.","media.video.title":"Video preview","media.video.unsupported":"This browser does not support this video format.","media.video.hlsHint":"HLS prefers the original URL for segment loading. If the input is a local single-file playlist, make sure segment URLs are reachable by the browser.","media.midi.title":"MIDI file","media.midi.loading":"Parsing MIDI tracks...","media.midi.trackHeader":"Track","media.midi.instrumentHeader":"Instrument","media.midi.channelHeader":"Channel","media.midi.noteCountHeader":"Notes","media.midi.durationHeader":"Duration","media.midi.durationStat":"Duration","media.midi.trackStat":"Tracks","media.midi.noteStat":"Notes","media.midi.parseFailed":"Failed to parse MIDI","email.mbox.subject":"{filename} · message 1","email.mbox.summary":"Detected {count} messages in the MBOX archive. Showing message 1.","email.error.title":"Email preview notice","email.meta.from":"From","email.meta.to":"To","email.meta.cc":"Cc","email.meta.date":"Date","email.tabs.text":"Body","email.tabs.headers":"Headers","email.attachments.title":"Attachments","email.attachments.empty":"No attachments","email.attachments.download":"Download attachment","email.attachments.opening":"Opening attachment {name}...","email.attachments.nestedUnavailable":"Nested attachment preview is not available in this environment. Download {name} to inspect it.","email.loading.parsing":"Parsing email...","data.font.sample":"Flyfish Viewer preview AaBbCc 1234567890","data.error.fontFaceUnsupported":"This browser does not support the FontFace API","data.title.font":"Font file preview","data.title.sqlite":"SQLite database preview","data.title.parquet":"Parquet columnar data preview","data.title.avro":"Avro object container preview","data.title.wasm":"WebAssembly module preview","data.title.eps":"EPS vector file summary","data.title.ai":"Illustrator file summary","data.title.webarchive":"WebArchive summary preview","data.title.summary":"Data asset summary","data.label.format":"Format","data.label.size":"Size","data.label.rendering":"Renderer","data.label.objects":"Objects","data.label.sampleTable":"Sample table","data.label.rows":"Rows","data.label.columns":"Columns","data.label.sampleRows":"Sample rows","data.label.imports":"Imports","data.label.exports":"Exports","data.label.magic":"Magic","data.label.note":"Note","data.label.container":"Container","data.value.schemaRead":"Read","data.value.schemaUnread":"Not read","data.note.aiSummary":"Non PDF-compatible AI is shown as a safe summary.","data.note.postscriptSummary":"PostScript summary preview","data.note.webarchive":"Readable fragments are extracted safely. Web scripts are not executed.","data.image.alt":"Asset preview","psd.title":"PSD layer preview","psd.action.fit":"Fit","psd.action.showAll":"Show all","psd.action.hideAll":"Hide all","psd.layers.title":"Layers","psd.layers.redrawable":"{count} redrawable","psd.layers.empty":"No displayable layers were found. Showing the composite image.","psd.layers.hidden":"hidden","drawing.error.viewerLoadFailed":"Failed to load the diagrams.net viewer","drawing.error.excalidrawEmpty":"This Excalidraw file has no previewable elements","drawing.error.excalidrawTimeout":"Official Excalidraw export timed out. Falling back to the rough.js renderer.","drawing.error.drawioParseFailed":"Failed to parse Draw.io XML: {message}","drawing.error.drawioNoModel":"This Draw.io file has no directly renderable mxGraphModel.","drawing.error.drawioNoElements":"This Draw.io file has no previewable elements.","drawing.error.viewerInitFailed":"The diagrams.net viewer was not initialized correctly","drawing.error.drawioTimeout":"Official diagrams.net Viewer timed out. Falling back to the local SVG preview.","drawing.error.svgParseFailed":"Failed to parse SVG","drawing.error.plantumlRenderFailed":"Failed to render PlantUML SVG: {status}","drawing.title.excalidraw":"Official Excalidraw SVG preview","drawing.title.mermaid":"Mermaid SVG preview","drawing.title.plantuml":"PlantUML SVG preview","drawing.title.drawio":"Draw.io offline SVG preview","drawing.toolbar.zoomOut":"Zoom out","drawing.toolbar.zoomIn":"Zoom in","drawing.toolbar.fit":"Fit","drawing.toolbar.fitWidth":"Fit width","drawing.state.loading":"Loading drawing preview...","text.code.loadingHighlight":"Loading syntax highlighting...","ebook.toc":"Table of contents","ebook.reading":"Reading","ebook.itemCount":"{count} items","epub.title":"EPUB ebook","epub.previousPage":"Previous","epub.nextPage":"Next","epub.loading":"Parsing EPUB...","epub.chapterFallback":"Chapter {index}","epub.renderIncomplete":"EPUB content did not finish rendering. Refresh and try again.","umd.title":"UMD ebook","umd.previousChapter":"Previous chapter","umd.nextChapter":"Next chapter","umd.loading":"Parsing UMD...","umd.emptyContent":"No readable body content was parsed.","umd.chapterFallback":"Chapter {index}","umd.galleryFallback":"Gallery {index}","umd.warningBodyTooShort":"The UMD body is shorter than declared and may be incomplete.","umd.error.unexpectedEnd":"The UMD structure is incomplete and ended unexpectedly.","umd.error.invalidFile":"This is not a valid UMD ebook file.","typst.summaryRenderer":"Typst WASM renderer","typst.pageSummary.empty":"0 pages","typst.pageSummary.ready":"{count} pages / {width} x {height} pt","typst.status.compiling":"Compiling","typst.status.failed":"Compilation failed","typst.status.rendered":"Rendered","typst.loading.title":"Parsing Typst","typst.loading.hint":"Loading the compiler and generating page previews...","typst.error.title":"Typst render failed","typst.error.timeout":"Typst WASM / font loading or compilation exceeded {seconds} seconds","typst.error.timeoutHint":"Check the download speed and cache strategy for the Typst compiler WASM, renderer WASM, and font directory. On weak networks or cross-region deployments, increase options.typst.renderTimeoutMs.","typst.error.assetHint":"Typst requires local compiler / renderer WASM files and a font directory. Run file-viewer-copy-assets, or configure options.typst.compilerWasmUrl / options.typst.rendererWasmUrl / options.typst.fontAssetsUrl, and make sure the server returns WASM with application/wasm.","typst.error.svgParseFailed":"Failed to parse Typst SVG","typst.error.wasmLoadFailed":"Failed to load Typst WASM","xmind.toolbar.zoomOut":"Zoom out","xmind.toolbar.zoomIn":"Zoom in","xmind.toolbar.fit":"Fit","xmind.toolbar.fitTitle":"Fit canvas","xmind.state.loading":"Parsing XMind mind map...","xmind.stats.nodes":"Nodes","xmind.stats.depth":"Depth","xmind.stats.theme":"Theme","xmind.stats.template":"Template","xmind.badge.paused":"Paused","xmind.badge.collapsed":"Collapsed","xmind.badge.floating":"Floating","xmind.badge.summary":"Summary","xmind.badge.callout":"Callout","xmind.imageResource":"Image resource: {name}","xmind.error.unrecognized":"Unrecognized XMind file: content.json or content.xml was not found in the ZIP package.","xmind.error.noCanvas":"This XMind file has no previewable canvas.","cad.toolbar.fit":"Fit","cad.toolbar.zoomOut":"Zoom out","cad.toolbar.zoomIn":"Zoom in","cad.layers.title":"Layers","cad.layers.count":"{count} items","cad.inspector.title":"Structure","cad.inspector.entities":"Entities","cad.inspector.blocks":"Blocks","cad.inspector.pages":"Pages","cad.inspector.drawn":"Drawn","cad.state.loadingViewer":"Loading CAD viewer...","cad.state.parsing":"Parsing CAD...","cad.error.parseFailed":"Failed to parse CAD file","image.alt":"Image","image.lightbox.alt":"Image preview","image.lightbox.close":"Close image preview","gitBundle.error.invalid":"This file is not a valid Git bundle.","gitBundle.error.missingPack":"No PACK data was found after the Git bundle header.","gitBundle.notice.delta":"This bundle contains delta-compressed objects. The viewer resolves common OFS_DELTA / REF_DELTA objects in the browser. Missing files usually indicate a very large bundle, too many objects, or an external prerequisite.","gitBundle.title.history":"History","gitBundle.title.fileTree":"File tree","gitBundle.file.choose":"Select a file to inspect","gitBundle.file.noTree":"The tree/blob objects in this bundle may be delta-compressed, and no expandable files were parsed.","gitBundle.file.none":"No files parsed","gitBundle.history.empty":"No commit objects were parsed. Showing refs and pack summary only.","gitBundle.toolbar.summary":"{commits} commits · {files} files","gitBundle.meta.bundle":"Bundle","gitBundle.meta.refs":"Refs","gitBundle.meta.commits":"Commits","gitBundle.meta.objects":"Objects","gitBundle.meta.deltas":"Deltas","gitBundle.meta.objectFormat":"Object format","gitBundle.meta.objectTypes":"Object types","geo.error.unrecognized":"Unrecognized GeoJSON data","geo.error.xmlParseFailed":"Failed to parse XML","geo.error.unsupported":".{type} geospatial format is not supported","geo.title":"Geospatial preview","geo.featureCount":"Features","geo.bounds":"Bounds","geo.geometryTypes":"Geometry types","geo.aria":"Geospatial SVG preview","geo.loading":"Parsing geospatial data...","model.toolbar.fit":"Fit","model.toolbar.rotate":"Rotate","model.toolbar.wireframe":"Wireframe","model.toolbar.grid":"Grid","model.toolbar.axes":"Axes","model.state.loadingSummary":"Loading model","model.state.loading":"Parsing 3D model...","model.state.loaded":"Model loaded","model.state.parseFailed":"Failed to parse model","model.summary.meshes":"{count} meshes","model.summary.points":"{count} point clouds","model.error.daeEmpty":"The DAE model did not contain a valid scene.","model.error.unsupported":".{type} model format is not supported yet","model.error.parseFailed":"Failed to parse {type} model","model.notice.signature":"Detected file signature: {signature}.","loading.generic.label":"File content","loading.generic.hint":"Preparing content structure and preview.","loading.word.label":"Word document","loading.word.hint":"Preparing document structure, text styles, and layout.","loading.wordWorker.hint":"Preparing document structure, text styles, and layout in a Worker.","loading.sheet.label":"Excel workbook","loading.sheet.hint":"Preparing worksheets, styles, and viewport data.","loading.csv.label":"Tabular data","loading.csv.hint":"Preparing rows, columns, and basic styling.","loading.presentation.label":"PowerPoint deck","loading.presentation.hint":"Building slide layout and media content.","loading.pdf.label":"PDF document","loading.pdf.hint":"Loading page bitmaps, text layers, and zoom view.","loading.ofd.label":"OFD layout document","loading.ofd.hint":"Parsing OFD pages and layout objects.","loading.archive.label":"Archive","loading.archive.hint":"Starting Worker and reading archive entries.","loading.email.label":"Email file","loading.email.hint":"Parsing message headers, body, and attachments.","loading.msg.hint":"Parsing Outlook message and attachments.","loading.eda.label":"EDA file","loading.eda.hint":"Reading EDA container structure and properties.","loading.cad.label":"CAD drawing","loading.cad.hint":"Preparing CAD layers, geometry, and canvas view.","loading.dwg.hint":"Loading DWG geometry and LibreDWG WASM in a Worker.","loading.dwf.hint":"Loading native DWF renderer and W2D/W3D graphics.","loading.dwfx.hint":"Loading native DWFx/XPS renderer and page graphics.","loading.xps.hint":"Loading native XPS renderer and embedded fonts.","loading.drawio.label":"draw.io diagram","loading.drawio.hint":"Parsing shapes, connectors, and SVG preview.","loading.excalidraw.label":"Excalidraw scene","loading.excalidraw.hint":"Parsing hand-drawn elements and generating safe SVG.","loading.epub.label":"EPUB ebook","loading.epub.hint":"Parsing table of contents, chapter resources, and reading pages.","loading.umd.label":"UMD ebook","loading.umd.hint":"Parsing mobile ebook metadata, table of contents, and compressed chapters.","loading.image.label":"Image file","loading.image.hint":"Decoding pixels and generating preview.","loading.video.label":"Video file","loading.video.hint":"Preparing media resource and player.","loading.audio.label":"Audio file","loading.audio.hint":"Preparing audio resource and playback controls."},St=Object.freeze({"zh-CN":sr,"en-US":lr}),dr=()=>{var l;if(!(typeof navigator>"u"))return((l=navigator.languages)===null||l===void 0?void 0:l[0])||navigator.language},cr=l=>{const f=!l||l==="auto"?dr():l;return String(f||"zh-CN").toLowerCase().startsWith("zh")?"zh-CN":"en-US"},ur=l=>{var f;return((f=l?.i18n)===null||f===void 0?void 0:f.messages)||l?.messages},Et=l=>{var f;return cr(((f=l?.i18n)===null||f===void 0?void 0:f.locale)||l?.locale)},fr=(l,f={})=>l.replace(/\{([a-zA-Z0-9_.-]+)\}/g,(r,c)=>{const n=f[c];return n==null?"":String(n)}),Ze=(l,f,r={})=>{const c=Et(l),n=ur(l);return fr((typeof n=="function"?n(f,r,c):n?.[f])||St[c][f]||St["zh-CN"][f],r)}})),Ft=fe((()=>{Ge()})),hr,nt,at=fe((()=>{He(),it(),hr=l=>({...l,extensions:l.extensions.map(Ie)}),nt=(l=Re)=>{const f=new Map,r=new Map,c=n=>{const i=hr(n),a=f.get(i.id);a&&a.extensions.forEach(e=>{var u;((u=r.get(e))===null||u===void 0?void 0:u.id)===a.id&&r.delete(e)}),f.set(i.id,i),i.extensions.forEach(e=>{const u=r.get(e);if(u&&u.id!==i.id)throw new Error(`File extension "${e}" is already registered by renderer "${u.id}".`);r.set(e,i)})};return l.forEach(c),{register:c,unregister(n){const i=f.get(n);return i?(i.extensions.forEach(a=>{var e;((e=r.get(a))===null||e===void 0?void 0:e.id)===n&&r.delete(a)}),f.delete(n),!0):!1},getById(n){return f.get(n)},getByExtension(n){return r.get(Ie(n))},hasExtension(n){return r.has(Ie(n))},list(){return Array.from(f.values())},listExtensions(){return Array.from(r.keys()).sort()}}}})),Dt,Pt=fe((()=>{He(),at(),it(),Dt=({registry:l=nt(Re),handlers:f,fallbackHandler:r,fallbackKey:c="error"})=>{const n=Array.from(f).reduce((u,v)=>(u.set(v.rendererId,v.handler),u),new Map),i=new Map,a=[];l.list().forEach(u=>{const v=n.get(u.id);if(!v){a.push(u.id);return}u.extensions.forEach(y=>{i.set(Ie(y),v)})}),r&&c&&i.set(Ie(c),r);const e=u=>i.get(Ie(u));return{handlersByRendererId:n,handlersByExtension:i,missingRendererIds:a,get:e,resolve(u){return e(u)||(c?e(c):void 0)},has(u){return i.has(Ie(u))},listExtensions(){return Array.from(i.keys()).sort()}}}})),mn,gn,wn,Tt=fe((()=>{He(),mn=Object.freeze({download:!1,print:!1,exportHtml:!1,zoom:!1,zoomIn:!1,zoomOut:!1,zoomReset:!1}),gn=["pptx","pptm","potx","potm","ppsx","ppsm","ofd","dxf","dwg","dwf","dwfx","xps","excalidraw","drawio","dio","mermaid","mmd","plantuml","puml","umd","md","markdown","olb","dra",...vt,...yt],wn=["xlsx","xltx","xlsm","xlsb","xls","xlt","xltm","csv","ods","fods","numbers",...wt,"eml","msg","epub","mp4","mp3","mpeg","wav","ogg","oga","opus","m4a","aac","flac","weba",...bt]})),Ke=fe((()=>{Tt(),Ge(),Ft()})),bn,It,pr,mr,gr,wr,br,vr,yr,Bt,_r,ot=fe((()=>{it(),He(),Ge(),bn=Object.freeze({downloading:"正在下载文件资源...",streamingPdf:"正在建立 PDF 流式预览...",reading:"正在解析文件内容..."}),It=Object.freeze({accent:"#5f6f82",soft:"rgba(95, 111, 130, 0.12)",badge:"DOC",label:"文件内容",hint:"正在整理内容结构并生成预览。"}),pr=l=>{const f=Ie(l);return f?`.${f}`:"当前"},mr={"office-word-openxml":"@file-viewer/renderer-word","office-word-binary":"@file-viewer/renderer-word","office-presentation":"@file-viewer/renderer-presentation","open-document":"@file-viewer/renderer-word","spreadsheet-openxml":"@file-viewer/renderer-spreadsheet",pdf:"@file-viewer/renderer-pdf",ofd:"@file-viewer/renderer-ofd",typst:"@file-viewer/renderer-typst",archive:"@file-viewer/renderer-archive",email:"@file-viewer/renderer-email",eda:"@file-viewer/renderer-eda",cad:"@file-viewer/renderer-cad",model:"@file-viewer/renderer-3d",geo:"@file-viewer/renderer-geo",drawing:"@file-viewer/renderer-drawing",mindmap:"@file-viewer/renderer-mindmap",epub:"@file-viewer/renderer-epub",umd:"@file-viewer/renderer-epub",image:"@file-viewer/renderer-image",markdown:"@file-viewer/renderer-text",code:"@file-viewer/renderer-text",video:"@file-viewer/renderer-media",audio:"@file-viewer/renderer-media","data-asset":"@file-viewer/renderer-data"},gr=new Set(["office-word-openxml","office-word-binary","office-presentation","open-document","spreadsheet-openxml","pdf","ofd"]),wr=new Set(["image","markdown","code","video","audio"]),br=new Set(["typst","archive","eda","cad","model","geo","drawing","mindmap","data-asset"]),vr=l=>gr.has(l.id)?{packageName:"@file-viewer/preset-office",vitePreset:"office",label:"Office preset"}:br.has(l.id)?{packageName:"@file-viewer/preset-engineering",vitePreset:"engineering",label:"Engineering preset"}:wr.has(l.id)?{packageName:"@file-viewer/preset-lite",vitePreset:"lite",label:"Lite preset"}:{packageName:"@file-viewer/preset-all",vitePreset:"all",label:"Full preset"},yr=(l="")=>{const f=Ie(l),r=Re.find(n=>n.extensions.map(Ie).includes(f));if(!r)return null;const c=vr(r);return{extension:f,rendererId:r.id,rendererLabel:r.label,rendererCategory:r.category,rendererPackage:mr[r.id],presetPackage:c.packageName,vitePreset:c.vitePreset,presetLabel:c.label}},Bt=({state:l,extension:f="",title:r,message:c,description:n,theme:i=It,recoverable:a})=>({state:l,extension:Ie(f),title:r,message:c,description:n,theme:i,recoverable:a}),_r=(l="",f=It,r)=>{const c=pr(l),n=yr(l);if(n){const i=Et(r),a=n.rendererPackage?i==="zh-CN"?`;如果需要极致裁剪,也可以只安装 ${n.rendererPackage}`:`; for a strict custom cut, install only ${n.rendererPackage}`:"";return Bt({state:"unsupported",extension:l,title:Ze(r,"state.unsupported.install.title"),message:Ze(r,"state.unsupported.install.message",{extension:c,rendererLabel:n.rendererLabel}),description:Ze(r,"state.unsupported.install.description",{extension:c,rendererLabel:n.rendererLabel,presetPackage:n.presetPackage,vitePreset:n.vitePreset,rendererTip:a}),theme:f,recoverable:!0})}return Bt({state:"unsupported",extension:l,title:Ze(r,"state.unsupported.title"),message:Ze(r,"state.unsupported.message",{extension:c}),description:Ze(r,"state.unsupported.description"),theme:f,recoverable:!0})}})),st=fe((()=>{Ke(),ot(),Ge()})),xr,Ot,kr,Ar,Cr,zt=fe((()=>{He(),Pt(),at(),st(),xr=(l,f)=>({rendered:l,destroy:()=>f?f():Ot(l)}),Ot=l=>{if(!l||typeof l!="object")return;const f=l;if(typeof f.unmount=="function")return f.unmount();if(typeof f.$destroy=="function")return f.$destroy();if(typeof f.destroy=="function")return f.destroy()},kr=({source:l,options:f,registerExportAdapter:r,renderContext:c})=>({filename:l.filename,url:l.url,streamUrl:l.url,options:f,registerExportAdapter:r,...c}),Ar=({handler:l,getTarget:f=n=>n.surface.container,createContext:r=kr,destroy:c})=>async n=>{const{source:i}=n;if(!i.buffer)throw new Error("FileRenderHandler renderer requires an ArrayBuffer source.");const a=f(n),e=await l(i.buffer,a,i.extension,r(n));return xr(e,()=>c?c(e,n):Ot(e))},Cr=({definitions:l=Re,handlers:f,getTarget:r,createContext:c,destroy:n})=>{const i=nt(l),a=Dt({registry:i,handlers:f});return{registry:nt(i.list().map(e=>{const u=a.handlersByRendererId.get(e.id);return u?{...e,load:Ar({handler:u,getTarget:r,createContext:c,destroy:n})}:e})),dispatcher:a,missingRendererIds:a.missingRendererIds}}})),vn=gt({default:()=>yn});async function yn(l,f,r){const c=await Tr(l,r);let n=1,i=0;const a=At(),e=document.createElement("div");e.className="image-viewer",e.dataset.viewerZoomProvider="image";const u=document.createElement("div");u.className="image-stage";const v=document.createElement("img");v.alt="图片",v.src=c,u.append(v),e.append(u);const y=Br(c),A=()=>y.open();v.addEventListener("click",A),document.body.append(y.element);const k=()=>{i=e.clientHeight||0,Lt(v,i,n),a.emit()},p=new ResizeObserver(k);p.observe(e);const b=()=>({scale:n,label:`${Math.round(n*100)}%`,canZoomIn:n<5,canZoomOut:n>.1,canReset:n!==1,minScale:.1,maxScale:5}),o=w=>(n=Ir(w),Lt(v,i,n),a.emit(),b());return xt(e,{zoomIn:()=>o(n+.15),zoomOut:()=>o(n-.15),resetZoom:()=>o(1),setZoom:o,getState:b,subscribe:a.subscribe}),f.replaceChildren(Fr(),e),k(),{$el:f,unmount(){kt(e),p.disconnect(),v.removeEventListener("click",A),y.destroy(),f.replaceChildren()}}}var Sr,Er,Fr,Dr,Pr,Tr,Ir,Lt,Br,_n=fe((()=>{Je(),Ct(),Sr={avif:"image/avif",bmp:"image/bmp",gif:"image/gif",heic:"image/heic",heif:"image/heif",ico:"image/x-icon",jxl:"image/jxl",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp"},Er=`
|
|
1
|
+
(function(){var sn=Object.create,nt=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,dn=Object.getOwnPropertyNames,cn=Object.getPrototypeOf,un=Object.prototype.hasOwnProperty,fe=(o,u)=>()=>(o&&(u=o(o=0)),u),ze=(o,u)=>()=>(u||(o((u={exports:{}}).exports,u),o=null),u.exports),xt=(o,u)=>{let r={};for(var d in o)nt(r,d,{get:o[d],enumerable:!0});return u||nt(r,Symbol.toStringTag,{value:"Module"}),r},fn=(o,u,r,d)=>{if(u&&typeof u=="object"||typeof u=="function")for(var i=dn(u),n=0,a=i.length,e;n<a;n++)e=i[n],!un.call(o,e)&&e!==r&&nt(o,e,{get:(f=>u[f]).bind(null,e),enumerable:!(d=ln(u,e))||d.enumerable});return o},cr=(o,u,r)=>(r=o!=null?sn(cn(o)):{},fn(u||!o||!o.__esModule?nt(r,"default",{value:o,enumerable:!0}):r,o)),hn=fe((()=>{})),pn=fe((()=>{hn()})),kt,At,Ct,St,Ve,mn,$e=fe((()=>{kt=["zip","zipx","7z","rar","tar","gz","gzip","tgz","bz2","bzip2","tbz","tbz2","xz","txz","lzma","zst","tzst","cab","ar","cpio","iso","xar","lha","lzh","jar","war","ear","apk","cbz","cbr"],At=["glb","gltf","obj","stl","ply","fbx","dae","3ds","3mf","amf","usd","usda","usdc","usdz","kmz","step","stp","iges","igs","ifc","3dm","brep","pcd","wrl","vrml","xyz","vtk","vtp"],Ct=["txt","json","js","mjs","cjs","css","java","py","html","htm","jsx","ts","tsx","xml","log","vue","yaml","yml","ini","sh","bash","sql","go","rs","php","c","cpp","cc","h","hpp","cs","diff","patch","bundle","bdl","jsonc","json5","ipynb","toml","proto","hcl","tex","gv","http","react","rb","swift","kt"],St=["gif","jpg","jpeg","bmp","tiff","tif","png","svg","webp","avif","ico","heic","heif","jxl"],Ve=[{id:"office-word-openxml",label:"Word OpenXML",category:"office",extensions:["docx","docm","dotx","dotm"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:!0}},{id:"office-word-binary",label:"Word Binary",category:"office",extensions:["doc","dot"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:!0}},{id:"office-presentation",label:"PowerPoint",category:"office",extensions:["pptx","pptm","potx","potm","ppsx","ppsm"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"open-document",label:"Open Document",category:"office",extensions:["rtf","odt","odp"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"spreadsheet-openxml",label:"Spreadsheet",category:"office",extensions:["xlsx","xltx","xlsm","xlsb","xls","xlt","xltm","csv","ods","fods","numbers"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:"provider",search:!0}},{id:"pdf",label:"PDF",category:"document",extensions:["pdf"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:"provider"}},{id:"ofd",label:"OFD",category:"document",extensions:["ofd"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"typst",label:"Typst",category:"document",extensions:["typ","typst"],async:!0,capabilities:{download:!0,print:"adapter",exportHtml:"adapter",zoom:"provider",search:!0}},{id:"archive",label:"Archive",category:"archive",extensions:kt,async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:!1,search:!0}},{id:"email",label:"Email",category:"email",extensions:["eml","msg","mbox"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!0,zoom:!1,search:!0}},{id:"eda",label:"EDA",category:"eda",extensions:["olb","dra","gds","oas","oasis"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:!1,search:!0}},{id:"cad",label:"CAD",category:"cad",extensions:["dxf","dwg","dwf","dwfx","xps"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!1}},{id:"model",label:"3D Model",category:"model",extensions:At,async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:"provider",search:!1}},{id:"geo",label:"Geospatial",category:"geo",extensions:["geojson","kml","gpx","shp"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"drawing",label:"Drawing",category:"drawing",extensions:["excalidraw","drawio","dio","mermaid","mmd","plantuml","puml"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"mindmap",label:"Mind Map",category:"mindmap",extensions:["xmind"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"epub",label:"EPUB",category:"ebook",extensions:["epub"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!0,zoom:!1,search:"provider"}},{id:"umd",label:"UMD",category:"ebook",extensions:["umd"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!0}},{id:"image",label:"Image",category:"image",extensions:St,async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:"provider",search:!1}},{id:"markdown",label:"Markdown",category:"markdown",extensions:["md","markdown"],async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:!1,search:!0}},{id:"code",label:"Code and Text",category:"code",extensions:Ct,async:!0,capabilities:{download:!0,print:!0,exportHtml:!0,zoom:!1,search:!0}},{id:"video",label:"Video",category:"media",extensions:["mp4","webm","m3u8"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:!1,search:!1}},{id:"audio",label:"Audio",category:"media",extensions:["mp3","mpeg","wav","ogg","oga","opus","m4a","aac","flac","weba","midi","mid"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!1,zoom:!1,search:!1}},{id:"data-asset",label:"Data Asset",category:"asset",extensions:["ttf","otf","woff","woff2","psd","ai","eps","sqlite","wasm","parquet","avro","webarchive"],async:!0,capabilities:{download:!0,print:!1,exportHtml:!0,zoom:!1,search:!0}}],mn=Object.freeze(Array.from(new Set(Ve.flatMap(o=>o.extensions))).sort())})),gn,wn,bn=fe((()=>{gn=["[data-viewer-anchor-id]",".pdfViewer .page",".docx-wrapper section",".docx p",".docx li",".docx table",".markdown-body h1",".markdown-body h2",".markdown-body h3",".markdown-body h4",".markdown-body h5",".markdown-body h6",".markdown-body p",".markdown-body li",".markdown-body pre",".markdown-body table","article h1","article h2","article h3","article h4","article h5","article h6","article p","article li","article pre","article table","pre code","p","li","tr","h1","h2","h3","h4","h5","h6","pre","table"].join(","),wn=[".viewer-actions",".viewer-watermark",".state-panel",".pdf-toolbar",".pdf-nav-pane",".flyfish-search-match"].join(",")})),Et,Ft,Dt,vn=fe((()=>{Et=new WeakMap,Ft=(o,u)=>{Et.set(o,u),o.dataset.viewerZoomProvider=o.dataset.viewerZoomProvider||"custom",o.__flyfishViewerZoomProvider=u},Dt=o=>{o&&(Et.delete(o),delete o.dataset.viewerZoomProvider,delete o.__flyfishViewerZoomProvider)}})),Qe=fe((()=>{bn(),vn()})),yn,ur=fe((()=>{Qe(),yn=["script","style","textarea","input","select","button",".viewer-actions",".viewer-watermark",".state-panel",".pdf-toolbar",".pdf-nav-pane",".flyfish-search-match",".textLayer",".annotationLayer",".xfaLayer","svg","canvas","iframe","video","audio"].join(",")})),fr=fe((()=>{Qe(),ur()})),Pt,Tt=fe((()=>{Qe(),Pt=()=>{const o=new Set;return{emit(){o.forEach(u=>u())},subscribe(u){return o.add(u),()=>{o.delete(u)}}}}})),Ie,at=fe((()=>{Ie=o=>o.trim().replace(/^\./,"").toLowerCase()})),_n,hr,pr,It,mr,gr,wr,Bt,br,qe,Ye=fe((()=>{_n="zh-CN",hr={"toolbar.zoomGroup":"缩放控制","toolbar.zoomOut":"缩小预览","toolbar.zoomIn":"放大预览","toolbar.zoomReset":"还原比例","toolbar.download":"下载","toolbar.downloadTitle":"下载原始文件","toolbar.print":"打印","toolbar.printTitle":"打印完整渲染内容","toolbar.exportHtml":"HTML","toolbar.exportHtmlTitle":"导出当前渲染后的 HTML","state.ready.title":"预览完成","state.ready.message":"文件内容已完成渲染。","state.empty.title":"暂无文件","state.empty.message":"请选择文件或提供可访问的文件地址后开始预览。","state.unsupported.install.title":"需要装配预览能力","state.unsupported.install.message":"{extension} 格式已在支持矩阵中,但当前项目尚未装配 {rendererLabel} renderer。","state.unsupported.install.description":"推荐安装 {presetPackage},通过 options.preset / options.renderers 注入对应能力{rendererTip};Vite 项目也可以使用 @file-viewer/vite-plugin 自动发现已安装 preset。","state.unsupported.title":"暂不支持在线预览","state.unsupported.message":"不支持{extension}格式的在线预览,请下载后预览或转换为支持的格式。","state.unsupported.description":"支持 Office、PDF、OFD、Typst、压缩包、邮件、OLB/DRA、CAD、地理数据、3D 模型、Excalidraw、draw.io、EPUB、UMD、Markdown、代码/文本、图片、音视频、字体和数据资产的在线预览","state.error.title":"预览失败","preview.downloading":"正在下载文件资源...","preview.streamingPdf":"正在建立 PDF 流式预览...","preview.reading":"正在解析文件内容...","error.download":"下载失败","error.print":"打印失败","error.exportHtml":"导出 HTML 失败","error.noDownloadSource":"当前没有可下载的源文件","error.noExportContent":"当前没有可导出的预览内容","error.printUnavailable":"当前文件类型不支持完整打印,请下载原文件后在本地应用中打印","error.printWindowBlocked":"浏览器拦截了打印窗口","error.remoteDownload":"文件下载失败","error.localRead":"读取文件异常","error.load":"加载文件异常","error.stream":"加载 PDF 流式预览异常","error.beforeOperation":"操作前置校验失败","operation.download":"下载原始文件","operation.print":"打印完整渲染内容","operation.exportHtml":"导出渲染 HTML","operation.zoomIn":"放大预览","operation.zoomOut":"缩小预览","operation.zoomReset":"还原预览比例","pdf.toolbar.toggleNavigation":"切换导航窗格","pdf.toolbar.previousPage":"上一页","pdf.toolbar.nextPage":"下一页","pdf.toolbar.fitWidth":"适合宽度","pdf.toolbar.zoomOut":"缩小","pdf.toolbar.zoomIn":"放大","pdf.toolbar.rotateLeft":"向左旋转","pdf.toolbar.rotateRight":"向右旋转","pdf.nav.typeLabel":"PDF 导航类型","pdf.nav.pagesTab":"页面","pdf.nav.outlineTab":"目录","pdf.nav.pagesTitle":"页面导航","pdf.nav.outlineTitle":"目录导航","pdf.nav.pageCount":"{count} 页","pdf.nav.itemCount":"{count} 项","pdf.nav.pageLabel":"第 {page} 页","pdf.nav.outlineEmpty":"当前 PDF 没有可用目录","pdf.nav.outlineFallbackTitle":"目录 {index}","pdf.thumbnail.alt":"第 {page} 页缩略图","pdf.state.loading":"正在加载 PDF...","pdf.error.browserWindow":"PDF 预览需要浏览器窗口","pdf.error.missingSource":"PDF 缺少可读取的数据源","pdf.error.loadFailed":"PDF 加载失败","pdf.error.notLoaded":"PDF 尚未加载完成,请稍后再试","pdf.error.unloaded":"PDF 已卸载,无法继续打印","pdf.error.canvasUnavailable":"当前浏览器无法创建 PDF 打印画布","pdf.export.pageTitle":"{title} - 第 {page} 页","spreadsheet.loading.kicker":"Excel 表格","spreadsheet.loading.title":"正在解析 Excel 工作簿","spreadsheet.loading.hint":"正在准备工作表、样式和大数据视口,请稍候。","spreadsheet.loading.streaming":"正在平滑补充可视区数据","spreadsheet.tabs.ariaLabel":"工作表列表","spreadsheet.state.parsingWorkbook":"正在解析 Excel 工作簿,请耐心等待...","spreadsheet.state.preparingSheet":"正在准备工作表内容...","spreadsheet.state.preparingSheetNamed":"正在准备「{name}」...","spreadsheet.state.cachedRows":"已缓存 {cached} / {total} 行","spreadsheet.state.rows":"共 {rows} 行,按视口预取平滑加载","spreadsheet.state.rowsAndColumns":"共 {rows} 行,{cols} 列,按视口预取平滑加载","spreadsheet.error.parseFailed":"Excel 解析失败","spreadsheet.error.workerFailed":"Excel Worker 运行失败","archive.error.nestedUnsupported":"不支持 .{type} 格式的在线预览,请下载后预览或转换为支持的格式","archive.loading.readingDirectory":"正在读取压缩包目录...","archive.loading.readingDirectoryHint":"大文件会在 Worker 中解析,避免阻塞主线程。","archive.search.placeholder":"筛选压缩包内文件","archive.sidebar.hide":"隐藏压缩包文件列表","archive.sidebar.show":"显示压缩包文件列表","archive.preview.title":"压缩包内预览","archive.preview.chooseFile":"请选择一个文件","archive.preview.downloadFile":"下载文件","archive.error.title":"压缩包预览提示","archive.stats.summary":"{count} 个文件 · {size} · {previewable} 个可直接预览","archive.warning.encrypted":"检测到加密内容,输入正确密码后即可预览;密码仅在当前会话中传递给 libarchive Worker。","archive.password.title":"请输入压缩包密码","archive.password.description":"该压缩包包含加密内容,需要密码才能继续读取目录或预览内部文件。","archive.password.placeholder":"压缩包密码","archive.password.invalid":"密码不正确或无法解密,请重新输入。","archive.password.required":"请输入密码后继续。","archive.password.cancel":"取消","archive.password.confirm":"解锁预览","archive.error.passwordRequired":"已取消输入密码,无法预览加密压缩包。","archive.error.encryptedRequiresWorker":"该压缩包包含加密内容,需要发布 libarchive Worker/WASM 后才能在线解密预览。","archive.empty.title":"选择左侧文件即可预览","archive.empty.message":"压缩包只读取目录;文件内容会在点击后按需解压,并在体积允许时缓存到 IndexedDB。","archive.loading.initializingCandidate":"正在初始化 {label}...","archive.loading.initializingCandidateHint":"如果当前服务器没有正确发布 Worker/WASM,会自动切换兼容模式。","archive.error.candidateInitTimeout":"{label} 初始化超时","archive.error.encryptedCheckTimeout":"{label} 加密检测超时","archive.loading.directoryReadyHint":"目录读取完成后,点击内部文件才会按需解压。","archive.error.candidateReadTimeout":"{label} 读取目录超时","archive.loading.workerFallback":"Worker 不可用,正在切换 ZIP/TAR 兼容模式...","archive.loading.workerFallbackHint":"兼容模式无需额外静态 Worker,适合手机 WebView 或本地临时服务器。","archive.notice.workerFallback":"当前环境的 libarchive Worker 未能启动,已自动切换到 ZIP/TAR/GZIP 兼容模式。RAR、7z 等格式仍建议发布 vendor/libarchive/worker-bundle.js 与 libarchive.wasm。","archive.error.tooLarge":"压缩包体积 {size} 超过安全上限 {limit},请下载后在本地解压。","archive.loading.initializingWorker":"正在初始化压缩包解析 Worker...","archive.loading.initializingWorkerHint":"大文件会在 Worker 中解析,避免阻塞主线程。","archive.error.workerInitFailed":"压缩包 Worker 初始化失败","archive.error.entryTooLarge":"压缩包内文件 {name} 体积 {size} 超过预览上限 {limit}。","archive.loading.extracting":"正在按需解压 {name}...","archive.loading.rendering":"正在渲染 {name}...","archive.loading.exporting":"正在导出 {name}...","media.audio.title":"音频预览","media.audio.description":"使用浏览器原生播放器打开,兼容性取决于当前浏览器支持的音频编码。","media.audio.unsupported":"当前浏览器不支持音频播放。","media.video.title":"视频预览","media.video.unsupported":"当前浏览器不支持该视频格式。","media.video.hlsHint":"HLS 会优先使用原始 URL 加载分片;如果传入的是本地单文件清单,请确保分片地址可被浏览器访问。","media.midi.title":"MIDI 文件","media.midi.loading":"正在解析 MIDI 轨道...","media.midi.trackHeader":"轨道","media.midi.instrumentHeader":"乐器","media.midi.channelHeader":"通道","media.midi.noteCountHeader":"音符数","media.midi.durationHeader":"时长","media.midi.durationStat":"时长","media.midi.trackStat":"轨道","media.midi.noteStat":"音符","media.midi.parseFailed":"MIDI 解析失败","email.mbox.subject":"{filename} · 第 1 封","email.mbox.summary":"MBOX 共识别 {count} 封邮件,当前展示第 1 封。","email.error.title":"邮件预览提示","email.meta.from":"发件人","email.meta.to":"收件人","email.meta.cc":"抄送","email.meta.date":"时间","email.tabs.text":"正文","email.tabs.headers":"头信息","email.attachments.title":"附件","email.attachments.empty":"暂无附件","email.attachments.download":"下载附件","email.attachments.opening":"正在打开附件 {name}...","email.attachments.nestedUnavailable":"当前运行环境未提供附件嵌套预览入口,请下载 {name} 后查看。","email.loading.parsing":"正在解析邮件...","data.font.sample":"Flyfish Viewer 轻量预览 AaBbCc 1234567890","data.error.fontFaceUnsupported":"当前浏览器不支持 FontFace API","data.title.font":"字体文件预览","data.title.sqlite":"SQLite 数据库预览","data.title.parquet":"Parquet 列式数据预览","data.title.avro":"Avro 对象容器预览","data.title.wasm":"WebAssembly 模块预览","data.title.eps":"EPS 矢量文件摘要","data.title.ai":"Illustrator 文件摘要","data.title.webarchive":"WebArchive 摘要预览","data.title.summary":"数据资产摘要","data.label.format":"格式","data.label.size":"大小","data.label.rendering":"渲染方式","data.label.objects":"对象数","data.label.sampleTable":"示例表","data.label.rows":"行数","data.label.columns":"列数","data.label.sampleRows":"示例行","data.label.imports":"导入","data.label.exports":"导出","data.label.magic":"Magic","data.label.note":"说明","data.label.container":"容器","data.value.schemaRead":"已读取","data.value.schemaUnread":"未读取","data.note.aiSummary":"非 PDF-compatible AI 按摘要展示","data.note.postscriptSummary":"PostScript 摘要展示","data.note.webarchive":"安全提取可读片段,不执行网页脚本","data.image.alt":"资产预览","psd.title":"PSD 图层预览","psd.action.fit":"适合","psd.action.showAll":"全显","psd.action.hideAll":"全隐","psd.layers.title":"图层","psd.layers.redrawable":"{count} 可重绘","psd.layers.empty":"未发现可展示图层,使用合成图预览。","psd.layers.hidden":"隐藏","drawing.error.viewerLoadFailed":"diagrams.net viewer 加载失败","drawing.error.excalidrawEmpty":"Excalidraw 文件中没有可预览图元","drawing.error.excalidrawTimeout":"Excalidraw 官方导出超时,自动切换 rough.js 兼容渲染","drawing.error.drawioParseFailed":"Draw.io XML 解析失败:{message}","drawing.error.drawioNoModel":"当前 Draw.io 文件没有可直接渲染的 mxGraphModel。","drawing.error.drawioNoElements":"当前 Draw.io 文件没有可预览图元。","drawing.error.viewerInitFailed":"diagrams.net viewer 未正确初始化","drawing.error.drawioTimeout":"diagrams.net 官方 Viewer 加载超时,自动切换本地 SVG 预览","drawing.error.svgParseFailed":"SVG 解析失败","drawing.error.plantumlRenderFailed":"PlantUML SVG 渲染失败:{status}","drawing.title.excalidraw":"Excalidraw 官方 SVG 预览","drawing.title.mermaid":"Mermaid SVG 预览","drawing.title.plantuml":"PlantUML SVG 预览","drawing.title.drawio":"Draw.io 离线 SVG 预览","drawing.toolbar.zoomOut":"缩小","drawing.toolbar.zoomIn":"放大","drawing.toolbar.fit":"适合","drawing.toolbar.fitWidth":"适合宽度","drawing.state.loading":"正在加载绘图预览...","text.code.loadingHighlight":"正在加载高亮...","ebook.toc":"目录","ebook.reading":"阅读中","ebook.itemCount":"{count} 项","epub.title":"EPUB 电子书","epub.previousPage":"上一页","epub.nextPage":"下一页","epub.loading":"正在解析 EPUB...","epub.chapterFallback":"章节 {index}","epub.renderIncomplete":"EPUB 正文渲染未完成,请刷新后重试","umd.title":"UMD 电子书","umd.previousChapter":"上一章","umd.nextChapter":"下一章","umd.loading":"正在解析 UMD...","umd.emptyContent":"未解析到正文内容","umd.chapterFallback":"章节 {index}","umd.galleryFallback":"图集 {index}","umd.warningBodyTooShort":"UMD 正文长度小于声明长度,文件可能不完整","umd.error.unexpectedEnd":"UMD 文件结构不完整,读取时遇到意外结尾","umd.error.invalidFile":"不是有效的 UMD 电子书文件","typst.summaryRenderer":"Typst WASM 渲染器","typst.pageSummary.empty":"0 页","typst.pageSummary.ready":"{count} 页 / {width} x {height} pt","typst.status.compiling":"正在编译","typst.status.failed":"编译失败","typst.status.rendered":"已渲染","typst.loading.title":"正在解析 Typst","typst.loading.hint":"加载编译器并生成页面预览...","typst.error.title":"Typst 渲染失败","typst.error.timeout":"Typst WASM / 字体加载或编译超过 {seconds} 秒","typst.error.timeoutHint":"请检查 Typst compiler WASM、renderer WASM、字体目录的下载速度和缓存策略;弱网或跨境部署可通过 options.typst.renderTimeoutMs 调大浏览器端加载/编译超时。","typst.error.assetHint":"Typst 需要本地 compiler / renderer WASM 和字体目录。请运行 file-viewer-copy-assets,或配置 options.typst.compilerWasmUrl / options.typst.rendererWasmUrl / options.typst.fontAssetsUrl,并确认服务器以 application/wasm 返回 WASM。","typst.error.svgParseFailed":"Typst SVG 解析失败","typst.error.wasmLoadFailed":"Typst WASM 加载失败","xmind.toolbar.zoomOut":"缩小","xmind.toolbar.zoomIn":"放大","xmind.toolbar.fit":"适合","xmind.toolbar.fitTitle":"适配画布","xmind.state.loading":"正在解析 XMind 脑图...","xmind.stats.nodes":"节点","xmind.stats.depth":"层级","xmind.stats.theme":"主题","xmind.stats.template":"模板","xmind.badge.paused":"暂停","xmind.badge.collapsed":"折叠","xmind.badge.floating":"浮动","xmind.badge.summary":"概要","xmind.badge.callout":"标注","xmind.imageResource":"图片资源: {name}","xmind.error.unrecognized":"无法识别 XMind 文件: ZIP 中未找到 content.json 或 content.xml","xmind.error.noCanvas":"XMind 文件中没有可预览的画布","cad.toolbar.fit":"适配","cad.toolbar.zoomOut":"缩小","cad.toolbar.zoomIn":"放大","cad.layers.title":"图层","cad.layers.count":"{count} 项","cad.inspector.title":"结构","cad.inspector.entities":"实体","cad.inspector.blocks":"块","cad.inspector.pages":"页面","cad.inspector.drawn":"绘制","cad.state.loadingViewer":"正在加载 CAD 预览器...","cad.state.parsing":"正在解析 CAD...","cad.error.parseFailed":"CAD 文件解析失败","image.alt":"图片","image.lightbox.alt":"图片预览","image.lightbox.close":"关闭图片预览","gitBundle.error.invalid":"当前文件不是标准 Git bundle。","gitBundle.error.missingPack":"Git bundle header 后未找到 PACK 数据。","gitBundle.notice.delta":"当前 bundle 包含 delta 压缩对象。预览器已在浏览器端解析常规 OFS_DELTA / REF_DELTA;若仍有缺失文件,通常是包体过大、对象过多或依赖外部 prerequisite。","gitBundle.title.history":"历史记录","gitBundle.title.fileTree":"文件树","gitBundle.file.choose":"选择文件查看内容","gitBundle.file.noTree":"当前 bundle 的 tree/blob 可能被 delta 压缩,暂未解析到可展开文件。","gitBundle.file.none":"未解析到文件","gitBundle.history.empty":"当前 bundle 未解析到 commit 对象,仅展示 refs 和 pack 摘要。","gitBundle.toolbar.summary":"{commits} commits · {files} files","gitBundle.meta.bundle":"Bundle","gitBundle.meta.refs":"Refs","gitBundle.meta.commits":"Commits","gitBundle.meta.objects":"Objects","gitBundle.meta.deltas":"Deltas","gitBundle.meta.objectFormat":"Object format","gitBundle.meta.objectTypes":"Object types","geo.error.unrecognized":"无法识别的 GeoJSON 数据","geo.error.xmlParseFailed":"XML 解析失败","geo.error.unsupported":"不支持 .{type} 地理格式","geo.title":"地理数据预览","geo.featureCount":"要素数","geo.bounds":"范围","geo.geometryTypes":"几何类型","geo.aria":"地理数据 SVG 预览","geo.loading":"正在解析地理数据...","model.toolbar.fit":"适配","model.toolbar.rotate":"旋转","model.toolbar.wireframe":"线框","model.toolbar.grid":"网格","model.toolbar.axes":"坐标","model.state.loadingSummary":"正在加载模型","model.state.loading":"正在解析 3D 模型...","model.state.loaded":"模型已加载","model.state.parseFailed":"模型解析失败","model.summary.meshes":"{count} 个网格","model.summary.points":"{count} 个点云","model.error.daeEmpty":"DAE 模型未解析出有效场景","model.error.unsupported":"暂不支持 .{type} 模型格式","model.error.parseFailed":"{type} 模型解析失败","model.notice.signature":"检测到文件签名: {signature}。","loading.generic.label":"文件内容","loading.generic.hint":"正在整理内容结构并生成预览。","loading.word.label":"Word 文档","loading.word.hint":"正在准备分页、文本样式和文档结构。","loading.wordWorker.hint":"正在通过 Worker 准备文档结构、文本样式和分页结果。","loading.sheet.label":"Excel 表格","loading.sheet.hint":"正在准备工作表、样式和可视区数据。","loading.csv.label":"表格数据","loading.csv.hint":"正在准备行列数据和基础样式。","loading.presentation.label":"PPT 演示文稿","loading.presentation.hint":"正在构建幻灯片布局和媒体内容。","loading.pdf.label":"PDF 文档","loading.pdf.hint":"正在载入页面位图、文本层和缩放视图。","loading.ofd.label":"OFD 版式文件","loading.ofd.hint":"正在解析国产版式文档和页面对象。","loading.archive.label":"压缩包","loading.archive.hint":"正在启动 Worker 并读取压缩包目录。","loading.email.label":"邮件文件","loading.email.hint":"正在解析邮件头、正文和附件。","loading.msg.hint":"正在解析 Outlook 邮件和附件。","loading.eda.label":"EDA 文件","loading.eda.hint":"正在读取 EDA 容器结构和可读属性。","loading.cad.label":"CAD 图纸","loading.cad.hint":"正在准备 CAD 图层、几何对象和画布视图。","loading.dwg.hint":"正在通过 Worker 加载 DWG 几何和 LibreDWG WASM。","loading.dwf.hint":"正在加载 DWF native renderer 与 W2D/W3D 图形。","loading.dwfx.hint":"正在加载 DWFx/XPS native renderer 与页面图形。","loading.xps.hint":"正在加载 XPS native renderer 与嵌入字体。","loading.drawio.label":"draw.io 图纸","loading.drawio.hint":"正在解析图元、连线和 SVG 预览。","loading.excalidraw.label":"Excalidraw 图纸","loading.excalidraw.hint":"正在解析手绘图元并生成安全 SVG。","loading.epub.label":"EPUB 电子书","loading.epub.hint":"正在解析目录、章节资源和阅读分页。","loading.umd.label":"UMD 电子书","loading.umd.hint":"正在解析移动电子书结构、目录和压缩正文。","loading.image.label":"图片文件","loading.image.hint":"正在解码像素数据并生成预览。","loading.video.label":"视频文件","loading.video.hint":"正在准备媒体资源和播放组件。","loading.audio.label":"音频文件","loading.audio.hint":"正在准备音频资源和播放控件。"},pr={"toolbar.zoomGroup":"Zoom controls","toolbar.zoomOut":"Zoom out","toolbar.zoomIn":"Zoom in","toolbar.zoomReset":"Reset zoom","toolbar.download":"Download","toolbar.downloadTitle":"Download the original file","toolbar.print":"Print","toolbar.printTitle":"Print the complete rendered document","toolbar.exportHtml":"HTML","toolbar.exportHtmlTitle":"Export the rendered HTML","state.ready.title":"Preview ready","state.ready.message":"The file has been rendered.","state.empty.title":"No file selected","state.empty.message":"Choose a file or provide an accessible URL to start previewing.","state.unsupported.install.title":"Preview capability required","state.unsupported.install.message":"{extension} is in the supported matrix, but {rendererLabel} renderer is not assembled in this project.","state.unsupported.install.description":"Install {presetPackage} and pass the capability through options.preset / options.renderers{rendererTip}. Vite projects can also use @file-viewer/vite-plugin to auto-discover installed presets.","state.unsupported.title":"Online preview is not supported yet","state.unsupported.message":"{extension} cannot be previewed online. Download it or convert it to a supported format.","state.unsupported.description":"Supports online preview for Office, PDF, OFD, Typst, archives, email, OLB/DRA, CAD, geospatial data, 3D models, Excalidraw, draw.io, EPUB, UMD, Markdown, code/text, images, audio/video, fonts, and structured data assets.","state.error.title":"Preview failed","preview.downloading":"Downloading file resources...","preview.streamingPdf":"Preparing streaming PDF preview...","preview.reading":"Parsing file content...","error.download":"Download failed","error.print":"Print failed","error.exportHtml":"HTML export failed","error.noDownloadSource":"There is no original file source to download.","error.noExportContent":"There is no rendered preview content to export.","error.printUnavailable":"This file type does not support full-document printing. Download the original file and print it locally.","error.printWindowBlocked":"The browser blocked the print window.","error.remoteDownload":"File download failed","error.localRead":"Failed to read local file","error.load":"Failed to load file","error.stream":"Failed to load streaming PDF preview","error.beforeOperation":"Before-operation check failed","operation.download":"Download original file","operation.print":"Print complete rendered content","operation.exportHtml":"Export rendered HTML","operation.zoomIn":"Zoom in","operation.zoomOut":"Zoom out","operation.zoomReset":"Reset preview zoom","pdf.toolbar.toggleNavigation":"Toggle navigation pane","pdf.toolbar.previousPage":"Previous page","pdf.toolbar.nextPage":"Next page","pdf.toolbar.fitWidth":"Fit to width","pdf.toolbar.zoomOut":"Zoom out","pdf.toolbar.zoomIn":"Zoom in","pdf.toolbar.rotateLeft":"Rotate left","pdf.toolbar.rotateRight":"Rotate right","pdf.nav.typeLabel":"PDF navigation type","pdf.nav.pagesTab":"Pages","pdf.nav.outlineTab":"Outline","pdf.nav.pagesTitle":"Page navigation","pdf.nav.outlineTitle":"Outline navigation","pdf.nav.pageCount":"{count} pages","pdf.nav.itemCount":"{count} items","pdf.nav.pageLabel":"Page {page}","pdf.nav.outlineEmpty":"This PDF has no available outline.","pdf.nav.outlineFallbackTitle":"Outline {index}","pdf.thumbnail.alt":"Page {page} thumbnail","pdf.state.loading":"Loading PDF...","pdf.error.browserWindow":"PDF preview requires a browser window","pdf.error.missingSource":"PDF has no readable data source","pdf.error.loadFailed":"Failed to load PDF","pdf.error.notLoaded":"The PDF is not loaded yet. Please try again later.","pdf.error.unloaded":"The PDF has been unloaded and cannot continue printing.","pdf.error.canvasUnavailable":"This browser cannot create a PDF print canvas.","pdf.export.pageTitle":"{title} - Page {page}","spreadsheet.loading.kicker":"Excel workbook","spreadsheet.loading.title":"Parsing Excel workbook","spreadsheet.loading.hint":"Preparing worksheets, styles, and virtualized viewport data.","spreadsheet.loading.streaming":"Loading visible worksheet data","spreadsheet.tabs.ariaLabel":"Worksheet list","spreadsheet.state.parsingWorkbook":"Parsing the Excel workbook. Please wait...","spreadsheet.state.preparingSheet":"Preparing worksheet content...","spreadsheet.state.preparingSheetNamed":"Preparing “{name}”...","spreadsheet.state.cachedRows":"Cached {cached} / {total} rows","spreadsheet.state.rows":"{rows} rows, loading smoothly by viewport","spreadsheet.state.rowsAndColumns":"{rows} rows, {cols} columns, loading smoothly by viewport","spreadsheet.error.parseFailed":"Failed to parse Excel","spreadsheet.error.workerFailed":"Excel Worker failed","archive.error.nestedUnsupported":".{type} cannot be previewed online. Download it or convert it to a supported format.","archive.loading.readingDirectory":"Reading archive directory...","archive.loading.readingDirectoryHint":"Large files are parsed in a Worker to keep the main thread responsive.","archive.search.placeholder":"Filter files inside the archive","archive.sidebar.hide":"Hide archive file list","archive.sidebar.show":"Show archive file list","archive.preview.title":"Archive entry preview","archive.preview.chooseFile":"Choose a file","archive.preview.downloadFile":"Download file","archive.error.title":"Archive preview notice","archive.stats.summary":"{count} files · {size} · {previewable} directly previewable","archive.warning.encrypted":"Encrypted content was detected. Enter the correct password to preview it; the password is passed only to the libarchive Worker for this session.","archive.password.title":"Enter archive password","archive.password.description":"This archive contains encrypted content. A password is required to read the directory or preview entries.","archive.password.placeholder":"Archive password","archive.password.invalid":"The password is incorrect or the entry could not be decrypted. Try again.","archive.password.required":"Enter a password to continue.","archive.password.cancel":"Cancel","archive.password.confirm":"Unlock preview","archive.error.passwordRequired":"Password entry was cancelled, so the encrypted archive cannot be previewed.","archive.error.encryptedRequiresWorker":"This archive contains encrypted content and requires the libarchive Worker/WASM assets for online decryption.","archive.empty.title":"Choose a file from the left to preview","archive.empty.message":"The archive directory is read first. File contents are extracted on demand and cached in IndexedDB when size allows.","archive.loading.initializingCandidate":"Initializing {label}...","archive.loading.initializingCandidateHint":"If the server does not publish Worker/WASM assets correctly, the viewer falls back automatically.","archive.error.candidateInitTimeout":"{label} initialization timed out","archive.error.encryptedCheckTimeout":"{label} encryption check timed out","archive.loading.directoryReadyHint":"After the directory is ready, click an entry to extract it on demand.","archive.error.candidateReadTimeout":"{label} directory read timed out","archive.loading.workerFallback":"Worker unavailable. Switching to ZIP/TAR compatibility mode...","archive.loading.workerFallbackHint":"Compatibility mode needs no static Worker and works well in mobile WebViews or temporary local servers.","archive.notice.workerFallback":"The libarchive Worker could not start in this environment, so ZIP/TAR/GZIP compatibility mode is active. RAR, 7z, and similar formats should still publish vendor/libarchive/worker-bundle.js and libarchive.wasm.","archive.error.tooLarge":"Archive size {size} exceeds the safety limit {limit}. Download and extract it locally.","archive.loading.initializingWorker":"Initializing archive parsing Worker...","archive.loading.initializingWorkerHint":"Large files are parsed in a Worker to keep the main thread responsive.","archive.error.workerInitFailed":"Archive Worker initialization failed","archive.error.entryTooLarge":"Entry {name} is {size}, exceeding the preview limit {limit}.","archive.loading.extracting":"Extracting {name} on demand...","archive.loading.rendering":"Rendering {name}...","archive.loading.exporting":"Exporting {name}...","media.audio.title":"Audio preview","media.audio.description":"Opened with the browser-native audio player. Codec support depends on the current browser.","media.audio.unsupported":"This browser does not support audio playback.","media.video.title":"Video preview","media.video.unsupported":"This browser does not support this video format.","media.video.hlsHint":"HLS prefers the original URL for segment loading. If the input is a local single-file playlist, make sure segment URLs are reachable by the browser.","media.midi.title":"MIDI file","media.midi.loading":"Parsing MIDI tracks...","media.midi.trackHeader":"Track","media.midi.instrumentHeader":"Instrument","media.midi.channelHeader":"Channel","media.midi.noteCountHeader":"Notes","media.midi.durationHeader":"Duration","media.midi.durationStat":"Duration","media.midi.trackStat":"Tracks","media.midi.noteStat":"Notes","media.midi.parseFailed":"Failed to parse MIDI","email.mbox.subject":"{filename} · message 1","email.mbox.summary":"Detected {count} messages in the MBOX archive. Showing message 1.","email.error.title":"Email preview notice","email.meta.from":"From","email.meta.to":"To","email.meta.cc":"Cc","email.meta.date":"Date","email.tabs.text":"Body","email.tabs.headers":"Headers","email.attachments.title":"Attachments","email.attachments.empty":"No attachments","email.attachments.download":"Download attachment","email.attachments.opening":"Opening attachment {name}...","email.attachments.nestedUnavailable":"Nested attachment preview is not available in this environment. Download {name} to inspect it.","email.loading.parsing":"Parsing email...","data.font.sample":"Flyfish Viewer preview AaBbCc 1234567890","data.error.fontFaceUnsupported":"This browser does not support the FontFace API","data.title.font":"Font file preview","data.title.sqlite":"SQLite database preview","data.title.parquet":"Parquet columnar data preview","data.title.avro":"Avro object container preview","data.title.wasm":"WebAssembly module preview","data.title.eps":"EPS vector file summary","data.title.ai":"Illustrator file summary","data.title.webarchive":"WebArchive summary preview","data.title.summary":"Data asset summary","data.label.format":"Format","data.label.size":"Size","data.label.rendering":"Renderer","data.label.objects":"Objects","data.label.sampleTable":"Sample table","data.label.rows":"Rows","data.label.columns":"Columns","data.label.sampleRows":"Sample rows","data.label.imports":"Imports","data.label.exports":"Exports","data.label.magic":"Magic","data.label.note":"Note","data.label.container":"Container","data.value.schemaRead":"Read","data.value.schemaUnread":"Not read","data.note.aiSummary":"Non PDF-compatible AI is shown as a safe summary.","data.note.postscriptSummary":"PostScript summary preview","data.note.webarchive":"Readable fragments are extracted safely. Web scripts are not executed.","data.image.alt":"Asset preview","psd.title":"PSD layer preview","psd.action.fit":"Fit","psd.action.showAll":"Show all","psd.action.hideAll":"Hide all","psd.layers.title":"Layers","psd.layers.redrawable":"{count} redrawable","psd.layers.empty":"No displayable layers were found. Showing the composite image.","psd.layers.hidden":"hidden","drawing.error.viewerLoadFailed":"Failed to load the diagrams.net viewer","drawing.error.excalidrawEmpty":"This Excalidraw file has no previewable elements","drawing.error.excalidrawTimeout":"Official Excalidraw export timed out. Falling back to the rough.js renderer.","drawing.error.drawioParseFailed":"Failed to parse Draw.io XML: {message}","drawing.error.drawioNoModel":"This Draw.io file has no directly renderable mxGraphModel.","drawing.error.drawioNoElements":"This Draw.io file has no previewable elements.","drawing.error.viewerInitFailed":"The diagrams.net viewer was not initialized correctly","drawing.error.drawioTimeout":"Official diagrams.net Viewer timed out. Falling back to the local SVG preview.","drawing.error.svgParseFailed":"Failed to parse SVG","drawing.error.plantumlRenderFailed":"Failed to render PlantUML SVG: {status}","drawing.title.excalidraw":"Official Excalidraw SVG preview","drawing.title.mermaid":"Mermaid SVG preview","drawing.title.plantuml":"PlantUML SVG preview","drawing.title.drawio":"Draw.io offline SVG preview","drawing.toolbar.zoomOut":"Zoom out","drawing.toolbar.zoomIn":"Zoom in","drawing.toolbar.fit":"Fit","drawing.toolbar.fitWidth":"Fit width","drawing.state.loading":"Loading drawing preview...","text.code.loadingHighlight":"Loading syntax highlighting...","ebook.toc":"Table of contents","ebook.reading":"Reading","ebook.itemCount":"{count} items","epub.title":"EPUB ebook","epub.previousPage":"Previous","epub.nextPage":"Next","epub.loading":"Parsing EPUB...","epub.chapterFallback":"Chapter {index}","epub.renderIncomplete":"EPUB content did not finish rendering. Refresh and try again.","umd.title":"UMD ebook","umd.previousChapter":"Previous chapter","umd.nextChapter":"Next chapter","umd.loading":"Parsing UMD...","umd.emptyContent":"No readable body content was parsed.","umd.chapterFallback":"Chapter {index}","umd.galleryFallback":"Gallery {index}","umd.warningBodyTooShort":"The UMD body is shorter than declared and may be incomplete.","umd.error.unexpectedEnd":"The UMD structure is incomplete and ended unexpectedly.","umd.error.invalidFile":"This is not a valid UMD ebook file.","typst.summaryRenderer":"Typst WASM renderer","typst.pageSummary.empty":"0 pages","typst.pageSummary.ready":"{count} pages / {width} x {height} pt","typst.status.compiling":"Compiling","typst.status.failed":"Compilation failed","typst.status.rendered":"Rendered","typst.loading.title":"Parsing Typst","typst.loading.hint":"Loading the compiler and generating page previews...","typst.error.title":"Typst render failed","typst.error.timeout":"Typst WASM / font loading or compilation exceeded {seconds} seconds","typst.error.timeoutHint":"Check the download speed and cache strategy for the Typst compiler WASM, renderer WASM, and font directory. On weak networks or cross-region deployments, increase options.typst.renderTimeoutMs.","typst.error.assetHint":"Typst requires local compiler / renderer WASM files and a font directory. Run file-viewer-copy-assets, or configure options.typst.compilerWasmUrl / options.typst.rendererWasmUrl / options.typst.fontAssetsUrl, and make sure the server returns WASM with application/wasm.","typst.error.svgParseFailed":"Failed to parse Typst SVG","typst.error.wasmLoadFailed":"Failed to load Typst WASM","xmind.toolbar.zoomOut":"Zoom out","xmind.toolbar.zoomIn":"Zoom in","xmind.toolbar.fit":"Fit","xmind.toolbar.fitTitle":"Fit canvas","xmind.state.loading":"Parsing XMind mind map...","xmind.stats.nodes":"Nodes","xmind.stats.depth":"Depth","xmind.stats.theme":"Theme","xmind.stats.template":"Template","xmind.badge.paused":"Paused","xmind.badge.collapsed":"Collapsed","xmind.badge.floating":"Floating","xmind.badge.summary":"Summary","xmind.badge.callout":"Callout","xmind.imageResource":"Image resource: {name}","xmind.error.unrecognized":"Unrecognized XMind file: content.json or content.xml was not found in the ZIP package.","xmind.error.noCanvas":"This XMind file has no previewable canvas.","cad.toolbar.fit":"Fit","cad.toolbar.zoomOut":"Zoom out","cad.toolbar.zoomIn":"Zoom in","cad.layers.title":"Layers","cad.layers.count":"{count} items","cad.inspector.title":"Structure","cad.inspector.entities":"Entities","cad.inspector.blocks":"Blocks","cad.inspector.pages":"Pages","cad.inspector.drawn":"Drawn","cad.state.loadingViewer":"Loading CAD viewer...","cad.state.parsing":"Parsing CAD...","cad.error.parseFailed":"Failed to parse CAD file","image.alt":"Image","image.lightbox.alt":"Image preview","image.lightbox.close":"Close image preview","gitBundle.error.invalid":"This file is not a valid Git bundle.","gitBundle.error.missingPack":"No PACK data was found after the Git bundle header.","gitBundle.notice.delta":"This bundle contains delta-compressed objects. The viewer resolves common OFS_DELTA / REF_DELTA objects in the browser. Missing files usually indicate a very large bundle, too many objects, or an external prerequisite.","gitBundle.title.history":"History","gitBundle.title.fileTree":"File tree","gitBundle.file.choose":"Select a file to inspect","gitBundle.file.noTree":"The tree/blob objects in this bundle may be delta-compressed, and no expandable files were parsed.","gitBundle.file.none":"No files parsed","gitBundle.history.empty":"No commit objects were parsed. Showing refs and pack summary only.","gitBundle.toolbar.summary":"{commits} commits · {files} files","gitBundle.meta.bundle":"Bundle","gitBundle.meta.refs":"Refs","gitBundle.meta.commits":"Commits","gitBundle.meta.objects":"Objects","gitBundle.meta.deltas":"Deltas","gitBundle.meta.objectFormat":"Object format","gitBundle.meta.objectTypes":"Object types","geo.error.unrecognized":"Unrecognized GeoJSON data","geo.error.xmlParseFailed":"Failed to parse XML","geo.error.unsupported":".{type} geospatial format is not supported","geo.title":"Geospatial preview","geo.featureCount":"Features","geo.bounds":"Bounds","geo.geometryTypes":"Geometry types","geo.aria":"Geospatial SVG preview","geo.loading":"Parsing geospatial data...","model.toolbar.fit":"Fit","model.toolbar.rotate":"Rotate","model.toolbar.wireframe":"Wireframe","model.toolbar.grid":"Grid","model.toolbar.axes":"Axes","model.state.loadingSummary":"Loading model","model.state.loading":"Parsing 3D model...","model.state.loaded":"Model loaded","model.state.parseFailed":"Failed to parse model","model.summary.meshes":"{count} meshes","model.summary.points":"{count} point clouds","model.error.daeEmpty":"The DAE model did not contain a valid scene.","model.error.unsupported":".{type} model format is not supported yet","model.error.parseFailed":"Failed to parse {type} model","model.notice.signature":"Detected file signature: {signature}.","loading.generic.label":"File content","loading.generic.hint":"Preparing content structure and preview.","loading.word.label":"Word document","loading.word.hint":"Preparing document structure, text styles, and layout.","loading.wordWorker.hint":"Preparing document structure, text styles, and layout in a Worker.","loading.sheet.label":"Excel workbook","loading.sheet.hint":"Preparing worksheets, styles, and viewport data.","loading.csv.label":"Tabular data","loading.csv.hint":"Preparing rows, columns, and basic styling.","loading.presentation.label":"PowerPoint deck","loading.presentation.hint":"Building slide layout and media content.","loading.pdf.label":"PDF document","loading.pdf.hint":"Loading page bitmaps, text layers, and zoom view.","loading.ofd.label":"OFD layout document","loading.ofd.hint":"Parsing OFD pages and layout objects.","loading.archive.label":"Archive","loading.archive.hint":"Starting Worker and reading archive entries.","loading.email.label":"Email file","loading.email.hint":"Parsing message headers, body, and attachments.","loading.msg.hint":"Parsing Outlook message and attachments.","loading.eda.label":"EDA file","loading.eda.hint":"Reading EDA container structure and properties.","loading.cad.label":"CAD drawing","loading.cad.hint":"Preparing CAD layers, geometry, and canvas view.","loading.dwg.hint":"Loading DWG geometry and LibreDWG WASM in a Worker.","loading.dwf.hint":"Loading native DWF renderer and W2D/W3D graphics.","loading.dwfx.hint":"Loading native DWFx/XPS renderer and page graphics.","loading.xps.hint":"Loading native XPS renderer and embedded fonts.","loading.drawio.label":"draw.io diagram","loading.drawio.hint":"Parsing shapes, connectors, and SVG preview.","loading.excalidraw.label":"Excalidraw scene","loading.excalidraw.hint":"Parsing hand-drawn elements and generating safe SVG.","loading.epub.label":"EPUB ebook","loading.epub.hint":"Parsing table of contents, chapter resources, and reading pages.","loading.umd.label":"UMD ebook","loading.umd.hint":"Parsing mobile ebook metadata, table of contents, and compressed chapters.","loading.image.label":"Image file","loading.image.hint":"Decoding pixels and generating preview.","loading.video.label":"Video file","loading.video.hint":"Preparing media resource and player.","loading.audio.label":"Audio file","loading.audio.hint":"Preparing audio resource and playback controls."},It=Object.freeze({"zh-CN":hr,"en-US":pr}),mr=()=>{var o;if(!(typeof navigator>"u"))return((o=navigator.languages)===null||o===void 0?void 0:o[0])||navigator.language},gr=o=>{const u=!o||o==="auto"?mr():o;return String(u||"zh-CN").toLowerCase().startsWith("zh")?"zh-CN":"en-US"},wr=o=>{var u;return((u=o?.i18n)===null||u===void 0?void 0:u.messages)||o?.messages},Bt=o=>{var u;return gr(((u=o?.i18n)===null||u===void 0?void 0:u.locale)||o?.locale)},br=(o,u={})=>o.replace(/\{([a-zA-Z0-9_.-]+)\}/g,(r,d)=>{const i=u[d];return i==null?"":String(i)}),qe=(o,u,r={})=>{const d=Bt(o),i=wr(o);return br((typeof i=="function"?i(u,r,d):i?.[u])||It[d][u]||It["zh-CN"][u],r)}})),Ot=fe((()=>{Ye()})),vr,ot,st=fe((()=>{$e(),at(),vr=o=>({...o,extensions:o.extensions.map(Ie)}),ot=(o=Ve)=>{const u=new Map,r=new Map,d=i=>{const n=vr(i),a=u.get(n.id);a&&a.extensions.forEach(e=>{var f;((f=r.get(e))===null||f===void 0?void 0:f.id)===a.id&&r.delete(e)}),u.set(n.id,n),n.extensions.forEach(e=>{const f=r.get(e);if(f&&f.id!==n.id)throw new Error(`File extension "${e}" is already registered by renderer "${f.id}".`);r.set(e,n)})};return o.forEach(d),{register:d,unregister(i){const n=u.get(i);return n?(n.extensions.forEach(a=>{var e;((e=r.get(a))===null||e===void 0?void 0:e.id)===i&&r.delete(a)}),u.delete(i),!0):!1},getById(i){return u.get(i)},getByExtension(i){return r.get(Ie(i))},hasExtension(i){return r.has(Ie(i))},list(){return Array.from(u.values())},listExtensions(){return Array.from(r.keys()).sort()}}}})),zt,Lt=fe((()=>{$e(),st(),at(),zt=({registry:o=ot(Ve),handlers:u,fallbackHandler:r,fallbackKey:d="error"})=>{const i=Array.from(u).reduce((f,v)=>(f.set(v.rendererId,v.handler),f),new Map),n=new Map,a=[];o.list().forEach(f=>{const v=i.get(f.id);if(!v){a.push(f.id);return}f.extensions.forEach(y=>{n.set(Ie(y),v)})}),r&&d&&n.set(Ie(d),r);const e=f=>n.get(Ie(f));return{handlersByRendererId:i,handlersByExtension:n,missingRendererIds:a,get:e,resolve(f){return e(f)||(d?e(d):void 0)},has(f){return n.has(Ie(f))},listExtensions(){return Array.from(n.keys()).sort()}}}})),xn,kn,An,Nt=fe((()=>{$e(),xn=Object.freeze({download:!1,print:!1,exportHtml:!1,zoom:!1,zoomIn:!1,zoomOut:!1,zoomReset:!1}),kn=["pptx","pptm","potx","potm","ppsx","ppsm","ofd","dxf","dwg","dwf","dwfx","xps","excalidraw","drawio","dio","mermaid","mmd","plantuml","puml","umd","md","markdown","olb","dra",...Ct,...St],An=["xlsx","xltx","xlsm","xlsb","xls","xlt","xltm","csv","ods","fods","numbers",...kt,"eml","msg","epub","mp4","mp3","mpeg","wav","ogg","oga","opus","m4a","aac","flac","weba",...At]})),et=fe((()=>{Nt(),Ye(),Ot()})),Cn,Rt,yr,_r,xr,kr,Ar,Cr,Sr,Vt,Er,lt=fe((()=>{at(),$e(),Ye(),Cn=Object.freeze({downloading:"正在下载文件资源...",streamingPdf:"正在建立 PDF 流式预览...",reading:"正在解析文件内容..."}),Rt=Object.freeze({accent:"#5f6f82",soft:"rgba(95, 111, 130, 0.12)",badge:"DOC",label:"文件内容",hint:"正在整理内容结构并生成预览。"}),yr=o=>{const u=Ie(o);return u?`.${u}`:"当前"},_r={"office-word-openxml":"@file-viewer/renderer-word","office-word-binary":"@file-viewer/renderer-word","office-presentation":"@file-viewer/renderer-presentation","open-document":"@file-viewer/renderer-word","spreadsheet-openxml":"@file-viewer/renderer-spreadsheet",pdf:"@file-viewer/renderer-pdf",ofd:"@file-viewer/renderer-ofd",typst:"@file-viewer/renderer-typst",archive:"@file-viewer/renderer-archive",email:"@file-viewer/renderer-email",eda:"@file-viewer/renderer-eda",cad:"@file-viewer/renderer-cad",model:"@file-viewer/renderer-3d",geo:"@file-viewer/renderer-geo",drawing:"@file-viewer/renderer-drawing",mindmap:"@file-viewer/renderer-mindmap",epub:"@file-viewer/renderer-epub",umd:"@file-viewer/renderer-epub",image:"@file-viewer/renderer-image",markdown:"@file-viewer/renderer-text",code:"@file-viewer/renderer-text",video:"@file-viewer/renderer-media",audio:"@file-viewer/renderer-media","data-asset":"@file-viewer/renderer-data"},xr=new Set(["office-word-openxml","office-word-binary","office-presentation","open-document","spreadsheet-openxml","pdf","ofd"]),kr=new Set(["image","markdown","code","video","audio"]),Ar=new Set(["typst","archive","eda","cad","model","geo","drawing","mindmap","data-asset"]),Cr=o=>xr.has(o.id)?{packageName:"@file-viewer/preset-office",vitePreset:"office",label:"Office preset"}:Ar.has(o.id)?{packageName:"@file-viewer/preset-engineering",vitePreset:"engineering",label:"Engineering preset"}:kr.has(o.id)?{packageName:"@file-viewer/preset-lite",vitePreset:"lite",label:"Lite preset"}:{packageName:"@file-viewer/preset-all",vitePreset:"all",label:"Full preset"},Sr=(o="")=>{const u=Ie(o),r=Ve.find(i=>i.extensions.map(Ie).includes(u));if(!r)return null;const d=Cr(r);return{extension:u,rendererId:r.id,rendererLabel:r.label,rendererCategory:r.category,rendererPackage:_r[r.id],presetPackage:d.packageName,vitePreset:d.vitePreset,presetLabel:d.label}},Vt=({state:o,extension:u="",title:r,message:d,description:i,theme:n=Rt,recoverable:a})=>({state:o,extension:Ie(u),title:r,message:d,description:i,theme:n,recoverable:a}),Er=(o="",u=Rt,r)=>{const d=yr(o),i=Sr(o);if(i){const n=Bt(r),a=i.rendererPackage?n==="zh-CN"?`;如果需要极致裁剪,也可以只安装 ${i.rendererPackage}`:`; for a strict custom cut, install only ${i.rendererPackage}`:"";return Vt({state:"unsupported",extension:o,title:qe(r,"state.unsupported.install.title"),message:qe(r,"state.unsupported.install.message",{extension:d,rendererLabel:i.rendererLabel}),description:qe(r,"state.unsupported.install.description",{extension:d,rendererLabel:i.rendererLabel,presetPackage:i.presetPackage,vitePreset:i.vitePreset,rendererTip:a}),theme:u,recoverable:!0})}return Vt({state:"unsupported",extension:o,title:qe(r,"state.unsupported.title"),message:qe(r,"state.unsupported.message",{extension:d}),description:qe(r,"state.unsupported.description"),theme:u,recoverable:!0})}})),dt=fe((()=>{et(),lt(),Ye()})),Fr,Mt,Dr,Pr,Tr,Ut=fe((()=>{$e(),Lt(),st(),dt(),Fr=(o,u)=>({rendered:o,destroy:()=>u?u():Mt(o)}),Mt=o=>{if(!o||typeof o!="object")return;const u=o;if(typeof u.unmount=="function")return u.unmount();if(typeof u.$destroy=="function")return u.$destroy();if(typeof u.destroy=="function")return u.destroy()},Dr=({source:o,options:u,registerExportAdapter:r,renderContext:d})=>({filename:o.filename,url:o.url,streamUrl:o.url,options:u,registerExportAdapter:r,...d}),Pr=({handler:o,getTarget:u=i=>i.surface.container,createContext:r=Dr,destroy:d})=>async i=>{const{source:n}=i;if(!n.buffer)throw new Error("FileRenderHandler renderer requires an ArrayBuffer source.");const a=u(i),e=await o(n.buffer,a,n.extension,r(i));return Fr(e,()=>d?d(e,i):Mt(e))},Tr=({definitions:o=Ve,handlers:u,getTarget:r,createContext:d,destroy:i})=>{const n=ot(o),a=zt({registry:n,handlers:u});return{registry:ot(n.list().map(e=>{const f=a.handlersByRendererId.get(e.id);return f?{...e,load:Pr({handler:f,getTarget:r,createContext:d,destroy:i})}:e})),dispatcher:a,missingRendererIds:a.missingRendererIds}}})),Sn=xt({default:()=>En});async function En(o,u,r){const d=await Nr(o,r);let i=1,n=0;const a=Pt(),e=document.createElement("div");e.className="image-viewer",e.dataset.viewerZoomProvider="image";const f=document.createElement("div");f.className="image-stage";const v=document.createElement("img");v.alt="图片",v.src=d,f.append(v),e.append(f);const y=Vr(d),A=()=>y.open();v.addEventListener("click",A),document.body.append(y.element);const k=()=>{n=e.clientHeight||0,jt(v,n,i),a.emit()},p=new ResizeObserver(k);p.observe(e);const b=()=>({scale:i,label:`${Math.round(i*100)}%`,canZoomIn:i<5,canZoomOut:i>.1,canReset:i!==1,minScale:.1,maxScale:5}),s=w=>(i=Rr(w),jt(v,n,i),a.emit(),b());return Ft(e,{zoomIn:()=>s(i+.15),zoomOut:()=>s(i-.15),resetZoom:()=>s(1),setZoom:s,getState:b,subscribe:a.subscribe}),u.replaceChildren(Or(),e),k(),{$el:u,unmount(){Dt(e),p.disconnect(),v.removeEventListener("click",A),y.destroy(),u.replaceChildren()}}}var Ir,Br,Or,zr,Lr,Nr,Rr,jt,Vr,Fn=fe((()=>{Qe(),Tt(),Ir={avif:"image/avif",bmp:"image/bmp",gif:"image/gif",heic:"image/heic",heif:"image/heif",ico:"image/x-icon",jxl:"image/jxl",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp"},Br=`
|
|
2
2
|
.image-viewer{position:relative;width:100%;height:100%;overflow:auto;background:#eef1f4;box-sizing:border-box}
|
|
3
3
|
.image-stage{min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
|
|
4
4
|
.image-stage img{display:block;width:auto;max-width:none;margin:0 auto;border:0;box-shadow:0 18px 48px rgba(15,23,42,.16);background:#fff;cursor:zoom-in}
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
.file-viewer[data-viewer-theme='dark'] .image-viewer{background:#101820}
|
|
10
10
|
@media (prefers-color-scheme:dark){.file-viewer[data-viewer-theme='system'] .image-viewer{background:#101820}}
|
|
11
11
|
@media (max-width:767px){.image-stage{padding:12px}.image-lightbox{padding:16px}.image-lightbox button{top:12px;right:12px}}
|
|
12
|
-
`,Fr=()=>{const l=document.createElement("style");return l.textContent=Er,l},Dr=l=>Sr[(l||"").trim().toLowerCase()]||"image/*",Pr=async l=>await new Promise((f,r)=>{const c=new FileReader;c.onload=n=>{var i;const a=(i=n.target)===null||i===void 0?void 0:i.result;if(typeof a=="string"){f(a);return}r(new Error("Unable to read image data URL."))},c.onerror=()=>r(c.error||new Error("Unable to read image data URL.")),c.readAsDataURL(l)}),Tr=async(l,f)=>{const r=(f||"").trim().toLowerCase();if(r==="heic"||r==="heif")throw new Error("HEIC/HEIF image conversion has moved out of @file-viewer/core. Install and pass @file-viewer/renderer-image, or use @file-viewer/preset-all.");return Pr(new Blob([l],{type:Dr(r)}))},Ir=l=>Math.min(5,Math.max(.1,Number(l.toFixed(2)))),Lt=(l,f,r)=>{if(f>0){l.style.height=`${Math.max(1,Math.round(f*r))}px`;return}l.style.height=`${r*100}%`},Br=l=>{const f=document.createElement("div");f.className="image-lightbox",f.hidden=!0,f.setAttribute("role","dialog"),f.setAttribute("aria-modal","true");const r=document.createElement("img");r.alt="Preview image",r.src=l;const c=document.createElement("button");c.type="button",c.setAttribute("aria-label","Close image preview"),c.textContent="x";const n=()=>{f.hidden=!0};return c.addEventListener("click",n),r.addEventListener("click",n),f.addEventListener("click",i=>{i.target===f&&n()}),f.append(r,c),{element:f,open(){f.hidden=!1},destroy(){c.removeEventListener("click",n),r.removeEventListener("click",n),f.remove()}}}})),Or,lt,Nt,zr,Lr,Nr,Rr,Vr,Mr,dt,xn,kn,An,Ur=fe((()=>{He(),zt(),Pt(),ot(),Or=l=>({$el:l,unmount(){}}),lt=[{rendererId:"image",handler:async(l,f,r)=>{const{default:c}=await Promise.resolve().then(()=>(_n(),vn));return c(l,f,r)}}],Nt=["image"],zr=lt.filter(l=>Nt.includes(l.rendererId)),Lr=Re.filter(l=>Nt.includes(l.id)),Nr=l=>l==="none"?[]:l==="lite"?Lr:Re,Rr=l=>l==="none"?[]:l==="lite"?zr:lt,Vr=async(l,f,r)=>{const c=_r(r),n=document.createElement("div");n.style.textAlign="center",n.style.marginTop="80px";const i=document.createElement("div");if(i.textContent=c.message,n.appendChild(i),c.description){const a=document.createElement("div");a.textContent=c.description,n.appendChild(a)}return f.replaceChildren(n),Or(f)},Mr=(l={})=>{const f=l.builtinRenderers||"all",r=Cr({definitions:Nr(f),handlers:Rr(f)});return{...r,dispatcher:Dt({registry:r.registry,handlers:lt,fallbackHandler:Vr})}},dt=Mr(),xn=dt.registry,kn=dt.dispatcher,An=dt.missingRendererIds})),Cn=fe((()=>{Ge()})),Sn=fe((()=>{Ke(),st()})),En=fe((()=>{Ke()})),Fn=fe((()=>{or(),Ct(),Ft(),Tt(),Ke(),at(),zt(),Ur(),st(),ot()})),jr=fe((()=>{sn(),He(),ar(),or(),Ct(),Je(),Ft(),Ge(),at(),Ur(),Tt(),Ke(),Cn(),Sn(),En(),Pt(),zt(),it(),ot(),st(),Fn()})),Wr,Hr,Zr,Qe,$e,$r,Rt,qr,be,Vt,Gr,Mt,Xr,Yr,Jr,Kr,et,Qr,ze,Ut,Me,Le,jt=fe((()=>{Wr=l=>{let f=l.split(" "),r=[],c=0;for(;c<f.length;){if(f[c]==="M"||f[c]==="S"){let n={type:"M",x:parseFloat(f[c+1]),y:parseFloat(f[c+2])};c=c+3,r.push(n)}if(f[c]==="L"){let n={type:"L",x:parseFloat(f[c+1]),y:parseFloat(f[c+2])};c=c+3,r.push(n)}else if(f[c]==="C")r.push({type:"C",x:0,y:0}),c++;else if(f[c]==="B"){let n={type:"B",x1:parseFloat(f[c+1]),y1:parseFloat(f[c+2]),x2:parseFloat(f[c+3]),y2:parseFloat(f[c+4]),x3:parseFloat(f[c+5]),y3:parseFloat(f[c+6])};c=c+7,r.push(n)}else c++}return r},Hr=function(l){let f=[];for(let r=0;r<l.length;r++){let c=l[r];if(c.type==="M"||c.type==="L"||c.type==="C"){let n=0,i=0;n=c.x,i=c.y,c.x=be(n),c.y=be(i),f.push(c)}else if(c.type==="B"){let n=c.x1,i=c.y1,a=c.x2,e=c.y2,u=c.x3,v=c.y3,y={type:"B",x1:be(n),y1:be(i),x2:be(a),y2:be(e),x3:be(u),y3:be(v)};f.push(y)}}return f},Zr=function(l,f){return l*f/25.4},Qe=10,$e=Qe,$r=function(l){Qe=l>5?5:l},Rt=function(l){$e=l>1?l:1,$e=$e>Qe?Qe:$e},qr=function(){return $e},be=function(l){return Zr(l,$e*25.4)},Vt=function(l){if(l.indexOf("g")===-1){let f=[];for(let r of l.split(" "))f.push(parseFloat(r));return f}else{const f=l.split(" ");let r=!1,c=!1,n=0,i=[];for(const a of f)if(a==="g")r=!0;else{if(!a||a.trim().length==0)continue;if(r)n=parseInt(a),c=!0,r=!1;else if(c){for(let e=0;e<n;e++)i.push(parseFloat(a));c=!1}else i.push(parseFloat(a))}return i}},Gr=function(l){let f=0,r=0,c=[];if(!l)return c;for(let n of l){if(!n)continue;f=parseFloat(n["@_X"]),r=parseFloat(n["@_Y"]),isNaN(f)&&(f=0),isNaN(r)&&(r=0);let i=[],a=[];n["@_DeltaX"]&&n["@_DeltaX"].length>0&&(i=Vt(n["@_DeltaX"])),n["@_DeltaY"]&&n["@_DeltaY"].length>0&&(a=Vt(n["@_DeltaY"]));let e=n["#text"];if(e){e+="",e=Kr(e),e=e.replace(/ /g," ");for(let u=0;u<e.length;u++){u>0&&i.length>0&&(f+=i[u-1]),u>0&&a.length>0&&(r+=a[u-1]);let v=e.substring(u,u+1),y=c.filter(A=>A.y==be(r));if(y&&y.length)y[0].text+=v;else{let A={x:be(f),y:be(r),text:v};c.push(A)}}}}return c},Mt=function(l){return l&&l.indexOf("/")===0&&(l=l.replace("/","")),l},Xr=function(l){return!l&&typeof l!="string"?"":l.substring(l.lastIndexOf(".")+1)},Yr=/&\w+;|&#(\d+);/g,Jr={"<":"<",">":">","&":"&"," ":" ",""":'"',"©":"","'":"'"},Kr=function(l){return l=l??this.toString(),typeof l!="string"?l:l.replace(Yr,function(f,r){var c=Jr[f];return c==null&&(isNaN(r)?c=f:c=String.fromCharCode(r==160?32:r)),c})},et={楷体:"楷体, KaiTi, Kai, simkai",kaiti:"楷体, KaiTi, Kai, simkai",Kai:"楷体, KaiTi, Kai",simsun:"SimSun, simsun, Songti SC",宋体:"SimSun, simsun, Songti SC",黑体:"SimHei, STHeiti, simhei",仿宋:"FangSong, STFangsong, simfang",小标宋体:"sSun",方正小标宋_gbk:"sSun",仿宋_gb2312:"FangSong, STFangsong, simfang",楷体_gb2312:"楷体, KaiTi, Kai, simkai",couriernew:"Courier New","courier new":"Courier New"},Qr=function(l){et[l.toLowerCase()]&&(l=et[l.toLowerCase()]);for(let f of Object.keys(et))if(l.toLowerCase().indexOf(f.toLowerCase())!=-1)return et[f];return l},ze=function(l){if(l){let f=l.split(" ");return{x:parseFloat(f[0]),y:parseFloat(f[1]),w:parseFloat(f[2]),h:parseFloat(f[3])}}else return null},Ut=function(l){return l.split(" ")},Me=function(l){if(l){if(l.indexOf("#")!==-1)return l=l.replace(/#/g,""),l=l.replace(/ /g,""),l="#"+l.toString(),l;let f=l.split(" ");return`rgb(${f[0]}, ${f[1]}, ${f[2]})`}else return"rgb(0, 0, 0)"},Le=function(l){return{x:be(l.x),y:be(l.y),w:be(l.w),h:be(l.h)}}})),Wt,Ht,Zt,ct,ei,ti,Xe,ri,ii,ni,$t,ai,oi,Dn=fe((()=>{jt(),Wt=function(l,f,r){const c=r[Object.keys(r)[0]].json["ofd:Area"];let n;if(c){const e=c["ofd:PhysicalBox"];if(e)n=e;else{const u=c["ofd:ApplicationBox"];if(u)n=u;else{const v=c["ofd:ContentBox"];v&&(n=v)}}}else{let e=f["ofd:CommonData"]["ofd:PageArea"];const u=e["ofd:PhysicalBox"];if(u)n=u;else{const v=e["ofd:ApplicationBox"];if(v)n=v;else{const y=e["ofd:ContentBox"];y&&(n=y)}}}let i=n.split(" ");const a=((l-10)/parseFloat(i[2])).toFixed(1);return $r(a),Rt(a),n=ze(n),n=Le(n),n},Ht=function(l,f){const r=f[Object.keys(f)[0]].json["ofd:Area"];let c;if(r){const n=r["ofd:PhysicalBox"];if(n)c=n;else{const i=r["ofd:ApplicationBox"];if(i)c=i;else{const a=r["ofd:ContentBox"];a&&(c=a)}}}else{let n=l["ofd:CommonData"]["ofd:PageArea"];const i=n["ofd:PhysicalBox"];if(i)c=i;else{const a=n["ofd:ApplicationBox"];if(a)c=a;else{const e=n["ofd:ContentBox"];e&&(c=e)}}}return c=ze(c),c=Le(c),c},Zt=function(l,f,r,c,n,i){let a=[];const e=l[f["@_TemplateID"]].json["ofd:Content"]["ofd:Layer"];a=a.concat(e);for(let u of a)u&&Xe(r,c,n,i,u,!1)},ct=function(l,f,r,c,n,i){const a=Object.keys(f)[0],e=f[a].json["ofd:Template"];Array.isArray(e)?e.forEach(y=>{y&&Zt(r,y,l,c,n,i)}):e&&Zt(r,e,l,c,n,i);const u=f[a]?.json?.["ofd:Content"]?.["ofd:Layer"];let v=[];v=v.concat(u);for(let y of v)y&&Xe(l,c,n,i,y,!1);if(f[a].stamp){for(const y of f[a].stamp)if(y.type==="ofd")ti(l,y.obj.pages,y.obj.tpls,!0,y.stamp.stampAnnot,y.obj.fontResObj,y.obj.drawParamResObj,y.obj.multiMediaResObj,y.stamp.sealObj.SES_Signature,y.stamp.signedInfo);else if(y.type==="png"){let A=Le(y.obj.boundary);const k=Array.isArray(y.stamp.stampAnnot)?y.stamp.stampAnnot[0].pfIndex:y.stamp.stampAnnot.pfIndex;let p=$t(l.style.width,l.style.height,y.obj.img,A,y.obj.clip,!0,y.stamp.sealObj.SES_Signature,y.stamp.signedInfo,k);l.appendChild(p)}}if(f[a].annotation)for(const y of f[a].annotation)ei(l,y,c,n,i)},ei=function(l,f,r,c,n){let i=document.createElement("div");i.setAttribute("style",`overflow: hidden;z-index:${f.pfIndex};position:relative;`);let a=f.appearance?.["@_Boundary"];if(a){let u=Le(ze(a));i.setAttribute("style",`overflow: hidden;z-index:${f.pfIndex};position:absolute; left: ${u.x}px; top: ${u.y}px; width: ${u.w}px; height: ${u.h}px`)}const e=f.appearance;Xe(i,r,c,n,e,!1),l.appendChild(i)},ti=function(l,f,r,c,n,i,a,e,u,v){for(const y of f){const A=Object.keys(y)[0];let k={x:0,y:0,w:0,h:0};c&&n&&(k=n.boundary);let p=Le(k),b=document.createElement("div");b.setAttribute("name","seal_img_div"),b.setAttribute("style",`cursor: pointer; position:relative; left: ${p.x}px; top: ${p.y}px; width: ${p.w}px; height: ${p.h}px`),b.setAttribute("data-ses-signature",`${JSON.stringify(u)}`),b.setAttribute("data-signed-info",`${JSON.stringify(v)}`);const o=y[A].json["ofd:Template"];if(o){const d=r[o["@_TemplateID"]].json["ofd:Content"]["ofd:Layer"];let s=[];s=s.concat(d);for(let g of s)g&&Xe(b,i,a,e,g,c)}const w=y[A].json["ofd:Content"]["ofd:Layer"];let m=[];m=m.concat(w);for(let d of m)d&&Xe(b,i,a,e,d,c);l.appendChild(b)}},Xe=function(l,f,r,c,n,i){let a=null,e=null,u=be(.353),v=n?.["@_DrawParam"];v&&Object.keys(r).length>0&&r[v]&&(r[v].relative&&(v=r[v].relative,r[v].FillColor&&(a=Me(r[v].FillColor)),r[v].StrokeColor&&(e=Me(r[v].StrokeColor)),r[v].LineWidth&&(u=be(r[v].LineWidth))),r[v].FillColor&&(a=Me(r[v].FillColor)),r[v].StrokeColor&&(e=Me(r[v].StrokeColor)),r[v].LineWidth&&(u=be(r[v].LineWidth)));const y=n?.["ofd:ImageObject"];let A=[];A=A.concat(y);for(const w of A)if(w){let m=ri(l.style.width,l.style.height,c,w);l.appendChild(m)}const k=n?.["ofd:PathObject"];let p=[];p=p.concat(k);for(const w of p)if(w){let m=oi(r,w,a,e,u,i);l.appendChild(m)}const b=n?.["ofd:TextObject"];let o=[];o=o.concat(b);for(const w of o)if(w){let m=ai(f,w,a,e);l.appendChild(m)}},ri=function(l,f,r,c){let n=ze(c["@_Boundary"]);n=Le(n);const i=c["@_ResourceID"],a=r?r[i]:null;if(!a||typeof a!="object")return ii(n,c.pfIndex);if(a.format==="gbig2"){const e=a.img,u=a.width,v=a.height;return ni(e,u,v,n,c.pfIndex)}else return $t(l,f,a.img,n,!1,!1,null,null,c.pfIndex)},ii=function(l,f){let r=document.createElement("div");return r.setAttribute("style",`overflow: hidden; position: absolute; left: ${l.x}px; top: ${l.y}px; width: ${l.w}px; height: ${l.h}px;z-index: ${f}`),r},ni=function(l,f,r,c,n){const i=new Uint8ClampedArray(4*f*r);for(var a=0;a<l.length;a++)i[4*a]=l[a],i[4*a+1]=l[a],i[4*a+2]=l[a],i[4*a+3]=255;let e=new ImageData(i,f,r),u=document.createElement("canvas");return u.width=f,u.height=r,u.getContext("2d").putImageData(e,0,0),u.setAttribute("style",`left: ${c.x}px; top: ${c.y}px; width: ${c.w}px; height: ${c.h}px;z-index: ${n}`),u.style.position="absolute",u},$t=function(l,f,r,c,n,i,a,e,u){let v=document.createElement("div");i&&(v.setAttribute("name","seal_img_div"),v.setAttribute("data-ses-signature",`${JSON.stringify(a)}`),v.setAttribute("data-signed-info",`${JSON.stringify(e)}`));let y=document.createElement("img");y.src=r,y.setAttribute("width","100%"),y.setAttribute("height","100%"),v.appendChild(y);const A=parseFloat(l.replace("px","")),k=parseFloat(f.replace("px","")),p=c.w>A?A:c.w,b=c.h>k?k:c.h;let o="";return n&&(n=Le(n),o=`clip: rect(${n.y}px, ${n.w+n.x}px, ${n.h+n.y}px, ${n.x}px)`),v.setAttribute("style",`cursor: pointer; overflow: hidden; position: absolute; left: ${o?c.x:c.x<0?0:c.x}px; top: ${o?c.y:c.y<0?0:c.y}px; width: ${p}px; height: ${b}px; ${o};z-index: ${u}`),v},ai=function(l,f,r,c){let n=1,i=ze(f["@_Boundary"]);i=Le(i);const a=f["@_CTM"],e=f["@_HScale"],u=f["@_Font"],v=f["@_Weight"],y=be(parseFloat(f["@_Size"]));let A=[];A=A.concat(f["ofd:TextCode"]);const k=Gr(A);let p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("version","1.1");const b=f["ofd:FillColor"];if(b){r=Me(b["@_Value"]);let s=b["@_Alpha"];s&&(n=s>1?s/255:s)}for(const s of k)if(s&&!isNaN(s.x)){let g=document.createElementNS("http://www.w3.org/2000/svg","text");if(g.setAttribute("x",s.x),g.setAttribute("y",s.y),g.innerHTML=s.text,a){const C=Ut(a);g.setAttribute("transform",`matrix(${C[0]} ${C[1]} ${C[2]} ${C[3]} ${be(C[4])} ${be(C[5])})`)}e&&g.setAttribute("transform",`matrix(${e}, 0, 0, 1, ${(1-e)*s.x}, 0)`),g.setAttribute("fill",c),g.setAttribute("fill",r),g.setAttribute("fill-opacity",n),g.setAttribute("style",`font-weight: ${v};font-size:${y}px;font-family: ${Qr(l[u])};`),p.appendChild(g)}let o=i.w,w=i.h,m=i.x,d=i.y;return p.setAttribute("style",`overflow:visible;position:absolute;width:${o}px;height:${w}px;left:${m}px;top:${d}px;z-index:${f.pfIndex}`),p},oi=function(l,f,r,c,n,i){let a=ze(f["@_Boundary"]);a=Le(a);let e=f["@_LineWidth"];const u=f["ofd:AbbreviatedData"],v=Hr(Wr(u)),y=f["@_CTM"];let A=document.createElementNS("http://www.w3.org/2000/svg","svg");A.setAttribute("version","1.1");let k=document.createElementNS("http://www.w3.org/2000/svg","path");e&&(n=be(e));const p=f["@_DrawParam"];if(p&&(e=l[p].LineWidth,e&&(n=be(e))),y){const D=Ut(y);k.setAttribute("transform",`matrix(${D[0]} ${D[1]} ${D[2]} ${D[3]} ${be(D[4])} ${be(D[5])})`)}let b="";const o=f["ofd:StrokeColor"];o&&(c=Me(o["@_Value"]));let w="fill: none;";const m=f["ofd:FillColor"];m&&(r=Me(m["@_Value"])),n>0&&!c&&(c=r,c||(c="rgb(0, 0, 0)")),b=`stroke:${c};stroke-width:${n}px;`,f["@_Stroke"]=="false"&&(b=""),f["@_Fill"]!="false"&&(w=`fill:${i?"none":r||"none"};`),k.setAttribute("style",`${b};${w}`);let d="";for(const D of v)D.type==="M"?d+=`M${D.x} ${D.y} `:D.type==="L"?d+=`L${D.x} ${D.y} `:D.type==="B"?d+=`C${D.x1} ${D.y1} ${D.x2} ${D.y2} ${D.x3} ${D.y3} `:D.type==="C"&&(d+="Z");k.setAttribute("d",d),A.appendChild(k);let s=i?a.w:Math.ceil(a.w),g=i?a.h:Math.ceil(a.h),C=a.x,F=a.y;return A.setAttribute("style",`overflow:visible;position:absolute;width:${s}px;height:${g}px;left:${C}px;top:${F}px;z-index:${f.pfIndex}`),A}})),si,li,Pn=fe((()=>{Array.prototype.pipeline=async function(l){if(this===null||typeof this>"u")throw new TypeError("Array.prototype.pipeline called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var f,r,c=this.length>>>0;for(f=0;c>f;++f)r=await l(r,this[f],f,this);return r},si=function(...l){return l.pipeline((f,r)=>r.call(this,f))},li=si})),Tn=Oe(((l,f)=>{(function(r){typeof l=="object"&&typeof f<"u"?f.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=r()})(function(){return(function r(c,n,i){function a(v,y){if(!n[v]){if(!c[v]){var A=typeof require=="function"&&require;if(!y&&A)return A(v,!0);if(e)return e(v,!0);var k=new Error("Cannot find module '"+v+"'");throw k.code="MODULE_NOT_FOUND",k}var p=n[v]={exports:{}};c[v][0].call(p.exports,function(b){var o=c[v][1][b];return a(o||b)},p,p.exports,r,c,n,i)}return n[v].exports}for(var e=typeof require=="function"&&require,u=0;u<i.length;u++)a(i[u]);return a})({1:[function(r,c,n){"use strict";var i=r("./utils"),a=r("./support"),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(u){for(var v,y,A,k,p,b,o,w=[],m=0,d=u.length,s=d,g=i.getTypeOf(u)!=="string";m<u.length;)s=d-m,A=g?(v=u[m++],y=m<d?u[m++]:0,m<d?u[m++]:0):(v=u.charCodeAt(m++),y=m<d?u.charCodeAt(m++):0,m<d?u.charCodeAt(m++):0),k=v>>2,p=(3&v)<<4|y>>4,b=1<s?(15&y)<<2|A>>6:64,o=2<s?63&A:64,w.push(e.charAt(k)+e.charAt(p)+e.charAt(b)+e.charAt(o));return w.join("")},n.decode=function(u){var v,y,A,k,p,b,o=0,w=0,m="data:";if(u.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var d,s=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===e.charAt(64)&&s--,u.charAt(u.length-2)===e.charAt(64)&&s--,s%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=a.uint8array?new Uint8Array(0|s):new Array(0|s);o<u.length;)v=e.indexOf(u.charAt(o++))<<2|(k=e.indexOf(u.charAt(o++)))>>4,y=(15&k)<<4|(p=e.indexOf(u.charAt(o++)))>>2,A=(3&p)<<6|(b=e.indexOf(u.charAt(o++))),d[w++]=v,p!==64&&(d[w++]=y),b!==64&&(d[w++]=A);return d}},{"./support":30,"./utils":32}],2:[function(r,c,n){"use strict";var i=r("./external"),a=r("./stream/DataWorker"),e=r("./stream/Crc32Probe"),u=r("./stream/DataLengthProbe");function v(y,A,k,p,b){this.compressedSize=y,this.uncompressedSize=A,this.crc32=k,this.compression=p,this.compressedContent=b}v.prototype={getContentWorker:function(){var y=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),A=this;return y.on("end",function(){if(this.streamInfo.data_length!==A.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(y,A,k){return y.pipe(new e).pipe(new u("uncompressedSize")).pipe(A.compressWorker(k)).pipe(new u("compressedSize")).withStreamInfo("compression",A)},c.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,c,n){"use strict";var i=r("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,c,n){"use strict";var i=r("./utils"),a=(function(){for(var e,u=[],v=0;v<256;v++){e=v;for(var y=0;y<8;y++)e=1&e?3988292384^e>>>1:e>>>1;u[v]=e}return u})();c.exports=function(e,u){return e!==void 0&&e.length?i.getTypeOf(e)!=="string"?(function(v,y,A,k){var p=a,b=k+A;v^=-1;for(var o=k;o<b;o++)v=v>>>8^p[255&(v^y[o])];return-1^v})(0|u,e,e.length,0):(function(v,y,A,k){var p=a,b=k+A;v^=-1;for(var o=k;o<b;o++)v=v>>>8^p[255&(v^y.charCodeAt(o))];return-1^v})(0|u,e,e.length,0):0}},{"./utils":32}],5:[function(r,c,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(r,c,n){"use strict";var i=null;i=typeof Promise<"u"?Promise:r("lie"),c.exports={Promise:i}},{lie:37}],7:[function(r,c,n){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=r("pako"),e=r("./utils"),u=r("./stream/GenericWorker"),v=i?"uint8array":"array";function y(A,k){u.call(this,"FlateWorker/"+A),this._pako=null,this._pakoAction=A,this._pakoOptions=k,this.meta={}}n.magic="\b\0",e.inherits(y,u),y.prototype.processChunk=function(A){this.meta=A.meta,this._pako===null&&this._createPako(),this._pako.push(e.transformTo(v,A.data),!1)},y.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var A=this;this._pako.onData=function(k){A.push({data:k,meta:A.meta})}},n.compressWorker=function(A){return new y("Deflate",A)},n.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,c,n){"use strict";function i(p,b){var o,w="";for(o=0;o<b;o++)w+=String.fromCharCode(255&p),p>>>=8;return w}function a(p,b,o,w,m,d){var s,g,C=p.file,F=p.compression,D=d!==v.utf8encode,q=e.transformTo("string",d(C.name)),L=e.transformTo("string",v.utf8encode(C.name)),ne=C.comment,re=e.transformTo("string",d(ne)),P=e.transformTo("string",v.utf8encode(ne)),U=L.length!==C.name.length,h=P.length!==ne.length,$="",oe="",J="",ue=C.dir,ie=C.date,le={crc32:0,compressedSize:0,uncompressedSize:0};b&&!o||(le.crc32=p.crc32,le.compressedSize=p.compressedSize,le.uncompressedSize=p.uncompressedSize);var Z=0;b&&(Z|=8),D||!U&&!h||(Z|=2048);var j=0,S=0;ue&&(j|=16),m==="UNIX"?(S=798,j|=(function(E,R){var N=E;return E||(N=R?16893:33204),(65535&N)<<16})(C.unixPermissions,ue)):(S=20,j|=(function(E){return 63&(E||0)})(C.dosPermissions)),s=ie.getUTCHours(),s<<=6,s|=ie.getUTCMinutes(),s<<=5,s|=ie.getUTCSeconds()/2,g=ie.getUTCFullYear()-1980,g<<=4,g|=ie.getUTCMonth()+1,g<<=5,g|=ie.getUTCDate(),U&&(oe=i(1,1)+i(y(q),4)+L,$+="up"+i(oe.length,2)+oe),h&&(J=i(1,1)+i(y(re),4)+P,$+="uc"+i(J.length,2)+J);var T="";return T+=`
|
|
13
|
-
\0`,T+=i(Z,2),T+=F.magic,T+=i(s,2),T+=i(g,2),T+=i(le.crc32,4),T+=i(le.compressedSize,4),T+=i(le.uncompressedSize,4),T+=i(q.length,2),T+=i($.length,2),{fileRecord:A.LOCAL_FILE_HEADER+T+q+$,dirRecord:A.CENTRAL_FILE_HEADER+i(S,2)+T+i(re.length,2)+"\0\0\0\0"+i(j,4)+i(w,4)+q+$+re}}var e=r("../utils"),u=r("../stream/GenericWorker"),v=r("../utf8"),y=r("../crc32"),A=r("../signature");function k(p,b,o,w){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=o,this.encodeFileName=w,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(k,u),k.prototype.push=function(p){var b=p.meta.percent||0,o=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,u.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:o?(b+100*(o-w-1))/o:100}}))},k.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var b=this.streamFiles&&!p.file.dir;if(b){var o=a(p,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:o.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(p){this.accumulate=!1;var b=this.streamFiles&&!p.file.dir,o=a(p,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),b)this.push({data:(function(w){return A.DATA_DESCRIPTOR+i(w.crc32,4)+i(w.compressedSize,4)+i(w.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var p=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var o=this.bytesWritten-p,w=(function(m,d,s,g,C){var F=e.transformTo("string",C(g));return A.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(m,2)+i(m,2)+i(d,4)+i(s,4)+i(F.length,2)+F})(this.dirRecords.length,o,p,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(p){this._sources.push(p);var b=this;return p.on("data",function(o){b.processChunk(o)}),p.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),p.on("error",function(o){b.error(o)}),this},k.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(p){var b=this._sources;if(!u.prototype.error.call(this,p))return!1;for(var o=0;o<b.length;o++)try{b[o].error(p)}catch{}return!0},k.prototype.lock=function(){u.prototype.lock.call(this);for(var p=this._sources,b=0;b<p.length;b++)p[b].lock()},c.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,c,n){"use strict";var i=r("../compressions"),a=r("./ZipFileWorker");n.generateWorker=function(e,u,v){var y=new a(u.streamFiles,v,u.platform,u.encodeFileName),A=0;try{e.forEach(function(k,p){A++;var b=(function(d,s){var g=d||s,C=i[g];if(!C)throw new Error(g+" is not a valid compression method !");return C})(p.options.compression,u.compression),o=p.options.compressionOptions||u.compressionOptions||{},w=p.dir,m=p.date;p._compressWorker(b,o).withStreamInfo("file",{name:k,dir:w,date:m,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(y)}),y.entriesCount=A}catch(k){y.error(k)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,c,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var e in this)typeof this[e]!="function"&&(a[e]=this[e]);return a}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(a,e){return new i().loadAsync(a,e)},i.external=r("./external"),c.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,c,n){"use strict";var i=r("./utils"),a=r("./external"),e=r("./utf8"),u=r("./zipEntries"),v=r("./stream/Crc32Probe"),y=r("./nodejsUtils");function A(k){return new a.Promise(function(p,b){var o=k.decompressed.getContentWorker().pipe(new v);o.on("error",function(w){b(w)}).on("end",function(){o.streamInfo.crc32!==k.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}c.exports=function(k,p){var b=this;return p=i.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),y.isNode&&y.isStream(k)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",k,!0,p.optimizedBinaryString,p.base64).then(function(o){var w=new u(p);return w.load(o),w}).then(function(o){var w=[a.Promise.resolve(o)],m=o.files;if(p.checkCRC32)for(var d=0;d<m.length;d++)w.push(A(m[d]));return a.Promise.all(w)}).then(function(o){for(var w=o.shift(),m=w.files,d=0;d<m.length;d++){var s=m[d],g=s.fileNameStr,C=i.resolve(s.fileNameStr);b.file(C,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:p.createFolders}),s.dir||(b.file(C).unsafeOriginalName=g)}return w.zipComment.length&&(b.comment=w.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,c,n){"use strict";var i=r("../utils"),a=r("../stream/GenericWorker");function e(u,v){a.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(v)}i.inherits(e,a),e.prototype._bindStream=function(u){var v=this;(this._stream=u).pause(),u.on("data",function(y){v.push({data:y,meta:{percent:0}})}).on("error",function(y){v.isPaused?this.generatedError=y:v.error(y)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},e.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,c,n){"use strict";var i=r("readable-stream").Readable;function a(e,u,v){i.call(this,u),this._helper=e;var y=this;e.on("data",function(A,k){y.push(A)||y._helper.pause(),v&&v(k)}).on("error",function(A){y.emit("error",A)}).on("end",function(){y.push(null)})}r("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},c.exports=a},{"../utils":32,"readable-stream":16}],14:[function(r,c,n){"use strict";c.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,c,n){"use strict";function i(g,C,F){var D,q=e.getTypeOf(C),L=e.extend(F||{},y);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(g=m(g)),L.createFolders&&(D=w(g))&&d.call(this,D,!0);var ne=q==="string"&&L.binary===!1&&L.base64===!1;F&&F.binary!==void 0||(L.binary=!ne),(C instanceof A&&C.uncompressedSize===0||L.dir||!C||C.length===0)&&(L.base64=!1,L.binary=!0,C="",L.compression="STORE",q="string");var re=null;re=C instanceof A||C instanceof u?C:b.isNode&&b.isStream(C)?new o(g,C):e.prepareContent(g,C,L.binary,L.optimizedBinaryString,L.base64);var P=new k(g,re,L);this.files[g]=P}var a=r("./utf8"),e=r("./utils"),u=r("./stream/GenericWorker"),v=r("./stream/StreamHelper"),y=r("./defaults"),A=r("./compressedObject"),k=r("./zipObject"),p=r("./generate"),b=r("./nodejsUtils"),o=r("./nodejs/NodejsStreamInputAdapter"),w=function(g){g.slice(-1)==="/"&&(g=g.substring(0,g.length-1));var C=g.lastIndexOf("/");return 0<C?g.substring(0,C):""},m=function(g){return g.slice(-1)!=="/"&&(g+="/"),g},d=function(g,C){return C=C!==void 0?C:y.createFolders,g=m(g),this.files[g]||i.call(this,g,null,{dir:!0,createFolders:C}),this.files[g]};function s(g){return Object.prototype.toString.call(g)==="[object RegExp]"}c.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(g){var C,F,D;for(C in this.files)D=this.files[C],(F=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&g(F,D)},filter:function(g){var C=[];return this.forEach(function(F,D){g(F,D)&&C.push(D)}),C},file:function(g,C,F){if(arguments.length!==1)return g=this.root+g,i.call(this,g,C,F),this;if(s(g)){var D=g;return this.filter(function(L,ne){return!ne.dir&&D.test(L)})}var q=this.files[this.root+g];return q&&!q.dir?q:null},folder:function(g){if(!g)return this;if(s(g))return this.filter(function(q,L){return L.dir&&g.test(q)});var C=this.root+g,F=d.call(this,C),D=this.clone();return D.root=F.name,D},remove:function(g){g=this.root+g;var C=this.files[g];if(C||(g.slice(-1)!=="/"&&(g+="/"),C=this.files[g]),C&&!C.dir)delete this.files[g];else for(var F=this.filter(function(q,L){return L.name.slice(0,g.length)===g}),D=0;D<F.length;D++)delete this.files[F[D].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(g){var C,F={};try{if((F=e.extend(g||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");e.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var D=F.comment||this.comment||"";C=p.generateWorker(this,F,D)}catch(q){(C=new u("error")).error(q)}return new v(C,F.type||"string",F.mimeType)},generateAsync:function(g,C){return this.generateInternalStream(g).accumulate(C)},generateNodeStream:function(g,C){return(g=g||{}).type||(g.type="nodebuffer"),this.generateInternalStream(g).toNodejsStream(C)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,c,n){"use strict";c.exports=r("stream")},{stream:void 0}],17:[function(r,c,n){"use strict";var i=r("./DataReader");function a(e){i.call(this,e);for(var u=0;u<this.data.length;u++)e[u]=255&e[u]}r("../utils").inherits(a,i),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var u=e.charCodeAt(0),v=e.charCodeAt(1),y=e.charCodeAt(2),A=e.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===u&&this.data[k+1]===v&&this.data[k+2]===y&&this.data[k+3]===A)return k-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var u=e.charCodeAt(0),v=e.charCodeAt(1),y=e.charCodeAt(2),A=e.charCodeAt(3),k=this.readData(4);return u===k[0]&&v===k[1]&&y===k[2]&&A===k[3]},a.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},c.exports=a},{"../utils":32,"./DataReader":18}],18:[function(r,c,n){"use strict";var i=r("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var u,v=0;for(this.checkOffset(e),u=this.index+e-1;u>=this.index;u--)v=(v<<8)+this.byteAt(u);return this.index+=e,v},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},c.exports=a},{"../utils":32}],19:[function(r,c,n){"use strict";var i=r("./Uint8ArrayReader");function a(e){i.call(this,e)}r("../utils").inherits(a,i),a.prototype.readData=function(e){this.checkOffset(e);var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},c.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,c,n){"use strict";var i=r("./DataReader");function a(e){i.call(this,e)}r("../utils").inherits(a,i),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var u=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},c.exports=a},{"../utils":32,"./DataReader":18}],21:[function(r,c,n){"use strict";var i=r("./ArrayReader");function a(e){i.call(this,e)}r("../utils").inherits(a,i),a.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,u},c.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(r,c,n){"use strict";var i=r("../utils"),a=r("../support"),e=r("./ArrayReader"),u=r("./StringReader"),v=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");c.exports=function(A){var k=i.getTypeOf(A);return i.checkSupport(k),k!=="string"||a.uint8array?k==="nodebuffer"?new v(A):a.uint8array?new y(i.transformTo("uint8array",A)):new e(i.transformTo("array",A)):new u(A)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,c,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,c,n){"use strict";var i=r("./GenericWorker"),a=r("../utils");function e(u){i.call(this,"ConvertWorker to "+u),this.destType=u}a.inherits(e,i),e.prototype.processChunk=function(u){this.push({data:a.transformTo(this.destType,u.data),meta:u.meta})},c.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(r,c,n){"use strict";var i=r("./GenericWorker"),a=r("../crc32");function e(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(e,i),e.prototype.processChunk=function(u){this.streamInfo.crc32=a(u.data,this.streamInfo.crc32||0),this.push(u)},c.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,c,n){"use strict";var i=r("../utils"),a=r("./GenericWorker");function e(u){a.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}i.inherits(e,a),e.prototype.processChunk=function(u){if(u){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+u.data.length}a.prototype.processChunk.call(this,u)},c.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(r,c,n){"use strict";var i=r("../utils"),a=r("./GenericWorker");function e(u){a.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(y){v.dataIsReady=!0,v.data=y,v.max=y&&y.length||0,v.type=i.getTypeOf(y),v.isPaused||v._tickAndRepeat()},function(y){v.error(y)})}i.inherits(e,a),e.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,v);break;case"uint8array":u=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":u=this.data.slice(this.index,v)}return this.index=v,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(r,c,n){"use strict";function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,e){return this._listeners[a].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,e){if(this._listeners[a])for(var u=0;u<this._listeners[a].length;u++)this._listeners[a][u].call(this,e)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var e=this;return a.on("data",function(u){e.processChunk(u)}),a.on("end",function(){e.end()}),a.on("error",function(u){e.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,e){return this.extraStreamInfo[a]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},c.exports=i},{}],29:[function(r,c,n){"use strict";var i=r("../utils"),a=r("./ConvertWorker"),e=r("./GenericWorker"),u=r("../base64"),v=r("../support"),y=r("../external"),A=null;if(v.nodestream)try{A=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(b,o){return new y.Promise(function(w,m){var d=[],s=b._internalType,g=b._outputType,C=b._mimeType;b.on("data",function(F,D){d.push(F),o&&o(D)}).on("error",function(F){d=[],m(F)}).on("end",function(){try{w((function(F,D,q){switch(F){case"blob":return i.newBlob(i.transformTo("arraybuffer",D),q);case"base64":return u.encode(D);default:return i.transformTo(F,D)}})(g,(function(F,D){var q,L=0,ne=null,re=0;for(q=0;q<D.length;q++)re+=D[q].length;switch(F){case"string":return D.join("");case"array":return Array.prototype.concat.apply([],D);case"uint8array":for(ne=new Uint8Array(re),q=0;q<D.length;q++)ne.set(D[q],L),L+=D[q].length;return ne;case"nodebuffer":return Buffer.concat(D);default:throw new Error("concat : unsupported type '"+F+"'")}})(s,d),C))}catch(F){m(F)}d=[]}).resume()})}function p(b,o,w){var m=o;switch(o){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=o,this._mimeType=w,i.checkSupport(m),this._worker=b.pipe(new a(m)),b.lock()}catch(d){this._worker=new e("error"),this._worker.error(d)}}p.prototype={accumulate:function(b){return k(this,b)},on:function(b,o){var w=this;return b==="data"?this._worker.on(b,function(m){o.call(w,m.data,m.meta)}):this._worker.on(b,function(){i.delay(o,arguments,w)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new A(this,{objectMode:this._outputType!=="nodebuffer"},b)}},c.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,c,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n.nodebuffer=typeof Buffer<"u",n.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),n.blob=a.getBlob("application/zip").size===0}catch{n.blob=!1}}}try{n.nodestream=!!r("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(r,c,n){"use strict";for(var i=r("./utils"),a=r("./support"),e=r("./nodejsUtils"),u=r("./stream/GenericWorker"),v=new Array(256),y=0;y<256;y++)v[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;v[254]=v[254]=1;function A(){u.call(this,"utf-8 decode"),this.leftOver=null}function k(){u.call(this,"utf-8 encode")}n.utf8encode=function(p){return a.nodebuffer?e.newBufferFrom(p,"utf-8"):(function(b){var o,w,m,d,s,g=b.length,C=0;for(d=0;d<g;d++)(64512&(w=b.charCodeAt(d)))==55296&&d+1<g&&(64512&(m=b.charCodeAt(d+1)))==56320&&(w=65536+(w-55296<<10)+(m-56320),d++),C+=w<128?1:w<2048?2:w<65536?3:4;for(o=a.uint8array?new Uint8Array(C):new Array(C),d=s=0;s<C;d++)(64512&(w=b.charCodeAt(d)))==55296&&d+1<g&&(64512&(m=b.charCodeAt(d+1)))==56320&&(w=65536+(w-55296<<10)+(m-56320),d++),w<128?o[s++]=w:(w<2048?o[s++]=192|w>>>6:(w<65536?o[s++]=224|w>>>12:(o[s++]=240|w>>>18,o[s++]=128|w>>>12&63),o[s++]=128|w>>>6&63),o[s++]=128|63&w);return o})(p)},n.utf8decode=function(p){return a.nodebuffer?i.transformTo("nodebuffer",p).toString("utf-8"):(function(b){var o,w,m,d,s=b.length,g=new Array(2*s);for(o=w=0;o<s;)if((m=b[o++])<128)g[w++]=m;else if(4<(d=v[m]))g[w++]=65533,o+=d-1;else{for(m&=d===2?31:d===3?15:7;1<d&&o<s;)m=m<<6|63&b[o++],d--;1<d?g[w++]=65533:m<65536?g[w++]=m:(m-=65536,g[w++]=55296|m>>10&1023,g[w++]=56320|1023&m)}return g.length!==w&&(g.subarray?g=g.subarray(0,w):g.length=w),i.applyFromCharCode(g)})(p=i.transformTo(a.uint8array?"uint8array":"array",p))},i.inherits(A,u),A.prototype.processChunk=function(p){var b=i.transformTo(a.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var o=b;(b=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),b.set(o,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var w=(function(d,s){var g;for((s=s||d.length)>d.length&&(s=d.length),g=s-1;0<=g&&(192&d[g])==128;)g--;return g<0||g===0?s:g+v[d[g]]>s?g:s})(b),m=b;w!==b.length&&(a.uint8array?(m=b.subarray(0,w),this.leftOver=b.subarray(w,b.length)):(m=b.slice(0,w),this.leftOver=b.slice(w,b.length))),this.push({data:n.utf8decode(m),meta:p.meta})},A.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=A,i.inherits(k,u),k.prototype.processChunk=function(p){this.push({data:n.utf8encode(p.data),meta:p.meta})},n.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,c,n){"use strict";var i=r("./support"),a=r("./base64"),e=r("./nodejsUtils"),u=r("./external");function v(o){return o}function y(o,w){for(var m=0;m<o.length;++m)w[m]=255&o.charCodeAt(m);return w}r("setimmediate"),n.newBlob=function(o,w){n.checkSupport("blob");try{return new Blob([o],{type:w})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(o),m.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var A={stringifyByChunk:function(o,w,m){var d=[],s=0,g=o.length;if(g<=m)return String.fromCharCode.apply(null,o);for(;s<g;)w==="array"||w==="nodebuffer"?d.push(String.fromCharCode.apply(null,o.slice(s,Math.min(s+m,g)))):d.push(String.fromCharCode.apply(null,o.subarray(s,Math.min(s+m,g)))),s+=m;return d.join("")},stringifyByChar:function(o){for(var w="",m=0;m<o.length;m++)w+=String.fromCharCode(o[m]);return w},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,e.allocBuffer(1)).length===1}catch{return!1}})()}};function k(o){var w=65536,m=n.getTypeOf(o),d=!0;if(m==="uint8array"?d=A.applyCanBeUsed.uint8array:m==="nodebuffer"&&(d=A.applyCanBeUsed.nodebuffer),d)for(;1<w;)try{return A.stringifyByChunk(o,m,w)}catch{w=Math.floor(w/2)}return A.stringifyByChar(o)}function p(o,w){for(var m=0;m<o.length;m++)w[m]=o[m];return w}n.applyFromCharCode=k;var b={};b.string={string:v,array:function(o){return y(o,new Array(o.length))},arraybuffer:function(o){return b.string.uint8array(o).buffer},uint8array:function(o){return y(o,new Uint8Array(o.length))},nodebuffer:function(o){return y(o,e.allocBuffer(o.length))}},b.array={string:k,array:v,arraybuffer:function(o){return new Uint8Array(o).buffer},uint8array:function(o){return new Uint8Array(o)},nodebuffer:function(o){return e.newBufferFrom(o)}},b.arraybuffer={string:function(o){return k(new Uint8Array(o))},array:function(o){return p(new Uint8Array(o),new Array(o.byteLength))},arraybuffer:v,uint8array:function(o){return new Uint8Array(o)},nodebuffer:function(o){return e.newBufferFrom(new Uint8Array(o))}},b.uint8array={string:k,array:function(o){return p(o,new Array(o.length))},arraybuffer:function(o){return o.buffer},uint8array:v,nodebuffer:function(o){return e.newBufferFrom(o)}},b.nodebuffer={string:k,array:function(o){return p(o,new Array(o.length))},arraybuffer:function(o){return b.nodebuffer.uint8array(o).buffer},uint8array:function(o){return p(o,new Uint8Array(o.length))},nodebuffer:v},n.transformTo=function(o,w){return w=w||"",o?(n.checkSupport(o),b[n.getTypeOf(w)][o](w)):w},n.resolve=function(o){for(var w=o.split("/"),m=[],d=0;d<w.length;d++){var s=w[d];s==="."||s===""&&d!==0&&d!==w.length-1||(s===".."?m.pop():m.push(s))}return m.join("/")},n.getTypeOf=function(o){return typeof o=="string"?"string":Object.prototype.toString.call(o)==="[object Array]"?"array":i.nodebuffer&&e.isBuffer(o)?"nodebuffer":i.uint8array&&o instanceof Uint8Array?"uint8array":i.arraybuffer&&o instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(o){if(!i[o.toLowerCase()])throw new Error(o+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(o){var w,m,d="";for(m=0;m<(o||"").length;m++)d+="\\x"+((w=o.charCodeAt(m))<16?"0":"")+w.toString(16).toUpperCase();return d},n.delay=function(o,w,m){setImmediate(function(){o.apply(m||null,w||[])})},n.inherits=function(o,w){function m(){}m.prototype=w.prototype,o.prototype=new m},n.extend=function(){var o,w,m={};for(o=0;o<arguments.length;o++)for(w in arguments[o])Object.prototype.hasOwnProperty.call(arguments[o],w)&&m[w]===void 0&&(m[w]=arguments[o][w]);return m},n.prepareContent=function(o,w,m,d,s){return u.Promise.resolve(w).then(function(g){return i.blob&&(g instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(g))!==-1)&&typeof FileReader<"u"?new u.Promise(function(C,F){var D=new FileReader;D.onload=function(q){C(q.target.result)},D.onerror=function(q){F(q.target.error)},D.readAsArrayBuffer(g)}):g}).then(function(g){var C=n.getTypeOf(g);return C?(C==="arraybuffer"?g=n.transformTo("uint8array",g):C==="string"&&(s?g=a.decode(g):m&&d!==!0&&(g=(function(F){return y(F,i.uint8array?new Uint8Array(F.length):new Array(F.length))})(g))),g):u.Promise.reject(new Error("Can't read the data of '"+o+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,c,n){"use strict";var i=r("./reader/readerFor"),a=r("./utils"),e=r("./signature"),u=r("./zipEntry"),v=r("./support");function y(A){this.files=[],this.loadOptions=A}y.prototype={checkSignature:function(A){if(!this.reader.readAndCheckSignature(A)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(k)+", expected "+a.pretty(A)+")")}},isSignature:function(A,k){var p=this.reader.index;this.reader.setIndex(A);var b=this.reader.readString(4)===k;return this.reader.setIndex(p),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var A=this.reader.readData(this.zipCommentLength),k=v.uint8array?"uint8array":"array",p=a.transformTo(k,A);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var A,k,p,b=this.zip64EndOfCentralSize-44;0<b;)A=this.reader.readInt(2),k=this.reader.readInt(4),p=this.reader.readData(k),this.zip64ExtensibleData[A]={id:A,length:k,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var A,k;for(A=0;A<this.files.length;A++)k=this.files[A],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var A;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(A=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(A);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var A=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(A<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(A);var k=A;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(A=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(A),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var b=k-p;if(0<b)this.isSignature(k,e.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(A){this.reader=i(A)},load:function(A){this.prepareReader(A),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,c,n){"use strict";var i=r("./reader/readerFor"),a=r("./utils"),e=r("./compressedObject"),u=r("./crc32"),v=r("./utf8"),y=r("./compressions"),A=r("./support");function k(p,b){this.options=p,this.loadOptions=b}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var b,o;if(p.skip(22),this.fileNameLength=p.readInt(2),o=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(o),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(w){for(var m in y)if(Object.prototype.hasOwnProperty.call(y,m)&&y[m].magic===w)return y[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,b,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var b=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(b),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var b,o,w,m=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<m;)b=p.readInt(2),o=p.readInt(2),w=p.readData(o),this.extraFields[b]={id:b,length:o,value:w};p.setIndex(m)},handleUTF8:function(){var p=A.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var o=a.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(o)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var m=a.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var b=i(p.value);return b.readInt(1)!==1||u(this.fileName)!==b.readInt(4)?null:v.utf8decode(b.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var b=i(p.value);return b.readInt(1)!==1||u(this.fileComment)!==b.readInt(4)?null:v.utf8decode(b.readData(p.length-5))}return null}},c.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,c,n){"use strict";function i(b,o,w){this.name=b,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=o,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var a=r("./stream/StreamHelper"),e=r("./stream/DataWorker"),u=r("./utf8"),v=r("./compressedObject"),y=r("./stream/GenericWorker");i.prototype={internalStream:function(b){var o=null,w="string";try{if(!b)throw new Error("No output type specified.");var m=(w=b.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),o=this._decompressWorker();var d=!this._dataBinary;d&&!m&&(o=o.pipe(new u.Utf8EncodeWorker)),!d&&m&&(o=o.pipe(new u.Utf8DecodeWorker))}catch(s){(o=new y("error")).error(s)}return new a(o,w,"")},async:function(b,o){return this.internalStream(b).accumulate(o)},nodeStream:function(b,o){return this.internalStream(b||"nodebuffer").toNodejsStream(o)},_compressWorker:function(b,o){if(this._data instanceof v&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new u.Utf8EncodeWorker)),v.createWorkerFrom(w,b,o)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof y?this._data:new e(this._data)}};for(var A=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<A.length;p++)i.prototype[A[p]]=k;c.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,c,n){(function(i){"use strict";var a,e,u=i.MutationObserver||i.WebKitMutationObserver;if(u){var v=0,y=new u(b),A=i.document.createTextNode("");y.observe(A,{characterData:!0}),a=function(){A.data=v=++v%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var o=i.document.createElement("script");o.onreadystatechange=function(){b(),o.onreadystatechange=null,o.parentNode.removeChild(o),o=null},i.document.documentElement.appendChild(o)}:function(){setTimeout(b,0)};else{var k=new i.MessageChannel;k.port1.onmessage=b,a=function(){k.port2.postMessage(0)}}var p=[];function b(){var o,w;e=!0;for(var m=p.length;m;){for(w=p,p=[],o=-1;++o<m;)w[o]();m=p.length}e=!1}c.exports=function(o){p.push(o)!==1||e||a()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,c,n){"use strict";var i=r("immediate");function a(){}var e={},u=["REJECTED"],v=["FULFILLED"],y=["PENDING"];function A(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,m!==a&&o(this,m)}function k(m,d,s){this.promise=m,typeof d=="function"&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),typeof s=="function"&&(this.onRejected=s,this.callRejected=this.otherCallRejected)}function p(m,d,s){i(function(){var g;try{g=d(s)}catch(C){return e.reject(m,C)}g===m?e.reject(m,new TypeError("Cannot resolve promise with itself")):e.resolve(m,g)})}function b(m){var d=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof d=="function")return function(){d.apply(m,arguments)}}function o(m,d){var s=!1;function g(D){s||(s=!0,e.reject(m,D))}function C(D){s||(s=!0,e.resolve(m,D))}var F=w(function(){d(C,g)});F.status==="error"&&g(F.value)}function w(m,d){var s={};try{s.value=m(d),s.status="success"}catch(g){s.status="error",s.value=g}return s}(c.exports=A).prototype.finally=function(m){if(typeof m!="function")return this;var d=this.constructor;return this.then(function(s){return d.resolve(m()).then(function(){return s})},function(s){return d.resolve(m()).then(function(){throw s})})},A.prototype.catch=function(m){return this.then(null,m)},A.prototype.then=function(m,d){if(typeof m!="function"&&this.state===v||typeof d!="function"&&this.state===u)return this;var s=new this.constructor(a);return this.state!==y?p(s,this.state===v?m:d,this.outcome):this.queue.push(new k(s,m,d)),s},k.prototype.callFulfilled=function(m){e.resolve(this.promise,m)},k.prototype.otherCallFulfilled=function(m){p(this.promise,this.onFulfilled,m)},k.prototype.callRejected=function(m){e.reject(this.promise,m)},k.prototype.otherCallRejected=function(m){p(this.promise,this.onRejected,m)},e.resolve=function(m,d){var s=w(b,d);if(s.status==="error")return e.reject(m,s.value);var g=s.value;if(g)o(m,g);else{m.state=v,m.outcome=d;for(var C=-1,F=m.queue.length;++C<F;)m.queue[C].callFulfilled(d)}return m},e.reject=function(m,d){m.state=u,m.outcome=d;for(var s=-1,g=m.queue.length;++s<g;)m.queue[s].callRejected(d);return m},A.resolve=function(m){return m instanceof this?m:e.resolve(new this(a),m)},A.reject=function(m){var d=new this(a);return e.reject(d,m)},A.all=function(m){var d=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var s=m.length,g=!1;if(!s)return this.resolve([]);for(var C=new Array(s),F=0,D=-1,q=new this(a);++D<s;)L(m[D],D);return q;function L(ne,re){d.resolve(ne).then(function(P){C[re]=P,++F!==s||g||(g=!0,e.resolve(q,C))},function(P){g||(g=!0,e.reject(q,P))})}},A.race=function(m){var d=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var s=m.length,g=!1;if(!s)return this.resolve([]);for(var C=-1,F=new this(a);++C<s;)D=m[C],d.resolve(D).then(function(q){g||(g=!0,e.resolve(F,q))},function(q){g||(g=!0,e.reject(F,q))});var D;return F}},{immediate:36}],38:[function(r,c,n){"use strict";var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),c.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,c,n){"use strict";var i=r("./zlib/deflate"),a=r("./utils/common"),e=r("./utils/strings"),u=r("./zlib/messages"),v=r("./zlib/zstream"),y=Object.prototype.toString,A=0,k=-1,p=0,b=8;function o(m){if(!(this instanceof o))return new o(m);this.options=a.assign({level:k,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},m||{});var d=this.options;d.raw&&0<d.windowBits?d.windowBits=-d.windowBits:d.gzip&&0<d.windowBits&&d.windowBits<16&&(d.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var s=i.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(s!==A)throw new Error(u[s]);if(d.header&&i.deflateSetHeader(this.strm,d.header),d.dictionary){var g;if(g=typeof d.dictionary=="string"?e.string2buf(d.dictionary):y.call(d.dictionary)==="[object ArrayBuffer]"?new Uint8Array(d.dictionary):d.dictionary,(s=i.deflateSetDictionary(this.strm,g))!==A)throw new Error(u[s]);this._dict_set=!0}}function w(m,d){var s=new o(d);if(s.push(m,!0),s.err)throw s.msg||u[s.err];return s.result}o.prototype.push=function(m,d){var s,g,C=this.strm,F=this.options.chunkSize;if(this.ended)return!1;g=d===~~d?d:d===!0?4:0,typeof m=="string"?C.input=e.string2buf(m):y.call(m)==="[object ArrayBuffer]"?C.input=new Uint8Array(m):C.input=m,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(F),C.next_out=0,C.avail_out=F),(s=i.deflate(C,g))!==1&&s!==A)return this.onEnd(s),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||g!==4&&g!==2)||(this.options.to==="string"?this.onData(e.buf2binstring(a.shrinkBuf(C.output,C.next_out))):this.onData(a.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&s!==1);return g===4?(s=i.deflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===A):g!==2||(this.onEnd(A),!(C.avail_out=0))},o.prototype.onData=function(m){this.chunks.push(m)},o.prototype.onEnd=function(m){m===A&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},n.Deflate=o,n.deflate=w,n.deflateRaw=function(m,d){return(d=d||{}).raw=!0,w(m,d)},n.gzip=function(m,d){return(d=d||{}).gzip=!0,w(m,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,c,n){"use strict";var i=r("./zlib/inflate"),a=r("./utils/common"),e=r("./utils/strings"),u=r("./zlib/constants"),v=r("./zlib/messages"),y=r("./zlib/zstream"),A=r("./zlib/gzheader"),k=Object.prototype.toString;function p(o){if(!(this instanceof p))return new p(o);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},o||{});var w=this.options;w.raw&&0<=w.windowBits&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),!(0<=w.windowBits&&w.windowBits<16)||o&&o.windowBits||(w.windowBits+=32),15<w.windowBits&&w.windowBits<48&&(15&w.windowBits)==0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var m=i.inflateInit2(this.strm,w.windowBits);if(m!==u.Z_OK)throw new Error(v[m]);this.header=new A,i.inflateGetHeader(this.strm,this.header)}function b(o,w){var m=new p(w);if(m.push(o,!0),m.err)throw m.msg||v[m.err];return m.result}p.prototype.push=function(o,w){var m,d,s,g,C,F,D=this.strm,q=this.options.chunkSize,L=this.options.dictionary,ne=!1;if(this.ended)return!1;d=w===~~w?w:w===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof o=="string"?D.input=e.binstring2buf(o):k.call(o)==="[object ArrayBuffer]"?D.input=new Uint8Array(o):D.input=o,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new a.Buf8(q),D.next_out=0,D.avail_out=q),(m=i.inflate(D,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&L&&(F=typeof L=="string"?e.string2buf(L):k.call(L)==="[object ArrayBuffer]"?new Uint8Array(L):L,m=i.inflateSetDictionary(this.strm,F)),m===u.Z_BUF_ERROR&&ne===!0&&(m=u.Z_OK,ne=!1),m!==u.Z_STREAM_END&&m!==u.Z_OK)return this.onEnd(m),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&m!==u.Z_STREAM_END&&(D.avail_in!==0||d!==u.Z_FINISH&&d!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(s=e.utf8border(D.output,D.next_out),g=D.next_out-s,C=e.buf2string(D.output,s),D.next_out=g,D.avail_out=q-g,g&&a.arraySet(D.output,D.output,s,g,0),this.onData(C)):this.onData(a.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(ne=!0)}while((0<D.avail_in||D.avail_out===0)&&m!==u.Z_STREAM_END);return m===u.Z_STREAM_END&&(d=u.Z_FINISH),d===u.Z_FINISH?(m=i.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===u.Z_OK):d!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(D.avail_out=0))},p.prototype.onData=function(o){this.chunks.push(o)},p.prototype.onEnd=function(o){o===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=o,this.msg=this.strm.msg},n.Inflate=p,n.inflate=b,n.inflateRaw=function(o,w){return(w=w||{}).raw=!0,b(o,w)},n.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,c,n){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(u){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var y=v.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var A in y)y.hasOwnProperty(A)&&(u[A]=y[A])}}return u},n.shrinkBuf=function(u,v){return u.length===v?u:u.subarray?u.subarray(0,v):(u.length=v,u)};var a={arraySet:function(u,v,y,A,k){if(v.subarray&&u.subarray)u.set(v.subarray(y,y+A),k);else for(var p=0;p<A;p++)u[k+p]=v[y+p]},flattenChunks:function(u){var v,y,A,k,p,b;for(v=A=0,y=u.length;v<y;v++)A+=u[v].length;for(b=new Uint8Array(A),v=k=0,y=u.length;v<y;v++)p=u[v],b.set(p,k),k+=p.length;return b}},e={arraySet:function(u,v,y,A,k){for(var p=0;p<A;p++)u[k+p]=v[y+p]},flattenChunks:function(u){return[].concat.apply([],u)}};n.setTyped=function(u){u?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,e))},n.setTyped(i)},{}],42:[function(r,c,n){"use strict";var i=r("./common"),a=!0,e=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}for(var u=new i.Buf8(256),v=0;v<256;v++)u[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function y(A,k){if(k<65537&&(A.subarray&&e||!A.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(A,k));for(var p="",b=0;b<k;b++)p+=String.fromCharCode(A[b]);return p}u[254]=u[254]=1,n.string2buf=function(A){var k,p,b,o,w,m=A.length,d=0;for(o=0;o<m;o++)(64512&(p=A.charCodeAt(o)))==55296&&o+1<m&&(64512&(b=A.charCodeAt(o+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),o++),d+=p<128?1:p<2048?2:p<65536?3:4;for(k=new i.Buf8(d),o=w=0;w<d;o++)(64512&(p=A.charCodeAt(o)))==55296&&o+1<m&&(64512&(b=A.charCodeAt(o+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),o++),p<128?k[w++]=p:(p<2048?k[w++]=192|p>>>6:(p<65536?k[w++]=224|p>>>12:(k[w++]=240|p>>>18,k[w++]=128|p>>>12&63),k[w++]=128|p>>>6&63),k[w++]=128|63&p);return k},n.buf2binstring=function(A){return y(A,A.length)},n.binstring2buf=function(A){for(var k=new i.Buf8(A.length),p=0,b=k.length;p<b;p++)k[p]=A.charCodeAt(p);return k},n.buf2string=function(A,k){var p,b,o,w,m=k||A.length,d=new Array(2*m);for(p=b=0;p<m;)if((o=A[p++])<128)d[b++]=o;else if(4<(w=u[o]))d[b++]=65533,p+=w-1;else{for(o&=w===2?31:w===3?15:7;1<w&&p<m;)o=o<<6|63&A[p++],w--;1<w?d[b++]=65533:o<65536?d[b++]=o:(o-=65536,d[b++]=55296|o>>10&1023,d[b++]=56320|1023&o)}return y(d,b)},n.utf8border=function(A,k){var p;for((k=k||A.length)>A.length&&(k=A.length),p=k-1;0<=p&&(192&A[p])==128;)p--;return p<0||p===0?k:p+u[A[p]]>k?p:k}},{"./common":41}],43:[function(r,c,n){"use strict";c.exports=function(i,a,e,u){for(var v=65535&i|0,y=i>>>16&65535|0,A=0;e!==0;){for(e-=A=2e3<e?2e3:e;y=y+(v=v+a[u++]|0)|0,--A;);v%=65521,y%=65521}return v|y<<16|0}},{}],44:[function(r,c,n){"use strict";c.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,c,n){"use strict";var i=(function(){for(var a,e=[],u=0;u<256;u++){a=u;for(var v=0;v<8;v++)a=1&a?3988292384^a>>>1:a>>>1;e[u]=a}return e})();c.exports=function(a,e,u,v){var y=i,A=v+u;a^=-1;for(var k=v;k<A;k++)a=a>>>8^y[255&(a^e[k])];return-1^a}},{}],46:[function(r,c,n){"use strict";var i,a=r("../utils/common"),e=r("./trees"),u=r("./adler32"),v=r("./crc32"),y=r("./messages"),A=0,k=4,p=0,b=-2,o=-1,w=4,m=2,d=8,s=9,g=286,C=30,F=19,D=2*g+1,q=15,L=3,ne=258,re=ne+L+1,P=42,U=113,h=1,$=2,oe=3,J=4;function ue(t,z){return t.msg=y[z],z}function ie(t){return(t<<1)-(4<t?9:0)}function le(t){for(var z=t.length;0<=--z;)t[z]=0}function Z(t){var z=t.state,I=z.pending;I>t.avail_out&&(I=t.avail_out),I!==0&&(a.arraySet(t.output,z.pending_buf,z.pending_out,I,t.next_out),t.next_out+=I,z.pending_out+=I,t.total_out+=I,t.avail_out-=I,z.pending-=I,z.pending===0&&(z.pending_out=0))}function j(t,z){e._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,z),t.block_start=t.strstart,Z(t.strm)}function S(t,z){t.pending_buf[t.pending++]=z}function T(t,z){t.pending_buf[t.pending++]=z>>>8&255,t.pending_buf[t.pending++]=255&z}function E(t,z){var I,x,_=t.max_chain_length,B=t.strstart,M=t.prev_length,V=t.nice_match,O=t.strstart>t.w_size-re?t.strstart-(t.w_size-re):0,G=t.window,te=t.w_mask,X=t.prev,ae=t.strstart+ne,de=G[B+M-1],se=G[B+M];t.prev_length>=t.good_match&&(_>>=2),V>t.lookahead&&(V=t.lookahead);do if(G[(I=z)+M]===se&&G[I+M-1]===de&&G[I]===G[B]&&G[++I]===G[B+1]){B+=2,I++;do;while(G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&B<ae);if(x=ne-(ae-B),B=ae-ne,M<x){if(t.match_start=z,V<=(M=x))break;de=G[B+M-1],se=G[B+M]}}while((z=X[z&te])>O&&--_!=0);return M<=t.lookahead?M:t.lookahead}function R(t){var z,I,x,_,B,M,V,O,G,te,X=t.w_size;do{if(_=t.window_size-t.lookahead-t.strstart,t.strstart>=X+(X-re)){for(a.arraySet(t.window,t.window,X,X,0),t.match_start-=X,t.strstart-=X,t.block_start-=X,z=I=t.hash_size;x=t.head[--z],t.head[z]=X<=x?x-X:0,--I;);for(z=I=X;x=t.prev[--z],t.prev[z]=X<=x?x-X:0,--I;);_+=X}if(t.strm.avail_in===0)break;if(M=t.strm,V=t.window,O=t.strstart+t.lookahead,G=_,te=void 0,te=M.avail_in,G<te&&(te=G),I=te===0?0:(M.avail_in-=te,a.arraySet(V,M.input,M.next_in,te,O),M.state.wrap===1?M.adler=u(M.adler,V,te,O):M.state.wrap===2&&(M.adler=v(M.adler,V,te,O)),M.next_in+=te,M.total_in+=te,te),t.lookahead+=I,t.lookahead+t.insert>=L)for(B=t.strstart-t.insert,t.ins_h=t.window[B],t.ins_h=(t.ins_h<<t.hash_shift^t.window[B+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[B+L-1])&t.hash_mask,t.prev[B&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=B,B++,t.insert--,!(t.lookahead+t.insert<L)););}while(t.lookahead<re&&t.strm.avail_in!==0)}function N(t,z){for(var I,x;;){if(t.lookahead<re){if(R(t),t.lookahead<re&&z===A)return h;if(t.lookahead===0)break}if(I=0,t.lookahead>=L&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),I!==0&&t.strstart-I<=t.w_size-re&&(t.match_length=E(t,I)),t.match_length>=L)if(x=e._tr_tally(t,t.strstart-t.match_start,t.match_length-L),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=L){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else x=e._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(x&&(j(t,!1),t.strm.avail_out===0))return h}return t.insert=t.strstart<L-1?t.strstart:L-1,z===k?(j(t,!0),t.strm.avail_out===0?oe:J):t.last_lit&&(j(t,!1),t.strm.avail_out===0)?h:$}function W(t,z){for(var I,x,_;;){if(t.lookahead<re){if(R(t),t.lookahead<re&&z===A)return h;if(t.lookahead===0)break}if(I=0,t.lookahead>=L&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=L-1,I!==0&&t.prev_length<t.max_lazy_match&&t.strstart-I<=t.w_size-re&&(t.match_length=E(t,I),t.match_length<=5&&(t.strategy===1||t.match_length===L&&4096<t.strstart-t.match_start)&&(t.match_length=L-1)),t.prev_length>=L&&t.match_length<=t.prev_length){for(_=t.strstart+t.lookahead-L,x=e._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-L),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=_&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=L-1,t.strstart++,x&&(j(t,!1),t.strm.avail_out===0))return h}else if(t.match_available){if((x=e._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return h}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(x=e._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<L-1?t.strstart:L-1,z===k?(j(t,!0),t.strm.avail_out===0?oe:J):t.last_lit&&(j(t,!1),t.strm.avail_out===0)?h:$}function H(t,z,I,x,_){this.good_length=t,this.max_lazy=z,this.nice_length=I,this.max_chain=x,this.func=_}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=d,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*D),this.dyn_dtree=new a.Buf16(2*(2*C+1)),this.bl_tree=new a.Buf16(2*(2*F+1)),le(this.dyn_ltree),le(this.dyn_dtree),le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(q+1),this.heap=new a.Buf16(2*g+1),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*g+1),le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ee(t){var z;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(z=t.state).pending=0,z.pending_out=0,z.wrap<0&&(z.wrap=-z.wrap),z.status=z.wrap?P:U,t.adler=z.wrap===2?0:1,z.last_flush=A,e._tr_init(z),p):ue(t,b)}function Y(t){var z=ee(t);return z===p&&(function(I){I.window_size=2*I.w_size,le(I.head),I.max_lazy_match=i[I.level].max_lazy,I.good_match=i[I.level].good_length,I.nice_match=i[I.level].nice_length,I.max_chain_length=i[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=L-1,I.match_available=0,I.ins_h=0})(t.state),z}function Q(t,z,I,x,_,B){if(!t)return b;var M=1;if(z===o&&(z=6),x<0?(M=0,x=-x):15<x&&(M=2,x-=16),_<1||s<_||I!==d||x<8||15<x||z<0||9<z||B<0||w<B)return ue(t,b);x===8&&(x=9);var V=new K;return(t.state=V).strm=t,V.wrap=M,V.gzhead=null,V.w_bits=x,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=_+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+L-1)/L),V.window=new a.Buf8(2*V.w_size),V.head=new a.Buf16(V.hash_size),V.prev=new a.Buf16(V.w_size),V.lit_bufsize=1<<_+6,V.pending_buf_size=4*V.lit_bufsize,V.pending_buf=new a.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=z,V.strategy=B,V.method=I,Y(t)}i=[new H(0,0,0,0,function(t,z){var I=65535;for(I>t.pending_buf_size-5&&(I=t.pending_buf_size-5);;){if(t.lookahead<=1){if(R(t),t.lookahead===0&&z===A)return h;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var x=t.block_start+I;if((t.strstart===0||t.strstart>=x)&&(t.lookahead=t.strstart-x,t.strstart=x,j(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-re&&(j(t,!1),t.strm.avail_out===0))return h}return t.insert=0,z===k?(j(t,!0),t.strm.avail_out===0?oe:J):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),h)}),new H(4,4,8,4,N),new H(4,5,16,8,N),new H(4,6,32,32,N),new H(4,4,16,16,W),new H(8,16,32,32,W),new H(8,16,128,128,W),new H(8,32,128,256,W),new H(32,128,258,1024,W),new H(32,258,258,4096,W)],n.deflateInit=function(t,z){return Q(t,z,d,15,8,0)},n.deflateInit2=Q,n.deflateReset=Y,n.deflateResetKeep=ee,n.deflateSetHeader=function(t,z){return t&&t.state?t.state.wrap!==2?b:(t.state.gzhead=z,p):b},n.deflate=function(t,z){var I,x,_,B;if(!t||!t.state||5<z||z<0)return t?ue(t,b):b;if(x=t.state,!t.output||!t.input&&t.avail_in!==0||x.status===666&&z!==k)return ue(t,t.avail_out===0?-5:b);if(x.strm=t,I=x.last_flush,x.last_flush=z,x.status===P)if(x.wrap===2)t.adler=0,S(x,31),S(x,139),S(x,8),x.gzhead?(S(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),S(x,255&x.gzhead.time),S(x,x.gzhead.time>>8&255),S(x,x.gzhead.time>>16&255),S(x,x.gzhead.time>>24&255),S(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),S(x,255&x.gzhead.os),x.gzhead.extra&&x.gzhead.extra.length&&(S(x,255&x.gzhead.extra.length),S(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(t.adler=v(t.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=69):(S(x,0),S(x,0),S(x,0),S(x,0),S(x,0),S(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),S(x,3),x.status=U);else{var M=d+(x.w_bits-8<<4)<<8;M|=(2<=x.strategy||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6,x.strstart!==0&&(M|=32),M+=31-M%31,x.status=U,T(x,M),x.strstart!==0&&(T(x,t.adler>>>16),T(x,65535&t.adler)),t.adler=1}if(x.status===69)if(x.gzhead.extra){for(_=x.pending;x.gzindex<(65535&x.gzhead.extra.length)&&(x.pending!==x.pending_buf_size||(x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),Z(t),_=x.pending,x.pending!==x.pending_buf_size));)S(x,255&x.gzhead.extra[x.gzindex]),x.gzindex++;x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),x.gzindex===x.gzhead.extra.length&&(x.gzindex=0,x.status=73)}else x.status=73;if(x.status===73)if(x.gzhead.name){_=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),Z(t),_=x.pending,x.pending===x.pending_buf_size)){B=1;break}B=x.gzindex<x.gzhead.name.length?255&x.gzhead.name.charCodeAt(x.gzindex++):0,S(x,B)}while(B!==0);x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),B===0&&(x.gzindex=0,x.status=91)}else x.status=91;if(x.status===91)if(x.gzhead.comment){_=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),Z(t),_=x.pending,x.pending===x.pending_buf_size)){B=1;break}B=x.gzindex<x.gzhead.comment.length?255&x.gzhead.comment.charCodeAt(x.gzindex++):0,S(x,B)}while(B!==0);x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),B===0&&(x.status=103)}else x.status=103;if(x.status===103&&(x.gzhead.hcrc?(x.pending+2>x.pending_buf_size&&Z(t),x.pending+2<=x.pending_buf_size&&(S(x,255&t.adler),S(x,t.adler>>8&255),t.adler=0,x.status=U)):x.status=U),x.pending!==0){if(Z(t),t.avail_out===0)return x.last_flush=-1,p}else if(t.avail_in===0&&ie(z)<=ie(I)&&z!==k)return ue(t,-5);if(x.status===666&&t.avail_in!==0)return ue(t,-5);if(t.avail_in!==0||x.lookahead!==0||z!==A&&x.status!==666){var V=x.strategy===2?(function(O,G){for(var te;;){if(O.lookahead===0&&(R(O),O.lookahead===0)){if(G===A)return h;break}if(O.match_length=0,te=e._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,te&&(j(O,!1),O.strm.avail_out===0))return h}return O.insert=0,G===k?(j(O,!0),O.strm.avail_out===0?oe:J):O.last_lit&&(j(O,!1),O.strm.avail_out===0)?h:$})(x,z):x.strategy===3?(function(O,G){for(var te,X,ae,de,se=O.window;;){if(O.lookahead<=ne){if(R(O),O.lookahead<=ne&&G===A)return h;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=L&&0<O.strstart&&(X=se[ae=O.strstart-1])===se[++ae]&&X===se[++ae]&&X===se[++ae]){de=O.strstart+ne;do;while(X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&ae<de);O.match_length=ne-(de-ae),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=L?(te=e._tr_tally(O,1,O.match_length-L),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(te=e._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),te&&(j(O,!1),O.strm.avail_out===0))return h}return O.insert=0,G===k?(j(O,!0),O.strm.avail_out===0?oe:J):O.last_lit&&(j(O,!1),O.strm.avail_out===0)?h:$})(x,z):i[x.level].func(x,z);if(V!==oe&&V!==J||(x.status=666),V===h||V===oe)return t.avail_out===0&&(x.last_flush=-1),p;if(V===$&&(z===1?e._tr_align(x):z!==5&&(e._tr_stored_block(x,0,0,!1),z===3&&(le(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),Z(t),t.avail_out===0))return x.last_flush=-1,p}return z!==k?p:x.wrap<=0?1:(x.wrap===2?(S(x,255&t.adler),S(x,t.adler>>8&255),S(x,t.adler>>16&255),S(x,t.adler>>24&255),S(x,255&t.total_in),S(x,t.total_in>>8&255),S(x,t.total_in>>16&255),S(x,t.total_in>>24&255)):(T(x,t.adler>>>16),T(x,65535&t.adler)),Z(t),0<x.wrap&&(x.wrap=-x.wrap),x.pending!==0?p:1)},n.deflateEnd=function(t){var z;return t&&t.state?(z=t.state.status)!==P&&z!==69&&z!==73&&z!==91&&z!==103&&z!==U&&z!==666?ue(t,b):(t.state=null,z===U?ue(t,-3):p):b},n.deflateSetDictionary=function(t,z){var I,x,_,B,M,V,O,G,te=z.length;if(!t||!t.state||(B=(I=t.state).wrap)===2||B===1&&I.status!==P||I.lookahead)return b;for(B===1&&(t.adler=u(t.adler,z,te,0)),I.wrap=0,te>=I.w_size&&(B===0&&(le(I.head),I.strstart=0,I.block_start=0,I.insert=0),G=new a.Buf8(I.w_size),a.arraySet(G,z,te-I.w_size,I.w_size,0),z=G,te=I.w_size),M=t.avail_in,V=t.next_in,O=t.input,t.avail_in=te,t.next_in=0,t.input=z,R(I);I.lookahead>=L;){for(x=I.strstart,_=I.lookahead-(L-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[x+L-1])&I.hash_mask,I.prev[x&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=x,x++,--_;);I.strstart=x,I.lookahead=L-1,R(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=L-1,I.match_available=0,t.next_in=V,t.input=O,t.avail_in=M,I.wrap=B,p},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,c,n){"use strict";c.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,c,n){"use strict";c.exports=function(i,a){var e=i.state,u=i.next_in,v,y,A,k,p,b,o,w,m,d,s,g,C,F,D,q,L,ne,re,P,U,h=i.input,$;v=u+(i.avail_in-5),y=i.next_out,$=i.output,A=y-(a-i.avail_out),k=y+(i.avail_out-257),p=e.dmax,b=e.wsize,o=e.whave,w=e.wnext,m=e.window,d=e.hold,s=e.bits,g=e.lencode,C=e.distcode,F=(1<<e.lenbits)-1,D=(1<<e.distbits)-1;e:do{s<15&&(d+=h[u++]<<s,s+=8,d+=h[u++]<<s,s+=8),q=g[d&F];t:for(;;){if(d>>>=L=q>>>24,s-=L,(L=q>>>16&255)===0)$[y++]=65535&q;else{if(!(16&L)){if((64&L)==0){q=g[(65535&q)+(d&(1<<L)-1)];continue t}if(32&L){e.mode=12;break e}i.msg="invalid literal/length code",e.mode=30;break e}ne=65535&q,(L&=15)&&(s<L&&(d+=h[u++]<<s,s+=8),ne+=d&(1<<L)-1,d>>>=L,s-=L),s<15&&(d+=h[u++]<<s,s+=8,d+=h[u++]<<s,s+=8),q=C[d&D];r:for(;;){if(d>>>=L=q>>>24,s-=L,!(16&(L=q>>>16&255))){if((64&L)==0){q=C[(65535&q)+(d&(1<<L)-1)];continue r}i.msg="invalid distance code",e.mode=30;break e}if(re=65535&q,s<(L&=15)&&(d+=h[u++]<<s,(s+=8)<L&&(d+=h[u++]<<s,s+=8)),p<(re+=d&(1<<L)-1)){i.msg="invalid distance too far back",e.mode=30;break e}if(d>>>=L,s-=L,(L=y-A)<re){if(o<(L=re-L)&&e.sane){i.msg="invalid distance too far back",e.mode=30;break e}if(U=m,(P=0)===w){if(P+=b-L,L<ne){for(ne-=L;$[y++]=m[P++],--L;);P=y-re,U=$}}else if(w<L){if(P+=b+w-L,(L-=w)<ne){for(ne-=L;$[y++]=m[P++],--L;);if(P=0,w<ne){for(ne-=L=w;$[y++]=m[P++],--L;);P=y-re,U=$}}}else if(P+=w-L,L<ne){for(ne-=L;$[y++]=m[P++],--L;);P=y-re,U=$}for(;2<ne;)$[y++]=U[P++],$[y++]=U[P++],$[y++]=U[P++],ne-=3;ne&&($[y++]=U[P++],1<ne&&($[y++]=U[P++]))}else{for(P=y-re;$[y++]=$[P++],$[y++]=$[P++],$[y++]=$[P++],2<(ne-=3););ne&&($[y++]=$[P++],1<ne&&($[y++]=$[P++]))}break}}break}}while(u<v&&y<k);u-=ne=s>>3,d&=(1<<(s-=ne<<3))-1,i.next_in=u,i.next_out=y,i.avail_in=u<v?v-u+5:5-(u-v),i.avail_out=y<k?k-y+257:257-(y-k),e.hold=d,e.bits=s}},{}],49:[function(r,c,n){"use strict";var i=r("../utils/common"),a=r("./adler32"),e=r("./crc32"),u=r("./inffast"),v=r("./inftrees"),y=1,A=2,k=0,p=-2,b=1,o=852,w=592;function m(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(P){var U;return P&&P.state?(U=P.state,P.total_in=P.total_out=U.total=0,P.msg="",U.wrap&&(P.adler=1&U.wrap),U.mode=b,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new i.Buf32(o),U.distcode=U.distdyn=new i.Buf32(w),U.sane=1,U.back=-1,k):p}function g(P){var U;return P&&P.state?((U=P.state).wsize=0,U.whave=0,U.wnext=0,s(P)):p}function C(P,U){var h,$;return P&&P.state?($=P.state,U<0?(h=0,U=-U):(h=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?p:($.window!==null&&$.wbits!==U&&($.window=null),$.wrap=h,$.wbits=U,g(P))):p}function F(P,U){var h,$;return P?($=new d,(P.state=$).window=null,(h=C(P,U))!==k&&(P.state=null),h):p}var D,q,L=!0;function ne(P){if(L){var U;for(D=new i.Buf32(512),q=new i.Buf32(32),U=0;U<144;)P.lens[U++]=8;for(;U<256;)P.lens[U++]=9;for(;U<280;)P.lens[U++]=7;for(;U<288;)P.lens[U++]=8;for(v(y,P.lens,0,288,D,0,P.work,{bits:9}),U=0;U<32;)P.lens[U++]=5;v(A,P.lens,0,32,q,0,P.work,{bits:5}),L=!1}P.lencode=D,P.lenbits=9,P.distcode=q,P.distbits=5}function re(P,U,h,$){var oe,J=P.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new i.Buf8(J.wsize)),$>=J.wsize?(i.arraySet(J.window,U,h-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):($<(oe=J.wsize-J.wnext)&&(oe=$),i.arraySet(J.window,U,h-$,oe,J.wnext),($-=oe)?(i.arraySet(J.window,U,h-$,$,0),J.wnext=$,J.whave=J.wsize):(J.wnext+=oe,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=oe))),0}n.inflateReset=g,n.inflateReset2=C,n.inflateResetKeep=s,n.inflateInit=function(P){return F(P,15)},n.inflateInit2=F,n.inflate=function(P,U){var h,$,oe,J,ue,ie,le,Z,j,S,T,E,R,N,W,H,K,ee,Y,Q,t,z,I,x,_=0,B=new i.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return p;(h=P.state).mode===12&&(h.mode=13),ue=P.next_out,oe=P.output,le=P.avail_out,J=P.next_in,$=P.input,ie=P.avail_in,Z=h.hold,j=h.bits,S=ie,T=le,z=k;e:for(;;)switch(h.mode){case b:if(h.wrap===0){h.mode=13;break}for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(2&h.wrap&&Z===35615){B[h.check=0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0),j=Z=0,h.mode=2;break}if(h.flags=0,h.head&&(h.head.done=!1),!(1&h.wrap)||(((255&Z)<<8)+(Z>>8))%31){P.msg="incorrect header check",h.mode=30;break}if((15&Z)!=8){P.msg="unknown compression method",h.mode=30;break}if(j-=4,t=8+(15&(Z>>>=4)),h.wbits===0)h.wbits=t;else if(t>h.wbits){P.msg="invalid window size",h.mode=30;break}h.dmax=1<<t,P.adler=h.check=1,h.mode=512&Z?10:12,j=Z=0;break;case 2:for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(h.flags=Z,(255&h.flags)!=8){P.msg="unknown compression method",h.mode=30;break}if(57344&h.flags){P.msg="unknown header flags set",h.mode=30;break}h.head&&(h.head.text=Z>>8&1),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0)),j=Z=0,h.mode=3;case 3:for(;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.head&&(h.head.time=Z),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,B[2]=Z>>>16&255,B[3]=Z>>>24&255,h.check=e(h.check,B,4,0)),j=Z=0,h.mode=4;case 4:for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.head&&(h.head.xflags=255&Z,h.head.os=Z>>8),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0)),j=Z=0,h.mode=5;case 5:if(1024&h.flags){for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.length=Z,h.head&&(h.head.extra_len=Z),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0)),j=Z=0}else h.head&&(h.head.extra=null);h.mode=6;case 6:if(1024&h.flags&&(ie<(E=h.length)&&(E=ie),E&&(h.head&&(t=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),i.arraySet(h.head.extra,$,J,E,t)),512&h.flags&&(h.check=e(h.check,$,E,J)),ie-=E,J+=E,h.length-=E),h.length))break e;h.length=0,h.mode=7;case 7:if(2048&h.flags){if(ie===0)break e;for(E=0;t=$[J+E++],h.head&&t&&h.length<65536&&(h.head.name+=String.fromCharCode(t)),t&&E<ie;);if(512&h.flags&&(h.check=e(h.check,$,E,J)),ie-=E,J+=E,t)break e}else h.head&&(h.head.name=null);h.length=0,h.mode=8;case 8:if(4096&h.flags){if(ie===0)break e;for(E=0;t=$[J+E++],h.head&&t&&h.length<65536&&(h.head.comment+=String.fromCharCode(t)),t&&E<ie;);if(512&h.flags&&(h.check=e(h.check,$,E,J)),ie-=E,J+=E,t)break e}else h.head&&(h.head.comment=null);h.mode=9;case 9:if(512&h.flags){for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(Z!==(65535&h.check)){P.msg="header crc mismatch",h.mode=30;break}j=Z=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),P.adler=h.check=0,h.mode=12;break;case 10:for(;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}P.adler=h.check=m(Z),j=Z=0,h.mode=11;case 11:if(h.havedict===0)return P.next_out=ue,P.avail_out=le,P.next_in=J,P.avail_in=ie,h.hold=Z,h.bits=j,2;P.adler=h.check=1,h.mode=12;case 12:if(U===5||U===6)break e;case 13:if(h.last){Z>>>=7&j,j-=7&j,h.mode=27;break}for(;j<3;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}switch(h.last=1&Z,j-=1,3&(Z>>>=1)){case 0:h.mode=14;break;case 1:if(ne(h),h.mode=20,U!==6)break;Z>>>=2,j-=2;break e;case 2:h.mode=17;break;case 3:P.msg="invalid block type",h.mode=30}Z>>>=2,j-=2;break;case 14:for(Z>>>=7&j,j-=7&j;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if((65535&Z)!=(Z>>>16^65535)){P.msg="invalid stored block lengths",h.mode=30;break}if(h.length=65535&Z,j=Z=0,h.mode=15,U===6)break e;case 15:h.mode=16;case 16:if(E=h.length){if(ie<E&&(E=ie),le<E&&(E=le),E===0)break e;i.arraySet(oe,$,J,E,ue),ie-=E,J+=E,le-=E,ue+=E,h.length-=E;break}h.mode=12;break;case 17:for(;j<14;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(h.nlen=257+(31&Z),Z>>>=5,j-=5,h.ndist=1+(31&Z),Z>>>=5,j-=5,h.ncode=4+(15&Z),Z>>>=4,j-=4,286<h.nlen||30<h.ndist){P.msg="too many length or distance symbols",h.mode=30;break}h.have=0,h.mode=18;case 18:for(;h.have<h.ncode;){for(;j<3;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.lens[M[h.have++]]=7&Z,Z>>>=3,j-=3}for(;h.have<19;)h.lens[M[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,I={bits:h.lenbits},z=v(0,h.lens,0,19,h.lencode,0,h.work,I),h.lenbits=I.bits,z){P.msg="invalid code lengths set",h.mode=30;break}h.have=0,h.mode=19;case 19:for(;h.have<h.nlen+h.ndist;){for(;H=(_=h.lencode[Z&(1<<h.lenbits)-1])>>>16&255,K=65535&_,!((W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(K<16)Z>>>=W,j-=W,h.lens[h.have++]=K;else{if(K===16){for(x=W+2;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(Z>>>=W,j-=W,h.have===0){P.msg="invalid bit length repeat",h.mode=30;break}t=h.lens[h.have-1],E=3+(3&Z),Z>>>=2,j-=2}else if(K===17){for(x=W+3;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}j-=W,t=0,E=3+(7&(Z>>>=W)),Z>>>=3,j-=3}else{for(x=W+7;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}j-=W,t=0,E=11+(127&(Z>>>=W)),Z>>>=7,j-=7}if(h.have+E>h.nlen+h.ndist){P.msg="invalid bit length repeat",h.mode=30;break}for(;E--;)h.lens[h.have++]=t}}if(h.mode===30)break;if(h.lens[256]===0){P.msg="invalid code -- missing end-of-block",h.mode=30;break}if(h.lenbits=9,I={bits:h.lenbits},z=v(y,h.lens,0,h.nlen,h.lencode,0,h.work,I),h.lenbits=I.bits,z){P.msg="invalid literal/lengths set",h.mode=30;break}if(h.distbits=6,h.distcode=h.distdyn,I={bits:h.distbits},z=v(A,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,I),h.distbits=I.bits,z){P.msg="invalid distances set",h.mode=30;break}if(h.mode=20,U===6)break e;case 20:h.mode=21;case 21:if(6<=ie&&258<=le){P.next_out=ue,P.avail_out=le,P.next_in=J,P.avail_in=ie,h.hold=Z,h.bits=j,u(P,T),ue=P.next_out,oe=P.output,le=P.avail_out,J=P.next_in,$=P.input,ie=P.avail_in,Z=h.hold,j=h.bits,h.mode===12&&(h.back=-1);break}for(h.back=0;H=(_=h.lencode[Z&(1<<h.lenbits)-1])>>>16&255,K=65535&_,!((W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(H&&(240&H)==0){for(ee=W,Y=H,Q=K;H=(_=h.lencode[Q+((Z&(1<<ee+Y)-1)>>ee)])>>>16&255,K=65535&_,!(ee+(W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}Z>>>=ee,j-=ee,h.back+=ee}if(Z>>>=W,j-=W,h.back+=W,h.length=K,H===0){h.mode=26;break}if(32&H){h.back=-1,h.mode=12;break}if(64&H){P.msg="invalid literal/length code",h.mode=30;break}h.extra=15&H,h.mode=22;case 22:if(h.extra){for(x=h.extra;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.length+=Z&(1<<h.extra)-1,Z>>>=h.extra,j-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=23;case 23:for(;H=(_=h.distcode[Z&(1<<h.distbits)-1])>>>16&255,K=65535&_,!((W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if((240&H)==0){for(ee=W,Y=H,Q=K;H=(_=h.distcode[Q+((Z&(1<<ee+Y)-1)>>ee)])>>>16&255,K=65535&_,!(ee+(W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}Z>>>=ee,j-=ee,h.back+=ee}if(Z>>>=W,j-=W,h.back+=W,64&H){P.msg="invalid distance code",h.mode=30;break}h.offset=K,h.extra=15&H,h.mode=24;case 24:if(h.extra){for(x=h.extra;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.offset+=Z&(1<<h.extra)-1,Z>>>=h.extra,j-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){P.msg="invalid distance too far back",h.mode=30;break}h.mode=25;case 25:if(le===0)break e;if(E=T-le,h.offset>E){if((E=h.offset-E)>h.whave&&h.sane){P.msg="invalid distance too far back",h.mode=30;break}R=E>h.wnext?(E-=h.wnext,h.wsize-E):h.wnext-E,E>h.length&&(E=h.length),N=h.window}else N=oe,R=ue-h.offset,E=h.length;for(le<E&&(E=le),le-=E,h.length-=E;oe[ue++]=N[R++],--E;);h.length===0&&(h.mode=21);break;case 26:if(le===0)break e;oe[ue++]=h.length,le--,h.mode=21;break;case 27:if(h.wrap){for(;j<32;){if(ie===0)break e;ie--,Z|=$[J++]<<j,j+=8}if(T-=le,P.total_out+=T,h.total+=T,T&&(P.adler=h.check=h.flags?e(h.check,oe,T,ue-T):a(h.check,oe,T,ue-T)),T=le,(h.flags?Z:m(Z))!==h.check){P.msg="incorrect data check",h.mode=30;break}j=Z=0}h.mode=28;case 28:if(h.wrap&&h.flags){for(;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(Z!==(4294967295&h.total)){P.msg="incorrect length check",h.mode=30;break}j=Z=0}h.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;default:return p}return P.next_out=ue,P.avail_out=le,P.next_in=J,P.avail_in=ie,h.hold=Z,h.bits=j,(h.wsize||T!==P.avail_out&&h.mode<30&&(h.mode<27||U!==4))&&re(P,P.output,P.next_out,T-P.avail_out)?(h.mode=31,-4):(S-=P.avail_in,T-=P.avail_out,P.total_in+=S,P.total_out+=T,h.total+=T,h.wrap&&T&&(P.adler=h.check=h.flags?e(h.check,oe,T,P.next_out-T):a(h.check,oe,T,P.next_out-T)),P.data_type=h.bits+(h.last?64:0)+(h.mode===12?128:0)+(h.mode===20||h.mode===15?256:0),(S==0&&T===0||U===4)&&z===k&&(z=-5),z)},n.inflateEnd=function(P){if(!P||!P.state)return p;var U=P.state;return U.window&&(U.window=null),P.state=null,k},n.inflateGetHeader=function(P,U){var h;return P&&P.state?(2&(h=P.state).wrap)==0?p:((h.head=U).done=!1,k):p},n.inflateSetDictionary=function(P,U){var h,$=U.length;return P&&P.state?(h=P.state).wrap!==0&&h.mode!==11?p:h.mode===11&&a(1,U,$,0)!==h.check?-3:re(P,U,$,$)?(h.mode=31,-4):(h.havedict=1,k):p},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,c,n){"use strict";var i=r("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(y,A,k,p,b,o,w,m){var d,s,g,C,F,D,q,L,ne,re=m.bits,P=0,U=0,h=0,$=0,oe=0,J=0,ue=0,ie=0,le=0,Z=0,j=null,S=0,T=new i.Buf16(16),E=new i.Buf16(16),R=null,N=0;for(P=0;P<=15;P++)T[P]=0;for(U=0;U<p;U++)T[A[k+U]]++;for(oe=re,$=15;1<=$&&T[$]===0;$--);if($<oe&&(oe=$),$===0)return b[o++]=20971520,b[o++]=20971520,m.bits=1,0;for(h=1;h<$&&T[h]===0;h++);for(oe<h&&(oe=h),P=ie=1;P<=15;P++)if(ie<<=1,(ie-=T[P])<0)return-1;if(0<ie&&(y===0||$!==1))return-1;for(E[1]=0,P=1;P<15;P++)E[P+1]=E[P]+T[P];for(U=0;U<p;U++)A[k+U]!==0&&(w[E[A[k+U]]++]=U);if(D=y===0?(j=R=w,19):y===1?(j=a,S-=257,R=e,N-=257,256):(j=u,R=v,-1),P=h,F=o,ue=U=Z=0,g=-1,C=(le=1<<(J=oe))-1,y===1&&852<le||y===2&&592<le)return 1;for(;;){for(q=P-ue,ne=w[U]<D?(L=0,w[U]):w[U]>D?(L=R[N+w[U]],j[S+w[U]]):(L=96,0),d=1<<P-ue,h=s=1<<J;b[F+(Z>>ue)+(s-=d)]=q<<24|L<<16|ne|0,s!==0;);for(d=1<<P-1;Z&d;)d>>=1;if(d!==0?(Z&=d-1,Z+=d):Z=0,U++,--T[P]==0){if(P===$)break;P=A[k+w[U]]}if(oe<P&&(Z&C)!==g){for(ue===0&&(ue=oe),F+=h,ie=1<<(J=P-ue);J+ue<$&&!((ie-=T[J+ue])<=0);)J++,ie<<=1;if(le+=1<<J,y===1&&852<le||y===2&&592<le)return 1;b[g=Z&C]=oe<<24|J<<16|F-o|0}}return Z!==0&&(b[F+Z]=P-ue<<24|4194304),m.bits=oe,0}},{"../utils/common":41}],51:[function(r,c,n){"use strict";c.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,c,n){"use strict";var i=r("../utils/common"),a=0,e=1;function u(_){for(var B=_.length;0<=--B;)_[B]=0}var v=0,y=29,A=256,k=A+1+y,p=30,b=19,o=2*k+1,w=15,m=16,d=7,s=256,g=16,C=17,F=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],re=new Array(2*(k+2));u(re);var P=new Array(2*p);u(P);var U=new Array(512);u(U);var h=new Array(256);u(h);var $=new Array(y);u($);var oe,J,ue,ie=new Array(p);function le(_,B,M,V,O){this.static_tree=_,this.extra_bits=B,this.extra_base=M,this.elems=V,this.max_length=O,this.has_stree=_&&_.length}function Z(_,B){this.dyn_tree=_,this.max_code=0,this.stat_desc=B}function j(_){return _<256?U[_]:U[256+(_>>>7)]}function S(_,B){_.pending_buf[_.pending++]=255&B,_.pending_buf[_.pending++]=B>>>8&255}function T(_,B,M){_.bi_valid>m-M?(_.bi_buf|=B<<_.bi_valid&65535,S(_,_.bi_buf),_.bi_buf=B>>m-_.bi_valid,_.bi_valid+=M-m):(_.bi_buf|=B<<_.bi_valid&65535,_.bi_valid+=M)}function E(_,B,M){T(_,M[2*B],M[2*B+1])}function R(_,B){for(var M=0;M|=1&_,_>>>=1,M<<=1,0<--B;);return M>>>1}function N(_,B,M){var V,O,G=new Array(w+1),te=0;for(V=1;V<=w;V++)G[V]=te=te+M[V-1]<<1;for(O=0;O<=B;O++){var X=_[2*O+1];X!==0&&(_[2*O]=R(G[X]++,X))}}function W(_){var B;for(B=0;B<k;B++)_.dyn_ltree[2*B]=0;for(B=0;B<p;B++)_.dyn_dtree[2*B]=0;for(B=0;B<b;B++)_.bl_tree[2*B]=0;_.dyn_ltree[2*s]=1,_.opt_len=_.static_len=0,_.last_lit=_.matches=0}function H(_){8<_.bi_valid?S(_,_.bi_buf):0<_.bi_valid&&(_.pending_buf[_.pending++]=_.bi_buf),_.bi_buf=0,_.bi_valid=0}function K(_,B,M,V){var O=2*B,G=2*M;return _[O]<_[G]||_[O]===_[G]&&V[B]<=V[M]}function ee(_,B,M){for(var V=_.heap[M],O=M<<1;O<=_.heap_len&&(O<_.heap_len&&K(B,_.heap[O+1],_.heap[O],_.depth)&&O++,!K(B,V,_.heap[O],_.depth));)_.heap[M]=_.heap[O],M=O,O<<=1;_.heap[M]=V}function Y(_,B,M){var V,O,G,te,X=0;if(_.last_lit!==0)for(;V=_.pending_buf[_.d_buf+2*X]<<8|_.pending_buf[_.d_buf+2*X+1],O=_.pending_buf[_.l_buf+X],X++,V===0?E(_,O,B):(E(_,(G=h[O])+A+1,B),(te=D[G])!==0&&T(_,O-=$[G],te),E(_,G=j(--V),M),(te=q[G])!==0&&T(_,V-=ie[G],te)),X<_.last_lit;);E(_,s,B)}function Q(_,B){var M,V,O,G=B.dyn_tree,te=B.stat_desc.static_tree,X=B.stat_desc.has_stree,ae=B.stat_desc.elems,de=-1;for(_.heap_len=0,_.heap_max=o,M=0;M<ae;M++)G[2*M]!==0?(_.heap[++_.heap_len]=de=M,_.depth[M]=0):G[2*M+1]=0;for(;_.heap_len<2;)G[2*(O=_.heap[++_.heap_len]=de<2?++de:0)]=1,_.depth[O]=0,_.opt_len--,X&&(_.static_len-=te[2*O+1]);for(B.max_code=de,M=_.heap_len>>1;1<=M;M--)ee(_,G,M);for(O=ae;M=_.heap[1],_.heap[1]=_.heap[_.heap_len--],ee(_,G,1),V=_.heap[1],_.heap[--_.heap_max]=M,_.heap[--_.heap_max]=V,G[2*O]=G[2*M]+G[2*V],_.depth[O]=(_.depth[M]>=_.depth[V]?_.depth[M]:_.depth[V])+1,G[2*M+1]=G[2*V+1]=O,_.heap[1]=O++,ee(_,G,1),2<=_.heap_len;);_.heap[--_.heap_max]=_.heap[1],(function(se,xe){var Fe,pe,he,ce,ke,De,me=xe.dyn_tree,ve=xe.max_code,ge=xe.stat_desc.static_tree,Se=xe.stat_desc.has_stree,Ee=xe.stat_desc.extra_bits,Pe=xe.stat_desc.extra_base,Ae=xe.stat_desc.max_length,Te=0;for(ce=0;ce<=w;ce++)se.bl_count[ce]=0;for(me[2*se.heap[se.heap_max]+1]=0,Fe=se.heap_max+1;Fe<o;Fe++)Ae<(ce=me[2*me[2*(pe=se.heap[Fe])+1]+1]+1)&&(ce=Ae,Te++),me[2*pe+1]=ce,ve<pe||(se.bl_count[ce]++,ke=0,Pe<=pe&&(ke=Ee[pe-Pe]),De=me[2*pe],se.opt_len+=De*(ce+ke),Se&&(se.static_len+=De*(ge[2*pe+1]+ke)));if(Te!==0){do{for(ce=Ae-1;se.bl_count[ce]===0;)ce--;se.bl_count[ce]--,se.bl_count[ce+1]+=2,se.bl_count[Ae]--,Te-=2}while(0<Te);for(ce=Ae;ce!==0;ce--)for(pe=se.bl_count[ce];pe!==0;)ve<(he=se.heap[--Fe])||(me[2*he+1]!==ce&&(se.opt_len+=(ce-me[2*he+1])*me[2*he],me[2*he+1]=ce),pe--)}})(_,B),N(G,de,_.bl_count)}function t(_,B,M){var V,O,G=-1,te=B[1],X=0,ae=7,de=4;for(te===0&&(ae=138,de=3),B[2*(M+1)+1]=65535,V=0;V<=M;V++)O=te,te=B[2*(V+1)+1],++X<ae&&O===te||(X<de?_.bl_tree[2*O]+=X:O!==0?(O!==G&&_.bl_tree[2*O]++,_.bl_tree[2*g]++):X<=10?_.bl_tree[2*C]++:_.bl_tree[2*F]++,G=O,de=(X=0)===te?(ae=138,3):O===te?(ae=6,3):(ae=7,4))}function z(_,B,M){var V,O,G=-1,te=B[1],X=0,ae=7,de=4;for(te===0&&(ae=138,de=3),V=0;V<=M;V++)if(O=te,te=B[2*(V+1)+1],!(++X<ae&&O===te)){if(X<de)for(;E(_,O,_.bl_tree),--X!=0;);else O!==0?(O!==G&&(E(_,O,_.bl_tree),X--),E(_,g,_.bl_tree),T(_,X-3,2)):X<=10?(E(_,C,_.bl_tree),T(_,X-3,3)):(E(_,F,_.bl_tree),T(_,X-11,7));G=O,de=(X=0)===te?(ae=138,3):O===te?(ae=6,3):(ae=7,4)}}u(ie);var I=!1;function x(_,B,M,V){T(_,(v<<1)+(V?1:0),3),(function(O,G,te,X){H(O),X&&(S(O,te),S(O,~te)),i.arraySet(O.pending_buf,O.window,G,te,O.pending),O.pending+=te})(_,B,M,!0)}n._tr_init=function(_){I||((function(){var B,M,V,O,G,te=new Array(w+1);for(O=V=0;O<y-1;O++)for($[O]=V,B=0;B<1<<D[O];B++)h[V++]=O;for(h[V-1]=O,O=G=0;O<16;O++)for(ie[O]=G,B=0;B<1<<q[O];B++)U[G++]=O;for(G>>=7;O<p;O++)for(ie[O]=G<<7,B=0;B<1<<q[O]-7;B++)U[256+G++]=O;for(M=0;M<=w;M++)te[M]=0;for(B=0;B<=143;)re[2*B+1]=8,B++,te[8]++;for(;B<=255;)re[2*B+1]=9,B++,te[9]++;for(;B<=279;)re[2*B+1]=7,B++,te[7]++;for(;B<=287;)re[2*B+1]=8,B++,te[8]++;for(N(re,k+1,te),B=0;B<p;B++)P[2*B+1]=5,P[2*B]=R(B,5);oe=new le(re,D,A+1,k,w),J=new le(P,q,0,p,w),ue=new le(new Array(0),L,0,b,d)})(),I=!0),_.l_desc=new Z(_.dyn_ltree,oe),_.d_desc=new Z(_.dyn_dtree,J),_.bl_desc=new Z(_.bl_tree,ue),_.bi_buf=0,_.bi_valid=0,W(_)},n._tr_stored_block=x,n._tr_flush_block=function(_,B,M,V){var O,G,te=0;0<_.level?(_.strm.data_type===2&&(_.strm.data_type=(function(X){var ae,de=4093624447;for(ae=0;ae<=31;ae++,de>>>=1)if(1&de&&X.dyn_ltree[2*ae]!==0)return a;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return e;for(ae=32;ae<A;ae++)if(X.dyn_ltree[2*ae]!==0)return e;return a})(_)),Q(_,_.l_desc),Q(_,_.d_desc),te=(function(X){var ae;for(t(X,X.dyn_ltree,X.l_desc.max_code),t(X,X.dyn_dtree,X.d_desc.max_code),Q(X,X.bl_desc),ae=b-1;3<=ae&&X.bl_tree[2*ne[ae]+1]===0;ae--);return X.opt_len+=3*(ae+1)+5+5+4,ae})(_),O=_.opt_len+3+7>>>3,(G=_.static_len+3+7>>>3)<=O&&(O=G)):O=G=M+5,M+4<=O&&B!==-1?x(_,B,M,V):_.strategy===4||G===O?(T(_,2+(V?1:0),3),Y(_,re,P)):(T(_,4+(V?1:0),3),(function(X,ae,de,se){var xe;for(T(X,ae-257,5),T(X,de-1,5),T(X,se-4,4),xe=0;xe<se;xe++)T(X,X.bl_tree[2*ne[xe]+1],3);z(X,X.dyn_ltree,ae-1),z(X,X.dyn_dtree,de-1)})(_,_.l_desc.max_code+1,_.d_desc.max_code+1,te+1),Y(_,_.dyn_ltree,_.dyn_dtree)),W(_),V&&H(_)},n._tr_tally=function(_,B,M){return _.pending_buf[_.d_buf+2*_.last_lit]=B>>>8&255,_.pending_buf[_.d_buf+2*_.last_lit+1]=255&B,_.pending_buf[_.l_buf+_.last_lit]=255&M,_.last_lit++,B===0?_.dyn_ltree[2*M]++:(_.matches++,B--,_.dyn_ltree[2*(h[M]+A+1)]++,_.dyn_dtree[2*j(B)]++),_.last_lit===_.lit_bufsize-1},n._tr_align=function(_){T(_,2,3),E(_,s,re),(function(B){B.bi_valid===16?(S(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):8<=B.bi_valid&&(B.pending_buf[B.pending++]=255&B.bi_buf,B.bi_buf>>=8,B.bi_valid-=8)})(_)}},{"../utils/common":41}],53:[function(r,c,n){"use strict";c.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,c,n){(function(i){(function(a,e){"use strict";if(!a.setImmediate){var u,v,y,A,k=1,p={},b=!1,o=a.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(a);w=w&&w.setTimeout?w:a,u={}.toString.call(a.process)==="[object process]"?function(g){process.nextTick(function(){d(g)})}:(function(){if(a.postMessage&&!a.importScripts){var g=!0,C=a.onmessage;return a.onmessage=function(){g=!1},a.postMessage("","*"),a.onmessage=C,g}})()?(A="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",s,!1):a.attachEvent("onmessage",s),function(g){a.postMessage(A+g,"*")}):a.MessageChannel?((y=new MessageChannel).port1.onmessage=function(g){d(g.data)},function(g){y.port2.postMessage(g)}):o&&"onreadystatechange"in o.createElement("script")?(v=o.documentElement,function(g){var C=o.createElement("script");C.onreadystatechange=function(){d(g),C.onreadystatechange=null,v.removeChild(C),C=null},v.appendChild(C)}):function(g){setTimeout(d,0,g)},w.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var C=new Array(arguments.length-1),F=0;F<C.length;F++)C[F]=arguments[F+1];return p[k]={callback:g,args:C},u(k),k++},w.clearImmediate=m}function m(g){delete p[g]}function d(g){if(b)setTimeout(d,0,g);else{var C=p[g];if(C){b=!0;try{(function(F){var D=F.callback,q=F.args;switch(q.length){case 0:D();break;case 1:D(q[0]);break;case 2:D(q[0],q[1]);break;case 3:D(q[0],q[1],q[2]);break;default:D.apply(e,q)}})(C)}finally{m(g),b=!1}}}}function s(g){g.source===a&&typeof g.data=="string"&&g.data.indexOf(A)===0&&d(+g.data.slice(A.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})),Ve=Oe((l=>{var f="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=new RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),c=function(i,a){const e=[];let u=a.exec(i);for(;u;){const v=[],y=u.length;for(let A=0;A<y;A++)v.push(u[A]);e.push(v),u=a.exec(i)}return e},n=function(i){const a=r.exec(i);return!(a===null||typeof a>"u")};l.isExist=function(i){return typeof i<"u"},l.isEmptyObject=function(i){return Object.keys(i).length===0},l.merge=function(i,a,e){if(a){const u=Object.keys(a),v=u.length;for(let y=0;y<v;y++)e==="strict"?i[u[y]]=[a[u[y]]]:i[u[y]]=a[u[y]]}},l.getValue=function(i){return l.isExist(i)?i:""},l.buildOptions=function(i,a,e){var u={};if(!i)return a;for(let v=0;v<e.length;v++)i[e[v]]!==void 0?u[e[v]]=i[e[v]]:u[e[v]]=a[e[v]];return u},l.isName=n,l.getAllMatches=c,l.nameRegexp=f})),In=Oe((l=>{var f=Ve(),r=function(c,n){const i={};if((!c.child||f.isEmptyObject(c.child))&&(!c.attrsMap||f.isEmptyObject(c.attrsMap)))return f.isExist(c.val)?c.val:"";f.isExist(c.val)&&(typeof c.val=="string"&&(c.val===""||c.val===n.cdataPositionChar)||(n.arrayMode==="strict"?i[n.textNodeName]=[c.val]:i[n.textNodeName]=c.val)),f.merge(i,c.attrsMap,n.arrayMode);const a=Object.keys(c.child);for(let v=0;v<a.length;v++){var e=a[v];if(c.child[e]&&c.child[e].length>1){i[e]=[];for(var u in c.child[e])global.xmlParseFlag=global.xmlParseFlag+1,i[e].push(r(c.child[e][u],n))}else if(n.arrayMode===!0){global.xmlParseFlag=global.xmlParseFlag+1;const y=r(c.child[e][0],n);typeof y=="object"?i[e]=[y]:i[e]=y}else n.arrayMode==="strict"?(global.xmlParseFlag=global.xmlParseFlag+1,i[e]=[r(c.child[e][0],n)]):(global.xmlParseFlag=global.xmlParseFlag+1,i[e]=r(c.child[e][0],n))}return i};l.convertToJson=r})),Bn=Oe(((l,f)=>{f.exports=function(r,c,n){this.tagname=r,this.parent=c,this.child={},this.attrsMap={},this.val=n,this.addChild=function(i){Array.isArray(this.child[i.tagname])?this.child[i.tagname].push(i):this.child[i.tagname]=[i]}}})),ut=Oe((l=>{var f=Ve(),r=Ve().buildOptions,c=Bn();"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,f.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var n={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(b,o){return b},attrValueProcessor:function(b,o){return b},stopNodes:[]};l.defaultOptions=n;var i=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];l.props=i;function a(b,o,w){return o&&(w.trimValues&&(o=o.trim()),o=w.tagValueProcessor(o,b),o=u(o,w.parseNodeValue,w.parseTrueNumberOnly)),o}function e(b,o){if(o.ignoreNameSpace){const w=b.split(":"),m=b.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";w.length===2&&(b=m+w[1])}return b}function u(b,o,w){if(o&&typeof b=="string"){let m;return b.trim()===""||isNaN(b)?m=b==="true"?!0:b==="false"?!1:b:(b.indexOf("0x")!==-1?m=Number.parseInt(b,16):b.indexOf(".")!==-1?(m=Number.parseFloat(b),b=b.replace(/\.?0+$/,"")):m=Number.parseInt(b,10),w&&(m=String(m)===b?m:b)),m}else return f.isExist(b)?b:""}var v=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function y(b,o){if(!o.ignoreAttributes&&typeof b=="string"){b=b.replace(/\r?\n/g," ");const w=f.getAllMatches(b,v),m=w.length,d={};for(let s=0;s<m;s++){const g=e(w[s][1],o);g.length&&(w[s][4]!==void 0?(o.trimValues&&(w[s][4]=w[s][4].trim()),w[s][4]=o.attrValueProcessor(w[s][4],g),d[o.attributeNamePrefix+g]=u(w[s][4],o.parseAttributeValue,o.parseTrueNumberOnly)):o.allowBooleanAttributes&&(d[o.attributeNamePrefix+g]=!0))}if(!Object.keys(d).length)return;if(o.attrNodeName){const s={};return s[o.attrNodeName]=d,s}return d}}var A=function(b,o){b=b.replace(/\r\n?/g,`
|
|
14
|
-
`),
|
|
15
|
-
`&&
|
|
16
|
-
`||
|
|
12
|
+
`,Or=()=>{const o=document.createElement("style");return o.textContent=Br,o},zr=o=>Ir[(o||"").trim().toLowerCase()]||"image/*",Lr=async o=>await new Promise((u,r)=>{const d=new FileReader;d.onload=i=>{var n;const a=(n=i.target)===null||n===void 0?void 0:n.result;if(typeof a=="string"){u(a);return}r(new Error("Unable to read image data URL."))},d.onerror=()=>r(d.error||new Error("Unable to read image data URL.")),d.readAsDataURL(o)}),Nr=async(o,u)=>{const r=(u||"").trim().toLowerCase();if(r==="heic"||r==="heif")throw new Error("HEIC/HEIF image conversion has moved out of @file-viewer/core. Install and pass @file-viewer/renderer-image, or use @file-viewer/preset-all.");return Lr(new Blob([o],{type:zr(r)}))},Rr=o=>Math.min(5,Math.max(.1,Number(o.toFixed(2)))),jt=(o,u,r)=>{if(u>0){o.style.height=`${Math.max(1,Math.round(u*r))}px`;return}o.style.height=`${r*100}%`},Vr=o=>{const u=document.createElement("div");u.className="image-lightbox",u.hidden=!0,u.setAttribute("role","dialog"),u.setAttribute("aria-modal","true");const r=document.createElement("img");r.alt="Preview image",r.src=o;const d=document.createElement("button");d.type="button",d.setAttribute("aria-label","Close image preview"),d.textContent="x";const i=()=>{u.hidden=!0};return d.addEventListener("click",i),r.addEventListener("click",i),u.addEventListener("click",n=>{n.target===u&&i()}),u.append(r,d),{element:u,open(){u.hidden=!1},destroy(){d.removeEventListener("click",i),r.removeEventListener("click",i),u.remove()}}}})),Mr,ct,Wt,Ur,jr,Wr,Hr,Zr,$r,ut,Dn,Pn,Tn,qr=fe((()=>{$e(),Ut(),Lt(),lt(),Mr=o=>({$el:o,unmount(){}}),ct=[{rendererId:"image",handler:async(o,u,r)=>{const{default:d}=await Promise.resolve().then(()=>(Fn(),Sn));return d(o,u,r)}}],Wt=["image"],Ur=ct.filter(o=>Wt.includes(o.rendererId)),jr=Ve.filter(o=>Wt.includes(o.id)),Wr=o=>o==="none"?[]:o==="lite"?jr:Ve,Hr=o=>o==="none"?[]:o==="lite"?Ur:ct,Zr=async(o,u,r)=>{const d=Er(r),i=document.createElement("div");i.style.textAlign="center",i.style.marginTop="80px";const n=document.createElement("div");if(n.textContent=d.message,i.appendChild(n),d.description){const a=document.createElement("div");a.textContent=d.description,i.appendChild(a)}return u.replaceChildren(i),Mr(u)},$r=(o={})=>{const u=o.builtinRenderers||"all",r=Tr({definitions:Wr(u),handlers:Hr(u)});return{...r,dispatcher:zt({registry:r.registry,handlers:ct,fallbackHandler:Zr})}},ut=$r(),Dn=ut.registry,Pn=ut.dispatcher,Tn=ut.missingRendererIds})),In=fe((()=>{Ye()})),Bn=fe((()=>{et(),dt()})),On=fe((()=>{et()})),zn=fe((()=>{fr(),Tt(),Ot(),Nt(),et(),st(),Ut(),qr(),dt(),lt()})),Gr=fe((()=>{pn(),$e(),ur(),fr(),Tt(),Qe(),Ot(),Ye(),st(),qr(),Nt(),et(),In(),Bn(),On(),Lt(),Ut(),at(),lt(),dt(),zn()})),Xr,Yr,Jr,tt,Ge,Kr,Ht,Qr,be,Zt,ei,$t,ti,ri,ii,ni,rt,ai,Le,qt,je,Ne,Gt=fe((()=>{Xr=o=>{let u=o.split(" "),r=[],d=0;for(;d<u.length;){if(u[d]==="M"||u[d]==="S"){let i={type:"M",x:parseFloat(u[d+1]),y:parseFloat(u[d+2])};d=d+3,r.push(i)}if(u[d]==="L"){let i={type:"L",x:parseFloat(u[d+1]),y:parseFloat(u[d+2])};d=d+3,r.push(i)}else if(u[d]==="C")r.push({type:"C",x:0,y:0}),d++;else if(u[d]==="B"){let i={type:"B",x1:parseFloat(u[d+1]),y1:parseFloat(u[d+2]),x2:parseFloat(u[d+3]),y2:parseFloat(u[d+4]),x3:parseFloat(u[d+5]),y3:parseFloat(u[d+6])};d=d+7,r.push(i)}else d++}return r},Yr=function(o){let u=[];for(let r=0;r<o.length;r++){let d=o[r];if(d.type==="M"||d.type==="L"||d.type==="C"){let i=0,n=0;i=d.x,n=d.y,d.x=be(i),d.y=be(n),u.push(d)}else if(d.type==="B"){let i=d.x1,n=d.y1,a=d.x2,e=d.y2,f=d.x3,v=d.y3,y={type:"B",x1:be(i),y1:be(n),x2:be(a),y2:be(e),x3:be(f),y3:be(v)};u.push(y)}}return u},Jr=function(o,u){return o*u/25.4},tt=10,Ge=tt,Kr=function(o){tt=o>5?5:o},Ht=function(o){Ge=o>1?o:1,Ge=Ge>tt?tt:Ge},Qr=function(){return Ge},be=function(o){return Jr(o,Ge*25.4)},Zt=function(o){if(o.indexOf("g")===-1){let u=[];for(let r of o.split(" "))u.push(parseFloat(r));return u}else{const u=o.split(" ");let r=!1,d=!1,i=0,n=[];for(const a of u)if(a==="g")r=!0;else{if(!a||a.trim().length==0)continue;if(r)i=parseInt(a),d=!0,r=!1;else if(d){for(let e=0;e<i;e++)n.push(parseFloat(a));d=!1}else n.push(parseFloat(a))}return n}},ei=function(o){let u=0,r=0,d=[];if(!o)return d;for(let i of o){if(!i)continue;u=parseFloat(i["@_X"]),r=parseFloat(i["@_Y"]),isNaN(u)&&(u=0),isNaN(r)&&(r=0);let n=[],a=[];i["@_DeltaX"]&&i["@_DeltaX"].length>0&&(n=Zt(i["@_DeltaX"])),i["@_DeltaY"]&&i["@_DeltaY"].length>0&&(a=Zt(i["@_DeltaY"]));let e=i["#text"];if(e){e+="",e=ni(e),e=e.replace(/ /g," ");for(let f=0;f<e.length;f++){f>0&&n.length>0&&(u+=n[f-1]),f>0&&a.length>0&&(r+=a[f-1]);let v=e.substring(f,f+1),y=d.filter(A=>A.y==be(r));if(y&&y.length)y[0].text+=v;else{let A={x:be(u),y:be(r),text:v};d.push(A)}}}}return d},$t=function(o){return o&&o.indexOf("/")===0&&(o=o.replace("/","")),o},ti=function(o){return!o&&typeof o!="string"?"":o.substring(o.lastIndexOf(".")+1)},ri=/&\w+;|&#(\d+);/g,ii={"<":"<",">":">","&":"&"," ":" ",""":'"',"©":"","'":"'"},ni=function(o){return o=o??this.toString(),typeof o!="string"?o:o.replace(ri,function(u,r){var d=ii[u];return d==null&&(isNaN(r)?d=u:d=String.fromCharCode(r==160?32:r)),d})},rt={楷体:"楷体, KaiTi, Kai, simkai",kaiti:"楷体, KaiTi, Kai, simkai",Kai:"楷体, KaiTi, Kai",simsun:"SimSun, simsun, Songti SC",宋体:"SimSun, simsun, Songti SC",黑体:"SimHei, STHeiti, simhei",仿宋:"FangSong, STFangsong, simfang",小标宋体:"sSun",方正小标宋_gbk:"sSun",仿宋_gb2312:"FangSong, STFangsong, simfang",楷体_gb2312:"楷体, KaiTi, Kai, simkai",couriernew:"Courier New","courier new":"Courier New"},ai=function(o){rt[o.toLowerCase()]&&(o=rt[o.toLowerCase()]);for(let u of Object.keys(rt))if(o.toLowerCase().indexOf(u.toLowerCase())!=-1)return rt[u];return o},Le=function(o){if(o){let u=o.split(" ");return{x:parseFloat(u[0]),y:parseFloat(u[1]),w:parseFloat(u[2]),h:parseFloat(u[3])}}else return null},qt=function(o){return o.split(" ")},je=function(o){if(o){if(o.indexOf("#")!==-1)return o=o.replace(/#/g,""),o=o.replace(/ /g,""),o="#"+o.toString(),o;let u=o.split(" ");return`rgb(${u[0]}, ${u[1]}, ${u[2]})`}else return"rgb(0, 0, 0)"},Ne=function(o){return{x:be(o.x),y:be(o.y),w:be(o.w),h:be(o.h)}}})),Xt,Yt,Jt,ft,oi,si,Je,li,di,ci,Kt,ui,fi,Ln=fe((()=>{Gt(),Xt=function(o,u,r){const d=r[Object.keys(r)[0]].json["ofd:Area"];let i;if(d){const e=d["ofd:PhysicalBox"];if(e)i=e;else{const f=d["ofd:ApplicationBox"];if(f)i=f;else{const v=d["ofd:ContentBox"];v&&(i=v)}}}else{let e=u["ofd:CommonData"]["ofd:PageArea"];const f=e["ofd:PhysicalBox"];if(f)i=f;else{const v=e["ofd:ApplicationBox"];if(v)i=v;else{const y=e["ofd:ContentBox"];y&&(i=y)}}}let n=i.split(" ");const a=((o-10)/parseFloat(n[2])).toFixed(1);return Kr(a),Ht(a),i=Le(i),i=Ne(i),i},Yt=function(o,u){const r=u[Object.keys(u)[0]].json["ofd:Area"];let d;if(r){const i=r["ofd:PhysicalBox"];if(i)d=i;else{const n=r["ofd:ApplicationBox"];if(n)d=n;else{const a=r["ofd:ContentBox"];a&&(d=a)}}}else{let i=o["ofd:CommonData"]["ofd:PageArea"];const n=i["ofd:PhysicalBox"];if(n)d=n;else{const a=i["ofd:ApplicationBox"];if(a)d=a;else{const e=i["ofd:ContentBox"];e&&(d=e)}}}return d=Le(d),d=Ne(d),d},Jt=function(o,u,r,d,i,n){let a=[];const e=o[u["@_TemplateID"]].json["ofd:Content"]["ofd:Layer"];a=a.concat(e);for(let f of a)f&&Je(r,d,i,n,f,!1)},ft=function(o,u,r,d,i,n){const a=Object.keys(u)[0],e=u[a].json["ofd:Template"];Array.isArray(e)?e.forEach(y=>{y&&Jt(r,y,o,d,i,n)}):e&&Jt(r,e,o,d,i,n);const f=u[a]?.json?.["ofd:Content"]?.["ofd:Layer"];let v=[];v=v.concat(f);for(let y of v)y&&Je(o,d,i,n,y,!1);if(u[a].stamp){for(const y of u[a].stamp)if(y.type==="ofd")si(o,y.obj.pages,y.obj.tpls,!0,y.stamp.stampAnnot,y.obj.fontResObj,y.obj.drawParamResObj,y.obj.multiMediaResObj,y.stamp.sealObj.SES_Signature,y.stamp.signedInfo);else if(y.type==="png"){let A=Ne(y.obj.boundary);const k=Array.isArray(y.stamp.stampAnnot)?y.stamp.stampAnnot[0].pfIndex:y.stamp.stampAnnot.pfIndex;let p=Kt(o.style.width,o.style.height,y.obj.img,A,y.obj.clip,!0,y.stamp.sealObj.SES_Signature,y.stamp.signedInfo,k);o.appendChild(p)}}if(u[a].annotation)for(const y of u[a].annotation)oi(o,y,d,i,n)},oi=function(o,u,r,d,i){let n=document.createElement("div");n.setAttribute("style",`overflow: hidden;z-index:${u.pfIndex};position:relative;`);let a=u.appearance?.["@_Boundary"];if(a){let f=Ne(Le(a));n.setAttribute("style",`overflow: hidden;z-index:${u.pfIndex};position:absolute; left: ${f.x}px; top: ${f.y}px; width: ${f.w}px; height: ${f.h}px`)}const e=u.appearance;Je(n,r,d,i,e,!1),o.appendChild(n)},si=function(o,u,r,d,i,n,a,e,f,v){for(const y of u){const A=Object.keys(y)[0];let k={x:0,y:0,w:0,h:0};d&&i&&(k=i.boundary);let p=Ne(k),b=document.createElement("div");b.setAttribute("name","seal_img_div"),b.setAttribute("style",`cursor: pointer; position:relative; left: ${p.x}px; top: ${p.y}px; width: ${p.w}px; height: ${p.h}px`),b.setAttribute("data-ses-signature",`${JSON.stringify(f)}`),b.setAttribute("data-signed-info",`${JSON.stringify(v)}`);const s=y[A].json["ofd:Template"];if(s){const c=r[s["@_TemplateID"]].json["ofd:Content"]["ofd:Layer"];let l=[];l=l.concat(c);for(let g of l)g&&Je(b,n,a,e,g,d)}const w=y[A].json["ofd:Content"]["ofd:Layer"];let m=[];m=m.concat(w);for(let c of m)c&&Je(b,n,a,e,c,d);o.appendChild(b)}},Je=function(o,u,r,d,i,n){let a=null,e=null,f=be(.353),v=i?.["@_DrawParam"];v&&Object.keys(r).length>0&&r[v]&&(r[v].relative&&(v=r[v].relative,r[v].FillColor&&(a=je(r[v].FillColor)),r[v].StrokeColor&&(e=je(r[v].StrokeColor)),r[v].LineWidth&&(f=be(r[v].LineWidth))),r[v].FillColor&&(a=je(r[v].FillColor)),r[v].StrokeColor&&(e=je(r[v].StrokeColor)),r[v].LineWidth&&(f=be(r[v].LineWidth)));const y=i?.["ofd:ImageObject"];let A=[];A=A.concat(y);for(const w of A)if(w){let m=li(o.style.width,o.style.height,d,w);o.appendChild(m)}const k=i?.["ofd:PathObject"];let p=[];p=p.concat(k);for(const w of p)if(w){let m=fi(r,w,a,e,f,n);o.appendChild(m)}const b=i?.["ofd:TextObject"];let s=[];s=s.concat(b);for(const w of s)if(w){let m=ui(u,w,a,e);o.appendChild(m)}},li=function(o,u,r,d){let i=Le(d["@_Boundary"]);i=Ne(i);const n=d["@_ResourceID"],a=r?r[n]:null;if(!a||typeof a!="object")return di(i,d.pfIndex);if(a.format==="gbig2"){const e=a.img,f=a.width,v=a.height;return ci(e,f,v,i,d.pfIndex)}else return Kt(o,u,a.img,i,!1,!1,null,null,d.pfIndex)},di=function(o,u){let r=document.createElement("div");return r.setAttribute("style",`overflow: hidden; position: absolute; left: ${o.x}px; top: ${o.y}px; width: ${o.w}px; height: ${o.h}px;z-index: ${u}`),r},ci=function(o,u,r,d,i){const n=new Uint8ClampedArray(4*u*r);for(var a=0;a<o.length;a++)n[4*a]=o[a],n[4*a+1]=o[a],n[4*a+2]=o[a],n[4*a+3]=255;let e=new ImageData(n,u,r),f=document.createElement("canvas");return f.width=u,f.height=r,f.getContext("2d").putImageData(e,0,0),f.setAttribute("style",`left: ${d.x}px; top: ${d.y}px; width: ${d.w}px; height: ${d.h}px;z-index: ${i}`),f.style.position="absolute",f},Kt=function(o,u,r,d,i,n,a,e,f){let v=document.createElement("div");n&&(v.setAttribute("name","seal_img_div"),v.setAttribute("data-ses-signature",`${JSON.stringify(a)}`),v.setAttribute("data-signed-info",`${JSON.stringify(e)}`));let y=document.createElement("img");y.src=r,y.setAttribute("width","100%"),y.setAttribute("height","100%"),v.appendChild(y);const A=parseFloat(o.replace("px","")),k=parseFloat(u.replace("px","")),p=d.w>A?A:d.w,b=d.h>k?k:d.h;let s="";return i&&(i=Ne(i),s=`clip: rect(${i.y}px, ${i.w+i.x}px, ${i.h+i.y}px, ${i.x}px)`),v.setAttribute("style",`cursor: pointer; overflow: hidden; position: absolute; left: ${s?d.x:d.x<0?0:d.x}px; top: ${s?d.y:d.y<0?0:d.y}px; width: ${p}px; height: ${b}px; ${s};z-index: ${f}`),v},ui=function(o,u,r,d){let i=1,n=Le(u["@_Boundary"]);n=Ne(n);const a=u["@_CTM"],e=u["@_HScale"],f=u["@_Font"],v=u["@_Weight"],y=be(parseFloat(u["@_Size"]));let A=[];A=A.concat(u["ofd:TextCode"]);const k=ei(A);let p=document.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("version","1.1");const b=u["ofd:FillColor"];if(b){r=je(b["@_Value"]);let l=b["@_Alpha"];l&&(i=l>1?l/255:l)}for(const l of k)if(l&&!isNaN(l.x)){let g=document.createElementNS("http://www.w3.org/2000/svg","text");if(g.setAttribute("x",l.x),g.setAttribute("y",l.y),g.innerHTML=l.text,a){const C=qt(a);g.setAttribute("transform",`matrix(${C[0]} ${C[1]} ${C[2]} ${C[3]} ${be(C[4])} ${be(C[5])})`)}e&&g.setAttribute("transform",`matrix(${e}, 0, 0, 1, ${(1-e)*l.x}, 0)`),g.setAttribute("fill",d),g.setAttribute("fill",r),g.setAttribute("fill-opacity",i),g.setAttribute("style",`font-weight: ${v};font-size:${y}px;font-family: ${ai(o[f])};`),p.appendChild(g)}let s=n.w,w=n.h,m=n.x,c=n.y;return p.setAttribute("style",`overflow:visible;position:absolute;width:${s}px;height:${w}px;left:${m}px;top:${c}px;z-index:${u.pfIndex}`),p},fi=function(o,u,r,d,i,n){let a=Le(u["@_Boundary"]);a=Ne(a);let e=u["@_LineWidth"];const f=u["ofd:AbbreviatedData"],v=Yr(Xr(f)),y=u["@_CTM"];let A=document.createElementNS("http://www.w3.org/2000/svg","svg");A.setAttribute("version","1.1");let k=document.createElementNS("http://www.w3.org/2000/svg","path");e&&(i=be(e));const p=u["@_DrawParam"];if(p&&(e=o[p].LineWidth,e&&(i=be(e))),y){const D=qt(y);k.setAttribute("transform",`matrix(${D[0]} ${D[1]} ${D[2]} ${D[3]} ${be(D[4])} ${be(D[5])})`)}let b="";const s=u["ofd:StrokeColor"];s&&(d=je(s["@_Value"]));let w="fill: none;";const m=u["ofd:FillColor"];m&&(r=je(m["@_Value"])),i>0&&!d&&(d=r,d||(d="rgb(0, 0, 0)")),b=`stroke:${d};stroke-width:${i}px;`,u["@_Stroke"]=="false"&&(b=""),u["@_Fill"]!="false"&&(w=`fill:${n?"none":r||"none"};`),k.setAttribute("style",`${b};${w}`);let c="";for(const D of v)D.type==="M"?c+=`M${D.x} ${D.y} `:D.type==="L"?c+=`L${D.x} ${D.y} `:D.type==="B"?c+=`C${D.x1} ${D.y1} ${D.x2} ${D.y2} ${D.x3} ${D.y3} `:D.type==="C"&&(c+="Z");k.setAttribute("d",c),A.appendChild(k);let l=n?a.w:Math.ceil(a.w),g=n?a.h:Math.ceil(a.h),C=a.x,F=a.y;return A.setAttribute("style",`overflow:visible;position:absolute;width:${l}px;height:${g}px;left:${C}px;top:${F}px;z-index:${u.pfIndex}`),A}})),hi,pi,Nn=fe((()=>{Array.prototype.pipeline=async function(o){if(this===null||typeof this>"u")throw new TypeError("Array.prototype.pipeline called on null or undefined");if(typeof o!="function")throw new TypeError(o+" is not a function");var u,r,d=this.length>>>0;for(u=0;d>u;++u)r=await o(r,this[u],u,this);return r},hi=function(...o){return o.pipeline((u,r)=>r.call(this,u))},pi=hi})),Rn=ze(((o,u)=>{(function(r){typeof o=="object"&&typeof u<"u"?u.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=r()})(function(){return(function r(d,i,n){function a(v,y){if(!i[v]){if(!d[v]){var A=typeof require=="function"&&require;if(!y&&A)return A(v,!0);if(e)return e(v,!0);var k=new Error("Cannot find module '"+v+"'");throw k.code="MODULE_NOT_FOUND",k}var p=i[v]={exports:{}};d[v][0].call(p.exports,function(b){var s=d[v][1][b];return a(s||b)},p,p.exports,r,d,i,n)}return i[v].exports}for(var e=typeof require=="function"&&require,f=0;f<n.length;f++)a(n[f]);return a})({1:[function(r,d,i){"use strict";var n=r("./utils"),a=r("./support"),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(f){for(var v,y,A,k,p,b,s,w=[],m=0,c=f.length,l=c,g=n.getTypeOf(f)!=="string";m<f.length;)l=c-m,A=g?(v=f[m++],y=m<c?f[m++]:0,m<c?f[m++]:0):(v=f.charCodeAt(m++),y=m<c?f.charCodeAt(m++):0,m<c?f.charCodeAt(m++):0),k=v>>2,p=(3&v)<<4|y>>4,b=1<l?(15&y)<<2|A>>6:64,s=2<l?63&A:64,w.push(e.charAt(k)+e.charAt(p)+e.charAt(b)+e.charAt(s));return w.join("")},i.decode=function(f){var v,y,A,k,p,b,s=0,w=0,m="data:";if(f.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var c,l=3*(f=f.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(f.charAt(f.length-1)===e.charAt(64)&&l--,f.charAt(f.length-2)===e.charAt(64)&&l--,l%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=a.uint8array?new Uint8Array(0|l):new Array(0|l);s<f.length;)v=e.indexOf(f.charAt(s++))<<2|(k=e.indexOf(f.charAt(s++)))>>4,y=(15&k)<<4|(p=e.indexOf(f.charAt(s++)))>>2,A=(3&p)<<6|(b=e.indexOf(f.charAt(s++))),c[w++]=v,p!==64&&(c[w++]=y),b!==64&&(c[w++]=A);return c}},{"./support":30,"./utils":32}],2:[function(r,d,i){"use strict";var n=r("./external"),a=r("./stream/DataWorker"),e=r("./stream/Crc32Probe"),f=r("./stream/DataLengthProbe");function v(y,A,k,p,b){this.compressedSize=y,this.uncompressedSize=A,this.crc32=k,this.compression=p,this.compressedContent=b}v.prototype={getContentWorker:function(){var y=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),A=this;return y.on("end",function(){if(this.streamInfo.data_length!==A.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(y,A,k){return y.pipe(new e).pipe(new f("uncompressedSize")).pipe(A.compressWorker(k)).pipe(new f("compressedSize")).withStreamInfo("compression",A)},d.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,d,i){"use strict";var n=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,d,i){"use strict";var n=r("./utils"),a=(function(){for(var e,f=[],v=0;v<256;v++){e=v;for(var y=0;y<8;y++)e=1&e?3988292384^e>>>1:e>>>1;f[v]=e}return f})();d.exports=function(e,f){return e!==void 0&&e.length?n.getTypeOf(e)!=="string"?(function(v,y,A,k){var p=a,b=k+A;v^=-1;for(var s=k;s<b;s++)v=v>>>8^p[255&(v^y[s])];return-1^v})(0|f,e,e.length,0):(function(v,y,A,k){var p=a,b=k+A;v^=-1;for(var s=k;s<b;s++)v=v>>>8^p[255&(v^y.charCodeAt(s))];return-1^v})(0|f,e,e.length,0):0}},{"./utils":32}],5:[function(r,d,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,d,i){"use strict";var n=null;n=typeof Promise<"u"?Promise:r("lie"),d.exports={Promise:n}},{lie:37}],7:[function(r,d,i){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=r("pako"),e=r("./utils"),f=r("./stream/GenericWorker"),v=n?"uint8array":"array";function y(A,k){f.call(this,"FlateWorker/"+A),this._pako=null,this._pakoAction=A,this._pakoOptions=k,this.meta={}}i.magic="\b\0",e.inherits(y,f),y.prototype.processChunk=function(A){this.meta=A.meta,this._pako===null&&this._createPako(),this._pako.push(e.transformTo(v,A.data),!1)},y.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var A=this;this._pako.onData=function(k){A.push({data:k,meta:A.meta})}},i.compressWorker=function(A){return new y("Deflate",A)},i.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,d,i){"use strict";function n(p,b){var s,w="";for(s=0;s<b;s++)w+=String.fromCharCode(255&p),p>>>=8;return w}function a(p,b,s,w,m,c){var l,g,C=p.file,F=p.compression,D=c!==v.utf8encode,q=e.transformTo("string",c(C.name)),L=e.transformTo("string",v.utf8encode(C.name)),ne=C.comment,re=e.transformTo("string",c(ne)),P=e.transformTo("string",v.utf8encode(ne)),U=L.length!==C.name.length,h=P.length!==ne.length,$="",oe="",J="",ue=C.dir,ie=C.date,le={crc32:0,compressedSize:0,uncompressedSize:0};b&&!s||(le.crc32=p.crc32,le.compressedSize=p.compressedSize,le.uncompressedSize=p.uncompressedSize);var Z=0;b&&(Z|=8),D||!U&&!h||(Z|=2048);var j=0,S=0;ue&&(j|=16),m==="UNIX"?(S=798,j|=(function(E,R){var N=E;return E||(N=R?16893:33204),(65535&N)<<16})(C.unixPermissions,ue)):(S=20,j|=(function(E){return 63&(E||0)})(C.dosPermissions)),l=ie.getUTCHours(),l<<=6,l|=ie.getUTCMinutes(),l<<=5,l|=ie.getUTCSeconds()/2,g=ie.getUTCFullYear()-1980,g<<=4,g|=ie.getUTCMonth()+1,g<<=5,g|=ie.getUTCDate(),U&&(oe=n(1,1)+n(y(q),4)+L,$+="up"+n(oe.length,2)+oe),h&&(J=n(1,1)+n(y(re),4)+P,$+="uc"+n(J.length,2)+J);var T="";return T+=`
|
|
13
|
+
\0`,T+=n(Z,2),T+=F.magic,T+=n(l,2),T+=n(g,2),T+=n(le.crc32,4),T+=n(le.compressedSize,4),T+=n(le.uncompressedSize,4),T+=n(q.length,2),T+=n($.length,2),{fileRecord:A.LOCAL_FILE_HEADER+T+q+$,dirRecord:A.CENTRAL_FILE_HEADER+n(S,2)+T+n(re.length,2)+"\0\0\0\0"+n(j,4)+n(w,4)+q+$+re}}var e=r("../utils"),f=r("../stream/GenericWorker"),v=r("../utf8"),y=r("../crc32"),A=r("../signature");function k(p,b,s,w){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=s,this.encodeFileName=w,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(k,f),k.prototype.push=function(p){var b=p.meta.percent||0,s=this.entriesCount,w=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,f.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:s?(b+100*(s-w-1))/s:100}}))},k.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var b=this.streamFiles&&!p.file.dir;if(b){var s=a(p,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:s.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(p){this.accumulate=!1;var b=this.streamFiles&&!p.file.dir,s=a(p,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(s.dirRecord),b)this.push({data:(function(w){return A.DATA_DESCRIPTOR+n(w.crc32,4)+n(w.compressedSize,4)+n(w.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:s.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var p=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var s=this.bytesWritten-p,w=(function(m,c,l,g,C){var F=e.transformTo("string",C(g));return A.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(m,2)+n(m,2)+n(c,4)+n(l,4)+n(F.length,2)+F})(this.dirRecords.length,s,p,this.zipComment,this.encodeFileName);this.push({data:w,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(p){this._sources.push(p);var b=this;return p.on("data",function(s){b.processChunk(s)}),p.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),p.on("error",function(s){b.error(s)}),this},k.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(p){var b=this._sources;if(!f.prototype.error.call(this,p))return!1;for(var s=0;s<b.length;s++)try{b[s].error(p)}catch{}return!0},k.prototype.lock=function(){f.prototype.lock.call(this);for(var p=this._sources,b=0;b<p.length;b++)p[b].lock()},d.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,d,i){"use strict";var n=r("../compressions"),a=r("./ZipFileWorker");i.generateWorker=function(e,f,v){var y=new a(f.streamFiles,v,f.platform,f.encodeFileName),A=0;try{e.forEach(function(k,p){A++;var b=(function(c,l){var g=c||l,C=n[g];if(!C)throw new Error(g+" is not a valid compression method !");return C})(p.options.compression,f.compression),s=p.options.compressionOptions||f.compressionOptions||{},w=p.dir,m=p.date;p._compressWorker(b,s).withStreamInfo("file",{name:k,dir:w,date:m,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(y)}),y.entriesCount=A}catch(k){y.error(k)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,d,i){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new n;for(var e in this)typeof this[e]!="function"&&(a[e]=this[e]);return a}}(n.prototype=r("./object")).loadAsync=r("./load"),n.support=r("./support"),n.defaults=r("./defaults"),n.version="3.10.1",n.loadAsync=function(a,e){return new n().loadAsync(a,e)},n.external=r("./external"),d.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,d,i){"use strict";var n=r("./utils"),a=r("./external"),e=r("./utf8"),f=r("./zipEntries"),v=r("./stream/Crc32Probe"),y=r("./nodejsUtils");function A(k){return new a.Promise(function(p,b){var s=k.decompressed.getContentWorker().pipe(new v);s.on("error",function(w){b(w)}).on("end",function(){s.streamInfo.crc32!==k.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}d.exports=function(k,p){var b=this;return p=n.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),y.isNode&&y.isStream(k)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",k,!0,p.optimizedBinaryString,p.base64).then(function(s){var w=new f(p);return w.load(s),w}).then(function(s){var w=[a.Promise.resolve(s)],m=s.files;if(p.checkCRC32)for(var c=0;c<m.length;c++)w.push(A(m[c]));return a.Promise.all(w)}).then(function(s){for(var w=s.shift(),m=w.files,c=0;c<m.length;c++){var l=m[c],g=l.fileNameStr,C=n.resolve(l.fileNameStr);b.file(C,l.decompressed,{binary:!0,optimizedBinaryString:!0,date:l.date,dir:l.dir,comment:l.fileCommentStr.length?l.fileCommentStr:null,unixPermissions:l.unixPermissions,dosPermissions:l.dosPermissions,createFolders:p.createFolders}),l.dir||(b.file(C).unsafeOriginalName=g)}return w.zipComment.length&&(b.comment=w.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,d,i){"use strict";var n=r("../utils"),a=r("../stream/GenericWorker");function e(f,v){a.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(v)}n.inherits(e,a),e.prototype._bindStream=function(f){var v=this;(this._stream=f).pause(),f.on("data",function(y){v.push({data:y,meta:{percent:0}})}).on("error",function(y){v.isPaused?this.generatedError=y:v.error(y)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},e.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},d.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,d,i){"use strict";var n=r("readable-stream").Readable;function a(e,f,v){n.call(this,f),this._helper=e;var y=this;e.on("data",function(A,k){y.push(A)||y._helper.pause(),v&&v(k)}).on("error",function(A){y.emit("error",A)}).on("end",function(){y.push(null)})}r("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},d.exports=a},{"../utils":32,"readable-stream":16}],14:[function(r,d,i){"use strict";d.exports={isNode:typeof Buffer<"u",newBufferFrom:function(n,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(n,a);if(typeof n=="number")throw new Error('The "data" argument must not be a number');return new Buffer(n,a)},allocBuffer:function(n){if(Buffer.alloc)return Buffer.alloc(n);var a=new Buffer(n);return a.fill(0),a},isBuffer:function(n){return Buffer.isBuffer(n)},isStream:function(n){return n&&typeof n.on=="function"&&typeof n.pause=="function"&&typeof n.resume=="function"}}},{}],15:[function(r,d,i){"use strict";function n(g,C,F){var D,q=e.getTypeOf(C),L=e.extend(F||{},y);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(g=m(g)),L.createFolders&&(D=w(g))&&c.call(this,D,!0);var ne=q==="string"&&L.binary===!1&&L.base64===!1;F&&F.binary!==void 0||(L.binary=!ne),(C instanceof A&&C.uncompressedSize===0||L.dir||!C||C.length===0)&&(L.base64=!1,L.binary=!0,C="",L.compression="STORE",q="string");var re=null;re=C instanceof A||C instanceof f?C:b.isNode&&b.isStream(C)?new s(g,C):e.prepareContent(g,C,L.binary,L.optimizedBinaryString,L.base64);var P=new k(g,re,L);this.files[g]=P}var a=r("./utf8"),e=r("./utils"),f=r("./stream/GenericWorker"),v=r("./stream/StreamHelper"),y=r("./defaults"),A=r("./compressedObject"),k=r("./zipObject"),p=r("./generate"),b=r("./nodejsUtils"),s=r("./nodejs/NodejsStreamInputAdapter"),w=function(g){g.slice(-1)==="/"&&(g=g.substring(0,g.length-1));var C=g.lastIndexOf("/");return 0<C?g.substring(0,C):""},m=function(g){return g.slice(-1)!=="/"&&(g+="/"),g},c=function(g,C){return C=C!==void 0?C:y.createFolders,g=m(g),this.files[g]||n.call(this,g,null,{dir:!0,createFolders:C}),this.files[g]};function l(g){return Object.prototype.toString.call(g)==="[object RegExp]"}d.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(g){var C,F,D;for(C in this.files)D=this.files[C],(F=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&g(F,D)},filter:function(g){var C=[];return this.forEach(function(F,D){g(F,D)&&C.push(D)}),C},file:function(g,C,F){if(arguments.length!==1)return g=this.root+g,n.call(this,g,C,F),this;if(l(g)){var D=g;return this.filter(function(L,ne){return!ne.dir&&D.test(L)})}var q=this.files[this.root+g];return q&&!q.dir?q:null},folder:function(g){if(!g)return this;if(l(g))return this.filter(function(q,L){return L.dir&&g.test(q)});var C=this.root+g,F=c.call(this,C),D=this.clone();return D.root=F.name,D},remove:function(g){g=this.root+g;var C=this.files[g];if(C||(g.slice(-1)!=="/"&&(g+="/"),C=this.files[g]),C&&!C.dir)delete this.files[g];else for(var F=this.filter(function(q,L){return L.name.slice(0,g.length)===g}),D=0;D<F.length;D++)delete this.files[F[D].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(g){var C,F={};try{if((F=e.extend(g||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");e.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var D=F.comment||this.comment||"";C=p.generateWorker(this,F,D)}catch(q){(C=new f("error")).error(q)}return new v(C,F.type||"string",F.mimeType)},generateAsync:function(g,C){return this.generateInternalStream(g).accumulate(C)},generateNodeStream:function(g,C){return(g=g||{}).type||(g.type="nodebuffer"),this.generateInternalStream(g).toNodejsStream(C)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,d,i){"use strict";d.exports=r("stream")},{stream:void 0}],17:[function(r,d,i){"use strict";var n=r("./DataReader");function a(e){n.call(this,e);for(var f=0;f<this.data.length;f++)e[f]=255&e[f]}r("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var f=e.charCodeAt(0),v=e.charCodeAt(1),y=e.charCodeAt(2),A=e.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===f&&this.data[k+1]===v&&this.data[k+2]===y&&this.data[k+3]===A)return k-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var f=e.charCodeAt(0),v=e.charCodeAt(1),y=e.charCodeAt(2),A=e.charCodeAt(3),k=this.readData(4);return f===k[0]&&v===k[1]&&y===k[2]&&A===k[3]},a.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,f},d.exports=a},{"../utils":32,"./DataReader":18}],18:[function(r,d,i){"use strict";var n=r("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var f,v=0;for(this.checkOffset(e),f=this.index+e-1;f>=this.index;f--)v=(v<<8)+this.byteAt(f);return this.index+=e,v},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},d.exports=a},{"../utils":32}],19:[function(r,d,i){"use strict";var n=r("./Uint8ArrayReader");function a(e){n.call(this,e)}r("../utils").inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var f=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,f},d.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,d,i){"use strict";var n=r("./DataReader");function a(e){n.call(this,e)}r("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var f=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,f},d.exports=a},{"../utils":32,"./DataReader":18}],21:[function(r,d,i){"use strict";var n=r("./ArrayReader");function a(e){n.call(this,e)}r("../utils").inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,f},d.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(r,d,i){"use strict";var n=r("../utils"),a=r("../support"),e=r("./ArrayReader"),f=r("./StringReader"),v=r("./NodeBufferReader"),y=r("./Uint8ArrayReader");d.exports=function(A){var k=n.getTypeOf(A);return n.checkSupport(k),k!=="string"||a.uint8array?k==="nodebuffer"?new v(A):a.uint8array?new y(n.transformTo("uint8array",A)):new e(n.transformTo("array",A)):new f(A)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,d,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,d,i){"use strict";var n=r("./GenericWorker"),a=r("../utils");function e(f){n.call(this,"ConvertWorker to "+f),this.destType=f}a.inherits(e,n),e.prototype.processChunk=function(f){this.push({data:a.transformTo(this.destType,f.data),meta:f.meta})},d.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(r,d,i){"use strict";var n=r("./GenericWorker"),a=r("../crc32");function e(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(e,n),e.prototype.processChunk=function(f){this.streamInfo.crc32=a(f.data,this.streamInfo.crc32||0),this.push(f)},d.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,d,i){"use strict";var n=r("../utils"),a=r("./GenericWorker");function e(f){a.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}n.inherits(e,a),e.prototype.processChunk=function(f){if(f){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+f.data.length}a.prototype.processChunk.call(this,f)},d.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(r,d,i){"use strict";var n=r("../utils"),a=r("./GenericWorker");function e(f){a.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(y){v.dataIsReady=!0,v.data=y,v.max=y&&y.length||0,v.type=n.getTypeOf(y),v.isPaused||v._tickAndRepeat()},function(y){v.error(y)})}n.inherits(e,a),e.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,v);break;case"uint8array":f=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":f=this.data.slice(this.index,v)}return this.index=v,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},d.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(r,d,i){"use strict";function n(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,e){return this._listeners[a].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,e){if(this._listeners[a])for(var f=0;f<this._listeners[a].length;f++)this._listeners[a][f].call(this,e)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var e=this;return a.on("data",function(f){e.processChunk(f)}),a.on("end",function(){e.end()}),a.on("error",function(f){e.error(f)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,e){return this.extraStreamInfo[a]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},d.exports=n},{}],29:[function(r,d,i){"use strict";var n=r("../utils"),a=r("./ConvertWorker"),e=r("./GenericWorker"),f=r("../base64"),v=r("../support"),y=r("../external"),A=null;if(v.nodestream)try{A=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(b,s){return new y.Promise(function(w,m){var c=[],l=b._internalType,g=b._outputType,C=b._mimeType;b.on("data",function(F,D){c.push(F),s&&s(D)}).on("error",function(F){c=[],m(F)}).on("end",function(){try{w((function(F,D,q){switch(F){case"blob":return n.newBlob(n.transformTo("arraybuffer",D),q);case"base64":return f.encode(D);default:return n.transformTo(F,D)}})(g,(function(F,D){var q,L=0,ne=null,re=0;for(q=0;q<D.length;q++)re+=D[q].length;switch(F){case"string":return D.join("");case"array":return Array.prototype.concat.apply([],D);case"uint8array":for(ne=new Uint8Array(re),q=0;q<D.length;q++)ne.set(D[q],L),L+=D[q].length;return ne;case"nodebuffer":return Buffer.concat(D);default:throw new Error("concat : unsupported type '"+F+"'")}})(l,c),C))}catch(F){m(F)}c=[]}).resume()})}function p(b,s,w){var m=s;switch(s){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=s,this._mimeType=w,n.checkSupport(m),this._worker=b.pipe(new a(m)),b.lock()}catch(c){this._worker=new e("error"),this._worker.error(c)}}p.prototype={accumulate:function(b){return k(this,b)},on:function(b,s){var w=this;return b==="data"?this._worker.on(b,function(m){s.call(w,m.data,m.meta)}):this._worker.on(b,function(){n.delay(s,arguments,w)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(n.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new A(this,{objectMode:this._outputType!=="nodebuffer"},b)}},d.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,d,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var n=new ArrayBuffer(0);try{i.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(n),i.blob=a.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!r("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(r,d,i){"use strict";for(var n=r("./utils"),a=r("./support"),e=r("./nodejsUtils"),f=r("./stream/GenericWorker"),v=new Array(256),y=0;y<256;y++)v[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;v[254]=v[254]=1;function A(){f.call(this,"utf-8 decode"),this.leftOver=null}function k(){f.call(this,"utf-8 encode")}i.utf8encode=function(p){return a.nodebuffer?e.newBufferFrom(p,"utf-8"):(function(b){var s,w,m,c,l,g=b.length,C=0;for(c=0;c<g;c++)(64512&(w=b.charCodeAt(c)))==55296&&c+1<g&&(64512&(m=b.charCodeAt(c+1)))==56320&&(w=65536+(w-55296<<10)+(m-56320),c++),C+=w<128?1:w<2048?2:w<65536?3:4;for(s=a.uint8array?new Uint8Array(C):new Array(C),c=l=0;l<C;c++)(64512&(w=b.charCodeAt(c)))==55296&&c+1<g&&(64512&(m=b.charCodeAt(c+1)))==56320&&(w=65536+(w-55296<<10)+(m-56320),c++),w<128?s[l++]=w:(w<2048?s[l++]=192|w>>>6:(w<65536?s[l++]=224|w>>>12:(s[l++]=240|w>>>18,s[l++]=128|w>>>12&63),s[l++]=128|w>>>6&63),s[l++]=128|63&w);return s})(p)},i.utf8decode=function(p){return a.nodebuffer?n.transformTo("nodebuffer",p).toString("utf-8"):(function(b){var s,w,m,c,l=b.length,g=new Array(2*l);for(s=w=0;s<l;)if((m=b[s++])<128)g[w++]=m;else if(4<(c=v[m]))g[w++]=65533,s+=c-1;else{for(m&=c===2?31:c===3?15:7;1<c&&s<l;)m=m<<6|63&b[s++],c--;1<c?g[w++]=65533:m<65536?g[w++]=m:(m-=65536,g[w++]=55296|m>>10&1023,g[w++]=56320|1023&m)}return g.length!==w&&(g.subarray?g=g.subarray(0,w):g.length=w),n.applyFromCharCode(g)})(p=n.transformTo(a.uint8array?"uint8array":"array",p))},n.inherits(A,f),A.prototype.processChunk=function(p){var b=n.transformTo(a.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var s=b;(b=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),b.set(s,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var w=(function(c,l){var g;for((l=l||c.length)>c.length&&(l=c.length),g=l-1;0<=g&&(192&c[g])==128;)g--;return g<0||g===0?l:g+v[c[g]]>l?g:l})(b),m=b;w!==b.length&&(a.uint8array?(m=b.subarray(0,w),this.leftOver=b.subarray(w,b.length)):(m=b.slice(0,w),this.leftOver=b.slice(w,b.length))),this.push({data:i.utf8decode(m),meta:p.meta})},A.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=A,n.inherits(k,f),k.prototype.processChunk=function(p){this.push({data:i.utf8encode(p.data),meta:p.meta})},i.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,d,i){"use strict";var n=r("./support"),a=r("./base64"),e=r("./nodejsUtils"),f=r("./external");function v(s){return s}function y(s,w){for(var m=0;m<s.length;++m)w[m]=255&s.charCodeAt(m);return w}r("setimmediate"),i.newBlob=function(s,w){i.checkSupport("blob");try{return new Blob([s],{type:w})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(s),m.getBlob(w)}catch{throw new Error("Bug : can't construct the Blob.")}}};var A={stringifyByChunk:function(s,w,m){var c=[],l=0,g=s.length;if(g<=m)return String.fromCharCode.apply(null,s);for(;l<g;)w==="array"||w==="nodebuffer"?c.push(String.fromCharCode.apply(null,s.slice(l,Math.min(l+m,g)))):c.push(String.fromCharCode.apply(null,s.subarray(l,Math.min(l+m,g)))),l+=m;return c.join("")},stringifyByChar:function(s){for(var w="",m=0;m<s.length;m++)w+=String.fromCharCode(s[m]);return w},applyCanBeUsed:{uint8array:(function(){try{return n.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return n.nodebuffer&&String.fromCharCode.apply(null,e.allocBuffer(1)).length===1}catch{return!1}})()}};function k(s){var w=65536,m=i.getTypeOf(s),c=!0;if(m==="uint8array"?c=A.applyCanBeUsed.uint8array:m==="nodebuffer"&&(c=A.applyCanBeUsed.nodebuffer),c)for(;1<w;)try{return A.stringifyByChunk(s,m,w)}catch{w=Math.floor(w/2)}return A.stringifyByChar(s)}function p(s,w){for(var m=0;m<s.length;m++)w[m]=s[m];return w}i.applyFromCharCode=k;var b={};b.string={string:v,array:function(s){return y(s,new Array(s.length))},arraybuffer:function(s){return b.string.uint8array(s).buffer},uint8array:function(s){return y(s,new Uint8Array(s.length))},nodebuffer:function(s){return y(s,e.allocBuffer(s.length))}},b.array={string:k,array:v,arraybuffer:function(s){return new Uint8Array(s).buffer},uint8array:function(s){return new Uint8Array(s)},nodebuffer:function(s){return e.newBufferFrom(s)}},b.arraybuffer={string:function(s){return k(new Uint8Array(s))},array:function(s){return p(new Uint8Array(s),new Array(s.byteLength))},arraybuffer:v,uint8array:function(s){return new Uint8Array(s)},nodebuffer:function(s){return e.newBufferFrom(new Uint8Array(s))}},b.uint8array={string:k,array:function(s){return p(s,new Array(s.length))},arraybuffer:function(s){return s.buffer},uint8array:v,nodebuffer:function(s){return e.newBufferFrom(s)}},b.nodebuffer={string:k,array:function(s){return p(s,new Array(s.length))},arraybuffer:function(s){return b.nodebuffer.uint8array(s).buffer},uint8array:function(s){return p(s,new Uint8Array(s.length))},nodebuffer:v},i.transformTo=function(s,w){return w=w||"",s?(i.checkSupport(s),b[i.getTypeOf(w)][s](w)):w},i.resolve=function(s){for(var w=s.split("/"),m=[],c=0;c<w.length;c++){var l=w[c];l==="."||l===""&&c!==0&&c!==w.length-1||(l===".."?m.pop():m.push(l))}return m.join("/")},i.getTypeOf=function(s){return typeof s=="string"?"string":Object.prototype.toString.call(s)==="[object Array]"?"array":n.nodebuffer&&e.isBuffer(s)?"nodebuffer":n.uint8array&&s instanceof Uint8Array?"uint8array":n.arraybuffer&&s instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(s){if(!n[s.toLowerCase()])throw new Error(s+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(s){var w,m,c="";for(m=0;m<(s||"").length;m++)c+="\\x"+((w=s.charCodeAt(m))<16?"0":"")+w.toString(16).toUpperCase();return c},i.delay=function(s,w,m){setImmediate(function(){s.apply(m||null,w||[])})},i.inherits=function(s,w){function m(){}m.prototype=w.prototype,s.prototype=new m},i.extend=function(){var s,w,m={};for(s=0;s<arguments.length;s++)for(w in arguments[s])Object.prototype.hasOwnProperty.call(arguments[s],w)&&m[w]===void 0&&(m[w]=arguments[s][w]);return m},i.prepareContent=function(s,w,m,c,l){return f.Promise.resolve(w).then(function(g){return n.blob&&(g instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(g))!==-1)&&typeof FileReader<"u"?new f.Promise(function(C,F){var D=new FileReader;D.onload=function(q){C(q.target.result)},D.onerror=function(q){F(q.target.error)},D.readAsArrayBuffer(g)}):g}).then(function(g){var C=i.getTypeOf(g);return C?(C==="arraybuffer"?g=i.transformTo("uint8array",g):C==="string"&&(l?g=a.decode(g):m&&c!==!0&&(g=(function(F){return y(F,n.uint8array?new Uint8Array(F.length):new Array(F.length))})(g))),g):f.Promise.reject(new Error("Can't read the data of '"+s+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,d,i){"use strict";var n=r("./reader/readerFor"),a=r("./utils"),e=r("./signature"),f=r("./zipEntry"),v=r("./support");function y(A){this.files=[],this.loadOptions=A}y.prototype={checkSignature:function(A){if(!this.reader.readAndCheckSignature(A)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(k)+", expected "+a.pretty(A)+")")}},isSignature:function(A,k){var p=this.reader.index;this.reader.setIndex(A);var b=this.reader.readString(4)===k;return this.reader.setIndex(p),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var A=this.reader.readData(this.zipCommentLength),k=v.uint8array?"uint8array":"array",p=a.transformTo(k,A);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var A,k,p,b=this.zip64EndOfCentralSize-44;0<b;)A=this.reader.readInt(2),k=this.reader.readInt(4),p=this.reader.readData(k),this.zip64ExtensibleData[A]={id:A,length:k,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var A,k;for(A=0;A<this.files.length;A++)k=this.files[A],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var A;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(A=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(A);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var A=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(A<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(A);var k=A;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(A=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(A),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var b=k-p;if(0<b)this.isSignature(k,e.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(A){this.reader=n(A)},load:function(A){this.prepareReader(A),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},d.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,d,i){"use strict";var n=r("./reader/readerFor"),a=r("./utils"),e=r("./compressedObject"),f=r("./crc32"),v=r("./utf8"),y=r("./compressions"),A=r("./support");function k(p,b){this.options=p,this.loadOptions=b}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var b,s;if(p.skip(22),this.fileNameLength=p.readInt(2),s=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(s),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=(function(w){for(var m in y)if(Object.prototype.hasOwnProperty.call(y,m)&&y[m].magic===w)return y[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,b,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var b=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(b),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var b,s,w,m=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<m;)b=p.readInt(2),s=p.readInt(2),w=p.readData(s),this.extraFields[b]={id:b,length:s,value:w};p.setIndex(m)},handleUTF8:function(){var p=A.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var s=a.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(s)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var m=a.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var b=n(p.value);return b.readInt(1)!==1||f(this.fileName)!==b.readInt(4)?null:v.utf8decode(b.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var b=n(p.value);return b.readInt(1)!==1||f(this.fileComment)!==b.readInt(4)?null:v.utf8decode(b.readData(p.length-5))}return null}},d.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,d,i){"use strict";function n(b,s,w){this.name=b,this.dir=w.dir,this.date=w.date,this.comment=w.comment,this.unixPermissions=w.unixPermissions,this.dosPermissions=w.dosPermissions,this._data=s,this._dataBinary=w.binary,this.options={compression:w.compression,compressionOptions:w.compressionOptions}}var a=r("./stream/StreamHelper"),e=r("./stream/DataWorker"),f=r("./utf8"),v=r("./compressedObject"),y=r("./stream/GenericWorker");n.prototype={internalStream:function(b){var s=null,w="string";try{if(!b)throw new Error("No output type specified.");var m=(w=b.toLowerCase())==="string"||w==="text";w!=="binarystring"&&w!=="text"||(w="string"),s=this._decompressWorker();var c=!this._dataBinary;c&&!m&&(s=s.pipe(new f.Utf8EncodeWorker)),!c&&m&&(s=s.pipe(new f.Utf8DecodeWorker))}catch(l){(s=new y("error")).error(l)}return new a(s,w,"")},async:function(b,s){return this.internalStream(b).accumulate(s)},nodeStream:function(b,s){return this.internalStream(b||"nodebuffer").toNodejsStream(s)},_compressWorker:function(b,s){if(this._data instanceof v&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var w=this._decompressWorker();return this._dataBinary||(w=w.pipe(new f.Utf8EncodeWorker)),v.createWorkerFrom(w,b,s)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof y?this._data:new e(this._data)}};for(var A=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<A.length;p++)n.prototype[A[p]]=k;d.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,d,i){(function(n){"use strict";var a,e,f=n.MutationObserver||n.WebKitMutationObserver;if(f){var v=0,y=new f(b),A=n.document.createTextNode("");y.observe(A,{characterData:!0}),a=function(){A.data=v=++v%2}}else if(n.setImmediate||n.MessageChannel===void 0)a="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var s=n.document.createElement("script");s.onreadystatechange=function(){b(),s.onreadystatechange=null,s.parentNode.removeChild(s),s=null},n.document.documentElement.appendChild(s)}:function(){setTimeout(b,0)};else{var k=new n.MessageChannel;k.port1.onmessage=b,a=function(){k.port2.postMessage(0)}}var p=[];function b(){var s,w;e=!0;for(var m=p.length;m;){for(w=p,p=[],s=-1;++s<m;)w[s]();m=p.length}e=!1}d.exports=function(s){p.push(s)!==1||e||a()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,d,i){"use strict";var n=r("immediate");function a(){}var e={},f=["REJECTED"],v=["FULFILLED"],y=["PENDING"];function A(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,m!==a&&s(this,m)}function k(m,c,l){this.promise=m,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof l=="function"&&(this.onRejected=l,this.callRejected=this.otherCallRejected)}function p(m,c,l){n(function(){var g;try{g=c(l)}catch(C){return e.reject(m,C)}g===m?e.reject(m,new TypeError("Cannot resolve promise with itself")):e.resolve(m,g)})}function b(m){var c=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof c=="function")return function(){c.apply(m,arguments)}}function s(m,c){var l=!1;function g(D){l||(l=!0,e.reject(m,D))}function C(D){l||(l=!0,e.resolve(m,D))}var F=w(function(){c(C,g)});F.status==="error"&&g(F.value)}function w(m,c){var l={};try{l.value=m(c),l.status="success"}catch(g){l.status="error",l.value=g}return l}(d.exports=A).prototype.finally=function(m){if(typeof m!="function")return this;var c=this.constructor;return this.then(function(l){return c.resolve(m()).then(function(){return l})},function(l){return c.resolve(m()).then(function(){throw l})})},A.prototype.catch=function(m){return this.then(null,m)},A.prototype.then=function(m,c){if(typeof m!="function"&&this.state===v||typeof c!="function"&&this.state===f)return this;var l=new this.constructor(a);return this.state!==y?p(l,this.state===v?m:c,this.outcome):this.queue.push(new k(l,m,c)),l},k.prototype.callFulfilled=function(m){e.resolve(this.promise,m)},k.prototype.otherCallFulfilled=function(m){p(this.promise,this.onFulfilled,m)},k.prototype.callRejected=function(m){e.reject(this.promise,m)},k.prototype.otherCallRejected=function(m){p(this.promise,this.onRejected,m)},e.resolve=function(m,c){var l=w(b,c);if(l.status==="error")return e.reject(m,l.value);var g=l.value;if(g)s(m,g);else{m.state=v,m.outcome=c;for(var C=-1,F=m.queue.length;++C<F;)m.queue[C].callFulfilled(c)}return m},e.reject=function(m,c){m.state=f,m.outcome=c;for(var l=-1,g=m.queue.length;++l<g;)m.queue[l].callRejected(c);return m},A.resolve=function(m){return m instanceof this?m:e.resolve(new this(a),m)},A.reject=function(m){var c=new this(a);return e.reject(c,m)},A.all=function(m){var c=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var l=m.length,g=!1;if(!l)return this.resolve([]);for(var C=new Array(l),F=0,D=-1,q=new this(a);++D<l;)L(m[D],D);return q;function L(ne,re){c.resolve(ne).then(function(P){C[re]=P,++F!==l||g||(g=!0,e.resolve(q,C))},function(P){g||(g=!0,e.reject(q,P))})}},A.race=function(m){var c=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var l=m.length,g=!1;if(!l)return this.resolve([]);for(var C=-1,F=new this(a);++C<l;)D=m[C],c.resolve(D).then(function(q){g||(g=!0,e.resolve(F,q))},function(q){g||(g=!0,e.reject(F,q))});var D;return F}},{immediate:36}],38:[function(r,d,i){"use strict";var n={};(0,r("./lib/utils/common").assign)(n,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),d.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,d,i){"use strict";var n=r("./zlib/deflate"),a=r("./utils/common"),e=r("./utils/strings"),f=r("./zlib/messages"),v=r("./zlib/zstream"),y=Object.prototype.toString,A=0,k=-1,p=0,b=8;function s(m){if(!(this instanceof s))return new s(m);this.options=a.assign({level:k,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},m||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var l=n.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(l!==A)throw new Error(f[l]);if(c.header&&n.deflateSetHeader(this.strm,c.header),c.dictionary){var g;if(g=typeof c.dictionary=="string"?e.string2buf(c.dictionary):y.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(l=n.deflateSetDictionary(this.strm,g))!==A)throw new Error(f[l]);this._dict_set=!0}}function w(m,c){var l=new s(c);if(l.push(m,!0),l.err)throw l.msg||f[l.err];return l.result}s.prototype.push=function(m,c){var l,g,C=this.strm,F=this.options.chunkSize;if(this.ended)return!1;g=c===~~c?c:c===!0?4:0,typeof m=="string"?C.input=e.string2buf(m):y.call(m)==="[object ArrayBuffer]"?C.input=new Uint8Array(m):C.input=m,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(F),C.next_out=0,C.avail_out=F),(l=n.deflate(C,g))!==1&&l!==A)return this.onEnd(l),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||g!==4&&g!==2)||(this.options.to==="string"?this.onData(e.buf2binstring(a.shrinkBuf(C.output,C.next_out))):this.onData(a.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&l!==1);return g===4?(l=n.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===A):g!==2||(this.onEnd(A),!(C.avail_out=0))},s.prototype.onData=function(m){this.chunks.push(m)},s.prototype.onEnd=function(m){m===A&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Deflate=s,i.deflate=w,i.deflateRaw=function(m,c){return(c=c||{}).raw=!0,w(m,c)},i.gzip=function(m,c){return(c=c||{}).gzip=!0,w(m,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,d,i){"use strict";var n=r("./zlib/inflate"),a=r("./utils/common"),e=r("./utils/strings"),f=r("./zlib/constants"),v=r("./zlib/messages"),y=r("./zlib/zstream"),A=r("./zlib/gzheader"),k=Object.prototype.toString;function p(s){if(!(this instanceof p))return new p(s);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},s||{});var w=this.options;w.raw&&0<=w.windowBits&&w.windowBits<16&&(w.windowBits=-w.windowBits,w.windowBits===0&&(w.windowBits=-15)),!(0<=w.windowBits&&w.windowBits<16)||s&&s.windowBits||(w.windowBits+=32),15<w.windowBits&&w.windowBits<48&&(15&w.windowBits)==0&&(w.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var m=n.inflateInit2(this.strm,w.windowBits);if(m!==f.Z_OK)throw new Error(v[m]);this.header=new A,n.inflateGetHeader(this.strm,this.header)}function b(s,w){var m=new p(w);if(m.push(s,!0),m.err)throw m.msg||v[m.err];return m.result}p.prototype.push=function(s,w){var m,c,l,g,C,F,D=this.strm,q=this.options.chunkSize,L=this.options.dictionary,ne=!1;if(this.ended)return!1;c=w===~~w?w:w===!0?f.Z_FINISH:f.Z_NO_FLUSH,typeof s=="string"?D.input=e.binstring2buf(s):k.call(s)==="[object ArrayBuffer]"?D.input=new Uint8Array(s):D.input=s,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new a.Buf8(q),D.next_out=0,D.avail_out=q),(m=n.inflate(D,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&L&&(F=typeof L=="string"?e.string2buf(L):k.call(L)==="[object ArrayBuffer]"?new Uint8Array(L):L,m=n.inflateSetDictionary(this.strm,F)),m===f.Z_BUF_ERROR&&ne===!0&&(m=f.Z_OK,ne=!1),m!==f.Z_STREAM_END&&m!==f.Z_OK)return this.onEnd(m),!(this.ended=!0);D.next_out&&(D.avail_out!==0&&m!==f.Z_STREAM_END&&(D.avail_in!==0||c!==f.Z_FINISH&&c!==f.Z_SYNC_FLUSH)||(this.options.to==="string"?(l=e.utf8border(D.output,D.next_out),g=D.next_out-l,C=e.buf2string(D.output,l),D.next_out=g,D.avail_out=q-g,g&&a.arraySet(D.output,D.output,l,g,0),this.onData(C)):this.onData(a.shrinkBuf(D.output,D.next_out)))),D.avail_in===0&&D.avail_out===0&&(ne=!0)}while((0<D.avail_in||D.avail_out===0)&&m!==f.Z_STREAM_END);return m===f.Z_STREAM_END&&(c=f.Z_FINISH),c===f.Z_FINISH?(m=n.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===f.Z_OK):c!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),!(D.avail_out=0))},p.prototype.onData=function(s){this.chunks.push(s)},p.prototype.onEnd=function(s){s===f.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},i.Inflate=p,i.inflate=b,i.inflateRaw=function(s,w){return(w=w||{}).raw=!0,b(s,w)},i.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,d,i){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(f){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var y=v.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var A in y)y.hasOwnProperty(A)&&(f[A]=y[A])}}return f},i.shrinkBuf=function(f,v){return f.length===v?f:f.subarray?f.subarray(0,v):(f.length=v,f)};var a={arraySet:function(f,v,y,A,k){if(v.subarray&&f.subarray)f.set(v.subarray(y,y+A),k);else for(var p=0;p<A;p++)f[k+p]=v[y+p]},flattenChunks:function(f){var v,y,A,k,p,b;for(v=A=0,y=f.length;v<y;v++)A+=f[v].length;for(b=new Uint8Array(A),v=k=0,y=f.length;v<y;v++)p=f[v],b.set(p,k),k+=p.length;return b}},e={arraySet:function(f,v,y,A,k){for(var p=0;p<A;p++)f[k+p]=v[y+p]},flattenChunks:function(f){return[].concat.apply([],f)}};i.setTyped=function(f){f?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,e))},i.setTyped(n)},{}],42:[function(r,d,i){"use strict";var n=r("./common"),a=!0,e=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}for(var f=new n.Buf8(256),v=0;v<256;v++)f[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function y(A,k){if(k<65537&&(A.subarray&&e||!A.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(A,k));for(var p="",b=0;b<k;b++)p+=String.fromCharCode(A[b]);return p}f[254]=f[254]=1,i.string2buf=function(A){var k,p,b,s,w,m=A.length,c=0;for(s=0;s<m;s++)(64512&(p=A.charCodeAt(s)))==55296&&s+1<m&&(64512&(b=A.charCodeAt(s+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),s++),c+=p<128?1:p<2048?2:p<65536?3:4;for(k=new n.Buf8(c),s=w=0;w<c;s++)(64512&(p=A.charCodeAt(s)))==55296&&s+1<m&&(64512&(b=A.charCodeAt(s+1)))==56320&&(p=65536+(p-55296<<10)+(b-56320),s++),p<128?k[w++]=p:(p<2048?k[w++]=192|p>>>6:(p<65536?k[w++]=224|p>>>12:(k[w++]=240|p>>>18,k[w++]=128|p>>>12&63),k[w++]=128|p>>>6&63),k[w++]=128|63&p);return k},i.buf2binstring=function(A){return y(A,A.length)},i.binstring2buf=function(A){for(var k=new n.Buf8(A.length),p=0,b=k.length;p<b;p++)k[p]=A.charCodeAt(p);return k},i.buf2string=function(A,k){var p,b,s,w,m=k||A.length,c=new Array(2*m);for(p=b=0;p<m;)if((s=A[p++])<128)c[b++]=s;else if(4<(w=f[s]))c[b++]=65533,p+=w-1;else{for(s&=w===2?31:w===3?15:7;1<w&&p<m;)s=s<<6|63&A[p++],w--;1<w?c[b++]=65533:s<65536?c[b++]=s:(s-=65536,c[b++]=55296|s>>10&1023,c[b++]=56320|1023&s)}return y(c,b)},i.utf8border=function(A,k){var p;for((k=k||A.length)>A.length&&(k=A.length),p=k-1;0<=p&&(192&A[p])==128;)p--;return p<0||p===0?k:p+f[A[p]]>k?p:k}},{"./common":41}],43:[function(r,d,i){"use strict";d.exports=function(n,a,e,f){for(var v=65535&n|0,y=n>>>16&65535|0,A=0;e!==0;){for(e-=A=2e3<e?2e3:e;y=y+(v=v+a[f++]|0)|0,--A;);v%=65521,y%=65521}return v|y<<16|0}},{}],44:[function(r,d,i){"use strict";d.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,d,i){"use strict";var n=(function(){for(var a,e=[],f=0;f<256;f++){a=f;for(var v=0;v<8;v++)a=1&a?3988292384^a>>>1:a>>>1;e[f]=a}return e})();d.exports=function(a,e,f,v){var y=n,A=v+f;a^=-1;for(var k=v;k<A;k++)a=a>>>8^y[255&(a^e[k])];return-1^a}},{}],46:[function(r,d,i){"use strict";var n,a=r("../utils/common"),e=r("./trees"),f=r("./adler32"),v=r("./crc32"),y=r("./messages"),A=0,k=4,p=0,b=-2,s=-1,w=4,m=2,c=8,l=9,g=286,C=30,F=19,D=2*g+1,q=15,L=3,ne=258,re=ne+L+1,P=42,U=113,h=1,$=2,oe=3,J=4;function ue(t,z){return t.msg=y[z],z}function ie(t){return(t<<1)-(4<t?9:0)}function le(t){for(var z=t.length;0<=--z;)t[z]=0}function Z(t){var z=t.state,I=z.pending;I>t.avail_out&&(I=t.avail_out),I!==0&&(a.arraySet(t.output,z.pending_buf,z.pending_out,I,t.next_out),t.next_out+=I,z.pending_out+=I,t.total_out+=I,t.avail_out-=I,z.pending-=I,z.pending===0&&(z.pending_out=0))}function j(t,z){e._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,z),t.block_start=t.strstart,Z(t.strm)}function S(t,z){t.pending_buf[t.pending++]=z}function T(t,z){t.pending_buf[t.pending++]=z>>>8&255,t.pending_buf[t.pending++]=255&z}function E(t,z){var I,x,_=t.max_chain_length,B=t.strstart,M=t.prev_length,V=t.nice_match,O=t.strstart>t.w_size-re?t.strstart-(t.w_size-re):0,G=t.window,te=t.w_mask,X=t.prev,ae=t.strstart+ne,de=G[B+M-1],se=G[B+M];t.prev_length>=t.good_match&&(_>>=2),V>t.lookahead&&(V=t.lookahead);do if(G[(I=z)+M]===se&&G[I+M-1]===de&&G[I]===G[B]&&G[++I]===G[B+1]){B+=2,I++;do;while(G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&G[++B]===G[++I]&&B<ae);if(x=ne-(ae-B),B=ae-ne,M<x){if(t.match_start=z,V<=(M=x))break;de=G[B+M-1],se=G[B+M]}}while((z=X[z&te])>O&&--_!=0);return M<=t.lookahead?M:t.lookahead}function R(t){var z,I,x,_,B,M,V,O,G,te,X=t.w_size;do{if(_=t.window_size-t.lookahead-t.strstart,t.strstart>=X+(X-re)){for(a.arraySet(t.window,t.window,X,X,0),t.match_start-=X,t.strstart-=X,t.block_start-=X,z=I=t.hash_size;x=t.head[--z],t.head[z]=X<=x?x-X:0,--I;);for(z=I=X;x=t.prev[--z],t.prev[z]=X<=x?x-X:0,--I;);_+=X}if(t.strm.avail_in===0)break;if(M=t.strm,V=t.window,O=t.strstart+t.lookahead,G=_,te=void 0,te=M.avail_in,G<te&&(te=G),I=te===0?0:(M.avail_in-=te,a.arraySet(V,M.input,M.next_in,te,O),M.state.wrap===1?M.adler=f(M.adler,V,te,O):M.state.wrap===2&&(M.adler=v(M.adler,V,te,O)),M.next_in+=te,M.total_in+=te,te),t.lookahead+=I,t.lookahead+t.insert>=L)for(B=t.strstart-t.insert,t.ins_h=t.window[B],t.ins_h=(t.ins_h<<t.hash_shift^t.window[B+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[B+L-1])&t.hash_mask,t.prev[B&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=B,B++,t.insert--,!(t.lookahead+t.insert<L)););}while(t.lookahead<re&&t.strm.avail_in!==0)}function N(t,z){for(var I,x;;){if(t.lookahead<re){if(R(t),t.lookahead<re&&z===A)return h;if(t.lookahead===0)break}if(I=0,t.lookahead>=L&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),I!==0&&t.strstart-I<=t.w_size-re&&(t.match_length=E(t,I)),t.match_length>=L)if(x=e._tr_tally(t,t.strstart-t.match_start,t.match_length-L),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=L){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else x=e._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(x&&(j(t,!1),t.strm.avail_out===0))return h}return t.insert=t.strstart<L-1?t.strstart:L-1,z===k?(j(t,!0),t.strm.avail_out===0?oe:J):t.last_lit&&(j(t,!1),t.strm.avail_out===0)?h:$}function W(t,z){for(var I,x,_;;){if(t.lookahead<re){if(R(t),t.lookahead<re&&z===A)return h;if(t.lookahead===0)break}if(I=0,t.lookahead>=L&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=L-1,I!==0&&t.prev_length<t.max_lazy_match&&t.strstart-I<=t.w_size-re&&(t.match_length=E(t,I),t.match_length<=5&&(t.strategy===1||t.match_length===L&&4096<t.strstart-t.match_start)&&(t.match_length=L-1)),t.prev_length>=L&&t.match_length<=t.prev_length){for(_=t.strstart+t.lookahead-L,x=e._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-L),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=_&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+L-1])&t.hash_mask,I=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=L-1,t.strstart++,x&&(j(t,!1),t.strm.avail_out===0))return h}else if(t.match_available){if((x=e._tr_tally(t,0,t.window[t.strstart-1]))&&j(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return h}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(x=e._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<L-1?t.strstart:L-1,z===k?(j(t,!0),t.strm.avail_out===0?oe:J):t.last_lit&&(j(t,!1),t.strm.avail_out===0)?h:$}function H(t,z,I,x,_){this.good_length=t,this.max_lazy=z,this.nice_length=I,this.max_chain=x,this.func=_}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*D),this.dyn_dtree=new a.Buf16(2*(2*C+1)),this.bl_tree=new a.Buf16(2*(2*F+1)),le(this.dyn_ltree),le(this.dyn_dtree),le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(q+1),this.heap=new a.Buf16(2*g+1),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*g+1),le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ee(t){var z;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=m,(z=t.state).pending=0,z.pending_out=0,z.wrap<0&&(z.wrap=-z.wrap),z.status=z.wrap?P:U,t.adler=z.wrap===2?0:1,z.last_flush=A,e._tr_init(z),p):ue(t,b)}function Y(t){var z=ee(t);return z===p&&(function(I){I.window_size=2*I.w_size,le(I.head),I.max_lazy_match=n[I.level].max_lazy,I.good_match=n[I.level].good_length,I.nice_match=n[I.level].nice_length,I.max_chain_length=n[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=L-1,I.match_available=0,I.ins_h=0})(t.state),z}function Q(t,z,I,x,_,B){if(!t)return b;var M=1;if(z===s&&(z=6),x<0?(M=0,x=-x):15<x&&(M=2,x-=16),_<1||l<_||I!==c||x<8||15<x||z<0||9<z||B<0||w<B)return ue(t,b);x===8&&(x=9);var V=new K;return(t.state=V).strm=t,V.wrap=M,V.gzhead=null,V.w_bits=x,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=_+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+L-1)/L),V.window=new a.Buf8(2*V.w_size),V.head=new a.Buf16(V.hash_size),V.prev=new a.Buf16(V.w_size),V.lit_bufsize=1<<_+6,V.pending_buf_size=4*V.lit_bufsize,V.pending_buf=new a.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=z,V.strategy=B,V.method=I,Y(t)}n=[new H(0,0,0,0,function(t,z){var I=65535;for(I>t.pending_buf_size-5&&(I=t.pending_buf_size-5);;){if(t.lookahead<=1){if(R(t),t.lookahead===0&&z===A)return h;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var x=t.block_start+I;if((t.strstart===0||t.strstart>=x)&&(t.lookahead=t.strstart-x,t.strstart=x,j(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-re&&(j(t,!1),t.strm.avail_out===0))return h}return t.insert=0,z===k?(j(t,!0),t.strm.avail_out===0?oe:J):(t.strstart>t.block_start&&(j(t,!1),t.strm.avail_out),h)}),new H(4,4,8,4,N),new H(4,5,16,8,N),new H(4,6,32,32,N),new H(4,4,16,16,W),new H(8,16,32,32,W),new H(8,16,128,128,W),new H(8,32,128,256,W),new H(32,128,258,1024,W),new H(32,258,258,4096,W)],i.deflateInit=function(t,z){return Q(t,z,c,15,8,0)},i.deflateInit2=Q,i.deflateReset=Y,i.deflateResetKeep=ee,i.deflateSetHeader=function(t,z){return t&&t.state?t.state.wrap!==2?b:(t.state.gzhead=z,p):b},i.deflate=function(t,z){var I,x,_,B;if(!t||!t.state||5<z||z<0)return t?ue(t,b):b;if(x=t.state,!t.output||!t.input&&t.avail_in!==0||x.status===666&&z!==k)return ue(t,t.avail_out===0?-5:b);if(x.strm=t,I=x.last_flush,x.last_flush=z,x.status===P)if(x.wrap===2)t.adler=0,S(x,31),S(x,139),S(x,8),x.gzhead?(S(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),S(x,255&x.gzhead.time),S(x,x.gzhead.time>>8&255),S(x,x.gzhead.time>>16&255),S(x,x.gzhead.time>>24&255),S(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),S(x,255&x.gzhead.os),x.gzhead.extra&&x.gzhead.extra.length&&(S(x,255&x.gzhead.extra.length),S(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(t.adler=v(t.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=69):(S(x,0),S(x,0),S(x,0),S(x,0),S(x,0),S(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),S(x,3),x.status=U);else{var M=c+(x.w_bits-8<<4)<<8;M|=(2<=x.strategy||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6,x.strstart!==0&&(M|=32),M+=31-M%31,x.status=U,T(x,M),x.strstart!==0&&(T(x,t.adler>>>16),T(x,65535&t.adler)),t.adler=1}if(x.status===69)if(x.gzhead.extra){for(_=x.pending;x.gzindex<(65535&x.gzhead.extra.length)&&(x.pending!==x.pending_buf_size||(x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),Z(t),_=x.pending,x.pending!==x.pending_buf_size));)S(x,255&x.gzhead.extra[x.gzindex]),x.gzindex++;x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),x.gzindex===x.gzhead.extra.length&&(x.gzindex=0,x.status=73)}else x.status=73;if(x.status===73)if(x.gzhead.name){_=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),Z(t),_=x.pending,x.pending===x.pending_buf_size)){B=1;break}B=x.gzindex<x.gzhead.name.length?255&x.gzhead.name.charCodeAt(x.gzindex++):0,S(x,B)}while(B!==0);x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),B===0&&(x.gzindex=0,x.status=91)}else x.status=91;if(x.status===91)if(x.gzhead.comment){_=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),Z(t),_=x.pending,x.pending===x.pending_buf_size)){B=1;break}B=x.gzindex<x.gzhead.comment.length?255&x.gzhead.comment.charCodeAt(x.gzindex++):0,S(x,B)}while(B!==0);x.gzhead.hcrc&&x.pending>_&&(t.adler=v(t.adler,x.pending_buf,x.pending-_,_)),B===0&&(x.status=103)}else x.status=103;if(x.status===103&&(x.gzhead.hcrc?(x.pending+2>x.pending_buf_size&&Z(t),x.pending+2<=x.pending_buf_size&&(S(x,255&t.adler),S(x,t.adler>>8&255),t.adler=0,x.status=U)):x.status=U),x.pending!==0){if(Z(t),t.avail_out===0)return x.last_flush=-1,p}else if(t.avail_in===0&&ie(z)<=ie(I)&&z!==k)return ue(t,-5);if(x.status===666&&t.avail_in!==0)return ue(t,-5);if(t.avail_in!==0||x.lookahead!==0||z!==A&&x.status!==666){var V=x.strategy===2?(function(O,G){for(var te;;){if(O.lookahead===0&&(R(O),O.lookahead===0)){if(G===A)return h;break}if(O.match_length=0,te=e._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++,te&&(j(O,!1),O.strm.avail_out===0))return h}return O.insert=0,G===k?(j(O,!0),O.strm.avail_out===0?oe:J):O.last_lit&&(j(O,!1),O.strm.avail_out===0)?h:$})(x,z):x.strategy===3?(function(O,G){for(var te,X,ae,de,se=O.window;;){if(O.lookahead<=ne){if(R(O),O.lookahead<=ne&&G===A)return h;if(O.lookahead===0)break}if(O.match_length=0,O.lookahead>=L&&0<O.strstart&&(X=se[ae=O.strstart-1])===se[++ae]&&X===se[++ae]&&X===se[++ae]){de=O.strstart+ne;do;while(X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&X===se[++ae]&&ae<de);O.match_length=ne-(de-ae),O.match_length>O.lookahead&&(O.match_length=O.lookahead)}if(O.match_length>=L?(te=e._tr_tally(O,1,O.match_length-L),O.lookahead-=O.match_length,O.strstart+=O.match_length,O.match_length=0):(te=e._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++),te&&(j(O,!1),O.strm.avail_out===0))return h}return O.insert=0,G===k?(j(O,!0),O.strm.avail_out===0?oe:J):O.last_lit&&(j(O,!1),O.strm.avail_out===0)?h:$})(x,z):n[x.level].func(x,z);if(V!==oe&&V!==J||(x.status=666),V===h||V===oe)return t.avail_out===0&&(x.last_flush=-1),p;if(V===$&&(z===1?e._tr_align(x):z!==5&&(e._tr_stored_block(x,0,0,!1),z===3&&(le(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),Z(t),t.avail_out===0))return x.last_flush=-1,p}return z!==k?p:x.wrap<=0?1:(x.wrap===2?(S(x,255&t.adler),S(x,t.adler>>8&255),S(x,t.adler>>16&255),S(x,t.adler>>24&255),S(x,255&t.total_in),S(x,t.total_in>>8&255),S(x,t.total_in>>16&255),S(x,t.total_in>>24&255)):(T(x,t.adler>>>16),T(x,65535&t.adler)),Z(t),0<x.wrap&&(x.wrap=-x.wrap),x.pending!==0?p:1)},i.deflateEnd=function(t){var z;return t&&t.state?(z=t.state.status)!==P&&z!==69&&z!==73&&z!==91&&z!==103&&z!==U&&z!==666?ue(t,b):(t.state=null,z===U?ue(t,-3):p):b},i.deflateSetDictionary=function(t,z){var I,x,_,B,M,V,O,G,te=z.length;if(!t||!t.state||(B=(I=t.state).wrap)===2||B===1&&I.status!==P||I.lookahead)return b;for(B===1&&(t.adler=f(t.adler,z,te,0)),I.wrap=0,te>=I.w_size&&(B===0&&(le(I.head),I.strstart=0,I.block_start=0,I.insert=0),G=new a.Buf8(I.w_size),a.arraySet(G,z,te-I.w_size,I.w_size,0),z=G,te=I.w_size),M=t.avail_in,V=t.next_in,O=t.input,t.avail_in=te,t.next_in=0,t.input=z,R(I);I.lookahead>=L;){for(x=I.strstart,_=I.lookahead-(L-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[x+L-1])&I.hash_mask,I.prev[x&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=x,x++,--_;);I.strstart=x,I.lookahead=L-1,R(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=L-1,I.match_available=0,t.next_in=V,t.input=O,t.avail_in=M,I.wrap=B,p},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,d,i){"use strict";d.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,d,i){"use strict";d.exports=function(n,a){var e=n.state,f=n.next_in,v,y,A,k,p,b,s,w,m,c,l,g,C,F,D,q,L,ne,re,P,U,h=n.input,$;v=f+(n.avail_in-5),y=n.next_out,$=n.output,A=y-(a-n.avail_out),k=y+(n.avail_out-257),p=e.dmax,b=e.wsize,s=e.whave,w=e.wnext,m=e.window,c=e.hold,l=e.bits,g=e.lencode,C=e.distcode,F=(1<<e.lenbits)-1,D=(1<<e.distbits)-1;e:do{l<15&&(c+=h[f++]<<l,l+=8,c+=h[f++]<<l,l+=8),q=g[c&F];t:for(;;){if(c>>>=L=q>>>24,l-=L,(L=q>>>16&255)===0)$[y++]=65535&q;else{if(!(16&L)){if((64&L)==0){q=g[(65535&q)+(c&(1<<L)-1)];continue t}if(32&L){e.mode=12;break e}n.msg="invalid literal/length code",e.mode=30;break e}ne=65535&q,(L&=15)&&(l<L&&(c+=h[f++]<<l,l+=8),ne+=c&(1<<L)-1,c>>>=L,l-=L),l<15&&(c+=h[f++]<<l,l+=8,c+=h[f++]<<l,l+=8),q=C[c&D];r:for(;;){if(c>>>=L=q>>>24,l-=L,!(16&(L=q>>>16&255))){if((64&L)==0){q=C[(65535&q)+(c&(1<<L)-1)];continue r}n.msg="invalid distance code",e.mode=30;break e}if(re=65535&q,l<(L&=15)&&(c+=h[f++]<<l,(l+=8)<L&&(c+=h[f++]<<l,l+=8)),p<(re+=c&(1<<L)-1)){n.msg="invalid distance too far back",e.mode=30;break e}if(c>>>=L,l-=L,(L=y-A)<re){if(s<(L=re-L)&&e.sane){n.msg="invalid distance too far back",e.mode=30;break e}if(U=m,(P=0)===w){if(P+=b-L,L<ne){for(ne-=L;$[y++]=m[P++],--L;);P=y-re,U=$}}else if(w<L){if(P+=b+w-L,(L-=w)<ne){for(ne-=L;$[y++]=m[P++],--L;);if(P=0,w<ne){for(ne-=L=w;$[y++]=m[P++],--L;);P=y-re,U=$}}}else if(P+=w-L,L<ne){for(ne-=L;$[y++]=m[P++],--L;);P=y-re,U=$}for(;2<ne;)$[y++]=U[P++],$[y++]=U[P++],$[y++]=U[P++],ne-=3;ne&&($[y++]=U[P++],1<ne&&($[y++]=U[P++]))}else{for(P=y-re;$[y++]=$[P++],$[y++]=$[P++],$[y++]=$[P++],2<(ne-=3););ne&&($[y++]=$[P++],1<ne&&($[y++]=$[P++]))}break}}break}}while(f<v&&y<k);f-=ne=l>>3,c&=(1<<(l-=ne<<3))-1,n.next_in=f,n.next_out=y,n.avail_in=f<v?v-f+5:5-(f-v),n.avail_out=y<k?k-y+257:257-(y-k),e.hold=c,e.bits=l}},{}],49:[function(r,d,i){"use strict";var n=r("../utils/common"),a=r("./adler32"),e=r("./crc32"),f=r("./inffast"),v=r("./inftrees"),y=1,A=2,k=0,p=-2,b=1,s=852,w=592;function m(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(P){var U;return P&&P.state?(U=P.state,P.total_in=P.total_out=U.total=0,P.msg="",U.wrap&&(P.adler=1&U.wrap),U.mode=b,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new n.Buf32(s),U.distcode=U.distdyn=new n.Buf32(w),U.sane=1,U.back=-1,k):p}function g(P){var U;return P&&P.state?((U=P.state).wsize=0,U.whave=0,U.wnext=0,l(P)):p}function C(P,U){var h,$;return P&&P.state?($=P.state,U<0?(h=0,U=-U):(h=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?p:($.window!==null&&$.wbits!==U&&($.window=null),$.wrap=h,$.wbits=U,g(P))):p}function F(P,U){var h,$;return P?($=new c,(P.state=$).window=null,(h=C(P,U))!==k&&(P.state=null),h):p}var D,q,L=!0;function ne(P){if(L){var U;for(D=new n.Buf32(512),q=new n.Buf32(32),U=0;U<144;)P.lens[U++]=8;for(;U<256;)P.lens[U++]=9;for(;U<280;)P.lens[U++]=7;for(;U<288;)P.lens[U++]=8;for(v(y,P.lens,0,288,D,0,P.work,{bits:9}),U=0;U<32;)P.lens[U++]=5;v(A,P.lens,0,32,q,0,P.work,{bits:5}),L=!1}P.lencode=D,P.lenbits=9,P.distcode=q,P.distbits=5}function re(P,U,h,$){var oe,J=P.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new n.Buf8(J.wsize)),$>=J.wsize?(n.arraySet(J.window,U,h-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):($<(oe=J.wsize-J.wnext)&&(oe=$),n.arraySet(J.window,U,h-$,oe,J.wnext),($-=oe)?(n.arraySet(J.window,U,h-$,$,0),J.wnext=$,J.whave=J.wsize):(J.wnext+=oe,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=oe))),0}i.inflateReset=g,i.inflateReset2=C,i.inflateResetKeep=l,i.inflateInit=function(P){return F(P,15)},i.inflateInit2=F,i.inflate=function(P,U){var h,$,oe,J,ue,ie,le,Z,j,S,T,E,R,N,W,H,K,ee,Y,Q,t,z,I,x,_=0,B=new n.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return p;(h=P.state).mode===12&&(h.mode=13),ue=P.next_out,oe=P.output,le=P.avail_out,J=P.next_in,$=P.input,ie=P.avail_in,Z=h.hold,j=h.bits,S=ie,T=le,z=k;e:for(;;)switch(h.mode){case b:if(h.wrap===0){h.mode=13;break}for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(2&h.wrap&&Z===35615){B[h.check=0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0),j=Z=0,h.mode=2;break}if(h.flags=0,h.head&&(h.head.done=!1),!(1&h.wrap)||(((255&Z)<<8)+(Z>>8))%31){P.msg="incorrect header check",h.mode=30;break}if((15&Z)!=8){P.msg="unknown compression method",h.mode=30;break}if(j-=4,t=8+(15&(Z>>>=4)),h.wbits===0)h.wbits=t;else if(t>h.wbits){P.msg="invalid window size",h.mode=30;break}h.dmax=1<<t,P.adler=h.check=1,h.mode=512&Z?10:12,j=Z=0;break;case 2:for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(h.flags=Z,(255&h.flags)!=8){P.msg="unknown compression method",h.mode=30;break}if(57344&h.flags){P.msg="unknown header flags set",h.mode=30;break}h.head&&(h.head.text=Z>>8&1),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0)),j=Z=0,h.mode=3;case 3:for(;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.head&&(h.head.time=Z),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,B[2]=Z>>>16&255,B[3]=Z>>>24&255,h.check=e(h.check,B,4,0)),j=Z=0,h.mode=4;case 4:for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.head&&(h.head.xflags=255&Z,h.head.os=Z>>8),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0)),j=Z=0,h.mode=5;case 5:if(1024&h.flags){for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.length=Z,h.head&&(h.head.extra_len=Z),512&h.flags&&(B[0]=255&Z,B[1]=Z>>>8&255,h.check=e(h.check,B,2,0)),j=Z=0}else h.head&&(h.head.extra=null);h.mode=6;case 6:if(1024&h.flags&&(ie<(E=h.length)&&(E=ie),E&&(h.head&&(t=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),n.arraySet(h.head.extra,$,J,E,t)),512&h.flags&&(h.check=e(h.check,$,E,J)),ie-=E,J+=E,h.length-=E),h.length))break e;h.length=0,h.mode=7;case 7:if(2048&h.flags){if(ie===0)break e;for(E=0;t=$[J+E++],h.head&&t&&h.length<65536&&(h.head.name+=String.fromCharCode(t)),t&&E<ie;);if(512&h.flags&&(h.check=e(h.check,$,E,J)),ie-=E,J+=E,t)break e}else h.head&&(h.head.name=null);h.length=0,h.mode=8;case 8:if(4096&h.flags){if(ie===0)break e;for(E=0;t=$[J+E++],h.head&&t&&h.length<65536&&(h.head.comment+=String.fromCharCode(t)),t&&E<ie;);if(512&h.flags&&(h.check=e(h.check,$,E,J)),ie-=E,J+=E,t)break e}else h.head&&(h.head.comment=null);h.mode=9;case 9:if(512&h.flags){for(;j<16;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(Z!==(65535&h.check)){P.msg="header crc mismatch",h.mode=30;break}j=Z=0}h.head&&(h.head.hcrc=h.flags>>9&1,h.head.done=!0),P.adler=h.check=0,h.mode=12;break;case 10:for(;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}P.adler=h.check=m(Z),j=Z=0,h.mode=11;case 11:if(h.havedict===0)return P.next_out=ue,P.avail_out=le,P.next_in=J,P.avail_in=ie,h.hold=Z,h.bits=j,2;P.adler=h.check=1,h.mode=12;case 12:if(U===5||U===6)break e;case 13:if(h.last){Z>>>=7&j,j-=7&j,h.mode=27;break}for(;j<3;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}switch(h.last=1&Z,j-=1,3&(Z>>>=1)){case 0:h.mode=14;break;case 1:if(ne(h),h.mode=20,U!==6)break;Z>>>=2,j-=2;break e;case 2:h.mode=17;break;case 3:P.msg="invalid block type",h.mode=30}Z>>>=2,j-=2;break;case 14:for(Z>>>=7&j,j-=7&j;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if((65535&Z)!=(Z>>>16^65535)){P.msg="invalid stored block lengths",h.mode=30;break}if(h.length=65535&Z,j=Z=0,h.mode=15,U===6)break e;case 15:h.mode=16;case 16:if(E=h.length){if(ie<E&&(E=ie),le<E&&(E=le),E===0)break e;n.arraySet(oe,$,J,E,ue),ie-=E,J+=E,le-=E,ue+=E,h.length-=E;break}h.mode=12;break;case 17:for(;j<14;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(h.nlen=257+(31&Z),Z>>>=5,j-=5,h.ndist=1+(31&Z),Z>>>=5,j-=5,h.ncode=4+(15&Z),Z>>>=4,j-=4,286<h.nlen||30<h.ndist){P.msg="too many length or distance symbols",h.mode=30;break}h.have=0,h.mode=18;case 18:for(;h.have<h.ncode;){for(;j<3;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.lens[M[h.have++]]=7&Z,Z>>>=3,j-=3}for(;h.have<19;)h.lens[M[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,I={bits:h.lenbits},z=v(0,h.lens,0,19,h.lencode,0,h.work,I),h.lenbits=I.bits,z){P.msg="invalid code lengths set",h.mode=30;break}h.have=0,h.mode=19;case 19:for(;h.have<h.nlen+h.ndist;){for(;H=(_=h.lencode[Z&(1<<h.lenbits)-1])>>>16&255,K=65535&_,!((W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(K<16)Z>>>=W,j-=W,h.lens[h.have++]=K;else{if(K===16){for(x=W+2;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(Z>>>=W,j-=W,h.have===0){P.msg="invalid bit length repeat",h.mode=30;break}t=h.lens[h.have-1],E=3+(3&Z),Z>>>=2,j-=2}else if(K===17){for(x=W+3;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}j-=W,t=0,E=3+(7&(Z>>>=W)),Z>>>=3,j-=3}else{for(x=W+7;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}j-=W,t=0,E=11+(127&(Z>>>=W)),Z>>>=7,j-=7}if(h.have+E>h.nlen+h.ndist){P.msg="invalid bit length repeat",h.mode=30;break}for(;E--;)h.lens[h.have++]=t}}if(h.mode===30)break;if(h.lens[256]===0){P.msg="invalid code -- missing end-of-block",h.mode=30;break}if(h.lenbits=9,I={bits:h.lenbits},z=v(y,h.lens,0,h.nlen,h.lencode,0,h.work,I),h.lenbits=I.bits,z){P.msg="invalid literal/lengths set",h.mode=30;break}if(h.distbits=6,h.distcode=h.distdyn,I={bits:h.distbits},z=v(A,h.lens,h.nlen,h.ndist,h.distcode,0,h.work,I),h.distbits=I.bits,z){P.msg="invalid distances set",h.mode=30;break}if(h.mode=20,U===6)break e;case 20:h.mode=21;case 21:if(6<=ie&&258<=le){P.next_out=ue,P.avail_out=le,P.next_in=J,P.avail_in=ie,h.hold=Z,h.bits=j,f(P,T),ue=P.next_out,oe=P.output,le=P.avail_out,J=P.next_in,$=P.input,ie=P.avail_in,Z=h.hold,j=h.bits,h.mode===12&&(h.back=-1);break}for(h.back=0;H=(_=h.lencode[Z&(1<<h.lenbits)-1])>>>16&255,K=65535&_,!((W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(H&&(240&H)==0){for(ee=W,Y=H,Q=K;H=(_=h.lencode[Q+((Z&(1<<ee+Y)-1)>>ee)])>>>16&255,K=65535&_,!(ee+(W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}Z>>>=ee,j-=ee,h.back+=ee}if(Z>>>=W,j-=W,h.back+=W,h.length=K,H===0){h.mode=26;break}if(32&H){h.back=-1,h.mode=12;break}if(64&H){P.msg="invalid literal/length code",h.mode=30;break}h.extra=15&H,h.mode=22;case 22:if(h.extra){for(x=h.extra;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.length+=Z&(1<<h.extra)-1,Z>>>=h.extra,j-=h.extra,h.back+=h.extra}h.was=h.length,h.mode=23;case 23:for(;H=(_=h.distcode[Z&(1<<h.distbits)-1])>>>16&255,K=65535&_,!((W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if((240&H)==0){for(ee=W,Y=H,Q=K;H=(_=h.distcode[Q+((Z&(1<<ee+Y)-1)>>ee)])>>>16&255,K=65535&_,!(ee+(W=_>>>24)<=j);){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}Z>>>=ee,j-=ee,h.back+=ee}if(Z>>>=W,j-=W,h.back+=W,64&H){P.msg="invalid distance code",h.mode=30;break}h.offset=K,h.extra=15&H,h.mode=24;case 24:if(h.extra){for(x=h.extra;j<x;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}h.offset+=Z&(1<<h.extra)-1,Z>>>=h.extra,j-=h.extra,h.back+=h.extra}if(h.offset>h.dmax){P.msg="invalid distance too far back",h.mode=30;break}h.mode=25;case 25:if(le===0)break e;if(E=T-le,h.offset>E){if((E=h.offset-E)>h.whave&&h.sane){P.msg="invalid distance too far back",h.mode=30;break}R=E>h.wnext?(E-=h.wnext,h.wsize-E):h.wnext-E,E>h.length&&(E=h.length),N=h.window}else N=oe,R=ue-h.offset,E=h.length;for(le<E&&(E=le),le-=E,h.length-=E;oe[ue++]=N[R++],--E;);h.length===0&&(h.mode=21);break;case 26:if(le===0)break e;oe[ue++]=h.length,le--,h.mode=21;break;case 27:if(h.wrap){for(;j<32;){if(ie===0)break e;ie--,Z|=$[J++]<<j,j+=8}if(T-=le,P.total_out+=T,h.total+=T,T&&(P.adler=h.check=h.flags?e(h.check,oe,T,ue-T):a(h.check,oe,T,ue-T)),T=le,(h.flags?Z:m(Z))!==h.check){P.msg="incorrect data check",h.mode=30;break}j=Z=0}h.mode=28;case 28:if(h.wrap&&h.flags){for(;j<32;){if(ie===0)break e;ie--,Z+=$[J++]<<j,j+=8}if(Z!==(4294967295&h.total)){P.msg="incorrect length check",h.mode=30;break}j=Z=0}h.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;default:return p}return P.next_out=ue,P.avail_out=le,P.next_in=J,P.avail_in=ie,h.hold=Z,h.bits=j,(h.wsize||T!==P.avail_out&&h.mode<30&&(h.mode<27||U!==4))&&re(P,P.output,P.next_out,T-P.avail_out)?(h.mode=31,-4):(S-=P.avail_in,T-=P.avail_out,P.total_in+=S,P.total_out+=T,h.total+=T,h.wrap&&T&&(P.adler=h.check=h.flags?e(h.check,oe,T,P.next_out-T):a(h.check,oe,T,P.next_out-T)),P.data_type=h.bits+(h.last?64:0)+(h.mode===12?128:0)+(h.mode===20||h.mode===15?256:0),(S==0&&T===0||U===4)&&z===k&&(z=-5),z)},i.inflateEnd=function(P){if(!P||!P.state)return p;var U=P.state;return U.window&&(U.window=null),P.state=null,k},i.inflateGetHeader=function(P,U){var h;return P&&P.state?(2&(h=P.state).wrap)==0?p:((h.head=U).done=!1,k):p},i.inflateSetDictionary=function(P,U){var h,$=U.length;return P&&P.state?(h=P.state).wrap!==0&&h.mode!==11?p:h.mode===11&&a(1,U,$,0)!==h.check?-3:re(P,U,$,$)?(h.mode=31,-4):(h.havedict=1,k):p},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,d,i){"use strict";var n=r("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];d.exports=function(y,A,k,p,b,s,w,m){var c,l,g,C,F,D,q,L,ne,re=m.bits,P=0,U=0,h=0,$=0,oe=0,J=0,ue=0,ie=0,le=0,Z=0,j=null,S=0,T=new n.Buf16(16),E=new n.Buf16(16),R=null,N=0;for(P=0;P<=15;P++)T[P]=0;for(U=0;U<p;U++)T[A[k+U]]++;for(oe=re,$=15;1<=$&&T[$]===0;$--);if($<oe&&(oe=$),$===0)return b[s++]=20971520,b[s++]=20971520,m.bits=1,0;for(h=1;h<$&&T[h]===0;h++);for(oe<h&&(oe=h),P=ie=1;P<=15;P++)if(ie<<=1,(ie-=T[P])<0)return-1;if(0<ie&&(y===0||$!==1))return-1;for(E[1]=0,P=1;P<15;P++)E[P+1]=E[P]+T[P];for(U=0;U<p;U++)A[k+U]!==0&&(w[E[A[k+U]]++]=U);if(D=y===0?(j=R=w,19):y===1?(j=a,S-=257,R=e,N-=257,256):(j=f,R=v,-1),P=h,F=s,ue=U=Z=0,g=-1,C=(le=1<<(J=oe))-1,y===1&&852<le||y===2&&592<le)return 1;for(;;){for(q=P-ue,ne=w[U]<D?(L=0,w[U]):w[U]>D?(L=R[N+w[U]],j[S+w[U]]):(L=96,0),c=1<<P-ue,h=l=1<<J;b[F+(Z>>ue)+(l-=c)]=q<<24|L<<16|ne|0,l!==0;);for(c=1<<P-1;Z&c;)c>>=1;if(c!==0?(Z&=c-1,Z+=c):Z=0,U++,--T[P]==0){if(P===$)break;P=A[k+w[U]]}if(oe<P&&(Z&C)!==g){for(ue===0&&(ue=oe),F+=h,ie=1<<(J=P-ue);J+ue<$&&!((ie-=T[J+ue])<=0);)J++,ie<<=1;if(le+=1<<J,y===1&&852<le||y===2&&592<le)return 1;b[g=Z&C]=oe<<24|J<<16|F-s|0}}return Z!==0&&(b[F+Z]=P-ue<<24|4194304),m.bits=oe,0}},{"../utils/common":41}],51:[function(r,d,i){"use strict";d.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,d,i){"use strict";var n=r("../utils/common"),a=0,e=1;function f(_){for(var B=_.length;0<=--B;)_[B]=0}var v=0,y=29,A=256,k=A+1+y,p=30,b=19,s=2*k+1,w=15,m=16,c=7,l=256,g=16,C=17,F=18,D=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],re=new Array(2*(k+2));f(re);var P=new Array(2*p);f(P);var U=new Array(512);f(U);var h=new Array(256);f(h);var $=new Array(y);f($);var oe,J,ue,ie=new Array(p);function le(_,B,M,V,O){this.static_tree=_,this.extra_bits=B,this.extra_base=M,this.elems=V,this.max_length=O,this.has_stree=_&&_.length}function Z(_,B){this.dyn_tree=_,this.max_code=0,this.stat_desc=B}function j(_){return _<256?U[_]:U[256+(_>>>7)]}function S(_,B){_.pending_buf[_.pending++]=255&B,_.pending_buf[_.pending++]=B>>>8&255}function T(_,B,M){_.bi_valid>m-M?(_.bi_buf|=B<<_.bi_valid&65535,S(_,_.bi_buf),_.bi_buf=B>>m-_.bi_valid,_.bi_valid+=M-m):(_.bi_buf|=B<<_.bi_valid&65535,_.bi_valid+=M)}function E(_,B,M){T(_,M[2*B],M[2*B+1])}function R(_,B){for(var M=0;M|=1&_,_>>>=1,M<<=1,0<--B;);return M>>>1}function N(_,B,M){var V,O,G=new Array(w+1),te=0;for(V=1;V<=w;V++)G[V]=te=te+M[V-1]<<1;for(O=0;O<=B;O++){var X=_[2*O+1];X!==0&&(_[2*O]=R(G[X]++,X))}}function W(_){var B;for(B=0;B<k;B++)_.dyn_ltree[2*B]=0;for(B=0;B<p;B++)_.dyn_dtree[2*B]=0;for(B=0;B<b;B++)_.bl_tree[2*B]=0;_.dyn_ltree[2*l]=1,_.opt_len=_.static_len=0,_.last_lit=_.matches=0}function H(_){8<_.bi_valid?S(_,_.bi_buf):0<_.bi_valid&&(_.pending_buf[_.pending++]=_.bi_buf),_.bi_buf=0,_.bi_valid=0}function K(_,B,M,V){var O=2*B,G=2*M;return _[O]<_[G]||_[O]===_[G]&&V[B]<=V[M]}function ee(_,B,M){for(var V=_.heap[M],O=M<<1;O<=_.heap_len&&(O<_.heap_len&&K(B,_.heap[O+1],_.heap[O],_.depth)&&O++,!K(B,V,_.heap[O],_.depth));)_.heap[M]=_.heap[O],M=O,O<<=1;_.heap[M]=V}function Y(_,B,M){var V,O,G,te,X=0;if(_.last_lit!==0)for(;V=_.pending_buf[_.d_buf+2*X]<<8|_.pending_buf[_.d_buf+2*X+1],O=_.pending_buf[_.l_buf+X],X++,V===0?E(_,O,B):(E(_,(G=h[O])+A+1,B),(te=D[G])!==0&&T(_,O-=$[G],te),E(_,G=j(--V),M),(te=q[G])!==0&&T(_,V-=ie[G],te)),X<_.last_lit;);E(_,l,B)}function Q(_,B){var M,V,O,G=B.dyn_tree,te=B.stat_desc.static_tree,X=B.stat_desc.has_stree,ae=B.stat_desc.elems,de=-1;for(_.heap_len=0,_.heap_max=s,M=0;M<ae;M++)G[2*M]!==0?(_.heap[++_.heap_len]=de=M,_.depth[M]=0):G[2*M+1]=0;for(;_.heap_len<2;)G[2*(O=_.heap[++_.heap_len]=de<2?++de:0)]=1,_.depth[O]=0,_.opt_len--,X&&(_.static_len-=te[2*O+1]);for(B.max_code=de,M=_.heap_len>>1;1<=M;M--)ee(_,G,M);for(O=ae;M=_.heap[1],_.heap[1]=_.heap[_.heap_len--],ee(_,G,1),V=_.heap[1],_.heap[--_.heap_max]=M,_.heap[--_.heap_max]=V,G[2*O]=G[2*M]+G[2*V],_.depth[O]=(_.depth[M]>=_.depth[V]?_.depth[M]:_.depth[V])+1,G[2*M+1]=G[2*V+1]=O,_.heap[1]=O++,ee(_,G,1),2<=_.heap_len;);_.heap[--_.heap_max]=_.heap[1],(function(se,xe){var Fe,pe,he,ce,ke,De,me=xe.dyn_tree,ve=xe.max_code,ge=xe.stat_desc.static_tree,Se=xe.stat_desc.has_stree,Ee=xe.stat_desc.extra_bits,Pe=xe.stat_desc.extra_base,Ae=xe.stat_desc.max_length,Te=0;for(ce=0;ce<=w;ce++)se.bl_count[ce]=0;for(me[2*se.heap[se.heap_max]+1]=0,Fe=se.heap_max+1;Fe<s;Fe++)Ae<(ce=me[2*me[2*(pe=se.heap[Fe])+1]+1]+1)&&(ce=Ae,Te++),me[2*pe+1]=ce,ve<pe||(se.bl_count[ce]++,ke=0,Pe<=pe&&(ke=Ee[pe-Pe]),De=me[2*pe],se.opt_len+=De*(ce+ke),Se&&(se.static_len+=De*(ge[2*pe+1]+ke)));if(Te!==0){do{for(ce=Ae-1;se.bl_count[ce]===0;)ce--;se.bl_count[ce]--,se.bl_count[ce+1]+=2,se.bl_count[Ae]--,Te-=2}while(0<Te);for(ce=Ae;ce!==0;ce--)for(pe=se.bl_count[ce];pe!==0;)ve<(he=se.heap[--Fe])||(me[2*he+1]!==ce&&(se.opt_len+=(ce-me[2*he+1])*me[2*he],me[2*he+1]=ce),pe--)}})(_,B),N(G,de,_.bl_count)}function t(_,B,M){var V,O,G=-1,te=B[1],X=0,ae=7,de=4;for(te===0&&(ae=138,de=3),B[2*(M+1)+1]=65535,V=0;V<=M;V++)O=te,te=B[2*(V+1)+1],++X<ae&&O===te||(X<de?_.bl_tree[2*O]+=X:O!==0?(O!==G&&_.bl_tree[2*O]++,_.bl_tree[2*g]++):X<=10?_.bl_tree[2*C]++:_.bl_tree[2*F]++,G=O,de=(X=0)===te?(ae=138,3):O===te?(ae=6,3):(ae=7,4))}function z(_,B,M){var V,O,G=-1,te=B[1],X=0,ae=7,de=4;for(te===0&&(ae=138,de=3),V=0;V<=M;V++)if(O=te,te=B[2*(V+1)+1],!(++X<ae&&O===te)){if(X<de)for(;E(_,O,_.bl_tree),--X!=0;);else O!==0?(O!==G&&(E(_,O,_.bl_tree),X--),E(_,g,_.bl_tree),T(_,X-3,2)):X<=10?(E(_,C,_.bl_tree),T(_,X-3,3)):(E(_,F,_.bl_tree),T(_,X-11,7));G=O,de=(X=0)===te?(ae=138,3):O===te?(ae=6,3):(ae=7,4)}}f(ie);var I=!1;function x(_,B,M,V){T(_,(v<<1)+(V?1:0),3),(function(O,G,te,X){H(O),X&&(S(O,te),S(O,~te)),n.arraySet(O.pending_buf,O.window,G,te,O.pending),O.pending+=te})(_,B,M,!0)}i._tr_init=function(_){I||((function(){var B,M,V,O,G,te=new Array(w+1);for(O=V=0;O<y-1;O++)for($[O]=V,B=0;B<1<<D[O];B++)h[V++]=O;for(h[V-1]=O,O=G=0;O<16;O++)for(ie[O]=G,B=0;B<1<<q[O];B++)U[G++]=O;for(G>>=7;O<p;O++)for(ie[O]=G<<7,B=0;B<1<<q[O]-7;B++)U[256+G++]=O;for(M=0;M<=w;M++)te[M]=0;for(B=0;B<=143;)re[2*B+1]=8,B++,te[8]++;for(;B<=255;)re[2*B+1]=9,B++,te[9]++;for(;B<=279;)re[2*B+1]=7,B++,te[7]++;for(;B<=287;)re[2*B+1]=8,B++,te[8]++;for(N(re,k+1,te),B=0;B<p;B++)P[2*B+1]=5,P[2*B]=R(B,5);oe=new le(re,D,A+1,k,w),J=new le(P,q,0,p,w),ue=new le(new Array(0),L,0,b,c)})(),I=!0),_.l_desc=new Z(_.dyn_ltree,oe),_.d_desc=new Z(_.dyn_dtree,J),_.bl_desc=new Z(_.bl_tree,ue),_.bi_buf=0,_.bi_valid=0,W(_)},i._tr_stored_block=x,i._tr_flush_block=function(_,B,M,V){var O,G,te=0;0<_.level?(_.strm.data_type===2&&(_.strm.data_type=(function(X){var ae,de=4093624447;for(ae=0;ae<=31;ae++,de>>>=1)if(1&de&&X.dyn_ltree[2*ae]!==0)return a;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return e;for(ae=32;ae<A;ae++)if(X.dyn_ltree[2*ae]!==0)return e;return a})(_)),Q(_,_.l_desc),Q(_,_.d_desc),te=(function(X){var ae;for(t(X,X.dyn_ltree,X.l_desc.max_code),t(X,X.dyn_dtree,X.d_desc.max_code),Q(X,X.bl_desc),ae=b-1;3<=ae&&X.bl_tree[2*ne[ae]+1]===0;ae--);return X.opt_len+=3*(ae+1)+5+5+4,ae})(_),O=_.opt_len+3+7>>>3,(G=_.static_len+3+7>>>3)<=O&&(O=G)):O=G=M+5,M+4<=O&&B!==-1?x(_,B,M,V):_.strategy===4||G===O?(T(_,2+(V?1:0),3),Y(_,re,P)):(T(_,4+(V?1:0),3),(function(X,ae,de,se){var xe;for(T(X,ae-257,5),T(X,de-1,5),T(X,se-4,4),xe=0;xe<se;xe++)T(X,X.bl_tree[2*ne[xe]+1],3);z(X,X.dyn_ltree,ae-1),z(X,X.dyn_dtree,de-1)})(_,_.l_desc.max_code+1,_.d_desc.max_code+1,te+1),Y(_,_.dyn_ltree,_.dyn_dtree)),W(_),V&&H(_)},i._tr_tally=function(_,B,M){return _.pending_buf[_.d_buf+2*_.last_lit]=B>>>8&255,_.pending_buf[_.d_buf+2*_.last_lit+1]=255&B,_.pending_buf[_.l_buf+_.last_lit]=255&M,_.last_lit++,B===0?_.dyn_ltree[2*M]++:(_.matches++,B--,_.dyn_ltree[2*(h[M]+A+1)]++,_.dyn_dtree[2*j(B)]++),_.last_lit===_.lit_bufsize-1},i._tr_align=function(_){T(_,2,3),E(_,l,re),(function(B){B.bi_valid===16?(S(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):8<=B.bi_valid&&(B.pending_buf[B.pending++]=255&B.bi_buf,B.bi_buf>>=8,B.bi_valid-=8)})(_)}},{"../utils/common":41}],53:[function(r,d,i){"use strict";d.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,d,i){(function(n){(function(a,e){"use strict";if(!a.setImmediate){var f,v,y,A,k=1,p={},b=!1,s=a.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(a);w=w&&w.setTimeout?w:a,f={}.toString.call(a.process)==="[object process]"?function(g){process.nextTick(function(){c(g)})}:(function(){if(a.postMessage&&!a.importScripts){var g=!0,C=a.onmessage;return a.onmessage=function(){g=!1},a.postMessage("","*"),a.onmessage=C,g}})()?(A="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",l,!1):a.attachEvent("onmessage",l),function(g){a.postMessage(A+g,"*")}):a.MessageChannel?((y=new MessageChannel).port1.onmessage=function(g){c(g.data)},function(g){y.port2.postMessage(g)}):s&&"onreadystatechange"in s.createElement("script")?(v=s.documentElement,function(g){var C=s.createElement("script");C.onreadystatechange=function(){c(g),C.onreadystatechange=null,v.removeChild(C),C=null},v.appendChild(C)}):function(g){setTimeout(c,0,g)},w.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var C=new Array(arguments.length-1),F=0;F<C.length;F++)C[F]=arguments[F+1];return p[k]={callback:g,args:C},f(k),k++},w.clearImmediate=m}function m(g){delete p[g]}function c(g){if(b)setTimeout(c,0,g);else{var C=p[g];if(C){b=!0;try{(function(F){var D=F.callback,q=F.args;switch(q.length){case 0:D();break;case 1:D(q[0]);break;case 2:D(q[0],q[1]);break;case 3:D(q[0],q[1],q[2]);break;default:D.apply(e,q)}})(C)}finally{m(g),b=!1}}}}function l(g){g.source===a&&typeof g.data=="string"&&g.data.indexOf(A)===0&&c(+g.data.slice(A.length))}})(typeof self>"u"?n===void 0?this:n:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})),Me=ze((o=>{var u="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",r=new RegExp("^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),d=function(n,a){const e=[];let f=a.exec(n);for(;f;){const v=[],y=f.length;for(let A=0;A<y;A++)v.push(f[A]);e.push(v),f=a.exec(n)}return e},i=function(n){const a=r.exec(n);return!(a===null||typeof a>"u")};o.isExist=function(n){return typeof n<"u"},o.isEmptyObject=function(n){return Object.keys(n).length===0},o.merge=function(n,a,e){if(a){const f=Object.keys(a),v=f.length;for(let y=0;y<v;y++)e==="strict"?n[f[y]]=[a[f[y]]]:n[f[y]]=a[f[y]]}},o.getValue=function(n){return o.isExist(n)?n:""},o.buildOptions=function(n,a,e){var f={};if(!n)return a;for(let v=0;v<e.length;v++)n[e[v]]!==void 0?f[e[v]]=n[e[v]]:f[e[v]]=a[e[v]];return f},o.isName=i,o.getAllMatches=d,o.nameRegexp=u})),Vn=ze((o=>{var u=Me(),r=function(d,i){const n={};if((!d.child||u.isEmptyObject(d.child))&&(!d.attrsMap||u.isEmptyObject(d.attrsMap)))return u.isExist(d.val)?d.val:"";u.isExist(d.val)&&(typeof d.val=="string"&&(d.val===""||d.val===i.cdataPositionChar)||(i.arrayMode==="strict"?n[i.textNodeName]=[d.val]:n[i.textNodeName]=d.val)),u.merge(n,d.attrsMap,i.arrayMode);const a=Object.keys(d.child);for(let v=0;v<a.length;v++){var e=a[v];if(d.child[e]&&d.child[e].length>1){n[e]=[];for(var f in d.child[e])global.xmlParseFlag=global.xmlParseFlag+1,n[e].push(r(d.child[e][f],i))}else if(i.arrayMode===!0){global.xmlParseFlag=global.xmlParseFlag+1;const y=r(d.child[e][0],i);typeof y=="object"?n[e]=[y]:n[e]=y}else i.arrayMode==="strict"?(global.xmlParseFlag=global.xmlParseFlag+1,n[e]=[r(d.child[e][0],i)]):(global.xmlParseFlag=global.xmlParseFlag+1,n[e]=r(d.child[e][0],i))}return n};o.convertToJson=r})),Mn=ze(((o,u)=>{u.exports=function(r,d,i){this.tagname=r,this.parent=d,this.child={},this.attrsMap={},this.val=i,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}})),ht=ze((o=>{var u=Me(),r=Me().buildOptions,d=Mn();"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,u.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var i={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(b,s){return b},attrValueProcessor:function(b,s){return b},stopNodes:[]};o.defaultOptions=i;var n=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];o.props=n;function a(b,s,w){return s&&(w.trimValues&&(s=s.trim()),s=w.tagValueProcessor(s,b),s=f(s,w.parseNodeValue,w.parseTrueNumberOnly)),s}function e(b,s){if(s.ignoreNameSpace){const w=b.split(":"),m=b.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";w.length===2&&(b=m+w[1])}return b}function f(b,s,w){if(s&&typeof b=="string"){let m;return b.trim()===""||isNaN(b)?m=b==="true"?!0:b==="false"?!1:b:(b.indexOf("0x")!==-1?m=Number.parseInt(b,16):b.indexOf(".")!==-1?(m=Number.parseFloat(b),b=b.replace(/\.?0+$/,"")):m=Number.parseInt(b,10),w&&(m=String(m)===b?m:b)),m}else return u.isExist(b)?b:""}var v=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function y(b,s){if(!s.ignoreAttributes&&typeof b=="string"){b=b.replace(/\r?\n/g," ");const w=u.getAllMatches(b,v),m=w.length,c={};for(let l=0;l<m;l++){const g=e(w[l][1],s);g.length&&(w[l][4]!==void 0?(s.trimValues&&(w[l][4]=w[l][4].trim()),w[l][4]=s.attrValueProcessor(w[l][4],g),c[s.attributeNamePrefix+g]=f(w[l][4],s.parseAttributeValue,s.parseTrueNumberOnly)):s.allowBooleanAttributes&&(c[s.attributeNamePrefix+g]=!0))}if(!Object.keys(c).length)return;if(s.attrNodeName){const l={};return l[s.attrNodeName]=c,l}return c}}var A=function(b,s){b=b.replace(/\r\n?/g,`
|
|
14
|
+
`),s=r(s,i,n);const w=new d("!xml");let m=w,c="";for(let l=0;l<b.length;l++)if(b[l]==="<")if(b[l+1]==="/"){const g=p(b,">",l,"Closing Tag is not closed.");let C=b.substring(l+2,g).trim();if(s.ignoreNameSpace){const F=C.indexOf(":");F!==-1&&(C=C.substr(F+1))}m&&(m.val?m.val=u.getValue(m.val)+""+a(C,c,s):m.val=a(C,c,s)),s.stopNodes.length&&s.stopNodes.includes(m.tagname)&&(m.child=[],m.attrsMap==null&&(m.attrsMap={}),m.val=b.substr(m.startIndex+1,l-m.startIndex-1)),m=m.parent,c="",l=g}else if(b[l+1]==="?")l=p(b,"?>",l,"Pi Tag is not closed.");else if(b.substr(l+1,3)==="!--")l=p(b,"-->",l,"Comment is not closed.");else if(b.substr(l+1,2)==="!D"){const g=p(b,">",l,"DOCTYPE is not closed.");b.substring(l,g).indexOf("[")>=0?l=b.indexOf("]>",l)+1:l=g}else if(b.substr(l+1,2)==="!["){const g=p(b,"]]>",l,"CDATA is not closed.")-2,C=b.substring(l+9,g);if(c&&(m.val=u.getValue(m.val)+""+a(m.tagname,c,s),c=""),s.cdataTagName){const F=new d(s.cdataTagName,m,C);m.addChild(F),m.val=u.getValue(m.val)+s.cdataPositionChar,C&&(F.val=C)}else m.val=(m.val||"")+(C||"");l=g+2}else{const g=k(b,l+1);let C=g.data;const F=g.index,D=C.indexOf(" ");let q=C;if(D!==-1&&(q=C.substr(0,D).replace(/\s\s*$/,""),C=C.substr(D+1)),s.ignoreNameSpace){const L=q.indexOf(":");L!==-1&&(q=q.substr(L+1))}if(m&&c&&m.tagname!=="!xml"&&(m.val=u.getValue(m.val)+""+a(m.tagname,c,s)),C.length>0&&C.lastIndexOf("/")===C.length-1){q[q.length-1]==="/"?(q=q.substr(0,q.length-1),C=q):C=C.substr(0,C.length-1);const L=new d(q,m,"");q!==C&&(L.attrsMap=y(C,s)),m.addChild(L)}else{const L=new d(q,m);s.stopNodes.length&&s.stopNodes.includes(L.tagname)&&(L.startIndex=F),q!==C&&(L.attrsMap=y(C,s)),m.addChild(L),m=L}c="",l=F}else c+=b[l];return w};function k(b,s){let w,m="";for(let c=s;c<b.length;c++){let l=b[c];if(w)l===w&&(w="");else if(l==='"'||l==="'")w=l;else{if(l===">")return{data:m,index:c};l===" "&&(l=" ")}m+=l}}function p(b,s,w,m){const c=b.indexOf(s,w);if(c===-1)throw new Error(m);return c+s.length-1}o.getTraversalObj=A})),Un=ze((o=>{var u=Me(),r={allowBooleanAttributes:!1},d=["allowBooleanAttributes"];o.validate=function(c,l){l=u.buildOptions(l,r,d);const g=[];let C=!1,F=!1;c[0]==="\uFEFF"&&(c=c.substr(1));for(let D=0;D<c.length;D++)if(c[D]==="<")if(D++,c[D]==="?"){if(D=i(c,++D),D.err)return D}else if(c[D]==="!"){D=n(c,D);continue}else{let q=!1;c[D]==="/"&&(q=!0,D++);let L="";for(;D<c.length&&c[D]!==">"&&c[D]!==" "&&c[D]!==" "&&c[D]!==`
|
|
15
|
+
`&&c[D]!=="\r";D++)L+=c[D];if(L=L.trim(),L[L.length-1]==="/"&&(L=L.substring(0,L.length-1),D--),!s(L)){let P;return L.trim().length===0?P="There is an unnecessary space between tag name and backward slash '</ ..'.":P="Tag '"+L+"' is an invalid name.",p("InvalidTag",P,w(c,D))}const ne=f(c,D);if(ne===!1)return p("InvalidAttr","Attributes for '"+L+"' have open quote.",w(c,D));let re=ne.value;if(D=ne.index,re[re.length-1]==="/"){re=re.substring(0,re.length-1);const P=y(re,l);if(P===!0)C=!0;else return p(P.err.code,P.err.msg,w(c,D-re.length+P.err.line))}else if(q)if(ne.tagClosed){if(re.trim().length>0)return p("InvalidTag","Closing tag '"+L+"' can't have attributes or invalid starting.",w(c,D));{const P=g.pop();if(L!==P)return p("InvalidTag","Closing tag '"+P+"' is expected inplace of '"+L+"'.",w(c,D));g.length==0&&(F=!0)}}else return p("InvalidTag","Closing tag '"+L+"' doesn't have proper closing.",w(c,D));else{const P=y(re,l);if(P!==!0)return p(P.err.code,P.err.msg,w(c,D-re.length+P.err.line));if(F===!0)return p("InvalidXml","Multiple possible root nodes found.",w(c,D));g.push(L),C=!0}for(D++;D<c.length;D++)if(c[D]==="<")if(c[D+1]==="!"){D++,D=n(c,D);continue}else break;else if(c[D]==="&"){const P=k(c,D);if(P==-1)return p("InvalidChar","char '&' is not expected.",w(c,D));D=P}c[D]==="<"&&D--}else{if(c[D]===" "||c[D]===" "||c[D]===`
|
|
16
|
+
`||c[D]==="\r")continue;return p("InvalidChar","char '"+c[D]+"' is not expected.",w(c,D))}if(C){if(g.length>0)return p("InvalidXml","Invalid '"+JSON.stringify(g,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return p("InvalidXml","Start tag expected.",1);return!0};function i(c,l){for(var g=l;l<c.length;l++)if(c[l]=="?"||c[l]==" "){var C=c.substr(g,l-g);if(l>5&&C==="xml")return p("InvalidXml","XML declaration allowed only at the start of the document.",w(c,l));if(c[l]=="?"&&c[l+1]==">"){l++;break}else continue}return l}function n(c,l){if(c.length>l+5&&c[l+1]==="-"&&c[l+2]==="-"){for(l+=3;l<c.length;l++)if(c[l]==="-"&&c[l+1]==="-"&&c[l+2]===">"){l+=2;break}}else if(c.length>l+8&&c[l+1]==="D"&&c[l+2]==="O"&&c[l+3]==="C"&&c[l+4]==="T"&&c[l+5]==="Y"&&c[l+6]==="P"&&c[l+7]==="E"){let g=1;for(l+=8;l<c.length;l++)if(c[l]==="<")g++;else if(c[l]===">"&&(g--,g===0))break}else if(c.length>l+9&&c[l+1]==="["&&c[l+2]==="C"&&c[l+3]==="D"&&c[l+4]==="A"&&c[l+5]==="T"&&c[l+6]==="A"&&c[l+7]==="["){for(l+=8;l<c.length;l++)if(c[l]==="]"&&c[l+1]==="]"&&c[l+2]===">"){l+=2;break}}return l}var a='"',e="'";function f(c,l){let g="",C="",F=!1;for(;l<c.length;l++){if(c[l]===a||c[l]===e)if(C==="")C=c[l];else{if(C!==c[l])continue;C=""}else if(c[l]===">"&&C===""){F=!0;break}g+=c[l]}return C!==""?!1:{value:g,index:l,tagClosed:F}}var v=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function y(c,l){const g=u.getAllMatches(c,v),C={};for(let F=0;F<g.length;F++){if(g[F][1].length===0)return p("InvalidAttr","Attribute '"+g[F][2]+"' has no space in starting.",m(c,g[F][0]));if(g[F][3]===void 0&&!l.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+g[F][2]+"' is not allowed.",m(c,g[F][0]));const D=g[F][2];if(!b(D))return p("InvalidAttr","Attribute '"+D+"' is an invalid name.",m(c,g[F][0]));if(!C.hasOwnProperty(D))C[D]=1;else return p("InvalidAttr","Attribute '"+D+"' is repeated.",m(c,g[F][0]))}return!0}function A(c,l){let g=/\d/;for(c[l]==="x"&&(l++,g=/[\da-fA-F]/);l<c.length;l++){if(c[l]===";")return l;if(!c[l].match(g))break}return-1}function k(c,l){if(l++,c[l]===";")return-1;if(c[l]==="#")return l++,A(c,l);let g=0;for(;l<c.length;l++,g++)if(!(c[l].match(/\w/)&&g<20)){if(c[l]===";")break;return-1}return l}function p(c,l,g){return{err:{code:c,msg:l,line:g}}}function b(c){return u.isName(c)}function s(c){return u.isName(c)}function w(c,l){return c.substring(0,l).split(/\r?\n/).length}function m(c,l){return c.indexOf(l)+l.length}})),jn=ze((o=>{var u=function(k){return String.fromCharCode(k)},r={nilChar:u(176),missingChar:u(201),nilPremitive:u(175),missingPremitive:u(200),emptyChar:u(178),emptyValue:u(177),boundryChar:u(179),objStart:u(198),arrStart:u(204),arrayEnd:u(185)},d=[r.nilChar,r.nilPremitive,r.missingChar,r.missingPremitive,r.boundryChar,r.emptyChar,r.emptyValue,r.arrayEnd,r.objStart,r.arrStart],i=function(k,p,b){if(typeof p=="string")return k&&k[0]&&k[0].val!==void 0?n(k[0].val,p):n(k,p);{const s=f(k);if(s===!0){let w="";if(Array.isArray(p)){w+=r.arrStart;const m=p[0],c=k.length;if(typeof m=="string")for(let l=0;l<c;l++){const g=n(k[l].val,m);w=a(w,g)}else for(let l=0;l<c;l++){const g=i(k[l],m,b);w=a(w,g)}w+=r.arrayEnd}else{w+=r.objStart;const m=Object.keys(p);Array.isArray(k)&&(k=k[0]);for(let c in m){const l=m[c];let g;!b.ignoreAttributes&&k.attrsMap&&k.attrsMap[l]?g=i(k.attrsMap[l],p[l],b):l===b.textNodeName?g=i(k.val,p[l],b):g=i(k.child[l],p[l],b),w=a(w,g)}}return w}else return s}},n=function(k){switch(k){case void 0:return r.missingPremitive;case null:return r.nilPremitive;case"":return r.emptyValue;default:return k}},a=function(k,p){return!e(p[0])&&!e(k[k.length-1])&&(k+=r.boundryChar),k+p},e=function(k){return d.indexOf(k)!==-1};function f(k){return k===void 0?r.missingChar:k===null?r.nilChar:k.child&&Object.keys(k.child).length===0&&(!k.attrsMap||Object.keys(k.attrsMap).length===0)?r.emptyChar:!0}var v=ht(),y=Me().buildOptions,A=function(k,p,b){return b=y(b,v.defaultOptions,v.props),i(k,p,b)};o.convert2nimn=A})),Wn=ze((o=>{var u=Me(),r=Me().buildOptions,d=ht(),i=function(e,f){return f=r(f,d.defaultOptions,d.props),f.indentBy=f.indentBy||"",n(e,f,0)},n=function(e,f,v){let y="{";const A=Object.keys(e.child);for(let b=0;b<A.length;b++){var k=A[b];if(e.child[k]&&e.child[k].length>1){y+='"'+k+'" : [ ';for(var p in e.child[k])y+=n(e.child[k][p],f)+" , ";y=y.substr(0,y.length-1)+" ] "}else y+='"'+k+'" : '+n(e.child[k][0],f)+" ,"}return u.merge(y,e.attrsMap),u.isEmptyObject(y)?u.isExist(e.val)?e.val:"":(u.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===f.cdataPositionChar)||(y+='"'+f.textNodeName+'" : '+a(e.val))),y[y.length-1]===","&&(y=y.substr(0,y.length-2)),y+"}")};function a(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}o.convertToJsonString=i})),Hn=ze(((o,u)=>{var r=Me().buildOptions,d={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(s){return s},attrValueProcessor:function(s){return s}},i=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function n(s){this.options=r(s,d,i),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=p),this.options.cdataTagName?this.isCDATA=b:this.isCDATA=function(){return!1},this.replaceCDATAstr=a,this.replaceCDATAarr=e,this.options.format?(this.indentate=k,this.tagEndChar=`>
|
|
17
17
|
`,this.newLine=`
|
|
18
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=A,this.buildObjNode=v):(this.buildTextNode=y,this.buildObjNode=u),this.buildTextValNode=y,this.buildObjectNode=u}i.prototype.parse=function(o){return this.j2x(o,0).val},i.prototype.j2x=function(o,w){let m="",d="";const s=Object.keys(o),g=s.length;for(let C=0;C<g;C++){const F=s[C];if(!(typeof o[F]>"u"))if(o[F]===null)d+=this.indentate(w)+"<"+F+"/"+this.tagEndChar;else if(o[F]instanceof Date)d+=this.buildTextNode(o[F],F,"",w);else if(typeof o[F]!="object"){const D=this.isAttribute(F);D?m+=" "+D+'="'+this.options.attrValueProcessor(""+o[F])+'"':this.isCDATA(F)?o[this.options.textNodeName]?d+=this.replaceCDATAstr(o[this.options.textNodeName],o[F]):d+=this.replaceCDATAstr("",o[F]):F===this.options.textNodeName?o[this.options.cdataTagName]||(d+=this.options.tagValueProcessor(""+o[F])):d+=this.buildTextNode(o[F],F,"",w)}else if(Array.isArray(o[F]))if(this.isCDATA(F))d+=this.indentate(w),o[this.options.textNodeName]?d+=this.replaceCDATAarr(o[this.options.textNodeName],o[F]):d+=this.replaceCDATAarr("",o[F]);else{const D=o[F].length;for(let q=0;q<D;q++){const L=o[F][q];if(!(typeof L>"u"))if(L===null)d+=this.indentate(w)+"<"+F+"/"+this.tagEndChar;else if(typeof L=="object"){const ne=this.j2x(L,w+1);d+=this.buildObjNode(ne.val,F,ne.attrStr,w)}else d+=this.buildTextNode(L,F,"",w)}}else if(this.options.attrNodeName&&F===this.options.attrNodeName){const D=Object.keys(o[F]),q=D.length;for(let L=0;L<q;L++)m+=" "+D[L]+'="'+this.options.attrValueProcessor(""+o[F][D[L]])+'"'}else{const D=this.j2x(o[F],w+1);d+=this.buildObjNode(D.val,F,D.attrStr,w)}}return{attrStr:m,val:d}};function a(o,w){return o=this.options.tagValueProcessor(""+o),this.options.cdataPositionChar===""||o===""?o+"<![CDATA["+w+"]]"+this.tagEndChar:o.replace(this.options.cdataPositionChar,"<![CDATA["+w+"]]"+this.tagEndChar)}function e(o,w){if(o=this.options.tagValueProcessor(""+o),this.options.cdataPositionChar===""||o==="")return o+"<![CDATA["+w.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let m in w)o=o.replace(this.options.cdataPositionChar,"<![CDATA["+w[m]+"]]>");return o+this.newLine}function u(o,w,m,d){return m&&!o.includes("<")?this.indentate(d)+"<"+w+m+">"+o+"</"+w+this.tagEndChar:this.indentate(d)+"<"+w+m+this.tagEndChar+o+this.indentate(d)+"</"+w+this.tagEndChar}function v(o,w,m,d){return o!==""?this.buildObjectNode(o,w,m,d):this.indentate(d)+"<"+w+m+"/"+this.tagEndChar}function y(o,w,m,d){return this.indentate(d)+"<"+w+m+">"+this.options.tagValueProcessor(o)+"</"+w+this.tagEndChar}function A(o,w,m,d){return o!==""?this.buildTextValNode(o,w,m,d):this.indentate(d)+"<"+w+m+"/"+this.tagEndChar}function k(o){return this.options.indentBy.repeat(o)}function p(o){return o.startsWith(this.options.attributeNamePrefix)?o.substr(this.attrPrefixLen):!1}function b(o){return o===this.options.cdataTagName}f.exports=i})),Rn=Oe((l=>{var f=In(),r=ut(),c=ut(),n=Ve().buildOptions,i=On();l.parse=function(a,e,u){if(u){u===!0&&(u={});const y=i.validate(a,u);if(y!==!0)throw Error(y.err.msg)}e=n(e,c.defaultOptions,c.props);const v=r.getTraversalObj(a,e);return f.convertToJson(v,e)},l.convertTonimn=zn().convert2nimn,l.getTraversalObj=r.getTraversalObj,l.convertToJson=f.convertToJson,l.convertToJsonString=Ln().convertToJsonString,l.validate=i.validate,l.j2xParser=Nn(),l.parseToNimn=function(a,e,u){return l.convertTonimn(l.getTraversalObj(a,u),e,u)}})),Vn=fe((()=>{globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0)}));function Ue(l){ci>=qt.INFOS&&console.log(`Info: ${l}`)}function Mn(l){throw new Error(l)}function di(l,f,r){return Object.defineProperty(l,f,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var qt,ci,ui,Un,Gt=fe((()=>{Vn(),qt={ERRORS:0,WARNINGS:1,INFOS:5},ci=qt.WARNINGS,ui=(function(){function f(r){this.constructor===f&&Mn("Cannot initialize BaseException."),this.message=r,this.name=this.constructor.name}return f.prototype=new Error,f.constructor=f,f})(),Un=(function(){const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(c,n,i=!1){if(!i&&URL.createObjectURL){const e=new Blob([c],{type:n});return URL.createObjectURL(e)}let a=`data:${n};base64,`;for(let e=0,u=c.length;e<u;e+=3){const v=c[e]&255,y=c[e+1]&255,A=c[e+2]&255,k=v>>2,p=(v&3)<<4|y>>4,b=e+1<u?(y&15)<<2|A>>6:64,o=e+2<u?A&63:64;a+=f[k]+f[p]+f[b]+f[o]}return a}})()}));function Xt(l){return l<=0?0:Math.ceil(Math.log2(l))}function je(l,f){return l[f]<<24>>24}function qe(l,f){return l[f]<<8|l[f+1]}function _e(l,f){return(l[f]<<24|l[f+1]<<16|l[f+2]<<8|l[f+3])>>>0}var jn=fe((()=>{Gt()})),fi,hi,Wn=fe((()=>{fi=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],hi=class{constructor(l,f,r){this.data=l,this.bp=f,this.dataEnd=r,this.chigh=l[f],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const l=this.data;let f=this.bp;l[f]===255?l[f+1]>143?(this.clow+=65280,this.ct=8):(f++,this.clow+=l[f]<<9,this.ct=7,this.bp=f):(f++,this.clow+=f<this.dataEnd?l[f]<<8:65280,this.ct=8,this.bp=f),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(l,f){let r=l[f]>>1,c=l[f]&1;const n=fi[r],i=n.qe;let a,e=this.a-i;if(this.chigh<i)e<i?(e=i,a=c,r=n.nmps):(e=i,a=1^c,n.switchFlag===1&&(c=a),r=n.nlps);else{if(this.chigh-=i,(e&32768)!==0)return this.a=e,c;e<i?(a=1^c,n.switchFlag===1&&(c=a),r=n.nlps):(a=c,r=n.nmps)}do this.ct===0&&this.byteIn(),e<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while((e&32768)===0);return this.a=e,l[f]=r<<1|c,a}}})),pi,Hn=fe((()=>{Gt(),pi=(function(){const k=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],p=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],b=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],o=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],w=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],m=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function d(s,g={}){if(!s||typeof s.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=s,this.eof=!1,this.encoding=g.K||0,this.eoline=g.EndOfLine||!1,this.byteAlign=g.EncodedByteAlign||!1,this.columns=g.Columns||1728,this.rows=g.Rows||0;let C=g.EndOfBlock;C==null&&(C=!0),this.eoblock=C,this.black=g.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let F;for(;(F=this._lookBits(12))===0;)this._eatBits(1);F===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return d.prototype={readNextChar(){if(this.eof)return-1;const s=this.refLine,g=this.codingLine,C=this.columns;let F,D,q,L;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let re,P,U;if(this.nextLine2D){for(L=0;g[L]<C;++L)s[L]=g[L];for(s[L++]=C,s[L]=C,g[0]=0,this.codingPos=0,F=0,D=0;g[this.codingPos]<C;)switch(re=this._getTwoDimCode(),re){case 0:this._addPixels(s[F+1],D),s[F+1]<C&&(F+=2);break;case 1:if(re=P=0,D){do re+=U=this._getBlackCode();while(U>=64);do P+=U=this._getWhiteCode();while(U>=64)}else{do re+=U=this._getWhiteCode();while(U>=64);do P+=U=this._getBlackCode();while(U>=64)}for(this._addPixels(g[this.codingPos]+re,D),g[this.codingPos]<C&&this._addPixels(g[this.codingPos]+P,D^1);s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 7:if(this._addPixels(s[F]+3,D),D^=1,g[this.codingPos]<C)for(++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 5:if(this._addPixels(s[F]+2,D),D^=1,g[this.codingPos]<C)for(++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 3:if(this._addPixels(s[F]+1,D),D^=1,g[this.codingPos]<C)for(++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 2:if(this._addPixels(s[F],D),D^=1,g[this.codingPos]<C)for(++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 8:if(this._addPixelsNeg(s[F]-3,D),D^=1,g[this.codingPos]<C)for(F>0?--F:++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 6:if(this._addPixelsNeg(s[F]-2,D),D^=1,g[this.codingPos]<C)for(F>0?--F:++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case 4:if(this._addPixelsNeg(s[F]-1,D),D^=1,g[this.codingPos]<C)for(F>0?--F:++F;s[F]<=g[this.codingPos]&&s[F]<C;)F+=2;break;case-1:this._addPixels(C,0),this.eof=!0;break;default:Ue("bad 2d code"),this._addPixels(C,0),this.err=!0}}else for(g[0]=0,this.codingPos=0,D=0;g[this.codingPos]<C;){if(re=0,D)do re+=U=this._getBlackCode();while(U>=64);else do re+=U=this._getWhiteCode();while(U>=64);this._addPixels(g[this.codingPos]+re,D),D^=1}let h=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(re=this._lookBits(12),this.eoline)for(;re!==-1&&re!==1;)this._eatBits(1),re=this._lookBits(12);else for(;re===0;)this._eatBits(1),re=this._lookBits(12);re===1?(this._eatBits(12),h=!0):re===-1&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&h&&this.byteAlign){if(re=this._lookBits(12),re===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(L=0;L<4;++L)re=this._lookBits(12),re!==1&&Ue("bad rtc code: "+re),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(re=this._lookBits(13),re===-1)return this.eof=!0,-1;if(re>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(re&1))}g[0]>0?this.outputBits=g[this.codingPos=0]:this.outputBits=g[this.codingPos=1],this.row++}let ne;if(this.outputBits>=8)ne=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&g[this.codingPos]<C&&(this.codingPos++,this.outputBits=g[this.codingPos]-g[this.codingPos-1]);else{q=8,ne=0;do this.outputBits>q?(ne<<=q,this.codingPos&1||(ne|=255>>8-q),this.outputBits-=q,q=0):(ne<<=this.outputBits,this.codingPos&1||(ne|=255>>8-this.outputBits),q-=this.outputBits,this.outputBits=0,g[this.codingPos]<C?(this.codingPos++,this.outputBits=g[this.codingPos]-g[this.codingPos-1]):q>0&&(ne<<=q,q=0));while(q)}return this.black&&(ne^=255),ne},_addPixels(s,g){const C=this.codingLine;let F=this.codingPos;s>C[F]&&(s>this.columns&&(Ue("row is wrong length"),this.err=!0,s=this.columns),F&1^g&&++F,C[F]=s),this.codingPos=F},_addPixelsNeg(s,g){const C=this.codingLine;let F=this.codingPos;if(s>C[F])s>this.columns&&(Ue("row is wrong length"),this.err=!0,s=this.columns),F&1^g&&++F,C[F]=s;else if(s<C[F]){for(s<0&&(Ue("invalid code"),this.err=!0,s=0);F>0&&s<C[F-1];)--F;C[F]=s}this.codingPos=F},_findTableCode(s,g,C,F){const D=F||0;for(let q=s;q<=g;++q){let L=this._lookBits(q);if(L===-1)return[!0,1,!1];if(q<g&&(L<<=g-q),!D||L>=D){const ne=C[L-D];if(ne[0]===q)return this._eatBits(q),[!0,ne[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let s=0,g;if(this.eoblock){if(s=this._lookBits(7),g=k[s],g&&g[0]>0)return this._eatBits(g[0]),g[1]}else{const C=this._findTableCode(1,7,k);if(C[0]&&C[2])return C[1]}return Ue("Bad two dim code"),-1},_getWhiteCode(){let s=0,g;if(this.eoblock){if(s=this._lookBits(12),s===-1)return 1;if(s>>5===0?g=p[s]:g=b[s>>3],g[0]>0)return this._eatBits(g[0]),g[1]}else{let C=this._findTableCode(1,9,b);if(C[0]||(C=this._findTableCode(11,12,p),C[0]))return C[1]}return Ue("bad white code"),this._eatBits(1),1},_getBlackCode(){let s,g;if(this.eoblock){if(s=this._lookBits(13),s===-1)return 1;if(s>>7===0?g=o[s]:s>>9===0&&s>>7!==0?g=w[(s>>1)-64]:g=m[s>>7],g[0]>0)return this._eatBits(g[0]),g[1]}else{let C=this._findTableCode(2,6,m);if(C[0]||(C=this._findTableCode(7,12,w,64),C[0])||(C=this._findTableCode(10,13,o),C[0]))return C[1]}return Ue("bad black code"),this._eatBits(1),1},_lookBits(s){let g;for(;this.inputBits<s;){if((g=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<s-this.inputBits&65535>>16-s;this.inputBuf=this.inputBuf<<8|g,this.inputBits+=8}return this.inputBuf>>this.inputBits-s&65535>>16-s},_eatBits(s){(this.inputBits-=s)<0&&(this.inputBits=0)}},d})()})),we,mi,Zn=fe((()=>{Gt(),jn(),Wn(),Hn(),we=class extends ui{constructor(l){super(`JBIG2 error: ${l}`)}},mi=(function(){function f(){}f.prototype={getContexts(S){return S in this?this[S]:this[S]=new Int8Array(65536)}};function r(S,T,E){this.data=S,this.start=T,this.end=E}r.prototype={get decoder(){var S=new hi(this.data,this.start,this.end);return di(this,"decoder",S)},get contextCache(){var S=new f;return di(this,"contextCache",S)}};function c(S,T,E){var R=S.getContexts(T),N=1;function W(ee){for(var Y=0,Q=0;Q<ee;Q++){var t=E.readBit(R,N);N=N<256?N<<1|t:(N<<1|t)&511|256,Y=Y<<1|t}return Y>>>0}var H=W(1),K=W(1)?W(1)?W(1)?W(1)?W(1)?W(32)+4436:W(12)+340:W(8)+84:W(6)+20:W(4)+4:W(2);return H===0?K:K>0?-K:null}function n(S,T,E){for(var R=S.getContexts("IAID"),N=1,W=0;W<E;W++){var H=T.readBit(R,N);N=N<<1|H}return E<31?N&(1<<E)-1:N&2147483647}var i=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],a=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],e=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],u=[39717,1941,229,405],v=[32,8];function y(S,T,E){var R=E.decoder,N=E.contextCache.getContexts("GB"),W,H,K,ee,Y,Q,t,z=[],I=31735;for(H=0;H<T;H++)for(Y=z[H]=new Uint8Array(S),Q=H<1?Y:z[H-1],t=H<2?Y:z[H-2],W=t[0]<<13|t[1]<<12|t[2]<<11|Q[0]<<7|Q[1]<<6|Q[2]<<5|Q[3]<<4,K=0;K<S;K++)Y[K]=ee=R.readBit(N,W),W=(W&I)<<1|(K+3<S?t[K+3]<<11:0)|(K+4<S?Q[K+4]<<4:0)|ee;return z}function A(S,T,E,R,N,W,H,K){if(S)return Z(new oe(K.data,K.start,K.end),T,E,!1);if(R===0&&!W&&!N&&H.length===4&&H[0].x===3&&H[0].y===-1&&H[1].x===-3&&H[1].y===-1&&H[2].x===2&&H[2].y===-2&&H[3].x===-2&&H[3].y===-2)return y(T,E,K);var ee=!!W,Y=a[R].concat(H);Y.sort(function(ye,Ce){return ye.y-Ce.y||ye.x-Ce.x});var Q=Y.length,t=new Int8Array(Q),z=new Int8Array(Q),I=[],x=0,_=0,B=0,M=0,V,O;for(O=0;O<Q;O++)t[O]=Y[O].x,z[O]=Y[O].y,_=Math.min(_,Y[O].x),B=Math.max(B,Y[O].x),M=Math.min(M,Y[O].y),O<Q-1&&Y[O].y===Y[O+1].y&&Y[O].x===Y[O+1].x-1?x|=1<<Q-1-O:I.push(O);var G=I.length,te=new Int8Array(G),X=new Int8Array(G),ae=new Uint16Array(G);for(V=0;V<G;V++)O=I[V],te[V]=Y[O].x,X[V]=Y[O].y,ae[V]=1<<Q-1-O;for(var de=-_,se=-M,xe=T-B,Fe=u[R],pe=new Uint8Array(T),he=[],ce=K.decoder,ke=K.contextCache.getContexts("GB"),De=0,me,ve,ge,Se=0,Ee,Pe,Ae=0;Ae<E;Ae++){if(N){var Te=ce.readBit(ke,Fe);if(De^=Te,De){he.push(pe);continue}}for(pe=new Uint8Array(pe),he.push(pe),me=0;me<T;me++){if(ee&&W[Ae][me]){pe[me]=0;continue}if(me>=de&&me<xe&&Ae>=se)for(Se=Se<<1&x,O=0;O<G;O++)ve=Ae+X[O],ge=me+te[O],Ee=he[ve][ge],Ee&&(Ee=ae[O],Se|=Ee);else for(Se=0,Pe=Q-1,O=0;O<Q;O++,Pe--)ge=me+t[O],ge>=0&&ge<T&&(ve=Ae+z[O],ve>=0&&(Ee=he[ve][ge],Ee&&(Se|=Ee<<Pe)));var Be=ce.readBit(ke,Se);pe[me]=Be}}return he}function k(S,T,E,R,N,W,H,K,ee){var Y=e[E].coding;E===0&&(Y=Y.concat([K[0]]));var Q=Y.length,t=new Int32Array(Q),z=new Int32Array(Q),I;for(I=0;I<Q;I++)t[I]=Y[I].x,z[I]=Y[I].y;var x=e[E].reference;E===0&&(x=x.concat([K[1]]));var _=x.length,B=new Int32Array(_),M=new Int32Array(_);for(I=0;I<_;I++)B[I]=x[I].x,M[I]=x[I].y;for(var V=R[0].length,O=R.length,G=v[E],te=[],X=ee.decoder,ae=ee.contextCache.getContexts("GR"),de=0,se=0;se<T;se++){if(H){var xe=X.readBit(ae,G);if(de^=xe,de)throw new we("prediction is not supported")}var Fe=new Uint8Array(S);te.push(Fe);for(var pe=0;pe<S;pe++){var he,ce,ke=0;for(I=0;I<Q;I++)he=se+z[I],ce=pe+t[I],he<0||ce<0||ce>=S?ke<<=1:ke=ke<<1|te[he][ce];for(I=0;I<_;I++)he=se+M[I]-W,ce=pe+B[I]-N,he<0||he>=O||ce<0||ce>=V?ke<<=1:ke=ke<<1|R[he][ce];Fe[pe]=X.readBit(ae,ke)}}return te}function p(S,T,E,R,N,W,H,K,ee,Y,Q,t){if(S&&T)throw new we("symbol refinement with Huffman is not supported");var z=[],I=0,x=Xt(E.length+R),_=Q.decoder,B=Q.contextCache;let M,V;for(S&&(M=$(1),V=[],x=Math.max(x,1));z.length<R;){var O=S?W.tableDeltaHeight.decode(t):c(B,"IADH",_);I+=O;let ge=0,Se=0;const Ee=S?V.length:0;for(;;){var G=S?W.tableDeltaWidth.decode(t):c(B,"IADW",_);if(G===null)break;ge+=G,Se+=ge;var te;if(T){var X=c(B,"IAAI",_);if(X>1)te=b(S,T,ge,I,0,X,1,E.concat(z),x,0,0,1,0,W,ee,Y,Q,0,t);else{var ae=n(B,_,x),de=c(B,"IARDX",_),se=c(B,"IARDY",_),xe=ae<E.length?E[ae]:z[ae-E.length];te=k(ge,I,ee,xe,de,se,!1,Y,Q)}z.push(te)}else S?V.push(ge):(te=A(!1,ge,I,H,!1,null,K,Q),z.push(te))}if(S&&!T){const Pe=W.tableBitmapSize.decode(t);t.byteAlign();let Ae;if(Pe===0)Ae=le(t,Se,I);else{const Be=t.end,ye=t.position+Pe;t.end=ye,Ae=Z(t,Se,I,!1),t.end=Be,t.position=ye}const Te=V.length;if(Ee===Te-1)z.push(Ae);else{let Be,ye,Ce=0,Ne,tt,Ye;for(Be=Ee;Be<Te;Be++){for(tt=V[Be],Ne=Ce+tt,Ye=[],ye=0;ye<I;ye++)Ye.push(Ae[ye].subarray(Ce,Ne));z.push(Ye),Ce=Ne}}}}for(var Fe=[],pe=[],he=!1,ce=E.length+R;pe.length<ce;){for(var ke=S?M.decode(t):c(B,"IAEX",_);ke--;)pe.push(he);he=!he}for(var De=0,me=E.length;De<me;De++)pe[De]&&Fe.push(E[De]);for(var ve=0;ve<R;De++,ve++)pe[De]&&Fe.push(z[ve]);return Fe}function b(S,T,E,R,N,W,H,K,ee,Y,Q,t,z,I,x,_,B,M,V){if(S&&T)throw new we("refinement with Huffman is not supported");var O=[],G,te;for(G=0;G<R;G++){if(te=new Uint8Array(E),N)for(var X=0;X<E;X++)te[X]=N;O.push(te)}var ae=B.decoder,de=B.contextCache,se=S?-I.tableDeltaT.decode(V):-c(de,"IADT",ae),xe=0;for(G=0;G<W;){var Fe=S?I.tableDeltaT.decode(V):c(de,"IADT",ae);se+=Fe;var pe=S?I.tableFirstS.decode(V):c(de,"IAFS",ae);xe+=pe;var he=xe;do{let Ki=0;H>1&&(Ki=S?V.readBits(M):c(de,"IAIT",ae));var ce=H*se+Ki,ke=S?I.symbolIDTable.decode(V):n(de,ae,ee),De=T&&(S?V.readBit():c(de,"IARI",ae)),me=K[ke],ve=me[0].length,ge=me.length;if(De){var Se=c(de,"IARDW",ae),Ee=c(de,"IARDH",ae),Pe=c(de,"IARDX",ae),Ae=c(de,"IARDY",ae);ve+=Se,ge+=Ee,me=k(ve,ge,x,me,(Se>>1)+Pe,(Ee>>1)+Ae,!1,_,B)}var Te=ce-(t&1?0:ge-1),Be=he-(t&2?ve-1:0),ye,Ce,Ne;if(Y){for(ye=0;ye<ge;ye++)if(te=O[Be+ye],!!te){Ne=me[ye];var tt=Math.min(E-Te,ve);switch(z){case 0:for(Ce=0;Ce<tt;Ce++)te[Te+Ce]|=Ne[Ce];break;case 2:for(Ce=0;Ce<tt;Ce++)te[Te+Ce]^=Ne[Ce];break;default:throw new we(`operator ${z} is not supported`)}}he+=ge-1}else{for(Ce=0;Ce<ge;Ce++)if(te=O[Te+Ce],!!te)switch(Ne=me[Ce],z){case 0:for(ye=0;ye<ve;ye++)te[Be+ye]|=Ne[ye];break;case 2:for(ye=0;ye<ve;ye++)te[Be+ye]^=Ne[ye];break;default:throw new we(`operator ${z} is not supported`)}he+=ve-1}G++;var Ye=S?I.tableDeltaS.decode(V):c(de,"IADS",ae);if(Ye===null)break;he+=Ye+Q}while(!0)}return O}function o(S,T,E,R,N,W){const H=[];S||(H.push({x:-T,y:0}),N===0&&(H.push({x:-3,y:-1}),H.push({x:2,y:-2}),H.push({x:-2,y:-2})));const K=A(S,(R+1)*T,E,N,!1,null,H,W),ee=[];for(let Y=0;Y<=R;Y++){const Q=[],t=T*Y,z=t+T;for(let I=0;I<E;I++)Q.push(K[I].subarray(t,z));ee.push(Q)}return ee}function w(S,T,E,R,N,W,H,K,ee,Y,Q,t,z,I,x){if(H)throw new we("skip is not supported");if(K!==0)throw new we("operator "+K+" is not supported in halftone region");const B=[];let M,V,O;for(M=0;M<N;M++){if(O=new Uint8Array(R),W)for(V=0;V<R;V++)O[V]=W;B.push(O)}const G=T.length,te=T[0],X=te[0].length,ae=te.length,de=Xt(G),se=[];S||(se.push({x:E<=1?3:2,y:-1}),E===0&&(se.push({x:-3,y:-1}),se.push({x:2,y:-2}),se.push({x:-2,y:-2})));const xe=[];let Fe,pe;for(S&&(Fe=new oe(x.data,x.start,x.end)),M=de-1;M>=0;M--)S?pe=Z(Fe,ee,Y,!0):pe=A(!1,ee,Y,E,!1,null,se,x),xe[M]=pe;let he,ce,ke,De,me,ve,ge,Se,Ee;for(he=0;he<Y;he++)for(ce=0;ce<ee;ce++){for(ke=0,De=0,V=de-1;V>=0;V--)ke=xe[V][he][ce]^ke,De|=ke<<V;if(me=T[De],ve=Q+he*I+ce*z>>8,ge=t+he*z-ce*I>>8,ve>=0&&ve+X<=R&&ge>=0&&ge+ae<=N)for(M=0;M<ae;M++)for(Ee=B[ge+M],Se=me[M],V=0;V<X;V++)Ee[ve+V]|=Se[V];else{let Pe,Ae;for(M=0;M<ae;M++)if(Ae=ge+M,!(Ae<0||Ae>=N))for(Ee=B[Ae],Se=me[M],V=0;V<X;V++)Pe=ve+V,Pe>=0&&Pe<R&&(Ee[Pe]|=Se[V])}}return B}function m(S,T){var E={};E.number=_e(S,T);var R=S[T+4],N=R&63;if(!i[N])throw new we("invalid segment type: "+N);E.type=N,E.typeName=i[N],E.deferredNonRetain=!!(R&128);var W=!!(R&64),H=S[T+5],K=H>>5&7,ee=[H&31],Y=T+6;if(H===7){K=_e(S,Y-1)&536870911,Y+=3;var Q=K+7>>3;for(ee[0]=S[Y++];--Q>0;)ee.push(S[Y++])}else if(H===5||H===6)throw new we("invalid referred-to flags");E.retainBits=ee;let t=4;E.number<=256?t=1:E.number<=65536&&(t=2);var z=[],I,x;for(I=0;I<K;I++){let G;t===1?G=S[Y]:t===2?G=qe(S,Y):G=_e(S,Y),z.push(G),Y+=t}if(E.referredTo=z,W?(E.pageAssociation=_e(S,Y),Y+=4):E.pageAssociation=S[Y++],E.length=_e(S,Y),Y+=4,E.length===4294967295)if(N===38){var _=s(S,Y),B=!!(S[Y+g]&1),M=6,V=new Uint8Array(M);for(B||(V[0]=255,V[1]=172),V[2]=_.height>>>24&255,V[3]=_.height>>16&255,V[4]=_.height>>8&255,V[5]=_.height&255,I=Y,x=S.length;I<x;I++){for(var O=0;O<M&&V[O]===S[I+O];)O++;if(O===M){E.length=I+M;break}}if(E.length===4294967295)throw new we("segment end was not found")}else throw new we("invalid unknown segment length");return E.headerEnd=Y,E}function d(S,T,E,R){for(var N=[],W=E;W<R;){var H=m(T,W);W=H.headerEnd;var K={header:H,data:T};if(S.randomAccess||(K.start=W,W+=H.length,K.end=W),N.push(K),H.type===51)break}if(S.randomAccess)for(var ee=0,Y=N.length;ee<Y;ee++)N[ee].start=W,W+=N[ee].header.length,N[ee].end=W;return N}function s(S,T){return{width:_e(S,T),height:_e(S,T+4),x:_e(S,T+8),y:_e(S,T+12),combinationOperator:S[T+16]&7}}var g=17;function C(S,T){var E=S.header,R=S.data,N=S.start,W=S.end,H,K,ee,Y;switch(E.type){case 0:var Q={},t=qe(R,N);if(Q.huffman=!!(t&1),Q.refinement=!!(t&2),Q.huffmanDHSelector=t>>2&3,Q.huffmanDWSelector=t>>4&3,Q.bitmapSizeSelector=t>>6&1,Q.aggregationInstancesSelector=t>>7&1,Q.bitmapCodingContextUsed=!!(t&256),Q.bitmapCodingContextRetained=!!(t&512),Q.template=t>>10&3,Q.refinementTemplate=t>>12&1,N+=2,!Q.huffman){for(Y=Q.template===0?4:1,K=[],ee=0;ee<Y;ee++)K.push({x:je(R,N),y:je(R,N+1)}),N+=2;Q.at=K}if(Q.refinement&&!Q.refinementTemplate){for(K=[],ee=0;ee<2;ee++)K.push({x:je(R,N),y:je(R,N+1)}),N+=2;Q.refinementAt=K}Q.numberOfExportedSymbols=_e(R,N),N+=4,Q.numberOfNewSymbols=_e(R,N),N+=4,H=[Q,E.number,E.referredTo,R,N,W];break;case 6:case 7:var z={};z.info=s(R,N),N+=g;var I=qe(R,N);if(N+=2,z.huffman=!!(I&1),z.refinement=!!(I&2),z.logStripSize=I>>2&3,z.stripSize=1<<z.logStripSize,z.referenceCorner=I>>4&3,z.transposed=!!(I&64),z.combinationOperator=I>>7&3,z.defaultPixelValue=I>>9&1,z.dsOffset=I<<17>>27,z.refinementTemplate=I>>15&1,z.huffman){var x=qe(R,N);N+=2,z.huffmanFS=x&3,z.huffmanDS=x>>2&3,z.huffmanDT=x>>4&3,z.huffmanRefinementDW=x>>6&3,z.huffmanRefinementDH=x>>8&3,z.huffmanRefinementDX=x>>10&3,z.huffmanRefinementDY=x>>12&3,z.huffmanRefinementSizeSelector=!!(x&16384)}if(z.refinement&&!z.refinementTemplate){for(K=[],ee=0;ee<2;ee++)K.push({x:je(R,N),y:je(R,N+1)}),N+=2;z.refinementAt=K}z.numberOfSymbolInstances=_e(R,N),N+=4,H=[z,E.referredTo,R,N,W];break;case 16:const G={},te=R[N++];G.mmr=!!(te&1),G.template=te>>1&3,G.patternWidth=R[N++],G.patternHeight=R[N++],G.maxPatternIndex=_e(R,N),N+=4,H=[G,E.number,R,N,W];break;case 22:case 23:const X={};X.info=s(R,N),N+=g;const ae=R[N++];X.mmr=!!(ae&1),X.template=ae>>1&3,X.enableSkip=!!(ae&8),X.combinationOperator=ae>>4&7,X.defaultPixelValue=ae>>7&1,X.gridWidth=_e(R,N),N+=4,X.gridHeight=_e(R,N),N+=4,X.gridOffsetX=_e(R,N)&4294967295,N+=4,X.gridOffsetY=_e(R,N)&4294967295,N+=4,X.gridVectorX=qe(R,N),N+=2,X.gridVectorY=qe(R,N),N+=2,H=[X,E.referredTo,R,N,W];break;case 38:case 39:var _={};_.info=s(R,N),N+=g;var B=R[N++];if(_.mmr=!!(B&1),_.template=B>>1&3,_.prediction=!!(B&8),!_.mmr){for(Y=_.template===0?4:1,K=[],ee=0;ee<Y;ee++)K.push({x:je(R,N),y:je(R,N+1)}),N+=2;_.at=K}H=[_,R,N,W];break;case 48:var M={width:_e(R,N),height:_e(R,N+4),resolutionX:_e(R,N+8),resolutionY:_e(R,N+12)};M.height===4294967295&&delete M.height;var V=R[N+16];qe(R,N+17),M.lossless=!!(V&1),M.refinement=!!(V&2),M.defaultPixelValue=V>>2&1,M.combinationOperator=V>>3&3,M.requiresBuffer=!!(V&32),M.combinationOperatorOverride=!!(V&64),H=[M];break;case 49:break;case 50:break;case 51:break;case 53:H=[E.number,R,N,W];break;case 62:break;default:throw new we(`segment type ${E.typeName}(${E.type}) is not implemented`)}var O="on"+E.typeName;O in T&&T[O].apply(T,H)}function F(S,T){for(var E=0,R=S.length;E<R;E++)C(S[E],T)}function D(S){for(var T=new L,E=0,R=S.length;E<R;E++){var N=S[E];F(d({},N.data,N.start,N.end),T)}return T.buffer}function q(S){const T=S.length;let E=0;if(S[E]!==151||S[E+1]!==74||S[E+2]!==66||S[E+3]!==50||S[E+4]!==13||S[E+5]!==10||S[E+6]!==26||S[E+7]!==10)throw new we("parseJbig2 - invalid header.");const R=Object.create(null);E+=8;const N=S[E++];R.randomAccess=!(N&1),N&2||(R.numberOfPages=_e(S,E),E+=4);const W=d(R,S,E,T),H=new L;F(W,H);const{width:K,height:ee}=H.currentPageInfo,Y=H.buffer,Q=new Uint8ClampedArray(K*ee);let t=0,z=0;for(let I=0;I<ee;I++){let x=0,_;for(let B=0;B<K;B++)x||(x=128,_=Y[z++]),Q[t++]=_&x?0:255,x>>=1}return{imgData:Q,width:K,height:ee}}function L(){}L.prototype={onPageInformation:function(T){this.currentPageInfo=T;var E=T.width+7>>3,R=new Uint8ClampedArray(E*T.height);if(T.defaultPixelValue)for(var N=0,W=R.length;N<W;N++)R[N]=255;this.buffer=R},drawBitmap:function(T,E){var R=this.currentPageInfo,N=T.width,W=T.height,H=R.width+7>>3,K=R.combinationOperatorOverride?T.combinationOperator:R.combinationOperator,ee=this.buffer,Y=128>>(T.x&7),Q=T.y*H+(T.x>>3),t,z,I,x;switch(K){case 0:for(t=0;t<W;t++){for(I=Y,x=Q,z=0;z<N;z++)E[t][z]&&(ee[x]|=I),I>>=1,I||(I=128,x++);Q+=H}break;case 2:for(t=0;t<W;t++){for(I=Y,x=Q,z=0;z<N;z++)E[t][z]&&(ee[x]^=I),I>>=1,I||(I=128,x++);Q+=H}break;default:throw new we(`operator ${K} is not supported`)}},onImmediateGenericRegion:function(T,E,R,N){var W=T.info,H=new r(E,R,N),K=A(T.mmr,W.width,W.height,T.template,T.prediction,null,T.at,H);this.drawBitmap(W,K)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(T,E,R,N,W,H){let K,ee;T.huffman&&(K=ie(T,R,this.customTables),ee=new oe(N,W,H));var Y=this.symbols;Y||(this.symbols=Y={});for(var Q=[],t=0,z=R.length;t<z;t++){const x=Y[R[t]];x&&(Q=Q.concat(x))}var I=new r(N,W,H);Y[E]=p(T.huffman,T.refinement,Q,T.numberOfNewSymbols,T.numberOfExportedSymbols,K,T.template,T.at,T.refinementTemplate,T.refinementAt,I,ee)},onImmediateTextRegion:function(T,E,R,N,W){var H=T.info;let K,ee;for(var Y=this.symbols,Q=[],t=0,z=E.length;t<z;t++){const B=Y[E[t]];B&&(Q=Q.concat(B))}var I=Xt(Q.length);T.huffman&&(ee=new oe(R,N,W),K=ue(T,E,this.customTables,Q.length,ee));var x=new r(R,N,W),_=b(T.huffman,T.refinement,H.width,H.height,T.defaultPixelValue,T.numberOfSymbolInstances,T.stripSize,Q,I,T.transposed,T.dsOffset,T.referenceCorner,T.combinationOperator,K,T.refinementTemplate,T.refinementAt,x,T.logStripSize,ee);this.drawBitmap(H,_)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(S,T,E,R,N){let W=this.patterns;W||(this.patterns=W={});const H=new r(E,R,N);W[T]=o(S.mmr,S.patternWidth,S.patternHeight,S.maxPatternIndex,S.template,H)},onImmediateHalftoneRegion(S,T,E,R,N){const W=this.patterns[T[0]],H=S.info,K=new r(E,R,N),ee=w(S.mmr,W,S.template,H.width,H.height,S.defaultPixelValue,S.enableSkip,S.combinationOperator,S.gridWidth,S.gridHeight,S.gridOffsetX,S.gridOffsetY,S.gridVectorX,S.gridVectorY,K);this.drawBitmap(H,ee)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(S,T,E,R){let N=this.customTables;N||(this.customTables=N={}),N[S]=U(T,E,R)}};function ne(S){S.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=S[0],this.rangeLength=0,this.prefixCode=S[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=S[0],this.prefixLength=S[1],this.rangeLength=S[2],this.prefixCode=S[3],this.isLowerRange=S[4]==="lower")}function re(S){this.children=[],S?(this.isLeaf=!0,this.rangeLength=S.rangeLength,this.rangeLow=S.rangeLow,this.isLowerRange=S.isLowerRange,this.isOOB=S.isOOB):this.isLeaf=!1}re.prototype={buildTree(S,T){const E=S.prefixCode>>T&1;if(T<=0)this.children[E]=new re(S);else{let R=this.children[E];R||(this.children[E]=R=new re(null)),R.buildTree(S,T-1)}},decodeNode(S){if(this.isLeaf){if(this.isOOB)return null;const E=S.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-E:E)}const T=this.children[S.readBit()];if(!T)throw new we("invalid Huffman data");return T.decodeNode(S)}};function P(S,T){T||this.assignPrefixCodes(S),this.rootNode=new re(null);for(let E=0,R=S.length;E<R;E++){const N=S[E];N.prefixLength>0&&this.rootNode.buildTree(N,N.prefixLength-1)}}P.prototype={decode(S){return this.rootNode.decodeNode(S)},assignPrefixCodes(S){const T=S.length;let E=0;for(let Y=0;Y<T;Y++)E=Math.max(E,S[Y].prefixLength);const R=new Uint32Array(E+1);for(let Y=0;Y<T;Y++)R[S[Y].prefixLength]++;let N=1,W=0,H,K,ee;for(R[0]=0;N<=E;){for(W=W+R[N-1]<<1,H=W,K=0;K<T;)ee=S[K],ee.prefixLength===N&&(ee.prefixCode=H,H++),K++;N++}}};function U(S,T,E){const R=S[T],N=_e(S,T+1)&4294967295,W=_e(S,T+5)&4294967295,H=new oe(S,T+9,E),K=(R>>1&7)+1,ee=(R>>4&7)+1,Y=[];let Q,t,z=N;do Q=H.readBits(K),t=H.readBits(ee),Y.push(new ne([z,Q,t,0])),z+=1<<t;while(z<W);return Q=H.readBits(K),Y.push(new ne([N-1,Q,32,0,"lower"])),Q=H.readBits(K),Y.push(new ne([W,Q,32,0])),R&1&&(Q=H.readBits(K),Y.push(new ne([Q,0]))),new P(Y,!1)}const h={};function $(S){let T=h[S];if(T)return T;let E;switch(S){case 1:E=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:E=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:E=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:E=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:E=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:E=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:E=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:E=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:E=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:E=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:E=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:E=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:E=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:E=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:E=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new we(`standard table B.${S} does not exist`)}for(let R=0,N=E.length;R<N;R++)E[R]=new ne(E[R]);return T=new P(E,!0),h[S]=T,T}function oe(S,T,E){this.data=S,this.start=T,this.end=E,this.position=T,this.shift=-1,this.currentByte=0}oe.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new we("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const S=this.currentByte>>this.shift&1;return this.shift--,S},readBits(S){let T=0,E;for(E=S-1;E>=0;E--)T|=this.readBit()<<E;return T},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}};function J(S,T,E){let R=0;for(let N=0,W=T.length;N<W;N++){const H=E[T[N]];if(H){if(S===R)return H;R++}}throw new we("can't find custom Huffman table")}function ue(S,T,E,R,N){const W=[];for(let z=0;z<=34;z++){const I=N.readBits(4);W.push(new ne([z,I,0,0]))}const H=new P(W,!1);W.length=0;for(let z=0;z<R;){const I=H.decode(N);if(I>=32){let x,_,B;switch(I){case 32:if(z===0)throw new we("no previous value in symbol ID table");_=N.readBits(2)+3,x=W[z-1].prefixLength;break;case 33:_=N.readBits(3)+3,x=0;break;case 34:_=N.readBits(7)+11,x=0;break;default:throw new we("invalid code length in symbol ID table")}for(B=0;B<_;B++)W.push(new ne([z,x,0,0])),z++}else W.push(new ne([z,I,0,0])),z++}N.byteAlign();const K=new P(W,!1);let ee=0,Y,Q,t;switch(S.huffmanFS){case 0:case 1:Y=$(S.huffmanFS+6);break;case 3:Y=J(ee,T,E),ee++;break;default:throw new we("invalid Huffman FS selector")}switch(S.huffmanDS){case 0:case 1:case 2:Q=$(S.huffmanDS+8);break;case 3:Q=J(ee,T,E),ee++;break;default:throw new we("invalid Huffman DS selector")}switch(S.huffmanDT){case 0:case 1:case 2:t=$(S.huffmanDT+11);break;case 3:t=J(ee,T,E),ee++;break;default:throw new we("invalid Huffman DT selector")}if(S.refinement)throw new we("refinement with Huffman is not supported");return{symbolIDTable:K,tableFirstS:Y,tableDeltaS:Q,tableDeltaT:t}}function ie(S,T,E){let R=0,N,W;switch(S.huffmanDHSelector){case 0:case 1:N=$(S.huffmanDHSelector+4);break;case 3:N=J(R,T,E),R++;break;default:throw new we("invalid Huffman DH selector")}switch(S.huffmanDWSelector){case 0:case 1:W=$(S.huffmanDWSelector+2);break;case 3:W=J(R,T,E),R++;break;default:throw new we("invalid Huffman DW selector")}let H,K;return S.bitmapSizeSelector?(H=J(R,T,E),R++):H=$(1),S.aggregationInstancesSelector?K=J(R,T,E):K=$(1),{tableDeltaHeight:N,tableDeltaWidth:W,tableBitmapSize:H,tableAggregateInstances:K}}function le(S,T,E){const R=[];for(let N=0;N<E;N++){const W=new Uint8Array(T);R.push(W);for(let H=0;H<T;H++)W[H]=S.readBit();S.byteAlign()}return R}function Z(S,T,E,R){const N=new pi(S,{K:-1,Columns:T,Rows:E,BlackIs1:!0,EndOfBlock:R}),W=[];let H,K=!1;for(let ee=0;ee<E;ee++){const Y=new Uint8Array(T);W.push(Y);let Q=-1;for(let t=0;t<T;t++)Q<0&&(H=N.readNextChar(),H===-1&&(H=0,K=!0),Q=7),Y[t]=H>>Q&1,Q--}if(R&&!K)for(let Y=0;Y<5&&N.readNextChar()!==-1;Y++);return W}function j(){}return j.prototype={parseChunks(S){return D(S)},parse(S){const{imgData:T,width:E,height:R}=q(S);return this.width=E,this.height=R,T}},j})()})),gi,wi,bi,Yt,ft,vi,yi,_i,xi,ki,Ai,Ci,Si,Ei,Fi,Di,Jt,Kt,Qt,er,Pi,Ti,We,Ii,Bi,$n=fe((()=>{gi=nr(Tn(),1),wi=nr(Rn(),1),jt(),Zn(),bi=()=>{globalThis.global||(globalThis.global=globalThis),globalThis.xmlParseFlag=0},Yt=function(l){return l?Array.isArray(l)?l:[l]:[]},ft=function(l,f){let r=[];for(const c of Yt(l))c&&(r=r.concat(Yt(c[f])));return r},vi=function(l){const f=l?l.toLowerCase():"";return f==="jpg"||f==="jpeg"?"image/jpeg":f==="gif"?"image/gif":f==="bmp"?"image/bmp":f==="webp"?"image/webp":"image/png"},yi=function(l){return new Promise((f,r)=>{gi.default.loadAsync(l).then(function(c){f(c)},function(c){r(c)})})},_i=async function(l){const f=(await We(l,"OFD.xml")).json["ofd:OFD"]["ofd:DocBody"];let r=[];return r=r.concat(f),[l,r]},xi=async function([l,f]){let r=[];for(let c of f)if(c){let n=await ki(l,c);n=await Ai(n),n=await Si(n),n=await Ei(n),n=await Fi(n),n=await Di(n),r.push(n)}return r},ki=async function(l,f){let r=f["ofd:DocRoot"];r=Mt(r);const c=r.split("/")[0],n=f["ofd:Signatures"],i=await Pi(l,n,c);let a={};for(const e of i)if(e.sealObj&&Object.keys(e.sealObj).length>0){if(e.sealObj.type==="ofd"){const u=await Ti(e);for(let v of u)e.stampAnnot.boundary=ze(e.stampAnnot["@_Boundary"]),e.stampAnnot.pageRef=e.stampAnnot["@_PageRef"],a[e.stampAnnot["@_PageRef"]]||(a[e.stampAnnot["@_PageRef"]]=[]),a[e.stampAnnot["@_PageRef"]].push({type:"ofd",obj:v,stamp:e})}else if(e.sealObj.type==="png"){let u="data:image/png;base64,"+btoa(String.fromCharCode.apply(null,e.sealObj.ofdArray)),v=[];v=v.concat(e.stampAnnot);for(const y of v)if(y){const A={img:u,pageId:y["@_PageRef"],boundary:ze(y["@_Boundary"]),clip:ze(y["@_Clip"])};a[y["@_PageRef"]]||(a[y["@_PageRef"]]=[]),a[y["@_PageRef"]].push({type:"png",obj:A,stamp:e})}}}return[l,c,r,a]},Ai=async function([l,f,r,c]){const n=(await We(l,r)).json["ofd:Document"];let i=n["ofd:Annotations"],a=[],e;return i&&(i.indexOf("/")!==-1&&(e=i.substring(0,i.indexOf("/"))),i.indexOf(f)===-1&&(i=`${f}/${i}`),l.files[i]&&(i=await We(l,i),a=a.concat(i.json["ofd:Annotations"]["ofd:Page"]))),[l,f,n,c,await Ci(e,a,f,l)]},Ci=async function(l,f,r,c){let n={};for(let i of f){if(!i)continue;const a=i["@_PageID"];let e=i["ofd:FileLoc"];if(e=Mt(e),l&&e.indexOf(l)===-1&&(e=`${l}/${e}`),e.indexOf(r)===-1&&(e=`${r}/${e}`),c.files[e]){const u=await We(c,e);let v=[];v=v.concat(u.json["ofd:PageAnnot"]["ofd:Annot"]),n[a]||(n[a]=[]);for(let y of v){if(!y)continue;const A=y["@_Type"],k=y["@_Visible"]?y["@_Visible"]:!0;let p={type:A,appearance:y["ofd:Appearance"],visible:k};n[a].push(p)}}}return n},Si=async function([l,f,r,c,n]){let i=r["ofd:CommonData"]["ofd:DocumentRes"],a={},e={},u={};if(i&&(i.indexOf(f)==-1&&(i=`${f}/${i}`),l.files[i])){const v=(await We(l,i)).json["ofd:Res"];a=await Jt(v),e=await Kt(v),u=await Qt(l,v,f)}return[l,f,r,c,n,a,e,u]},Ei=async function([l,f,r,c,n,i,a,e]){let u=r["ofd:CommonData"]["ofd:PublicRes"];if(u&&(u.indexOf(f)==-1&&(u=`${f}/${u}`),l.files[u])){const v=(await We(l,u)).json["ofd:Res"];let y=await Jt(v);i=Object.assign(i,y);let A=await Kt(v);a=Object.assign(a,A);let k=await Qt(l,v,f);e=Object.assign(e,k)}return[l,f,r,c,n,i,a,e]},Fi=async function([l,f,r,c,n,i,a,e]){let u=r["ofd:CommonData"]["ofd:TemplatePage"],v=[];v=v.concat(u);let y={};for(const A of v)if(A){let k=await er(l,A,f);y[Object.keys(k)[0]]=k[Object.keys(k)[0]]}return[l,f,r,c,n,y,i,a,e]},Di=async function([l,f,r,c,n,i,a,e,u]){let v=r["ofd:Pages"]["ofd:Page"],y=[];y=y.concat(v);let A=[];for(const k of y)if(k){let p=await er(l,k,f);const b=Object.keys(p)[0],o=c[b];o&&(p[b].stamp=o);const w=n[b];w&&(p[b].annotation=w),A.push(p)}return{doc:f,document:r,pages:A,tpls:i,stampAnnot:c,fontResObj:a,drawParamResObj:e,multiMediaResObj:u}},Jt=async function(l){const f=l["ofd:Fonts"];let r={};if(f){let c=ft(f,"ofd:Font");for(const n of c)n&&(n["@_FamilyName"]?r[n["@_ID"]]=n["@_FamilyName"]:r[n["@_ID"]]=n["@_FontName"])}return r},Kt=async function(l){const f=l["ofd:DrawParams"];let r={};if(f){let c=ft(f,"ofd:DrawParam");for(const n of c)n&&(r[n["@_ID"]]={LineWidth:n["@_LineWidth"],FillColor:n["ofd:FillColor"]?n["ofd:FillColor"]["@_Value"]:"",StrokeColor:n["ofd:StrokeColor"]?n["ofd:StrokeColor"]["@_Value"]:"",relative:n["@_Relative"]})}return r},Qt=async function(l,f,r){const c=f["ofd:MultiMedias"];let n={};if(c){let i=ft(c,"ofd:MultiMedia");for(const a of i)if(a&&a["ofd:MediaFile"]){let e=a["ofd:MediaFile"];if(f["@_BaseLoc"]&&e.indexOf(f["@_BaseLoc"])===-1&&(e=`${f["@_BaseLoc"]}/${e}`),e.indexOf(r)===-1&&(e=`${r}/${e}`),(a["@_Type"]?a["@_Type"].toLowerCase():"")==="image"){const u=a["@_Format"],v=Xr(e);if(u&&(u.toLowerCase()==="gbig2"||u.toLowerCase()==="jb2")||v&&(v.toLowerCase()==="jb2"||v.toLowerCase()==="gbig2")){const y=await Ii(l,e);n[a["@_ID"]]=y}else{const y=u||v||"png",A=await Bi(l,e,vi(y));n[a["@_ID"]]={img:A,format:y.toLowerCase()}}}else n[a["@_ID"]]=e}}return n},er=async function(l,f,r){let c=f["@_BaseLoc"];c.indexOf(r)==-1&&(c=`${r}/${c}`);const n=await We(l,c);let i={};return i[f["@_ID"]]={json:n.json["ofd:Page"],xml:n.xml},i},Pi=async function(l,f,r){return[]},Ti=function(){return Promise.resolve([])},We=async function(l,f){return new Promise((r,c)=>{l.files[f].async("string").then(function(n){bi(),r({xml:n,json:wi.parse(n,{attributeNamePrefix:"@_",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1})})},function(i){c(i)})})},Ii=async function(l,f){return new Promise((r,c)=>{l.files[f].async("uint8array").then(function(n){let i=new mi;r({img:i.parse(n),width:i.width,height:i.height,format:"gbig2"})},function(i){c(i)})})},Bi=async function(l,f,r="image/png"){return new Promise((c,n)=>{l.files[f].async("base64").then(function(i){c(`data:${r};base64,`+i)},function(a){n(a)})})}})),qn=gt({calPageBox:()=>Wt,calPageBoxScale:()=>Ht,digestCheck:()=>Ri,getPageScale:()=>Mi,parseOfdDocument:()=>Oi,renderOfd:()=>Li,renderOfdByScale:()=>Ni,renderPage:()=>ct,setPageScale:()=>Vi}),Oi,zi,Li,Ni,Ri,Vi,Mi,Gn=fe((()=>{Dn(),Pn(),$n(),jt(),Oi=function(l){l.ofd instanceof File||l.ofd instanceof Blob||l.ofd instanceof ArrayBuffer?zi(l):l.fail?.(new Error("OFD 预览只接收 File、Blob 或 ArrayBuffer 数据"))},zi=function(l){li.call(this,async()=>await yi(l.ofd),_i,xi).then(f=>{l.success&&l.success(f)}).catch(f=>{console.log(f),l.fail&&l.fail(f)})},Li=function(l,f){let r=[];if(!f)return r;for(const c of f.pages){let n=Wt(l,f.document,c);const i=Object.keys(c)[0];let a=document.createElement("div");a.id=i,a.setAttribute("style",`margin-bottom: 20px;position: relative;width:${n.w}px;height:${n.h}px;background: white;`),ct(a,c,f.tpls,f.fontResObj,f.drawParamResObj,f.multiMediaResObj),r.push(a)}return r},Ni=function(l){let f=[];if(!l)return f;for(const r of l.pages){let c=Ht(l.document,r);const n=Object.keys(r)[0];let i=document.createElement("div");i.id=n,i.setAttribute("style",`margin-bottom: 20px;position: relative;width:${c.w}px;height:${c.h}px;background: white;`),ct(i,r,l.tpls,l.fontResObj,l.drawParamResObj,l.multiMediaResObj),f.push(i)}return f},Ri=function(l){return l?.arr,!1},Vi=function(l){Rt(l)},Mi=function(){return qr()}})),Xn=gt({default:()=>Yn});async function Yn(l,f,r){const c=f.ownerDocument||document,n=c.defaultView||(typeof window<"u"?window:null),i=At();let a=!1,e=0,u=null,v=0,y=0,A="loading",k="",p=1,b=null;const o=Wi(c),w=mt(c,"div","ofd-viewer");w.dataset.viewerZoomProvider="ofd";const m=mt(c,"div","ofd-state","正在解析 OFD...");m.setAttribute("aria-live","polite");const d=mt(c,"div","ofd-stage");w.append(m,d),f.replaceChildren(o,w);const s=()=>{d.replaceChildren()},g=()=>{m.hidden=A==="ready",m.classList.toggle("error",A==="error"),m.textContent=A==="error"?k:"正在解析 OFD..."},C=async U=>(b||(b=$i(U,l).then(h=>{const $=h[0];if(!$)throw new Error("OFD 文件中没有可渲染的文档");return $})),b),F=()=>{const U=w.getBoundingClientRect().width||d.getBoundingClientRect().width||0;return Math.max(Math.floor(U-48),240)},D=()=>({scale:p,label:`${Math.round(p*100)}%`,canZoomIn:p<pt,canZoomOut:p>ht,canReset:p!==1,minScale:ht,maxScale:pt}),q=()=>{const U=n?.HTMLElement||globalThis.HTMLElement;d.querySelectorAll(".ofd-page-frame").forEach(h=>{const $=h.firstElementChild;if(!U||!($ instanceof U))return;$.style.position="absolute",$.style.top="0",$.style.left="50%",$.style.transform=`translateX(-50%) scale(${p})`,$.style.transformOrigin="top center",$.style.marginLeft="0",$.style.marginRight="0";const oe=$.offsetWidth,J=$.offsetHeight;!oe||!J||(h.style.width=`${Math.ceil(oe*p)}px`,h.style.height=`${Math.ceil(J*p)}px`)})},L=U=>(p=Zi(U),q(),i.emit(),D());xt(w,{zoomIn:()=>L(p+tr),zoomOut:()=>L(p-tr),resetZoom:()=>L(1),setZoom:L,getState:D,subscribe:i.subscribe});const ne=async U=>{const h=await ji(),$=await C(h);return a?[]:Promise.resolve(h.renderOfd(U,$))},re=async(U={})=>{var h;if(a)return;const $=F();if(!U.force&&A==="ready"&&Math.abs($-y)<8)return;const oe=++e;(U.showLoading||A!=="ready")&&(A="loading",s(),g()),k="";try{await rr(n);const J=await ne($);if(a||oe!==e)return;s(),qi(c,d,J),y=$,await rr(n),q(),A="ready",g(),i.emit(),(h=r?.onProgressiveRender)===null||h===void 0||h.call(r)}catch(J){if(a||oe!==e)return;console.error(J),A="error",k=Hi(J)||"OFD 文件解析失败",g()}},P=()=>{!n?.ResizeObserver||u||(u=new n.ResizeObserver(()=>{n.clearTimeout(v),v=n.setTimeout(()=>{re({showLoading:!1})},180)}),u.observe(w))};return re({force:!0,showLoading:!0}).finally(()=>{a||P()}),{$el:w,unmount(){var U;a=!0,e+=1,n?.clearTimeout(v),u?.disconnect(),u=null,kt(w),s(),(U=r?.registerExportAdapter)===null||U===void 0||U.call(r,null)}}}var ht,pt,tr,Ui,ji,Wi,mt,Hi,Zi,rr,$i,qi,Jn=fe((()=>{jr(),ht=.35,pt=3,tr=.1,Ui=`
|
|
18
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=A,this.buildObjNode=v):(this.buildTextNode=y,this.buildObjNode=f),this.buildTextValNode=y,this.buildObjectNode=f}n.prototype.parse=function(s){return this.j2x(s,0).val},n.prototype.j2x=function(s,w){let m="",c="";const l=Object.keys(s),g=l.length;for(let C=0;C<g;C++){const F=l[C];if(!(typeof s[F]>"u"))if(s[F]===null)c+=this.indentate(w)+"<"+F+"/"+this.tagEndChar;else if(s[F]instanceof Date)c+=this.buildTextNode(s[F],F,"",w);else if(typeof s[F]!="object"){const D=this.isAttribute(F);D?m+=" "+D+'="'+this.options.attrValueProcessor(""+s[F])+'"':this.isCDATA(F)?s[this.options.textNodeName]?c+=this.replaceCDATAstr(s[this.options.textNodeName],s[F]):c+=this.replaceCDATAstr("",s[F]):F===this.options.textNodeName?s[this.options.cdataTagName]||(c+=this.options.tagValueProcessor(""+s[F])):c+=this.buildTextNode(s[F],F,"",w)}else if(Array.isArray(s[F]))if(this.isCDATA(F))c+=this.indentate(w),s[this.options.textNodeName]?c+=this.replaceCDATAarr(s[this.options.textNodeName],s[F]):c+=this.replaceCDATAarr("",s[F]);else{const D=s[F].length;for(let q=0;q<D;q++){const L=s[F][q];if(!(typeof L>"u"))if(L===null)c+=this.indentate(w)+"<"+F+"/"+this.tagEndChar;else if(typeof L=="object"){const ne=this.j2x(L,w+1);c+=this.buildObjNode(ne.val,F,ne.attrStr,w)}else c+=this.buildTextNode(L,F,"",w)}}else if(this.options.attrNodeName&&F===this.options.attrNodeName){const D=Object.keys(s[F]),q=D.length;for(let L=0;L<q;L++)m+=" "+D[L]+'="'+this.options.attrValueProcessor(""+s[F][D[L]])+'"'}else{const D=this.j2x(s[F],w+1);c+=this.buildObjNode(D.val,F,D.attrStr,w)}}return{attrStr:m,val:c}};function a(s,w){return s=this.options.tagValueProcessor(""+s),this.options.cdataPositionChar===""||s===""?s+"<![CDATA["+w+"]]"+this.tagEndChar:s.replace(this.options.cdataPositionChar,"<![CDATA["+w+"]]"+this.tagEndChar)}function e(s,w){if(s=this.options.tagValueProcessor(""+s),this.options.cdataPositionChar===""||s==="")return s+"<![CDATA["+w.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let m in w)s=s.replace(this.options.cdataPositionChar,"<![CDATA["+w[m]+"]]>");return s+this.newLine}function f(s,w,m,c){return m&&!s.includes("<")?this.indentate(c)+"<"+w+m+">"+s+"</"+w+this.tagEndChar:this.indentate(c)+"<"+w+m+this.tagEndChar+s+this.indentate(c)+"</"+w+this.tagEndChar}function v(s,w,m,c){return s!==""?this.buildObjectNode(s,w,m,c):this.indentate(c)+"<"+w+m+"/"+this.tagEndChar}function y(s,w,m,c){return this.indentate(c)+"<"+w+m+">"+this.options.tagValueProcessor(s)+"</"+w+this.tagEndChar}function A(s,w,m,c){return s!==""?this.buildTextValNode(s,w,m,c):this.indentate(c)+"<"+w+m+"/"+this.tagEndChar}function k(s){return this.options.indentBy.repeat(s)}function p(s){return s.startsWith(this.options.attributeNamePrefix)?s.substr(this.attrPrefixLen):!1}function b(s){return s===this.options.cdataTagName}u.exports=n})),Zn=ze((o=>{var u=Vn(),r=ht(),d=ht(),i=Me().buildOptions,n=Un();o.parse=function(a,e,f){if(f){f===!0&&(f={});const y=n.validate(a,f);if(y!==!0)throw Error(y.err.msg)}e=i(e,d.defaultOptions,d.props);const v=r.getTraversalObj(a,e);return u.convertToJson(v,e)},o.convertTonimn=jn().convert2nimn,o.getTraversalObj=r.getTraversalObj,o.convertToJson=u.convertToJson,o.convertToJsonString=Wn().convertToJsonString,o.validate=n.validate,o.j2xParser=Hn(),o.parseToNimn=function(a,e,f){return o.convertTonimn(o.getTraversalObj(a,f),e,f)}})),$n=fe((()=>{globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0)}));function We(o){gi>=Qt.INFOS&&console.log(`Info: ${o}`)}function qn(o){throw new Error(o)}function mi(o,u,r){return Object.defineProperty(o,u,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var Qt,gi,wi,Gn,er=fe((()=>{$n(),Qt={ERRORS:0,WARNINGS:1,INFOS:5},gi=Qt.WARNINGS,wi=(function(){function u(r){this.constructor===u&&qn("Cannot initialize BaseException."),this.message=r,this.name=this.constructor.name}return u.prototype=new Error,u.constructor=u,u})(),Gn=(function(){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(d,i,n=!1){if(!n&&URL.createObjectURL){const e=new Blob([d],{type:i});return URL.createObjectURL(e)}let a=`data:${i};base64,`;for(let e=0,f=d.length;e<f;e+=3){const v=d[e]&255,y=d[e+1]&255,A=d[e+2]&255,k=v>>2,p=(v&3)<<4|y>>4,b=e+1<f?(y&15)<<2|A>>6:64,s=e+2<f?A&63:64;a+=u[k]+u[p]+u[b]+u[s]}return a}})()}));function tr(o){return o<=0?0:Math.ceil(Math.log2(o))}function He(o,u){return o[u]<<24>>24}function Xe(o,u){return o[u]<<8|o[u+1]}function _e(o,u){return(o[u]<<24|o[u+1]<<16|o[u+2]<<8|o[u+3])>>>0}var Xn=fe((()=>{er()})),bi,vi,Yn=fe((()=>{bi=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],vi=class{constructor(o,u,r){this.data=o,this.bp=u,this.dataEnd=r,this.chigh=o[u],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const o=this.data;let u=this.bp;o[u]===255?o[u+1]>143?(this.clow+=65280,this.ct=8):(u++,this.clow+=o[u]<<9,this.ct=7,this.bp=u):(u++,this.clow+=u<this.dataEnd?o[u]<<8:65280,this.ct=8,this.bp=u),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(o,u){let r=o[u]>>1,d=o[u]&1;const i=bi[r],n=i.qe;let a,e=this.a-n;if(this.chigh<n)e<n?(e=n,a=d,r=i.nmps):(e=n,a=1^d,i.switchFlag===1&&(d=a),r=i.nlps);else{if(this.chigh-=n,(e&32768)!==0)return this.a=e,d;e<n?(a=1^d,i.switchFlag===1&&(d=a),r=i.nlps):(a=d,r=i.nmps)}do this.ct===0&&this.byteIn(),e<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--;while((e&32768)===0);return this.a=e,o[u]=r<<1|d,a}}})),yi,Jn=fe((()=>{er(),yi=(function(){const k=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],p=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],b=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],s=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],w=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],m=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];function c(l,g={}){if(!l||typeof l.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=l,this.eof=!1,this.encoding=g.K||0,this.eoline=g.EndOfLine||!1,this.byteAlign=g.EncodedByteAlign||!1,this.columns=g.Columns||1728,this.rows=g.Rows||0;let C=g.EndOfBlock;C==null&&(C=!0),this.eoblock=C,this.black=g.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let F;for(;(F=this._lookBits(12))===0;)this._eatBits(1);F===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return c.prototype={readNextChar(){if(this.eof)return-1;const l=this.refLine,g=this.codingLine,C=this.columns;let F,D,q,L;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let re,P,U;if(this.nextLine2D){for(L=0;g[L]<C;++L)l[L]=g[L];for(l[L++]=C,l[L]=C,g[0]=0,this.codingPos=0,F=0,D=0;g[this.codingPos]<C;)switch(re=this._getTwoDimCode(),re){case 0:this._addPixels(l[F+1],D),l[F+1]<C&&(F+=2);break;case 1:if(re=P=0,D){do re+=U=this._getBlackCode();while(U>=64);do P+=U=this._getWhiteCode();while(U>=64)}else{do re+=U=this._getWhiteCode();while(U>=64);do P+=U=this._getBlackCode();while(U>=64)}for(this._addPixels(g[this.codingPos]+re,D),g[this.codingPos]<C&&this._addPixels(g[this.codingPos]+P,D^1);l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 7:if(this._addPixels(l[F]+3,D),D^=1,g[this.codingPos]<C)for(++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 5:if(this._addPixels(l[F]+2,D),D^=1,g[this.codingPos]<C)for(++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 3:if(this._addPixels(l[F]+1,D),D^=1,g[this.codingPos]<C)for(++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 2:if(this._addPixels(l[F],D),D^=1,g[this.codingPos]<C)for(++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 8:if(this._addPixelsNeg(l[F]-3,D),D^=1,g[this.codingPos]<C)for(F>0?--F:++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 6:if(this._addPixelsNeg(l[F]-2,D),D^=1,g[this.codingPos]<C)for(F>0?--F:++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case 4:if(this._addPixelsNeg(l[F]-1,D),D^=1,g[this.codingPos]<C)for(F>0?--F:++F;l[F]<=g[this.codingPos]&&l[F]<C;)F+=2;break;case-1:this._addPixels(C,0),this.eof=!0;break;default:We("bad 2d code"),this._addPixels(C,0),this.err=!0}}else for(g[0]=0,this.codingPos=0,D=0;g[this.codingPos]<C;){if(re=0,D)do re+=U=this._getBlackCode();while(U>=64);else do re+=U=this._getWhiteCode();while(U>=64);this._addPixels(g[this.codingPos]+re,D),D^=1}let h=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(re=this._lookBits(12),this.eoline)for(;re!==-1&&re!==1;)this._eatBits(1),re=this._lookBits(12);else for(;re===0;)this._eatBits(1),re=this._lookBits(12);re===1?(this._eatBits(12),h=!0):re===-1&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&h&&this.byteAlign){if(re=this._lookBits(12),re===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(L=0;L<4;++L)re=this._lookBits(12),re!==1&&We("bad rtc code: "+re),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(re=this._lookBits(13),re===-1)return this.eof=!0,-1;if(re>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(re&1))}g[0]>0?this.outputBits=g[this.codingPos=0]:this.outputBits=g[this.codingPos=1],this.row++}let ne;if(this.outputBits>=8)ne=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&g[this.codingPos]<C&&(this.codingPos++,this.outputBits=g[this.codingPos]-g[this.codingPos-1]);else{q=8,ne=0;do this.outputBits>q?(ne<<=q,this.codingPos&1||(ne|=255>>8-q),this.outputBits-=q,q=0):(ne<<=this.outputBits,this.codingPos&1||(ne|=255>>8-this.outputBits),q-=this.outputBits,this.outputBits=0,g[this.codingPos]<C?(this.codingPos++,this.outputBits=g[this.codingPos]-g[this.codingPos-1]):q>0&&(ne<<=q,q=0));while(q)}return this.black&&(ne^=255),ne},_addPixels(l,g){const C=this.codingLine;let F=this.codingPos;l>C[F]&&(l>this.columns&&(We("row is wrong length"),this.err=!0,l=this.columns),F&1^g&&++F,C[F]=l),this.codingPos=F},_addPixelsNeg(l,g){const C=this.codingLine;let F=this.codingPos;if(l>C[F])l>this.columns&&(We("row is wrong length"),this.err=!0,l=this.columns),F&1^g&&++F,C[F]=l;else if(l<C[F]){for(l<0&&(We("invalid code"),this.err=!0,l=0);F>0&&l<C[F-1];)--F;C[F]=l}this.codingPos=F},_findTableCode(l,g,C,F){const D=F||0;for(let q=l;q<=g;++q){let L=this._lookBits(q);if(L===-1)return[!0,1,!1];if(q<g&&(L<<=g-q),!D||L>=D){const ne=C[L-D];if(ne[0]===q)return this._eatBits(q),[!0,ne[1],!0]}}return[!1,0,!1]},_getTwoDimCode(){let l=0,g;if(this.eoblock){if(l=this._lookBits(7),g=k[l],g&&g[0]>0)return this._eatBits(g[0]),g[1]}else{const C=this._findTableCode(1,7,k);if(C[0]&&C[2])return C[1]}return We("Bad two dim code"),-1},_getWhiteCode(){let l=0,g;if(this.eoblock){if(l=this._lookBits(12),l===-1)return 1;if(l>>5===0?g=p[l]:g=b[l>>3],g[0]>0)return this._eatBits(g[0]),g[1]}else{let C=this._findTableCode(1,9,b);if(C[0]||(C=this._findTableCode(11,12,p),C[0]))return C[1]}return We("bad white code"),this._eatBits(1),1},_getBlackCode(){let l,g;if(this.eoblock){if(l=this._lookBits(13),l===-1)return 1;if(l>>7===0?g=s[l]:l>>9===0&&l>>7!==0?g=w[(l>>1)-64]:g=m[l>>7],g[0]>0)return this._eatBits(g[0]),g[1]}else{let C=this._findTableCode(2,6,m);if(C[0]||(C=this._findTableCode(7,12,w,64),C[0])||(C=this._findTableCode(10,13,s),C[0]))return C[1]}return We("bad black code"),this._eatBits(1),1},_lookBits(l){let g;for(;this.inputBits<l;){if((g=this.source.next())===-1)return this.inputBits===0?-1:this.inputBuf<<l-this.inputBits&65535>>16-l;this.inputBuf=this.inputBuf<<8|g,this.inputBits+=8}return this.inputBuf>>this.inputBits-l&65535>>16-l},_eatBits(l){(this.inputBits-=l)<0&&(this.inputBits=0)}},c})()})),we,_i,Kn=fe((()=>{er(),Xn(),Yn(),Jn(),we=class extends wi{constructor(o){super(`JBIG2 error: ${o}`)}},_i=(function(){function u(){}u.prototype={getContexts(S){return S in this?this[S]:this[S]=new Int8Array(65536)}};function r(S,T,E){this.data=S,this.start=T,this.end=E}r.prototype={get decoder(){var S=new vi(this.data,this.start,this.end);return mi(this,"decoder",S)},get contextCache(){var S=new u;return mi(this,"contextCache",S)}};function d(S,T,E){var R=S.getContexts(T),N=1;function W(ee){for(var Y=0,Q=0;Q<ee;Q++){var t=E.readBit(R,N);N=N<256?N<<1|t:(N<<1|t)&511|256,Y=Y<<1|t}return Y>>>0}var H=W(1),K=W(1)?W(1)?W(1)?W(1)?W(1)?W(32)+4436:W(12)+340:W(8)+84:W(6)+20:W(4)+4:W(2);return H===0?K:K>0?-K:null}function i(S,T,E){for(var R=S.getContexts("IAID"),N=1,W=0;W<E;W++){var H=T.readBit(R,N);N=N<<1|H}return E<31?N&(1<<E)-1:N&2147483647}var n=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],a=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],e=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],f=[39717,1941,229,405],v=[32,8];function y(S,T,E){var R=E.decoder,N=E.contextCache.getContexts("GB"),W,H,K,ee,Y,Q,t,z=[],I=31735;for(H=0;H<T;H++)for(Y=z[H]=new Uint8Array(S),Q=H<1?Y:z[H-1],t=H<2?Y:z[H-2],W=t[0]<<13|t[1]<<12|t[2]<<11|Q[0]<<7|Q[1]<<6|Q[2]<<5|Q[3]<<4,K=0;K<S;K++)Y[K]=ee=R.readBit(N,W),W=(W&I)<<1|(K+3<S?t[K+3]<<11:0)|(K+4<S?Q[K+4]<<4:0)|ee;return z}function A(S,T,E,R,N,W,H,K){if(S)return Z(new oe(K.data,K.start,K.end),T,E,!1);if(R===0&&!W&&!N&&H.length===4&&H[0].x===3&&H[0].y===-1&&H[1].x===-3&&H[1].y===-1&&H[2].x===2&&H[2].y===-2&&H[3].x===-2&&H[3].y===-2)return y(T,E,K);var ee=!!W,Y=a[R].concat(H);Y.sort(function(ye,Ce){return ye.y-Ce.y||ye.x-Ce.x});var Q=Y.length,t=new Int8Array(Q),z=new Int8Array(Q),I=[],x=0,_=0,B=0,M=0,V,O;for(O=0;O<Q;O++)t[O]=Y[O].x,z[O]=Y[O].y,_=Math.min(_,Y[O].x),B=Math.max(B,Y[O].x),M=Math.min(M,Y[O].y),O<Q-1&&Y[O].y===Y[O+1].y&&Y[O].x===Y[O+1].x-1?x|=1<<Q-1-O:I.push(O);var G=I.length,te=new Int8Array(G),X=new Int8Array(G),ae=new Uint16Array(G);for(V=0;V<G;V++)O=I[V],te[V]=Y[O].x,X[V]=Y[O].y,ae[V]=1<<Q-1-O;for(var de=-_,se=-M,xe=T-B,Fe=f[R],pe=new Uint8Array(T),he=[],ce=K.decoder,ke=K.contextCache.getContexts("GB"),De=0,me,ve,ge,Se=0,Ee,Pe,Ae=0;Ae<E;Ae++){if(N){var Te=ce.readBit(ke,Fe);if(De^=Te,De){he.push(pe);continue}}for(pe=new Uint8Array(pe),he.push(pe),me=0;me<T;me++){if(ee&&W[Ae][me]){pe[me]=0;continue}if(me>=de&&me<xe&&Ae>=se)for(Se=Se<<1&x,O=0;O<G;O++)ve=Ae+X[O],ge=me+te[O],Ee=he[ve][ge],Ee&&(Ee=ae[O],Se|=Ee);else for(Se=0,Pe=Q-1,O=0;O<Q;O++,Pe--)ge=me+t[O],ge>=0&&ge<T&&(ve=Ae+z[O],ve>=0&&(Ee=he[ve][ge],Ee&&(Se|=Ee<<Pe)));var Oe=ce.readBit(ke,Se);pe[me]=Oe}}return he}function k(S,T,E,R,N,W,H,K,ee){var Y=e[E].coding;E===0&&(Y=Y.concat([K[0]]));var Q=Y.length,t=new Int32Array(Q),z=new Int32Array(Q),I;for(I=0;I<Q;I++)t[I]=Y[I].x,z[I]=Y[I].y;var x=e[E].reference;E===0&&(x=x.concat([K[1]]));var _=x.length,B=new Int32Array(_),M=new Int32Array(_);for(I=0;I<_;I++)B[I]=x[I].x,M[I]=x[I].y;for(var V=R[0].length,O=R.length,G=v[E],te=[],X=ee.decoder,ae=ee.contextCache.getContexts("GR"),de=0,se=0;se<T;se++){if(H){var xe=X.readBit(ae,G);if(de^=xe,de)throw new we("prediction is not supported")}var Fe=new Uint8Array(S);te.push(Fe);for(var pe=0;pe<S;pe++){var he,ce,ke=0;for(I=0;I<Q;I++)he=se+z[I],ce=pe+t[I],he<0||ce<0||ce>=S?ke<<=1:ke=ke<<1|te[he][ce];for(I=0;I<_;I++)he=se+M[I]-W,ce=pe+B[I]-N,he<0||he>=O||ce<0||ce>=V?ke<<=1:ke=ke<<1|R[he][ce];Fe[pe]=X.readBit(ae,ke)}}return te}function p(S,T,E,R,N,W,H,K,ee,Y,Q,t){if(S&&T)throw new we("symbol refinement with Huffman is not supported");var z=[],I=0,x=tr(E.length+R),_=Q.decoder,B=Q.contextCache;let M,V;for(S&&(M=$(1),V=[],x=Math.max(x,1));z.length<R;){var O=S?W.tableDeltaHeight.decode(t):d(B,"IADH",_);I+=O;let ge=0,Se=0;const Ee=S?V.length:0;for(;;){var G=S?W.tableDeltaWidth.decode(t):d(B,"IADW",_);if(G===null)break;ge+=G,Se+=ge;var te;if(T){var X=d(B,"IAAI",_);if(X>1)te=b(S,T,ge,I,0,X,1,E.concat(z),x,0,0,1,0,W,ee,Y,Q,0,t);else{var ae=i(B,_,x),de=d(B,"IARDX",_),se=d(B,"IARDY",_),xe=ae<E.length?E[ae]:z[ae-E.length];te=k(ge,I,ee,xe,de,se,!1,Y,Q)}z.push(te)}else S?V.push(ge):(te=A(!1,ge,I,H,!1,null,K,Q),z.push(te))}if(S&&!T){const Pe=W.tableBitmapSize.decode(t);t.byteAlign();let Ae;if(Pe===0)Ae=le(t,Se,I);else{const Oe=t.end,ye=t.position+Pe;t.end=ye,Ae=Z(t,Se,I,!1),t.end=Oe,t.position=ye}const Te=V.length;if(Ee===Te-1)z.push(Ae);else{let Oe,ye,Ce=0,Re,it,Ke;for(Oe=Ee;Oe<Te;Oe++){for(it=V[Oe],Re=Ce+it,Ke=[],ye=0;ye<I;ye++)Ke.push(Ae[ye].subarray(Ce,Re));z.push(Ke),Ce=Re}}}}for(var Fe=[],pe=[],he=!1,ce=E.length+R;pe.length<ce;){for(var ke=S?M.decode(t):d(B,"IAEX",_);ke--;)pe.push(he);he=!he}for(var De=0,me=E.length;De<me;De++)pe[De]&&Fe.push(E[De]);for(var ve=0;ve<R;De++,ve++)pe[De]&&Fe.push(z[ve]);return Fe}function b(S,T,E,R,N,W,H,K,ee,Y,Q,t,z,I,x,_,B,M,V){if(S&&T)throw new we("refinement with Huffman is not supported");var O=[],G,te;for(G=0;G<R;G++){if(te=new Uint8Array(E),N)for(var X=0;X<E;X++)te[X]=N;O.push(te)}var ae=B.decoder,de=B.contextCache,se=S?-I.tableDeltaT.decode(V):-d(de,"IADT",ae),xe=0;for(G=0;G<W;){var Fe=S?I.tableDeltaT.decode(V):d(de,"IADT",ae);se+=Fe;var pe=S?I.tableFirstS.decode(V):d(de,"IAFS",ae);xe+=pe;var he=xe;do{let on=0;H>1&&(on=S?V.readBits(M):d(de,"IAIT",ae));var ce=H*se+on,ke=S?I.symbolIDTable.decode(V):i(de,ae,ee),De=T&&(S?V.readBit():d(de,"IARI",ae)),me=K[ke],ve=me[0].length,ge=me.length;if(De){var Se=d(de,"IARDW",ae),Ee=d(de,"IARDH",ae),Pe=d(de,"IARDX",ae),Ae=d(de,"IARDY",ae);ve+=Se,ge+=Ee,me=k(ve,ge,x,me,(Se>>1)+Pe,(Ee>>1)+Ae,!1,_,B)}var Te=ce-(t&1?0:ge-1),Oe=he-(t&2?ve-1:0),ye,Ce,Re;if(Y){for(ye=0;ye<ge;ye++)if(te=O[Oe+ye],!!te){Re=me[ye];var it=Math.min(E-Te,ve);switch(z){case 0:for(Ce=0;Ce<it;Ce++)te[Te+Ce]|=Re[Ce];break;case 2:for(Ce=0;Ce<it;Ce++)te[Te+Ce]^=Re[Ce];break;default:throw new we(`operator ${z} is not supported`)}}he+=ge-1}else{for(Ce=0;Ce<ge;Ce++)if(te=O[Te+Ce],!!te)switch(Re=me[Ce],z){case 0:for(ye=0;ye<ve;ye++)te[Oe+ye]|=Re[ye];break;case 2:for(ye=0;ye<ve;ye++)te[Oe+ye]^=Re[ye];break;default:throw new we(`operator ${z} is not supported`)}he+=ve-1}G++;var Ke=S?I.tableDeltaS.decode(V):d(de,"IADS",ae);if(Ke===null)break;he+=Ke+Q}while(!0)}return O}function s(S,T,E,R,N,W){const H=[];S||(H.push({x:-T,y:0}),N===0&&(H.push({x:-3,y:-1}),H.push({x:2,y:-2}),H.push({x:-2,y:-2})));const K=A(S,(R+1)*T,E,N,!1,null,H,W),ee=[];for(let Y=0;Y<=R;Y++){const Q=[],t=T*Y,z=t+T;for(let I=0;I<E;I++)Q.push(K[I].subarray(t,z));ee.push(Q)}return ee}function w(S,T,E,R,N,W,H,K,ee,Y,Q,t,z,I,x){if(H)throw new we("skip is not supported");if(K!==0)throw new we("operator "+K+" is not supported in halftone region");const B=[];let M,V,O;for(M=0;M<N;M++){if(O=new Uint8Array(R),W)for(V=0;V<R;V++)O[V]=W;B.push(O)}const G=T.length,te=T[0],X=te[0].length,ae=te.length,de=tr(G),se=[];S||(se.push({x:E<=1?3:2,y:-1}),E===0&&(se.push({x:-3,y:-1}),se.push({x:2,y:-2}),se.push({x:-2,y:-2})));const xe=[];let Fe,pe;for(S&&(Fe=new oe(x.data,x.start,x.end)),M=de-1;M>=0;M--)S?pe=Z(Fe,ee,Y,!0):pe=A(!1,ee,Y,E,!1,null,se,x),xe[M]=pe;let he,ce,ke,De,me,ve,ge,Se,Ee;for(he=0;he<Y;he++)for(ce=0;ce<ee;ce++){for(ke=0,De=0,V=de-1;V>=0;V--)ke=xe[V][he][ce]^ke,De|=ke<<V;if(me=T[De],ve=Q+he*I+ce*z>>8,ge=t+he*z-ce*I>>8,ve>=0&&ve+X<=R&&ge>=0&&ge+ae<=N)for(M=0;M<ae;M++)for(Ee=B[ge+M],Se=me[M],V=0;V<X;V++)Ee[ve+V]|=Se[V];else{let Pe,Ae;for(M=0;M<ae;M++)if(Ae=ge+M,!(Ae<0||Ae>=N))for(Ee=B[Ae],Se=me[M],V=0;V<X;V++)Pe=ve+V,Pe>=0&&Pe<R&&(Ee[Pe]|=Se[V])}}return B}function m(S,T){var E={};E.number=_e(S,T);var R=S[T+4],N=R&63;if(!n[N])throw new we("invalid segment type: "+N);E.type=N,E.typeName=n[N],E.deferredNonRetain=!!(R&128);var W=!!(R&64),H=S[T+5],K=H>>5&7,ee=[H&31],Y=T+6;if(H===7){K=_e(S,Y-1)&536870911,Y+=3;var Q=K+7>>3;for(ee[0]=S[Y++];--Q>0;)ee.push(S[Y++])}else if(H===5||H===6)throw new we("invalid referred-to flags");E.retainBits=ee;let t=4;E.number<=256?t=1:E.number<=65536&&(t=2);var z=[],I,x;for(I=0;I<K;I++){let G;t===1?G=S[Y]:t===2?G=Xe(S,Y):G=_e(S,Y),z.push(G),Y+=t}if(E.referredTo=z,W?(E.pageAssociation=_e(S,Y),Y+=4):E.pageAssociation=S[Y++],E.length=_e(S,Y),Y+=4,E.length===4294967295)if(N===38){var _=l(S,Y),B=!!(S[Y+g]&1),M=6,V=new Uint8Array(M);for(B||(V[0]=255,V[1]=172),V[2]=_.height>>>24&255,V[3]=_.height>>16&255,V[4]=_.height>>8&255,V[5]=_.height&255,I=Y,x=S.length;I<x;I++){for(var O=0;O<M&&V[O]===S[I+O];)O++;if(O===M){E.length=I+M;break}}if(E.length===4294967295)throw new we("segment end was not found")}else throw new we("invalid unknown segment length");return E.headerEnd=Y,E}function c(S,T,E,R){for(var N=[],W=E;W<R;){var H=m(T,W);W=H.headerEnd;var K={header:H,data:T};if(S.randomAccess||(K.start=W,W+=H.length,K.end=W),N.push(K),H.type===51)break}if(S.randomAccess)for(var ee=0,Y=N.length;ee<Y;ee++)N[ee].start=W,W+=N[ee].header.length,N[ee].end=W;return N}function l(S,T){return{width:_e(S,T),height:_e(S,T+4),x:_e(S,T+8),y:_e(S,T+12),combinationOperator:S[T+16]&7}}var g=17;function C(S,T){var E=S.header,R=S.data,N=S.start,W=S.end,H,K,ee,Y;switch(E.type){case 0:var Q={},t=Xe(R,N);if(Q.huffman=!!(t&1),Q.refinement=!!(t&2),Q.huffmanDHSelector=t>>2&3,Q.huffmanDWSelector=t>>4&3,Q.bitmapSizeSelector=t>>6&1,Q.aggregationInstancesSelector=t>>7&1,Q.bitmapCodingContextUsed=!!(t&256),Q.bitmapCodingContextRetained=!!(t&512),Q.template=t>>10&3,Q.refinementTemplate=t>>12&1,N+=2,!Q.huffman){for(Y=Q.template===0?4:1,K=[],ee=0;ee<Y;ee++)K.push({x:He(R,N),y:He(R,N+1)}),N+=2;Q.at=K}if(Q.refinement&&!Q.refinementTemplate){for(K=[],ee=0;ee<2;ee++)K.push({x:He(R,N),y:He(R,N+1)}),N+=2;Q.refinementAt=K}Q.numberOfExportedSymbols=_e(R,N),N+=4,Q.numberOfNewSymbols=_e(R,N),N+=4,H=[Q,E.number,E.referredTo,R,N,W];break;case 6:case 7:var z={};z.info=l(R,N),N+=g;var I=Xe(R,N);if(N+=2,z.huffman=!!(I&1),z.refinement=!!(I&2),z.logStripSize=I>>2&3,z.stripSize=1<<z.logStripSize,z.referenceCorner=I>>4&3,z.transposed=!!(I&64),z.combinationOperator=I>>7&3,z.defaultPixelValue=I>>9&1,z.dsOffset=I<<17>>27,z.refinementTemplate=I>>15&1,z.huffman){var x=Xe(R,N);N+=2,z.huffmanFS=x&3,z.huffmanDS=x>>2&3,z.huffmanDT=x>>4&3,z.huffmanRefinementDW=x>>6&3,z.huffmanRefinementDH=x>>8&3,z.huffmanRefinementDX=x>>10&3,z.huffmanRefinementDY=x>>12&3,z.huffmanRefinementSizeSelector=!!(x&16384)}if(z.refinement&&!z.refinementTemplate){for(K=[],ee=0;ee<2;ee++)K.push({x:He(R,N),y:He(R,N+1)}),N+=2;z.refinementAt=K}z.numberOfSymbolInstances=_e(R,N),N+=4,H=[z,E.referredTo,R,N,W];break;case 16:const G={},te=R[N++];G.mmr=!!(te&1),G.template=te>>1&3,G.patternWidth=R[N++],G.patternHeight=R[N++],G.maxPatternIndex=_e(R,N),N+=4,H=[G,E.number,R,N,W];break;case 22:case 23:const X={};X.info=l(R,N),N+=g;const ae=R[N++];X.mmr=!!(ae&1),X.template=ae>>1&3,X.enableSkip=!!(ae&8),X.combinationOperator=ae>>4&7,X.defaultPixelValue=ae>>7&1,X.gridWidth=_e(R,N),N+=4,X.gridHeight=_e(R,N),N+=4,X.gridOffsetX=_e(R,N)&4294967295,N+=4,X.gridOffsetY=_e(R,N)&4294967295,N+=4,X.gridVectorX=Xe(R,N),N+=2,X.gridVectorY=Xe(R,N),N+=2,H=[X,E.referredTo,R,N,W];break;case 38:case 39:var _={};_.info=l(R,N),N+=g;var B=R[N++];if(_.mmr=!!(B&1),_.template=B>>1&3,_.prediction=!!(B&8),!_.mmr){for(Y=_.template===0?4:1,K=[],ee=0;ee<Y;ee++)K.push({x:He(R,N),y:He(R,N+1)}),N+=2;_.at=K}H=[_,R,N,W];break;case 48:var M={width:_e(R,N),height:_e(R,N+4),resolutionX:_e(R,N+8),resolutionY:_e(R,N+12)};M.height===4294967295&&delete M.height;var V=R[N+16];Xe(R,N+17),M.lossless=!!(V&1),M.refinement=!!(V&2),M.defaultPixelValue=V>>2&1,M.combinationOperator=V>>3&3,M.requiresBuffer=!!(V&32),M.combinationOperatorOverride=!!(V&64),H=[M];break;case 49:break;case 50:break;case 51:break;case 53:H=[E.number,R,N,W];break;case 62:break;default:throw new we(`segment type ${E.typeName}(${E.type}) is not implemented`)}var O="on"+E.typeName;O in T&&T[O].apply(T,H)}function F(S,T){for(var E=0,R=S.length;E<R;E++)C(S[E],T)}function D(S){for(var T=new L,E=0,R=S.length;E<R;E++){var N=S[E];F(c({},N.data,N.start,N.end),T)}return T.buffer}function q(S){const T=S.length;let E=0;if(S[E]!==151||S[E+1]!==74||S[E+2]!==66||S[E+3]!==50||S[E+4]!==13||S[E+5]!==10||S[E+6]!==26||S[E+7]!==10)throw new we("parseJbig2 - invalid header.");const R=Object.create(null);E+=8;const N=S[E++];R.randomAccess=!(N&1),N&2||(R.numberOfPages=_e(S,E),E+=4);const W=c(R,S,E,T),H=new L;F(W,H);const{width:K,height:ee}=H.currentPageInfo,Y=H.buffer,Q=new Uint8ClampedArray(K*ee);let t=0,z=0;for(let I=0;I<ee;I++){let x=0,_;for(let B=0;B<K;B++)x||(x=128,_=Y[z++]),Q[t++]=_&x?0:255,x>>=1}return{imgData:Q,width:K,height:ee}}function L(){}L.prototype={onPageInformation:function(T){this.currentPageInfo=T;var E=T.width+7>>3,R=new Uint8ClampedArray(E*T.height);if(T.defaultPixelValue)for(var N=0,W=R.length;N<W;N++)R[N]=255;this.buffer=R},drawBitmap:function(T,E){var R=this.currentPageInfo,N=T.width,W=T.height,H=R.width+7>>3,K=R.combinationOperatorOverride?T.combinationOperator:R.combinationOperator,ee=this.buffer,Y=128>>(T.x&7),Q=T.y*H+(T.x>>3),t,z,I,x;switch(K){case 0:for(t=0;t<W;t++){for(I=Y,x=Q,z=0;z<N;z++)E[t][z]&&(ee[x]|=I),I>>=1,I||(I=128,x++);Q+=H}break;case 2:for(t=0;t<W;t++){for(I=Y,x=Q,z=0;z<N;z++)E[t][z]&&(ee[x]^=I),I>>=1,I||(I=128,x++);Q+=H}break;default:throw new we(`operator ${K} is not supported`)}},onImmediateGenericRegion:function(T,E,R,N){var W=T.info,H=new r(E,R,N),K=A(T.mmr,W.width,W.height,T.template,T.prediction,null,T.at,H);this.drawBitmap(W,K)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(T,E,R,N,W,H){let K,ee;T.huffman&&(K=ie(T,R,this.customTables),ee=new oe(N,W,H));var Y=this.symbols;Y||(this.symbols=Y={});for(var Q=[],t=0,z=R.length;t<z;t++){const x=Y[R[t]];x&&(Q=Q.concat(x))}var I=new r(N,W,H);Y[E]=p(T.huffman,T.refinement,Q,T.numberOfNewSymbols,T.numberOfExportedSymbols,K,T.template,T.at,T.refinementTemplate,T.refinementAt,I,ee)},onImmediateTextRegion:function(T,E,R,N,W){var H=T.info;let K,ee;for(var Y=this.symbols,Q=[],t=0,z=E.length;t<z;t++){const B=Y[E[t]];B&&(Q=Q.concat(B))}var I=tr(Q.length);T.huffman&&(ee=new oe(R,N,W),K=ue(T,E,this.customTables,Q.length,ee));var x=new r(R,N,W),_=b(T.huffman,T.refinement,H.width,H.height,T.defaultPixelValue,T.numberOfSymbolInstances,T.stripSize,Q,I,T.transposed,T.dsOffset,T.referenceCorner,T.combinationOperator,K,T.refinementTemplate,T.refinementAt,x,T.logStripSize,ee);this.drawBitmap(H,_)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary(S,T,E,R,N){let W=this.patterns;W||(this.patterns=W={});const H=new r(E,R,N);W[T]=s(S.mmr,S.patternWidth,S.patternHeight,S.maxPatternIndex,S.template,H)},onImmediateHalftoneRegion(S,T,E,R,N){const W=this.patterns[T[0]],H=S.info,K=new r(E,R,N),ee=w(S.mmr,W,S.template,H.width,H.height,S.defaultPixelValue,S.enableSkip,S.combinationOperator,S.gridWidth,S.gridHeight,S.gridOffsetX,S.gridOffsetY,S.gridVectorX,S.gridVectorY,K);this.drawBitmap(H,ee)},onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables(S,T,E,R){let N=this.customTables;N||(this.customTables=N={}),N[S]=U(T,E,R)}};function ne(S){S.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=S[0],this.rangeLength=0,this.prefixCode=S[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=S[0],this.prefixLength=S[1],this.rangeLength=S[2],this.prefixCode=S[3],this.isLowerRange=S[4]==="lower")}function re(S){this.children=[],S?(this.isLeaf=!0,this.rangeLength=S.rangeLength,this.rangeLow=S.rangeLow,this.isLowerRange=S.isLowerRange,this.isOOB=S.isOOB):this.isLeaf=!1}re.prototype={buildTree(S,T){const E=S.prefixCode>>T&1;if(T<=0)this.children[E]=new re(S);else{let R=this.children[E];R||(this.children[E]=R=new re(null)),R.buildTree(S,T-1)}},decodeNode(S){if(this.isLeaf){if(this.isOOB)return null;const E=S.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-E:E)}const T=this.children[S.readBit()];if(!T)throw new we("invalid Huffman data");return T.decodeNode(S)}};function P(S,T){T||this.assignPrefixCodes(S),this.rootNode=new re(null);for(let E=0,R=S.length;E<R;E++){const N=S[E];N.prefixLength>0&&this.rootNode.buildTree(N,N.prefixLength-1)}}P.prototype={decode(S){return this.rootNode.decodeNode(S)},assignPrefixCodes(S){const T=S.length;let E=0;for(let Y=0;Y<T;Y++)E=Math.max(E,S[Y].prefixLength);const R=new Uint32Array(E+1);for(let Y=0;Y<T;Y++)R[S[Y].prefixLength]++;let N=1,W=0,H,K,ee;for(R[0]=0;N<=E;){for(W=W+R[N-1]<<1,H=W,K=0;K<T;)ee=S[K],ee.prefixLength===N&&(ee.prefixCode=H,H++),K++;N++}}};function U(S,T,E){const R=S[T],N=_e(S,T+1)&4294967295,W=_e(S,T+5)&4294967295,H=new oe(S,T+9,E),K=(R>>1&7)+1,ee=(R>>4&7)+1,Y=[];let Q,t,z=N;do Q=H.readBits(K),t=H.readBits(ee),Y.push(new ne([z,Q,t,0])),z+=1<<t;while(z<W);return Q=H.readBits(K),Y.push(new ne([N-1,Q,32,0,"lower"])),Q=H.readBits(K),Y.push(new ne([W,Q,32,0])),R&1&&(Q=H.readBits(K),Y.push(new ne([Q,0]))),new P(Y,!1)}const h={};function $(S){let T=h[S];if(T)return T;let E;switch(S){case 1:E=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:E=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:E=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:E=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:E=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:E=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:E=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:E=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:E=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:E=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:E=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:E=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:E=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:E=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:E=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new we(`standard table B.${S} does not exist`)}for(let R=0,N=E.length;R<N;R++)E[R]=new ne(E[R]);return T=new P(E,!0),h[S]=T,T}function oe(S,T,E){this.data=S,this.start=T,this.end=E,this.position=T,this.shift=-1,this.currentByte=0}oe.prototype={readBit(){if(this.shift<0){if(this.position>=this.end)throw new we("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const S=this.currentByte>>this.shift&1;return this.shift--,S},readBits(S){let T=0,E;for(E=S-1;E>=0;E--)T|=this.readBit()<<E;return T},byteAlign(){this.shift=-1},next(){return this.position>=this.end?-1:this.data[this.position++]}};function J(S,T,E){let R=0;for(let N=0,W=T.length;N<W;N++){const H=E[T[N]];if(H){if(S===R)return H;R++}}throw new we("can't find custom Huffman table")}function ue(S,T,E,R,N){const W=[];for(let z=0;z<=34;z++){const I=N.readBits(4);W.push(new ne([z,I,0,0]))}const H=new P(W,!1);W.length=0;for(let z=0;z<R;){const I=H.decode(N);if(I>=32){let x,_,B;switch(I){case 32:if(z===0)throw new we("no previous value in symbol ID table");_=N.readBits(2)+3,x=W[z-1].prefixLength;break;case 33:_=N.readBits(3)+3,x=0;break;case 34:_=N.readBits(7)+11,x=0;break;default:throw new we("invalid code length in symbol ID table")}for(B=0;B<_;B++)W.push(new ne([z,x,0,0])),z++}else W.push(new ne([z,I,0,0])),z++}N.byteAlign();const K=new P(W,!1);let ee=0,Y,Q,t;switch(S.huffmanFS){case 0:case 1:Y=$(S.huffmanFS+6);break;case 3:Y=J(ee,T,E),ee++;break;default:throw new we("invalid Huffman FS selector")}switch(S.huffmanDS){case 0:case 1:case 2:Q=$(S.huffmanDS+8);break;case 3:Q=J(ee,T,E),ee++;break;default:throw new we("invalid Huffman DS selector")}switch(S.huffmanDT){case 0:case 1:case 2:t=$(S.huffmanDT+11);break;case 3:t=J(ee,T,E),ee++;break;default:throw new we("invalid Huffman DT selector")}if(S.refinement)throw new we("refinement with Huffman is not supported");return{symbolIDTable:K,tableFirstS:Y,tableDeltaS:Q,tableDeltaT:t}}function ie(S,T,E){let R=0,N,W;switch(S.huffmanDHSelector){case 0:case 1:N=$(S.huffmanDHSelector+4);break;case 3:N=J(R,T,E),R++;break;default:throw new we("invalid Huffman DH selector")}switch(S.huffmanDWSelector){case 0:case 1:W=$(S.huffmanDWSelector+2);break;case 3:W=J(R,T,E),R++;break;default:throw new we("invalid Huffman DW selector")}let H,K;return S.bitmapSizeSelector?(H=J(R,T,E),R++):H=$(1),S.aggregationInstancesSelector?K=J(R,T,E):K=$(1),{tableDeltaHeight:N,tableDeltaWidth:W,tableBitmapSize:H,tableAggregateInstances:K}}function le(S,T,E){const R=[];for(let N=0;N<E;N++){const W=new Uint8Array(T);R.push(W);for(let H=0;H<T;H++)W[H]=S.readBit();S.byteAlign()}return R}function Z(S,T,E,R){const N=new yi(S,{K:-1,Columns:T,Rows:E,BlackIs1:!0,EndOfBlock:R}),W=[];let H,K=!1;for(let ee=0;ee<E;ee++){const Y=new Uint8Array(T);W.push(Y);let Q=-1;for(let t=0;t<T;t++)Q<0&&(H=N.readNextChar(),H===-1&&(H=0,K=!0),Q=7),Y[t]=H>>Q&1,Q--}if(R&&!K)for(let Y=0;Y<5&&N.readNextChar()!==-1;Y++);return W}function j(){}return j.prototype={parseChunks(S){return D(S)},parse(S){const{imgData:T,width:E,height:R}=q(S);return this.width=E,this.height=R,T}},j})()})),xi,ki,Ai,pt,mt,rr,Be,gt,wt,Ue,bt,Ci,Si,Ei,Fi,Di,Pi,Ti,Ii,Bi,Oi,zi,Li,ir,nr,ar,or,Ni,Ri,Ze,Vi,Mi,Qn=fe((()=>{xi=cr(Rn(),1),ki=cr(Zn(),1),Gt(),Kn(),Ai=()=>{globalThis.global||(globalThis.global=globalThis),globalThis.xmlParseFlag=0},pt=function(o){return o?Array.isArray(o)?o:[o]:[]},mt=function(o,u){let r=[];for(const d of pt(o))d&&(r=r.concat(pt(d[u])));return r},rr=new WeakMap,Be=function(o){if(!o)return"";let u=String(o).replace(/\\/g,"/").trim();try{u=decodeURIComponent(u)}catch{}u=u.replace(/^\/+/,"").replace(/^\.\//,"").replace(/\/+/g,"/");const r=[];for(const d of u.split("/"))if(!(!d||d===".")){if(d===".."){r.pop();continue}r.push(d)}return r.join("/")},gt=function(...o){return Be(o.filter(Boolean).join("/"))},wt=function(o,u){const r=Be(o),d=Be(u);return r===d||r.startsWith(`${d}/`)},Ue=function(o,u){const r=pt(u).map(Be).filter(Boolean);for(const i of r)if(o.files[i])return o.files[i];let d=rr.get(o);if(!d){d=new Map;for(const i of Object.keys(o.files))d.set(Be(i).toLowerCase(),o.files[i]);rr.set(o,d)}for(const i of r){const n=d.get(i.toLowerCase());if(n)return n}return null},bt=function(o,u){const r=Be(o);return!r||wt(r,u)?r:gt(u,r)},Ci=function(o,u,r){const d=Be(o),i=Be(u),n=[d];i&&!wt(d,i)&&n.push(gt(i,d));const a=[];for(const e of n)a.push(e),e&&!wt(e,r)&&a.push(gt(r,e));return[...new Set(a.filter(Boolean))]},Si=function(o){const u=o?o.toLowerCase():"";return u==="jpg"||u==="jpeg"?"image/jpeg":u==="gif"?"image/gif":u==="bmp"?"image/bmp":u==="webp"?"image/webp":"image/png"},Ei=function(o){return new Promise((u,r)=>{xi.default.loadAsync(o).then(function(d){u(d)},function(d){r(d)})})},Fi=async function(o){const u=(await Ze(o,"OFD.xml")).json["ofd:OFD"]["ofd:DocBody"];let r=[];return r=r.concat(u),[o,r]},Di=async function([o,u]){let r=[];for(let d of u)if(d){let i=await Pi(o,d);i=await Ti(i),i=await Bi(i),i=await Oi(i),i=await zi(i),i=await Li(i),r.push(i)}return r},Pi=async function(o,u){let r=u["ofd:DocRoot"];r=Be($t(r));const d=r.split("/")[0],i=u["ofd:Signatures"],n=await Ni(o,i,d);let a={};for(const e of n)if(e.sealObj&&Object.keys(e.sealObj).length>0){if(e.sealObj.type==="ofd"){const f=await Ri(e);for(let v of f)e.stampAnnot.boundary=Le(e.stampAnnot["@_Boundary"]),e.stampAnnot.pageRef=e.stampAnnot["@_PageRef"],a[e.stampAnnot["@_PageRef"]]||(a[e.stampAnnot["@_PageRef"]]=[]),a[e.stampAnnot["@_PageRef"]].push({type:"ofd",obj:v,stamp:e})}else if(e.sealObj.type==="png"){let f="data:image/png;base64,"+btoa(String.fromCharCode.apply(null,e.sealObj.ofdArray)),v=[];v=v.concat(e.stampAnnot);for(const y of v)if(y){const A={img:f,pageId:y["@_PageRef"],boundary:Le(y["@_Boundary"]),clip:Le(y["@_Clip"])};a[y["@_PageRef"]]||(a[y["@_PageRef"]]=[]),a[y["@_PageRef"]].push({type:"png",obj:A,stamp:e})}}}return[o,d,r,a]},Ti=async function([o,u,r,d]){const i=(await Ze(o,r)).json["ofd:Document"];let n=i["ofd:Annotations"],a=[],e;return n&&(n.indexOf("/")!==-1&&(e=n.substring(0,n.indexOf("/"))),n.indexOf(u)===-1&&(n=`${u}/${n}`),Ue(o,n)&&(n=await Ze(o,n),a=a.concat(n.json["ofd:Annotations"]["ofd:Page"]))),[o,u,i,d,await Ii(e,a,u,o)]},Ii=async function(o,u,r,d){let i={};for(let n of u){if(!n)continue;const a=n["@_PageID"];let e=n["ofd:FileLoc"];if(e&&(e=Be($t(e)),o&&e.indexOf(o)===-1&&(e=`${o}/${e}`),e.indexOf(r)===-1&&(e=`${r}/${e}`),Ue(d,e))){const f=await Ze(d,e);let v=[];v=v.concat(f.json["ofd:PageAnnot"]["ofd:Annot"]),i[a]||(i[a]=[]);for(let y of v){if(!y)continue;const A=y["@_Type"],k=y["@_Visible"]?y["@_Visible"]:!0;let p={type:A,appearance:y["ofd:Appearance"],visible:k};i[a].push(p)}}}return i},Bi=async function([o,u,r,d,i]){let n=r["ofd:CommonData"]["ofd:DocumentRes"],a={},e={},f={};if(n&&(n=bt(n,u),Ue(o,n))){const v=(await Ze(o,n)).json["ofd:Res"];a=await ir(v),e=await nr(v),f=await ar(o,v,u)}return[o,u,r,d,i,a,e,f]},Oi=async function([o,u,r,d,i,n,a,e]){let f=r["ofd:CommonData"]["ofd:PublicRes"];if(f&&(f=bt(f,u),Ue(o,f))){const v=(await Ze(o,f)).json["ofd:Res"];let y=await ir(v);n=Object.assign(n,y);let A=await nr(v);a=Object.assign(a,A);let k=await ar(o,v,u);e=Object.assign(e,k)}return[o,u,r,d,i,n,a,e]},zi=async function([o,u,r,d,i,n,a,e]){let f=r["ofd:CommonData"]["ofd:TemplatePage"],v=[];v=v.concat(f);let y={};for(const A of v)if(A){let k=await or(o,A,u);y[Object.keys(k)[0]]=k[Object.keys(k)[0]]}return[o,u,r,d,i,y,n,a,e]},Li=async function([o,u,r,d,i,n,a,e,f]){let v=r["ofd:Pages"]["ofd:Page"],y=[];y=y.concat(v);let A=[];for(const k of y)if(k){let p=await or(o,k,u);const b=Object.keys(p)[0],s=d[b];s&&(p[b].stamp=s);const w=i[b];w&&(p[b].annotation=w),A.push(p)}return{doc:u,document:r,pages:A,tpls:n,stampAnnot:d,fontResObj:a,drawParamResObj:e,multiMediaResObj:f}},ir=async function(o){const u=o["ofd:Fonts"];let r={};if(u){let d=mt(u,"ofd:Font");for(const i of d)i&&(i["@_FamilyName"]?r[i["@_ID"]]=i["@_FamilyName"]:r[i["@_ID"]]=i["@_FontName"])}return r},nr=async function(o){const u=o["ofd:DrawParams"];let r={};if(u){let d=mt(u,"ofd:DrawParam");for(const i of d)i&&(r[i["@_ID"]]={LineWidth:i["@_LineWidth"],FillColor:i["ofd:FillColor"]?i["ofd:FillColor"]["@_Value"]:"",StrokeColor:i["ofd:StrokeColor"]?i["ofd:StrokeColor"]["@_Value"]:"",relative:i["@_Relative"]})}return r},ar=async function(o,u,r){const d=u["ofd:MultiMedias"];let i={};if(d){let n=mt(d,"ofd:MultiMedia");for(const a of n)if(a&&a["ofd:MediaFile"]){const e=Ci(a["ofd:MediaFile"],u["@_BaseLoc"],r),f=Ue(o,e)?e:null;if((a["@_Type"]?a["@_Type"].toLowerCase():"")==="image"){const v=a["@_Format"],y=ti(e[0]);if(v&&(v.toLowerCase()==="gbig2"||v.toLowerCase()==="jb2")||y&&(y.toLowerCase()==="jb2"||y.toLowerCase()==="gbig2")){const A=await Vi(o,e);A&&(i[a["@_ID"]]=A)}else{const A=v||y||"png",k=await Mi(o,e,Si(A));k&&(i[a["@_ID"]]={img:k,format:A.toLowerCase()})}}else i[a["@_ID"]]=f?f[0]:e[0]}}return i},or=async function(o,u,r){let d=u["@_BaseLoc"];d=bt(d,r);const i=await Ze(o,d);let n={};return n[u["@_ID"]]={json:i.json["ofd:Page"],xml:i.xml},n},Ni=async function(o,u,r){return[]},Ri=function(){return Promise.resolve([])},Ze=async function(o,u){return new Promise((r,d)=>{const i=Ue(o,u);if(!i){d(new Error(`OFD XML resource not found: ${Be(u)}`));return}i.async("string").then(function(n){Ai(),r({xml:n,json:ki.parse(n,{attributeNamePrefix:"@_",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1})})},function(a){d(a)})})},Vi=async function(o,u){return new Promise((r,d)=>{const i=Ue(o,u);if(!i){r(null);return}i.async("uint8array").then(function(n){let a=new _i;r({img:a.parse(n),width:a.width,height:a.height,format:"gbig2"})},function(a){d(a)})})},Mi=async function(o,u,r="image/png"){return new Promise((d,i)=>{const n=Ue(o,u);if(!n){d(null);return}n.async("base64").then(function(a){d(`data:${r};base64,`+a)},function(e){i(e)})})}})),ea=xt({calPageBox:()=>Xt,calPageBoxScale:()=>Yt,digestCheck:()=>Zi,getPageScale:()=>qi,parseOfdDocument:()=>Ui,renderOfd:()=>Wi,renderOfdByScale:()=>Hi,renderPage:()=>ft,setPageScale:()=>$i}),Ui,ji,Wi,Hi,Zi,$i,qi,ta=fe((()=>{Ln(),Nn(),Qn(),Gt(),Ui=function(o){o.ofd instanceof File||o.ofd instanceof Blob||o.ofd instanceof ArrayBuffer?ji(o):o.fail?.(new Error("OFD 预览只接收 File、Blob 或 ArrayBuffer 数据"))},ji=function(o){pi.call(this,async()=>await Ei(o.ofd),Fi,Di).then(u=>{o.success&&o.success(u)}).catch(u=>{console.log(u),o.fail&&o.fail(u)})},Wi=function(o,u){let r=[];if(!u)return r;for(const d of u.pages){let i=Xt(o,u.document,d);const n=Object.keys(d)[0];let a=document.createElement("div");a.id=n,a.setAttribute("style",`margin-bottom: 20px;position: relative;width:${i.w}px;height:${i.h}px;background: white;`),ft(a,d,u.tpls,u.fontResObj,u.drawParamResObj,u.multiMediaResObj),r.push(a)}return r},Hi=function(o){let u=[];if(!o)return u;for(const r of o.pages){let d=Yt(o.document,r);const i=Object.keys(r)[0];let n=document.createElement("div");n.id=i,n.setAttribute("style",`margin-bottom: 20px;position: relative;width:${d.w}px;height:${d.h}px;background: white;`),ft(n,r,o.tpls,o.fontResObj,o.drawParamResObj,o.multiMediaResObj),u.push(n)}return u},Zi=function(o){return o?.arr,!1},$i=function(o){Ht(o)},qi=function(){return Qr()}})),ra=xt({default:()=>ia});async function ia(o,u,r){const d=u.ownerDocument||document,i=d.defaultView||(typeof window<"u"?window:null),n=Pt();let a=!1,e=0,f=null,v=0,y=0,A="loading",k="",p=1,b=null;const s=Yi(d),w=_t(d,"div","ofd-viewer");w.dataset.viewerZoomProvider="ofd";const m=_t(d,"div","ofd-state","正在解析 OFD...");m.setAttribute("aria-live","polite");const c=_t(d,"div","ofd-stage");w.append(m,c),u.replaceChildren(s,w);const l=()=>{c.replaceChildren()},g=()=>{m.hidden=A==="ready",m.classList.toggle("error",A==="error"),m.textContent=A==="error"?k:"正在解析 OFD..."},C=async U=>(b||(b=Qi(U,o).then(h=>{const $=h[0];if(!$)throw new Error("OFD 文件中没有可渲染的文档");return $})),b),F=()=>{const U=w.getBoundingClientRect().width||c.getBoundingClientRect().width||0;return Math.max(Math.floor(U-48),240)},D=()=>({scale:p,label:`${Math.round(p*100)}%`,canZoomIn:p<yt,canZoomOut:p>vt,canReset:p!==1,minScale:vt,maxScale:yt}),q=()=>{const U=i?.HTMLElement||globalThis.HTMLElement;c.querySelectorAll(".ofd-page-frame").forEach(h=>{const $=h.firstElementChild;if(!U||!($ instanceof U))return;$.style.position="absolute",$.style.top="0",$.style.left="50%",$.style.transform=`translateX(-50%) scale(${p})`,$.style.transformOrigin="top center",$.style.marginLeft="0",$.style.marginRight="0";const oe=$.offsetWidth,J=$.offsetHeight;!oe||!J||(h.style.width=`${Math.ceil(oe*p)}px`,h.style.height=`${Math.ceil(J*p)}px`)})},L=U=>(p=Ki(U),q(),n.emit(),D());Ft(w,{zoomIn:()=>L(p+sr),zoomOut:()=>L(p-sr),resetZoom:()=>L(1),setZoom:L,getState:D,subscribe:n.subscribe});const ne=async U=>{const h=await Xi(),$=await C(h);return a?[]:Promise.resolve(h.renderOfd(U,$))},re=async(U={})=>{var h;if(a)return;const $=F();if(!U.force&&A==="ready"&&Math.abs($-y)<8)return;const oe=++e;(U.showLoading||A!=="ready")&&(A="loading",l(),g()),k="";try{await lr(i);const J=await ne($);if(a||oe!==e)return;l(),en(d,c,J),y=$,await lr(i),q(),A="ready",g(),n.emit(),(h=r?.onProgressiveRender)===null||h===void 0||h.call(r)}catch(J){if(a||oe!==e)return;console.error(J),A="error",k=Ji(J)||"OFD 文件解析失败",g()}},P=()=>{!i?.ResizeObserver||f||(f=new i.ResizeObserver(()=>{i.clearTimeout(v),v=i.setTimeout(()=>{re({showLoading:!1})},180)}),f.observe(w))};return re({force:!0,showLoading:!0}).finally(()=>{a||P()}),{$el:w,unmount(){var U;a=!0,e+=1,i?.clearTimeout(v),f?.disconnect(),f=null,Dt(w),l(),(U=r?.registerExportAdapter)===null||U===void 0||U.call(r,null)}}}var vt,yt,sr,Gi,Xi,Yi,_t,Ji,Ki,lr,Qi,en,na=fe((()=>{Gr(),vt=.35,yt=3,sr=.1,Gi=`
|
|
19
19
|
.ofd-viewer{position:relative;box-sizing:border-box;min-height:100%;background:#e9edf2;color:#172033;font-family:Aptos,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}
|
|
20
20
|
.ofd-viewer *{box-sizing:border-box}
|
|
21
21
|
.ofd-stage{min-height:100%;padding:18px 0 28px;overflow:auto;scrollbar-gutter:stable}
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
.file-viewer[data-viewer-theme='dark'] .ofd-state{background:rgba(15,23,42,.9);color:#cbd5e1}
|
|
29
29
|
@media (prefers-color-scheme:dark){.file-viewer[data-viewer-theme='system'] .ofd-viewer{background:#172033;color:#e5eef8}.file-viewer[data-viewer-theme='system'] .ofd-state{background:rgba(15,23,42,.9);color:#cbd5e1}}
|
|
30
30
|
@media print{.ofd-viewer{background:#fff!important}.ofd-stage{padding:0!important;overflow:visible!important}.ofd-page-frame{break-after:page;page-break-after:always;margin:0 auto!important}.ofd-page-frame:last-child{break-after:auto;page-break-after:auto}.ofd-page{box-shadow:none!important;transition:none!important}}
|
|
31
|
-
`,
|
|
31
|
+
`,Xi=(()=>{let o=null;return()=>(o||(o=Promise.resolve().then(()=>(ta(),ea))),o)})(),Yi=o=>{const u=o.createElement("style");return u.textContent=Gi,u},_t=(o,u,r,d)=>{const i=o.createElement(u);return r&&(i.className=r),d!==void 0&&(i.textContent=d),i},Ji=o=>{if(o instanceof Error)return o.message;if(typeof o=="string")return o;try{return JSON.stringify(o)}catch{return String(o||"OFD 文件解析失败")}},Ki=o=>Math.min(yt,Math.max(vt,Number(o.toFixed(2)))),lr=o=>new Promise(u=>{if(o?.requestAnimationFrame){o.requestAnimationFrame(()=>u());return}globalThis.setTimeout(u,0)}),Qi=(o,u)=>new Promise((r,d)=>{o.parseOfdDocument({ofd:u,success:i=>r(i),fail:i=>d(i)})}),en=(o,u,r)=>{const d=o.createDocumentFragment();r.forEach(i=>{const n=o.createElement("div");n.className="ofd-page-frame",i.classList.add("ofd-page"),n.appendChild(i),d.appendChild(n)}),u.appendChild(d)}}));Gr();var tn=Ve.find(o=>o.id==="ofd");if(!tn)throw new Error("@file-viewer/renderer-ofd could not locate the core OFD renderer definition.");var rn=tn,aa=(o,u,r,d)=>Promise.resolve().then(()=>(na(),ra)).then(({default:i})=>i(o,u,d)),dr={id:"file-viewer-renderer-ofd",label:"Flyfish File Viewer OFD renderer",definitions:[rn],handlers:[{rendererId:rn.id,handler:aa}]},nn=globalThis,an=nn.FlyfishFileViewerWebFullRenderers||(nn.FlyfishFileViewerWebFullRenderers={});an.ofd=dr,an[dr.id]=dr})();
|