@docling/docling-components 0.0.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.
Files changed (3) hide show
  1. package/README.md +70 -0
  2. package/dist/index.js +35 -0
  3. package/package.json +71 -0
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Docling Components
2
+
3
+ Web components for displaying Docling output, which simplifies document processing, parsing diverse formats — including advanced PDF understanding. This package requires the JSON output of documents that are converted by [Docling](https://ds4sd.github.io/docling).
4
+
5
+ ## Install package
6
+
7
+ In case of a client or single page application that is bundled upfront:
8
+
9
+ ```sh
10
+ npm i @docling/docling-components
11
+ ```
12
+
13
+ Next, import the package at the application root to install the components:
14
+
15
+ ```ts
16
+ import '@docling/docling-components';
17
+ ```
18
+
19
+ In case of a static or server-side rendered website; add the package to the page HTML.
20
+ Either download the package and serve it as part of the rest of the website, or use a CDN mirror of NPM:
21
+
22
+ ```html
23
+ <html>
24
+ <head>
25
+ ...
26
+
27
+ <script type="module" src="https://unpkg.com/@docling/docling-components" />
28
+ </head>
29
+
30
+ ...
31
+ </html>
32
+ ```
33
+
34
+ ## Components
35
+
36
+ ### docling-img
37
+
38
+ This component displays the converted document in context of its original form, by showing the full page renderings that are embedded in the conversion JSON (for specific input document formats). Each document item is shown as a bounding box on top of the page.
39
+
40
+ Plain use:
41
+
42
+ ```html
43
+ <docling-img src="conversion.json" />
44
+ ```
45
+
46
+ You can narrow down the marked document items according to their reference path in the converted document:
47
+
48
+ ```html
49
+ <docling-img src="conversion.json" items="#/pictures/3" />
50
+ ```
51
+
52
+ Select entire item categories with `items="#/pictures"`, full pages with `items="#/pages/2"`, and unions with `items="#/pictures, #/tables"`.
53
+
54
+ To emphasize or summarize these selections, you can suppress the non-selection into a page backdrop and/or trim out the pages without any selected items:
55
+
56
+ ```html
57
+ <docling-img src="conversion.json" items="#/pictures" trim="pages" backdrop />
58
+ ```
59
+
60
+ ### docling-list
61
+
62
+ This component displays the converted document as a vertical list of detected document items, with the parsed item contents on one side and a cropped provenance image on the other side (if available).
63
+
64
+ Plain use:
65
+
66
+ ```html
67
+ <docling-list src="conversion.json" />
68
+ ```
69
+
70
+ You can select items with the `items` attributes, as described for the `docling-img` component. Selecting items will hide all non-selected items from view.
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ var hn="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(hn);var Et="[",pt="[!",dt="]",it={};var Y=Symbol(),fe=Symbol("filename"),gn=Symbol("hmr");var Vo=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var Ss=[...Vo,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Yo=["touchstart","touchmove"];function xn(e){return Yo.includes(e)}var bn=globalThis.process?.env?.NODE_ENV,h=bn&&!bn.toLowerCase().startsWith("prod");var Be=Array.isArray,yn=Array.prototype.indexOf,qt=Array.from,Bt=Object.keys,ee=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyDescriptors,Lr=Object.prototype,$n=Array.prototype,mt=Object.getPrototypeOf;function wn(e){return typeof e?.then=="function"}function Vt(e){for(var t=0;t<e.length;t++)e[t]()}var Se=Symbol("$state"),vt=Symbol("$state metadata"),ar=Symbol("legacy props"),En=Symbol("");function lr(e){return e===this.v}function fr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Tt(e){return!fr(e,this.v)}function Tn(){if(h){let e=new Error(`derived_references_self
2
+ A derived value cannot reference itself recursively
3
+ https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function kn(){if(h){let e=new Error(`effect_update_depth_exceeded
4
+ Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
5
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function An(){if(h){let e=new Error(`hydration_failed
6
+ Failed to hydrate the application
7
+ https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function In(e){if(h){let t=new Error(`props_invalid_value
8
+ Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
9
+ https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function Sn(e){if(h){let t=new Error(`rune_outside_svelte
10
+ The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
11
+ https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Nn(){if(h){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Rn(){if(h){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Dn(){if(h){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Cn(){if(h){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var st=!1,He=!1;var Yt=null;function Qe(e){let t=Error(),r=t.stack;if(r){let n=r.split(`
12
+ `),i=[`
13
+ `];for(let o=0;o<n.length;o++){let s=n[o];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||i.push(s)}}if(i.length===1)return null;ee(t,"stack",{value:i.join(`
14
+ `)}),ee(t,"name",{value:`${e}Error`})}return t}var ht=new Set;function qr(e){ht=e}function U(e,t){var r={f:0,v:e,reactions:null,equals:lr,rv:0,wv:0};return h&&He&&(r.created=t??Qe("CreatedAt"),r.debug=null),r}function je(e,t=!1){let r=U(e);return t||(r.equals=Tt),st&&I!==null&&I.l!==null&&(I.l.s??=[]).push(r),r}function te(e,t){return O!==null&&!Ge&&nt()&&O.f&18&&(at===null||!at.includes(e))&&Cn(),tt(e,t)}function tt(e,t){if(!e.equals(t)){var r=e.v;if(e.v=t,e.wv=Ut(),h&&He&&(e.updated=Qe("UpdatedAt"),w!=null&&(e.trace_need_increase=!0,e.trace_v??=r)),Pn(e,2048),nt()&&w!==null&&w.f&1024&&!(w.f&96)&&(Ue===null?Ln([e]):Ue.push(e)),h&&ht.size>0){let i=Array.from(ht);var n=rt;kt(!0);try{for(let o of i)o.f&1024&&ce(o,4096),lt(o)&&It(o)}finally{kt(n)}ht.clear()}}return t}function Pn(e,t){var r=e.reactions;if(r!==null)for(var n=nt(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;if(!(a&2048)&&!(!n&&s===w)){if(h&&a&262144){ht.add(s);continue}ce(s,t),a&1280&&(a&2?Pn(s,4096):St(s))}}}var zt="font-weight: bold",jt="font-weight: normal";function Mn(e,t,r){h?console.warn(`%c[svelte] hydration_attribute_changed
15
+ %cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
16
+ https://svelte.dev/e/hydration_attribute_changed`,zt,jt):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Nt(e){h?console.warn(`%c[svelte] hydration_mismatch
17
+ %c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
18
+ https://svelte.dev/e/hydration_mismatch`,zt,jt):console.warn("https://svelte.dev/e/hydration_mismatch")}function Fn(){h?console.warn(`%c[svelte] lifecycle_double_unmount
19
+ %cTried to unmount a component that was not mounted
20
+ https://svelte.dev/e/lifecycle_double_unmount`,zt,jt):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Br(e,t){h?console.warn(`%c[svelte] ownership_invalid_mutation
21
+ %c${e?`${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
22
+ https://svelte.dev/e/ownership_invalid_mutation`,zt,jt):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function cr(e){h?console.warn(`%c[svelte] state_proxy_equality_mismatch
23
+ %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
24
+ https://svelte.dev/e/state_proxy_equality_mismatch`,zt,jt):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var g=!1;function xe(e){g=e}var y;function V(e){if(e===null)throw Nt(),it;return y=e}function re(){return V(ue(y))}function R(e){if(g){if(ue(y)!==null)throw Nt(),it;y=e}}function Rt(){for(var e=0,t=y;;){if(t.nodeType===8){var r=t.data;if(r===dt){if(e===0)return t;e-=1}else(r===Et||r===pt)&&(e+=1)}var n=ue(t);t.remove(),t=n}}var zo={},jo=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,Go=/@(.+):(\d+):(\d+)$/;function Wo(){let e=new Error().stack;if(!e)return null;let t=[];for(let r of e.split(`
25
+ `)){let n=jo.exec(r)??Go.exec(r);n&&t.push({file:n[1],line:+n[2],column:+n[3]})}return t}function qn(){let e=Wo()?.slice(4);if(!e)return null;for(let t=0;t<e.length;t++){let r=e[t],n=zo[r.file];if(!n){if(t===0)return null;continue}for(let i of n){if(i.end==null)return null;if(i.start.line<r.line&&i.end.line>r.line)return i.component}}return null}var Ko=Symbol("ADD_OWNER");function Vr(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function Bn(e,t){return e.owners===null?!0:e.owners.has(t)||e.parent!==null&&Bn(e.parent,t)}function Vn(e){return e?.owners?.values().next().value??Vn(e.parent)}var Zo=!1;function Yn(e){if(Zo)return;let t=qn();if(t&&!Bn(e,t)){let r=Vn(e);r[fe]!==t[fe]?Br(t[fe],r[fe]):Br()}}function ft(e,t=null,r){var n=null;if(h&&He&&(n=Qe("CreatedAt")),typeof e!="object"||e===null||Se in e)return e;let i=mt(e);if(i!==Lr&&i!==$n)return e;var o=new Map,s=Be(e),a=U(0);s&&o.set("length",U(e.length,n));var c;if(h)if(c={parent:t,owners:null},r){let u=r.v?.[vt]?.owners;c.owners=u?new Set(u):null}else c.owners=t===null?I!==null?new Set([I.function]):null:new Set;return new Proxy(e,{defineProperty(u,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Nn();var p=o.get(l);return p===void 0?(p=U(f.value,n),o.set(l,p)):te(p,ft(f.value,c)),!0},deleteProperty(u,l){var f=o.get(l);if(f===void 0)l in u&&o.set(l,U(Y,n));else{if(s&&typeof l=="string"){var p=o.get("length"),_=Number(l);Number.isInteger(_)&&_<p.v&&te(p,_)}te(f,Y),Hn(a)}return!0},get(u,l,f){if(h&&l===vt)return c;if(l===Se)return e;var p=o.get(l),_=l in u;if(p===void 0&&(!_||Ie(u,l)?.writable)&&(p=U(ft(_?u[l]:Y,c),n),o.set(l,p)),p!==void 0){var m=d(p);if(h){var v=m?.[vt];v&&v?.parent!==c&&Vr(c,v)}return m===Y?void 0:m}return Reflect.get(u,l,f)},getOwnPropertyDescriptor(u,l){var f=Reflect.getOwnPropertyDescriptor(u,l);if(f&&"value"in f){var p=o.get(l);p&&(f.value=d(p))}else if(f===void 0){var _=o.get(l),m=_?.v;if(_!==void 0&&m!==Y)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return f},has(u,l){if(h&&l===vt||l===Se)return!0;var f=o.get(l),p=f!==void 0&&f.v!==Y||Reflect.has(u,l);if(f!==void 0||w!==null&&(!p||Ie(u,l)?.writable)){f===void 0&&(f=U(p?ft(u[l],c):Y,n),o.set(l,f));var _=d(f);if(_===Y)return!1}return p},set(u,l,f,p){var _=o.get(l),m=l in u;if(s&&l==="length")for(var v=f;v<_.v;v+=1){var x=o.get(v+"");x!==void 0?te(x,Y):v in u&&(x=U(Y,n),o.set(v+"",x))}if(_===void 0?(!m||Ie(u,l)?.writable)&&(_=U(void 0,n),te(_,ft(f,c)),o.set(l,_)):(m=_.v!==Y,te(_,ft(f,c))),h){var k=f?.[vt];k&&k?.parent!==c&&Vr(c,k),Yn(c)}var b=Reflect.getOwnPropertyDescriptor(u,l);if(b?.set&&b.set.call(p,f),!m){if(s&&typeof l=="string"){var E=o.get("length"),L=Number(l);Number.isInteger(L)&&L>=E.v&&te(E,L+1)}Hn(a)}return!0},ownKeys(u){d(a);var l=Reflect.ownKeys(u).filter(_=>{var m=o.get(_);return m===void 0||m.v!==Y});for(var[f,p]of o)p.v!==Y&&!(f in u)&&l.push(f);return l},setPrototypeOf(){Rn()}})}function Hn(e,t=1){te(e,e.v+t)}function _r(e){return e!==null&&typeof e=="object"&&Se in e?e[Se]:e}function Un(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:i}=e;e.indexOf=function(o,s){let a=r.call(this,o,s);if(a===-1){for(let c=s??0;c<this.length;c+=1)if(_r(this[c])===o){cr("array.indexOf(...)");break}}return a},e.lastIndexOf=function(o,s){let a=n.call(this,o,s??this.length-1);if(a===-1){for(let c=0;c<=(s??this.length-1);c+=1)if(_r(this[c])===o){cr("array.lastIndexOf(...)");break}}return a},e.includes=function(o,s){let a=i.call(this,o,s);if(!a){for(let c=0;c<this.length;c+=1)if(_r(this[c])===o){cr("array.includes(...)");break}}return a},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=i}}var Yr,zn,jn,Gn;function pr(){if(Yr===void 0){Yr=window,zn=document;var e=Element.prototype,t=Node.prototype;jn=Ie(t,"firstChild").get,Gn=Ie(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0,h&&(e.__svelte_meta=null,Un())}}function be(e=""){return document.createTextNode(e)}function z(e){return jn.call(e)}function ue(e){return Gn.call(e)}function F(e,t){if(!g)return z(e);var r=z(y);if(r===null)r=y.appendChild(be());else if(t&&r.nodeType!==3){var n=be();return r?.before(n),V(n),n}return V(r),r}function j(e,t){if(!g){var r=z(e);return r instanceof Comment&&r.data===""?ue(r):r}if(t&&y?.nodeType!==3){var n=be();return y?.before(n),V(n),n}return y}function We(e,t=1,r=!1){let n=g?y:e;for(var i;t--;)i=n,n=ue(n);if(!g)return n;var o=n?.nodeType;if(r&&o!==3){var s=be();return n===null?i?.after(s):n.before(s),V(s),s}return V(n),n}function Gt(e){e.textContent=""}function D(e){var t=2050;w===null?t|=256:w.f|=1048576;var r=O!==null&&O.f&2?O:null;let n={children:null,ctx:I,deps:null,equals:lr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??w};return h&&He&&(n.created=Qe("CreatedAt")),r!==null&&(r.children??=[]).push(n),n}function Wt(e){let t=D(e);return t.equals=Tt,t}function Ur(e){var t=e.children;if(t!==null){e.children=null;for(var r=0;r<t.length;r+=1){var n=t[r];n.f&2?Kt(n):ae(n)}}}var Hr=[];function Xo(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t;t=t.parent}return null}function jr(e){var t,r=w;if(X(Xo(e)),h){let n=ht;qr(new Set);try{Hr.includes(e)&&Tn(),Hr.push(e),Ur(e),t=dr(e)}finally{X(r),qr(n),Hr.pop()}}else try{Ur(e),t=dr(e)}finally{X(r)}return t}function Gr(e){var t=jr(e),r=(ot||e.f&256)&&e.deps!==null?4096:1024;ce(e,r),e.equals(t)||(e.v=t,e.wv=Ut())}function Kt(e){Ur(e),gt(e,0),ce(e,16384),e.v=e.children=e.deps=e.ctx=e.reactions=null}function Jo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ct(e,t,r,n=!0){var i=(e&64)!==0,o=w;if(h)for(;o!==null&&o.f&262144;)o=o.parent;var s={ctx:I,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|2048,first:null,fn:t,last:null,next:null,parent:i?null:o,prev:null,teardown:null,transitions:null,wv:0};if(h&&(s.component_function=we),r){var a=rt;try{kt(!0),It(s),s.f|=32768}catch(l){throw ae(s),l}finally{kt(a)}}else t!==null&&St(s);var c=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!c&&!i&&n&&(o!==null&&Jo(s,o),O!==null&&O.f&2)){var u=O;(u.children??=[]).push(s)}return s}function Zr(e){let t=Ct(64,e,!0);return()=>{ae(t)}}function Zn(e){let t=Ct(64,e,!0);return(r={})=>new Promise(n=>{r.outro?ye(t,()=>{ae(t),n(void 0)}):(ae(t),n(void 0))})}function Ze(e){return Ct(4,e,!1)}function Oe(e){return Ct(8,e,!0)}function J(e,t=[],r=D){let n=t.map(r),i=()=>e(...n.map(d));return h&&ee(i,"name",{value:"{expression}"}),pe(i)}function pe(e,t=0){return Ct(24|t,e,!0)}function G(e,t=!0){return Ct(40,e,!0,t)}function Xr(e){var t=e.teardown;if(t!==null){let r=rn,n=O;Wr(!0),_e(null);try{t.call(null)}finally{Wr(r),_e(n)}}}function Jr(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var r=0;r<t.length;r+=1)Kt(t[r])}}function Qr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;ae(r,t),r=n}}function Xn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&32||ae(t),t=r}}function ae(e,t=!0){var r=!1;if((t||e.f&524288)&&e.nodes_start!==null){for(var n=e.nodes_start,i=e.nodes_end;n!==null;){var o=n===i?null:ue(n);n.remove(),n=o}r=!0}Qr(e,t&&!r),Jr(e),gt(e,0),ce(e,16384);var s=e.transitions;if(s!==null)for(let c of s)c.stop();Xr(e);var a=e.parent;a!==null&&a.first!==null&&en(e),h&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function en(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ye(e,t){var r=[];mr(e,r,!0),tn(r,()=>{ae(e),t&&t()})}function tn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function mr(e,t,r){if(!(e.f&8192)){if(e.f^=8192,e.transitions!==null)for(let s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&65536)!==0||(n.f&32)!==0;mr(n,t,o?r:!1),n=i}}}function Ve(e){Jn(e,!0)}function Jn(e,t){if(e.f&8192){e.f^=8192,e.f&1024||(e.f^=1024),lt(e)&&(ce(e,2048),St(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;Jn(r,i?t:!1),r=n}if(e.transitions!==null)for(let o of e.transitions)(o.is_global||t)&&o.in()}}var vr=!1,eo=!1,nn=[],Qn=[];function to(){vr=!1;let e=nn.slice();nn=[],Vt(e)}function Qo(){eo=!1;let e=Qn.slice();Qn=[],Vt(e)}function Le(e){vr||(vr=!0,queueMicrotask(to)),nn.push(e)}function ro(){vr&&to(),eo&&Qo()}var fo=0,ri=1,no=new WeakSet,hr=!1,gr=fo,Xt=!1,Ot=null,rt=!1,rn=!1;function kt(e){rt=e}function Wr(e){rn=e}var xt=[],Pt=0,Jt=[],O=null,Ge=!1;function _e(e){O=e}var w=null;function X(e){w=e}var at=null;var $e=null,Ee=0,Ue=null;function Ln(e){Ue=e}var co=1,br=0,ot=!1,Ht=null;var I=null;function yr(e){I=e}var we=null;function $r(e){we=e}function Ut(){return++co}function nt(){return!st||I!==null&&I.l===null}function lt(e){var t=e.f;if(t&2048)return!0;if(t&4096){var r=e.deps,n=(t&256)!==0;if(r!==null){var i,o,s=(t&512)!==0,a=n&&w!==null&&!ot,c=r.length;if(s||a){for(i=0;i<c;i++)o=r[i],(s||!o?.reactions?.includes(e))&&(o.reactions??=[]).push(e);s&&(e.f^=512)}for(i=0;i<c;i++)if(o=r[i],lt(o)&&Gr(o),o.wv>e.wv)return!0}(!n||w!==null&&!ot)&&ce(e,1024)}return!1}function oo(e,t){for(var r=t;r!==null;){if(r.f&128)try{r.fn(e);return}catch{r.f^=128}r=r.parent}throw hr=!1,e}function io(e){return(e.f&16384)===0&&(e.parent===null||(e.parent.f&128)===0)}function Lt(e,t,r,n){if(hr){if(r===null&&(hr=!1),io(t))throw e;return}if(r!==null&&(hr=!0),!h||n===null||!(e instanceof Error)||no.has(e)){oo(e,t);return}no.add(e);let i=[],o=t.fn?.name;o&&i.push(o);let s=n;for(;s!==null;){if(h){var a=s.function?.[fe];if(a){let l=a.split("/").pop();i.push(l)}}s=s.p}let c=/Firefox/.test(navigator.userAgent)?" ":" ";ee(e,"message",{value:e.message+`
26
+ ${i.map(l=>`
27
+ ${c}in ${l}`).join("")}
28
+ `}),ee(e,"component_stack",{value:i});let u=e.stack;if(u){let l=u.split(`
29
+ `),f=[];for(let p=0;p<l.length;p++){let _=l[p];_.includes("svelte/src/internal")||f.push(_)}ee(e,"stack",{value:f.join(`
30
+ `)})}if(oo(e,t),io(t))throw e}function uo(e,t,r=0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];o.f&2?uo(o,t,r+1):t===o&&(r===0?ce(o,2048):o.f&1024&&ce(o,4096),St(o))}}function dr(e){var t=$e,r=Ee,n=Ue,i=O,o=ot,s=at,a=I,c=Ge,u=e.f;$e=null,Ee=0,Ue=null,O=u&96?null:e,ot=!rt&&(u&256)!==0,at=null,I=e.ctx,Ge=!1,br++;try{var l=(0,e.fn)(),f=e.deps;if($e!==null){var p;if(gt(e,Ee),f!==null&&Ee>0)for(f.length=Ee+$e.length,p=0;p<$e.length;p++)f[Ee+p]=$e[p];else e.deps=f=$e;if(!ot)for(p=Ee;p<f.length;p++)(f[p].reactions??=[]).push(e)}else f!==null&&Ee<f.length&&(gt(e,Ee),f.length=Ee);if(nt()&&Ue!==null&&!(e.f&6146))for(p=0;p<Ue.length;p++)uo(Ue[p],e);return i!==null&&br++,l}finally{$e=t,Ee=r,Ue=n,O=i,ot=o,at=s,I=a,Ge=c}}function ni(e,t){let r=t.reactions;if(r!==null){var n=yn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&2&&($e===null||!$e.includes(t))&&(ce(t,4096),t.f&768||(t.f^=512),gt(t,0))}function gt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ni(e,r[n])}function It(e){var t=e.f;if(!(t&16384)){ce(e,1024);var r=w,n=I;if(w=e,h){var i=we;we=e.component_function}try{t&16?Xn(e):Qr(e),Jr(e),Xr(e);var o=dr(e);e.teardown=typeof o=="function"?o:null,e.wv=co;var s=e.deps;if(h&&He&&e.f&2048&&s!==null)for(let c=0;c<s.length;c++){var a=s[c];a.trace_need_increase&&(a.wv=Ut(),a.trace_need_increase=void 0,a.trace_v=void 0)}h&&Jt.push(e)}catch(c){Lt(c,e,r,n||e.ctx)}finally{w=r,h&&(we=i)}}}function so(){console.error("Last ten effects were: ",Jt.slice(-10).map(e=>e.fn)),Jt=[]}function _o(){if(Pt>1e3){Pt=0;try{kn()}catch(e){if(h&&ee(e,"stack",{value:""}),Ot!==null)if(h)try{Lt(e,Ot,null,null)}catch(t){throw so(),t}else Lt(e,Ot,null,null);else throw h&&so(),e}}Pt++}function po(e){var t=e.length;if(t!==0){_o();var r=rt;rt=!0;try{for(var n=0;n<t;n++){var i=e[n];i.f&1024||(i.f^=1024);var o=[];mo(i,o),oi(o)}}finally{rt=r}}}function oi(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&24576))try{lt(n)&&(It(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?en(n):n.fn=null))}catch(i){Lt(i,n,null,n.ctx)}}}function ii(){if(Xt=!1,Pt>1001)return;let e=xt;xt=[],po(e),Xt||(Pt=0,Ot=null,h&&(Jt=[]))}function St(e){gr===fo&&(Xt||(Xt=!0,queueMicrotask(ii))),Ot=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024))return;t.f^=1024}}xt.push(t)}function mo(e,t){var r=e.first,n=[];e:for(;r!==null;){var i=r.f,o=(i&32)!==0,s=o&&(i&1024)!==0,a=r.next;if(!s&&!(i&8192))if(i&8){if(o)r.f^=1024;else try{lt(r)&&It(r)}catch(f){Lt(f,r,null,r.ctx)}var c=r.first;if(c!==null){r=c;continue}}else i&4&&n.push(r);if(a===null){let f=r.parent;for(;f!==null;){if(e===f)break e;var u=f.next;if(u!==null){r=u;continue e}f=f.parent}}r=a}for(var l=0;l<n.length;l++)c=n[l],t.push(c),mo(c,t)}function C(e){var t=gr,r=xt;try{_o();let i=[];gr=ri,xt=i,Xt=!1,po(r);var n=e?.();return ro(),(xt.length>0||i.length>0)&&C(),Pt=0,Ot=null,h&&(Jt=[]),n}finally{gr=t,xt=r}}function d(e){var t=e.f,r=(t&2)!==0;if(r&&t&16384){var n=jr(e);return Kt(e),n}if(Ht!==null&&Ht.add(e),O!==null&&!Ge){at!==null&&at.includes(e)&&Dn();var i=O.deps;e.rv<br&&(e.rv=br,$e===null&&i!==null&&i[Ee]===e?Ee++:$e===null?$e=[e]:$e.push(e))}else if(r&&e.deps===null)for(var o=e,s=o.parent,a=o;s!==null;)if(s.f&2){var c=s;a=c,s=c.parent}else{var u=s;u.deriveds?.includes(a)||(u.deriveds??=[]).push(a);break}if(r&&(o=e,lt(o)&&Gr(o)),h&&He&&Yt!==null&&O!==null&&Yt.reaction===O){if(e.debug)e.debug();else if(e.created){var l=Yt.entries.get(e);l===void 0&&(l={read:[]},Yt.entries.set(e,l)),l.read.push(Qe("TracedAt"))}}return e.v}function K(e){var t=Ge;try{return Ge=!0,e()}finally{Ge=t}}var si=-7169;function ce(e,t){e.f=e.f&si|t}function ne(e,t=!1,r){I={p:I,c:null,e:null,m:!1,s:e,x:null,l:null},st&&!t&&(I.l={s:null,u:null,r1:[],r2:U(!1)}),h&&(I.function=r,we=r)}function oe(e){let t=I;if(t!==null){e!==void 0&&(t.x=e);let s=t.e;if(s!==null){var r=w,n=O;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];X(o.effect),_e(o.reaction),Ze(o.fn)}}finally{X(r),_e(n)}}I=t.p,h&&(we=t.p?.function??null),t.m=!0}return e||{}}if(h){let e=function(t){if(!(t in globalThis)){let r;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(r!==void 0)return r;Sn(t)},set:n=>{r=n}})}};e("$state"),e("$effect"),e("$derived"),e("$inspect"),e("$props"),e("$bindable")}var vo=new Map;function ho(e,t){var r=vo.get(e);r||(r=new Set,vo.set(e,r)),r.add(t)}var go=new Set,on=new Set;function Qt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var c=i.indexOf(a);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(s=c)}if(o=i[s]||e.target,o!==t){ee(e,"currentTarget",{configurable:!0,get(){return o||r}});var l=O,f=w;_e(null),X(null);try{for(var p,_=[];o!==null;){var m=o.assignedSlot||o.parentNode||o.host||null;try{var v=o["__"+n];if(v!==void 0&&!o.disabled)if(Be(v)){var[x,...k]=v;x.apply(o,[e,...k])}else v.call(o,e)}catch(b){p?_.push(b):p=b}if(e.cancelBubble||m===t||m===null)break;o=m}if(p){for(let b of _)queueMicrotask(()=>{throw b});throw p}}finally{e.__root=t,delete e.currentTarget,_e(l),X(f)}}}var ci;function xo(){ci=void 0}function er(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function de(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function q(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,o=!e.startsWith("<!>");return()=>{if(g)return de(y,null),y;i===void 0&&(i=er(o?e:"<!>"+e),r||(i=z(i)));var s=n?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=z(s),c=s.lastChild;de(a,c)}else de(s,s);return s}}function bt(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&1)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(g)return de(y,null),y;if(!s){var a=er(o),c=z(a);if(i)for(s=document.createDocumentFragment();z(c);)s.appendChild(z(c));else s=z(c)}var u=s.cloneNode(!0);if(i){var l=z(u),f=u.lastChild;de(l,f)}else de(u,u);return u}}function tr(e=""){if(!g){var t=be(e+"");return de(t,t),t}var r=y;return r.nodeType!==3&&(r.before(r=be()),V(r)),de(r,r),r}function Q(){if(g)return de(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=be();return e.append(t,r),de(t,r),e}function $(e,t){if(g){w.nodes_end=y,re();return}e!==null&&e.before(t)}var sn=!0;function Me(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r==null?"":r+"")}function wr(e,t){return yo(e,t)}function ln(e,t){pr(),t.intro=t.intro??!1;let r=t.target,n=g,i=y;try{for(var o=z(r);o&&(o.nodeType!==8||o.data!==Et);)o=ue(o);if(!o)throw it;xe(!0),V(o),re();let s=yo(e,{...t,anchor:o});if(y===null||y.nodeType!==8||y.data!==dt)throw Nt(),it;return xe(!1),s}catch(s){if(s===it)return t.recover===!1&&An(),pr(),Gt(r),xe(!1),wr(e,t);throw s}finally{xe(n),V(i),xo()}}var Mt=new Map;function yo(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){pr();var a=new Set,c=f=>{for(var p=0;p<f.length;p++){var _=f[p];if(!a.has(_)){a.add(_);var m=xn(_);t.addEventListener(_,Qt,{passive:m});var v=Mt.get(_);v===void 0?(document.addEventListener(_,Qt,{passive:m}),Mt.set(_,1)):Mt.set(_,v+1)}}};c(qt(go)),on.add(c);var u=void 0,l=Zn(()=>{var f=r??t.appendChild(be());return G(()=>{if(o){ne({});var p=I;p.c=o}i&&(n.$$events=i),g&&de(f,null),sn=s,u=e(f,n)||{},sn=!0,g&&(w.nodes_end=y),o&&oe()}),()=>{for(var p of a){t.removeEventListener(p,Qt);var _=Mt.get(p);--_===0?(document.removeEventListener(p,Qt),Mt.delete(p)):Mt.set(p,_)}on.delete(c),f!==r&&f.parentNode?.removeChild(f)}});return an.set(u,l),u}var an=new WeakMap;function fn(e,t){let r=an.get(e);return r?(an.delete(e),r(t)):(h&&Fn(),Promise.resolve())}var cn=0,Er=1,un=2;function rr(e,t,r,n,i){g&&re();var o=e,s=nt(),a=I,c=h?I?.function:null,u=Y,l,f,p,_=(s?U:je)(void 0),m=(s?U:je)(void 0),v=!1;function x(b,E){v=!0,E&&(X(k),_e(k),yr(a),h&&$r(c));try{b===cn&&r&&(l?Ve(l):l=G(()=>r(o))),b===Er&&n&&(f?Ve(f):f=G(()=>n(o,_))),b===un&&i&&(p?Ve(p):p=G(()=>i(o,m))),b!==cn&&l&&ye(l,()=>l=null),b!==Er&&f&&ye(f,()=>f=null),b!==un&&p&&ye(p,()=>p=null)}finally{E&&(h&&$r(null),yr(null),_e(null),X(null),C())}}var k=pe(()=>{if(u!==(u=t())){if(wn(u)){var b=u;v=!1,b.then(E=>{b===u&&(tt(_,E),x(Er,!0))},E=>{if(b===u&&(tt(m,E),x(un,!0),!i))throw m.v}),g?r&&(l=G(()=>r(o))):Le(()=>{v||x(cn,!0)})}else tt(_,u),x(Er,!1);return()=>u=Y}});g&&(o=y)}function W(e,t,r=!1){g&&re();var n=e,i=null,o=null,s=Y,a=r?65536:0,c=!1;let u=(f,p=!0)=>{c=!0,l(p,f)},l=(f,p)=>{if(s===(s=f))return;let _=!1;if(g){let m=n.data===pt;!!s===m&&(n=Rt(),V(n),xe(!1),_=!0)}s?(i?Ve(i):p&&(i=G(()=>p(n))),o&&ye(o,()=>{o=null})):(o?Ve(o):p&&(o=G(()=>p(n))),i&&ye(i,()=>{i=null})),_&&xe(!0)};pe(()=>{c=!1,t(u),c||l(null,null)},a),g&&(n=y)}var nr=null;function Te(e,t){return t}function mi(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)mr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var c=r.parentNode;Gt(c),c.append(r),n.clear(),ut(e,t[0].prev,t[o-1].next)}tn(i,()=>{for(var u=0;u<o;u++){var l=t[u];a||(n.delete(l.k),ut(e,l.prev,l.next)),ae(l.e,!a)}})}function ke(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},c=(t&4)!==0;if(c){var u=e;s=g?V(z(u)):u.appendChild(be())}g&&re();var l=null,f=!1,p=Wt(()=>{var _=r();return Be(_)?_:_==null?[]:qt(_)});pe(()=>{var _=d(p),m=_.length;if(f&&m===0)return;f=m===0;let v=!1;if(g){var x=s.data===pt;x!==(m===0)&&(s=Rt(),V(s),xe(!1),v=!0)}if(g){for(var k=null,b,E=0;E<m;E++){if(y.nodeType===8&&y.data===dt){s=y,v=!0,xe(!1);break}var L=_[E],T=n(L,E);b=Eo(y,a,k,null,L,T,E,i,t,r),a.items.set(T,b),k=b}m>0&&V(Rt())}if(!g){var S=O;vi(_,a,s,i,t,(S.f&8192)!==0,n,r)}o!==null&&(m===0?l?Ve(l):l=G(()=>o(s)):l!==null&&ye(l,()=>{l=null})),v&&xe(!0),d(p)}),g&&(s=y)}function vi(e,t,r,n,i,o,s,a){var c=(i&8)!==0,u=(i&3)!==0,l=e.length,f=t.items,p=t.first,_=p,m,v=null,x,k=[],b=[],E,L,T,S;if(c)for(S=0;S<l;S+=1)E=e[S],L=s(E,S),T=f.get(L),T!==void 0&&(T.a?.measure(),(x??=new Set).add(T));for(S=0;S<l;S+=1){if(E=e[S],L=s(E,S),T=f.get(L),T===void 0){var N=_?_.e.nodes_start:r;v=Eo(N,t,v,v===null?t.first:v.next,E,L,S,n,i,a),f.set(L,v),k=[],b=[],_=v.next;continue}if(u&&hi(T,E,S,i),T.e.f&8192&&(Ve(T.e),c&&(T.a?.unfix(),(x??=new Set).delete(T))),T!==_){if(m!==void 0&&m.has(T)){if(k.length<b.length){var B=b[0],M;v=B.prev;var Fe=k[0],Je=k[k.length-1];for(M=0;M<k.length;M+=1)$o(k[M],B,r);for(M=0;M<b.length;M+=1)m.delete(b[M]);ut(t,Fe.prev,Je.next),ut(t,v,Fe),ut(t,Je,B),_=B,v=Je,S-=1,k=[],b=[]}else m.delete(T),$o(T,_,r),ut(t,T.prev,T.next),ut(t,T,v===null?t.first:v.next),ut(t,v,T),v=T;continue}for(k=[],b=[];_!==null&&_.k!==L;)(o||!(_.e.f&8192))&&(m??=new Set).add(_),b.push(_),_=_.next;if(_===null)continue;T=_}k.push(T),v=T,_=T.next}if(_!==null||m!==void 0){for(var ie=m===void 0?[]:qt(m);_!==null;)(o||!(_.e.f&8192))&&ie.push(_),_=_.next;var H=ie.length;if(H>0){var le=i&4&&l===0?r:null;if(c){for(S=0;S<H;S+=1)ie[S].a?.measure();for(S=0;S<H;S+=1)ie[S].a?.fix()}mi(t,ie,le,f)}}c&&Le(()=>{if(x!==void 0)for(T of x)T.a?.apply()}),w.first=t.first&&t.first.e,w.last=v&&v.e}function hi(e,t,r,n){n&1&&tt(e.v,t),n&2?tt(e.i,r):e.i=r}function Eo(e,t,r,n,i,o,s,a,c,u){var l=nr,f=(c&1)!==0,p=(c&16)===0,_=f?p?je(i):U(i):i,m=c&2?U(s):s;h&&f&&(_.debug=()=>{var x=typeof m=="number"?s:m.v;u()[x]});var v={i:m,v:_,k:o,a:null,e:null,prev:r,next:n};nr=v;try{return v.e=G(()=>a(e,_,m,u),g),v.e.prev=r&&r.e,v.e.next=n&&n.e,r===null?t.first=v:(r.next=v,r.e.next=v.e),n!==null&&(n.prev=v,n.e.prev=v.e),v}finally{nr=l}}function $o(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=ue(o);i.before(o),o=s}}function ut(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function me(e,t){Le(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){let i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i),h&&ho(t.hash,i)}})}function ko(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ko(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ao(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ko(e))&&(n&&(n+=" "),n+=t);return n}function Tr(e){return typeof e=="object"?Ao(e):e??""}function A(e,t,r,n){var i=e.__attributes??={};if(g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||$i(e,t,r??"");return}i[t]!==(i[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[En]=r),r==null?e.removeAttribute(t):typeof r!="string"&&yi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var Io=new Map;function yi(e){var t=Io.get(e.nodeName);if(t)return t;Io.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Pr(n);for(var o in r)r[o].set&&t.push(o);n=mt(n)}return t}function $i(e,t,r){h&&(t==="srcset"&&wi(e,r)||dn(e.getAttribute(t)??"",r)||Mn(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function dn(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function So(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function wi(e,t){var r=So(e.srcset),n=So(t);return n.length===r.length&&n.every(([i,o],s)=>o===r[s][1]&&(dn(r[s][0],i)||dn(i,r[s][0])))}function or(e,t,r){var n=e.__className,i=Ei(t,r);g&&e.className===i?e.__className=i:(n!==i||g&&e.className!==i)&&(t==null&&!r?e.removeAttribute("class"):e.className=i,e.__className=i)}function Ei(e,t){return(e??"")+(t?" "+t:"")}function ir(e,t,r,n){var i=e.__styles??={};i[t]!==r&&(i[t]=r,r==null?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":""))}var Ar=!1,Lp=Symbol();function mn(e){var t=Ar;try{return Ar=!1,[e(),Ar]}finally{Ar=t}}function Ro(e){for(var t=w,r=w;t!==null&&!(t.f&96);)t=t.parent;try{return X(t),e()}finally{X(r)}}function P(e,t,r,n){var i=(r&1)!==0,o=!st||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,c=!1,u;s?[u,c]=mn(()=>e[t]):u=e[t];var l=Se in e||ar in e,f=s&&(Ie(e,t)?.set??(l&&t in e&&(N=>e[t]=N)))||void 0,p=n,_=!0,m=!1,v=()=>(m=!0,_&&(_=!1,a?p=K(n):p=n),p);u===void 0&&n!==void 0&&(f&&o&&In(t),u=v(),f&&f(u));var x;if(o)x=()=>{var N=e[t];return N===void 0?v():(_=!0,m=!1,N)};else{var k=Ro(()=>(i?D:Wt)(()=>e[t]));k.f|=131072,x=()=>{var N=d(k);return N!==void 0&&(p=void 0),N===void 0?p:N}}if(!(r&4))return x;if(f){var b=e.$$legacy;return function(N,B){return arguments.length>0?((!o||!B||b||c)&&f(B?x():N),N):x()}}var E=!1,L=!1,T=je(u),S=Ro(()=>D(()=>{var N=x(),B=d(T);return E?(E=!1,L=!0,B):(L=!1,T.v=N)}));return i||(S.equals=Tt),function(N,B){if(Ht!==null&&(E=L,x(),d(T)),arguments.length>0){let M=B?d(S):o&&s?ft(N):N;return S.equals(M)||(E=!0,te(T,M),m&&p!==void 0&&(p=M),K(()=>d(S))),N}return d(S)}}function Do(e){return new vn(e)}var vn=class{#t;#e;constructor(t){var r=new Map,n=(o,s)=>{var a=je(s);return r.set(o,a),a};let i=new Proxy({...t.props||{},$$events:{}},{get(o,s){return d(r.get(s)??n(s,Reflect.get(o,s)))},has(o,s){return s===ar?!0:(d(r.get(s)??n(s,Reflect.get(o,s))),Reflect.has(o,s))},set(o,s,a){return te(r.get(s)??n(s,a),a),Reflect.set(o,s,a)}});this.#e=(t.hydrate?ln:wr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&C(),this.#t=i.$$events;for(let o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||ee(this,o,{get(){return this.#e[o]},set(s){this.#e[o]=s},enumerable:!0});this.#e.$set=o=>{Object.assign(i,o)},this.#e.$destroy=()=>{fn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];let n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}};var Co;typeof HTMLElement=="function"&&(Co=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){let n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{let o=document.createElement("slot");n!=="default"&&(o.name=n),$(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},r=Wi(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(let n of this.attributes){let i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ir(i,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Do({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Oe(()=>{this.$$r=!0;for(let n of Bt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let i=Ir(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(let n in this.$$l)for(let i of this.$$l[n]){let o=this.$$c.$on(n,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ir(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Bt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ir(e,t,r,n){let i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Wi(e){let t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ve(e,t,r,n,i,o){let s=class extends Co{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Bt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Bt(t).forEach(a=>{ee(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){c=Ir(a,c,t),this.$$d[a]=c;var u=this.$$c;if(u){var l=Ie(u,a)?.get;l?u[a]=c:u.$set({[a]:c})}}})}),n.forEach(a=>{ee(s.prototype,a,{get(){return this.$$c?.[a]}})}),o&&(s=o(s)),e.element=s,s}function sr(...e){return function(t){return _t.DocItem(t)&&e.includes(t.label)}}var wt={ListItem:sr("list_item"),PictureItem:sr("picture"),SectionHeaderItem:sr("section_header"),TableItem:sr("document_index","table"),TextItem:sr("caption","checkbox_selected","checkbox_unselected","code","footnote","formula","page_footer","page_header","paragraph","reference","text","title")},_t={Document(e){return"schema_name"in e&&e.schema_name==="DoclingDocument"},NodeItem(e){return"self_ref"in e},GroupItem(e){return _t.NodeItem(e)&&(e.self_ref.startsWith("#/groups/")||e.self_ref==="#/body")},DocItem(e){return _t.NodeItem(e)&&!_t.GroupItem(e)},...wt};function*Oo(e,t={}){e&&(yield*r(t.root??e.body));function*r(n,i=0){if((!_t.GroupItem(n)||t.withGroups)&&(_t.DocItem(n)?(t.pageNo===void 0||n.prov?.some(o=>o.page_no===t.pageNo))&&(yield[n,i]):yield[n,i]),!(_t.PictureItem(n)&&!t.traversePictures))for(let o of n.children??[]){let s=Zi(e,o);_t.NodeItem(s)&&(yield*r(s,i+1))}}}function Zi(e,t){return t.$ref.split("/").slice(1).reduce((n,i)=>n[i],e)}var Xi=bt('<rect class="svelte-1hx7iig"></rect>'),Ji=bt('<image class="backdrop svelte-1hx7iig"></image><clipPath></clipPath>',1),Qi=bt('<rect vector-effect="non-scaling-stroke" class="svelte-1hx7iig"></rect>'),es=q('<div part="page" class="page svelte-1hx7iig"><svg class="svelte-1hx7iig"><!><image id="image"></image><!></svg> <header part="page-number" class="svelte-1hx7iig"> </header></div>'),ts={hash:"svelte-1hx7iig",code:"svg.svelte-1hx7iig {max-width:100%;}.page.svelte-1hx7iig {position:relative;width:fit-content;max-width:100%;display:flex;flex-direction:column;gap:1px;}.backdrop.svelte-1hx7iig {opacity:0.3;}header.svelte-1hx7iig {position:absolute;top:0;width:fit-content;padding:0 0.25rem;font-size:0.75rem;line-height:1rem;background-color:white;color:rgb(120, 120, 120);}rect.svelte-1hx7iig {fill-opacity:0.0001; /* To activate hover. */stroke:grey;stroke-width:1px;stroke-dasharray:1;cursor:pointer;}rect.svelte-1hx7iig:hover {fill-opacity:0.1;stroke:black;}rect.svelte-1hx7iig:target {stroke:blue;stroke-width:3px;stroke-dasharray:none;}"};function Sr(e,t){ne(t,!0),me(e,ts);let r=P(t,"page",7),n=P(t,"items",23,()=>[]),i=P(t,"backdrop",7,!1),{page_no:o,size:s}=r(),{width:a=1,height:c=1}=s,u=`pages/${o}`;var l=Q(),f=j(l);{var p=m=>{var v=es();A(v,"id",u);var x=F(v);A(x,"viewBox",`0 0 ${a??""} ${c??""}`);var k=F(x);{var b=N=>{var B=Ji(),M=j(B);A(M,"width",a),A(M,"height",c);var Fe=We(M);ke(Fe,21,n,Te,(Je,ie)=>{var H=Q();let le=D(()=>d(ie).prov?.find(he=>he.page_no===r().page_no));var Ae=j(H);{var Ft=he=>{var qe=Xi();let Ye=D(()=>{let{l:Mo,r:Fo,t:qo,b:Bo}=d(le).bbox;return{l:Mo,r:Fo,t:qo,b:Bo}});J(()=>{A(qe,"x",d(Ye).l),A(qe,"y",c-d(Ye).t),A(qe,"width",d(Ye).r-d(Ye).l),A(qe,"height",d(Ye).t-d(Ye).b)}),$(he,qe)};W(Ae,he=>{d(le)&&he(Ft)})}$(Je,H)}),R(Fe),J(()=>{A(M,"href",r().image.uri),A(Fe,"id",`clip-page-${r().page_no??""}`)}),$(N,B)};W(k,N=>{i()&&N(b)})}var E=We(k);A(E,"width",a),A(E,"height",c);var L=We(E);ke(L,17,n,Te,(N,B)=>{var M=Q();let Fe=D(()=>d(B).prov?.find(H=>H.page_no===r().page_no));var Je=j(M);{var ie=H=>{var le=Qi();let Ae=D(()=>{let{l:Ft,r:he,t:qe,b:Ye}=d(Fe).bbox;return{l:Ft,r:he,t:qe,b:Ye}});J(()=>{A(le,"x",d(Ae).l),A(le,"y",c-d(Ae).t),A(le,"width",d(Ae).r-d(Ae).l),A(le,"height",d(Ae).t-d(Ae).b)}),$(H,le)};W(Je,H=>{d(Fe)&&H(ie)})}$(N,M)}),R(x);var T=We(x,2),S=F(T,!0);R(T),R(v),J(()=>{A(x,"width",r().image.size.width),A(E,"href",r().image.uri),A(E,"clip-path",`url(#clip-page-${r().page_no??""})`),A(T,"title",`Page ${r().page_no??""}`),Me(S,r().page_no)}),$(m,v)},_=m=>{var v=tr("Invalid page image.");$(m,v)};W(f,m=>{r().image?m(p):m(_,!1)})}return $(e,l),oe({get page(){return r()},set page(m){r(m),C()},get items(){return n()},set items(m=[]){n(m),C()},get backdrop(){return i()},set backdrop(m=!1){i(m),C()}})}customElements.define("docling-img-page",ve(Sr,{page:{},items:{},backdrop:{}},[],[],!0));function rs(e){return Object.values(e?.pages??{}).sort((t,r)=>t.page_no-r.page_no)}function Nr(e,t={}){let r=rs(e),n=Array.isArray(t.items)?t.items:Array.from(Oo(e)).map(([a])=>a),i=n,o=new Set;if(typeof t.items=="string"){let a=new Set(t.items.split(",").map(c=>c.trim()));i=[];for(let c of n){let u=c.self_ref.split("/"),l=[];for(let f=2;f<u.length;f++)l.push(u.slice(0,f).join("/"));c.prov?.forEach(f=>l.push(`#/pages/${f.page_no}`)),l.some(f=>a.has(f))?i.push(c):c.prov?.forEach(f=>o.add(f.page_no))}}let s={};for(let a of r)s[a.page_no]=[];for(let a of i)for(let c of a.prov??[])s[c.page_no].push(a);return r.map(a=>({page:a,items:s[a.page_no],trimmed:o.has(a.page_no)}))}var ns=q('<div part="pages" class="svelte-11vltm9"></div>'),os=q("<p>Document load error</p>"),is=q("<p>...</p>"),ss={hash:"svelte-11vltm9",code:"div.svelte-11vltm9 {width:fit-content;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:2px;}"};function Po(e,t){ne(t,!0),me(e,ss);let r=P(t,"src",7,""),n=P(t,"items",7),i=P(t,"trim",7),o=P(t,"backdrop",7,!1),s=D(()=>fetch(r()).then(u=>u.json()).then(u=>Nr(u,{items:n()})));var a=Q(),c=j(a);return rr(c,()=>d(s),u=>{var l=is();$(u,l)},(u,l)=>{var f=ns();ke(f,21,()=>d(l),Te,(p,_)=>{var m=Q(),v=j(m);{var x=k=>{let b=D(()=>o()&&d(_).trimmed);Sr(k,{get page(){return d(_).page},get items(){return d(_).items},get backdrop(){return d(b)}})};W(v,k=>{(!i()||d(_).items.length>0)&&k(x)})}$(p,m)}),R(f),$(u,f)},u=>{var l=os();$(u,l)}),$(e,a),oe({get src(){return r()},set src(u=""){r(u),C()},get items(){return n()},set items(u){n(u),C()},get trim(){return i()},set trim(u){i(u),C()},get backdrop(){return o()},set backdrop(u=!1){o(u),C()}})}customElements.define("docling-img",ve(Po,{src:{},items:{},trim:{},backdrop:{}},[],[],!0));var as=bt('<svg class="svelte-8tija3"><image></image></svg>'),ls={hash:"svelte-8tija3",code:"svg.svelte-8tija3 {max-width:100%;border:1px dotted rgb(220, 220, 220);}"};function Rr(e,t){ne(t,!0),me(e,ls);let r=P(t,"page",7),n=P(t,"item",7),i=P(t,"id",7),o=D(()=>n().prov?.find(l=>l.page_no===r().page_no));var s=Q(),a=j(s);{var c=l=>{var f=as();let p=D(()=>{let{width:v=1,height:x=1}=r().size;return{width:v,height:x}}),_=D(()=>{let{l:v,r:x,t:k,b}=d(o).bbox;return{l:v,r:x,t:k,b}});var m=F(f);R(f),J(()=>{A(f,"id",i()),A(f,"width",(d(_).r-d(_).l)*((r().image.size.width??1)/d(p).width)),A(f,"viewBox",`${d(_).l??""} ${d(p).height-d(_).t} ${d(_).r-d(_).l} ${d(_).t-d(_).b}`),A(m,"href",r().image.uri),A(m,"width",d(p).width),A(m,"height",d(p).height)}),$(l,f)},u=l=>{var f=tr("Invalid provenance.");$(l,f)};W(a,l=>{r().image&&d(o)?l(c):l(u,!1)})}return $(e,s),oe({get page(){return r()},set page(l){r(l),C()},get item(){return n()},set item(l){n(l),C()},get id(){return i()},set id(l){i(l),C()}})}ve(Rr,{page:{},item:{},id:{}},[],[],!0);var fs=q("<td> </td>"),cs=q("<tr></tr>"),us=q('<div class="container svelte-1c6yx17"><table class="svelte-1c6yx17"><tbody></tbody></table></div>'),_s={hash:"svelte-1c6yx17",code:".container.svelte-1c6yx17 {position:relative;min-width:0;max-width:100%;min-height:0;overflow:auto;}table.svelte-1c6yx17 {border-collapse:collapse;}td.svelte-1c6yx17 {padding:0 0.5rem;background-color:var(--cds-layer);border:1px solid rgb(220, 220, 220);color:black;font-size:0.75rem;line-height:1.5rem;text-decoration:none;word-break:normal;text-align:left;}td.header.svelte-1c6yx17 {font-weight:bold;}td.svelte-1c6yx17:hover {filter:brightness(95%);}td.svelte-1c6yx17:target {outline:3px solid blue;}"};function Dr(e,t){ne(t,!0),me(e,_s);let r=P(t,"item",7),n=D(()=>function(){let a=new Set;return function(c){let u=a.has([c.start_col_offset_idx,c.start_row_offset_idx].join());if(!u)for(let l=c.start_col_offset_idx;l<c.end_col_offset_idx;l++)for(let f=c.start_row_offset_idx;f<c.end_row_offset_idx;f++)a.add([l,f].join());return u}}());var i=us(),o=F(i),s=F(o);return ke(s,21,()=>r().data.grid,Te,(a,c)=>{var u=cs();ke(u,21,()=>d(c),Te,(l,f)=>{var p=Q(),_=j(p);{var m=v=>{var x=fs();let k=D(()=>`${r().self_ref}/${d(f).start_col_offset_idx}/${d(f).start_row_offset_idx}`.slice(1));var b=F(x,!0);R(x),J(()=>{A(x,"id",d(k)),or(x,Tr(d(f).column_header||d(f).row_header?"header":""),"svelte-1c6yx17"),A(x,"colspan",d(f).col_span),A(x,"rowspan",d(f).row_span),Me(b,d(f).text)}),$(v,x)};W(_,v=>{d(n)(d(f))||v(m)})}$(l,p)}),R(u),$(a,u)}),R(s),R(o),R(i),$(e,i),oe({get item(){return r()},set item(a){r(a),C()}})}ve(Dr,{item:{}},[],[],!0);var ps=q('<p class="svelte-1dgowt9"> </p>'),ds=q('<h2 class="svelte-1dgowt9"> </h2>'),ms=q("<div><span> </span></div>"),vs=q("<div> </div>"),hs=q('<div class="parsed svelte-1dgowt9"><div><!></div></div>'),gs=q('<div part="item" class="item svelte-1dgowt9"><!> <div><!></div></div>'),xs={hash:"svelte-1dgowt9",code:`.item.svelte-1dgowt9 {position:relative;padding:1rem;display:flex;flex-direction:row;align-items:flex-start;gap:2rem;justify-content:space-around;color:black;text-decoration:none;background-color:white;cursor:pointer;}
31
+
32
+ @media (max-width: 40rem) {.item.svelte-1dgowt9 {flex-direction:column;justify-content:flex-start;}
33
+ }.item.svelte-1dgowt9:hover {filter:brightness(95%);}.item.svelte-1dgowt9:target {outline:3px solid blue;}.parsed.svelte-1dgowt9,
34
+ .cropped.svelte-1dgowt9 {flex:1;}.centered.svelte-1dgowt9 {margin:0 auto;}p.svelte-1dgowt9,
35
+ h2.svelte-1dgowt9 {margin:0;}p.svelte-1dgowt9 {font-size:1rem;line-height:1.25rem;word-wrap:break-word;}h2.svelte-1dgowt9 {font-size:1.5rem;line-height:2rem;}`};function Cr(e,t){ne(t,!0),me(e,xs);let r=P(t,"page",7),n=P(t,"item",7),i=D(()=>n().self_ref.slice(1)),o=D(()=>{let p=(r().image?.size.width??1)/(r().size.width??1),_=n().prov??[];return _.length===0?void 0:p*(_.map(m=>m.bbox.r-m.bbox.l).reduce((m,v)=>m+v)/_.length)}),s=D(()=>!wt.PictureItem(n()));var a=gs(),c=F(a);{var u=p=>{var _=hs(),m=F(_),v=F(m);{var x=b=>{var E=ps(),L=F(E,!0);R(E),J(()=>Me(L,n().text)),$(b,E)},k=b=>{var E=Q(),L=j(E);{var T=N=>{var B=ds(),M=F(B,!0);R(B),J(()=>Me(M,n().text)),$(N,B)},S=N=>{var B=Q(),M=j(B);{var Fe=ie=>{var H=ms();ir(H,"display","flex"),ir(H,"gap","0.5rem");var le=F(H),Ae=F(le,!0);R(le),R(H),J(()=>Me(Ae,n().text)),$(ie,H)},Je=ie=>{var H=Q(),le=j(H);{var Ae=he=>{Dr(he,{get item(){return n()}})},Ft=he=>{var qe=vs(),Ye=F(qe,!0);R(qe),J(()=>Me(Ye,n().self_ref)),$(he,qe)};W(le,he=>{wt.TableItem(n())?he(Ae):he(Ft,!1)},!0)}$(ie,H)};W(M,ie=>{wt.ListItem(n())?ie(Fe):ie(Je,!1)},!0)}$(N,B)};W(L,N=>{wt.SectionHeaderItem(n())?N(T):N(S,!1)},!0)}$(b,E)};W(v,b=>{wt.TextItem(n())?b(x):b(k,!1)})}R(m),R(_),J(()=>ir(m,"max-width",`${d(o)??""}px`)),$(p,_)};W(c,p=>{d(s)&&p(u)})}var l=We(c,2),f=F(l);return Rr(f,{get page(){return r()},get item(){return n()}}),R(l),R(a),J(()=>{A(a,"id",d(i)),or(l,`cropped ${(d(s)?"":"centered")??""} svelte-1dgowt9`)}),$(e,a),oe({get page(){return r()},set page(p){r(p),C()},get item(){return n()},set item(p){n(p),C()}})}ve(Cr,{page:{},item:{}},[],[],!0);var bs=q('<div part="part" class="page svelte-16budti"><!> <header part="page-number" class="svelte-16budti"> </header></div>'),ys={hash:"svelte-16budti",code:".page.svelte-16budti {position:relative;max-width:100%;display:flex;flex-direction:column;align-items:stretch;}header.svelte-16budti {position:absolute;top:0;width:fit-content;padding:0 0.25rem;font-size:0.75rem;line-height:1rem;background-color:white;color:rgb(120, 120, 120);}"};function Or(e,t){ne(t,!0),me(e,ys);let r=P(t,"page",7),n=P(t,"items",23,()=>[]),i=D(()=>`pages/${r().page_no}`);var o=bs(),s=F(o);ke(s,17,n,Te,(u,l)=>{Cr(u,{get page(){return r()},get item(){return d(l)}})});var a=We(s,2),c=F(a,!0);return R(a),R(o),J(()=>{A(o,"id",d(i)),A(a,"title",`Page ${r().page_no??""}`),Me(c,r().page_no)}),$(e,o),oe({get page(){return r()},set page(u){r(u),C()},get items(){return n()},set items(u=[]){n(u),C()}})}ve(Or,{page:{},items:{}},[],[],!0);var $s=q('<div part="pages" class="svelte-e02yf"></div>'),ws=q("<p>Document load error</p>"),Es=q("<p>...</p>"),Ts={hash:"svelte-e02yf",code:"div.svelte-e02yf {width:fit-content;max-width:100%;display:flex;flex-direction:column;align-items:stretch;gap:2px;}"};function Lo(e,t){ne(t,!0),me(e,Ts);let r=P(t,"src",7,""),n=P(t,"items",7),i=D(()=>fetch(r()).then(a=>a.json()).then(a=>Nr(a,{items:n()})));var o=Q(),s=j(o);return rr(s,()=>d(i),a=>{var c=Es();$(a,c)},(a,c)=>{var u=$s();ke(u,21,()=>d(c),Te,(l,f)=>{var p=Q(),_=j(p);{var m=v=>{Or(v,{get page(){return d(f).page},get items(){return d(f).items}})};W(_,v=>{d(f).items.length>0&&v(m)})}$(l,p)}),R(u),$(a,u)},a=>{var c=ws();$(a,c)}),$(e,o),oe({get src(){return r()},set src(a=""){r(a),C()},get items(){return n()},set items(a){n(a),C()}})}customElements.define("docling-list",ve(Lo,{src:{},items:{}},[],[],!0));
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@docling/docling-components",
3
+ "version": "0.0.2",
4
+ "description": "Web components for displaying Docling output.",
5
+ "main": "./dist/index.js",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "build": "svelteup",
11
+ "format": "prettier --write --plugin-search-dir=. .",
12
+ "lint": "npm run lint-code ; npm run lint-styles",
13
+ "lint:fix": "npm run lint-code -- --fix ; npm run lint-styles -- --fix",
14
+ "lint-code": "eslint .",
15
+ "lint-styles": "stylelint --ignore-path .gitignore '**/*.{css,scss,sass}'"
16
+ },
17
+ "keywords": [
18
+ "html",
19
+ "markdown",
20
+ "pdf",
21
+ "ai",
22
+ "convert",
23
+ "xlsx",
24
+ "pdf-converter",
25
+ "docx",
26
+ "documents",
27
+ "pptx",
28
+ "pdf-to-text",
29
+ "tables",
30
+ "document-parser",
31
+ "pdf-to-json",
32
+ "document-parsing"
33
+ ],
34
+ "contributors": [
35
+ "Cesar Berrospi Ramis <ceb@zurich.ibm.com>",
36
+ "Valery Weber <vwe@zurich.ibm.com>",
37
+ "Peter Staar <taa@zurich.ibm.com>",
38
+ "Christoph Auer <cau@zurich.ibm.com>",
39
+ "Tiago Santana <tiago.santana@ibm.com>",
40
+ "Michele Dolfi <dol@zurich.ibm.com>",
41
+ "Kasper Dinkla <dkl@zurich.ibm.com>",
42
+ "Rafael Teixeira de Lima <rtdl@ibm.com>",
43
+ "Panos Vagenas <pva@zurich.ibm.com>"
44
+ ],
45
+ "license": "MIT",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/DS4SD/docling-ts.git"
49
+ },
50
+ "bugs": {
51
+ "url": "https://github.com/DS4SD/docling-ts/issues"
52
+ },
53
+ "homepage": "https://github.com/DS4SD/docling-ts/tree/main/docling-components",
54
+ "dependencies": {
55
+ "@docling/docling-core": "^0.0.2",
56
+ "svelte": "^5.2.0"
57
+ },
58
+ "devDependencies": {
59
+ "@eslint/js": "^9.14.0",
60
+ "eslint": "^9.14.0",
61
+ "eslint-config-prettier": "^10.0.1",
62
+ "eslint-plugin-prettier": "^5.2.3",
63
+ "eslint-plugin-svelte": "^2.46.0",
64
+ "globals": "^15.12.0",
65
+ "prettier": "^3.4.2",
66
+ "stylelint": "^16.14.1",
67
+ "svelte-eslint-parser": "^0.43.0",
68
+ "svelteup": "^4.0.1",
69
+ "typescript-eslint": "^8.22.0"
70
+ }
71
+ }