filens-preview 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -6
- package/dist/all-in-one/THIRD-PARTY-NOTICES.txt +169 -0
- package/dist/all-in-one/filens.js +30490 -30284
- package/dist/split/THIRD-PARTY-NOTICES.txt +169 -0
- package/dist/split/chunks/{archive-6Qub9mNw.js → archive-Drem4a-o.js} +2 -2
- package/dist/split/chunks/{cad-EFq1g8br.js → cad-CsU3TiHK.js} +1 -1
- package/dist/split/chunks/{core-Btd5PUTt.js → core-BvtuMqS1.js} +2 -2
- package/dist/split/chunks/{diagram-DF4cLJ7x.js → diagram-BxRNHzmO.js} +2 -2
- package/dist/split/chunks/{docx-_znXEdDw.js → docx-Ch1AvEUX.js} +2 -2
- package/dist/split/chunks/{ebook-DieqKVSP.js → ebook-P42eILp5.js} +2 -2
- package/dist/split/chunks/{iwork-Dfnhl8e6.js → iwork-HnghW_EB.js} +2 -2
- package/dist/split/chunks/media-runtime-kbzoW8bd.js +48 -0
- package/dist/split/chunks/{mindmap-DHsLhGt7.js → mindmap-vFlOJSIq.js} +2 -2
- package/dist/split/chunks/{model3d-wQkZPAgr.js → model3d-BBFXmxkf.js} +3 -3
- package/dist/split/chunks/{panorama-D_kQX6f4.js → panorama-Bw_8HQsv.js} +511 -495
- package/dist/split/chunks/{vendor-DRiz60Cl.js → vendor-Cv2Fxtsf.js} +2 -0
- package/dist/split/chunks/{xlsx-BzBqnY9p.js → xlsx-ypLtJxeq.js} +2 -2
- package/dist/split/converter-core.wasm +0 -0
- package/dist/split/filens.js +968 -823
- package/dist/split/libheif.wasm +0 -0
- package/package.json +1 -1
package/dist/split/filens.js
CHANGED
|
@@ -1,49 +1,192 @@
|
|
|
1
1
|
if(typeof document!=="undefined"){const s=document.createElement("style");s.textContent=".archivev-preview{--archivev-summary-height: 44px;box-sizing:border-box;width:100%;height:100%;min-height:320px;overflow:auto;background:#f7f9fc;color:#1f2937;font-family:system-ui,sans-serif}.archivev-summary{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:16px;box-sizing:border-box;height:var(--archivev-summary-height);padding:12px 16px;border-bottom:1px solid #d7dee8;background:#fff;color:#5b6b81;font:700 12px/1 system-ui,sans-serif}.archivev-breadcrumbs{display:flex;flex:1 1 auto;align-items:center;gap:4px;min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin}.archivev-breadcrumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:0 0 auto;min-width:0;max-width:min(280px,45vw);overflow:hidden;border:0;padding:2px 4px;background:transparent;color:#2563eb;font:700 12px/1.2 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.archivev-breadcrumb:disabled{color:#5b6b81;cursor:default}.archivev-breadcrumb-separator{flex:0 0 auto;color:#9aa8b8;-webkit-user-select:none;user-select:none}.archivev-breadcrumb-current{flex:0 0 auto;max-width:min(320px,50vw);overflow:hidden;color:#1f2937;text-overflow:ellipsis}.archivev-item-count{flex:0 0 auto;color:#7a8798;white-space:nowrap}.archivev-toolbar{position:sticky;top:var(--archivev-summary-height);z-index:1;display:flex;gap:8px;padding:10px 16px;border-bottom:1px solid #e5ebf2;background:#fff}.archivev-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #d7dee8;background:#f8fafc;color:#1f2937;font:600 12px/1 system-ui,sans-serif;padding:7px 10px;cursor:pointer}.archivev-button:disabled{cursor:default;opacity:.6}.archivev-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}.archivev-table th,.archivev-table td{padding:10px 14px;border-bottom:1px solid #e5ebf2;text-align:left;vertical-align:middle;font-size:13px}.archivev-table th{background:#f1f5f9;color:#5b6b81;font-size:12px;font-weight:700}.archivev-row{cursor:pointer}.archivev-row:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:-2px}.archivev-row:hover td{background:#f8fafc}.archivev-entry-preview{box-sizing:border-box;min-height:320px;height:calc(100% - 96px);overflow:auto;background:#fff}.archivev-entry-image{display:block;max-width:100%;max-height:70vh;margin:24px auto;object-fit:contain}.archivev-entry-frame{display:block;width:100%;height:70vh;border:0}.archivev-entry-media{display:block;width:min(100%,720px);margin:32px auto}.archivev-entry-text{box-sizing:border-box;min-height:320px;margin:0;padding:24px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#1f2937;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.archivev-name{width:52%;overflow-wrap:anywhere;font-weight:600}.archivev-name:before{content:\"\";display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:2px;background:#9db3d1}.archivev-name[data-type=directory]:before{background:#2d8f6f}.archivev-type,.archivev-size,.archivev-modified{width:16%;color:#5b6b81;white-space:nowrap}.pptxv-shell{--pptxv-panel: #ffffff;--pptxv-border: #d7dee8;--pptxv-border-strong: #9db3d1;--pptxv-text: #1f2937;--pptxv-muted: #5b6b81;--pptxv-accent: #2563eb;--pptxv-surface: #f3f6fa;display:flex;flex-direction:column;width:100%;height:var(--pptxv-height, clamp(520px, 78vh, 960px));min-height:480px;max-height:100%;color:var(--pptxv-text);background:var(--pptxv-panel);border:1px solid var(--pptxv-border);border-radius:0;overflow:hidden;font-family:system-ui,sans-serif}.pptxv-password-form{display:grid;gap:12px;width:min(340px,calc(100% - 40px));padding:24px;box-sizing:border-box;background:var(--pptxv-panel);border:1px solid var(--pptxv-border);color:var(--pptxv-text);text-align:left}.pptxv-password-form h2{margin:0;font-size:20px}.pptxv-password-form p{margin:0;font-size:14px}.pptxv-password-form label{font-size:14px}.pptxv-password-form input{min-width:0;padding:10px;border:1px solid var(--pptxv-border-strong);border-radius:4px;font:inherit}.pptxv-password-form input:focus-visible{outline:2px solid var(--pptxv-accent);outline-offset:2px}.pptxv-password-error{color:#b91c1c}.pptxv-password-actions{display:flex;justify-content:flex-end;gap:10px}.pptxv-shell:focus-visible{outline:2px solid rgba(37,99,235,.3);outline-offset:0}.pptxv-toolbar{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--pptxv-border);background:#fff}.pptxv-toolbar-group{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.pptxv-toolbar-group+.pptxv-toolbar-group{flex:1 1 auto;justify-content:flex-end;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-gutter:stable}.pptxv-pill--hidden{visibility:hidden}.pptxv-layout{display:flex;min-height:0;flex:1;overflow:hidden}.pptxv-model-tools{display:flex;flex:0 0 auto;min-height:0}.pptxv-button.pptxv-model-tools-toggle{position:absolute;top:12px;left:12px;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0}.pptxv-model-tools-toggle svg{width:20px;height:20px}.pptxv-sidebar{width:204px;flex:0 0 204px;padding:12px;overflow:auto;scrollbar-gutter:stable;scroll-behavior:smooth;scroll-snap-type:y proximity;border-right:1px solid var(--pptxv-border);background:#f6f8fb}.pptxv-meta-sidebar{width:240px;flex:0 0 240px}.pptxv-tree-sidebar{width:260px;flex:0 0 260px}.pptxv-meta-panel{display:grid;gap:10px}.pptxv-meta-heading{color:var(--pptxv-text);font:700 12px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-meta-muted{padding:10px;border:1px dashed var(--pptxv-border);color:var(--pptxv-muted);font:600 12px/1.35 system-ui,sans-serif}.pptxv-meta-list{display:grid;gap:8px;margin:0}.pptxv-material-list{display:grid;gap:8px}.pptxv-material-card{display:grid;gap:8px;padding:10px;border:1px solid var(--pptxv-border);background:#fff}.pptxv-material-card.is-active{border-color:var(--pptxv-accent);background:#eff6ff}.pptxv-material-title-copy{display:grid;gap:2px;min-width:0}.pptxv-material-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.pptxv-material-title strong,.pptxv-material-title span{min-width:0;overflow-wrap:anywhere}.pptxv-material-title strong{color:var(--pptxv-text);font:700 12px/1.35 system-ui,sans-serif}.pptxv-material-title span{color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-material-swatches{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pptxv-material-swatch{width:16px;min-width:16px;height:16px;border:1px solid rgba(15,23,42,.16);box-shadow:inset 0 0 0 1px #ffffff59}.pptxv-material-actions{display:flex;justify-content:flex-start}.pptxv-material-action,.pptxv-material-clear{min-width:96px}.pptxv-material-detail-list{display:grid;gap:6px;margin:0}.pptxv-material-detail-row{display:grid;gap:2px}.pptxv-material-detail-row dt{margin:0;color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-material-detail-row dd{margin:0;color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-meta-row{display:grid;gap:4px;padding:8px 10px;border:1px solid var(--pptxv-border);background:#fff}.pptxv-meta-row dt{margin:0;color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-meta-row dd{margin:0;color:var(--pptxv-text);font:600 12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-tree-reset{flex:1}.pptxv-tree-actions{display:flex;gap:8px}.pptxv-tree-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.pptxv-tree-search-input{width:100%;min-width:0;height:32px;padding:0 10px;border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-text);font:600 12px/1 system-ui,sans-serif}.pptxv-tree-search-clear{min-width:64px}.pptxv-tree-search-status{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-explode{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}.pptxv-tree-explode-label{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-explode-slider{width:100%;min-width:0;margin:0}.pptxv-tree-explode-value{min-width:58px;padding-inline:8px}.pptxv-tree-summary{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--pptxv-border);background:#f8fafc;color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif}.pptxv-tree-summary span,.pptxv-tree-summary strong{min-width:0;overflow-wrap:anywhere}.pptxv-tree-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.pptxv-tree-empty{padding:10px;border:1px dashed var(--pptxv-border);color:var(--pptxv-muted);background:#fff;font:600 12px/1.35 system-ui,sans-serif}.pptxv-tree-detail-row{display:grid;gap:4px;padding:8px 10px;border:1px solid var(--pptxv-border);background:#fff}.pptxv-tree-detail-row dt{margin:0;color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-detail-row dd{margin:0;color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-tree-list{display:grid;gap:6px}.pptxv-tree-row{display:grid;grid-template-columns:20px 16px minmax(0,1fr);gap:6px;align-items:stretch}.pptxv-tree-toggle,.pptxv-tree-spacer{width:20px;min-width:20px;height:100%}.pptxv-tree-toggle{border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;cursor:pointer}.pptxv-tree-spacer{display:block}.pptxv-tree-visibility{width:16px;height:16px;align-self:center;margin:0}.pptxv-tree-button{display:grid;gap:2px;width:100%;min-width:0;padding:8px 10px;border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-text);text-align:left;cursor:pointer}.pptxv-tree-button.is-active{border-color:var(--pptxv-accent);background:#eff6ff}.pptxv-tree-button.is-hidden{opacity:.62}.pptxv-tree-topline{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center}.pptxv-tree-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border:1px solid var(--pptxv-border);background:#f8fafc;color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif}.pptxv-tree-count{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif}.pptxv-tree-kind{color:var(--pptxv-muted);font:700 10px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-tree-label{color:var(--pptxv-text);font:600 12px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}.pptxv-meta-heading-split{display:flex;justify-content:space-between;gap:10px;align-items:center}.pptxv-meta-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.pptxv-meta-count{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif}.pptxv-measurement-controls{display:grid;gap:8px}.pptxv-measurement-group{display:grid;gap:6px}.pptxv-measurement-label{color:var(--pptxv-muted);font:700 11px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.pptxv-measurement-buttons{display:flex;gap:6px;flex-wrap:wrap}.pptxv-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.pptxv-section-value{color:var(--pptxv-text);font:700 12px/1 system-ui,sans-serif}.pptxv-section-slider{width:100%}.pptxv-section-range{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--pptxv-muted);font:600 11px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}.pptxv-section-box{display:grid;gap:10px}.pptxv-main{flex:1;min-width:0;min-height:0;padding:0;overflow:hidden;background:var(--pptxv-surface);contain:layout paint}.pptxv-main-stage{position:relative;width:100%;height:100%;overflow:hidden}.pptxv-main-view{width:100%;height:100%;min-height:420px;overflow:hidden}.pptxv-main-view.iworkv-root{overflow:auto}.pptxv-button{flex:0 0 auto;min-height:28px;border:1px solid var(--pptxv-border);border-radius:4px;padding:6px 12px;background:#fff;color:var(--pptxv-text);font:600 12px/1 system-ui,sans-serif;cursor:pointer;transition:border-color .12s ease,background-color .12s ease,color .12s ease}.pptxv-button.is-active{border-color:var(--pptxv-accent);background:#eff6ff;color:#1d4ed8}.pptxv-button:hover{border-color:var(--pptxv-border-strong);background:#f8fbff}.pptxv-button:disabled{cursor:not-allowed;opacity:.46}.pptxv-status{flex:0 0 96px;max-width:96px;text-align:center;font:600 12px/1 system-ui,sans-serif;color:var(--pptxv-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.pptxv-pill{display:inline-flex;align-items:center;justify-content:center;min-height:26px;flex:0 0 92px;max-width:92px;padding:0 10px;border:1px solid #ead8a2;border-radius:4px;background:#fff9e8;color:#8a5b00;font:600 11px/1 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.pptxv-layer-menu{position:relative}.pptxv-layer-menu--hidden{visibility:hidden;pointer-events:none}.pptxv-layer-menu[open] .pptxv-layer-summary{border-color:var(--pptxv-accent);background:#f4f8ff}.pptxv-layer-summary{display:inline-flex;align-items:center;justify-content:center;width:132px;min-height:28px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.pptxv-layer-summary::-webkit-details-marker{display:none}.pptxv-layer-popover{position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:min(260px,72vw);max-height:320px;overflow:auto;padding:8px;border:1px solid var(--pptxv-border);background:#fff;box-shadow:0 12px 28px #1f293724}.pptxv-layer-actions{display:flex;gap:6px;padding:0 0 8px;border-bottom:1px solid var(--pptxv-border);margin-bottom:6px}.pptxv-layer-action{min-height:26px;padding:0 10px;border:1px solid var(--pptxv-border);border-radius:4px;background:#fff;color:var(--pptxv-text);font:600 11px/1 system-ui,sans-serif;cursor:pointer}.pptxv-layer-row{display:grid;grid-template-columns:16px 14px minmax(0,1fr);align-items:center;gap:8px;min-height:30px;padding:3px 4px;color:var(--pptxv-text);font:600 12px/1.25 system-ui,sans-serif}.pptxv-layer-row input{width:14px;height:14px;margin:0}.pptxv-layer-color{width:12px;height:12px;border:1px solid rgba(31,41,55,.2)}.pptxv-layer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pptxv-thumb-button{display:flex;flex-direction:column;width:100%;margin-bottom:8px;padding:8px;border:1px solid var(--pptxv-border);border-radius:0;background:#fff;cursor:pointer;scroll-snap-align:start;content-visibility:auto;contain-intrinsic-size:0 220px;transition:border-color .12s ease,background-color .12s ease}.pptxv-thumb-button:hover{border-color:var(--pptxv-border-strong);background:#fbfdff}.pptxv-thumb-button.is-active{border-color:var(--pptxv-accent);box-shadow:inset 0 0 0 1px #2563eb1f}.pptxv-thumb-host{width:100%;border-radius:0}.pptxv-thumb-host.is-placeholder{position:relative;overflow:hidden;background:linear-gradient(90deg,#eef3f8,#fff,#eef3f8);background-size:200% 100%;animation:pptxv-thumb-shimmer 1.6s linear infinite}.pptxv-thumb-stage{overflow:hidden;border-radius:0;box-shadow:none}.pptxv-thumb-label{margin-top:6px;text-align:center;color:var(--pptxv-muted);font:600 12px/1 system-ui,sans-serif}.pptxv-overlay{position:absolute;top:12px;right:12px;bottom:12px;left:12px;display:flex;align-items:center;justify-content:center;padding:18px;border:1px solid var(--pptxv-border);border-radius:0;background:#fffffff5;color:var(--pptxv-text);text-align:center;font:600 14px/1.45 system-ui,sans-serif}.pptxv-overlay.is-error{border-color:#c436362e;background:#fff4f4eb;color:#8a1f1f}.pptxv-tabs{display:flex;gap:8px;padding:10px 16px;border-bottom:1px solid var(--pptxv-border);background:#fbfcfe;overflow:auto}.pptxv-tab{min-height:34px;padding:0 12px;border:1px solid var(--pptxv-border);background:#fff;color:var(--pptxv-text);font:600 12px/1 system-ui,sans-serif;white-space:nowrap;cursor:pointer}.pptxv-tab.is-active{border-color:var(--pptxv-accent);box-shadow:inset 0 0 0 1px #2563eb1f}@keyframes pptxv-thumb-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width: 900px){.pptxv-toolbar{flex-wrap:wrap}.pptxv-layout{flex-direction:column}.pptxv-model-tools{flex-direction:column;flex:0 1 auto;max-height:min(40vh,320px);overflow:auto}.pptxv-model-tools .pptxv-sidebar{box-sizing:border-box}.pptxv-sidebar{width:100%;flex:none;display:flex;gap:12px;overflow:auto;scrollbar-gutter:stable both-edges;scroll-snap-type:x proximity;border-right:0;border-bottom:1px solid var(--pptxv-border)}.pptxv-thumb-button{min-width:176px;margin-bottom:0}}.cadv-preview{box-sizing:border-box;width:100%;height:100%;min-height:320px;overflow:auto;background:linear-gradient(#eef3f8 1px,transparent 1px),linear-gradient(90deg,#eef3f8 1px,transparent 1px),#f8fafc;background-size:24px 24px;color:#223245}.cadv-stage{box-sizing:border-box;height:100%;min-width:100%;min-height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;padding:32px}.cadv-canvas{width:100%;height:100%;max-width:min(100%,1200px);max-height:100%;overflow:visible;transform-origin:center center;filter:drop-shadow(0 8px 22px rgba(34,50,69,.12))}.cadv-canvas text{paint-order:stroke;stroke:#f8fafc;stroke-width:2px}.cadv-empty{padding:24px;border:1px solid #cfd8e3;background:#fff;font-weight:700}.diagramv-preview{box-sizing:border-box;width:100%;height:100%;min-height:0;overflow:auto;background:#f6f8fb;color:#1f2937;font-family:system-ui,sans-serif}.diagramv-summary{position:sticky;top:0;z-index:1;padding:12px 16px;border-bottom:1px solid #d7dee8;background:#fff;color:#5b6b81;font:700 12px/1 system-ui,sans-serif}.diagramv-canvas-wrap{margin:0}.diagramv-canvas{display:block;width:100%;height:100%}.diagramv-edge,.diagramv-node{cursor:pointer;outline:none}.diagramv-edge polyline{fill:none}.diagramv-edge text,.diagramv-node text{font:600 13px/1 system-ui,sans-serif;text-anchor:middle;pointer-events:none}.diagramv-edge text{text-anchor:start}.diagramv-edge:hover polyline,.diagramv-edge:focus-visible polyline{stroke:#2563eb}.diagramv-node:hover rect,.diagramv-node:hover ellipse,.diagramv-node:hover polygon,.diagramv-node:focus-visible rect{stroke:#2563eb}.diagramv-node:focus-visible ellipse,.diagramv-node:focus-visible polygon{stroke:#2563eb}.diagramv-edge.is-selected polyline{stroke:#2d8f6f;stroke-width:3}.diagramv-node.is-selected rect{fill:#ecfdf5;stroke:#2d8f6f;stroke-width:2}.diagramv-node.is-selected ellipse,.diagramv-node.is-selected polygon{fill:#ecfdf5;stroke:#2d8f6f;stroke-width:2}.mindmapv-preview{box-sizing:border-box;width:100%;height:100%;min-height:0;overflow:auto;background:#f6f8fb;color:#1f2937;font-family:system-ui,sans-serif}.mindmapv-summary{position:sticky;top:0;z-index:1;padding:12px 16px;border-bottom:1px solid #d7dee8;background:#fff;color:#5b6b81;font:700 12px/1 system-ui,sans-serif}.mindmapv-canvas-wrap{margin:0}.mindmapv-canvas{display:block;width:100%;height:100%}.mindmapv-links path{fill:none;stroke:#9db3d1;stroke-width:2}.mindmapv-node{cursor:pointer;outline:none}.mindmapv-node rect{fill:#fff;stroke:#9db3d1;stroke-width:1.4}.mindmapv-node text{fill:#1f2937;font:600 13px/1 system-ui,sans-serif;pointer-events:none}.mindmapv-node:hover rect,.mindmapv-node:focus-visible rect{stroke:#2563eb}.mindmapv-node.is-selected rect{fill:#ecfdf5;stroke:#2d8f6f;stroke-width:2}.model3dv-preview{width:100%;height:100%;min-height:420px;position:relative;overflow:hidden;background:#111827}.model3dv-stage{width:100%;height:100%;min-height:inherit;cursor:grab;touch-action:none}.model3dv-stage:active{cursor:grabbing}.model3dv-canvas{display:block;width:100%;height:100%}.model3dv-hint{position:absolute;left:14px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);background:#111827b8;color:#e5edf8;font:600 12px/1 system-ui,sans-serif;pointer-events:none}.panoramav-preview{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:360px;overflow:hidden;background:#111827;color:#f8fafc;font-family:system-ui,sans-serif}.panoramav-stage{width:100%;height:100%;min-height:inherit;overflow:hidden}.panoramav-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.panoramav-canvas:active{cursor:grabbing}.panoramav-hint{position:absolute;left:14px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.18);background:#111827b8;color:#f8fafc;font-size:12px;font-weight:700;pointer-events:none}.panoramav-notice{position:absolute;top:14px;right:14px;left:14px;z-index:2;padding:9px 12px;border:1px solid rgba(251,191,36,.5);background:#451a03e0;color:#fef3c7;font-size:12px;line-height:1.45}.panoramav-video-controls{position:absolute;right:14px;bottom:12px;left:14px;z-index:2;width:calc(100% - 28px);height:42px;border-radius:10px;background:#111827db;object-fit:none}.panoramav-calibrated-controls{position:absolute;right:14px;bottom:12px;left:14px;z-index:2;display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:10px;min-height:42px;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#111827db;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.panoramav-calibrated-controls button{min-width:58px;border:0;border-radius:6px;padding:6px 10px;background:#f8fafc;color:#111827;font:inherit;font-weight:700;cursor:pointer}.panoramav-calibrated-controls input{width:100%;accent-color:#f59e0b}.panoramav-calibrated-controls output{min-width:82px;font-size:12px;font-variant-numeric:tabular-nums;text-align:right}.docxv-preview{box-sizing:border-box;width:100%;height:100%;min-height:360px;overflow:auto;padding:24px;background:#eef2f7}.docxv-document{box-sizing:border-box;min-height:100%}.docxv-document .docx-wrapper{background:transparent;padding:0}.docxv-document .docx{margin:0 auto 16px;box-shadow:0 1px 4px #0f172a2e;content-visibility:auto;contain-intrinsic-size:816px 1056px}.xlsxv-preview{box-sizing:border-box;width:100%;height:100%;min-height:360px;overflow:hidden;background:#f8fafc;color:#172033;font-family:system-ui,sans-serif}.xlsxv-sheet-tabs{display:flex;gap:4px;min-height:36px;padding:6px 8px;overflow-x:auto;border-bottom:1px solid #d8dee8;background:#eef2f7}.xlsxv-sheet-tab{min-width:64px;height:24px;border:1px solid #c9d2df;border-radius:4px;background:#fff;color:#2f3b52;font:600 12px/1 system-ui,sans-serif;cursor:pointer}.xlsxv-sheet-tab.is-active{border-color:#2f6bff;color:#1d4fd7}.xlsxv-grid{height:calc(100% - 36px);overflow:auto}.xlsxv-table{border-collapse:collapse;min-width:100%;background:#fff;table-layout:fixed}.xlsxv-corner,.xlsxv-row-header,.xlsxv-col-header,.xlsxv-cell{box-sizing:border-box;height:26px;border:1px solid #d8dee8;padding:4px 8px;font-size:12px;line-height:1.3}.xlsxv-corner,.xlsxv-row-header,.xlsxv-col-header{position:sticky;z-index:2;background:#eef2f7;color:#526070;font-weight:600;text-align:center}.xlsxv-corner,.xlsxv-row-header{left:0;min-width:48px}.xlsxv-corner,.xlsxv-col-header{top:0}.xlsxv-corner{z-index:3}.xlsxv-cell{min-width:96px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.iworkv-root{position:relative;width:100%;height:100%;overflow:auto;background:#dde3ea;color:#1f2937}.iworkv-root.is-loading:before,.iworkv-root.is-error:before{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#dde3eab8;z-index:10;font:600 14px/1.4 system-ui,sans-serif;content:attr(data-status)}.iworkv-stage{min-height:100%;padding:16px;box-sizing:border-box}.iworkv-stage.iworkv-numbers-stage{height:100%;padding:0}.iworkv-numbers-tables{display:grid;gap:24px;padding:16px}.iworkv-numbers-table-title{margin:0 0 8px;color:#526070;font:600 12px/1.3 system-ui,sans-serif}.iworkv-numbers-table{content-visibility:auto}.iworkv-cell-image{display:block;width:100%;max-height:180px;margin-bottom:4px;object-fit:contain}.iworkv-numbers-objects{overflow:auto}.iworkv-numbers-objects .iworkv-page-shell{box-shadow:none}.iworkv-pages{display:grid;gap:18px;justify-content:center}.iworkv-page-shell{position:relative;background:#fff;box-shadow:0 10px 40px #0f172a24}.iworkv-sheet-shell{position:relative;background:linear-gradient(180deg,#f7fafc,#edf2f7);border:1px solid #d6dee8}.pdfv-preview{position:relative;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:start;gap:16px;width:100%;height:100%;min-height:360px;background:#fff;overflow:auto}.pdfv-page-slot{justify-self:start;margin-inline:auto}.pdfv-page{box-sizing:border-box;display:block;border:1px solid #d7dee8;background:#fff}.pptxv-viewer{position:relative;display:flex;width:100%;height:100%;min-height:320px;background:#e6e9ef;overflow:hidden}.pptxv-scroll-area{flex:1;overflow:auto;padding:12px;scroll-behavior:smooth;scroll-padding:12px;scroll-snap-type:y proximity}.pptxv-loading{display:flex;align-items:center;justify-content:center;min-height:240px;color:#395170;font:600 15px/1.4 system-ui,sans-serif}.pptxv-loading--error{color:#8a1f1f}.pptxv-slide-shell{position:relative;contain:layout style;margin:0 auto 18px;scroll-snap-align:start}.pptxv-slide-stage{position:relative;border-radius:0;box-shadow:none;overflow:hidden}.pptxv-slide{position:relative;overflow:hidden;font-family:system-ui,sans-serif}.pptxv-slide--thumbnail{box-shadow:none}.pptxv-item{box-sizing:border-box}.pptxv-item--table,.pptxv-item--chart,.pptxv-item--unsupported{overflow:hidden}.pptxv-item--shape,.pptxv-item--media{overflow:visible}.pptxv-shape-svg{display:block;overflow:visible}.pptxv-text-frame{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box}.pptxv-shape-text{display:block;width:auto;height:auto;box-sizing:border-box}.pptxv-paragraph{margin:0;line-height:1;word-break:normal;overflow-wrap:break-word}.pptxv-run{white-space:pre-wrap}.pptxv-run--tab{display:inline-block;white-space:pre;min-width:4px}.pptxv-run--link{color:inherit;text-decoration-line:underline;text-decoration-color:currentcolor;text-underline-offset:.08em}.pptxv-item-link{cursor:pointer}.pptxv-item-link:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #2f6bffd1,inset 0 0 0 4px #ffffffc2}.pptxv-run--bullet{display:inline-block;min-width:1.2em}.pptxv-run--bullet-auto{min-width:2.4em}.pptxv-image{display:block;-webkit-user-select:none;user-select:none}.pptxv-media-stage{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;background:transparent}.pptxv-media-poster-frame{position:absolute}.pptxv-media-poster,.pptxv-media-player{display:block}.pptxv-media-poster{-webkit-user-select:none;user-select:none;pointer-events:none}.pptxv-media-player--video{background:transparent}.pptxv-media-player--audio{min-width:220px}.pptxv-table{width:100%;height:100%;border-collapse:collapse;table-layout:fixed;background:transparent}.pptxv-table-cell{border:0 solid transparent;vertical-align:top;padding:0}.pptxv-chart-svg{display:block;width:100%;height:100%;overflow:hidden;font-family:Aptos,Calibri,Segoe UI,sans-serif}.pptxv-chart-title,.pptxv-chart-axis-label,.pptxv-chart-category-label,.pptxv-chart-legend{fill:#595959;font-weight:400}.pptxv-chart-gridline{stroke:#bfbfbf;stroke-width:1}.pptxv-chart-axis{stroke:#000;stroke-width:1.25}.pptxv-item--unsupported{display:flex;align-items:center;justify-content:center;border:1px dashed rgba(57,81,112,.35);background:#ffffffb8;color:#395170;font:600 12px/1.3 system-ui,sans-serif}.pptxv-native-preview{box-sizing:border-box;width:100%;height:100%;min-height:280px;font-family:system-ui,sans-serif}.pptxv-native-preview--image,.pptxv-native-preview--video,.pptxv-native-preview--audio{display:flex;align-items:center;justify-content:center;overflow:auto;padding:16px;background:#151923}.pptxv-native-preview--image{cursor:grab;touch-action:none}.pptxv-native-preview--image.is-panning{cursor:grabbing}.pptxv-native-preview--audio{background:radial-gradient(ellipse at 12% 10%,#e3eadd,transparent 65%),#f2f0eb;flex-direction:column;padding:clamp(16px,4%,48px);justify-content:safe center;container-type:inline-size}.pptxv-native-image{display:block;width:auto;height:auto;transform-origin:center center;-webkit-user-select:none;user-select:none}.pptxv-native-media{display:block;max-width:100%}.pptxv-native-media--video{max-height:100%;background:#000}.pptxv-native-media--audio{width:min(640px,100%)}.pptxv-native-audio-cover{display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;object-fit:cover;border-radius:inherit}.pptxv-audio-player{--audio-accent: #40634c;box-sizing:border-box;width:min(880px,100%);flex-shrink:0;margin:auto;color:#283c32;background:#fffefa;border:1px solid #d7dbd0;border-radius:22px;box-shadow:0 16px 56px #243b2c0c;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}.pptxv-audio-player button,.pptxv-audio-player select{font:inherit;cursor:pointer;color:inherit}.pptxv-audio-player button:focus-visible,.pptxv-audio-player select:focus-visible,.pptxv-audio-lyrics:focus-visible{outline:2px solid var(--audio-accent);outline-offset:3px}.pptxv-audio-body{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(24px,5%,56px);padding:clamp(24px,5%,44px)}.pptxv-audio-album{min-width:0}.pptxv-audio-artwork{position:relative;aspect-ratio:1;width:100%;max-width:280px;margin-bottom:26px;border-radius:14px;background:#45644e;box-shadow:0 10px 24px #223b3026;isolation:isolate}.pptxv-audio-placeholder{display:grid;place-items:center;height:100%;overflow:hidden;border-radius:inherit;background:radial-gradient(circle at 25% 15%,#9cab7c,transparent 50%),linear-gradient(145deg,#526c53,#1f3c37)}.pptxv-audio-placeholder span{display:grid;place-items:center;width:66%;aspect-ratio:1;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 15px #ffffff06,0 0 0 30px #ffffff06;color:#e8e8cd;font-size:52px}.pptxv-audio-play{position:absolute;z-index:2;right:14px;bottom:14px;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffffa0;border-radius:50%;color:#293f32!important;background:#fffef4ee;box-shadow:0 4px 16px #0002}.pptxv-audio-play:hover{background:#fff;transform:scale(1.04)}.pptxv-audio-eyebrow{margin:0 0 10px;color:#697c63;font-size:10px;letter-spacing:.16em}.pptxv-audio-eyebrow:before{content:\"\";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#a7b19b}.is-playing .pptxv-audio-eyebrow:before{background:#52835b;box-shadow:0 0 0 4px #52835b18}.pptxv-audio-title{margin:0 0 8px;font-size:clamp(19px,2.4cqw,25px);font-weight:600;line-height:1.4;overflow-wrap:anywhere}.pptxv-audio-details{margin:0 0 18px;color:#6c756b;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.pptxv-audio-import{padding:6px 10px;border:1px solid #dce0d4;border-radius:6px;background:transparent;font-size:11px!important}.pptxv-audio-import:hover{border-color:#95a48c;background:#f3f5ed}.pptxv-audio-lyric-panel{min-width:0;display:flex;flex-direction:column}.pptxv-audio-lyric-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #e8e9e1}.pptxv-audio-lyric-header h3{margin:0;color:#6c756b;font-size:12px;font-weight:500;letter-spacing:.06em}.pptxv-audio-lyrics{position:relative;flex:1 0 auto;height:280px;max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd1c3 transparent;margin-top:12px;padding:40px 0;box-sizing:border-box}.pptxv-audio-lyrics.is-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#7b8375;gap:12px}.pptxv-audio-empty-icon{font-size:42px;color:#a0ae93}.pptxv-audio-lyrics.is-empty p{margin:0;font-size:14px}.pptxv-audio-lyrics.is-empty small{color:#7b8375;font-size:11px;line-height:1.7}.pptxv-audio-lyric{display:block;width:100%;padding:12px 10px;margin:0;border:0;border-left:2px solid transparent;border-radius:0 6px 6px 0;background:transparent;color:#7c8378!important;text-align:left;font-size:14px!important;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere;transition:color .18s,background .18s}.pptxv-audio-lyric:hover{color:#40634c!important;background:#f4f5ee}.pptxv-audio-lyric.is-active{border-left-color:var(--audio-accent);color:#304e39!important;background:#eff3e9;font-weight:600}.pptxv-audio-timing{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;color:#6c756b;font-size:10px}.pptxv-audio-timing[hidden]{display:none}.pptxv-audio-timing button{padding:4px 7px;border:1px solid #e0e3d8;border-radius:4px;background:transparent}.pptxv-audio-timing output{min-width:38px;text-align:center;font-variant-numeric:tabular-nums}.pptxv-audio-status{margin:10px 0 0;color:#707969;font-size:11px;line-height:1.6}.pptxv-audio-status:empty{display:none}.pptxv-audio-footer{display:flex;align-items:center;gap:14px;padding:16px 24px;background:#f3f5ee;border-top:1px solid #e2e6d9}.pptxv-audio-footer audio{width:100%;min-width:0;height:44px;flex:1}.pptxv-audio-extras{display:flex;align-items:center;gap:10px}.pptxv-audio-repeat{width:30px;height:30px;border:1px solid transparent;border-radius:50%;background:transparent;font-size:22px!important}.pptxv-audio-repeat[aria-pressed=true]{color:#355d3e;border-color:#cad7bf;background:#e1ead7}.pptxv-audio-speed{max-width:68px;padding:4px;border:0;border-radius:4px;background:transparent;font-size:12px!important}@container (max-width: 560px){.pptxv-audio-body{grid-template-columns:minmax(0,1fr);gap:24px;padding:24px}.pptxv-audio-album{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:18px;align-content:center}.pptxv-audio-artwork{width:112px;grid-row:span 4;margin:0}.pptxv-audio-eyebrow{margin-bottom:6px;font-size:9px}.pptxv-audio-title{font-size:18px}.pptxv-audio-details{margin-bottom:10px;font-size:11px}.pptxv-audio-play{width:36px;height:36px;right:8px;bottom:8px}.pptxv-audio-placeholder span{font-size:28px}.pptxv-audio-lyrics{flex:none;height:230px}.pptxv-audio-footer{flex-wrap:wrap;gap:6px;padding:12px}.pptxv-audio-footer audio{flex-basis:100%}.pptxv-audio-extras{margin-left:auto}}@media (prefers-reduced-motion: reduce){.pptxv-audio-player *{transition:none!important}}.pptxv-native-preview--text{overflow:auto;background:#f8fafc}.pptxv-native-preview--html{overflow:hidden;background:#fff}.pptxv-native-html-frame{display:block;width:100%;height:100%;min-height:inherit;border:0;background:#fff}.pptxv-native-text-shell{box-sizing:border-box;min-width:100%;min-height:100%;padding:18px}.pptxv-native-text-body{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;min-width:max-content}.pptxv-native-text-gutter{box-sizing:border-box;position:sticky;left:0;z-index:1;white-space:pre;min-width:3.25rem;padding-right:14px;color:#64748b;background:#f8fafc;border-right:1px solid rgba(100,116,139,.2);font:13px/1.55 Consolas,SFMono-Regular,Liberation Mono,Menlo,monospace;text-align:right;-webkit-user-select:none;user-select:none}.pptxv-native-text{box-sizing:border-box;min-width:100%;margin:0;padding-left:14px;color:#1f2937;font:13px/1.55 Consolas,SFMono-Regular,Liberation Mono,Menlo,monospace;-moz-tab-size:2;tab-size:2;white-space:pre-wrap;overflow-wrap:anywhere}.pptxv-native-text[data-wrap=false]{white-space:pre;overflow-wrap:normal}.pptxv-native-text-shell[data-family=code]{color-scheme:dark;background:#0b1220}.pptxv-native-text-shell[data-family=code] .pptxv-native-text-gutter{color:#607089;background:#0b1220;border-right-color:#94a3b82e}.pptxv-native-text[data-family=code]{color:#d7e0ec}.pptxv-token--comment{color:#6f8f72;font-style:italic}.pptxv-token--keyword{color:#f08fc5}.pptxv-token--literal{color:#79b8ff}.pptxv-token--string{color:#e7a873}.pptxv-token--number{color:#a8d58d}.pptxv-token--property{color:#8bd5ff}.pptxv-token--tag,.pptxv-token--type{color:#67d4c0}.pptxv-token--function{color:#e8d17a}.pptxv-token--operator{color:#b9c5d6}.ebookv-preview{box-sizing:border-box;display:grid;grid-template-columns:220px minmax(0,1fr);width:100%;height:100%;min-height:360px;overflow:hidden;background:#f5f7fb;color:#1f2937;font-family:system-ui,sans-serif}.ebookv-chapters{overflow:auto;border-right:1px solid #d7dee8;background:#fff}.ebookv-chapter-tab{display:block;width:100%;min-height:38px;padding:10px 12px;border:0;border-bottom:1px solid #e5ebf2;background:transparent;color:#39485c;text-align:left;font:600 12px/1.35 system-ui,sans-serif;cursor:pointer}.ebookv-chapter-tab:hover{background:#f6f9fd}.ebookv-chapter-tab.is-active{background:#eaf2ff;color:#1f4f94}.ebookv-stage{min-width:0;min-height:0;overflow:hidden;background:#fff}.ebookv-frame{display:block;width:100%;height:100%;min-height:inherit;border:0;background:#fff}@media (max-width: 760px){.ebookv-preview{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.ebookv-chapters{display:flex;gap:0;overflow-x:auto;border-right:0;border-bottom:1px solid #d7dee8}.ebookv-chapter-tab{width:auto;min-width:160px;border-right:1px solid #e5ebf2}}\n";document.head.append(s);}
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { am as
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
import { c as
|
|
9
|
-
import { c as vs, a as
|
|
10
|
-
import { c as
|
|
11
|
-
import { c as
|
|
12
|
-
import { a as
|
|
13
|
-
import { c as
|
|
14
|
-
import { c as
|
|
15
|
-
import { b as
|
|
16
|
-
import { c as
|
|
2
|
+
var Wa = Object.defineProperty;
|
|
3
|
+
var ja = (h, o, i) => o in h ? Wa(h, o, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[o] = i;
|
|
4
|
+
var C = (h, o, i) => ja(h, typeof o != "symbol" ? o + "" : o, i);
|
|
5
|
+
import { am as Ha, an as jt, ao as Ka, ap as Ge, aq as Ya, ar as d, as as s, at as g, au as x, av as E, aw as V, ax as w, ay as Oe, az as Xa, aA as Ht, aB as qa, aC as Ue, aD as Za, aE as j, aF as Kt, aG as c, aH as Qa, aI as v, aJ as We, aK as Ja, aL as es, aM as ts } from "./chunks/vendor-Cv2Fxtsf.js";
|
|
6
|
+
import { p as Zt, n as Qt, D as He, c as Jt, P as as, j as ss, q as ns, t as os, u as is, v as ls } from "./chunks/core-BvtuMqS1.js";
|
|
7
|
+
import { c as rs, a as us } from "./chunks/archive-Drem4a-o.js";
|
|
8
|
+
import { c as cs, a as ds } from "./chunks/cad-CsU3TiHK.js";
|
|
9
|
+
import { c as vs, a as ps } from "./chunks/diagram-BxRNHzmO.js";
|
|
10
|
+
import { c as hs, a as fs } from "./chunks/mindmap-vFlOJSIq.js";
|
|
11
|
+
import { c as ms, a as bs } from "./chunks/model3d-BBFXmxkf.js";
|
|
12
|
+
import { a as gs, b as ys, d as xs, e as ws, R as ks, f as Ss, g as Cs } from "./chunks/panorama-Bw_8HQsv.js";
|
|
13
|
+
import { c as Ms, a as _s } from "./chunks/docx-Ch1AvEUX.js";
|
|
14
|
+
import { c as Ds, a as Rs } from "./chunks/iwork-HnghW_EB.js";
|
|
15
|
+
import { b as Ps, d as Ts } from "./chunks/xlsx-ypLtJxeq.js";
|
|
16
|
+
import { c as Ls, a as Es } from "./chunks/ebook-P42eILp5.js";
|
|
17
17
|
function $s() {
|
|
18
18
|
return [
|
|
19
|
-
|
|
19
|
+
cs(),
|
|
20
20
|
vs(),
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
hs(),
|
|
22
|
+
ms()
|
|
23
23
|
];
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
27
|
-
|
|
25
|
+
function As(h = []) {
|
|
26
|
+
return ds(
|
|
27
|
+
ps(bs(fs(h)))
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const Is = [{
|
|
31
|
+
extensions: ["heic", "heif"],
|
|
32
|
+
family: "image",
|
|
33
|
+
driverId: "heif-image",
|
|
34
|
+
contentTypes: ["image/heic", "image/heif", "image/heic-sequence", "image/heif-sequence"],
|
|
35
|
+
group: "image"
|
|
36
|
+
}];
|
|
37
|
+
function Fs(h) {
|
|
38
|
+
return [{
|
|
39
|
+
id: "heif-image",
|
|
40
|
+
family: "image",
|
|
41
|
+
supports: (o) => ["heic", "heif"].includes(o.replace(/^\./, "").toLowerCase()),
|
|
42
|
+
createSession: (o, i) => new Yt(o, i ?? {}, h ?? gs(), !0)
|
|
43
|
+
}, {
|
|
44
|
+
...Zt(),
|
|
45
|
+
createSession: (o, i) => new Yt(o, i ?? {}, h, !1)
|
|
46
|
+
}];
|
|
47
|
+
}
|
|
48
|
+
class Yt {
|
|
49
|
+
constructor(o, i, n, p) {
|
|
50
|
+
C(this, "child");
|
|
51
|
+
C(this, "controller");
|
|
52
|
+
C(this, "removeAbort");
|
|
53
|
+
C(this, "childListeners", []);
|
|
54
|
+
C(this, "listeners", /* @__PURE__ */ new Map());
|
|
55
|
+
C(this, "state");
|
|
56
|
+
this.host = o, this.options = i, this.converter = n, this.image = p, this.state = { family: p ? "image" : "video", loading: !1, error: null, warnings: [], capabilities: {} };
|
|
57
|
+
}
|
|
58
|
+
async load(o, i) {
|
|
59
|
+
var u, r, M, T;
|
|
60
|
+
this.destroy();
|
|
61
|
+
const n = this.controller = new AbortController(), p = n.signal, f = () => n.abort();
|
|
62
|
+
if ((u = i.signal) == null || u.addEventListener("abort", f, { once: !0 }), this.removeAbort = () => {
|
|
63
|
+
var S;
|
|
64
|
+
return (S = i.signal) == null ? void 0 : S.removeEventListener("abort", f);
|
|
65
|
+
}, p.addEventListener("abort", () => {
|
|
66
|
+
this.controller === n && (this.releaseChild(), this.state = { ...this.state, loading: !1, error: null }, this.emit("statechange", this.state));
|
|
67
|
+
}, { once: !0 }), this.state = { ...this.state, loading: !0, error: null, title: i.descriptor.name, warnings: [] }, this.emit("loading", this.state), this.emit("statechange", this.state), (r = i.signal) != null && r.aborted && n.abort(), p.aborted) return;
|
|
68
|
+
const k = { ...i, signal: p };
|
|
69
|
+
await this.open(
|
|
70
|
+
o,
|
|
71
|
+
k,
|
|
72
|
+
n,
|
|
73
|
+
this.image || this.converter && ((T = ((M = i.route) == null ? void 0 : M.sourceFormat) ?? i.descriptor.extension) == null ? void 0 : T.toLowerCase()) === "mov" ? () => {
|
|
74
|
+
this.convert(o, k, n);
|
|
75
|
+
} : void 0
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
async convert(o, i, n) {
|
|
79
|
+
var p;
|
|
80
|
+
if (!(n.signal.aborted || this.controller !== n)) {
|
|
81
|
+
this.releaseChild(), this.state = { ...this.state, loading: !0, error: null }, this.emit("loading", this.state), this.emit("statechange", this.state);
|
|
82
|
+
try {
|
|
83
|
+
if (!this.converter) throw new Error("No optional media converter is configured.");
|
|
84
|
+
const f = await this.converter.convert({
|
|
85
|
+
source: o,
|
|
86
|
+
sourceFormat: ((p = i.route) == null ? void 0 : p.sourceFormat) ?? i.descriptor.extension ?? (this.image ? "heic" : "mov"),
|
|
87
|
+
targetFormat: this.image ? "png" : "mp4",
|
|
88
|
+
name: i.descriptor.name
|
|
89
|
+
}, i);
|
|
90
|
+
if (n.signal.aborted || this.controller !== n) return;
|
|
91
|
+
await this.open(f.source, {
|
|
92
|
+
...i,
|
|
93
|
+
descriptor: { ...i.descriptor, source: f.source, extension: f.format, contentType: f.contentType },
|
|
94
|
+
route: { family: this.image ? "image" : "video", driverId: this.image ? "image" : "media", sourceFormat: f.format, targetFormat: f.format }
|
|
95
|
+
}, n);
|
|
96
|
+
} catch (f) {
|
|
97
|
+
this.fail(f, n);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async open(o, i, n, p) {
|
|
102
|
+
if (n.signal.aborted || this.controller !== n) return;
|
|
103
|
+
const f = (this.image ? Qt() : Zt()).createSession(this.host, this.options);
|
|
104
|
+
this.child = f;
|
|
105
|
+
const k = () => this.child === f && this.controller === n && !n.signal.aborted;
|
|
106
|
+
for (const u of ["loading", "rendered", "statechange", "error", "warnings"])
|
|
107
|
+
this.childListeners.push(f.on(u, (r) => {
|
|
108
|
+
var M;
|
|
109
|
+
if (k()) {
|
|
110
|
+
if (u === "error" && p) {
|
|
111
|
+
p();
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (u === "rendered" && !this.image && !((M = this.host.querySelector("video")) != null && M.videoWidth)) {
|
|
115
|
+
p ? p() : (this.releaseChild(), this.fail(new Error("The browser cannot decode this video codec. Use a compatible browser or an optional media converter."), n));
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
u === "loading" || u === "rendered" || u === "statechange" ? (this.state = r, this.emit(u, this.state)) : this.emit(u, r);
|
|
119
|
+
}
|
|
120
|
+
}));
|
|
121
|
+
try {
|
|
122
|
+
await f.load(o, i);
|
|
123
|
+
} catch (u) {
|
|
124
|
+
k() && this.fail(u, n);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
fail(o, i) {
|
|
128
|
+
if (i.signal.aborted || this.controller !== i) return;
|
|
129
|
+
const n = o instanceof Error ? o : new Error(String(o));
|
|
130
|
+
this.state = { ...this.state, loading: !1, error: n.message }, this.emit("error", n), this.emit("statechange", this.state);
|
|
131
|
+
}
|
|
132
|
+
getState() {
|
|
133
|
+
return this.state;
|
|
134
|
+
}
|
|
135
|
+
on(o, i) {
|
|
136
|
+
const n = this.listeners.get(o) ?? /* @__PURE__ */ new Set();
|
|
137
|
+
return this.listeners.set(o, n), n.add(i), () => n.delete(i);
|
|
138
|
+
}
|
|
139
|
+
emit(o, i) {
|
|
140
|
+
var n;
|
|
141
|
+
(n = this.listeners.get(o)) == null || n.forEach((p) => p(i));
|
|
142
|
+
}
|
|
143
|
+
setScale(o) {
|
|
144
|
+
var i, n;
|
|
145
|
+
(n = (i = this.child) == null ? void 0 : i.setScale) == null || n.call(i, o);
|
|
146
|
+
}
|
|
147
|
+
fit(o) {
|
|
148
|
+
var i, n;
|
|
149
|
+
(n = (i = this.child) == null ? void 0 : i.fit) == null || n.call(i, o);
|
|
150
|
+
}
|
|
151
|
+
rotate(o) {
|
|
152
|
+
var i, n;
|
|
153
|
+
(n = (i = this.child) == null ? void 0 : i.rotate) == null || n.call(i, o);
|
|
154
|
+
}
|
|
155
|
+
pan(o, i) {
|
|
156
|
+
var n, p;
|
|
157
|
+
(p = (n = this.child) == null ? void 0 : n.pan) == null || p.call(n, o, i);
|
|
158
|
+
}
|
|
159
|
+
async fullscreen() {
|
|
160
|
+
var o, i;
|
|
161
|
+
await ((i = (o = this.child) == null ? void 0 : o.fullscreen) == null ? void 0 : i.call(o));
|
|
162
|
+
}
|
|
163
|
+
destroy() {
|
|
164
|
+
var i;
|
|
165
|
+
const o = this.controller;
|
|
166
|
+
this.controller = void 0, o == null || o.abort(), (i = this.removeAbort) == null || i.call(this), this.removeAbort = void 0, this.releaseChild(), this.state = { ...this.state, loading: !1 };
|
|
167
|
+
}
|
|
168
|
+
releaseChild() {
|
|
169
|
+
var o;
|
|
170
|
+
this.childListeners.splice(0).forEach((i) => i()), (o = this.child) == null || o.destroy(), this.child = void 0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const Ns = /* @__PURE__ */ new Set(["image", "media"]), zs = He.filter((h) => Ns.has(h.driverId));
|
|
174
|
+
function Bs(h = {}) {
|
|
32
175
|
return [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
...
|
|
176
|
+
Qt(),
|
|
177
|
+
...Fs(h.mediaConverter),
|
|
178
|
+
ys({ processor: h.panoramaProcessor }),
|
|
179
|
+
...h.converter ? [xs({ processor: h.panoramaProcessor, converter: h.converter })] : []
|
|
37
180
|
];
|
|
38
181
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
return
|
|
182
|
+
function Vs(h = zs, o = {}) {
|
|
183
|
+
const i = [...Is, ...ws(h)];
|
|
184
|
+
return o.rawPreview ? [...ks, ...i.map((n) => ({
|
|
42
185
|
...n,
|
|
43
|
-
extensions: n.extensions.filter((
|
|
44
|
-
})).filter((n) => n.extensions.length > 0)] :
|
|
186
|
+
extensions: n.extensions.filter((p) => p !== "dng")
|
|
187
|
+
})).filter((n) => n.extensions.length > 0)] : i;
|
|
45
188
|
}
|
|
46
|
-
const
|
|
189
|
+
const Gs = [
|
|
47
190
|
{
|
|
48
191
|
extensions: ["pdf"],
|
|
49
192
|
family: "paged",
|
|
@@ -52,43 +195,43 @@ const Ns = [
|
|
|
52
195
|
contentTypes: ["application/pdf"]
|
|
53
196
|
}
|
|
54
197
|
];
|
|
55
|
-
class
|
|
56
|
-
constructor(
|
|
57
|
-
|
|
198
|
+
class Os {
|
|
199
|
+
constructor(o, i = {}) {
|
|
200
|
+
C(this, "listeners", {
|
|
58
201
|
loading: /* @__PURE__ */ new Set(),
|
|
59
202
|
rendered: /* @__PURE__ */ new Set(),
|
|
60
203
|
error: /* @__PURE__ */ new Set(),
|
|
61
204
|
statechange: /* @__PURE__ */ new Set(),
|
|
62
205
|
warnings: /* @__PURE__ */ new Set()
|
|
63
206
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
207
|
+
C(this, "root");
|
|
208
|
+
C(this, "document", null);
|
|
209
|
+
C(this, "loadingTask", null);
|
|
210
|
+
C(this, "pages", []);
|
|
211
|
+
C(this, "loadGeneration", 0);
|
|
212
|
+
C(this, "renderGeneration", 0);
|
|
213
|
+
C(this, "rendering", null);
|
|
214
|
+
C(this, "renderAgain", !1);
|
|
215
|
+
C(this, "animationFrame", null);
|
|
216
|
+
C(this, "resizeObserver");
|
|
217
|
+
C(this, "removeAbortListener");
|
|
218
|
+
C(this, "dimensions", "");
|
|
219
|
+
C(this, "virtual");
|
|
220
|
+
C(this, "state");
|
|
221
|
+
C(this, "inspectedFontPages", /* @__PURE__ */ new Set());
|
|
222
|
+
C(this, "fonts", /* @__PURE__ */ new Map());
|
|
223
|
+
C(this, "scheduleRender", () => {
|
|
81
224
|
this.animationFrame === null && (this.animationFrame = requestAnimationFrame(() => {
|
|
82
225
|
this.animationFrame = null;
|
|
83
|
-
const
|
|
84
|
-
this.renderVisiblePages().catch((
|
|
85
|
-
if (
|
|
86
|
-
const n =
|
|
226
|
+
const o = this.loadGeneration;
|
|
227
|
+
this.renderVisiblePages().catch((i) => {
|
|
228
|
+
if (o !== this.loadGeneration) return;
|
|
229
|
+
const n = i instanceof Error ? i : new Error(String(i));
|
|
87
230
|
this.state.error = n.message, this.emit("error", n), this.emit("statechange", this.getState());
|
|
88
231
|
});
|
|
89
232
|
}));
|
|
90
233
|
});
|
|
91
|
-
this.host =
|
|
234
|
+
this.host = o, this.root = document.createElement("div"), this.root.className = "pdfv-preview", this.host.replaceChildren(this.root), this.virtual = i.virtual !== !1, this.root.addEventListener("scroll", this.scheduleRender, { passive: !0 }), typeof ResizeObserver < "u" && (this.resizeObserver = new ResizeObserver(() => {
|
|
92
235
|
this.document && this.dimensions !== this.rootDimensions() && this.relayout();
|
|
93
236
|
}), this.resizeObserver.observe(this.root)), this.state = {
|
|
94
237
|
loading: !1,
|
|
@@ -105,77 +248,77 @@ class Bs {
|
|
|
105
248
|
},
|
|
106
249
|
pageIndex: 0,
|
|
107
250
|
pageCount: 0,
|
|
108
|
-
scale:
|
|
109
|
-
fit:
|
|
251
|
+
scale: i.initialScale ?? 1,
|
|
252
|
+
fit: i.fit ?? "contain"
|
|
110
253
|
};
|
|
111
254
|
}
|
|
112
|
-
async load(
|
|
113
|
-
var
|
|
114
|
-
const n =
|
|
115
|
-
(
|
|
116
|
-
const
|
|
255
|
+
async load(o, i) {
|
|
256
|
+
var u;
|
|
257
|
+
const n = i.signal, p = ++this.loadGeneration;
|
|
258
|
+
(u = this.removeAbortListener) == null || u.call(this);
|
|
259
|
+
const f = this.releaseDocument();
|
|
117
260
|
this.state = {
|
|
118
261
|
...this.state,
|
|
119
262
|
loading: !0,
|
|
120
263
|
error: null,
|
|
121
|
-
title:
|
|
264
|
+
title: i.descriptor.name,
|
|
122
265
|
warnings: [],
|
|
123
266
|
pageIndex: 0,
|
|
124
267
|
pageCount: 0
|
|
125
268
|
}, this.emit("loading", this.state), this.emit("statechange", this.state);
|
|
126
269
|
const k = () => {
|
|
127
|
-
|
|
270
|
+
p === this.loadGeneration && (this.loadGeneration++, this.releaseDocument().catch(() => {
|
|
128
271
|
}), this.state.loading = !1, this.state.pageIndex = this.state.pageCount = 0);
|
|
129
272
|
};
|
|
130
273
|
n == null || n.addEventListener("abort", k, { once: !0 }), this.removeAbortListener = () => n == null ? void 0 : n.removeEventListener("abort", k);
|
|
131
274
|
try {
|
|
132
|
-
if (await
|
|
133
|
-
if (
|
|
134
|
-
const [
|
|
135
|
-
|
|
275
|
+
if (await f, n != null && n.aborted) throw je();
|
|
276
|
+
if (p !== this.loadGeneration) return;
|
|
277
|
+
const [r, M, { default: T }] = await Promise.all([
|
|
278
|
+
Hs(o),
|
|
136
279
|
import("./chunks/pdf-CecYOWld.js").then((q) => q.p),
|
|
137
280
|
import("./chunks/pdf-CecYOWld.js").then((q) => q.a)
|
|
138
281
|
]);
|
|
139
|
-
if (n != null && n.aborted) throw
|
|
140
|
-
if (
|
|
141
|
-
|
|
142
|
-
const S =
|
|
143
|
-
...typeof
|
|
144
|
-
password:
|
|
282
|
+
if (n != null && n.aborted) throw je();
|
|
283
|
+
if (p !== this.loadGeneration) return;
|
|
284
|
+
M.GlobalWorkerOptions.workerSrc = T;
|
|
285
|
+
const S = M.getDocument({
|
|
286
|
+
...typeof r == "string" ? { url: r } : { data: r },
|
|
287
|
+
password: i.descriptor.password
|
|
145
288
|
});
|
|
146
289
|
this.loadingTask = S;
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
this.document =
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
152
|
-
const
|
|
153
|
-
if (this.pages = Array.from({ length:
|
|
154
|
-
const
|
|
155
|
-
return
|
|
156
|
-
}), this.root.append(
|
|
290
|
+
const P = await S.promise;
|
|
291
|
+
if (p !== this.loadGeneration) return;
|
|
292
|
+
this.document = P, this.state.pageCount = P.numPages, this.root.setAttribute("role", "document"), this.root.setAttribute("aria-label", i.descriptor.name ?? "PDF preview"), this.root.replaceChildren();
|
|
293
|
+
const H = await P.getPage(1);
|
|
294
|
+
if (p !== this.loadGeneration) return;
|
|
295
|
+
const R = H.getViewport({ scale: 1 }), $ = document.createDocumentFragment();
|
|
296
|
+
if (this.pages = Array.from({ length: P.numPages }, (q, G) => {
|
|
297
|
+
const K = document.createElement("div");
|
|
298
|
+
return K.className = "pdfv-page-slot", K.dataset.pageIndex = String(G), $.append(K), { element: K, width: R.width, height: R.height, page: G === 0 ? H : void 0 };
|
|
299
|
+
}), this.root.append($), this.root.scrollTop = 0, this.layoutPages(), await this.renderVisiblePages(), p !== this.loadGeneration) return;
|
|
157
300
|
this.state.loading = !1, this.state.error = null, this.emit("rendered", this.state), this.emit("statechange", this.state), this.virtual && this.scheduleRender();
|
|
158
|
-
} catch (
|
|
301
|
+
} catch (r) {
|
|
159
302
|
if (n != null && n.aborted)
|
|
160
|
-
throw k(),
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
throw this.state.loading = !1, this.state.error =
|
|
303
|
+
throw k(), je();
|
|
304
|
+
if (p !== this.loadGeneration) return;
|
|
305
|
+
const M = (r == null ? void 0 : r.name) === "PasswordException" ? new as(r.code === 2 ? "password_invalid" : "password_required") : r instanceof Error ? r : new Error(String(r));
|
|
306
|
+
throw this.state.loading = !1, this.state.error = M.message, this.emit("error", M), this.emit("statechange", this.state), M;
|
|
164
307
|
}
|
|
165
308
|
}
|
|
166
309
|
destroy() {
|
|
167
|
-
var
|
|
168
|
-
this.loadGeneration += 1, (
|
|
310
|
+
var o, i;
|
|
311
|
+
this.loadGeneration += 1, (o = this.removeAbortListener) == null || o.call(this), this.root.removeEventListener("scroll", this.scheduleRender), (i = this.resizeObserver) == null || i.disconnect(), this.releaseDocument().catch(() => {
|
|
169
312
|
}), this.root.parentElement === this.host && this.host.replaceChildren();
|
|
170
313
|
}
|
|
171
314
|
getState() {
|
|
172
|
-
var
|
|
173
|
-
return { ...this.state, fonts: (
|
|
315
|
+
var o;
|
|
316
|
+
return { ...this.state, fonts: (o = this.state.fonts) == null ? void 0 : o.map((i) => ({ ...i, classification: i.classification ? { ...i.classification } : void 0 })), warnings: this.state.warnings.slice(), capabilities: { ...this.state.capabilities } };
|
|
174
317
|
}
|
|
175
|
-
goToPage(
|
|
176
|
-
if (!Number.isFinite(
|
|
177
|
-
const
|
|
178
|
-
this.state.pageIndex =
|
|
318
|
+
goToPage(o) {
|
|
319
|
+
if (!Number.isFinite(o) || !this.pages.length) return;
|
|
320
|
+
const i = Math.max(0, Math.min(this.pages.length - 1, Math.trunc(o)));
|
|
321
|
+
this.state.pageIndex = i, this.root.scrollTop = this.pages[i].element.offsetTop, this.emit("statechange", this.getState()), this.scheduleRender();
|
|
179
322
|
}
|
|
180
323
|
next() {
|
|
181
324
|
this.goToPage(this.state.pageIndex + 1);
|
|
@@ -183,79 +326,79 @@ class Bs {
|
|
|
183
326
|
prev() {
|
|
184
327
|
this.goToPage(this.state.pageIndex - 1);
|
|
185
328
|
}
|
|
186
|
-
setScale(
|
|
187
|
-
!Number.isFinite(
|
|
329
|
+
setScale(o) {
|
|
330
|
+
!Number.isFinite(o) || o <= 0 || o === this.state.scale || (this.state.scale = o, this.relayout());
|
|
188
331
|
}
|
|
189
|
-
fit(
|
|
190
|
-
this.state.fit =
|
|
332
|
+
fit(o = "contain") {
|
|
333
|
+
this.state.fit = o, this.relayout();
|
|
191
334
|
}
|
|
192
335
|
fullscreen() {
|
|
193
|
-
var
|
|
194
|
-
return (
|
|
336
|
+
var o, i;
|
|
337
|
+
return (i = (o = this.host).requestFullscreen) == null ? void 0 : i.call(o);
|
|
195
338
|
}
|
|
196
|
-
on(
|
|
197
|
-
return this.listeners[
|
|
198
|
-
this.listeners[
|
|
339
|
+
on(o, i) {
|
|
340
|
+
return this.listeners[o].add(i), () => {
|
|
341
|
+
this.listeners[o].delete(i);
|
|
199
342
|
};
|
|
200
343
|
}
|
|
201
|
-
emit(
|
|
202
|
-
for (const n of this.listeners[
|
|
203
|
-
n(
|
|
344
|
+
emit(o, i) {
|
|
345
|
+
for (const n of this.listeners[o])
|
|
346
|
+
n(i);
|
|
204
347
|
}
|
|
205
|
-
pageScale(
|
|
206
|
-
const
|
|
207
|
-
return this.state.fit === "width" ?
|
|
348
|
+
pageScale(o, i, n = this.root.clientWidth, p = this.root.clientHeight) {
|
|
349
|
+
const f = n > 0 ? n / o : 1, k = p > 0 ? p / i : 1;
|
|
350
|
+
return this.state.fit === "width" ? f * this.state.scale : this.state.fit === "height" ? k * this.state.scale : this.state.fit === "contain" ? Math.min(f, k, 1) * this.state.scale : this.state.scale;
|
|
208
351
|
}
|
|
209
352
|
rootDimensions() {
|
|
210
353
|
return `${this.root.clientWidth}:${this.root.clientHeight}`;
|
|
211
354
|
}
|
|
212
355
|
layoutPages() {
|
|
213
|
-
const
|
|
214
|
-
this.dimensions = `${
|
|
215
|
-
for (const n of this.pages) this.sizeSlot(n,
|
|
356
|
+
const o = this.root.clientWidth, i = this.root.clientHeight;
|
|
357
|
+
this.dimensions = `${o}:${i}`;
|
|
358
|
+
for (const n of this.pages) this.sizeSlot(n, o, i);
|
|
216
359
|
}
|
|
217
|
-
sizeSlot(
|
|
218
|
-
const
|
|
219
|
-
|
|
360
|
+
sizeSlot(o, i, n) {
|
|
361
|
+
const p = this.pageScale(o.width, o.height, i, n);
|
|
362
|
+
o.element.style.width = `${o.width * p}px`, o.element.style.height = `${o.height * p}px`;
|
|
220
363
|
}
|
|
221
364
|
relayout() {
|
|
222
|
-
const
|
|
365
|
+
const o = this.pages[this.state.pageIndex], i = o ? this.root.scrollTop - o.element.offsetTop : 0;
|
|
223
366
|
this.renderGeneration++, this.renderAgain = !0;
|
|
224
367
|
for (const n of this.pages) this.clearCanvas(n);
|
|
225
|
-
this.layoutPages(),
|
|
368
|
+
this.layoutPages(), o && (this.root.scrollTop = o.element.offsetTop + i), this.emit("statechange", this.getState()), this.scheduleRender();
|
|
226
369
|
}
|
|
227
370
|
visiblePages() {
|
|
228
|
-
if (!this.virtual) return this.pages.map((k,
|
|
229
|
-
const
|
|
371
|
+
if (!this.virtual) return this.pages.map((k, u) => u);
|
|
372
|
+
const o = this.root.getBoundingClientRect();
|
|
230
373
|
if (!this.root.clientHeight) return this.pages.length ? [this.state.pageIndex] : [];
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
for (const [k,
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
return
|
|
374
|
+
const i = this.state.loading ? 0 : this.root.clientHeight / 2, n = [];
|
|
375
|
+
let p = this.state.pageIndex, f = -1;
|
|
376
|
+
for (const [k, u] of this.pages.entries()) {
|
|
377
|
+
const r = u.element.getBoundingClientRect();
|
|
378
|
+
r.bottom > o.top - i && r.top < o.bottom + i && n.push(k);
|
|
379
|
+
const M = Math.min(r.bottom, o.bottom) - Math.max(r.top, o.top);
|
|
380
|
+
M > f && (p = k, f = M);
|
|
381
|
+
}
|
|
382
|
+
return p !== this.state.pageIndex && (this.state.pageIndex = p, this.emit("statechange", this.getState())), n;
|
|
240
383
|
}
|
|
241
384
|
async renderVisiblePages() {
|
|
242
385
|
if (this.renderAgain = !0, this.rendering) {
|
|
243
|
-
const
|
|
244
|
-
for (const [
|
|
386
|
+
const p = new Set(this.visiblePages());
|
|
387
|
+
for (const [f, k] of this.pages.entries()) k.task && !p.has(f) && this.clearCanvas(k);
|
|
245
388
|
return this.rendering;
|
|
246
389
|
}
|
|
247
|
-
const
|
|
248
|
-
if (!
|
|
390
|
+
const o = this.loadGeneration, i = this.document;
|
|
391
|
+
if (!i) return;
|
|
249
392
|
const n = (async () => {
|
|
250
393
|
do {
|
|
251
394
|
this.renderAgain = !1;
|
|
252
|
-
const
|
|
253
|
-
for (const [k,
|
|
254
|
-
for (const k of
|
|
255
|
-
if (
|
|
256
|
-
await this.renderPage(
|
|
395
|
+
const p = this.renderGeneration, f = new Set(this.visiblePages());
|
|
396
|
+
for (const [k, u] of this.pages.entries()) f.has(k) || this.clearCanvas(u);
|
|
397
|
+
for (const k of f) {
|
|
398
|
+
if (o !== this.loadGeneration || p !== this.renderGeneration || this.renderAgain) break;
|
|
399
|
+
await this.renderPage(i, k, o, p);
|
|
257
400
|
}
|
|
258
|
-
} while (this.renderAgain &&
|
|
401
|
+
} while (this.renderAgain && o === this.loadGeneration);
|
|
259
402
|
})();
|
|
260
403
|
this.rendering = n;
|
|
261
404
|
try {
|
|
@@ -264,55 +407,55 @@ class Bs {
|
|
|
264
407
|
this.rendering === n && (this.rendering = null);
|
|
265
408
|
}
|
|
266
409
|
}
|
|
267
|
-
async renderPage(
|
|
268
|
-
var
|
|
269
|
-
const
|
|
270
|
-
if (
|
|
271
|
-
const k =
|
|
272
|
-
if (n !== this.loadGeneration ||
|
|
273
|
-
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
const
|
|
280
|
-
S.className = "pdfv-page", S.dataset.pageIndex = String(
|
|
281
|
-
const
|
|
282
|
-
|
|
410
|
+
async renderPage(o, i, n, p) {
|
|
411
|
+
var H;
|
|
412
|
+
const f = this.pages[i];
|
|
413
|
+
if (f.canvas) return;
|
|
414
|
+
const k = f.page ?? await o.getPage(i + 1);
|
|
415
|
+
if (n !== this.loadGeneration || p !== this.renderGeneration) return;
|
|
416
|
+
f.page = k;
|
|
417
|
+
const u = k.getViewport({ scale: 1 });
|
|
418
|
+
if (f.width !== u.width || f.height !== u.height) {
|
|
419
|
+
const R = (H = this.pages[this.state.pageIndex]) == null ? void 0 : H.element, $ = (R == null ? void 0 : R.offsetTop) ?? 0;
|
|
420
|
+
f.width = u.width, f.height = u.height, this.sizeSlot(f), R && (this.root.scrollTop += R.offsetTop - $);
|
|
421
|
+
}
|
|
422
|
+
const r = this.pageScale(u.width, u.height), M = k.getViewport({ scale: r }), T = window.devicePixelRatio || 1, S = document.createElement("canvas");
|
|
423
|
+
S.className = "pdfv-page", S.dataset.pageIndex = String(i), S.setAttribute("role", "img"), S.setAttribute("aria-label", `Page ${i + 1}`), S.width = Math.ceil(M.width * T), S.height = Math.ceil(M.height * T), S.style.width = `${M.width}px`, S.style.height = `${M.height}px`, f.canvas = S, f.element.append(S);
|
|
424
|
+
const P = k.render({ canvas: S, viewport: k.getViewport({ scale: r * T }), background: "#ffffff" });
|
|
425
|
+
f.task = P;
|
|
283
426
|
try {
|
|
284
|
-
await
|
|
285
|
-
} catch (
|
|
286
|
-
if (
|
|
427
|
+
await P.promise, f.canvas === S && (S.dataset.rendered = "true", this.inspectPageFonts(k, i, n));
|
|
428
|
+
} catch (R) {
|
|
429
|
+
if (f.canvas === S && this.clearCanvas(f), n === this.loadGeneration && p === this.renderGeneration && (R == null ? void 0 : R.name) !== "RenderingCancelledException") throw R;
|
|
287
430
|
} finally {
|
|
288
|
-
|
|
431
|
+
f.task === P && (f.task = void 0);
|
|
289
432
|
}
|
|
290
433
|
}
|
|
291
|
-
clearCanvas(
|
|
292
|
-
var
|
|
293
|
-
(
|
|
434
|
+
clearCanvas(o) {
|
|
435
|
+
var i;
|
|
436
|
+
(i = o.task) == null || i.cancel(), o.task = void 0, o.canvas && (o.canvas.width = o.canvas.height = 0, o.canvas.remove(), o.canvas = void 0);
|
|
294
437
|
}
|
|
295
|
-
async inspectPageFonts(
|
|
296
|
-
var
|
|
297
|
-
if (!(n !== this.loadGeneration || this.inspectedFontPages.has(
|
|
298
|
-
this.inspectedFontPages.add(
|
|
438
|
+
async inspectPageFonts(o, i, n) {
|
|
439
|
+
var p;
|
|
440
|
+
if (!(n !== this.loadGeneration || this.inspectedFontPages.has(i))) {
|
|
441
|
+
this.inspectedFontPages.add(i);
|
|
299
442
|
try {
|
|
300
|
-
const
|
|
301
|
-
if (!
|
|
443
|
+
const f = await ((p = o.getTextContent) == null ? void 0 : p.call(o));
|
|
444
|
+
if (!f || n !== this.loadGeneration) return;
|
|
302
445
|
let k = !1;
|
|
303
|
-
for (const [
|
|
304
|
-
this.fonts.has(
|
|
305
|
-
fontId:
|
|
306
|
-
fontFamily:
|
|
446
|
+
for (const [u, r] of Object.entries(f.styles))
|
|
447
|
+
this.fonts.has(u) || (this.fonts.set(u, {
|
|
448
|
+
fontId: u,
|
|
449
|
+
fontFamily: r.fontFamily,
|
|
307
450
|
status: "unknown",
|
|
308
451
|
source: "unknown",
|
|
309
|
-
classification:
|
|
452
|
+
classification: ss(r.fontFamily)
|
|
310
453
|
}), k = !0);
|
|
311
454
|
k && (this.state.fonts = [...this.fonts.values()], this.emit("statechange", this.getState()));
|
|
312
455
|
} catch {
|
|
313
456
|
if (n !== this.loadGeneration) return;
|
|
314
|
-
const
|
|
315
|
-
this.state.warnings = [.../* @__PURE__ */ new Set([...this.state.warnings,
|
|
457
|
+
const f = `Font metadata is unavailable for PDF page ${i + 1}.`;
|
|
458
|
+
this.state.warnings = [.../* @__PURE__ */ new Set([...this.state.warnings, f])], this.emit("warnings", this.state.warnings), this.emit("statechange", this.getState());
|
|
316
459
|
}
|
|
317
460
|
}
|
|
318
461
|
}
|
|
@@ -320,164 +463,164 @@ class Bs {
|
|
|
320
463
|
this.animationFrame !== null && cancelAnimationFrame(this.animationFrame), this.animationFrame = null, this.renderGeneration++;
|
|
321
464
|
for (const n of this.pages) this.clearCanvas(n);
|
|
322
465
|
this.pages = [], this.inspectedFontPages.clear(), this.fonts.clear(), this.state.fonts = [], this.rendering = null, this.renderAgain = !1, this.root.replaceChildren();
|
|
323
|
-
const
|
|
324
|
-
return this.loadingTask = null, this.document = null,
|
|
466
|
+
const o = this.loadingTask, i = this.document;
|
|
467
|
+
return this.loadingTask = null, this.document = null, o ? o.destroy() : (i == null ? void 0 : i.destroy()) ?? Promise.resolve();
|
|
325
468
|
}
|
|
326
469
|
}
|
|
327
|
-
function
|
|
470
|
+
function je() {
|
|
328
471
|
return new DOMException("PDF loading was aborted.", "AbortError");
|
|
329
472
|
}
|
|
330
|
-
function
|
|
473
|
+
function Us() {
|
|
331
474
|
return {
|
|
332
475
|
id: "pdf",
|
|
333
476
|
family: "paged",
|
|
334
|
-
supports: (
|
|
335
|
-
createSession: (
|
|
477
|
+
supports: (h) => js(h) === "pdf",
|
|
478
|
+
createSession: (h, o) => new Os(h, o)
|
|
336
479
|
};
|
|
337
480
|
}
|
|
338
|
-
function
|
|
481
|
+
function Ws(h = Jt()) {
|
|
339
482
|
return [
|
|
340
|
-
...
|
|
341
|
-
...
|
|
483
|
+
...Gs,
|
|
484
|
+
...h.filter((o) => !o.extensions.includes("pdf"))
|
|
342
485
|
];
|
|
343
486
|
}
|
|
344
|
-
function
|
|
345
|
-
return
|
|
487
|
+
function js(h) {
|
|
488
|
+
return h.trim().replace(/^\./, "").toLowerCase();
|
|
346
489
|
}
|
|
347
|
-
async function
|
|
348
|
-
if (typeof
|
|
349
|
-
if (
|
|
350
|
-
if (ArrayBuffer.isView(
|
|
351
|
-
const
|
|
352
|
-
return
|
|
490
|
+
async function Hs(h) {
|
|
491
|
+
if (typeof h == "string") return h;
|
|
492
|
+
if (h instanceof Blob) return new Uint8Array(await h.arrayBuffer());
|
|
493
|
+
if (ArrayBuffer.isView(h)) {
|
|
494
|
+
const o = new Uint8Array(h.buffer, h.byteOffset, h.byteLength), i = new Uint8Array(o.byteLength);
|
|
495
|
+
return i.set(o), i;
|
|
353
496
|
}
|
|
354
|
-
return new Uint8Array(
|
|
497
|
+
return new Uint8Array(h.slice(0));
|
|
355
498
|
}
|
|
356
|
-
const
|
|
357
|
-
function
|
|
499
|
+
const Ks = /* @__PURE__ */ new Set(["pptx", "pdf", "docx", "xlsx"]), Ys = He.filter((h) => Ks.has(h.driverId));
|
|
500
|
+
function Xs() {
|
|
358
501
|
return [
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
502
|
+
ns(),
|
|
503
|
+
Us(),
|
|
504
|
+
Ms(),
|
|
505
|
+
Ps(),
|
|
506
|
+
Ds()
|
|
364
507
|
];
|
|
365
508
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
368
|
-
|
|
509
|
+
function qs(h = Ys) {
|
|
510
|
+
return Rs(
|
|
511
|
+
Ws(_s(Ts(h)))
|
|
369
512
|
);
|
|
370
513
|
}
|
|
371
|
-
const
|
|
372
|
-
function
|
|
373
|
-
return [
|
|
514
|
+
const Zs = /* @__PURE__ */ new Set(["text", "html"]), Qs = He.filter((h) => Zs.has(h.driverId));
|
|
515
|
+
function Js() {
|
|
516
|
+
return [os(), is(), Ls()];
|
|
374
517
|
}
|
|
375
|
-
function
|
|
376
|
-
return
|
|
518
|
+
function en(h = Qs) {
|
|
519
|
+
return Es(h);
|
|
377
520
|
}
|
|
378
|
-
function
|
|
379
|
-
return
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
521
|
+
function tn(h = {}) {
|
|
522
|
+
return qs(
|
|
523
|
+
rs(
|
|
524
|
+
As(
|
|
525
|
+
en(Vs(Jt(), h))
|
|
383
526
|
)
|
|
384
527
|
)
|
|
385
528
|
);
|
|
386
529
|
}
|
|
387
|
-
const
|
|
530
|
+
const an = ["aria-label"], sn = {
|
|
388
531
|
key: 0,
|
|
389
532
|
class: "pptxv-toolbar"
|
|
390
|
-
},
|
|
533
|
+
}, nn = { class: "pptxv-toolbar-group" }, on = ["disabled"], ln = ["disabled"], rn = { class: "pptxv-status" }, un = { class: "pptxv-button pptxv-layer-summary" }, cn = { class: "pptxv-layer-popover" }, dn = ["checked", "onChange"], vn = { class: "pptxv-layer-name" }, pn = { class: "pptxv-toolbar-group" }, hn = ["disabled"], fn = { class: "pptxv-status" }, mn = ["disabled"], bn = ["disabled"], gn = ["disabled"], yn = ["disabled"], xn = ["disabled"], wn = ["disabled"], kn = ["disabled"], Sn = ["disabled"], Cn = { class: "pptxv-layout" }, Mn = { class: "pptxv-sidebar pptxv-tree-sidebar" }, _n = { class: "pptxv-meta-panel" }, Dn = { class: "pptxv-tree-actions" }, Rn = ["disabled"], Pn = ["disabled"], Tn = { class: "pptxv-tree-search" }, Ln = ["disabled"], En = { class: "pptxv-tree-search-status" }, $n = {
|
|
391
534
|
key: 0,
|
|
392
535
|
class: "pptxv-tree-explode"
|
|
393
|
-
},
|
|
536
|
+
}, An = ["value"], In = {
|
|
394
537
|
key: 1,
|
|
395
538
|
class: "pptxv-tree-summary"
|
|
396
|
-
},
|
|
539
|
+
}, Fn = {
|
|
397
540
|
key: 2,
|
|
398
541
|
class: "pptxv-measurement-controls"
|
|
399
|
-
},
|
|
542
|
+
}, Nn = { class: "pptxv-measurement-group" }, zn = { class: "pptxv-measurement-buttons" }, Bn = {
|
|
400
543
|
key: 0,
|
|
401
544
|
class: "pptxv-measurement-group"
|
|
402
|
-
},
|
|
545
|
+
}, Vn = { class: "pptxv-measurement-buttons" }, Gn = {
|
|
403
546
|
key: 3,
|
|
404
547
|
class: "pptxv-tree-detail-list"
|
|
405
|
-
},
|
|
548
|
+
}, On = { class: "pptxv-tree-list" }, Un = ["aria-label", "onClick"], Wn = {
|
|
406
549
|
key: 1,
|
|
407
550
|
class: "pptxv-tree-spacer"
|
|
408
|
-
},
|
|
551
|
+
}, jn = ["checked", "aria-label", "onChange"], Hn = ["onClick"], Kn = { class: "pptxv-tree-topline" }, Yn = { class: "pptxv-tree-badge" }, Xn = { class: "pptxv-tree-label" }, qn = {
|
|
409
552
|
key: 0,
|
|
410
553
|
class: "pptxv-tree-count"
|
|
411
|
-
},
|
|
554
|
+
}, Zn = { class: "pptxv-tree-kind" }, Qn = {
|
|
412
555
|
key: 4,
|
|
413
556
|
class: "pptxv-tree-empty"
|
|
414
|
-
},
|
|
557
|
+
}, Jn = { class: "pptxv-meta-muted" }, eo = { class: "pptxv-sidebar pptxv-meta-sidebar" }, to = { class: "pptxv-meta-panel" }, ao = {
|
|
415
558
|
key: 0,
|
|
416
559
|
class: "pptxv-meta-list"
|
|
417
|
-
},
|
|
560
|
+
}, so = {
|
|
418
561
|
key: 1,
|
|
419
562
|
class: "pptxv-meta-muted"
|
|
420
|
-
},
|
|
563
|
+
}, no = {
|
|
421
564
|
key: 2,
|
|
422
565
|
class: "pptxv-meta-heading pptxv-meta-heading-split"
|
|
423
|
-
},
|
|
566
|
+
}, oo = { class: "pptxv-meta-heading-actions" }, io = { class: "pptxv-meta-count" }, lo = {
|
|
424
567
|
key: 3,
|
|
425
568
|
class: "pptxv-material-list"
|
|
426
|
-
},
|
|
569
|
+
}, ro = { class: "pptxv-material-title" }, uo = { class: "pptxv-material-title-copy" }, co = {
|
|
427
570
|
key: 0,
|
|
428
571
|
class: "pptxv-material-swatches"
|
|
429
|
-
},
|
|
572
|
+
}, vo = ["title"], po = { class: "pptxv-material-actions" }, ho = ["onClick"], fo = { class: "pptxv-material-detail-list" }, mo = {
|
|
430
573
|
key: 4,
|
|
431
574
|
class: "pptxv-meta-heading"
|
|
432
|
-
},
|
|
575
|
+
}, bo = {
|
|
433
576
|
key: 5,
|
|
434
577
|
class: "pptxv-meta-heading"
|
|
435
|
-
},
|
|
578
|
+
}, go = {
|
|
436
579
|
key: 6,
|
|
437
580
|
class: "pptxv-meta-list"
|
|
438
|
-
},
|
|
581
|
+
}, yo = { class: "pptxv-meta-row" }, xo = { class: "pptxv-meta-row" }, wo = {
|
|
439
582
|
key: 7,
|
|
440
583
|
class: "pptxv-measurement-controls"
|
|
441
|
-
},
|
|
584
|
+
}, ko = { class: "pptxv-measurement-group" }, So = { class: "pptxv-measurement-buttons" }, Co = {
|
|
442
585
|
key: 8,
|
|
443
586
|
class: "pptxv-measurement-controls"
|
|
444
|
-
},
|
|
587
|
+
}, Mo = { class: "pptxv-measurement-group" }, _o = { class: "pptxv-measurement-buttons" }, Do = { class: "pptxv-measurement-group" }, Ro = { class: "pptxv-measurement-buttons" }, Po = {
|
|
445
588
|
key: 9,
|
|
446
589
|
class: "pptxv-meta-list"
|
|
447
|
-
},
|
|
590
|
+
}, To = {
|
|
448
591
|
key: 10,
|
|
449
592
|
class: "pptxv-meta-heading"
|
|
450
|
-
},
|
|
593
|
+
}, Lo = {
|
|
451
594
|
key: 11,
|
|
452
595
|
class: "pptxv-measurement-controls"
|
|
453
|
-
},
|
|
596
|
+
}, Eo = { class: "pptxv-measurement-group" }, $o = { class: "pptxv-measurement-buttons" }, Ao = { class: "pptxv-measurement-group" }, Io = { class: "pptxv-measurement-buttons" }, Fo = {
|
|
454
597
|
key: 0,
|
|
455
598
|
class: "pptxv-measurement-group"
|
|
456
|
-
},
|
|
599
|
+
}, No = { class: "pptxv-section-header" }, zo = { class: "pptxv-section-value" }, Bo = ["min", "max", "step", "value"], Vo = { class: "pptxv-section-range" }, Go = {
|
|
457
600
|
key: 1,
|
|
458
601
|
class: "pptxv-section-box"
|
|
459
|
-
},
|
|
602
|
+
}, Oo = { class: "pptxv-section-header" }, Uo = { class: "pptxv-measurement-label" }, Wo = { class: "pptxv-section-value" }, jo = ["min", "max", "step", "value", "onInput"], Ho = ["min", "max", "step", "value", "onInput"], Ko = { class: "pptxv-section-range" }, Yo = {
|
|
460
603
|
key: 12,
|
|
461
604
|
class: "pptxv-meta-list"
|
|
462
|
-
},
|
|
605
|
+
}, Xo = { class: "pptxv-main" }, qo = { class: "pptxv-main-stage" }, Zo = ["aria-label", "title", "aria-expanded"], Qo = {
|
|
463
606
|
viewBox: "0 0 20 20",
|
|
464
607
|
fill: "none",
|
|
465
608
|
stroke: "currentColor",
|
|
466
609
|
"stroke-width": "1.5",
|
|
467
610
|
"aria-hidden": "true"
|
|
468
|
-
},
|
|
611
|
+
}, Jo = ["d"], ei = {
|
|
469
612
|
key: 1,
|
|
470
613
|
class: "pptxv-overlay"
|
|
471
|
-
},
|
|
614
|
+
}, ti = ["aria-labelledby", "onKeydown"], ai = ["id"], si = ["id"], ni = ["aria-invalid", "aria-describedby"], oi = { class: "pptxv-password-actions" }, ii = ["disabled"], li = {
|
|
472
615
|
key: 2,
|
|
473
616
|
class: "pptxv-overlay"
|
|
474
|
-
},
|
|
617
|
+
}, ri = {
|
|
475
618
|
key: 3,
|
|
476
619
|
class: "pptxv-overlay is-error"
|
|
477
|
-
},
|
|
620
|
+
}, ui = {
|
|
478
621
|
key: 0,
|
|
479
622
|
class: "pptxv-password-form"
|
|
480
|
-
},
|
|
623
|
+
}, ci = /* @__PURE__ */ Ha({
|
|
481
624
|
__name: "Preview",
|
|
482
625
|
props: {
|
|
483
626
|
src: {},
|
|
@@ -494,6 +637,7 @@ const Qs = ["aria-label"], Js = {
|
|
|
494
637
|
drivers: { default: void 0 },
|
|
495
638
|
routes: { default: void 0 },
|
|
496
639
|
converter: { default: void 0 },
|
|
640
|
+
mediaConverter: { default: void 0 },
|
|
497
641
|
fontResolver: { type: Function, default: void 0 },
|
|
498
642
|
fontLoading: { type: [Boolean, Object], default: void 0 },
|
|
499
643
|
resourceResolver: { type: Function, default: void 0 },
|
|
@@ -501,74 +645,74 @@ const Qs = ["aria-label"], Js = {
|
|
|
501
645
|
panoramaProcessor: { default: void 0 }
|
|
502
646
|
},
|
|
503
647
|
emits: ["rendered", "error", "state-change", "warnings", "page-change", "sheet-change", "scale-change"],
|
|
504
|
-
setup(
|
|
505
|
-
const n =
|
|
648
|
+
setup(h, { expose: o, emit: i }) {
|
|
649
|
+
const n = h, p = i, f = j(null), k = j(null), u = Kt(null), r = j({
|
|
506
650
|
loading: !1,
|
|
507
651
|
error: null,
|
|
508
652
|
family: "unsupported",
|
|
509
653
|
warnings: [],
|
|
510
654
|
capabilities: {}
|
|
511
|
-
}),
|
|
512
|
-
let
|
|
513
|
-
function
|
|
514
|
-
return
|
|
515
|
-
var
|
|
516
|
-
const a = (
|
|
517
|
-
var
|
|
518
|
-
(
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
var
|
|
522
|
-
return (
|
|
655
|
+
}), M = [], T = j(/* @__PURE__ */ new Set()), S = j(""), P = j(!1), H = `pptxv-model-tools-${jt()}`, R = `pptxv-password-${jt()}`, $ = j(""), q = j(null), G = Kt(null), K = j(!1);
|
|
656
|
+
let L;
|
|
657
|
+
function ea(e) {
|
|
658
|
+
return L == null || L(null), new Promise((t) => {
|
|
659
|
+
var b, m;
|
|
660
|
+
const a = (W) => {
|
|
661
|
+
var z;
|
|
662
|
+
(z = e.signal) == null || z.removeEventListener("abort", l), L === a && (L = void 0, G.value = null, $.value = ""), t(W);
|
|
663
|
+
}, l = () => a(null);
|
|
664
|
+
L = a, $.value = "", G.value = e, (b = e.signal) != null && b.aborted ? l() : ((m = e.signal) == null || m.addEventListener("abort", l, { once: !0 }), Qa(() => {
|
|
665
|
+
var W;
|
|
666
|
+
return (W = q.value) == null ? void 0 : W.focus();
|
|
523
667
|
}));
|
|
524
668
|
});
|
|
525
669
|
}
|
|
526
|
-
function
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
function
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
const
|
|
533
|
-
() =>
|
|
534
|
-
), Me =
|
|
535
|
-
var e, t, a,
|
|
536
|
-
return ((e = Se.value) == null ? void 0 : e.pageIndex) ?? ((t =
|
|
537
|
-
}), oe =
|
|
538
|
-
var e, t, a,
|
|
539
|
-
return ((e = Se.value) == null ? void 0 : e.pageCount) ?? ((t =
|
|
540
|
-
}), te =
|
|
541
|
-
var e, t, a,
|
|
542
|
-
return ((e = Se.value) == null ? void 0 : e.scale) ?? ((t =
|
|
543
|
-
}),
|
|
544
|
-
() => !
|
|
545
|
-
),
|
|
670
|
+
function ta() {
|
|
671
|
+
$.value.length && (L == null || L($.value));
|
|
672
|
+
}
|
|
673
|
+
function Ke() {
|
|
674
|
+
K.value = !0, L == null || L(null);
|
|
675
|
+
}
|
|
676
|
+
const _ = c(() => r.value.loading), Ye = c(() => r.value.error), Xe = c(() => r.value.family === "paged"), qe = c(() => r.value.family === "workbook"), Ze = c(() => r.value.family === "ebook"), Se = c(() => Xe.value ? r.value : null), de = c(() => qe.value ? r.value : null), Ce = c(() => Ze.value ? r.value : null), aa = c(
|
|
677
|
+
() => r.value.family === "image" || r.value.family === "panorama" ? r.value : null
|
|
678
|
+
), Me = c(() => r.value.family === "cad" ? r.value : null), I = c(() => r.value.family === "model3d" ? r.value : null), sa = c(() => r.value.family === "mindmap" ? r.value : null), ve = c(() => r.value.family === "diagram" ? r.value : null), Y = c(() => {
|
|
679
|
+
var e, t, a, l;
|
|
680
|
+
return ((e = Se.value) == null ? void 0 : e.pageIndex) ?? ((t = de.value) == null ? void 0 : t.activeSheetIndex) ?? ((a = Ce.value) == null ? void 0 : a.chapterIndex) ?? ((l = ve.value) == null ? void 0 : l.pageIndex) ?? 0;
|
|
681
|
+
}), oe = c(() => {
|
|
682
|
+
var e, t, a, l;
|
|
683
|
+
return ((e = Se.value) == null ? void 0 : e.pageCount) ?? ((t = de.value) == null ? void 0 : t.sheets.length) ?? ((a = Ce.value) == null ? void 0 : a.chapterCount) ?? ((l = ve.value) == null ? void 0 : l.pageCount) ?? 0;
|
|
684
|
+
}), te = c(() => {
|
|
685
|
+
var e, t, a, l, b, m;
|
|
686
|
+
return ((e = Se.value) == null ? void 0 : e.scale) ?? ((t = de.value) == null ? void 0 : t.scale) ?? ((a = aa.value) == null ? void 0 : a.scale) ?? ((l = Me.value) == null ? void 0 : l.scale) ?? ((b = sa.value) == null ? void 0 : b.scale) ?? ((m = ve.value) == null ? void 0 : m.scale) ?? n.initialScale;
|
|
687
|
+
}), na = c(() => `${Math.round(te.value * 100)}%`), Qe = c(() => !!(r.value.capabilities.paged || r.value.capabilities.sheets || r.value.capabilities.chapters)), oa = c(() => !_.value && Qe.value && Y.value > 0), ia = c(
|
|
688
|
+
() => !_.value && Qe.value && Y.value < oe.value - 1
|
|
689
|
+
), la = c(() => !_.value && !!r.value.capabilities.zoom && te.value > n.minScale + 1e-3), ra = c(() => !_.value && !!r.value.capabilities.zoom && te.value < n.maxScale - 1e-3), ua = c(() => !_.value && !!r.value.capabilities.rotate), ca = c(() => !_.value && !!r.value.capabilities.fullscreen), pe = c(() => {
|
|
546
690
|
var e;
|
|
547
691
|
return ((e = Me.value) == null ? void 0 : e.layers) ?? [];
|
|
548
|
-
}), Je =
|
|
692
|
+
}), Je = c(() => {
|
|
549
693
|
var e;
|
|
550
694
|
return new Set(((e = Me.value) == null ? void 0 : e.activeLayerIds) ?? []);
|
|
551
|
-
}),
|
|
695
|
+
}), da = c(() => !_.value && !!r.value.capabilities.layers && pe.value.length > 0), Z = c(() => {
|
|
552
696
|
var e;
|
|
553
697
|
return ((e = I.value) == null ? void 0 : e.modelTree) ?? [];
|
|
554
|
-
}), _e =
|
|
698
|
+
}), _e = c(() => Gt(S.value)), ae = c(() => _e.value.length > 0), va = c(() => ae.value ? Nt(Z.value, _e.value) : Z.value), De = c(() => zt(Z.value)), et = c(() => ae.value ? Bt(Z.value, _e.value) : De.value), B = c(() => {
|
|
555
699
|
var e;
|
|
556
700
|
return (e = I.value) == null ? void 0 : e.selectedNodeId;
|
|
557
|
-
}), tt =
|
|
558
|
-
var a,
|
|
701
|
+
}), tt = c(() => {
|
|
702
|
+
var a, l, b;
|
|
559
703
|
const e = (a = I.value) == null ? void 0 : a.metadata;
|
|
560
704
|
if (!e)
|
|
561
705
|
return [];
|
|
562
706
|
const t = [];
|
|
563
|
-
return e.format && t.push({ label: "Format", value: e.format.toUpperCase() }), typeof e.objectCount == "number" && t.push({ label: "Objects", value: String(e.objectCount) }), typeof e.meshCount == "number" && t.push({ label: "Meshes", value: String(e.meshCount) }), typeof e.lineCount == "number" && t.push({ label: "Lines", value: String(e.lineCount) }), typeof e.pointCount == "number" && t.push({ label: "Points", value: String(e.pointCount) }), typeof e.materialCount == "number" && t.push({ label: "Materials", value: String(e.materialCount) }), typeof e.animationCount == "number" && e.animationCount > 0 && t.push({ label: "Animations", value: String(e.animationCount) }), typeof e.triangleCount == "number" && t.push({ label: "Triangles", value: String(e.triangleCount) }), typeof e.vertexCount == "number" && t.push({ label: "Vertices", value: String(e.vertexCount) }), (
|
|
564
|
-
}), Re =
|
|
565
|
-
|
|
566
|
-
ae.value ? /* @__PURE__ */ new Set() :
|
|
567
|
-
)), he =
|
|
568
|
-
var a,
|
|
569
|
-
if (!
|
|
707
|
+
return e.format && t.push({ label: "Format", value: e.format.toUpperCase() }), typeof e.objectCount == "number" && t.push({ label: "Objects", value: String(e.objectCount) }), typeof e.meshCount == "number" && t.push({ label: "Meshes", value: String(e.meshCount) }), typeof e.lineCount == "number" && t.push({ label: "Lines", value: String(e.lineCount) }), typeof e.pointCount == "number" && t.push({ label: "Points", value: String(e.pointCount) }), typeof e.materialCount == "number" && t.push({ label: "Materials", value: String(e.materialCount) }), typeof e.animationCount == "number" && e.animationCount > 0 && t.push({ label: "Animations", value: String(e.animationCount) }), typeof e.triangleCount == "number" && t.push({ label: "Triangles", value: String(e.triangleCount) }), typeof e.vertexCount == "number" && t.push({ label: "Vertices", value: String(e.vertexCount) }), (l = e.bounds) != null && l.size && t.push({ label: "Size", value: e.bounds.size.map(D).join(" x ") }), typeof e.hasVertexColors == "boolean" && t.push({ label: "Vertex colors", value: e.hasVertexColors ? "Yes" : "No" }), (b = e.materialNames) != null && b.length && t.push({ label: "Material names", value: e.materialNames.join(", ") }), t;
|
|
708
|
+
}), Re = c(() => Ft(
|
|
709
|
+
va.value,
|
|
710
|
+
ae.value ? /* @__PURE__ */ new Set() : T.value
|
|
711
|
+
)), he = c(() => Re.value.find((e) => e.id === B.value)), at = c(() => {
|
|
712
|
+
var a, l, b, m, W, z, ue, ce, Ot, Ut, Wt;
|
|
713
|
+
if (!B.value)
|
|
570
714
|
return [];
|
|
571
|
-
const e = Ve(Z.value,
|
|
715
|
+
const e = Ve(Z.value, B.value);
|
|
572
716
|
if (!e)
|
|
573
717
|
return [];
|
|
574
718
|
const t = It(e);
|
|
@@ -577,174 +721,174 @@ const Qs = ["aria-label"], Js = {
|
|
|
577
721
|
{ label: "Children", value: String(e.children.length) },
|
|
578
722
|
{ label: "Subtree nodes", value: String(t.nodes) },
|
|
579
723
|
{ label: "Meshes", value: String(((a = e.metadata) == null ? void 0 : a.meshCount) ?? t.meshes) },
|
|
580
|
-
{ label: "Lines", value: String(((
|
|
581
|
-
{ label: "Points", value: String(((
|
|
724
|
+
{ label: "Lines", value: String(((l = e.metadata) == null ? void 0 : l.lineCount) ?? t.lines) },
|
|
725
|
+
{ label: "Points", value: String(((b = e.metadata) == null ? void 0 : b.pointCount) ?? t.points) },
|
|
582
726
|
{ label: "Groups", value: String(t.groups) },
|
|
583
|
-
{ label: "Materials", value: String(((
|
|
584
|
-
{ label: "Triangles", value: String(((
|
|
585
|
-
{ label: "Vertices", value: String(((
|
|
727
|
+
{ label: "Materials", value: String(((m = e.metadata) == null ? void 0 : m.materialCount) ?? 0) },
|
|
728
|
+
{ label: "Triangles", value: String(((W = e.metadata) == null ? void 0 : W.triangleCount) ?? 0) },
|
|
729
|
+
{ label: "Vertices", value: String(((z = e.metadata) == null ? void 0 : z.vertexCount) ?? 0) },
|
|
586
730
|
{ label: "Vertex colors", value: typeof ((ue = e.metadata) == null ? void 0 : ue.hasVertexColors) == "boolean" && e.metadata.hasVertexColors ? "Yes" : "No" },
|
|
587
731
|
{ label: "Visible", value: e.visible ? "Yes" : "No" },
|
|
588
|
-
...(Ot = (ce = e.metadata) == null ? void 0 : ce.bounds) != null && Ot.size ? [{ label: "Bounds", value: e.metadata.bounds.size.map(
|
|
589
|
-
...(
|
|
732
|
+
...(Ot = (ce = e.metadata) == null ? void 0 : ce.bounds) != null && Ot.size ? [{ label: "Bounds", value: e.metadata.bounds.size.map(D).join(" x ") }] : [],
|
|
733
|
+
...(Wt = (Ut = e.metadata) == null ? void 0 : Ut.materialNames) != null && Wt.length ? [{ label: "Material names", value: e.metadata.materialNames.join(", ") }] : []
|
|
590
734
|
];
|
|
591
|
-
}), Pe =
|
|
735
|
+
}), Pe = c(() => {
|
|
592
736
|
var e, t;
|
|
593
|
-
return
|
|
594
|
-
}), fe =
|
|
737
|
+
return B.value ? ((t = (e = Ve(Z.value, B.value)) == null ? void 0 : e.metadata) == null ? void 0 : t.materialDetails) ?? [] : [];
|
|
738
|
+
}), fe = c(
|
|
595
739
|
() => {
|
|
596
740
|
var e, t;
|
|
597
741
|
return Pe.value.length ? Pe.value : ((t = (e = I.value) == null ? void 0 : e.metadata) == null ? void 0 : t.materialDetails) ?? [];
|
|
598
742
|
}
|
|
599
|
-
),
|
|
743
|
+
), pa = c(
|
|
600
744
|
() => Pe.value.length ? "Selected materials" : "Model materials"
|
|
601
|
-
),
|
|
745
|
+
), ha = c(() => String(fe.value.length)), me = c(() => {
|
|
602
746
|
var e;
|
|
603
747
|
return (e = I.value) == null ? void 0 : e.isolatedMaterialKey;
|
|
604
|
-
}),
|
|
748
|
+
}), ie = c(() => {
|
|
605
749
|
var e;
|
|
606
750
|
return (e = I.value) == null ? void 0 : e.measurement;
|
|
607
|
-
}), st =
|
|
751
|
+
}), st = c(() => {
|
|
608
752
|
var e;
|
|
609
|
-
return !!((e =
|
|
610
|
-
}), se =
|
|
753
|
+
return !!((e = ie.value) != null && e.active);
|
|
754
|
+
}), se = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.measure), nt = c(() => {
|
|
611
755
|
var e;
|
|
612
|
-
return !!((e =
|
|
613
|
-
}), ot =
|
|
756
|
+
return !!((e = ie.value) != null && e.start);
|
|
757
|
+
}), ot = c(() => {
|
|
614
758
|
var e;
|
|
615
|
-
return ((e =
|
|
616
|
-
}), be =
|
|
759
|
+
return ((e = ie.value) == null ? void 0 : e.snapMode) ?? "surface";
|
|
760
|
+
}), be = c(() => {
|
|
617
761
|
var e;
|
|
618
|
-
return ((e =
|
|
619
|
-
}),
|
|
620
|
-
const e =
|
|
762
|
+
return ((e = ie.value) == null ? void 0 : e.axisLock) ?? "free";
|
|
763
|
+
}), fa = c(() => {
|
|
764
|
+
const e = ie.value;
|
|
621
765
|
return e ? [
|
|
622
|
-
{ label: "Status", value:
|
|
623
|
-
{ label: "Snap", value:
|
|
624
|
-
{ label: "Axis", value:
|
|
766
|
+
{ label: "Status", value: Na(e) },
|
|
767
|
+
{ label: "Snap", value: za(e.snapMode ?? "surface") },
|
|
768
|
+
{ label: "Axis", value: Et(e.axisLock ?? "free") },
|
|
625
769
|
...e.start ? [{ label: "Start", value: re(e.start) }] : [],
|
|
626
770
|
...e.end ? [{ label: "End", value: re(e.end) }] : [],
|
|
627
771
|
...!e.end && e.previewPoint ? [{ label: "Preview", value: re(e.previewPoint) }] : [],
|
|
628
772
|
...e.delta ? [{ label: "Delta", value: re(e.delta) }] : [],
|
|
629
773
|
...!e.delta && e.previewDelta ? [{ label: "Preview delta", value: re(e.previewDelta) }] : [],
|
|
630
|
-
...typeof e.distance == "number" ? [{ label: "Distance", value:
|
|
631
|
-
...typeof e.distance != "number" && typeof e.previewDistance == "number" ? [{ label: "Preview distance", value:
|
|
774
|
+
...typeof e.distance == "number" ? [{ label: "Distance", value: D(e.distance) }] : [],
|
|
775
|
+
...typeof e.distance != "number" && typeof e.previewDistance == "number" ? [{ label: "Preview distance", value: D(e.previewDistance) }] : []
|
|
632
776
|
] : [];
|
|
633
|
-
}), O =
|
|
777
|
+
}), O = c(() => {
|
|
634
778
|
var e;
|
|
635
779
|
return (e = I.value) == null ? void 0 : e.section;
|
|
636
|
-
}), ne =
|
|
780
|
+
}), ne = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.section), ge = c(() => {
|
|
637
781
|
var e;
|
|
638
782
|
return !!((e = O.value) != null && e.active);
|
|
639
|
-
}), Te =
|
|
783
|
+
}), Te = c(() => {
|
|
640
784
|
var e;
|
|
641
785
|
return ((e = O.value) == null ? void 0 : e.mode) ?? "single";
|
|
642
|
-
}),
|
|
786
|
+
}), Le = c(() => {
|
|
643
787
|
var e;
|
|
644
788
|
return ((e = O.value) == null ? void 0 : e.axis) ?? "x";
|
|
645
|
-
}),
|
|
789
|
+
}), Ee = c(() => {
|
|
646
790
|
var e;
|
|
647
791
|
return ((e = O.value) == null ? void 0 : e.min) ?? -1;
|
|
648
|
-
}),
|
|
792
|
+
}), $e = c(() => {
|
|
649
793
|
var e;
|
|
650
794
|
return ((e = O.value) == null ? void 0 : e.max) ?? 1;
|
|
651
|
-
}),
|
|
795
|
+
}), Ae = c(() => {
|
|
652
796
|
var e;
|
|
653
797
|
return ((e = O.value) == null ? void 0 : e.offset) ?? 0;
|
|
654
|
-
}),
|
|
655
|
-
const e = Math.abs(
|
|
798
|
+
}), ma = c(() => {
|
|
799
|
+
const e = Math.abs($e.value - Ee.value);
|
|
656
800
|
return e > 0 ? Math.max(e / 200, 1e-3) : 1e-3;
|
|
657
|
-
}), F =
|
|
801
|
+
}), F = c(() => {
|
|
658
802
|
var e;
|
|
659
803
|
return ((e = O.value) == null ? void 0 : e.bounds) ?? {
|
|
660
804
|
x: [-1, 1],
|
|
661
805
|
y: [-1, 1],
|
|
662
806
|
z: [-1, 1]
|
|
663
807
|
};
|
|
664
|
-
}), Q =
|
|
808
|
+
}), Q = c(() => {
|
|
665
809
|
var e;
|
|
666
810
|
return ((e = O.value) == null ? void 0 : e.range) ?? F.value;
|
|
667
|
-
}),
|
|
811
|
+
}), ba = c(() => {
|
|
668
812
|
const e = O.value;
|
|
669
813
|
return e ? [
|
|
670
814
|
{ label: "Status", value: e.active ? "Active" : "Idle" },
|
|
671
815
|
{ label: "Mode", value: e.mode === "box" ? "Box" : "Plane" },
|
|
672
|
-
{ label: "Axis", value:
|
|
673
|
-
{ label: "Offset", value:
|
|
674
|
-
{ label: "Plane range", value: `${
|
|
816
|
+
{ label: "Axis", value: Et(e.axis) },
|
|
817
|
+
{ label: "Offset", value: D(e.offset) },
|
|
818
|
+
{ label: "Plane range", value: `${D(e.min)} .. ${D(e.max)}` },
|
|
675
819
|
...e.mode === "box" ? [
|
|
676
820
|
{ label: "Box X", value: ke(Q.value.x) },
|
|
677
821
|
{ label: "Box Y", value: ke(Q.value.y) },
|
|
678
822
|
{ label: "Box Z", value: ke(Q.value.z) }
|
|
679
823
|
] : []
|
|
680
824
|
] : [];
|
|
681
|
-
}),
|
|
825
|
+
}), it = c(() => {
|
|
682
826
|
var e;
|
|
683
827
|
return (e = I.value) == null ? void 0 : e.camera;
|
|
684
|
-
}),
|
|
828
|
+
}), lt = c(() => {
|
|
685
829
|
var e;
|
|
686
|
-
return ((e =
|
|
687
|
-
}), J =
|
|
830
|
+
return ((e = it.value) == null ? void 0 : e.projection) ?? "perspective";
|
|
831
|
+
}), J = c(() => {
|
|
688
832
|
var e;
|
|
689
|
-
return ((e =
|
|
690
|
-
}),
|
|
833
|
+
return ((e = it.value) == null ? void 0 : e.viewPreset) ?? "free";
|
|
834
|
+
}), U = c(() => {
|
|
691
835
|
var e;
|
|
692
836
|
return ((e = I.value) == null ? void 0 : e.displayMode) ?? "solid-edge";
|
|
693
|
-
}), X =
|
|
837
|
+
}), X = c(() => {
|
|
694
838
|
var e;
|
|
695
839
|
return ((e = I.value) == null ? void 0 : e.snapshotBackground) ?? "scene";
|
|
696
|
-
}), Ie =
|
|
840
|
+
}), Ie = c(() => !_.value && r.value.family === "model3d"), N = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.displayMode), ye = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.download), ga = c(() => ae.value ? `${et.value} match${et.value === 1 ? "" : "es"}` : `${De.value} node${De.value === 1 ? "" : "s"}`), rt = c(() => !_.value && r.value.family === "model3d" && Z.value.length > 0), ya = c(() => rt.value && ae.value && Re.value.length === 0), xa = c(() => !_.value && r.value.family === "model3d" && tt.value.length > 0), ut = c(() => !_.value && r.value.family === "model3d" && !!r.value.capabilities.explode), Fe = c(() => {
|
|
697
841
|
var e;
|
|
698
842
|
return Math.round((((e = I.value) == null ? void 0 : e.explode) ?? 0) * 100);
|
|
699
|
-
}),
|
|
843
|
+
}), wa = c(() => {
|
|
700
844
|
const e = pe.value.length, t = Je.value.size;
|
|
701
845
|
return e ? `${t} / ${e}` : "Layers";
|
|
702
|
-
}), ct =
|
|
703
|
-
() =>
|
|
704
|
-
),
|
|
846
|
+
}), ct = c(
|
|
847
|
+
() => r.value.warnings.length ? `${r.value.warnings.length} warning${r.value.warnings.length > 1 ? "s" : ""}` : ""
|
|
848
|
+
), dt = c(() => r.value.family === "unsupported" ? "Preview" : r.value.family), ka = c(() => {
|
|
705
849
|
var e, t, a;
|
|
706
|
-
return Xe.value ? `${Y.value + 1} / ${oe.value || 1}` : qe.value ? `${((t = (e =
|
|
850
|
+
return Xe.value ? `${Y.value + 1} / ${oe.value || 1}` : qe.value ? `${((t = (e = de.value) == null ? void 0 : e.sheets[Y.value]) == null ? void 0 : t.name) ?? "Sheet"} ${Y.value + 1} / ${oe.value || 1}` : Ze.value ? `${((a = Ce.value) == null ? void 0 : a.chapterTitle) ?? "Chapter"} ${Y.value + 1} / ${oe.value || 1}` : ve.value ? `Page ${Y.value + 1} / ${oe.value || 1}` : dt.value;
|
|
707
851
|
});
|
|
708
|
-
function
|
|
709
|
-
var
|
|
710
|
-
const t =
|
|
711
|
-
if (
|
|
712
|
-
const
|
|
713
|
-
t === "paged" &&
|
|
852
|
+
function y(e) {
|
|
853
|
+
var b;
|
|
854
|
+
const t = r.value.family, a = Y.value, l = te.value;
|
|
855
|
+
if (r.value = Sa(e ?? ((b = u.value) == null ? void 0 : b.getState()) ?? r.value), r.value.family === "paged") {
|
|
856
|
+
const m = r.value;
|
|
857
|
+
t === "paged" && m.pageIndex !== a && p("page-change", m.pageIndex), m.scale !== l && p("scale-change", m.scale);
|
|
714
858
|
return;
|
|
715
859
|
}
|
|
716
|
-
if (
|
|
717
|
-
const
|
|
718
|
-
t === "workbook" &&
|
|
860
|
+
if (r.value.family === "workbook") {
|
|
861
|
+
const m = r.value;
|
|
862
|
+
t === "workbook" && m.activeSheetIndex !== a && p("sheet-change", m.activeSheetIndex), typeof m.scale == "number" && m.scale !== l && p("scale-change", m.scale);
|
|
719
863
|
return;
|
|
720
864
|
}
|
|
721
|
-
if ((
|
|
722
|
-
const
|
|
723
|
-
|
|
865
|
+
if ((r.value.family === "image" || r.value.family === "panorama") && "scale" in r.value) {
|
|
866
|
+
const m = r.value;
|
|
867
|
+
m.scale !== l && p("scale-change", m.scale);
|
|
724
868
|
return;
|
|
725
869
|
}
|
|
726
|
-
if (
|
|
727
|
-
const
|
|
728
|
-
|
|
870
|
+
if (r.value.family === "cad") {
|
|
871
|
+
const m = r.value;
|
|
872
|
+
m.scale !== l && p("scale-change", m.scale);
|
|
729
873
|
return;
|
|
730
874
|
}
|
|
731
|
-
if (
|
|
732
|
-
const
|
|
733
|
-
|
|
875
|
+
if (r.value.family === "mindmap") {
|
|
876
|
+
const m = r.value;
|
|
877
|
+
m.scale !== l && p("scale-change", m.scale);
|
|
734
878
|
return;
|
|
735
879
|
}
|
|
736
|
-
if (
|
|
737
|
-
const
|
|
738
|
-
t === "diagram" &&
|
|
880
|
+
if (r.value.family === "diagram") {
|
|
881
|
+
const m = r.value;
|
|
882
|
+
t === "diagram" && m.pageIndex !== a && p("page-change", m.pageIndex ?? 0), m.scale !== l && p("scale-change", m.scale);
|
|
739
883
|
}
|
|
740
884
|
}
|
|
741
|
-
function
|
|
885
|
+
function Sa(e) {
|
|
742
886
|
const t = {
|
|
743
887
|
...e,
|
|
744
888
|
capabilities: { ...e.capabilities },
|
|
745
889
|
warnings: [...e.warnings]
|
|
746
890
|
};
|
|
747
|
-
e.fonts && (t.fonts = e.fonts.map((
|
|
891
|
+
e.fonts && (t.fonts = e.fonts.map((m) => ({ ...m, classification: m.classification ? { ...m.classification } : void 0 })));
|
|
748
892
|
const a = e.measurement;
|
|
749
893
|
a && (t.measurement = {
|
|
750
894
|
...a,
|
|
@@ -755,248 +899,248 @@ const Qs = ["aria-label"], Js = {
|
|
|
755
899
|
previewDelta: a.previewDelta ? [...a.previewDelta] : void 0,
|
|
756
900
|
previewDistance: a.previewDistance
|
|
757
901
|
});
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
...
|
|
761
|
-
bounds:
|
|
762
|
-
x: [...
|
|
763
|
-
y: [...
|
|
764
|
-
z: [...
|
|
902
|
+
const l = e.section;
|
|
903
|
+
l && (t.section = {
|
|
904
|
+
...l,
|
|
905
|
+
bounds: l.bounds ? {
|
|
906
|
+
x: [...l.bounds.x],
|
|
907
|
+
y: [...l.bounds.y],
|
|
908
|
+
z: [...l.bounds.z]
|
|
765
909
|
} : void 0,
|
|
766
|
-
range:
|
|
767
|
-
x: [...
|
|
768
|
-
y: [...
|
|
769
|
-
z: [...
|
|
910
|
+
range: l.range ? {
|
|
911
|
+
x: [...l.range.x],
|
|
912
|
+
y: [...l.range.y],
|
|
913
|
+
z: [...l.range.z]
|
|
770
914
|
} : void 0
|
|
771
915
|
});
|
|
772
|
-
const
|
|
773
|
-
return
|
|
774
|
-
...
|
|
775
|
-
position: [...
|
|
776
|
-
target: [...
|
|
916
|
+
const b = e.camera;
|
|
917
|
+
return b && (t.camera = {
|
|
918
|
+
...b,
|
|
919
|
+
position: [...b.position],
|
|
920
|
+
target: [...b.target]
|
|
777
921
|
}), t;
|
|
778
922
|
}
|
|
779
|
-
async function
|
|
780
|
-
var
|
|
781
|
-
if (
|
|
923
|
+
async function vt() {
|
|
924
|
+
var l;
|
|
925
|
+
if (M.splice(0).forEach((b) => b()), (l = u.value) == null || l.destroy(), u.value = null, !f.value)
|
|
782
926
|
return;
|
|
783
|
-
const e = n.drivers ??
|
|
784
|
-
fit:
|
|
785
|
-
initialScale:
|
|
786
|
-
minScale:
|
|
787
|
-
maxScale:
|
|
788
|
-
fontResolver:
|
|
789
|
-
fontLoading:
|
|
790
|
-
resourceResolver:
|
|
791
|
-
audio:
|
|
792
|
-
requestPassword:
|
|
927
|
+
const e = n.drivers ?? Ua(n.panoramaProcessor, n.converter, n.mediaConverter), t = n.routes ?? tn({ rawPreview: !!(n.panoramaProcessor && n.converter) }), a = (b, m = {}) => ls(b, {
|
|
928
|
+
fit: m.fit ?? n.fit,
|
|
929
|
+
initialScale: m.initialScale ?? n.initialScale,
|
|
930
|
+
minScale: m.minScale ?? n.minScale,
|
|
931
|
+
maxScale: m.maxScale ?? n.maxScale,
|
|
932
|
+
fontResolver: m.fontResolver ?? n.fontResolver,
|
|
933
|
+
fontLoading: m.fontLoading ?? n.fontLoading,
|
|
934
|
+
resourceResolver: m.resourceResolver ?? n.resourceResolver,
|
|
935
|
+
audio: m.audio ?? n.audio,
|
|
936
|
+
requestPassword: m.requestPassword ?? n.requestPassword ?? ea,
|
|
793
937
|
drivers: e,
|
|
794
938
|
routes: t,
|
|
795
939
|
converter: n.converter,
|
|
796
940
|
previewerFactory: a
|
|
797
941
|
});
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
942
|
+
u.value = a(f.value), M.push(
|
|
943
|
+
u.value.on("rendered", (b) => {
|
|
944
|
+
y(b), p("rendered", b);
|
|
801
945
|
}),
|
|
802
|
-
|
|
803
|
-
|
|
946
|
+
u.value.on("statechange", (b) => {
|
|
947
|
+
y(b), p("state-change", b);
|
|
804
948
|
}),
|
|
805
|
-
|
|
806
|
-
|
|
949
|
+
u.value.on("error", (b) => {
|
|
950
|
+
y(), p("error", b);
|
|
807
951
|
}),
|
|
808
|
-
|
|
809
|
-
|
|
952
|
+
u.value.on("warnings", (b) => {
|
|
953
|
+
y(), p("warnings", b);
|
|
810
954
|
})
|
|
811
955
|
);
|
|
812
956
|
}
|
|
813
|
-
async function
|
|
814
|
-
if (!
|
|
957
|
+
async function le() {
|
|
958
|
+
if (!u.value || n.src == null)
|
|
815
959
|
return;
|
|
816
|
-
|
|
817
|
-
const e =
|
|
960
|
+
K.value = !1;
|
|
961
|
+
const e = u.value.preview(n.src, {
|
|
818
962
|
name: n.name,
|
|
819
963
|
extension: n.extension,
|
|
820
964
|
contentType: n.contentType,
|
|
821
965
|
...n.password !== void 0 ? { password: n.password } : {}
|
|
822
966
|
});
|
|
823
|
-
|
|
967
|
+
y(), await e, y();
|
|
824
968
|
}
|
|
825
969
|
function pt() {
|
|
826
970
|
var e;
|
|
827
|
-
(e =
|
|
971
|
+
(e = u.value) == null || e.setScale(te.value + 0.1), y();
|
|
828
972
|
}
|
|
829
973
|
function ht() {
|
|
830
974
|
var e;
|
|
831
|
-
(e =
|
|
975
|
+
(e = u.value) == null || e.setScale(te.value - 0.1), y();
|
|
832
976
|
}
|
|
833
977
|
function ft() {
|
|
834
978
|
var e;
|
|
835
|
-
(e =
|
|
979
|
+
(e = u.value) == null || e.fit("contain"), y();
|
|
836
980
|
}
|
|
837
981
|
function mt() {
|
|
838
982
|
var e;
|
|
839
|
-
(e =
|
|
983
|
+
(e = u.value) == null || e.fit("width"), y();
|
|
840
984
|
}
|
|
841
985
|
function bt() {
|
|
842
986
|
var e;
|
|
843
|
-
(e =
|
|
987
|
+
(e = u.value) == null || e.fit("height"), y();
|
|
844
988
|
}
|
|
845
989
|
function gt() {
|
|
846
990
|
var e;
|
|
847
|
-
(e =
|
|
991
|
+
(e = u.value) == null || e.rotate(90), y();
|
|
848
992
|
}
|
|
849
993
|
async function yt() {
|
|
850
994
|
var e;
|
|
851
|
-
await ((e =
|
|
995
|
+
await ((e = u.value) == null ? void 0 : e.fullscreen());
|
|
852
996
|
}
|
|
853
997
|
function Ne() {
|
|
854
998
|
var e;
|
|
855
|
-
(e =
|
|
999
|
+
(e = u.value) == null || e.prev();
|
|
856
1000
|
}
|
|
857
|
-
function
|
|
1001
|
+
function ze() {
|
|
858
1002
|
var e;
|
|
859
|
-
(e =
|
|
1003
|
+
(e = u.value) == null || e.next();
|
|
860
1004
|
}
|
|
861
|
-
function
|
|
1005
|
+
function Ca(e) {
|
|
862
1006
|
var t;
|
|
863
|
-
(t =
|
|
1007
|
+
(t = u.value) == null || t.goToPage(e), y();
|
|
864
1008
|
}
|
|
865
|
-
function
|
|
866
|
-
var
|
|
867
|
-
const a = (
|
|
868
|
-
(
|
|
1009
|
+
function Ma(e, t) {
|
|
1010
|
+
var l, b;
|
|
1011
|
+
const a = (l = t.target) == null ? void 0 : l.checked;
|
|
1012
|
+
(b = u.value) == null || b.toggleLayer(e, a), y();
|
|
869
1013
|
}
|
|
870
|
-
function
|
|
1014
|
+
function _a() {
|
|
871
1015
|
var e;
|
|
872
|
-
(e =
|
|
1016
|
+
(e = u.value) == null || e.setActiveLayers(pe.value.map((t) => t.id)), y();
|
|
873
1017
|
}
|
|
874
|
-
function
|
|
1018
|
+
function Da() {
|
|
875
1019
|
var e;
|
|
876
|
-
(e =
|
|
1020
|
+
(e = u.value) == null || e.setActiveLayers([]), y();
|
|
877
1021
|
}
|
|
878
1022
|
function xt(e) {
|
|
879
1023
|
var t;
|
|
880
|
-
(t =
|
|
1024
|
+
(t = u.value) == null || t.selectNode(e), y();
|
|
881
1025
|
}
|
|
882
|
-
function
|
|
883
|
-
var
|
|
884
|
-
const a = (
|
|
885
|
-
typeof a == "boolean" && ((
|
|
1026
|
+
function Ra(e, t) {
|
|
1027
|
+
var l, b, m;
|
|
1028
|
+
const a = (l = t.target) == null ? void 0 : l.checked;
|
|
1029
|
+
typeof a == "boolean" && ((m = (b = u.value) == null ? void 0 : b.setNodeVisibility) == null || m.call(b, e, a), y());
|
|
886
1030
|
}
|
|
887
|
-
function
|
|
888
|
-
var a,
|
|
1031
|
+
function Pa(e) {
|
|
1032
|
+
var a, l, b;
|
|
889
1033
|
const t = Number(((a = e.target) == null ? void 0 : a.value) ?? 0);
|
|
890
|
-
(
|
|
1034
|
+
(b = (l = u.value) == null ? void 0 : l.setExplode) == null || b.call(l, t / 100), y();
|
|
891
1035
|
}
|
|
892
1036
|
function wt() {
|
|
893
1037
|
var e, t;
|
|
894
|
-
(t = (e =
|
|
1038
|
+
(t = (e = u.value) == null ? void 0 : e.setExplode) == null || t.call(e, Fe.value > 0 ? 0 : 1), y();
|
|
895
1039
|
}
|
|
896
|
-
function
|
|
1040
|
+
function Ta() {
|
|
897
1041
|
var e;
|
|
898
|
-
|
|
1042
|
+
B.value && ((e = u.value) == null || e.selectNode(B.value), y());
|
|
899
1043
|
}
|
|
900
|
-
function
|
|
901
|
-
var t, a,
|
|
902
|
-
const e =
|
|
903
|
-
(t =
|
|
1044
|
+
function La() {
|
|
1045
|
+
var t, a, l, b, m;
|
|
1046
|
+
const e = u.value;
|
|
1047
|
+
(t = u.value) == null || t.selectNode(), (a = u.value) == null || a.fit("contain"), (l = e == null ? void 0 : e.setCameraViewPreset) == null || l.call(e, "isometric"), (b = e == null ? void 0 : e.setCameraProjection) == null || b.call(e, "perspective"), (m = e == null ? void 0 : e.setDisplayMode) == null || m.call(e, "solid-edge"), y();
|
|
904
1048
|
}
|
|
905
|
-
function
|
|
906
|
-
const t = new Set(
|
|
907
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
1049
|
+
function Ea(e) {
|
|
1050
|
+
const t = new Set(T.value);
|
|
1051
|
+
t.has(e) ? t.delete(e) : t.add(e), T.value = t;
|
|
908
1052
|
}
|
|
909
|
-
function
|
|
1053
|
+
function $a() {
|
|
910
1054
|
S.value = "";
|
|
911
1055
|
}
|
|
912
1056
|
function kt(e) {
|
|
913
1057
|
var a;
|
|
914
|
-
const t =
|
|
915
|
-
(a = t == null ? void 0 : t.setActiveMaterial) == null || a.call(t, me.value === e ? void 0 : e),
|
|
1058
|
+
const t = u.value;
|
|
1059
|
+
(a = t == null ? void 0 : t.setActiveMaterial) == null || a.call(t, me.value === e ? void 0 : e), y();
|
|
916
1060
|
}
|
|
917
1061
|
function St() {
|
|
918
1062
|
var t;
|
|
919
|
-
const e =
|
|
920
|
-
(t = e == null ? void 0 : e.setMeasurementActive) == null || t.call(e, !st.value),
|
|
1063
|
+
const e = u.value;
|
|
1064
|
+
(t = e == null ? void 0 : e.setMeasurementActive) == null || t.call(e, !st.value), y();
|
|
921
1065
|
}
|
|
922
1066
|
function Ct() {
|
|
923
1067
|
var t;
|
|
924
|
-
const e =
|
|
925
|
-
(t = e == null ? void 0 : e.clearMeasurement) == null || t.call(e),
|
|
1068
|
+
const e = u.value;
|
|
1069
|
+
(t = e == null ? void 0 : e.clearMeasurement) == null || t.call(e), y();
|
|
926
1070
|
}
|
|
927
1071
|
function Mt(e) {
|
|
928
1072
|
var a;
|
|
929
|
-
const t =
|
|
930
|
-
(a = t == null ? void 0 : t.setMeasurementSnapMode) == null || a.call(t, e),
|
|
1073
|
+
const t = u.value;
|
|
1074
|
+
(a = t == null ? void 0 : t.setMeasurementSnapMode) == null || a.call(t, e), y();
|
|
931
1075
|
}
|
|
932
1076
|
function xe(e) {
|
|
933
1077
|
var a;
|
|
934
|
-
const t =
|
|
935
|
-
(a = t == null ? void 0 : t.setMeasurementAxisLock) == null || a.call(t, e),
|
|
1078
|
+
const t = u.value;
|
|
1079
|
+
(a = t == null ? void 0 : t.setMeasurementAxisLock) == null || a.call(t, e), y();
|
|
936
1080
|
}
|
|
937
1081
|
function _t() {
|
|
938
1082
|
var t;
|
|
939
|
-
const e =
|
|
940
|
-
(t = e == null ? void 0 : e.setSectionActive) == null || t.call(e, !ge.value),
|
|
1083
|
+
const e = u.value;
|
|
1084
|
+
(t = e == null ? void 0 : e.setSectionActive) == null || t.call(e, !ge.value), y();
|
|
941
1085
|
}
|
|
942
1086
|
function Dt() {
|
|
943
1087
|
var t;
|
|
944
|
-
const e =
|
|
945
|
-
(t = e == null ? void 0 : e.clearSection) == null || t.call(e),
|
|
1088
|
+
const e = u.value;
|
|
1089
|
+
(t = e == null ? void 0 : e.clearSection) == null || t.call(e), y();
|
|
946
1090
|
}
|
|
947
1091
|
function Rt(e) {
|
|
948
1092
|
var a;
|
|
949
|
-
const t =
|
|
950
|
-
(a = t == null ? void 0 : t.setSectionMode) == null || a.call(t, e),
|
|
1093
|
+
const t = u.value;
|
|
1094
|
+
(a = t == null ? void 0 : t.setSectionMode) == null || a.call(t, e), y();
|
|
951
1095
|
}
|
|
952
|
-
function
|
|
1096
|
+
function Be(e) {
|
|
953
1097
|
var a;
|
|
954
|
-
const t =
|
|
955
|
-
(a = t == null ? void 0 : t.setSectionAxis) == null || a.call(t, e),
|
|
1098
|
+
const t = u.value;
|
|
1099
|
+
(a = t == null ? void 0 : t.setSectionAxis) == null || a.call(t, e), y();
|
|
956
1100
|
}
|
|
957
|
-
function
|
|
958
|
-
var
|
|
959
|
-
const t = Number(((
|
|
960
|
-
(
|
|
1101
|
+
function Aa(e) {
|
|
1102
|
+
var l, b;
|
|
1103
|
+
const t = Number(((l = e.target) == null ? void 0 : l.value) ?? 0), a = u.value;
|
|
1104
|
+
(b = a == null ? void 0 : a.setSectionOffset) == null || b.call(a, t), y();
|
|
961
1105
|
}
|
|
962
1106
|
function Pt(e, t, a) {
|
|
963
1107
|
var ue, ce;
|
|
964
|
-
const
|
|
965
|
-
(ce =
|
|
1108
|
+
const l = Number(((ue = a.target) == null ? void 0 : ue.value) ?? 0), b = Q.value[e], m = t === "min" ? l : b[0], W = t === "max" ? l : b[1], z = u.value;
|
|
1109
|
+
(ce = z == null ? void 0 : z.setSectionRange) == null || ce.call(z, e, m, W), y();
|
|
966
1110
|
}
|
|
967
1111
|
function Tt(e) {
|
|
968
1112
|
var a;
|
|
969
|
-
const t =
|
|
970
|
-
(a = t == null ? void 0 : t.setCameraProjection) == null || a.call(t, e),
|
|
1113
|
+
const t = u.value;
|
|
1114
|
+
(a = t == null ? void 0 : t.setCameraProjection) == null || a.call(t, e), y();
|
|
971
1115
|
}
|
|
972
1116
|
function ee(e) {
|
|
973
1117
|
var a;
|
|
974
|
-
const t =
|
|
975
|
-
(a = t == null ? void 0 : t.setCameraViewPreset) == null || a.call(t, e),
|
|
1118
|
+
const t = u.value;
|
|
1119
|
+
(a = t == null ? void 0 : t.setCameraViewPreset) == null || a.call(t, e), y();
|
|
976
1120
|
}
|
|
977
|
-
function
|
|
1121
|
+
function A(e) {
|
|
978
1122
|
var a;
|
|
979
|
-
const t =
|
|
980
|
-
(a = t == null ? void 0 : t.setDisplayMode) == null || a.call(t, e),
|
|
1123
|
+
const t = u.value;
|
|
1124
|
+
(a = t == null ? void 0 : t.setDisplayMode) == null || a.call(t, e), y();
|
|
981
1125
|
}
|
|
982
1126
|
function we(e) {
|
|
983
1127
|
var a;
|
|
984
|
-
const t =
|
|
985
|
-
(a = t == null ? void 0 : t.setSnapshotBackground) == null || a.call(t, e),
|
|
1128
|
+
const t = u.value;
|
|
1129
|
+
(a = t == null ? void 0 : t.setSnapshotBackground) == null || a.call(t, e), y();
|
|
986
1130
|
}
|
|
987
|
-
function
|
|
1131
|
+
function Lt() {
|
|
988
1132
|
var t;
|
|
989
|
-
const e =
|
|
1133
|
+
const e = u.value;
|
|
990
1134
|
(t = e == null ? void 0 : e.downloadSnapshot) == null || t.call(e, void 0, X.value);
|
|
991
1135
|
}
|
|
992
|
-
function
|
|
993
|
-
if (!(e.defaultPrevented || !
|
|
1136
|
+
function Ia(e) {
|
|
1137
|
+
if (!(e.defaultPrevented || !u.value || Fa(e))) {
|
|
994
1138
|
if (e.key === "ArrowLeft" || e.key === "PageUp") {
|
|
995
1139
|
e.preventDefault(), Ne();
|
|
996
1140
|
return;
|
|
997
1141
|
}
|
|
998
1142
|
if (e.key === "ArrowRight" || e.key === "PageDown") {
|
|
999
|
-
e.preventDefault(),
|
|
1143
|
+
e.preventDefault(), ze();
|
|
1000
1144
|
return;
|
|
1001
1145
|
}
|
|
1002
1146
|
if ((e.key === "+" || e.key === "=") && !e.ctrlKey && !e.metaKey) {
|
|
@@ -1028,7 +1172,7 @@ const Qs = ["aria-label"], Js = {
|
|
|
1028
1172
|
return;
|
|
1029
1173
|
}
|
|
1030
1174
|
if (e.key.toLowerCase() === "g" && ye.value) {
|
|
1031
|
-
e.preventDefault(),
|
|
1175
|
+
e.preventDefault(), Lt();
|
|
1032
1176
|
return;
|
|
1033
1177
|
}
|
|
1034
1178
|
if (e.key.toLowerCase() === "x" && ut.value) {
|
|
@@ -1044,19 +1188,19 @@ const Qs = ["aria-label"], Js = {
|
|
|
1044
1188
|
return;
|
|
1045
1189
|
}
|
|
1046
1190
|
if (e.key === "1" && N.value) {
|
|
1047
|
-
e.preventDefault(),
|
|
1191
|
+
e.preventDefault(), A("shaded");
|
|
1048
1192
|
return;
|
|
1049
1193
|
}
|
|
1050
1194
|
if (e.key === "2" && N.value) {
|
|
1051
|
-
e.preventDefault(),
|
|
1195
|
+
e.preventDefault(), A("solid-edge");
|
|
1052
1196
|
return;
|
|
1053
1197
|
}
|
|
1054
1198
|
if (e.key === "3" && N.value) {
|
|
1055
|
-
e.preventDefault(),
|
|
1199
|
+
e.preventDefault(), A("wireframe");
|
|
1056
1200
|
return;
|
|
1057
1201
|
}
|
|
1058
1202
|
if (e.key === "4" && N.value) {
|
|
1059
|
-
e.preventDefault(),
|
|
1203
|
+
e.preventDefault(), A("xray");
|
|
1060
1204
|
return;
|
|
1061
1205
|
}
|
|
1062
1206
|
if (e.key === "Escape" && nt.value) {
|
|
@@ -1066,20 +1210,20 @@ const Qs = ["aria-label"], Js = {
|
|
|
1066
1210
|
e.key === "Escape" && ge.value && (e.preventDefault(), Dt());
|
|
1067
1211
|
}
|
|
1068
1212
|
}
|
|
1069
|
-
function
|
|
1213
|
+
function Fa(e) {
|
|
1070
1214
|
const t = e.target;
|
|
1071
1215
|
return !!(t != null && t.closest('input, textarea, select, [contenteditable="true"], button'));
|
|
1072
1216
|
}
|
|
1073
|
-
function
|
|
1217
|
+
function D(e) {
|
|
1074
1218
|
return Number.isInteger(e) ? String(e) : e.toFixed(2).replace(/\.?0+$/, "");
|
|
1075
1219
|
}
|
|
1076
1220
|
function re(e) {
|
|
1077
|
-
return e.map(
|
|
1221
|
+
return e.map(D).join(", ");
|
|
1078
1222
|
}
|
|
1079
1223
|
function ke(e) {
|
|
1080
|
-
return `${
|
|
1224
|
+
return `${D(e[0])} .. ${D(e[1])}`;
|
|
1081
1225
|
}
|
|
1082
|
-
function
|
|
1226
|
+
function Na(e) {
|
|
1083
1227
|
switch (e.status) {
|
|
1084
1228
|
case "pick-start":
|
|
1085
1229
|
return "Pick start";
|
|
@@ -1091,10 +1235,10 @@ const Qs = ["aria-label"], Js = {
|
|
|
1091
1235
|
return e.active ? "Pick start" : "Idle";
|
|
1092
1236
|
}
|
|
1093
1237
|
}
|
|
1094
|
-
function
|
|
1238
|
+
function za(e) {
|
|
1095
1239
|
return e === "vertex" ? "Vertex" : "Surface";
|
|
1096
1240
|
}
|
|
1097
|
-
function
|
|
1241
|
+
function Et(e) {
|
|
1098
1242
|
switch (e) {
|
|
1099
1243
|
case "x":
|
|
1100
1244
|
return "X";
|
|
@@ -1106,7 +1250,7 @@ const Qs = ["aria-label"], Js = {
|
|
|
1106
1250
|
return "Free";
|
|
1107
1251
|
}
|
|
1108
1252
|
}
|
|
1109
|
-
function
|
|
1253
|
+
function Ba(e) {
|
|
1110
1254
|
switch (e) {
|
|
1111
1255
|
case "shaded":
|
|
1112
1256
|
return "Shaded";
|
|
@@ -1118,7 +1262,7 @@ const Qs = ["aria-label"], Js = {
|
|
|
1118
1262
|
return "Solid + edge";
|
|
1119
1263
|
}
|
|
1120
1264
|
}
|
|
1121
|
-
function
|
|
1265
|
+
function $t(e) {
|
|
1122
1266
|
switch (e) {
|
|
1123
1267
|
case "white":
|
|
1124
1268
|
return "White";
|
|
@@ -1128,15 +1272,15 @@ const Qs = ["aria-label"], Js = {
|
|
|
1128
1272
|
return "Scene";
|
|
1129
1273
|
}
|
|
1130
1274
|
}
|
|
1131
|
-
function
|
|
1275
|
+
function Va(e) {
|
|
1132
1276
|
var t;
|
|
1133
1277
|
return [
|
|
1134
1278
|
...e.name ? [{ label: "Name", value: e.name }] : [],
|
|
1135
1279
|
{ label: "Type", value: e.type },
|
|
1136
1280
|
...e.color ? [{ label: "Color", value: e.color }] : [],
|
|
1137
1281
|
...e.emissiveColor ? [{ label: "Emissive", value: e.emissiveColor }] : [],
|
|
1138
|
-
...typeof e.opacity == "number" ? [{ label: "Opacity", value:
|
|
1139
|
-
...typeof e.alphaTest == "number" ? [{ label: "Alpha test", value:
|
|
1282
|
+
...typeof e.opacity == "number" ? [{ label: "Opacity", value: D(e.opacity) }] : [],
|
|
1283
|
+
...typeof e.alphaTest == "number" ? [{ label: "Alpha test", value: D(e.alphaTest) }] : [],
|
|
1140
1284
|
...typeof e.transparent == "boolean" ? [{ label: "Transparent", value: e.transparent ? "Yes" : "No" }] : [],
|
|
1141
1285
|
...typeof e.wireframe == "boolean" ? [{ label: "Wireframe", value: e.wireframe ? "Yes" : "No" }] : [],
|
|
1142
1286
|
...typeof e.vertexColors == "boolean" ? [{ label: "Vertex colors", value: e.vertexColors ? "Yes" : "No" }] : [],
|
|
@@ -1144,23 +1288,23 @@ const Qs = ["aria-label"], Js = {
|
|
|
1144
1288
|
...typeof e.depthWrite == "boolean" ? [{ label: "Depth write", value: e.depthWrite ? "Yes" : "No" }] : [],
|
|
1145
1289
|
...typeof e.depthTest == "boolean" ? [{ label: "Depth test", value: e.depthTest ? "Yes" : "No" }] : [],
|
|
1146
1290
|
...e.side ? [{ label: "Side", value: e.side }] : [],
|
|
1147
|
-
...typeof e.roughness == "number" ? [{ label: "Roughness", value:
|
|
1148
|
-
...typeof e.metalness == "number" ? [{ label: "Metalness", value:
|
|
1149
|
-
...typeof e.shininess == "number" ? [{ label: "Shininess", value:
|
|
1150
|
-
...typeof e.size == "number" ? [{ label: "Size", value:
|
|
1291
|
+
...typeof e.roughness == "number" ? [{ label: "Roughness", value: D(e.roughness) }] : [],
|
|
1292
|
+
...typeof e.metalness == "number" ? [{ label: "Metalness", value: D(e.metalness) }] : [],
|
|
1293
|
+
...typeof e.shininess == "number" ? [{ label: "Shininess", value: D(e.shininess) }] : [],
|
|
1294
|
+
...typeof e.size == "number" ? [{ label: "Size", value: D(e.size) }] : [],
|
|
1151
1295
|
...(t = e.mapKinds) != null && t.length ? [{ label: "Maps", value: e.mapKinds.join(", ") }] : []
|
|
1152
1296
|
];
|
|
1153
1297
|
}
|
|
1154
|
-
function
|
|
1298
|
+
function At(e) {
|
|
1155
1299
|
return [
|
|
1156
1300
|
...e.color ? [{ label: "Base", color: e.color }] : [],
|
|
1157
1301
|
...e.emissiveColor ? [{ label: "Emissive", color: e.emissiveColor }] : []
|
|
1158
1302
|
];
|
|
1159
1303
|
}
|
|
1160
|
-
function
|
|
1304
|
+
function Ga(e) {
|
|
1161
1305
|
return me.value === e.key ? "Clear isolate" : "Isolate";
|
|
1162
1306
|
}
|
|
1163
|
-
function
|
|
1307
|
+
function Oa(e) {
|
|
1164
1308
|
switch (e) {
|
|
1165
1309
|
case "mesh":
|
|
1166
1310
|
return "M";
|
|
@@ -1184,9 +1328,9 @@ const Qs = ["aria-label"], Js = {
|
|
|
1184
1328
|
for (const a of e) {
|
|
1185
1329
|
if (a.id === t)
|
|
1186
1330
|
return a;
|
|
1187
|
-
const
|
|
1188
|
-
if (
|
|
1189
|
-
return
|
|
1331
|
+
const l = Ve(a.children, t);
|
|
1332
|
+
if (l)
|
|
1333
|
+
return l;
|
|
1190
1334
|
}
|
|
1191
1335
|
}
|
|
1192
1336
|
function It(e) {
|
|
@@ -1198,34 +1342,34 @@ const Qs = ["aria-label"], Js = {
|
|
|
1198
1342
|
points: e.kind === "points" ? 1 : 0
|
|
1199
1343
|
};
|
|
1200
1344
|
for (const a of e.children) {
|
|
1201
|
-
const
|
|
1202
|
-
t.nodes +=
|
|
1345
|
+
const l = It(a);
|
|
1346
|
+
t.nodes += l.nodes, t.groups += l.groups, t.meshes += l.meshes, t.lines += l.lines, t.points += l.points;
|
|
1203
1347
|
}
|
|
1204
1348
|
return t;
|
|
1205
1349
|
}
|
|
1206
1350
|
function Ft(e, t, a = 0) {
|
|
1207
|
-
return e.flatMap((
|
|
1351
|
+
return e.flatMap((l) => [
|
|
1208
1352
|
{
|
|
1209
|
-
...
|
|
1353
|
+
...l,
|
|
1210
1354
|
depth: a,
|
|
1211
|
-
collapsed: t.has(
|
|
1355
|
+
collapsed: t.has(l.id)
|
|
1212
1356
|
},
|
|
1213
|
-
...t.has(
|
|
1357
|
+
...t.has(l.id) ? [] : Ft(l.children, t, a + 1)
|
|
1214
1358
|
]);
|
|
1215
1359
|
}
|
|
1216
1360
|
function Nt(e, t) {
|
|
1217
1361
|
return e.flatMap((a) => {
|
|
1218
1362
|
if (Vt(a).includes(t))
|
|
1219
1363
|
return [a];
|
|
1220
|
-
const
|
|
1221
|
-
return
|
|
1364
|
+
const l = Nt(a.children, t);
|
|
1365
|
+
return l.length ? [{ ...a, children: l }] : [];
|
|
1222
1366
|
});
|
|
1223
1367
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return e.reduce((t, a) => t + 1 +
|
|
1368
|
+
function zt(e) {
|
|
1369
|
+
return e.reduce((t, a) => t + 1 + zt(a.children), 0);
|
|
1226
1370
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return e.reduce((a,
|
|
1371
|
+
function Bt(e, t) {
|
|
1372
|
+
return e.reduce((a, l) => a + (Vt(l).includes(t) ? 1 : 0) + Bt(l.children, t), 0);
|
|
1229
1373
|
}
|
|
1230
1374
|
function Vt(e) {
|
|
1231
1375
|
var t;
|
|
@@ -1239,29 +1383,29 @@ const Qs = ["aria-label"], Js = {
|
|
|
1239
1383
|
function Gt(e) {
|
|
1240
1384
|
return e.trim().toLowerCase();
|
|
1241
1385
|
}
|
|
1242
|
-
|
|
1243
|
-
goToIndex:
|
|
1244
|
-
next:
|
|
1386
|
+
o({
|
|
1387
|
+
goToIndex: Ca,
|
|
1388
|
+
next: ze,
|
|
1245
1389
|
prev: Ne,
|
|
1246
1390
|
fit: (e) => {
|
|
1247
1391
|
var t;
|
|
1248
|
-
(t =
|
|
1392
|
+
(t = u.value) == null || t.fit(e), y();
|
|
1249
1393
|
},
|
|
1250
1394
|
setScale: (e) => {
|
|
1251
1395
|
var t;
|
|
1252
|
-
(t =
|
|
1396
|
+
(t = u.value) == null || t.setScale(e), y();
|
|
1253
1397
|
},
|
|
1254
1398
|
rotate: (e) => {
|
|
1255
1399
|
var t;
|
|
1256
|
-
(t =
|
|
1400
|
+
(t = u.value) == null || t.rotate(e), y();
|
|
1257
1401
|
},
|
|
1258
|
-
getState: () =>
|
|
1259
|
-
}),
|
|
1260
|
-
await
|
|
1402
|
+
getState: () => r.value
|
|
1403
|
+
}), Ka(async () => {
|
|
1404
|
+
await vt(), await le();
|
|
1261
1405
|
}), Ge(
|
|
1262
1406
|
() => n.src,
|
|
1263
1407
|
async () => {
|
|
1264
|
-
|
|
1408
|
+
P.value = !1, T.value = /* @__PURE__ */ new Set(), S.value = "", await le();
|
|
1265
1409
|
}
|
|
1266
1410
|
), Ge(
|
|
1267
1411
|
() => [
|
|
@@ -1272,6 +1416,7 @@ const Qs = ["aria-label"], Js = {
|
|
|
1272
1416
|
n.drivers,
|
|
1273
1417
|
n.routes,
|
|
1274
1418
|
n.converter,
|
|
1419
|
+
n.mediaConverter,
|
|
1275
1420
|
n.fontResolver,
|
|
1276
1421
|
n.fontLoading,
|
|
1277
1422
|
n.resourceResolver,
|
|
@@ -1280,238 +1425,238 @@ const Qs = ["aria-label"], Js = {
|
|
|
1280
1425
|
n.panoramaProcessor
|
|
1281
1426
|
],
|
|
1282
1427
|
async () => {
|
|
1283
|
-
|
|
1428
|
+
P.value = !1, T.value = /* @__PURE__ */ new Set(), S.value = "", await vt(), await le();
|
|
1284
1429
|
}
|
|
1285
1430
|
), Ge(
|
|
1286
1431
|
() => [n.name, n.extension, n.contentType, n.password],
|
|
1287
1432
|
async () => {
|
|
1288
|
-
|
|
1433
|
+
P.value = !1, T.value = /* @__PURE__ */ new Set(), S.value = "", await le();
|
|
1289
1434
|
}
|
|
1290
|
-
),
|
|
1435
|
+
), Ya(() => {
|
|
1291
1436
|
var e;
|
|
1292
|
-
|
|
1437
|
+
L == null || L(null), M.forEach((t) => t()), (e = u.value) == null || e.destroy();
|
|
1293
1438
|
});
|
|
1294
|
-
function
|
|
1439
|
+
function Ua(e, t, a) {
|
|
1295
1440
|
return [
|
|
1296
|
-
...
|
|
1441
|
+
...Xs(),
|
|
1297
1442
|
...$s(),
|
|
1298
|
-
...
|
|
1299
|
-
|
|
1300
|
-
...
|
|
1443
|
+
...Bs({ panoramaProcessor: e, converter: t, mediaConverter: a }),
|
|
1444
|
+
us(),
|
|
1445
|
+
...Js()
|
|
1301
1446
|
];
|
|
1302
1447
|
}
|
|
1303
|
-
return (e, t) => (
|
|
1448
|
+
return (e, t) => (v(), d("div", {
|
|
1304
1449
|
ref_key: "shellRef",
|
|
1305
1450
|
ref: k,
|
|
1306
1451
|
class: "pptxv-shell pptxv-generic-shell",
|
|
1307
1452
|
tabindex: "0",
|
|
1308
1453
|
role: "region",
|
|
1309
|
-
"aria-label": `${
|
|
1310
|
-
onKeydown:
|
|
1454
|
+
"aria-label": `${dt.value} preview`,
|
|
1455
|
+
onKeydown: Ia
|
|
1311
1456
|
}, [
|
|
1312
|
-
|
|
1313
|
-
s("div",
|
|
1457
|
+
h.toolbar ? (v(), d("div", sn, [
|
|
1458
|
+
s("div", nn, [
|
|
1314
1459
|
s("button", {
|
|
1315
1460
|
type: "button",
|
|
1316
1461
|
class: "pptxv-button",
|
|
1317
|
-
disabled: !
|
|
1462
|
+
disabled: !oa.value,
|
|
1318
1463
|
onClick: Ne
|
|
1319
|
-
}, "Prev", 8,
|
|
1464
|
+
}, "Prev", 8, on),
|
|
1320
1465
|
s("button", {
|
|
1321
1466
|
type: "button",
|
|
1322
1467
|
class: "pptxv-button",
|
|
1323
|
-
disabled: !
|
|
1324
|
-
onClick:
|
|
1325
|
-
}, "Next", 8,
|
|
1326
|
-
s("span",
|
|
1468
|
+
disabled: !ia.value,
|
|
1469
|
+
onClick: ze
|
|
1470
|
+
}, "Next", 8, ln),
|
|
1471
|
+
s("span", rn, g(ka.value), 1),
|
|
1327
1472
|
s("span", {
|
|
1328
1473
|
class: x(["pptxv-pill", { "pptxv-pill--hidden": !ct.value }])
|
|
1329
|
-
},
|
|
1474
|
+
}, g(ct.value || "0 warnings"), 3),
|
|
1330
1475
|
s("details", {
|
|
1331
|
-
class: x(["pptxv-layer-menu", { "pptxv-layer-menu--hidden": !
|
|
1476
|
+
class: x(["pptxv-layer-menu", { "pptxv-layer-menu--hidden": !da.value }])
|
|
1332
1477
|
}, [
|
|
1333
|
-
s("summary",
|
|
1334
|
-
s("div",
|
|
1478
|
+
s("summary", un, "Layers " + g(wa.value), 1),
|
|
1479
|
+
s("div", cn, [
|
|
1335
1480
|
s("div", { class: "pptxv-layer-actions" }, [
|
|
1336
1481
|
s("button", {
|
|
1337
1482
|
type: "button",
|
|
1338
1483
|
class: "pptxv-layer-action",
|
|
1339
|
-
onClick:
|
|
1484
|
+
onClick: _a
|
|
1340
1485
|
}, "All"),
|
|
1341
1486
|
s("button", {
|
|
1342
1487
|
type: "button",
|
|
1343
1488
|
class: "pptxv-layer-action",
|
|
1344
|
-
onClick:
|
|
1489
|
+
onClick: Da
|
|
1345
1490
|
}, "None")
|
|
1346
1491
|
]),
|
|
1347
|
-
(
|
|
1492
|
+
(v(!0), d(E, null, V(pe.value, (a) => (v(), d("label", {
|
|
1348
1493
|
key: a.id,
|
|
1349
1494
|
class: "pptxv-layer-row"
|
|
1350
1495
|
}, [
|
|
1351
1496
|
s("input", {
|
|
1352
1497
|
type: "checkbox",
|
|
1353
1498
|
checked: Je.value.has(a.id),
|
|
1354
|
-
onChange: (
|
|
1355
|
-
}, null, 40,
|
|
1499
|
+
onChange: (l) => Ma(a.id, l)
|
|
1500
|
+
}, null, 40, dn),
|
|
1356
1501
|
s("span", {
|
|
1357
1502
|
class: "pptxv-layer-color",
|
|
1358
|
-
style:
|
|
1503
|
+
style: We({ backgroundColor: a.color ?? "#9aa8b8" })
|
|
1359
1504
|
}, null, 4),
|
|
1360
|
-
s("span",
|
|
1505
|
+
s("span", vn, g(a.name), 1)
|
|
1361
1506
|
]))), 128))
|
|
1362
1507
|
])
|
|
1363
1508
|
], 2)
|
|
1364
1509
|
]),
|
|
1365
|
-
s("div",
|
|
1510
|
+
s("div", pn, [
|
|
1366
1511
|
s("button", {
|
|
1367
1512
|
type: "button",
|
|
1368
1513
|
class: "pptxv-button",
|
|
1369
|
-
disabled: !
|
|
1514
|
+
disabled: !la.value,
|
|
1370
1515
|
onClick: ht
|
|
1371
|
-
}, "-", 8,
|
|
1372
|
-
s("span",
|
|
1516
|
+
}, "-", 8, hn),
|
|
1517
|
+
s("span", fn, g(na.value), 1),
|
|
1373
1518
|
s("button", {
|
|
1374
1519
|
type: "button",
|
|
1375
1520
|
class: "pptxv-button",
|
|
1376
|
-
disabled: !
|
|
1521
|
+
disabled: !ra.value,
|
|
1377
1522
|
onClick: pt
|
|
1378
|
-
}, "+", 8,
|
|
1523
|
+
}, "+", 8, mn),
|
|
1379
1524
|
s("button", {
|
|
1380
1525
|
type: "button",
|
|
1381
1526
|
class: "pptxv-button",
|
|
1382
|
-
disabled:
|
|
1527
|
+
disabled: _.value || !r.value.capabilities.fit,
|
|
1383
1528
|
onClick: ft
|
|
1384
|
-
}, " Fit ", 8,
|
|
1529
|
+
}, " Fit ", 8, bn),
|
|
1385
1530
|
s("button", {
|
|
1386
1531
|
type: "button",
|
|
1387
1532
|
class: "pptxv-button",
|
|
1388
|
-
disabled:
|
|
1533
|
+
disabled: _.value || !r.value.capabilities.fit,
|
|
1389
1534
|
onClick: mt
|
|
1390
|
-
}, " Width ", 8,
|
|
1535
|
+
}, " Width ", 8, gn),
|
|
1391
1536
|
s("button", {
|
|
1392
1537
|
type: "button",
|
|
1393
1538
|
class: "pptxv-button",
|
|
1394
|
-
disabled:
|
|
1539
|
+
disabled: _.value || !r.value.capabilities.fit,
|
|
1395
1540
|
onClick: bt
|
|
1396
|
-
}, " Height ", 8,
|
|
1541
|
+
}, " Height ", 8, yn),
|
|
1397
1542
|
s("button", {
|
|
1398
1543
|
type: "button",
|
|
1399
1544
|
class: "pptxv-button",
|
|
1400
|
-
disabled: !
|
|
1545
|
+
disabled: !ua.value,
|
|
1401
1546
|
onClick: gt
|
|
1402
|
-
}, "Rotate", 8,
|
|
1403
|
-
se.value ? (
|
|
1547
|
+
}, "Rotate", 8, xn),
|
|
1548
|
+
se.value ? (v(), d("button", {
|
|
1404
1549
|
key: 0,
|
|
1405
1550
|
type: "button",
|
|
1406
1551
|
class: x(["pptxv-button", { "is-active": st.value }]),
|
|
1407
1552
|
onClick: St
|
|
1408
1553
|
}, " Measure ", 2)) : w("", !0),
|
|
1409
|
-
se.value ? (
|
|
1554
|
+
se.value ? (v(), d("button", {
|
|
1410
1555
|
key: 1,
|
|
1411
1556
|
type: "button",
|
|
1412
1557
|
class: "pptxv-button",
|
|
1413
1558
|
disabled: !nt.value,
|
|
1414
1559
|
onClick: Ct
|
|
1415
|
-
}, " Clear ", 8,
|
|
1416
|
-
ne.value ? (
|
|
1560
|
+
}, " Clear ", 8, wn)) : w("", !0),
|
|
1561
|
+
ne.value ? (v(), d("button", {
|
|
1417
1562
|
key: 2,
|
|
1418
1563
|
type: "button",
|
|
1419
1564
|
class: x(["pptxv-button", { "is-active": ge.value }]),
|
|
1420
1565
|
onClick: _t
|
|
1421
1566
|
}, " Section ", 2)) : w("", !0),
|
|
1422
|
-
ne.value ? (
|
|
1567
|
+
ne.value ? (v(), d("button", {
|
|
1423
1568
|
key: 3,
|
|
1424
1569
|
type: "button",
|
|
1425
1570
|
class: "pptxv-button",
|
|
1426
|
-
disabled: !ge.value && Math.abs(
|
|
1571
|
+
disabled: !ge.value && Math.abs(Ae.value) < 5e-4,
|
|
1427
1572
|
onClick: Dt
|
|
1428
|
-
}, " Reset cut ", 8,
|
|
1429
|
-
Ie.value ? (
|
|
1573
|
+
}, " Reset cut ", 8, kn)) : w("", !0),
|
|
1574
|
+
Ie.value ? (v(), d("button", {
|
|
1430
1575
|
key: 4,
|
|
1431
1576
|
type: "button",
|
|
1432
|
-
class: x(["pptxv-button", { "is-active":
|
|
1577
|
+
class: x(["pptxv-button", { "is-active": lt.value === "perspective" }]),
|
|
1433
1578
|
onClick: t[0] || (t[0] = (a) => Tt("perspective"))
|
|
1434
1579
|
}, " Persp ", 2)) : w("", !0),
|
|
1435
|
-
Ie.value ? (
|
|
1580
|
+
Ie.value ? (v(), d("button", {
|
|
1436
1581
|
key: 5,
|
|
1437
1582
|
type: "button",
|
|
1438
|
-
class: x(["pptxv-button", { "is-active":
|
|
1583
|
+
class: x(["pptxv-button", { "is-active": lt.value === "orthographic" }]),
|
|
1439
1584
|
onClick: t[1] || (t[1] = (a) => Tt("orthographic"))
|
|
1440
1585
|
}, " Ortho ", 2)) : w("", !0),
|
|
1441
|
-
N.value ? (
|
|
1586
|
+
N.value ? (v(), d("button", {
|
|
1442
1587
|
key: 6,
|
|
1443
1588
|
type: "button",
|
|
1444
|
-
class: x(["pptxv-button", { "is-active":
|
|
1445
|
-
onClick: t[2] || (t[2] = (a) =>
|
|
1589
|
+
class: x(["pptxv-button", { "is-active": U.value === "shaded" }]),
|
|
1590
|
+
onClick: t[2] || (t[2] = (a) => A("shaded"))
|
|
1446
1591
|
}, " Shade ", 2)) : w("", !0),
|
|
1447
|
-
N.value ? (
|
|
1592
|
+
N.value ? (v(), d("button", {
|
|
1448
1593
|
key: 7,
|
|
1449
1594
|
type: "button",
|
|
1450
|
-
class: x(["pptxv-button", { "is-active":
|
|
1451
|
-
onClick: t[3] || (t[3] = (a) =>
|
|
1595
|
+
class: x(["pptxv-button", { "is-active": U.value === "solid-edge" }]),
|
|
1596
|
+
onClick: t[3] || (t[3] = (a) => A("solid-edge"))
|
|
1452
1597
|
}, " Edge ", 2)) : w("", !0),
|
|
1453
|
-
N.value ? (
|
|
1598
|
+
N.value ? (v(), d("button", {
|
|
1454
1599
|
key: 8,
|
|
1455
1600
|
type: "button",
|
|
1456
|
-
class: x(["pptxv-button", { "is-active":
|
|
1457
|
-
onClick: t[4] || (t[4] = (a) =>
|
|
1601
|
+
class: x(["pptxv-button", { "is-active": U.value === "wireframe" }]),
|
|
1602
|
+
onClick: t[4] || (t[4] = (a) => A("wireframe"))
|
|
1458
1603
|
}, " Wire ", 2)) : w("", !0),
|
|
1459
|
-
N.value ? (
|
|
1604
|
+
N.value ? (v(), d("button", {
|
|
1460
1605
|
key: 9,
|
|
1461
1606
|
type: "button",
|
|
1462
|
-
class: x(["pptxv-button", { "is-active":
|
|
1463
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
1607
|
+
class: x(["pptxv-button", { "is-active": U.value === "xray" }]),
|
|
1608
|
+
onClick: t[5] || (t[5] = (a) => A("xray"))
|
|
1464
1609
|
}, " X-Ray ", 2)) : w("", !0),
|
|
1465
|
-
ye.value ? (
|
|
1610
|
+
ye.value ? (v(), d("button", {
|
|
1466
1611
|
key: 10,
|
|
1467
1612
|
type: "button",
|
|
1468
1613
|
class: "pptxv-button",
|
|
1469
|
-
onClick:
|
|
1614
|
+
onClick: Lt
|
|
1470
1615
|
}, " PNG ")) : w("", !0),
|
|
1471
|
-
ye.value ? (
|
|
1616
|
+
ye.value ? (v(), d("button", {
|
|
1472
1617
|
key: 11,
|
|
1473
1618
|
type: "button",
|
|
1474
1619
|
class: "pptxv-button",
|
|
1475
1620
|
onClick: t[6] || (t[6] = (a) => we(X.value === "scene" ? "white" : X.value === "white" ? "transparent" : "scene"))
|
|
1476
|
-
},
|
|
1621
|
+
}, g($t(X.value)), 1)) : w("", !0),
|
|
1477
1622
|
s("button", {
|
|
1478
1623
|
type: "button",
|
|
1479
1624
|
class: "pptxv-button",
|
|
1480
|
-
disabled: !
|
|
1625
|
+
disabled: !ca.value,
|
|
1481
1626
|
onClick: yt
|
|
1482
|
-
}, "Full", 8,
|
|
1627
|
+
}, "Full", 8, Sn)
|
|
1483
1628
|
])
|
|
1484
1629
|
])) : w("", !0),
|
|
1485
|
-
s("div",
|
|
1486
|
-
|
|
1630
|
+
s("div", Cn, [
|
|
1631
|
+
r.value.family === "model3d" ? Oe((v(), d("div", {
|
|
1487
1632
|
key: 0,
|
|
1488
|
-
id:
|
|
1633
|
+
id: H,
|
|
1489
1634
|
class: "pptxv-model-tools"
|
|
1490
1635
|
}, [
|
|
1491
|
-
s("aside",
|
|
1492
|
-
s("div",
|
|
1493
|
-
rt.value ? (
|
|
1636
|
+
s("aside", Mn, [
|
|
1637
|
+
s("div", _n, [
|
|
1638
|
+
rt.value ? (v(), d(E, { key: 0 }, [
|
|
1494
1639
|
t[43] || (t[43] = s("div", { class: "pptxv-meta-heading" }, "Model tree", -1)),
|
|
1495
|
-
s("div",
|
|
1640
|
+
s("div", Dn, [
|
|
1496
1641
|
s("button", {
|
|
1497
1642
|
type: "button",
|
|
1498
1643
|
class: "pptxv-button pptxv-tree-reset",
|
|
1499
|
-
disabled: !
|
|
1644
|
+
disabled: !B.value,
|
|
1500
1645
|
onClick: t[7] || (t[7] = (a) => xt(void 0))
|
|
1501
|
-
}, " Show all ", 8,
|
|
1646
|
+
}, " Show all ", 8, Rn),
|
|
1502
1647
|
s("button", {
|
|
1503
1648
|
type: "button",
|
|
1504
1649
|
class: "pptxv-button pptxv-tree-reset",
|
|
1505
|
-
disabled: !
|
|
1506
|
-
onClick:
|
|
1507
|
-
}, " Refocus ", 8,
|
|
1650
|
+
disabled: !B.value,
|
|
1651
|
+
onClick: Ta
|
|
1652
|
+
}, " Refocus ", 8, Pn),
|
|
1508
1653
|
s("button", {
|
|
1509
1654
|
type: "button",
|
|
1510
1655
|
class: "pptxv-button pptxv-tree-reset",
|
|
1511
|
-
onClick:
|
|
1656
|
+
onClick: La
|
|
1512
1657
|
}, " Reset view ")
|
|
1513
1658
|
]),
|
|
1514
|
-
s("div",
|
|
1659
|
+
s("div", Tn, [
|
|
1515
1660
|
Oe(s("input", {
|
|
1516
1661
|
"onUpdate:modelValue": t[8] || (t[8] = (a) => S.value = a),
|
|
1517
1662
|
type: "search",
|
|
@@ -1519,7 +1664,7 @@ const Qs = ["aria-label"], Js = {
|
|
|
1519
1664
|
placeholder: "Search nodes, kinds, materials"
|
|
1520
1665
|
}, null, 512), [
|
|
1521
1666
|
[
|
|
1522
|
-
|
|
1667
|
+
Ht,
|
|
1523
1668
|
S.value,
|
|
1524
1669
|
void 0,
|
|
1525
1670
|
{ trim: !0 }
|
|
@@ -1529,11 +1674,11 @@ const Qs = ["aria-label"], Js = {
|
|
|
1529
1674
|
type: "button",
|
|
1530
1675
|
class: "pptxv-button pptxv-tree-search-clear",
|
|
1531
1676
|
disabled: !ae.value,
|
|
1532
|
-
onClick:
|
|
1533
|
-
}, " Clear ", 8,
|
|
1677
|
+
onClick: $a
|
|
1678
|
+
}, " Clear ", 8, Ln)
|
|
1534
1679
|
]),
|
|
1535
|
-
s("div",
|
|
1536
|
-
ut.value ? (
|
|
1680
|
+
s("div", En, g(ga.value), 1),
|
|
1681
|
+
ut.value ? (v(), d("div", $n, [
|
|
1537
1682
|
t[40] || (t[40] = s("span", { class: "pptxv-tree-explode-label" }, "Explode", -1)),
|
|
1538
1683
|
s("input", {
|
|
1539
1684
|
type: "range",
|
|
@@ -1542,22 +1687,22 @@ const Qs = ["aria-label"], Js = {
|
|
|
1542
1687
|
step: "1",
|
|
1543
1688
|
class: "pptxv-tree-explode-slider",
|
|
1544
1689
|
value: Fe.value,
|
|
1545
|
-
onInput: t[9] || (t[9] = (a) =>
|
|
1546
|
-
}, null, 40,
|
|
1690
|
+
onInput: t[9] || (t[9] = (a) => Pa(a))
|
|
1691
|
+
}, null, 40, An),
|
|
1547
1692
|
s("button", {
|
|
1548
1693
|
type: "button",
|
|
1549
1694
|
class: "pptxv-button pptxv-tree-explode-value",
|
|
1550
1695
|
onClick: wt
|
|
1551
|
-
},
|
|
1696
|
+
}, g(Fe.value) + "% ", 1)
|
|
1552
1697
|
])) : w("", !0),
|
|
1553
|
-
he.value ? (
|
|
1554
|
-
s("span", null,
|
|
1555
|
-
s("strong", null,
|
|
1698
|
+
he.value ? (v(), d("div", In, [
|
|
1699
|
+
s("span", null, g(he.value.label), 1),
|
|
1700
|
+
s("strong", null, g(he.value.children.length) + " child" + g(he.value.children.length === 1 ? "" : "ren"), 1)
|
|
1556
1701
|
])) : w("", !0),
|
|
1557
|
-
Ie.value ? (
|
|
1558
|
-
s("div",
|
|
1702
|
+
Ie.value ? (v(), d("div", Fn, [
|
|
1703
|
+
s("div", Nn, [
|
|
1559
1704
|
t[41] || (t[41] = s("span", { class: "pptxv-measurement-label" }, "View", -1)),
|
|
1560
|
-
s("div",
|
|
1705
|
+
s("div", zn, [
|
|
1561
1706
|
s("button", {
|
|
1562
1707
|
type: "button",
|
|
1563
1708
|
class: x(["pptxv-button", { "is-active": J.value === "isometric" }]),
|
|
@@ -1595,161 +1740,161 @@ const Qs = ["aria-label"], Js = {
|
|
|
1595
1740
|
}, "Bottom", 2)
|
|
1596
1741
|
])
|
|
1597
1742
|
]),
|
|
1598
|
-
N.value ? (
|
|
1743
|
+
N.value ? (v(), d("div", Bn, [
|
|
1599
1744
|
t[42] || (t[42] = s("span", { class: "pptxv-measurement-label" }, "Display", -1)),
|
|
1600
|
-
s("div",
|
|
1745
|
+
s("div", Vn, [
|
|
1601
1746
|
s("button", {
|
|
1602
1747
|
type: "button",
|
|
1603
|
-
class: x(["pptxv-button", { "is-active":
|
|
1604
|
-
onClick: t[17] || (t[17] = (a) =>
|
|
1748
|
+
class: x(["pptxv-button", { "is-active": U.value === "shaded" }]),
|
|
1749
|
+
onClick: t[17] || (t[17] = (a) => A("shaded"))
|
|
1605
1750
|
}, "Shaded", 2),
|
|
1606
1751
|
s("button", {
|
|
1607
1752
|
type: "button",
|
|
1608
|
-
class: x(["pptxv-button", { "is-active":
|
|
1609
|
-
onClick: t[18] || (t[18] = (a) =>
|
|
1753
|
+
class: x(["pptxv-button", { "is-active": U.value === "solid-edge" }]),
|
|
1754
|
+
onClick: t[18] || (t[18] = (a) => A("solid-edge"))
|
|
1610
1755
|
}, "Solid+Edge", 2),
|
|
1611
1756
|
s("button", {
|
|
1612
1757
|
type: "button",
|
|
1613
|
-
class: x(["pptxv-button", { "is-active":
|
|
1614
|
-
onClick: t[19] || (t[19] = (a) =>
|
|
1758
|
+
class: x(["pptxv-button", { "is-active": U.value === "wireframe" }]),
|
|
1759
|
+
onClick: t[19] || (t[19] = (a) => A("wireframe"))
|
|
1615
1760
|
}, "Wireframe", 2),
|
|
1616
1761
|
s("button", {
|
|
1617
1762
|
type: "button",
|
|
1618
|
-
class: x(["pptxv-button", { "is-active":
|
|
1619
|
-
onClick: t[20] || (t[20] = (a) =>
|
|
1763
|
+
class: x(["pptxv-button", { "is-active": U.value === "xray" }]),
|
|
1764
|
+
onClick: t[20] || (t[20] = (a) => A("xray"))
|
|
1620
1765
|
}, "X-Ray", 2)
|
|
1621
1766
|
])
|
|
1622
1767
|
])) : w("", !0)
|
|
1623
1768
|
])) : w("", !0),
|
|
1624
|
-
at.value.length ? (
|
|
1625
|
-
(
|
|
1769
|
+
at.value.length ? (v(), d("dl", Gn, [
|
|
1770
|
+
(v(!0), d(E, null, V(at.value, (a) => (v(), d("div", {
|
|
1626
1771
|
key: a.label,
|
|
1627
1772
|
class: "pptxv-tree-detail-row"
|
|
1628
1773
|
}, [
|
|
1629
|
-
s("dt", null,
|
|
1630
|
-
s("dd", null,
|
|
1774
|
+
s("dt", null, g(a.label), 1),
|
|
1775
|
+
s("dd", null, g(a.value), 1)
|
|
1631
1776
|
]))), 128))
|
|
1632
1777
|
])) : w("", !0),
|
|
1633
|
-
s("div",
|
|
1634
|
-
(
|
|
1778
|
+
s("div", On, [
|
|
1779
|
+
(v(!0), d(E, null, V(Re.value, (a) => (v(), d("div", {
|
|
1635
1780
|
key: a.id,
|
|
1636
1781
|
class: "pptxv-tree-row",
|
|
1637
|
-
style:
|
|
1782
|
+
style: We({ paddingLeft: `${8 + a.depth * 14}px` })
|
|
1638
1783
|
}, [
|
|
1639
|
-
a.children.length ? (
|
|
1784
|
+
a.children.length ? (v(), d("button", {
|
|
1640
1785
|
key: 0,
|
|
1641
1786
|
type: "button",
|
|
1642
1787
|
class: "pptxv-tree-toggle",
|
|
1643
1788
|
"aria-label": a.collapsed ? "Expand node" : "Collapse node",
|
|
1644
|
-
onClick: (
|
|
1645
|
-
},
|
|
1789
|
+
onClick: (l) => Ea(a.id)
|
|
1790
|
+
}, g(a.collapsed ? "+" : "-"), 9, Un)) : (v(), d("span", Wn)),
|
|
1646
1791
|
s("input", {
|
|
1647
1792
|
type: "checkbox",
|
|
1648
1793
|
class: "pptxv-tree-visibility",
|
|
1649
1794
|
checked: a.visible,
|
|
1650
1795
|
"aria-label": a.visible ? "Hide node" : "Show node",
|
|
1651
|
-
onClick: t[21] || (t[21] =
|
|
1796
|
+
onClick: t[21] || (t[21] = Ue(() => {
|
|
1652
1797
|
}, ["stop"])),
|
|
1653
|
-
onChange: (
|
|
1654
|
-
}, null, 40,
|
|
1798
|
+
onChange: (l) => Ra(a.id, l)
|
|
1799
|
+
}, null, 40, jn),
|
|
1655
1800
|
s("button", {
|
|
1656
1801
|
type: "button",
|
|
1657
|
-
class: x(["pptxv-tree-button", { "is-active":
|
|
1658
|
-
onClick: (
|
|
1802
|
+
class: x(["pptxv-tree-button", { "is-active": B.value === a.id, "is-hidden": !a.visible }]),
|
|
1803
|
+
onClick: (l) => xt(a.id)
|
|
1659
1804
|
}, [
|
|
1660
|
-
s("div",
|
|
1661
|
-
s("span",
|
|
1662
|
-
s("span",
|
|
1663
|
-
a.children.length ? (
|
|
1805
|
+
s("div", Kn, [
|
|
1806
|
+
s("span", Yn, g(Oa(a.kind)), 1),
|
|
1807
|
+
s("span", Xn, g(a.label), 1),
|
|
1808
|
+
a.children.length ? (v(), d("span", qn, g(a.children.length), 1)) : w("", !0)
|
|
1664
1809
|
]),
|
|
1665
|
-
s("span",
|
|
1666
|
-
], 10,
|
|
1810
|
+
s("span", Zn, g(a.kind), 1)
|
|
1811
|
+
], 10, Hn)
|
|
1667
1812
|
], 4))), 128))
|
|
1668
1813
|
]),
|
|
1669
|
-
|
|
1670
|
-
], 64)) : (
|
|
1814
|
+
ya.value ? (v(), d("div", Qn, " No nodes matched the current filter. ")) : w("", !0)
|
|
1815
|
+
], 64)) : (v(), d(E, { key: 1 }, [
|
|
1671
1816
|
t[44] || (t[44] = s("div", { class: "pptxv-meta-heading" }, "Model tree", -1)),
|
|
1672
|
-
s("div",
|
|
1817
|
+
s("div", Jn, g(_.value ? "Loading model..." : "No model tree available."), 1)
|
|
1673
1818
|
], 64))
|
|
1674
1819
|
])
|
|
1675
1820
|
]),
|
|
1676
|
-
s("aside",
|
|
1677
|
-
s("div",
|
|
1821
|
+
s("aside", eo, [
|
|
1822
|
+
s("div", to, [
|
|
1678
1823
|
t[53] || (t[53] = s("div", { class: "pptxv-meta-heading" }, "Model info", -1)),
|
|
1679
|
-
|
|
1680
|
-
(
|
|
1824
|
+
xa.value ? (v(), d("dl", ao, [
|
|
1825
|
+
(v(!0), d(E, null, V(tt.value, (a) => (v(), d("div", {
|
|
1681
1826
|
key: a.label,
|
|
1682
1827
|
class: "pptxv-meta-row"
|
|
1683
1828
|
}, [
|
|
1684
|
-
s("dt", null,
|
|
1685
|
-
s("dd", null,
|
|
1829
|
+
s("dt", null, g(a.label), 1),
|
|
1830
|
+
s("dd", null, g(a.value), 1)
|
|
1686
1831
|
]))), 128))
|
|
1687
|
-
])) : (
|
|
1688
|
-
fe.value.length ? (
|
|
1689
|
-
s("span", null,
|
|
1690
|
-
s("div",
|
|
1691
|
-
me.value ? (
|
|
1832
|
+
])) : (v(), d("div", so, g(_.value ? "Loading model..." : "No model metadata available."), 1)),
|
|
1833
|
+
fe.value.length ? (v(), d("div", no, [
|
|
1834
|
+
s("span", null, g(pa.value), 1),
|
|
1835
|
+
s("div", oo, [
|
|
1836
|
+
me.value ? (v(), d("button", {
|
|
1692
1837
|
key: 0,
|
|
1693
1838
|
type: "button",
|
|
1694
1839
|
class: "pptxv-button pptxv-material-clear",
|
|
1695
1840
|
onClick: t[22] || (t[22] = (a) => kt(void 0))
|
|
1696
1841
|
}, " Clear isolate ")) : w("", !0),
|
|
1697
|
-
s("span",
|
|
1842
|
+
s("span", io, g(ha.value), 1)
|
|
1698
1843
|
])
|
|
1699
1844
|
])) : w("", !0),
|
|
1700
|
-
fe.value.length ? (
|
|
1701
|
-
(
|
|
1845
|
+
fe.value.length ? (v(), d("div", lo, [
|
|
1846
|
+
(v(!0), d(E, null, V(fe.value, (a) => (v(), d("section", {
|
|
1702
1847
|
key: a.key,
|
|
1703
1848
|
class: x(["pptxv-material-card", { "is-active": me.value === a.key }])
|
|
1704
1849
|
}, [
|
|
1705
|
-
s("div",
|
|
1706
|
-
s("div",
|
|
1707
|
-
s("strong", null,
|
|
1708
|
-
s("span", null,
|
|
1850
|
+
s("div", ro, [
|
|
1851
|
+
s("div", uo, [
|
|
1852
|
+
s("strong", null, g(a.name || a.type), 1),
|
|
1853
|
+
s("span", null, g(a.type), 1)
|
|
1709
1854
|
]),
|
|
1710
|
-
|
|
1711
|
-
(
|
|
1712
|
-
key:
|
|
1855
|
+
At(a).length ? (v(), d("div", co, [
|
|
1856
|
+
(v(!0), d(E, null, V(At(a), (l) => (v(), d("span", {
|
|
1857
|
+
key: l.label,
|
|
1713
1858
|
class: "pptxv-material-swatch",
|
|
1714
|
-
title: `${
|
|
1715
|
-
style:
|
|
1716
|
-
}, null, 12,
|
|
1859
|
+
title: `${l.label}: ${l.color}`,
|
|
1860
|
+
style: We({ backgroundColor: l.color })
|
|
1861
|
+
}, null, 12, vo))), 128))
|
|
1717
1862
|
])) : w("", !0)
|
|
1718
1863
|
]),
|
|
1719
|
-
s("div",
|
|
1864
|
+
s("div", po, [
|
|
1720
1865
|
s("button", {
|
|
1721
1866
|
type: "button",
|
|
1722
1867
|
class: "pptxv-button pptxv-material-action",
|
|
1723
|
-
onClick: (
|
|
1724
|
-
},
|
|
1868
|
+
onClick: (l) => kt(a.key)
|
|
1869
|
+
}, g(Ga(a)), 9, ho)
|
|
1725
1870
|
]),
|
|
1726
|
-
s("dl",
|
|
1727
|
-
(
|
|
1728
|
-
key:
|
|
1871
|
+
s("dl", fo, [
|
|
1872
|
+
(v(!0), d(E, null, V(Va(a), (l) => (v(), d("div", {
|
|
1873
|
+
key: l.label,
|
|
1729
1874
|
class: "pptxv-material-detail-row"
|
|
1730
1875
|
}, [
|
|
1731
|
-
s("dt", null,
|
|
1732
|
-
s("dd", null,
|
|
1876
|
+
s("dt", null, g(l.label), 1),
|
|
1877
|
+
s("dd", null, g(l.value), 1)
|
|
1733
1878
|
]))), 128))
|
|
1734
1879
|
])
|
|
1735
1880
|
], 2))), 128))
|
|
1736
1881
|
])) : w("", !0),
|
|
1737
|
-
se.value ? (
|
|
1738
|
-
N.value ? (
|
|
1739
|
-
N.value ? (
|
|
1740
|
-
s("div",
|
|
1882
|
+
se.value ? (v(), d("div", mo, "Measurement")) : w("", !0),
|
|
1883
|
+
N.value ? (v(), d("div", bo, "Display")) : w("", !0),
|
|
1884
|
+
N.value ? (v(), d("dl", go, [
|
|
1885
|
+
s("div", yo, [
|
|
1741
1886
|
t[45] || (t[45] = s("dt", null, "Mode", -1)),
|
|
1742
|
-
s("dd", null,
|
|
1887
|
+
s("dd", null, g(Ba(U.value)), 1)
|
|
1743
1888
|
]),
|
|
1744
|
-
s("div",
|
|
1889
|
+
s("div", xo, [
|
|
1745
1890
|
t[46] || (t[46] = s("dt", null, "Snapshot bg", -1)),
|
|
1746
|
-
s("dd", null,
|
|
1891
|
+
s("dd", null, g($t(X.value)), 1)
|
|
1747
1892
|
])
|
|
1748
1893
|
])) : w("", !0),
|
|
1749
|
-
ye.value ? (
|
|
1750
|
-
s("div",
|
|
1894
|
+
ye.value ? (v(), d("div", wo, [
|
|
1895
|
+
s("div", ko, [
|
|
1751
1896
|
t[47] || (t[47] = s("span", { class: "pptxv-measurement-label" }, "Snapshot", -1)),
|
|
1752
|
-
s("div",
|
|
1897
|
+
s("div", So, [
|
|
1753
1898
|
s("button", {
|
|
1754
1899
|
type: "button",
|
|
1755
1900
|
class: x(["pptxv-button", { "is-active": X.value === "scene" }]),
|
|
@@ -1768,10 +1913,10 @@ const Qs = ["aria-label"], Js = {
|
|
|
1768
1913
|
])
|
|
1769
1914
|
])
|
|
1770
1915
|
])) : w("", !0),
|
|
1771
|
-
se.value ? (
|
|
1772
|
-
s("div",
|
|
1916
|
+
se.value ? (v(), d("div", Co, [
|
|
1917
|
+
s("div", Mo, [
|
|
1773
1918
|
t[48] || (t[48] = s("span", { class: "pptxv-measurement-label" }, "Snap", -1)),
|
|
1774
|
-
s("div",
|
|
1919
|
+
s("div", _o, [
|
|
1775
1920
|
s("button", {
|
|
1776
1921
|
type: "button",
|
|
1777
1922
|
class: x(["pptxv-button", { "is-active": ot.value === "surface" }]),
|
|
@@ -1784,9 +1929,9 @@ const Qs = ["aria-label"], Js = {
|
|
|
1784
1929
|
}, " Vertex ", 2)
|
|
1785
1930
|
])
|
|
1786
1931
|
]),
|
|
1787
|
-
s("div",
|
|
1932
|
+
s("div", Do, [
|
|
1788
1933
|
t[49] || (t[49] = s("span", { class: "pptxv-measurement-label" }, "Axis", -1)),
|
|
1789
|
-
s("div",
|
|
1934
|
+
s("div", Ro, [
|
|
1790
1935
|
s("button", {
|
|
1791
1936
|
type: "button",
|
|
1792
1937
|
class: x(["pptxv-button", { "is-active": be.value === "free" }]),
|
|
@@ -1810,20 +1955,20 @@ const Qs = ["aria-label"], Js = {
|
|
|
1810
1955
|
])
|
|
1811
1956
|
])
|
|
1812
1957
|
])) : w("", !0),
|
|
1813
|
-
se.value ? (
|
|
1814
|
-
(
|
|
1958
|
+
se.value ? (v(), d("dl", Po, [
|
|
1959
|
+
(v(!0), d(E, null, V(fa.value, (a) => (v(), d("div", {
|
|
1815
1960
|
key: a.label,
|
|
1816
1961
|
class: "pptxv-meta-row"
|
|
1817
1962
|
}, [
|
|
1818
|
-
s("dt", null,
|
|
1819
|
-
s("dd", null,
|
|
1963
|
+
s("dt", null, g(a.label), 1),
|
|
1964
|
+
s("dd", null, g(a.value), 1)
|
|
1820
1965
|
]))), 128))
|
|
1821
1966
|
])) : w("", !0),
|
|
1822
|
-
ne.value ? (
|
|
1823
|
-
ne.value ? (
|
|
1824
|
-
s("div",
|
|
1967
|
+
ne.value ? (v(), d("div", To, "Section")) : w("", !0),
|
|
1968
|
+
ne.value ? (v(), d("div", Lo, [
|
|
1969
|
+
s("div", Eo, [
|
|
1825
1970
|
t[50] || (t[50] = s("span", { class: "pptxv-measurement-label" }, "Mode", -1)),
|
|
1826
|
-
s("div",
|
|
1971
|
+
s("div", $o, [
|
|
1827
1972
|
s("button", {
|
|
1828
1973
|
type: "button",
|
|
1829
1974
|
class: x(["pptxv-button", { "is-active": Te.value === "single" }]),
|
|
@@ -1836,52 +1981,52 @@ const Qs = ["aria-label"], Js = {
|
|
|
1836
1981
|
}, " Box ", 2)
|
|
1837
1982
|
])
|
|
1838
1983
|
]),
|
|
1839
|
-
s("div",
|
|
1984
|
+
s("div", Ao, [
|
|
1840
1985
|
t[51] || (t[51] = s("span", { class: "pptxv-measurement-label" }, "Axis", -1)),
|
|
1841
|
-
s("div",
|
|
1986
|
+
s("div", Io, [
|
|
1842
1987
|
s("button", {
|
|
1843
1988
|
type: "button",
|
|
1844
|
-
class: x(["pptxv-button", { "is-active":
|
|
1845
|
-
onClick: t[34] || (t[34] = (a) =>
|
|
1989
|
+
class: x(["pptxv-button", { "is-active": Le.value === "x" }]),
|
|
1990
|
+
onClick: t[34] || (t[34] = (a) => Be("x"))
|
|
1846
1991
|
}, " X ", 2),
|
|
1847
1992
|
s("button", {
|
|
1848
1993
|
type: "button",
|
|
1849
|
-
class: x(["pptxv-button", { "is-active":
|
|
1850
|
-
onClick: t[35] || (t[35] = (a) =>
|
|
1994
|
+
class: x(["pptxv-button", { "is-active": Le.value === "y" }]),
|
|
1995
|
+
onClick: t[35] || (t[35] = (a) => Be("y"))
|
|
1851
1996
|
}, " Y ", 2),
|
|
1852
1997
|
s("button", {
|
|
1853
1998
|
type: "button",
|
|
1854
|
-
class: x(["pptxv-button", { "is-active":
|
|
1855
|
-
onClick: t[36] || (t[36] = (a) =>
|
|
1999
|
+
class: x(["pptxv-button", { "is-active": Le.value === "z" }]),
|
|
2000
|
+
onClick: t[36] || (t[36] = (a) => Be("z"))
|
|
1856
2001
|
}, " Z ", 2)
|
|
1857
2002
|
])
|
|
1858
2003
|
]),
|
|
1859
|
-
Te.value === "single" ? (
|
|
1860
|
-
s("div",
|
|
2004
|
+
Te.value === "single" ? (v(), d("div", Fo, [
|
|
2005
|
+
s("div", No, [
|
|
1861
2006
|
t[52] || (t[52] = s("span", { class: "pptxv-measurement-label" }, "Offset", -1)),
|
|
1862
|
-
s("strong",
|
|
2007
|
+
s("strong", zo, g(D(Ae.value)), 1)
|
|
1863
2008
|
]),
|
|
1864
2009
|
s("input", {
|
|
1865
2010
|
type: "range",
|
|
1866
2011
|
class: "pptxv-section-slider",
|
|
1867
|
-
min:
|
|
1868
|
-
max:
|
|
1869
|
-
step:
|
|
1870
|
-
value:
|
|
1871
|
-
onInput: t[37] || (t[37] = (a) =>
|
|
1872
|
-
}, null, 40,
|
|
1873
|
-
s("div",
|
|
1874
|
-
s("span", null,
|
|
1875
|
-
s("span", null,
|
|
2012
|
+
min: Ee.value,
|
|
2013
|
+
max: $e.value,
|
|
2014
|
+
step: ma.value,
|
|
2015
|
+
value: Ae.value,
|
|
2016
|
+
onInput: t[37] || (t[37] = (a) => Aa(a))
|
|
2017
|
+
}, null, 40, Bo),
|
|
2018
|
+
s("div", Vo, [
|
|
2019
|
+
s("span", null, g(D(Ee.value)), 1),
|
|
2020
|
+
s("span", null, g(D($e.value)), 1)
|
|
1876
2021
|
])
|
|
1877
|
-
])) : (
|
|
1878
|
-
(
|
|
2022
|
+
])) : (v(), d("div", Go, [
|
|
2023
|
+
(v(), d(E, null, V(["x", "y", "z"], (a) => s("div", {
|
|
1879
2024
|
key: a,
|
|
1880
2025
|
class: "pptxv-measurement-group"
|
|
1881
2026
|
}, [
|
|
1882
|
-
s("div",
|
|
1883
|
-
s("span",
|
|
1884
|
-
s("strong",
|
|
2027
|
+
s("div", Oo, [
|
|
2028
|
+
s("span", Uo, "Box " + g(a.toUpperCase()), 1),
|
|
2029
|
+
s("strong", Wo, g(ke(Q.value[a])), 1)
|
|
1885
2030
|
]),
|
|
1886
2031
|
s("input", {
|
|
1887
2032
|
type: "range",
|
|
@@ -1890,8 +2035,8 @@ const Qs = ["aria-label"], Js = {
|
|
|
1890
2035
|
max: F.value[a][1],
|
|
1891
2036
|
step: Math.max((F.value[a][1] - F.value[a][0]) / 200, 1e-3),
|
|
1892
2037
|
value: Q.value[a][0],
|
|
1893
|
-
onInput: (
|
|
1894
|
-
}, null, 40,
|
|
2038
|
+
onInput: (l) => Pt(a, "min", l)
|
|
2039
|
+
}, null, 40, jo),
|
|
1895
2040
|
s("input", {
|
|
1896
2041
|
type: "range",
|
|
1897
2042
|
class: "pptxv-section-slider",
|
|
@@ -1899,47 +2044,47 @@ const Qs = ["aria-label"], Js = {
|
|
|
1899
2044
|
max: F.value[a][1],
|
|
1900
2045
|
step: Math.max((F.value[a][1] - F.value[a][0]) / 200, 1e-3),
|
|
1901
2046
|
value: Q.value[a][1],
|
|
1902
|
-
onInput: (
|
|
1903
|
-
}, null, 40,
|
|
1904
|
-
s("div",
|
|
1905
|
-
s("span", null,
|
|
1906
|
-
s("span", null,
|
|
2047
|
+
onInput: (l) => Pt(a, "max", l)
|
|
2048
|
+
}, null, 40, Ho),
|
|
2049
|
+
s("div", Ko, [
|
|
2050
|
+
s("span", null, g(D(F.value[a][0])), 1),
|
|
2051
|
+
s("span", null, g(D(F.value[a][1])), 1)
|
|
1907
2052
|
])
|
|
1908
2053
|
])), 64))
|
|
1909
2054
|
]))
|
|
1910
2055
|
])) : w("", !0),
|
|
1911
|
-
ne.value ? (
|
|
1912
|
-
(
|
|
2056
|
+
ne.value ? (v(), d("dl", Yo, [
|
|
2057
|
+
(v(!0), d(E, null, V(ba.value, (a) => (v(), d("div", {
|
|
1913
2058
|
key: a.label,
|
|
1914
2059
|
class: "pptxv-meta-row"
|
|
1915
2060
|
}, [
|
|
1916
|
-
s("dt", null,
|
|
1917
|
-
s("dd", null,
|
|
2061
|
+
s("dt", null, g(a.label), 1),
|
|
2062
|
+
s("dd", null, g(a.value), 1)
|
|
1918
2063
|
]))), 128))
|
|
1919
2064
|
])) : w("", !0)
|
|
1920
2065
|
])
|
|
1921
2066
|
])
|
|
1922
2067
|
], 512)), [
|
|
1923
|
-
[
|
|
2068
|
+
[Xa, P.value]
|
|
1924
2069
|
]) : w("", !0),
|
|
1925
|
-
s("div",
|
|
1926
|
-
s("div",
|
|
2070
|
+
s("div", Xo, [
|
|
2071
|
+
s("div", qo, [
|
|
1927
2072
|
s("div", {
|
|
1928
2073
|
ref_key: "viewerHost",
|
|
1929
|
-
ref:
|
|
2074
|
+
ref: f,
|
|
1930
2075
|
class: "pptxv-main-view"
|
|
1931
2076
|
}, null, 512),
|
|
1932
|
-
|
|
2077
|
+
r.value.family === "model3d" ? (v(), d("button", {
|
|
1933
2078
|
key: 0,
|
|
1934
2079
|
type: "button",
|
|
1935
2080
|
class: "pptxv-button pptxv-model-tools-toggle",
|
|
1936
|
-
"aria-label":
|
|
1937
|
-
title:
|
|
1938
|
-
"aria-expanded":
|
|
1939
|
-
"aria-controls":
|
|
1940
|
-
onClick: t[38] || (t[38] = (a) =>
|
|
2081
|
+
"aria-label": P.value ? "Hide model tools" : "Show model tools",
|
|
2082
|
+
title: P.value ? "Hide model tools" : "Show model tools",
|
|
2083
|
+
"aria-expanded": P.value,
|
|
2084
|
+
"aria-controls": H,
|
|
2085
|
+
onClick: t[38] || (t[38] = (a) => P.value = !P.value)
|
|
1941
2086
|
}, [
|
|
1942
|
-
(
|
|
2087
|
+
(v(), d("svg", Qo, [
|
|
1943
2088
|
t[54] || (t[54] = s("rect", {
|
|
1944
2089
|
x: "2.5",
|
|
1945
2090
|
y: "3.5",
|
|
@@ -1949,81 +2094,81 @@ const Qs = ["aria-label"], Js = {
|
|
|
1949
2094
|
}, null, -1)),
|
|
1950
2095
|
t[55] || (t[55] = s("path", { d: "M7.5 3.5v13" }, null, -1)),
|
|
1951
2096
|
s("path", {
|
|
1952
|
-
d:
|
|
1953
|
-
}, null, 8,
|
|
2097
|
+
d: P.value ? "m12.5 7-3 3 3 3" : "m10.5 7 3 3-3 3"
|
|
2098
|
+
}, null, 8, Jo)
|
|
1954
2099
|
]))
|
|
1955
|
-
], 8,
|
|
1956
|
-
G.value ? (
|
|
2100
|
+
], 8, Zo)) : w("", !0),
|
|
2101
|
+
G.value ? (v(), d("div", ei, [
|
|
1957
2102
|
s("form", {
|
|
1958
2103
|
class: "pptxv-password-form",
|
|
1959
|
-
"aria-labelledby":
|
|
1960
|
-
onSubmit:
|
|
1961
|
-
onKeydown:
|
|
2104
|
+
"aria-labelledby": R + "-title",
|
|
2105
|
+
onSubmit: Ue(ta, ["prevent"]),
|
|
2106
|
+
onKeydown: qa(Ue(Ke, ["stop"]), ["esc"])
|
|
1962
2107
|
}, [
|
|
1963
2108
|
s("h2", {
|
|
1964
|
-
id:
|
|
1965
|
-
}, "此文档已加密", 8,
|
|
2109
|
+
id: R + "-title"
|
|
2110
|
+
}, "此文档已加密", 8, ai),
|
|
1966
2111
|
t[56] || (t[56] = s("p", null, "请输入密码以打开文档。", -1)),
|
|
1967
|
-
G.value.reason === "password_invalid" ? (
|
|
2112
|
+
G.value.reason === "password_invalid" ? (v(), d("p", {
|
|
1968
2113
|
key: 0,
|
|
1969
|
-
id:
|
|
2114
|
+
id: R + "-error",
|
|
1970
2115
|
class: "pptxv-password-error",
|
|
1971
2116
|
role: "alert"
|
|
1972
|
-
}, "密码不正确,请重试。", 8,
|
|
1973
|
-
s("label", { for:
|
|
2117
|
+
}, "密码不正确,请重试。", 8, si)) : w("", !0),
|
|
2118
|
+
s("label", { for: R }, "文档密码"),
|
|
1974
2119
|
Oe(s("input", {
|
|
1975
|
-
id:
|
|
2120
|
+
id: R,
|
|
1976
2121
|
ref_key: "passwordField",
|
|
1977
2122
|
ref: q,
|
|
1978
|
-
"onUpdate:modelValue": t[39] || (t[39] = (a) =>
|
|
2123
|
+
"onUpdate:modelValue": t[39] || (t[39] = (a) => $.value = a),
|
|
1979
2124
|
type: "password",
|
|
1980
2125
|
autocomplete: "off",
|
|
1981
2126
|
"aria-invalid": G.value.reason === "password_invalid",
|
|
1982
|
-
"aria-describedby": G.value.reason === "password_invalid" ?
|
|
1983
|
-
}, null, 8,
|
|
1984
|
-
[
|
|
2127
|
+
"aria-describedby": G.value.reason === "password_invalid" ? R + "-error" : void 0
|
|
2128
|
+
}, null, 8, ni), [
|
|
2129
|
+
[Ht, $.value]
|
|
1985
2130
|
]),
|
|
1986
|
-
s("div",
|
|
2131
|
+
s("div", oi, [
|
|
1987
2132
|
s("button", {
|
|
1988
2133
|
type: "button",
|
|
1989
2134
|
class: "pptxv-button",
|
|
1990
|
-
onClick:
|
|
2135
|
+
onClick: Ke
|
|
1991
2136
|
}, "取消"),
|
|
1992
2137
|
s("button", {
|
|
1993
2138
|
type: "submit",
|
|
1994
2139
|
class: "pptxv-button",
|
|
1995
|
-
disabled:
|
|
1996
|
-
}, "打开文档", 8,
|
|
2140
|
+
disabled: !$.value.length
|
|
2141
|
+
}, "打开文档", 8, ii)
|
|
1997
2142
|
])
|
|
1998
|
-
], 40,
|
|
1999
|
-
])) :
|
|
2000
|
-
|
|
2143
|
+
], 40, ti)
|
|
2144
|
+
])) : _.value ? (v(), d("div", li, "Loading preview...")) : Ye.value ? (v(), d("div", ri, [
|
|
2145
|
+
K.value ? (v(), d("div", ui, [
|
|
2001
2146
|
t[57] || (t[57] = s("p", null, "已取消打开文档。", -1)),
|
|
2002
2147
|
s("button", {
|
|
2003
2148
|
type: "button",
|
|
2004
2149
|
class: "pptxv-button",
|
|
2005
|
-
onClick:
|
|
2150
|
+
onClick: le
|
|
2006
2151
|
}, "重新输入密码")
|
|
2007
|
-
])) : (
|
|
2008
|
-
|
|
2152
|
+
])) : (v(), d(E, { key: 1 }, [
|
|
2153
|
+
Za(g(Ye.value), 1)
|
|
2009
2154
|
], 64))
|
|
2010
2155
|
])) : w("", !0)
|
|
2011
2156
|
])
|
|
2012
2157
|
])
|
|
2013
2158
|
])
|
|
2014
|
-
], 40,
|
|
2159
|
+
], 40, an));
|
|
2015
2160
|
}
|
|
2016
|
-
}),
|
|
2017
|
-
function
|
|
2018
|
-
const
|
|
2019
|
-
...
|
|
2020
|
-
converter:
|
|
2021
|
-
panoramaProcessor:
|
|
2022
|
-
}), n =
|
|
2023
|
-
return n.mount(
|
|
2161
|
+
}), Xt = new URL("converter-core.wasm", import.meta.url).href, qt = new URL("converter-image.wasm", import.meta.url).href;
|
|
2162
|
+
function Ci(h, o) {
|
|
2163
|
+
const i = Ja({
|
|
2164
|
+
...o,
|
|
2165
|
+
converter: o.converter ?? Cs({ wasm: Xt, imageWasm: qt }),
|
|
2166
|
+
panoramaProcessor: o.panoramaProcessor ?? Ss({ wasm: Xt, imageWasm: qt })
|
|
2167
|
+
}), n = es({ render: () => ts(ci, i) });
|
|
2168
|
+
return n.mount(h), {
|
|
2024
2169
|
/** Switch sources using the shared preview lifecycle and cancellation. */
|
|
2025
|
-
update(
|
|
2026
|
-
Object.assign(
|
|
2170
|
+
update(p) {
|
|
2171
|
+
Object.assign(i, p);
|
|
2027
2172
|
},
|
|
2028
2173
|
destroy() {
|
|
2029
2174
|
n.unmount();
|
|
@@ -2031,5 +2176,5 @@ function xl(f, l) {
|
|
|
2031
2176
|
};
|
|
2032
2177
|
}
|
|
2033
2178
|
export {
|
|
2034
|
-
|
|
2179
|
+
Ci as createPreview
|
|
2035
2180
|
};
|