@vertexvis/doc-viewer 0.24.5-canary.8 → 1.0.0-testing.6

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/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
@@ -1,8 +1,8 @@
1
1
  import { Disposable } from '@vertexvis/utils';
2
2
  import { DocumentApi } from '../document/api';
3
3
  export declare class PanInteractionHandler implements Disposable {
4
- private element;
5
- private api;
4
+ private readonly element;
5
+ private readonly api;
6
6
  private lastPosition?;
7
7
  private isDragging;
8
8
  private downPosition?;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vertexvis/doc-viewer",
3
- "version": "0.24.5-canary.8",
3
+ "version": "1.0.0-testing.6",
4
4
  "description": "The Vertex SDK for viewing documents.",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.js",
7
- "es2015": "dist/esm/index.mjs",
5
+ "type": "module",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/esm/index.mjs",
8
8
  "es2017": "dist/esm/index.mjs",
9
9
  "types": "dist/types/index.d.ts",
10
10
  "collection": "dist/collection/collection-manifest.json",
@@ -24,7 +24,7 @@
24
24
  ".": {
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "import": "./dist/esm/index.mjs",
27
- "require": "./dist/index.cjs.js",
27
+ "require": "./dist/index.cjs",
28
28
  "default": "./dist/esm/index.mjs"
29
29
  },
30
30
  "./dist/components": {
@@ -38,6 +38,7 @@
38
38
  "./loader": {
39
39
  "types": "./loader/index.d.ts",
40
40
  "import": "./loader/index.js",
41
+ "require": "./loader/index.cjs",
41
42
  "default": "./loader/index.js"
42
43
  },
43
44
  "./assets/pdf.worker.min.mjs": {
@@ -58,22 +59,23 @@
58
59
  "scripts": {
59
60
  "prebuild": "mkdir -p assets && cp ../../node_modules/pdfjs-dist/build/pdf.worker.min.mjs ./assets",
60
61
  "build": "stencil build",
61
- "postbuild": "cp ../../node_modules/pdfjs-dist/build/pdf.worker.min.mjs ./assets",
62
+ "postbuild": "./scripts/postbuild.sh",
62
63
  "prestart": "mkdir -p assets && cp ../../node_modules/pdfjs-dist/build/pdf.worker.min.mjs ./assets",
63
64
  "start": "stencil build --dev --watch --serve",
64
65
  "dev": "yarn start",
65
66
  "format": "yarn lint --fix",
66
67
  "lint": "eslint --ext .ts,.tsx,.js,.jsx --ignore-path .gitignore .",
67
- "test": "stencil test --spec --maxWorkers=50%",
68
+ "test": "stencil test --spec --runInBand",
69
+ "test:ssr-import": "node ./scripts/test-ssr-import.mjs",
68
70
  "test:watch": "stencil test --spec --watchAll --maxWorkers=50%",
69
- "test:ci": "stencil test --spec --coverage",
70
- "test:coverage": "stencil test --spec --coverage --maxWorkers=50%",
71
+ "test:ci": "stencil test --spec --coverage --runInBand",
72
+ "test:coverage": "stencil test --spec --coverage --runInBand",
71
73
  "generate": "stencil generate",
72
74
  "release:stage": "yarn generate:docs"
73
75
  },
74
76
  "devDependencies": {
75
77
  "@stencil/core": "^4.27.1",
76
- "@stencil/react-output-target": "^1.4.2",
78
+ "@stencil/react-output-target": "^1.5.2",
77
79
  "@stencil/vue-output-target": "^0.13.1",
78
80
  "@types/jest": "^29.5.14",
79
81
  "@types/node": "^22.13.5",
@@ -82,15 +84,15 @@
82
84
  "eslint": "^8.57.1",
83
85
  "jest": "^29.7.0",
84
86
  "jest-cli": "^29.7.0",
85
- "tslib": "^2.1.0",
87
+ "tslib": "^2.4.0",
86
88
  "typescript": "~5.8.3"
87
89
  },
88
90
  "dependencies": {
89
- "@vertexvis/geometry": "0.24.5-canary.8",
90
- "@vertexvis/utils": "0.24.5-canary.8",
91
+ "@vertexvis/geometry": "1.0.0-testing.6",
92
+ "@vertexvis/utils": "1.0.0-testing.6",
91
93
  "classnames": "^2.5.1",
92
94
  "pdfjs-dist": "^5.5.207",
93
95
  "resize-observer": "^1.0.4"
94
96
  },
95
- "gitHead": "7441ddc2aa6f5d4a2afb43b4c54300d64c3ac5fe"
97
+ "gitHead": "a8329ea263dfc2c983da1b50655e3cf05c28e7d9"
96
98
  }
@@ -1,4 +0,0 @@
1
- /*!
2
- * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
- */
4
- var e,t,n={},r={},o={};function l(){return e||(e=1,Object.defineProperty(o,"__esModule",{value:!0}),o.ContentRect=function(e){if("getBBox"in e){var t=e.getBBox();return Object.freeze({height:t.height,left:0,top:0,width:t.width})}var n=window.getComputedStyle(e);return Object.freeze({height:parseFloat(n.height||"0"),left:parseFloat(n.paddingLeft||"0"),top:parseFloat(n.paddingTop||"0"),width:parseFloat(n.width||"0")})}),o}var i,f,s={},c=function(){if(f)return n;f=1,Object.defineProperty(n,"__esModule",{value:!0});var e=function(){if(t)return r;t=1,Object.defineProperty(r,"__esModule",{value:!0});var e=l(),n=function(){function t(e){this.target=e,this.$$broadcastWidth=this.$$broadcastHeight=0}return Object.defineProperty(t.prototype,"broadcastWidth",{get:function(){return this.$$broadcastWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"broadcastHeight",{get:function(){return this.$$broadcastHeight},enumerable:!0,configurable:!0}),t.prototype.isActive=function(){var t=e.ContentRect(this.target);return!!t&&(t.width!==this.broadcastWidth||t.height!==this.broadcastHeight)},t}();return r.ResizeObservation=n,r}(),o=function(){if(i)return s;i=1,Object.defineProperty(s,"__esModule",{value:!0});var e=l();return s.ResizeObserverEntry=function(t){this.target=t,this.contentRect=e.ContentRect(t)},s}(),c=[],u=function(){function t(e){this.$$observationTargets=[],this.$$activeTargets=[],this.$$skippedTargets=[];var t=function(e){return void 0===e?"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.":"function"!=typeof e?"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.":void 0}(e);if(t)throw TypeError(t);this.$$callback=e}return t.prototype.observe=function(t){var n,r=d("observe",t);if(r)throw TypeError(r);p(this.$$observationTargets,t)>=0||(this.$$observationTargets.push(new e.ResizeObservation(t)),c.indexOf(n=this)<0&&(c.push(n),g()))},t.prototype.unobserve=function(e){var t=d("unobserve",e);if(t)throw TypeError(t);var n=p(this.$$observationTargets,e);n<0||(this.$$observationTargets.splice(n,1),0===this.$$observationTargets.length&&a(this))},t.prototype.disconnect=function(){this.$$observationTargets=[],this.$$activeTargets=[],a(this)},t}();function a(e){var t=c.indexOf(e);t>=0&&(c.splice(t,1),y())}function d(e,t){return void 0===t?"Failed to execute '"+e+"' on 'ResizeObserver': 1 argument required, but only 0 present.":t&&t.nodeType===window.Node.ELEMENT_NODE?void 0:"Failed to execute '"+e+"' on 'ResizeObserver': parameter 1 is not of type 'Element'."}function p(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1}n.ResizeObserver=u;var b,h=function(e){c.forEach((function(t){t.$$activeTargets=[],t.$$skippedTargets=[],t.$$observationTargets.forEach((function(n){n.isActive()&&(m(n.target)>e?t.$$activeTargets.push(n):t.$$skippedTargets.push(n))}))}))},v=function(){var e=1/0;return c.forEach((function(t){if(t.$$activeTargets.length){var n=[];t.$$activeTargets.forEach((function(t){var r=new o.ResizeObserverEntry(t.target);n.push(r),t.$$broadcastWidth=r.contentRect.width,t.$$broadcastHeight=r.contentRect.height;var l=m(t.target);l<e&&(e=l)})),t.$$callback(n,t),t.$$activeTargets=[]}})),e},m=function(e){for(var t=0;e.parentNode;)e=e.parentNode,t+=1;return t},g=function(){b||w()},w=function(){b=window.requestAnimationFrame((function(){(function(){var e,t=0;for(h(t);c.some((function(e){return!!e.$$activeTargets.length}));)t=v(),h(t);c.some((function(e){return!!e.$$skippedTargets.length}))&&(e=new window.ErrorEvent("ResizeLoopError",{message:"ResizeObserver loop completed with undelivered notifications."}),window.dispatchEvent(e))})(),w()}))},y=function(){b&&!c.some((function(e){return!!e.$$observationTargets.length}))&&(window.cancelAnimationFrame(b),b=void 0)};return n.install=function(){return window.ResizeObserver=u},n}();const u=function(){"undefined"==typeof ResizeObserver&&c.install()}||(()=>{}),a=":root{--white:#ffffff;--black:#000000}:root{--neutral-050:#fafafa;--neutral-100:#f5f5f5;--neutral-200:#eeeeee;--neutral-300:#e0e0e0;--neutral-400:#bdbdbd;--neutral-500:#9e9e9e;--neutral-600:#757575;--neutral-700:#616161;--neutral-800:#444444;--neutral-900:#212121}:root{--red-050:#fff7f7;--red-100:#ffefef;--red-200:#ffe0e0;--red-300:#ffb3b3;--red-400:#ff4d4d;--red-500:#ff0000;--red-600:#eb0000;--red-700:#d90000;--red-800:#c40000;--red-900:#990000}:root{--orange-050:#fffcf7;--orange-100:#fff9ef;--orange-200:#fff3e0;--orange-300:#ffe0b3;--orange-400:#ffb84d;--orange-500:#ff9900;--orange-600:#ff8400;--orange-700:#ff7300;--orange-800:#e05d00;--orange-900:#993b00}:root{--yellow-050:#fffef7;--yellow-100:#fffdef;--yellow-200:#fffbe0;--yellow-300:#fff5b3;--yellow-400:#ffee6e;--yellow-500:#ffe600;--yellow-600:#ffd300;--yellow-700:#ffc500;--yellow-800:#cc8f00;--yellow-900:#995c00}:root{--green-050:#f7fdf7;--green-100:#effcef;--green-200:#e0f9e0;--green-300:#b3f0b3;--green-400:#4ddb4d;--green-500:#00cc00;--green-600:#00c000;--green-700:#00ad00;--green-800:#008000;--green-900:#004d00}:root{--teal-050:#f8fdfc;--teal-100:#f1fbfa;--teal-200:#e4f7f5;--teal-300:#bcece7;--teal-400:#62d2c7;--teal-500:#1fbeaf;--teal-600:#17af9f;--teal-700:#0a9986;--teal-800:#07705f;--teal-900:#054d43}:root{--blue-050:#f7fcfd;--blue-100:#eff9fc;--blue-200:#e0f3f9;--blue-300:#b3e0f0;--blue-400:#4db8db;--blue-500:#0099cc;--blue-600:#0086c0;--blue-700:#006bad;--blue-800:#004f80;--blue-900:#002f4d}:root{--purple-050:#fdf9fc;--purple-100:#faf2f8;--purple-200:#f6e6f2;--purple-300:#e9c2e0;--purple-400:#cb70b6;--purple-500:#b43296;--purple-600:#a42683;--purple-700:#8c1368;--purple-800:#66124b;--purple-900:#4d0b39}:root{--x-axis-color:#ea3324;--y-axis-color:#4faf32;--z-axis-color:#0000ff;--two-axes-color:#e0e0e0}:root{--padding-1:0.25em;--padding-2:0.5em;--padding-3:0.75em;--padding-4:1em;--padding-5:1.25em;--padding-6:1.5em;--padding-7:1.75em;--padding-8:2em;--abs-padding-1:0.25rem;--abs-padding-2:0.5rem;--abs-padding-3:0.75rem;--abs-padding-4:1rem;--abs-padding-5:1.25rem;--abs-padding-6:1.5rem;--abs-padding-7:1.75rem;--abs-padding-8:2rem}";function d(e,t,n){const r="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;e&&e!==r;){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}}var p,b=(e,t)=>{var n;Object.entries(null!=(n=t.o.t)?n:{}).map((([n,[r]])=>{if(31&r||32&r){const r=e[n],o=d(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);o&&Object.defineProperty(e,n,{get(){return o.get.call(this)},set(e){o.set.call(this,e)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):void 0!==r&&(e[n]=r)}}))},h=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},v=(e,t)=>t in e,m=(e,t)=>(0,console.error)(e,t),g=new Map,w="undefined"!=typeof window?window:{},y=w.HTMLElement||class{},$={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},O=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(e){}return!1})(),j=!!O&&(()=>!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable)(),S=!1,M=[],E=[],x=(e,t)=>n=>{e.push(n),S||(S=!0,t&&4&$.i?R(k):$.raf(k))},_=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){m(e)}e.length=0},k=()=>{_(M),_(E),(S=M.length>0)&&$.raf(k)},R=e=>Promise.resolve(undefined).then(e),F=x(E,!0),z=e=>{const t=new URL(e,$.u);return t.origin!==w.location.origin?t.href:t.pathname},C=e=>$.u=e;function A(){var e;const t=this.attachShadow({mode:"open"});if(void 0===p&&(p=null!=(e=function(e){if(!O)return;const t=new CSSStyleSheet;return t.replaceSync(e),t}(a))?e:null),p)j?t.adoptedStyleSheets.push(p):t.adoptedStyleSheets=[...t.adoptedStyleSheets,p];else if(!O){const e=document.createElement("style");e.innerHTML=a,t.prepend(e)}}var L,H=new WeakMap,N=e=>"sc-"+e.p,T=e=>"object"==(e=typeof e)||"function"===e,D=(e,t,...n)=>{let r=null,o=null,l=!1,i=!1;const f=[],s=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?s(r):null!=r&&"boolean"!=typeof r&&((l="function"!=typeof e&&!T(r))&&(r=String(r)),l&&i?f[f.length-1].h+=r:f.push(l?P(null,r):r),i=l)};if(s(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const c=P(e,null);return c.v=t,f.length>0&&(c.m=f),c.$=o,c},P=(e,t)=>({i:0,O:e,h:null!=t?t:null,j:null,m:null,v:null,$:null}),U={},W=(e,t)=>null==e||T(e)?e:2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?String(e):e,q=(e,t)=>{const n=e;return{emit:e=>V(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},V=(e,t,n)=>{const r=$.ce(t,n);return e.dispatchEvent(r),r},B=(e,t,n,r,o,l)=>{if(n===r)return;let i=v(e,t),f=t.toLowerCase();if("class"===t){const t=e.classList,o=Z(n);let l=Z(r);t.remove(...o.filter((e=>e&&!l.includes(e)))),t.add(...l.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)r&&se(r,e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){if("a"===t[0]&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=h(e);if(t&&t.o&&t.o.t){const e=t.o.t[n];e&&e[1]&&(o=e[1])}}return o||(o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==r||!1===r?!1===r&&""!==e.getAttribute(o)||e.removeAttribute(o):e.setAttribute(o,!0===r?"":r))}if("p"===t[0]&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}{const f=T(r);if((i||f&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]!==r&&(e[t]=r);else{const o=null==r?"":r;"list"===t?i=!1:null!=n&&e[t]===o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&l||o)&&!f&&1===e.nodeType&&e.setAttribute(t,r=!0===r?"":r)}}else if(t="-"===t[2]?t.slice(3):v(w,f)?f.slice(2):f[2]+t.slice(3),n||r){const o=t.endsWith(G);t=t.replace(I,""),n&&$.rel(e,t,n,o),r&&$.ael(e,t,r,o)}},Y=/\s/,Z=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(Y):[]),G="Capture",I=new RegExp(G+"$"),J=(e,t,n)=>{const r=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.v||{},l=t.v||{};for(const e of K(Object.keys(o)))e in l||B(r,e,o[e],void 0,n,t.i);for(const e of K(Object.keys(l)))B(r,e,o[e],l[e],n,t.i)};function K(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Q=!1,X=!1,ee=[],te=[],ne=(e,t,n)=>{const r=t.m[n];let o,l,i=0;if(!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=r.j=w.document.createElement(r.O),J(null,r,X),r.m){const t="template"===r.O?o.content:o;for(i=0;i<r.m.length;++i)l=ne(e,r,i),l&&t.appendChild(l)}return o["s-hn"]=L,o},re=(e,t,n,r,o,l)=>{let i,f=e;for(f.shadowRoot&&f.tagName===L&&(f=f.shadowRoot),"template"===n.O&&(f=f.content);o<=l;++o)r[o]&&(i=ne(null,n,o),i&&(r[o].j=i,ce(f,i,t)))},oe=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.j;fe(t),e&&e.remove()}}},le=(e,t,n=!1)=>e.O===t.O&&(n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),ie=(e,t,n=!1)=>{const r=t.j=e.j,o=e.m,l=t.m;"slot"!==t.O||Q||e.S!==t.S&&(t.j["s-sn"]=t.S||"",(e=>{$.i|=1;const t=e.closest(L.toLowerCase());if(null!=t){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"])),r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r)null!=e["s-sh"]&&(ce(t,e,null!=n?n:null),e["s-sh"]=void 0)}$.i&=-2})(t.j.parentElement)),J(e,t,X),null!==o&&null!==l?((e,t,n,r,o=!1)=>{let l,i,f=0,s=0,c=0,u=0,a=t.length-1,d=t[0],p=t[a],b=r.length-1,h=r[0],v=r[b];const m="template"===n.O?e.content:e;for(;f<=a&&s<=b;)if(null==d)d=t[++f];else if(null==p)p=t[--a];else if(null==h)h=r[++s];else if(null==v)v=r[--b];else if(le(d,h,o))ie(d,h,o),d=t[++f],h=r[++s];else if(le(p,v,o))ie(p,v,o),p=t[--a],v=r[--b];else if(le(d,v,o))ie(d,v,o),ce(m,d.j,p.j.nextSibling),d=t[++f],v=r[--b];else if(le(p,h,o))ie(p,h,o),ce(m,p.j,d.j),p=t[--a],h=r[++s];else{for(c=-1,u=f;u<=a;++u)if(t[u]&&null!==t[u].$&&t[u].$===h.$){c=u;break}c>=0?(i=t[c],i.O!==h.O?l=ne(t&&t[s],n,c):(ie(i,h,o),t[c]=void 0,l=i.j),h=r[++s]):(l=ne(t&&t[s],n,s),h=r[++s]),l&&ce(d.j.parentNode,l,d.j)}f>a?re(e,null==r[b+1]?null:r[b+1].j,n,r,s,b):s>b&&oe(t,f,a)})(r,o,t,l,n):null!==l?re(r,null,t,l,0,l.length-1):!n&&null!==o&&oe(o,0,o.length-1)},fe=e=>{e.v&&e.v.ref&&ee.push((()=>e.v.ref(null))),e.m&&e.m.map(fe)},se=(e,t)=>{te.push((()=>e(t)))},ce=(e,t,n)=>e.__insertBefore?e.__insertBefore(t,n):null==e?void 0:e.insertBefore(t,n),ue=(e,t,n=!1)=>{const r=e.$hostElement$,o=e.o,l=e.M||P(null,null);var i;const f=(i=t)&&i.O===U?t:D(null,null,t);if(L=r.tagName,o._&&(f.v=f.v||{},o._.forEach((([e,t])=>{f.v[t]=r[e]}))),n&&f.v)for(const e of Object.keys(f.v))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.v[e]=r[e]);f.O=null,f.i|=4,e.M=f,f.j=l.j=r.shadowRoot||r,Q=!(!(1&o.i)||128&o.i),ie(l,f,n),ee.forEach((e=>e())),ee.length=0,te.forEach((e=>e())),te.length=0},ae=(e,t)=>{if(t&&!e.k&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.k=()=>{t["s-p"].splice(n-1,1),r()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);ae(e,e.R);const n=()=>pe(e,t);if(!t)return F(n);queueMicrotask((()=>{n()}))},pe=(e,t)=>{const n=e.$hostElement$,r=n;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=ye(r,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=be(o,(()=>ye(r,"componentWillRender",void 0,n))),be(o,(()=>ve(e,r,t)))},be=(e,t)=>he(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),he=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ve=async(e,t,n)=>{var r;const o=e.$hostElement$,l=o["s-rc"];n&&(e=>{const t=e.o,n=e.$hostElement$,r=t.i,o=((e,t)=>{var n,r,o;const l=N(t),i=g.get(l);if(!w.document)return l;if(e=11===e.nodeType?e:w.document,i)if("string"==typeof i){let o,f=H.get(e=e.head||e);if(f||H.set(e,f=new Set),!f.has(l)){o=w.document.createElement("style"),o.textContent=i;const s=null!=(n=$.F)?n:function(){var e,t,n;return null!=(n=null==(t=null==(e=w.document.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?n:void 0}();if(null!=s&&o.setAttribute("nonce",s),!(1&t.i))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(O){const t=new(null!=(r=e.defaultView)?r:e.ownerDocument.defaultView).CSSStyleSheet;t.replaceSync(i),j?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.textContent=i+t.textContent:e.prepend(o)}else e.append(o);1&t.i&&e.insertBefore(o,null),4&t.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),f&&f.add(l)}}else{let t=H.get(e);if(t||H.set(e,t=new Set),!t.has(l)){const n=null!=(o=e.defaultView)?o:e.ownerDocument.defaultView;let r;if(i.constructor===n.CSSStyleSheet)r=i;else{r=new n.CSSStyleSheet;for(let e=0;e<i.cssRules.length;e++)r.insertRule(i.cssRules[e].cssText,e)}j?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r],t.add(l)}}return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);me(e,t,o,n),l&&(l.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(r=o["s-p"])?r:[],n=()=>ge(e);0===t.length?n():(Promise.all(t).then(n).catch(n),e.i|=4,t.length=0)}},me=(e,t,n,r)=>{try{t=t.render(),e.i&=-17,e.i|=2,ue(e,t,r)}catch(t){m(t,e.$hostElement$)}return null},ge=e=>{const t=e.$hostElement$,n=t,r=e.R;ye(n,"componentDidRender",void 0,t),64&e.i?ye(n,"componentDidUpdate",void 0,t):(e.i|=64,$e(t),ye(n,"componentDidLoad",void 0,t),e.C(t),r||we()),e.k&&(e.k(),e.k=void 0),512&e.i&&R((()=>de(e,!1))),e.i&=-517},we=()=>{R((()=>V(w,"appload",{detail:{namespace:"doc-viewer"}})))},ye=(e,t,n,r)=>{if(e&&e[t])try{return e[t](n)}catch(e){m(e,r)}},$e=e=>e.classList.add("hydrated"),Oe=(e,t,n,r)=>{const o=h(e);if(!o)return;const l=e,i=o.l.get(t),f=o.i,s=l;n=W(n,r.t[t][0]);const c=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!c){if(o.l.set(t,n),r.A){const e=r.A[t];e&&e.map((e=>{try{const[[r,l]]=Object.entries(e);(128&f||1&l)&&(s?s[r](n,i,t):o.L.push((()=>{o.H[r](n,i,t)})))}catch(e){m(e,l)}}))}if(2&f){if(s.componentShouldUpdate&&!1===s.componentShouldUpdate(n,i,t)&&!(16&f))return;16&f||de(o,!1)}}},je=(e,t)=>{var n,r;const o=e.prototype;{e.watchers&&!t.A&&(t.A=e.watchers),e.deserializers&&!t.N&&(t.N=e.deserializers),e.serializers&&!t.T&&(t.T=e.serializers);const l=Object.entries(null!=(n=t.t)?n:{});l.map((([e,[n]])=>{if(31&n||32&n){const{get:r,set:l}=d(o,e)||{};r&&(t.t[e][0]|=2048),l&&(t.t[e][0]|=4096),Object.defineProperty(o,e,{get(){return r?r.apply(this):(t=e,h(this).l.get(t));var t},configurable:!0,enumerable:!0}),Object.defineProperty(o,e,{set(r){const o=h(this);if(o){if(l)return void 0===(32&n?this[e]:o.$hostElement$[e])&&o.l.get(e)&&(r=o.l.get(e)),l.apply(this,[W(r,n)]),void Oe(this,e,r=32&n?this[e]:o.$hostElement$[e],t);Oe(this,e,r,t)}}})}}));{const n=new Map;o.attributeChangedCallback=function(e,r,i){$.jmp((()=>{var f;const s=n.get(e),c=h(this);if(this.hasOwnProperty(s),o.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==i)return;if(null==s){const n=null==c?void 0:c.i;if(c&&n&&!(8&n)&&i!==r){const o=this,l=null==(f=t.A)?void 0:f[e];null==l||l.forEach((t=>{const[[l,f]]=Object.entries(t);null!=o[l]&&(128&n||1&f)&&o[l].call(o,i,r,e)}))}return}const u=l.find((([e])=>e===s));u&&4&u[1][0]&&(i=null!==i&&"false"!==i);const a=Object.getOwnPropertyDescriptor(o,s);i==this[s]||a.get&&!a.set||(this[s]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.A)?r:{}),...l.filter((([e,t])=>31&t[0])).map((([e,r])=>{var o;const l=r[1]||e;return n.set(l,e),512&r[0]&&(null==(o=t._)||o.push([e,l])),l}))]))}}return e},Se=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.A=e.A,n.N=e.N,n.T=e.T,n._=[];const r=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,t)=>{const n={i:0,$hostElement$:e,o:t,l:new Map,D:new Map};n.P=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[];const r=n;e.__stencil__getHostRef=()=>r,512&t.i&&b(e,n)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!h(this))return;this.__hasHostListenerAttached=!0}(e=>{if(!(1&$.i)){const t=h(e);if(!t)return;const n=t.o,r=()=>{};if(1&t.i)(null==t?void 0:t.H)||(null==t?void 0:t.P)&&t.P.then((()=>{}));else{t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.R=n);break}}n.t&&Object.entries(n.t).map((([t,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let r;try{if(!(32&t.i)&&(t.i|=32,r=e.constructor,customElements.whenDefined(e.localName).then((()=>t.i|=128)),r&&r.style)){let e;"string"==typeof r.style&&(e=r.style);const t=N(n);if(!g.has(t)){const r=()=>{};((e,t,n)=>{let r=g.get(e);O&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,g.set(e,r)})(t,e,!!(1&n.i)),r()}}const o=t.R,l=()=>de(t,!0);o&&o["s-rc"]?o["s-rc"].push(l):l()}catch(n){m(n,e),t.k&&(t.k(),t.k=void 0),t.C&&t.C(e)}})(e,t,n)}r()}})(this),r&&r.call(this)},disconnectedCallback(){(async e=>{1&$.i||h(e),H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else A.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),je(e,n)}catch(t){return m(t),e}},Me=e=>$.F=e,Ee=e=>Object.assign($,e);function xe(e,t){ue({o:{i:0,p:t.tagName},$hostElement$:t},e)}function _e(e){return e}export{y as H,z as a,Me as b,Ee as c,q as d,U as e,u as g,D as h,Se as p,xe as r,C as s,_e as t}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
3
- */
4
- var e,t,n={},o={},r={};function i(){return e||(e=1,Object.defineProperty(r,"__esModule",{value:!0}),r.ContentRect=function(e){if("getBBox"in e){var t=e.getBBox();return Object.freeze({height:t.height,left:0,top:0,width:t.width})}var n=window.getComputedStyle(e);return Object.freeze({height:parseFloat(n.height||"0"),left:parseFloat(n.paddingLeft||"0"),top:parseFloat(n.paddingTop||"0"),width:parseFloat(n.width||"0")})}),r}var l,s,f={},c=function(){if(s)return n;s=1,Object.defineProperty(n,"__esModule",{value:!0});var e=function(){if(t)return o;t=1,Object.defineProperty(o,"__esModule",{value:!0});var e=i(),n=function(){function t(e){this.target=e,this.$$broadcastWidth=this.$$broadcastHeight=0}return Object.defineProperty(t.prototype,"broadcastWidth",{get:function(){return this.$$broadcastWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"broadcastHeight",{get:function(){return this.$$broadcastHeight},enumerable:!0,configurable:!0}),t.prototype.isActive=function(){var t=e.ContentRect(this.target);return!!t&&(t.width!==this.broadcastWidth||t.height!==this.broadcastHeight)},t}();return o.ResizeObservation=n,o}(),r=function(){if(l)return f;l=1,Object.defineProperty(f,"__esModule",{value:!0});var e=i();return f.ResizeObserverEntry=function(t){this.target=t,this.contentRect=e.ContentRect(t)},f}(),c=[],u=function(){function t(e){this.$$observationTargets=[],this.$$activeTargets=[],this.$$skippedTargets=[];var t=function(e){return void 0===e?"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.":"function"!=typeof e?"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.":void 0}(e);if(t)throw TypeError(t);this.$$callback=e}return t.prototype.observe=function(t){var n=d("observe",t);if(n)throw TypeError(n);p(this.$$observationTargets,t)>=0||(this.$$observationTargets.push(new e.ResizeObservation(t)),function(e){c.indexOf(e)<0&&(c.push(e),y())}(this))},t.prototype.unobserve=function(e){var t=d("unobserve",e);if(t)throw TypeError(t);var n=p(this.$$observationTargets,e);n<0||(this.$$observationTargets.splice(n,1),0===this.$$observationTargets.length&&a(this))},t.prototype.disconnect=function(){this.$$observationTargets=[],this.$$activeTargets=[],a(this)},t}();function a(e){var t=c.indexOf(e);t>=0&&(c.splice(t,1),w())}function d(e,t){return void 0===t?"Failed to execute '"+e+"' on 'ResizeObserver': 1 argument required, but only 0 present.":t&&t.nodeType===window.Node.ELEMENT_NODE?void 0:"Failed to execute '"+e+"' on 'ResizeObserver': parameter 1 is not of type 'Element'."}function p(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1}n.ResizeObserver=u;var b,h=function(e){c.forEach((function(t){t.$$activeTargets=[],t.$$skippedTargets=[],t.$$observationTargets.forEach((function(n){n.isActive()&&(m(n.target)>e?t.$$activeTargets.push(n):t.$$skippedTargets.push(n))}))}))},v=function(){var e=1/0;return c.forEach((function(t){if(t.$$activeTargets.length){var n=[];t.$$activeTargets.forEach((function(t){var o=new r.ResizeObserverEntry(t.target);n.push(o),t.$$broadcastWidth=o.contentRect.width,t.$$broadcastHeight=o.contentRect.height;var i=m(t.target);i<e&&(e=i)})),t.$$callback(n,t),t.$$activeTargets=[]}})),e},m=function(e){for(var t=0;e.parentNode;)e=e.parentNode,t+=1;return t},y=function(){b||g()},g=function(){b=window.requestAnimationFrame((function(){(function(){var e=0;for(h(e);c.some((function(e){return!!e.$$activeTargets.length}));)e=v(),h(e);c.some((function(e){return!!e.$$skippedTargets.length}))&&function(){var e=new window.ErrorEvent("ResizeLoopError",{message:"ResizeObserver loop completed with undelivered notifications."});window.dispatchEvent(e)}()})(),g()}))},w=function(){b&&!c.some((function(e){return!!e.$$observationTargets.length}))&&(window.cancelAnimationFrame(b),b=void 0)};return n.install=function(){return window.ResizeObserver=u},n}();const u=function(){"undefined"==typeof ResizeObserver&&c.install()}||(()=>{}),a=":root{--white:#ffffff;--black:#000000}:root{--neutral-050:#fafafa;--neutral-100:#f5f5f5;--neutral-200:#eeeeee;--neutral-300:#e0e0e0;--neutral-400:#bdbdbd;--neutral-500:#9e9e9e;--neutral-600:#757575;--neutral-700:#616161;--neutral-800:#444444;--neutral-900:#212121}:root{--red-050:#fff7f7;--red-100:#ffefef;--red-200:#ffe0e0;--red-300:#ffb3b3;--red-400:#ff4d4d;--red-500:#ff0000;--red-600:#eb0000;--red-700:#d90000;--red-800:#c40000;--red-900:#990000}:root{--orange-050:#fffcf7;--orange-100:#fff9ef;--orange-200:#fff3e0;--orange-300:#ffe0b3;--orange-400:#ffb84d;--orange-500:#ff9900;--orange-600:#ff8400;--orange-700:#ff7300;--orange-800:#e05d00;--orange-900:#993b00}:root{--yellow-050:#fffef7;--yellow-100:#fffdef;--yellow-200:#fffbe0;--yellow-300:#fff5b3;--yellow-400:#ffee6e;--yellow-500:#ffe600;--yellow-600:#ffd300;--yellow-700:#ffc500;--yellow-800:#cc8f00;--yellow-900:#995c00}:root{--green-050:#f7fdf7;--green-100:#effcef;--green-200:#e0f9e0;--green-300:#b3f0b3;--green-400:#4ddb4d;--green-500:#00cc00;--green-600:#00c000;--green-700:#00ad00;--green-800:#008000;--green-900:#004d00}:root{--teal-050:#f8fdfc;--teal-100:#f1fbfa;--teal-200:#e4f7f5;--teal-300:#bcece7;--teal-400:#62d2c7;--teal-500:#1fbeaf;--teal-600:#17af9f;--teal-700:#0a9986;--teal-800:#07705f;--teal-900:#054d43}:root{--blue-050:#f7fcfd;--blue-100:#eff9fc;--blue-200:#e0f3f9;--blue-300:#b3e0f0;--blue-400:#4db8db;--blue-500:#0099cc;--blue-600:#0086c0;--blue-700:#006bad;--blue-800:#004f80;--blue-900:#002f4d}:root{--purple-050:#fdf9fc;--purple-100:#faf2f8;--purple-200:#f6e6f2;--purple-300:#e9c2e0;--purple-400:#cb70b6;--purple-500:#b43296;--purple-600:#a42683;--purple-700:#8c1368;--purple-800:#66124b;--purple-900:#4d0b39}:root{--x-axis-color:#ea3324;--y-axis-color:#4faf32;--z-axis-color:#0000ff;--two-axes-color:#e0e0e0}:root{--padding-1:0.25em;--padding-2:0.5em;--padding-3:0.75em;--padding-4:1em;--padding-5:1.25em;--padding-6:1.5em;--padding-7:1.75em;--padding-8:2em;--abs-padding-1:0.25rem;--abs-padding-2:0.5rem;--abs-padding-3:0.75rem;--abs-padding-4:1rem;--abs-padding-5:1.25rem;--abs-padding-6:1.5rem;--abs-padding-7:1.75rem;--abs-padding-8:2rem}";function d(e,t,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;e&&e!==o;){const o=Object.getOwnPropertyDescriptor(e,t);if(o&&(!n||o.get))return o;e=Object.getPrototypeOf(e)}}var p,b=(e,t)=>{var n;Object.entries(null!=(n=t.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=e[n],r=d(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(e,n,{get(){return r.get.call(this)},set(e){r.set.call(this,e)},configurable:!0,enumerable:!0}),t.i.has(n)?e[n]=t.i.get(n):void 0!==o&&(e[n]=o)}}))},h=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},v=(e,t)=>{t&&(e.__stencil__getHostRef=()=>t,t.l=e,512&t.o.u&&b(e,t))},m=(e,t)=>t in e,y=(e,t)=>(0,console.error)(e,t),g=new Map,w=new Map,$="undefined"!=typeof window?window:{},j={u:0,p:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},O=e=>Promise.resolve(e),S=(()=>{try{return!!$.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(e){}return!1})(),E=!!S&&(()=>!!$.document&&Object.getOwnPropertyDescriptor($.document.adoptedStyleSheets,"length").writable)(),M=!1,k=[],x=[],R=(e,t)=>n=>{e.push(n),M||(M=!0,t&&4&j.u?F(z):j.raf(z))},C=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){y(e)}e.length=0},z=()=>{C(k),C(x),(M=k.length>0)&&j.raf(z)},F=e=>O().then(e),T=R(x,!0);function _(){var e;const t=this.attachShadow({mode:"open"});if(void 0===p&&(p=null!=(e=function(e){if(!S)return;const t=new CSSStyleSheet;return t.replaceSync(e),t}(a))?e:null),p)E?t.adoptedStyleSheets.push(p):t.adoptedStyleSheets=[...t.adoptedStyleSheets,p];else if(!S){const e=document.createElement("style");e.innerHTML=a,t.prepend(e)}}function L(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var A,H=new WeakMap,N=e=>"sc-"+e.h,P=e=>"object"==(e=typeof e)||"function"===e,D=(e,t,...n)=>{let o=null,r=null,i=!1,l=!1;const s=[],f=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!P(o))&&(o+=""),i&&l?s[s.length-1].v+=o:s.push(i?U(null,o):o),l=i)};if(f(n),t){t.key&&(r=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const c=U(e,null);return c.m=t,s.length>0&&(c.$=s),c.j=r,c},U=(e,t)=>({u:0,O:e,v:null!=t?t:null,S:null,$:null,m:null,j:null}),W={},q=(e,t)=>null==e||P(e)?e:2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:1&t?e+"":e,V=e=>{var t;return null==(t=h(e))?void 0:t.$hostElement$},B=(e,t)=>{const n=V(e);return{emit:e=>G(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}},G=(e,t,n)=>{const o=j.ce(t,n);return e.dispatchEvent(o),o},Y=(e,t,n,o,r,i)=>{if(n===o)return;let l=m(e,t),s=t.toLowerCase();if("class"===t){const t=e.classList,r=I(n);let i=I(o);t.remove(...r.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!r.includes(e))))}else if("key"===t);else if("ref"===t)o&&ue(o,e);else if(l||"o"!==t[0]||"n"!==t[1]){if("a"===t[0]&&t.startsWith("attr:")){const n=t.slice(5);let r;{const t=h(e);if(t&&t.o&&t.o.t){const e=t.o.t[n];e&&e[1]&&(r=e[1])}}return r||(r=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==e.getAttribute(r)||e.removeAttribute(r):e.setAttribute(r,!0===o?"":o))}if("p"===t[0]&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=o}catch(e){}return}{const s=P(o);if((l||s&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const r=null==o?"":o;"list"===t?l=!1:null!=n&&e[t]===r||("function"==typeof e.__lookupSetter__(t)?e[t]=r:e.setAttribute(t,r))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!l||4&i||r)&&!s&&1===e.nodeType&&e.setAttribute(t,o=!0===o?"":o)}}else if(t="-"===t[2]?t.slice(3):m($,s)?s.slice(2):s[2]+t.slice(3),n||o){const r=t.endsWith(J);t=t.replace(K,""),n&&j.rel(e,t,n,r),o&&j.ael(e,t,o,r)}},Z=/\s/,I=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(Z):[]),J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.S.nodeType&&t.S.host?t.S.host:t.S,r=e&&e.m||{},i=t.m||{};for(const e of X(Object.keys(r)))e in i||Y(o,e,r[e],void 0,n,t.u);for(const e of X(Object.keys(i)))Y(o,e,r[e],i[e],n,t.u)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var ee=!1,te=!1,ne=[],oe=[],re=(e,t,n)=>{const o=t.$[n];let r,i,l=0;if(!$.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=o.S=$.document.createElement(o.O),Q(null,o,te),o.$){const t="template"===o.O?r.content:r;for(l=0;l<o.$.length;++l)i=re(e,o,l),i&&t.appendChild(i)}return r["s-hn"]=A,r},ie=(e,t,n,o,r,i)=>{let l,s=e;for(s.shadowRoot&&s.tagName===A&&(s=s.shadowRoot),"template"===n.O&&(s=s.content);r<=i;++r)o[r]&&(l=re(null,n,r),l&&(o[r].S=l,ae(s,l,t)))},le=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.S;ce(t),e&&e.remove()}}},se=(e,t,n=!1)=>e.O===t.O&&(n?(n&&!e.j&&t.j&&(e.j=t.j),!0):e.j===t.j),fe=(e,t,n=!1)=>{const o=t.S=e.S,r=e.$,i=t.$;"slot"!==t.O||ee||e.M!==t.M&&(t.S["s-sn"]=t.M||"",(e=>{j.u|=1;const t=e.closest(A.toLowerCase());if(null!=t){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"])),o=Array.from(e.__childNodes||e.childNodes);for(const e of n?o.reverse():o)null!=e["s-sh"]&&(ae(t,e,null!=n?n:null),e["s-sh"]=void 0)}j.u&=-2})(t.S.parentElement)),Q(e,t,te),null!==r&&null!==i?((e,t,n,o,r=!1)=>{let i,l,s=0,f=0,c=0,u=0,a=t.length-1,d=t[0],p=t[a],b=o.length-1,h=o[0],v=o[b];const m="template"===n.O?e.content:e;for(;s<=a&&f<=b;)if(null==d)d=t[++s];else if(null==p)p=t[--a];else if(null==h)h=o[++f];else if(null==v)v=o[--b];else if(se(d,h,r))fe(d,h,r),d=t[++s],h=o[++f];else if(se(p,v,r))fe(p,v,r),p=t[--a],v=o[--b];else if(se(d,v,r))fe(d,v,r),ae(m,d.S,p.S.nextSibling),d=t[++s],v=o[--b];else if(se(p,h,r))fe(p,h,r),ae(m,p.S,d.S),p=t[--a],h=o[++f];else{for(c=-1,u=s;u<=a;++u)if(t[u]&&null!==t[u].j&&t[u].j===h.j){c=u;break}c>=0?(l=t[c],l.O!==h.O?i=re(t&&t[f],n,c):(fe(l,h,r),t[c]=void 0,i=l.S),h=o[++f]):(i=re(t&&t[f],n,f),h=o[++f]),i&&ae(d.S.parentNode,i,d.S)}s>a?ie(e,null==o[b+1]?null:o[b+1].S,n,o,f,b):f>b&&le(t,s,a)})(o,r,t,i,n):null!==i?ie(o,null,t,i,0,i.length-1):!n&&null!==r&&le(r,0,r.length-1)},ce=e=>{e.m&&e.m.ref&&ne.push((()=>e.m.ref(null))),e.$&&e.$.map(ce)},ue=(e,t)=>{oe.push((()=>e(t)))},ae=(e,t,n)=>e.__insertBefore?e.__insertBefore(t,n):null==e?void 0:e.insertBefore(t,n),de=(e,t)=>{if(t&&!e.k&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.k=()=>{t["s-p"].splice(n-1,1),o()})))}},pe=(e,t)=>{if(e.u|=16,4&e.u)return void(e.u|=512);de(e,e.R);const n=()=>be(e,t);if(!t)return T(n);queueMicrotask((()=>{n()}))},be=(e,t)=>{const n=e.$hostElement$,o=e.l;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return t?(e.C.length&&e.C.forEach((e=>e(n))),r=$e(o,"componentWillLoad",void 0,n)):r=$e(o,"componentWillUpdate",void 0,n),r=he(r,(()=>$e(o,"componentWillRender",void 0,n))),he(r,(()=>me(e,o,t)))},he=(e,t)=>ve(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ve=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,me=async(e,t,n)=>{var o;const r=e.$hostElement$,i=r["s-rc"];n&&(e=>{const t=e.o,n=e.$hostElement$,o=t.u,r=((e,t)=>{var n,o,r;const i=N(t),l=w.get(i);if(!$.document)return i;if(e=11===e.nodeType?e:$.document,l)if("string"==typeof l){let r,s=H.get(e=e.head||e);if(s||H.set(e,s=new Set),!s.has(i)){r=$.document.createElement("style"),r.textContent=l;const f=null!=(n=j.F)?n:L($.document);if(null!=f&&r.setAttribute("nonce",f),!(1&t.u))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(r,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(S){const t=new(null!=(o=e.defaultView)?o:e.ownerDocument.defaultView).CSSStyleSheet;t.replaceSync(l),E?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.textContent=l+t.textContent:e.prepend(r)}else e.append(r);1&t.u&&e.insertBefore(r,null),4&t.u&&(r.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(i)}}else{let t=H.get(e);if(t||H.set(e,t=new Set),!t.has(i)){const n=null!=(r=e.defaultView)?r:e.ownerDocument.defaultView;let o;if(l.constructor===n.CSSStyleSheet)o=l;else{o=new n.CSSStyleSheet;for(let e=0;e<l.cssRules.length;e++)o.insertRule(l.cssRules[e].cssText,e)}E?e.adoptedStyleSheets.push(o):e.adoptedStyleSheets=[...e.adoptedStyleSheets,o],t.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=r,n.classList.add(r+"-h"))})(e);ye(e,t,r,n),i&&(i.map((e=>e())),r["s-rc"]=void 0);{const t=null!=(o=r["s-p"])?o:[],n=()=>ge(e);0===t.length?n():(Promise.all(t).then(n).catch(n),e.u|=4,t.length=0)}},ye=(e,t,n,o)=>{try{t=t.render(),e.u&=-17,e.u|=2,((e,t,n=!1)=>{const o=e.$hostElement$,r=e.o,i=e.T||U(null,null),l=(e=>e&&e.O===W)(t)?t:D(null,null,t);if(A=o.tagName,r._&&(l.m=l.m||{},r._.forEach((([e,t])=>{l.m[t]=o[e]}))),n&&l.m)for(const e of Object.keys(l.m))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(l.m[e]=o[e]);l.O=null,l.u|=4,e.T=l,l.S=i.S=o.shadowRoot||o,ee=!(!(1&r.u)||128&r.u),fe(i,l,n),ne.forEach((e=>e())),ne.length=0,oe.forEach((e=>e())),oe.length=0})(e,t,o)}catch(t){y(t,e.$hostElement$)}return null},ge=e=>{const t=e.$hostElement$,n=e.l,o=e.R;$e(n,"componentDidRender",void 0,t),64&e.u?$e(n,"componentDidUpdate",void 0,t):(e.u|=64,je(t),$e(n,"componentDidLoad",void 0,t),e.L(t),o||we()),e.A(t),e.k&&(e.k(),e.k=void 0),512&e.u&&F((()=>pe(e,!1))),e.u&=-517},we=()=>{F((()=>G($,"appload",{detail:{namespace:"doc-viewer"}})))},$e=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){y(e,o)}},je=e=>e.classList.add("hydrated"),Oe=(e,t,n,o)=>{const r=h(e);if(!r)return;if(!r)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const i=r.$hostElement$,l=r.i.get(t),s=r.u,f=r.l;if(n=q(n,o.t[t][0]),!(8&s&&void 0!==l||n===l||Number.isNaN(l)&&Number.isNaN(n))){if(r.i.set(t,n),o.H){const e=o.H[t];e&&e.map((e=>{try{const[[o,i]]=Object.entries(e);(128&s||1&i)&&(f?f[o](n,l,t):r.C.push((()=>{r.l[o](n,l,t)})))}catch(e){y(e,i)}}))}if(2&s){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,l,t)&&!(16&s))return;16&s||pe(r,!1)}}},Se=(e,t,n)=>{var o,r;const i=e.prototype;{e.watchers&&!t.H&&(t.H=e.watchers),e.deserializers&&!t.N&&(t.N=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const l=Object.entries(null!=(o=t.t)?o:{});if(l.map((([e,[o]])=>{if(31&o||2&n&&32&o){const{get:r,set:l}=d(i,e)||{};r&&(t.t[e][0]|=2048),l&&(t.t[e][0]|=4096),(1&n||!r)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.t[e][0]))return((e,t)=>h(this).i.get(t))(0,e);const n=h(this),o=n?n.l:i;if(!o)return;return o[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(r){const i=h(this);if(i){if(l)return void 0===(32&o?this[e]:i.$hostElement$[e])&&i.i.get(e)&&(r=i.i.get(e)),l.call(this,q(r,o)),void Oe(this,e,r=32&o?this[e]:i.$hostElement$[e],t);{if(!(1&n&&4096&t.t[e][0]))return Oe(this,e,r,t),void(1&n&&!i.l&&i.C.push((()=>{4096&t.t[e][0]&&i.l[e]!==i.i.get(e)&&(i.l[e]=r)})));const l=()=>{const n=i.l[e];!i.i.get(e)&&n&&i.i.set(e,n),i.l[e]=q(r,o),Oe(this,e,i.l[e],t)};i.l?l():i.C.push((()=>{l()}))}}}})}else 1&n&&64&o&&Object.defineProperty(i,e,{value(...t){var n;const o=h(this);return null==(n=null==o?void 0:o.D)?void 0:n.then((()=>{var n;return null==(n=o.l)?void 0:n[e](...t)}))}})})),1&n){const n=new Map;i.attributeChangedCallback=function(e,o,r){j.jmp((()=>{var s;const f=n.get(e),c=h(this);if(this.hasOwnProperty(f)&&(r=this[f],delete this[f]),i.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==r)return;if(null==f){const n=null==c?void 0:c.u;if(c&&n&&!(8&n)&&r!==o){const i=c.l,l=null==(s=t.H)?void 0:s[e];null==l||l.forEach((t=>{const[[l,s]]=Object.entries(t);null!=i[l]&&(128&n||1&s)&&i[l].call(i,r,o,e)}))}return}const u=l.find((([e])=>e===f));u&&4&u[1][0]&&(r=null!==r&&"false"!==r);const a=Object.getOwnPropertyDescriptor(i,f);r==this[f]||a.get&&!a.set||(this[f]=r)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.H)?r:{}),...l.filter((([e,t])=>31&t[0])).map((([e,o])=>{var r;const i=o[1]||e;return n.set(i,e),512&o[0]&&(null==(r=t._)||r.push([e,i])),i}))]))}}return e},Ee=(e,t)=>{$e(e,"connectedCallback",void 0,t)},Me=(e,t)=>{$e(e,"disconnectedCallback",void 0,t||e)},ke=(e,t={})=>{var n;if(!$.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],r=t.exclude||[],i=$.customElements,l=$.document.head,s=l.querySelector("meta[charset]"),f=$.document.createElement("style"),c=[];let u,a=!0;if(Object.assign(j,t),j.p=new URL(t.resourcesUrl||"./",$.document.baseURI).href,e.map((e=>{e[1].map((t=>{var n,l,s;const f={u:t[0],h:t[1],t:t[2],U:t[3]};f.t=t[2],f._=[],f.H=null!=(n=t[4])?n:{},f.P=null!=(l=t[5])?l:{},f.N=null!=(s=t[6])?s:{};const d=f.h,p=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(e){if(super(e),((e,t)=>{const n={u:0,$hostElement$:e,o:t,i:new Map,W:new Map};n.D=new Promise((e=>n.A=e)),n.q=new Promise((e=>n.L=e)),e["s-p"]=[],e["s-rc"]=[],n.C=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,f),1&f.u)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${f.h}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else _.call(e,f)}connectedCallback(){h(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),a?c.push(this):j.jmp((()=>(e=>{if(!(1&j.u)){const t=h(e);if(!t)return;const n=t.o,o=()=>{};if(1&t.u)(null==t?void 0:t.l)?Ee(t.l,e):(null==t?void 0:t.q)&&t.q.then((()=>Ee(t.l,e)));else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){de(t,t.R=n);break}}n.t&&Object.entries(n.t).map((([t,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;try{if(!(32&t.u)){if(t.u|=32,n.V){const r=((e,t)=>{const n=e.h.replace(/-/g,"_"),o=e.V;if(!o)return;const r=g.get(o);return r?r[n]:import(`./${o}.entry.js`).then((e=>(g.set(o,e),e[n])),(e=>{y(e,t.$hostElement$)}))
5
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(r&&"then"in r){const e=()=>{};o=await r,e()}else o=r;if(!o)throw Error(`Constructor for "${n.h}#${t.B}" was not found`);o.isProxied||(n.H=o.watchers,n.P=o.serializers,n.N=o.deserializers,Se(o,n,2),o.isProxied=!0);const i=()=>{};t.u|=8;try{new o(t)}catch(t){y(t,e)}t.u&=-9,t.u|=128,i(),Ee(t.l,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.u|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=N(n);if(!w.has(t)){const o=()=>{};((e,t,n)=>{let o=w.get(e);S&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,w.set(e,o)})(t,e,!!(1&n.u)),o()}}}const r=t.R,i=()=>pe(t,!0);r&&r["s-rc"]?r["s-rc"].push(i):i()}catch(n){y(n,e),t.k&&(t.k(),t.k=void 0),t.L&&t.L(e)}})(e,t,n)}o()}})(this))))}disconnectedCallback(){j.jmp((()=>(async e=>{if(!(1&j.u)){const t=h(e);(null==t?void 0:t.l)?Me(t.l,e):(null==t?void 0:t.q)&&t.q.then((()=>Me(t.l,e)))}H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)})(this))),j.raf((()=>{var e;const t=h(this);if(!t)return;const n=c.findIndex((e=>e===this));n>-1&&c.splice(n,1),(null==(e=null==t?void 0:t.T)?void 0:e.S)instanceof Node&&!t.T.S.isConnected&&delete t.T.S}))}componentOnReady(){var e;return null==(e=h(this))?void 0:e.q}};f.V=e[0],r.includes(d)||i.get(d)||(o.push(d),i.define(d,Se(p,f,1)))}))})),o.length>0&&(f.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const e=null!=(n=j.F)?n:L($.document);null!=e&&f.setAttribute("nonce",e),l.insertBefore(f,s?s.nextSibling:l.firstChild)}a=!1,c.length?c.map((e=>e.connectedCallback())):j.jmp((()=>u=setTimeout(we,30)))},xe=e=>j.F=e;export{W as H,V as a,ke as b,B as c,u as g,D as h,O as p,v as r,xe as s}