SandpointsTheme/static/js/paged.min.js

7 lines
128 KiB
JavaScript
Raw Normal View History

2025-05-11 07:19:46 +02:00
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="description" content="The CDN for everything on npm"/><link rel="icon" type="image/jpeg" href="/favicon.jpg"/><link rel="stylesheet" href="https://app.unpkg.com/_assets/styles-D6XP7YEC.css"/><link rel="stylesheet" href="https://app.unpkg.com/_assets/code-light-B2LHUSJR.css"/><script type="importmap">{"imports":{"preact":"https://unpkg.com/preact@10.25.4/dist/preact.module.js","preact/hooks":"https://unpkg.com/preact@10.25.4/hooks/dist/hooks.module.js","preact/jsx-runtime":"https://unpkg.com/preact@10.25.4/jsx-runtime/dist/jsxRuntime.module.js"}}</script><script type="module" src="https://app.unpkg.com/_assets/scripts-5LWG6LQM.js" defer></script><title>UNPKG</title><script async src="https://www.googletagmanager.com/gtag/js?id=UA-140352188-1"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-140352188-1');</script></head><body><header class="border-b border-slate-300 bg-slate-100 text-slate-950"><div class="p-4 mx-auto flex justify-between items-center lg:max-w-screen-xl"><h1 class="text-2xl font-bold inline-block"><a href="https://unpkg.com">UNPKG</a></h1><span class="inline-block h-full"><a href="https://github.com/unpkg"><svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" class="w-6 h-6"><path fill-rule="evenodd" d="M12.006 2a9.847 9.847 0 0 0-6.484 2.44 10.32 10.32 0 0 0-3.393 6.17 10.48 10.48 0 0 0 1.317 6.955 10.045 10.045 0 0 0 5.4 4.418c.504.095.683-.223.683-.494 0-.245-.01-1.052-.014-1.908-2.78.62-3.366-1.21-3.366-1.21a2.711 2.711 0 0 0-1.11-1.5c-.907-.637.07-.621.07-.621.317.044.62.163.885.346.266.183.487.426.647.71.135.253.318.476.538.655a2.079 2.079 0 0 0 2.37.196c.045-.52.27-1.006.635-1.37-2.219-.259-4.554-1.138-4.554-5.07a4.022 4.022 0 0 1 1.031-2.75 3.77 3.77 0 0 1 .096-2.713s.839-.275 2.749 1.05a9.26 9.26 0 0 1 5.004 0c1.906-1.325 2.74-1.05 2.74-1.05.37.858.406 1.828.101 2.713a4.017 4.017 0 0 1 1.029 2.75c0 3.939-2.339 4.805-4.564 5.058a2.471 2.471 0 0 1 .679 1.897c0 1.372-.012 2.477-.012 2.814 0 .272.18.592.687.492a10.05 10.05 0 0 0 5.388-4.421 10.473 10.473 0 0 0 1.313-6.948 10.32 10.32 0 0 0-3.39-6.165A9.847 9.847 0 0 0 12.007 2Z" clip-rule="evenodd"></path></svg></a></span></div></header><main class="px-4 pb-24 mx-auto lg:max-w-screen-xl lg:pb-44"><header class="pt-6 pb-4 lg:pt-16"><div class="mb-6 flex justify-between items-center"><h1 class="text-black text-3xl leading-tight font-semibold">pagedjs</h1><div class="text-right w-48"><span>Version: </span><span data-hydrate="{&quot;key&quot;:&quot;VersionSelector&quot;,&quot;props&quot;:{&quot;availableTags&quot;:{&quot;latest&quot;:&quot;0.4.3&quot;,&quot;beta&quot;:&quot;0.5.0-beta.2&quot;},&quot;availableVersions&quot;:[&quot;0.5.0-beta.2&quot;,&quot;0.5.0-beta.1&quot;,&quot;0.5.0-beta.0&quot;,&quot;0.4.3&quot;,&quot;0.4.2&quot;,&quot;0.4.1&quot;,&quot;0.4.0&quot;,&quot;0.4.0-beta.3&quot;,&quot;0.4.0-beta.2&quot;,&quot;0.4.0-beta.1&quot;,&quot;0.4.0-beta.0&quot;,&quot;0.3.5&quot;,&quot;0.3.4&quot;,&quot;0.3.2&quot;,&quot;0.3.1&quot;,&quot;0.2.0&quot;,&quot;0.1.43&quot;,&quot;0.1.42&quot;,&quot;0.1.41&quot;,&quot;0.1.40&quot;,&quot;0.1.39&quot;,&quot;0.1.38&quot;,&quot;0.1.37&quot;,&quot;0.1.35&quot;,&quot;0.1.34&quot;,&quot;0.1.33&quot;,&quot;0.1.32&quot;,&quot;0.1.31&quot;,&quot;0.1.30&quot;,&quot;0.1.29&quot;,&quot;0.1.28&quot;,&quot;0.1.27&quot;,&quot;0.1.26&quot;,&quot;0.1.25&quot;,&quot;0.1.24&quot;,&quot;0.1.23&quot;,&quot;0.1.22&quot;,&quot;0.1.21&quot;,&quot;0.1.20&quot;,&quot;0.1.19&quot;,&quot;0.1.18&quot;,&quot;0.1.17&quot;,&quot;0.1.16&quot;,&quot;0.1.15&quot;,&quot;0.1.14&quot;,&quot;0.1.13&quot;,&quot;0.1.12&quot;,&quot;0.1.11&quot;,&quot;0.1.10&quot;,&quot;0.1.9&quot;,&quot;0.1.8&quot;,&quot;0.1.7&quot;,&quot;0.1.6&quot;,&quot;0.1.5&quot;,&quot;0.1.4&quot;,&quot;0.1.2&quot;,&quot;0.1.1&quot;,&quot;0.1.0&quot;,&quot;0.0.4&quot;,&quot;0.0.3&quot;,&quot;0.0.2&quot;,&quot;0.0.1&quot;],&quot;currentVersion&quot;:&quot;0.4.3&quot;,&quot;pathnameFormat&quot;:&quot;/pagedjs@%s/files/dist/paged.min.js&quot;,&quot;class&quot;:&quot;w-28 p-1 border border-slate-300 bg-slate-100 text-sm&quot;}}"><select name="version" class="w-28 p-1 border border-slate-300 bg-slate-100 text-sm"><optgroup label="Tags"><option value="0.5.0-beta.2">beta (0.5.0-beta.2)</option><option selected value="0.4.3">latest (0.4.3)</option></optgroup><optgroup label="Versions"><option value="0.5.0-beta.2">0.5.0-beta.2</option><option value="0.5.0-beta.1">0.5.0-beta.1</option><option value="0.5.0-beta.0">0.5.0-beta.0</option><option selected value="0.4.3">0.4.3</option><option value="0.4.2">0.4.2</option><option value="0.4.1">0.4.1</option><option value="0.4.0">0.4.0</option><option value="0.4.0-beta.3">0.4.0-beta.3</option><option value="0.4.0-beta.2">0.4.0-beta.2</option><option value="0.4.0-beta.1">0.4.0-beta.1</option><option value="0.4.0-beta.0">0.4.0-beta.0</option><option value="0.3.5">0.3.5</option><option value="0.3.4">0.3.4
* @license Paged.js v0.4.3 | MIT | https://gitlab.coko.foundation/pagedjs/pagedjs
*/
!function(e,t){&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module?t(exports):&quot;function&quot;==typeof define&amp;&amp;define.amd?define([&quot;exports&quot;],t):t((e=&quot;undefined&quot;!=typeof globalThis?globalThis:e||self).PagedModule={})}(this,(function(e){&quot;use strict&quot;;function t(e){if(!e)return;let t;if(void 0!==e.getBoundingClientRect)t=e.getBoundingClientRect();else{let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}return t}function n(e){if(!e)return;let t;if(void 0!==e.getClientRects)t=e.getClientRects();else{let n=document.createRange();n.selectNode(e),t=n.getClientRects()}return t}function r(){var e=(new Date).getTime();return&quot;undefined&quot;!=typeof performance&amp;&amp;&quot;function&quot;==typeof performance.now&amp;&amp;(e+=performance.now()),&quot;xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx&quot;.replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),(&quot;x&quot;===t?n:3&amp;n|8).toString(16)}))}function a(e,t){for(var n=0;n&lt;t.length;n++)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])}function i(e){if(0==arguments.length)throw new TypeError(&quot;`CSS.escape` requires an argument.&quot;);for(var t,n=String(e),r=n.length,a=-1,i=&quot;&quot;,o=n.charCodeAt(0);++a&lt;r;)0!=(t=n.charCodeAt(a))?t&gt;=1&amp;&amp;t&lt;=31||127==t||0==a&amp;&amp;t&gt;=48&amp;&amp;t&lt;=57||1==a&amp;&amp;t&gt;=48&amp;&amp;t&lt;=57&amp;&amp;45==o?i+=&quot;\\&quot;+t.toString(16)+&quot; &quot;:0!=a||1!=r||45!=t?46!=t||&quot;#&quot;!=n.charAt(0)?i+=t&gt;=128||45==t||95==t||35==t||46==t||t&gt;=48&amp;&amp;t&lt;=57||t&gt;=65&amp;&amp;t&lt;=90||t&gt;=97&amp;&amp;t&lt;=122?n.charAt(a):&quot;\\&quot;+n.charAt(a):i+=&quot;\\.&quot;:i+=&quot;\\&quot;+n.charAt(a):i+=&quot;<EFBFBD>&quot;;return i}function o(){this.resolve=null,this.reject=null,this.id=r(),this.promise=new Promise(((e,t)=&gt;{this.resolve=e,this.reject=t})),Object.freeze(this)}const s=&quot;undefined&quot;!=typeof window&amp;&amp;(&quot;requestIdleCallback&quot;in window?window.requestIdleCallback:window.requestAnimationFrame);function l(e){return e.value+(e.unit||&quot;&quot;)}function d(e){return e&amp;&amp;1===e.nodeType}function p(e){return e&amp;&amp;3===e.nodeType}function*c(e,t){let n=e;for(;n;)if(yield n,n.childNodes.length)n=n.firstChild;else if(n.nextSibling){if(t&amp;&amp;n===t){n=void 0;break}n=n.nextSibling}else for(;n;){if(n=n.parentNode,t&amp;&amp;n===t){n=void 0;break}if(n&amp;&amp;n.nextSibling){n=n.nextSibling;break}}}function u(e,t){if(t&amp;&amp;e===t)return;let n=B(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&amp;&amp;e===t)return;if(n=B(e),n)return n}}function m(e,t){if(t&amp;&amp;e===t)return;let n=E(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&amp;&amp;e===t)return;if(n=E(e),n)return n}}function h(e,t){let n=u(e,t);for(;n&amp;&amp;1!==n.nodeType;)n=u(n,t);return n}function g(e,t){let n=m(e,t);for(;n&amp;&amp;1!==n.nodeType;)n=m(n,t);return n}function f(e,t){let n=h(e,t);for(;n&amp;&amp;n.dataset.undisplayed;)n=h(n,t);return n}function y(e,t){let n=g(e,t);for(;n&amp;&amp;n.dataset.undisplayed;)n=g(n,t);return n}function b(e){let t,n,r=[],a=[],i=document.createDocumentFragment();if(&quot;TR&quot;===e.nodeName){let t=e.previousElementSibling,n=1;for(;t;){if(t.childElementCount&gt;e.childElementCount){const r=Array.from(e.children);for(;e.firstChild;)e.firstChild.remove();let a=0;for(let i=0;i&lt;t.children.length;i++){let o=t.children[i];if(o.rowSpan&amp;&amp;o.rowSpan&gt;n){const t=o.cloneNode(!0);t.rowSpan=o.rowSpan-n,e.appendChild(t)}else{const t=r[a++];t&amp;&amp;e.appendChild(t)}}}t=t.previousElementSibling,n++}}let o=e;for(;o.parentNode&amp;&amp;1===o.parentNode.nodeType;)r.unshift(o.parentNode),o=o.parentNode;for(var s=0;s&lt;r.length;s++){if(n=r[s],t=n.cloneNode(!1),t.setAttribute(&quot;data-split-from&quot;,t.getAttribute(&quot;data-ref&quot;)),t.hasAttribute(&quot;id&quot;)){let e=t.getAttribute(&quot;id&quot;);t.setAttribute(&quot;data-id&quot;,e),t.removeAttribute(&quot;id&quot;)}if(t.hasAttribute(&quot;data-break-