@htmlbricks/hb-table 0.65.18 → 0.65.19

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/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(Mr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Tr=1,Cr=2,Or=4,Qo=8,en=16,tn=1,an=4,rn=8,on=16,nn=1,ln=2,Ar="[",Ra="[!",ir="]",fa={},qe=Symbol(),sn="http://www.w3.org/1999/xhtml",sr=!1;var Dr=Array.isArray,dn=Array.prototype.indexOf,dr=Array.from,Pa=Object.keys,Fa=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyDescriptors,vn=Object.prototype,pn=Array.prototype,zr=Object.getPrototypeOf,Nr=Object.isExtensible;function cn(e){for(var t=0;t<e.length;t++)e[t]()}function Lr(){var e,t,a=new Promise((r,l)=>{e=r,t=l});return{promise:a,resolve:e,reject:t}}const Ye=2,mr=4,vr=8,Lt=16,It=32,qt=64,Ya=128,Et=512,Ve=1024,ot=2048,Rt=4096,it=8192,Pt=16384,Ba=32768,ga=65536,Ir=1<<17,pr=1<<18,ra=1<<19,bn=1<<20,oa=32768,cr=1<<21,br=1<<22,Vt=1<<23,Ha=Symbol("$state"),Rr=Symbol("legacy props"),fn=Symbol(""),ua=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ua=3,na=8;function gn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function un(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function wn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yn(){throw new Error("https://svelte.dev/e/hydration_failed")}function _n(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function jn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function En(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Wa(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Sn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function st(e){R=e}let K;function Be(e){if(e===null)throw Wa(),fa;return K=e}function Sa(){return Be(ut(K))}function C(e){if(R){if(ut(K)!==null)throw Wa(),fa;K=e}}function Mn(e=1){if(R){for(var t=e,a=K;t--;)a=ut(a);K=a}}function qa(e=!0){for(var t=0,a=K;;){if(a.nodeType===na){var r=a.data;if(r===ir){if(t===0)return a;t-=1}else(r===Ar||r===Ra)&&(t+=1)}var l=ut(a);e&&a.remove(),a=l}}function Pr(e){if(!e||e.nodeType!==na)throw Wa(),fa;return e.data}function Fr(e){return e===this.v}function Tn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yr(e){return!Tn(e,this.v)}let Cn=!1,bt=null;function ha(e){bt=e}function Br(e,t=!1,a){bt={p:bt,i:!1,c:null,e:null,s:e,x:null,l:null}}function Hr(e){var t=bt,a=t.e;if(a!==null){t.e=null;for(var r of a)po(r)}return e!==void 0&&(t.x=e),t.i=!0,bt=t.p,e??{}}function Ur(){return!0}let la=[];function Wr(){var e=la;la=[],cn(e)}function xa(e){if(la.length===0&&!Ma){var t=la;queueMicrotask(()=>{t===la&&Wr()})}la.push(e)}function On(){for(;la.length>0;)Wr()}function qr(e){var t=X;if(t===null)return W.f|=Vt,e;if((t.f&Ba)===0){if((t.f&Ya)===0)throw e;t.b.error(e)}else wa(e,t)}function wa(e,t){for(;t!==null;){if((t.f&Ya)!==0)try{t.b.error(e);return}catch(a){e=a}t=t.parent}throw e}const Va=new Set;let ke=null,ft=null,gt=[],Ja=null,fr=!1,Ma=!1;class St{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#r=0;#s=null;#n=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){gt=[],this.apply();var a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#l(r,a);this.is_fork||this.#m(),this.is_deferred()?(this.#i(a.effects),this.#i(a.render_effects),this.#i(a.block_effects)):(ke=null,Jr(a.render_effects),Jr(a.effects),this.#s?.resolve()),ft=null}#l(t,a){t.f^=Ve;for(var r=t.first;r!==null;){var l=r.f,n=(l&(It|qt))!==0,i=n&&(l&Ve)!==0,d=i||(l&it)!==0||this.skipped_effects.has(r);if((r.f&Ya)!==0&&r.b?.is_pending()&&(a={parent:a,effect:r,effects:[],render_effects:[],block_effects:[]}),!d&&r.fn!==null){n?r.f^=Ve:(l&mr)!==0?a.effects.push(r):Aa(r)&&((r.f&Lt)!==0&&a.block_effects.push(r),Da(r));var m=r.first;if(m!==null){r=m;continue}}var v=r.parent;for(r=r.next;r===null&&v!==null;)v===a.effect&&(this.#i(a.effects),this.#i(a.render_effects),this.#i(a.block_effects),a=a.parent),r=v.next,v=v.parent}}#i(t){for(const a of t)((a.f&ot)!==0?this.#n:this.#o).push(a),this.#d(a.deps),Ze(a,Ve)}#d(t){if(t!==null)for(const a of t)(a.f&Ye)===0||(a.f&oa)===0||(a.f^=oa,this.#d(a.deps))}capture(t,a){this.previous.has(t)||this.previous.set(t,a),(t.f&Vt)===0&&(this.current.set(t,t.v),ft?.set(t,t.v))}activate(){ke=this,this.apply()}deactivate(){ke===this&&(ke=null,ft=null)}flush(){if(this.activate(),gt.length>0){if(Vr(),ke!==null&&ke!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#m(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#v()}#v(){if(Va.size>1){this.previous.clear();var t=ft,a=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of Va){if(n===this){a=!1;continue}const i=[];for(const[m,v]of this.current){if(n.current.has(m))if(a&&v!==n.current.get(m))n.current.set(m,v);else continue;i.push(m)}if(i.length===0)continue;const d=[...n.current.keys()].filter(m=>!this.current.has(m));if(d.length>0){var l=gt;gt=[];const m=new Set,v=new Map;for(const b of i)Zr(b,d,m,v);if(gt.length>0){ke=n,n.apply();for(const b of gt)n.#l(b,r);n.deactivate()}gt=l}}ke=null,ft=t}this.committed=!0,Va.delete(this)}increment(t){this.#a+=1,t&&(this.#r+=1)}decrement(t){this.#a-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#n)Ze(t,ot),ia(t);for(const t of this.#o)Ze(t,Rt),ia(t);this.#n=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#s??=Lr()).promise}static ensure(){if(ke===null){const t=ke=new St;Va.add(ke),Ma||St.enqueue(()=>{ke===t&&t.flush()})}return ke}static enqueue(t){xa(t)}apply(){}}function ue(e){var t=Ma;Ma=!0;try{for(var a;;){if(On(),gt.length===0&&(ke?.flush(),gt.length===0))return Ja=null,a;Vr()}}finally{Ma=t}}function Vr(){var e=Gt;fr=!0;var t=null;try{var a=0;for(Qa(!0);gt.length>0;){var r=St.ensure();if(a++>1e3){var l,n;An()}r.process(gt),Jt.clear()}}finally{fr=!1,Qa(e),Ja=null}}function An(){try{wn()}catch(e){wa(e,Ja)}}let Ft=null;function Jr(e){var t=e.length;if(t!==0){for(var a=0;a<t;){var r=e[a++];if((r.f&(Pt|it))===0&&Aa(r)&&(Ft=new Set,Da(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?go(r):r.fn=null),Ft?.size>0)){Jt.clear();for(const l of Ft){if((l.f&(Pt|it))!==0)continue;const n=[l];let i=l.parent;for(;i!==null;)Ft.has(i)&&(Ft.delete(i),n.push(i)),i=i.parent;for(let d=n.length-1;d>=0;d--){const m=n[d];(m.f&(Pt|it))===0&&Da(m)}}Ft.clear()}}Ft=null}}function Zr(e,t,a,r){if(!a.has(e)&&(a.add(e),e.reactions!==null))for(const l of e.reactions){const n=l.f;(n&Ye)!==0?Zr(l,t,a,r):(n&(br|Lt))!==0&&(n&ot)===0&&Gr(l,t,r)&&(Ze(l,ot),ia(l))}}function Gr(e,t,a){const r=a.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const l of e.deps){if(t.includes(l))return!0;if((l.f&Ye)!==0&&Gr(l,t,a))return a.set(l,!0),!0}return a.set(e,!1),!1}function ia(e){for(var t=Ja=e;t.parent!==null;){t=t.parent;var a=t.f;if(fr&&t===X&&(a&Lt)!==0&&(a&pr)===0)return;if((a&(qt|It))!==0){if((a&Ve)===0)return;t.f^=Ve}}gt.push(t)}function Dn(e){let t=0,a=sa(0),r;return()=>{Ka()&&(o(a),co(()=>(t===0&&(r=To(()=>e(()=>Ca(a)))),t+=1,()=>{xa(()=>{t-=1,t===0&&(r?.(),r=void 0,Ca(a))})})))}}var zn=ga|ra|Ya;function Nn(e,t,a){new Ln(e,t,a)}class Ln{parent;#t=!1;#e;#a=R?K:null;#r;#s;#n;#o=null;#l=null;#i=null;#d=null;#m=null;#v=0;#p=0;#b=!1;#c=null;#x=Dn(()=>(this.#c=sa(this.#v),()=>{this.#c=null}));constructor(t,a,r){this.#e=t,this.#r=a,this.#s=r,this.parent=X.b,this.#t=!!this.#r.pending,this.#n=Xa(()=>{if(X.b=this,R){const n=this.#a;Sa(),n.nodeType===na&&n.data===Ra?this.#y():this.#w()}else{var l=this.#u();try{this.#o=ht(()=>r(l))}catch(n){this.error(n)}this.#p>0?this.#g():this.#t=!1}return()=>{this.#m?.remove()}},zn),R&&(this.#e=K)}#w(){try{this.#o=ht(()=>this.#s(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#l=ht(()=>t(this.#e)),St.enqueue(()=>{var a=this.#u();this.#o=this.#f(()=>(St.ensure(),ht(()=>this.#s(a)))),this.#p>0?this.#g():(_a(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#u(){var t=this.#e;return this.#t&&(this.#m=tt(),this.#e.before(this.#m),t=this.#m),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(t){var a=X,r=W,l=bt;xt(this.#n),Je(this.#n),ha(this.#n.ctx);try{return t()}catch(n){return qr(n),null}finally{xt(a),Je(r),ha(l)}}#g(){const t=this.#r.pending;this.#o!==null&&(this.#d=document.createDocumentFragment(),this.#d.append(this.#m),xo(this.#o,this.#d)),this.#l===null&&(this.#l=ht(()=>t(this.#e)))}#h(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#h(t);return}this.#p+=t,this.#p===0&&(this.#t=!1,this.#l&&_a(this.#l,()=>{this.#l=null}),this.#d&&(this.#e.before(this.#d),this.#d=null))}update_pending_count(t){this.#h(t),this.#v+=t,this.#c&&ya(this.#c,this.#v)}get_effect_pending(){return this.#x(),o(this.#c)}error(t){var a=this.#r.onerror;let r=this.#r.failed;if(this.#b||!a&&!r)throw t;this.#o&&(at(this.#o),this.#o=null),this.#l&&(at(this.#l),this.#l=null),this.#i&&(at(this.#i),this.#i=null),R&&(Be(this.#a),Mn(),Be(qa()));var l=!1,n=!1;const i=()=>{if(l){Sn();return}l=!0,n&&En(),St.ensure(),this.#v=0,this.#i!==null&&_a(this.#i,()=>{this.#i=null}),this.#t=this.has_pending_snippet(),this.#o=this.#f(()=>(this.#b=!1,ht(()=>this.#s(this.#e)))),this.#p>0?this.#g():this.#t=!1};var d=W;try{Je(null),n=!0,a?.(t,i),n=!1}catch(m){wa(m,this.#n&&this.#n.parent)}finally{Je(d)}r&&xa(()=>{this.#i=this.#f(()=>{St.ensure(),this.#b=!0;try{return ht(()=>{r(this.#e,()=>t,()=>i)})}catch(m){return wa(m,this.#n.parent),null}finally{this.#b=!1}})})}}function In(e,t,a){for(var r=[],l=t.length,n=0;n<l;n++)yr(t[n].e,r,!0);uo(r,()=>{var i=r.length===0&&a!==null;if(i){var d=a,m=d.parentNode;io(m),m.append(d),e.items.clear(),Ot(e,t[0].prev,t[l-1].next)}for(var v=0;v<l;v++){var b=t[v];i||(e.items.delete(b.k),Ot(e,b.prev,b.next)),at(b.e,!i)}e.first===t[0]&&(e.first=t[0].prev)})}function Mt(e,t,a,r,l,n=null){var i=e,d=new Map,m=null,v=(t&Or)!==0,b=(t&Tr)!==0,x=(t&Cr)!==0;if(v){var f=e;i=R?Be(Zt(f)):f.appendChild(tt())}R&&Sa();var h=null,M=Kr(()=>{var ie=a();return Dr(ie)?ie:ie==null?[]:dr(ie)}),Y,k=!0;function q(){Rn(je,Y,i,t,r),h!==null&&(Y.length===0?(h.fragment?(i.before(h.fragment),h.fragment=null):_r(h.effect),G.first=h.effect):_a(h.effect,()=>{h=null}))}var G=Xa(()=>{Y=o(M);var ie=Y.length;let He=!1;if(R){var De=Pr(i)===Ra;De!==(ie===0)&&(i=qa(),Be(i),st(!1),He=!0)}for(var Ge=new Set,Ke=ke,Ue=null,ce=so(),A=0;A<ie;A+=1){R&&K.nodeType===na&&K.data===ir&&(i=K,He=!0,st(!1));var yt=Y[A],Te=r(yt,A),y=k?null:d.get(Te);y?(b&&ya(y.v,yt),x?ya(y.i,A):y.i=A,ce&&Ke.skipped_effects.delete(y.e)):(y=Pn(k?i:null,Ue,yt,Te,A,l,t,a),k&&(y.o=!0,Ue===null?m=y:Ue.next=y,Ue=y),d.set(Te,y)),Ge.add(Te)}if(ie===0&&n&&!h)if(k)h={fragment:null,effect:ht(()=>n(i))};else{var c=document.createDocumentFragment(),g=tt();c.append(g),h={fragment:c,effect:ht(()=>n(g))}}if(R&&ie>0&&Be(qa()),!k)if(ce){for(const[_,w]of d)Ge.has(_)||Ke.skipped_effects.add(w.e);Ke.oncommit(q),Ke.ondiscard(()=>{})}else q();He&&st(!0),o(M)}),je={effect:G,items:d,first:m};k=!1,R&&(i=K)}function Rn(e,t,a,r,l){var n=(r&Qo)!==0,i=t.length,d=e.items,m=e.first,v,b=null,x,f=[],h=[],M,Y,k,q;if(n)for(q=0;q<i;q+=1)M=t[q],Y=l(M,q),k=d.get(Y),k.a?.measure(),(x??=new Set).add(k);for(q=0;q<i;q+=1){if(M=t[q],Y=l(M,q),k=d.get(Y),e.first??=k,!k.o){k.o=!0;var G=b?b.next:m;Ot(e,b,k),Ot(e,k,G),gr(k,G,a),b=k,f=[],h=[],m=b.next;continue}if((k.e.f&it)!==0&&(_r(k.e),n&&(k.a?.unfix(),(x??=new Set).delete(k))),k!==m){if(v!==void 0&&v.has(k)){if(f.length<h.length){var je=h[0],ie;b=je.prev;var He=f[0],De=f[f.length-1];for(ie=0;ie<f.length;ie+=1)gr(f[ie],je,a);for(ie=0;ie<h.length;ie+=1)v.delete(h[ie]);Ot(e,He.prev,De.next),Ot(e,b,He),Ot(e,De,je),m=je,b=De,q-=1,f=[],h=[]}else v.delete(k),gr(k,m,a),Ot(e,k.prev,k.next),Ot(e,k,b===null?e.first:b.next),Ot(e,b,k),b=k;continue}for(f=[],h=[];m!==null&&m.k!==Y;)(m.e.f&it)===0&&(v??=new Set).add(m),h.push(m),m=m.next;if(m===null)continue;k=m}f.push(k),b=k,m=k.next}if(m!==null||v!==void 0){for(var Ge=v===void 0?[]:dr(v);m!==null;)(m.e.f&it)===0&&Ge.push(m),m=m.next;var Ke=Ge.length;if(Ke>0){var Ue=(r&Or)!==0&&i===0?a:null;if(n){for(q=0;q<Ke;q+=1)Ge[q].a?.measure();for(q=0;q<Ke;q+=1)Ge[q].a?.fix()}In(e,Ge,Ue)}}n&&xa(()=>{if(x!==void 0)for(k of x)k.a?.apply()})}function Pn(e,t,a,r,l,n,i,d){var m=(i&Tr)!==0,v=(i&en)===0,b=m?v?to(a,!1,!1):sa(a):a,x=(i&Cr)===0?l:sa(l),f={i:x,v:b,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=tt())}return f.e=ht(()=>n(e,b,x,d)),t!==null&&(t.next=f),f}finally{}}function gr(e,t,a){for(var r=e.next?e.next.e.nodes_start:a,l=t?t.e.nodes_start:a,n=e.e.nodes_start;n!==null&&n!==r;){var i=ut(n);l.before(n),n=i}}function Ot(e,t,a){t===null?(e.first=a,e.effect.first=a&&a.e):(t.e.next&&(t.e.next.prev=null),t.next=a,t.e.next=a&&a.e),a===null?e.effect.last=t&&t.e:(a.e.prev&&(a.e.prev.next=null),a.prev=t,a.e.prev=t&&t.e)}function Fn(e,t,a,r){const l=Ga;if(a.length===0&&e.length===0){r(t.map(l));return}var n=ke,i=X,d=Yn();function m(){Promise.all(a.map(v=>Bn(v))).then(v=>{d();try{r([...t.map(l),...v])}catch(b){(i.f&Pt)===0&&wa(b,i)}n?.deactivate(),Za()}).catch(v=>{wa(v,i)})}e.length>0?Promise.all(e).then(()=>{d();try{return m()}finally{n?.deactivate(),Za()}}):m()}function Yn(){var e=X,t=W,a=bt,r=ke;return function(n=!0){xt(e),Je(t),ha(a),n&&r?.activate()}}function Za(){xt(null),Je(null),ha(null)}function Ga(e){var t=Ye|ot,a=W!==null&&(W.f&Ye)!==0?W:null;return X!==null&&(X.f|=ra),{ctx:bt,deps:null,effects:null,equals:Fr,f:t,fn:e,reactions:null,rv:0,v:qe,wv:0,parent:a??X,ac:null}}function Bn(e,t){let a=X;a===null&&gn();var r=a.b,l=void 0,n=sa(qe),i=!W,d=new Map;return Xn(()=>{var m=Lr();l=m.promise;try{Promise.resolve(e()).then(m.resolve,m.reject).then(()=>{v===ke&&v.committed&&v.deactivate(),Za()})}catch(f){m.reject(f),Za()}var v=ke;if(i){var b=!r.is_pending();r.update_pending_count(1),v.increment(b),d.get(v)?.reject(ua),d.delete(v),d.set(v,m)}const x=(f,h=void 0)=>{if(v.activate(),h)h!==ua&&(n.f|=Vt,ya(n,h));else{(n.f&Vt)!==0&&(n.f^=Vt),ya(n,f);for(const[M,Y]of d){if(d.delete(M),M===v)break;Y.reject(ua)}}i&&(r.update_pending_count(-1),v.decrement(b))};m.promise.then(x,f=>x(null,f||"unknown"))}),vo(()=>{for(const m of d.values())m.reject(ua)}),new Promise(m=>{function v(b){function x(){b===l?m(n):v(l)}b.then(x,x)}v(l)})}function Ta(e){const t=Ga(e);return yo(t),t}function Kr(e){const t=Ga(e);return t.equals=Yr,t}function Xr(e){var t=e.effects;if(t!==null){e.effects=null;for(var a=0;a<t.length;a+=1)at(t[a])}}function Hn(e){for(var t=e.parent;t!==null;){if((t.f&Ye)===0)return(t.f&Pt)===0?t:null;t=t.parent}return null}function ur(e){var t,a=X;xt(Hn(e));try{e.f&=~oa,Xr(e),t=Eo(e)}finally{xt(a)}return t}function Qr(e){var t=ur(e);if(e.equals(t)||(ke?.is_fork||(e.v=t),e.wv=$o()),!da)if(ft!==null)Ka()&&ft.set(e,t);else{var a=(e.f&Et)===0?Rt:Ve;Ze(e,a)}}let hr=new Set;const Jt=new Map;let eo=!1;function sa(e,t){var a={f:0,v:e,reactions:null,equals:Fr,rv:0,wv:0};return a}function Ae(e,t){const a=sa(e);return yo(a),a}function to(e,t=!1,a=!0){const r=sa(e);return t||(r.equals=Yr),r}function U(e,t,a=!1){W!==null&&(!Dt||(W.f&Ir)!==0)&&Ur()&&(W.f&(Ye|Lt|br|Ir))!==0&&!Yt?.includes(e)&&jn();let r=a?nt(t):t;return ya(e,r)}function ya(e,t){if(!e.equals(t)){var a=e.v;da?Jt.set(e,t):Jt.set(e,a),e.v=t;var r=St.ensure();r.capture(e,a),(e.f&Ye)!==0&&((e.f&ot)!==0&&ur(e),Ze(e,(e.f&Et)!==0?Ve:Rt)),e.wv=$o(),ao(e,ot),X!==null&&(X.f&Ve)!==0&&(X.f&(It|qt))===0&&(wt===null?tl([e]):wt.push(e)),!r.is_fork&&hr.size>0&&!eo&&Un()}return t}function Un(){eo=!1;var e=Gt;Qa(!0);const t=Array.from(hr);try{for(const a of t)(a.f&Ve)!==0&&Ze(a,Rt),Aa(a)&&Da(a)}finally{Qa(e)}hr.clear()}function Ca(e){U(e,e.v+1)}function ao(e,t){var a=e.reactions;if(a!==null)for(var r=a.length,l=0;l<r;l++){var n=a[l],i=n.f,d=(i&ot)===0;if(d&&Ze(n,t),(i&Ye)!==0){var m=n;ft?.delete(m),(i&oa)===0&&(i&Et&&(n.f|=oa),ao(m,Rt))}else d&&((i&Lt)!==0&&Ft!==null&&Ft.add(n),ia(n))}}function nt(e){if(typeof e!="object"||e===null||Ha in e)return e;const t=zr(e);if(t!==vn&&t!==pn)return e;var a=new Map,r=Dr(e),l=Ae(0),n=ma,i=d=>{if(ma===n)return d();var m=W,v=ma;Je(null),ko(n);var b=d();return Je(m),ko(v),b};return r&&a.set("length",Ae(e.length)),new Proxy(e,{defineProperty(d,m,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&kn();var b=a.get(m);return b===void 0?b=i(()=>{var x=Ae(v.value);return a.set(m,x),x}):U(b,v.value,!0),!0},deleteProperty(d,m){var v=a.get(m);if(v===void 0){if(m in d){const b=i(()=>Ae(qe));a.set(m,b),Ca(l)}}else U(v,qe),Ca(l);return!0},get(d,m,v){if(m===Ha)return e;var b=a.get(m),x=m in d;if(b===void 0&&(!x||aa(d,m)?.writable)&&(b=i(()=>{var h=nt(x?d[m]:qe),M=Ae(h);return M}),a.set(m,b)),b!==void 0){var f=o(b);return f===qe?void 0:f}return Reflect.get(d,m,v)},getOwnPropertyDescriptor(d,m){var v=Reflect.getOwnPropertyDescriptor(d,m);if(v&&"value"in v){var b=a.get(m);b&&(v.value=o(b))}else if(v===void 0){var x=a.get(m),f=x?.v;if(x!==void 0&&f!==qe)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return v},has(d,m){if(m===Ha)return!0;var v=a.get(m),b=v!==void 0&&v.v!==qe||Reflect.has(d,m);if(v!==void 0||X!==null&&(!b||aa(d,m)?.writable)){v===void 0&&(v=i(()=>{var f=b?nt(d[m]):qe,h=Ae(f);return h}),a.set(m,v));var x=o(v);if(x===qe)return!1}return b},set(d,m,v,b){var x=a.get(m),f=m in d;if(r&&m==="length")for(var h=v;h<x.v;h+=1){var M=a.get(h+"");M!==void 0?U(M,qe):h in d&&(M=i(()=>Ae(qe)),a.set(h+"",M))}if(x===void 0)(!f||aa(d,m)?.writable)&&(x=i(()=>Ae(void 0)),U(x,nt(v)),a.set(m,x));else{f=x.v!==qe;var Y=i(()=>nt(v));U(x,Y)}var k=Reflect.getOwnPropertyDescriptor(d,m);if(k?.set&&k.set.call(b,v),!f){if(r&&typeof m=="string"){var q=a.get("length"),G=Number(m);Number.isInteger(G)&&G>=q.v&&U(q,G+1)}Ca(l)}return!0},ownKeys(d){o(l);var m=Reflect.ownKeys(d).filter(x=>{var f=a.get(x);return f===void 0||f.v!==qe});for(var[v,b]of a)b.v!==qe&&!(v in d)&&m.push(v);return m},setPrototypeOf(){$n()}})}var ro,oo,no,lo;function xr(){if(ro===void 0){ro=window,oo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,a=Text.prototype;no=aa(t,"firstChild").get,lo=aa(t,"nextSibling").get,Nr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Nr(a)&&(a.__t=void 0)}}function tt(e=""){return document.createTextNode(e)}function Zt(e){return no.call(e)}function ut(e){return lo.call(e)}function D(e,t){if(!R)return Zt(e);var a=Zt(K);if(a===null)a=K.appendChild(tt());else if(t&&a.nodeType!==Ua){var r=tt();return a?.before(r),Be(r),r}return Be(a),a}function te(e,t=!1){if(!R){var a=Zt(e);return a instanceof Comment&&a.data===""?ut(a):a}if(t&&K?.nodeType!==Ua){var r=tt();return K?.before(r),Be(r),r}return K}function le(e,t=1,a=!1){let r=R?K:e;for(var l;t--;)l=r,r=ut(r);if(!R)return r;if(a&&r?.nodeType!==Ua){var n=tt();return r===null?l?.after(n):r.before(n),Be(n),n}return Be(r),r}function io(e){e.textContent=""}function so(){return!1}let mo=!1;function Wn(){mo||(mo=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function wr(e){var t=W,a=X;Je(null),xt(null);try{return e()}finally{Je(t),xt(a)}}function qn(e){X===null&&(W===null&&xn(),hn()),da&&un()}function Vn(e,t){var a=t.last;a===null?t.last=t.first=e:(a.next=e,e.prev=a,t.last=e)}function At(e,t,a){var r=X;r!==null&&(r.f&it)!==0&&(e|=it);var l={ctx:bt,deps:null,nodes_start:null,nodes_end:null,f:e|ot|Et,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(a)try{Da(l),l.f|=Ba}catch(d){throw at(l),d}else t!==null&&ia(l);var n=l;if(a&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&ra)===0&&(n=n.first,(e&Lt)!==0&&(e&ga)!==0&&n!==null&&(n.f|=ga)),n!==null&&(n.parent=r,r!==null&&Vn(n,r),W!==null&&(W.f&Ye)!==0&&(e&qt)===0)){var i=W;(i.effects??=[]).push(n)}return l}function Ka(){return W!==null&&!Dt}function vo(e){const t=At(vr,null,!1);return Ze(t,Ve),t.teardown=e,t}function Jn(e){qn();var t=X.f,a=!W&&(t&It)!==0&&(t&Ba)===0;if(a){var r=bt;(r.e??=[]).push(e)}else return po(e)}function po(e){return At(mr|bn,e,!1)}function Zn(e){St.ensure();const t=At(qt|ra,e,!0);return()=>{at(t)}}function Gn(e){St.ensure();const t=At(qt|ra,e,!0);return(a={})=>new Promise(r=>{a.outro?_a(t,()=>{at(t),r(void 0)}):(at(t),r(void 0))})}function Kn(e){return At(mr,e,!1)}function Xn(e){return At(br|ra,e,!0)}function co(e,t=0){return At(vr|t,e,!0)}function O(e,t=[],a=[],r=[]){Fn(r,t,a,l=>{At(vr,()=>e(...l.map(o)),!0)})}function Xa(e,t=0){var a=At(Lt|t,e,!0);return a}function ht(e){return At(It|ra,e,!0)}function bo(e){var t=e.teardown;if(t!==null){const a=da,r=W;wo(!0),Je(null);try{t.call(null)}finally{wo(a),Je(r)}}}function fo(e,t=!1){var a=e.first;for(e.first=e.last=null;a!==null;){const l=a.ac;l!==null&&wr(()=>{l.abort(ua)});var r=a.next;(a.f&qt)!==0?a.parent=null:at(a,t),a=r}}function Qn(e){for(var t=e.first;t!==null;){var a=t.next;(t.f&It)===0&&at(t),t=a}}function at(e,t=!0){var a=!1;(t||(e.f&pr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(el(e.nodes_start,e.nodes_end),a=!0),fo(e,t&&!a),er(e,0),Ze(e,Pt);var r=e.transitions;if(r!==null)for(const n of r)n.stop();bo(e);var l=e.parent;l!==null&&l.first!==null&&go(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function el(e,t){for(;e!==null;){var a=e===t?null:ut(e);e.remove(),e=a}}function go(e){var t=e.parent,a=e.prev,r=e.next;a!==null&&(a.next=r),r!==null&&(r.prev=a),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=a))}function _a(e,t,a=!0){var r=[];yr(e,r,!0),uo(r,()=>{a&&at(e),t&&t()})}function uo(e,t){var a=e.length;if(a>0){var r=()=>--a||t();for(var l of e)l.out(r)}else t()}function yr(e,t,a){if((e.f&it)===0){if(e.f^=it,e.transitions!==null)for(const i of e.transitions)(i.is_global||a)&&t.push(i);for(var r=e.first;r!==null;){var l=r.next,n=(r.f&ga)!==0||(r.f&It)!==0&&(e.f&Lt)!==0;yr(r,t,n?a:!1),r=l}}}function _r(e){ho(e,!0)}function ho(e,t){if((e.f&it)!==0){e.f^=it,(e.f&Ve)===0&&(Ze(e,ot),ia(e));for(var a=e.first;a!==null;){var r=a.next,l=(a.f&ga)!==0||(a.f&It)!==0;ho(a,l?t:!1),a=r}if(e.transitions!==null)for(const n of e.transitions)(n.is_global||t)&&n.in()}}function xo(e,t){for(var a=e.nodes_start,r=e.nodes_end;a!==null;){var l=a===r?null:ut(a);t.append(a),a=l}}let Gt=!1;function Qa(e){Gt=e}let da=!1;function wo(e){da=e}let W=null,Dt=!1;function Je(e){W=e}let X=null;function xt(e){X=e}let Yt=null;function yo(e){W!==null&&(Yt===null?Yt=[e]:Yt.push(e))}let rt=null,dt=0,wt=null;function tl(e){wt=e}let _o=1,Oa=0,ma=Oa;function ko(e){ma=e}function $o(){return++_o}function Aa(e){var t=e.f;if((t&ot)!==0)return!0;if(t&Ye&&(e.f&=~oa),(t&Rt)!==0){var a=e.deps;if(a!==null)for(var r=a.length,l=0;l<r;l++){var n=a[l];if(Aa(n)&&Qr(n),n.wv>e.wv)return!0}(t&Et)!==0&&ft===null&&Ze(e,Ve)}return!1}function jo(e,t,a=!0){var r=e.reactions;if(r!==null&&!Yt?.includes(e))for(var l=0;l<r.length;l++){var n=r[l];(n.f&Ye)!==0?jo(n,t,!1):t===n&&(a?Ze(n,ot):(n.f&Ve)!==0&&Ze(n,Rt),ia(n))}}function Eo(e){var t=rt,a=dt,r=wt,l=W,n=Yt,i=bt,d=Dt,m=ma,v=e.f;rt=null,dt=0,wt=null,W=(v&(It|qt))===0?e:null,Yt=null,ha(e.ctx),Dt=!1,ma=++Oa,e.ac!==null&&(wr(()=>{e.ac.abort(ua)}),e.ac=null);try{e.f|=cr;var b=e.fn,x=b(),f=e.deps;if(rt!==null){var h;if(er(e,dt),f!==null&&dt>0)for(f.length=dt+rt.length,h=0;h<rt.length;h++)f[dt+h]=rt[h];else e.deps=f=rt;if(Gt&&Ka()&&(e.f&Et)!==0)for(h=dt;h<f.length;h++)(f[h].reactions??=[]).push(e)}else f!==null&&dt<f.length&&(er(e,dt),f.length=dt);if(Ur()&&wt!==null&&!Dt&&f!==null&&(e.f&(Ye|Rt|ot))===0)for(h=0;h<wt.length;h++)jo(wt[h],e);return l!==null&&l!==e&&(Oa++,wt!==null&&(r===null?r=wt:r.push(...wt))),(e.f&Vt)!==0&&(e.f^=Vt),x}catch(M){return qr(M)}finally{e.f^=cr,rt=t,dt=a,wt=r,W=l,Yt=n,ha(i),Dt=d,ma=m}}function al(e,t){let a=t.reactions;if(a!==null){var r=dn.call(a,e);if(r!==-1){var l=a.length-1;l===0?a=t.reactions=null:(a[r]=a[l],a.pop())}}a===null&&(t.f&Ye)!==0&&(rt===null||!rt.includes(t))&&(Ze(t,Rt),(t.f&Et)!==0&&(t.f^=Et,t.f&=~oa),Xr(t),er(t,0))}function er(e,t){var a=e.deps;if(a!==null)for(var r=t;r<a.length;r++)al(e,a[r])}function Da(e){var t=e.f;if((t&Pt)===0){Ze(e,Ve);var a=X,r=Gt;X=e,Gt=!0;try{(t&Lt)!==0?Qn(e):fo(e),bo(e);var l=Eo(e);e.teardown=typeof l=="function"?l:null,e.wv=_o;var n;sr&&Cn&&(e.f&ot)!==0&&e.deps}finally{Gt=r,X=a}}}function o(e){var t=e.f,a=(t&Ye)!==0;if(W!==null&&!Dt){var r=X!==null&&(X.f&Pt)!==0;if(!r&&!Yt?.includes(e)){var l=W.deps;if((W.f&cr)!==0)e.rv<Oa&&(e.rv=Oa,rt===null&&l!==null&&l[dt]===e?dt++:rt===null?rt=[e]:rt.includes(e)||rt.push(e));else{(W.deps??=[]).push(e);var n=e.reactions;n===null?e.reactions=[W]:n.includes(W)||n.push(W)}}}if(da){if(Jt.has(e))return Jt.get(e);if(a){var i=e,d=i.v;return((i.f&Ve)===0&&i.reactions!==null||Mo(i))&&(d=ur(i)),Jt.set(i,d),d}}else a&&!ft?.has(e)&&(i=e,Aa(i)&&Qr(i),Gt&&Ka()&&(i.f&Et)===0&&So(i));if(ft?.has(e))return ft.get(e);if((e.f&Vt)!==0)throw e.v;return e.v}function So(e){if(e.deps!==null){e.f^=Et;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ye)!==0&&(t.f&Et)===0&&So(t)}}function Mo(e){if(e.v===qe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Jt.has(t)||(t.f&Ye)!==0&&Mo(t))return!0;return!1}function To(e){var t=Dt;try{return Dt=!0,e()}finally{Dt=t}}const rl=-7169;function Ze(e,t){e.f=e.f&rl|t}const Co=new Set,kr=new Set;function ol(e,t,a,r={}){function l(n){if(r.capture||za.call(t,n),!n.cancelBubble)return wr(()=>a?.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?xa(()=>{t.addEventListener(e,l,r)}):t.addEventListener(e,l,r),l}function va(e,t,a,r,l){var n={capture:r,passive:l},i=ol(e,t,a,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&vo(()=>{t.removeEventListener(e,i,n)})}function nl(e){for(var t=0;t<e.length;t++)Co.add(e[t]);for(var a of kr)a(e)}let Oo=null;function za(e){var t=this,a=t.ownerDocument,r=e.type,l=e.composedPath?.()||[],n=l[0]||e.target;Oo=e;var i=0,d=Oo===e&&e.__root;if(d){var m=l.indexOf(d);if(m!==-1&&(t===document||t===window)){e.__root=t;return}var v=l.indexOf(t);if(v===-1)return;m<=v&&(i=m)}if(n=l[i]||e.target,n!==t){Fa(e,"currentTarget",{configurable:!0,get(){return n||a}});var b=W,x=X;Je(null),xt(null);try{for(var f,h=[];n!==null;){var M=n.assignedSlot||n.parentNode||n.host||null;try{var Y=n["__"+r];Y!=null&&(!n.disabled||e.target===n)&&Y.call(n,e)}catch(k){f?h.push(k):f=k}if(e.cancelBubble||M===t||M===null)break;n=M}if(f){for(let k of h)queueMicrotask(()=>{throw k});throw f}}finally{e.__root=t,delete e.currentTarget,Je(b),xt(x)}}}function ll(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Kt(e,t){var a=X;a.nodes_start===null&&(a.nodes_start=e,a.nodes_end=t)}function $(e,t){var a=(t&nn)!==0,r=(t&ln)!==0,l,n=!e.startsWith("<!>");return()=>{if(R)return Kt(K,null),K;l===void 0&&(l=ll(n?e:"<!>"+e),a||(l=Zt(l)));var i=r||oo?document.importNode(l,!0):l.cloneNode(!0);if(a){var d=Zt(i),m=i.lastChild;Kt(d,m)}else Kt(i,i);return i}}function pa(e=""){if(!R){var t=tt(e+"");return Kt(t,t),t}var a=K;return a.nodeType!==Ua&&(a.before(a=tt()),Be(a)),Kt(a,a),a}function he(){if(R)return Kt(K,null),K;var e=document.createDocumentFragment(),t=document.createComment(""),a=tt();return e.append(t,a),Kt(t,a),e}function u(e,t){if(R){var a=X;((a.f&Ba)===0||a.nodes_end===null)&&(a.nodes_end=K),Sa();return}e!==null&&e.before(t)}const il=["touchstart","touchmove"];function sl(e){return il.includes(e)}function Se(e,t){var a=t==null?"":typeof t=="object"?t+"":t;a!==(e.__t??=e.nodeValue)&&(e.__t=a,e.nodeValue=a+"")}function Ao(e,t){return Do(e,t)}function dl(e,t){xr(),t.intro=t.intro??!1;const a=t.target,r=R,l=K;try{for(var n=Zt(a);n&&(n.nodeType!==na||n.data!==Ar);)n=ut(n);if(!n)throw fa;st(!0),Be(n);const i=Do(e,{...t,anchor:n});return st(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(d=>d.startsWith("https://svelte.dev/e/")))throw i;return i!==fa&&console.warn("Failed to hydrate: ",i),t.recover===!1&&yn(),xr(),io(a),st(!1),Ao(e,t)}finally{st(r),Be(l)}}const ka=new Map;function Do(e,{target:t,anchor:a,props:r={},events:l,context:n,intro:i=!0}){xr();var d=new Set,m=x=>{for(var f=0;f<x.length;f++){var h=x[f];if(!d.has(h)){d.add(h);var M=sl(h);t.addEventListener(h,za,{passive:M});var Y=ka.get(h);Y===void 0?(document.addEventListener(h,za,{passive:M}),ka.set(h,1)):ka.set(h,Y+1)}}};m(dr(Co)),kr.add(m);var v=void 0,b=Gn(()=>{var x=a??t.appendChild(tt());return Nn(x,{pending:()=>{}},f=>{if(n){Br({});var h=bt;h.c=n}if(l&&(r.$$events=l),R&&Kt(f,null),v=e(f,r)||{},R&&(X.nodes_end=K,K===null||K.nodeType!==na||K.data!==ir))throw Wa(),fa;n&&Hr()}),()=>{for(var f of d){t.removeEventListener(f,za);var h=ka.get(f);--h===0?(document.removeEventListener(f,za),ka.delete(f)):ka.set(f,h)}kr.delete(m),x!==a&&x.parentNode?.removeChild(x)}});return $r.set(v,b),v}let $r=new WeakMap;function ml(e,t){const a=$r.get(e);return a?($r.delete(e),a(t)):Promise.resolve()}class vl{anchor;#t=new Map;#e=new Map;#a=new Map;#r=new Set;#s=!0;constructor(t,a=!0){this.anchor=t,this.#s=a}#n=()=>{var t=ke;if(this.#t.has(t)){var a=this.#t.get(t),r=this.#e.get(a);if(r)_r(r),this.#r.delete(a);else{var l=this.#a.get(a);l&&(this.#e.set(a,l.effect),this.#a.delete(a),l.fragment.lastChild.remove(),this.anchor.before(l.fragment),r=l.effect)}for(const[n,i]of this.#t){if(this.#t.delete(n),n===t)break;const d=this.#a.get(i);d&&(at(d.effect),this.#a.delete(i))}for(const[n,i]of this.#e){if(n===a||this.#r.has(n))continue;const d=()=>{if(Array.from(this.#t.values()).includes(n)){var v=document.createDocumentFragment();xo(i,v),v.append(tt()),this.#a.set(n,{effect:i,fragment:v})}else at(i);this.#r.delete(n),this.#e.delete(n)};this.#s||!r?(this.#r.add(n),_a(i,d,!1)):d()}}};#o=t=>{this.#t.delete(t);const a=Array.from(this.#t.values());for(const[r,l]of this.#a)a.includes(r)||(at(l.effect),this.#a.delete(r))};ensure(t,a){var r=ke,l=so();if(a&&!this.#e.has(t)&&!this.#a.has(t))if(l){var n=document.createDocumentFragment(),i=tt();n.append(i),this.#a.set(t,{effect:ht(()=>a(i)),fragment:n})}else this.#e.set(t,ht(()=>a(this.anchor)));if(this.#t.set(r,t),l){for(const[d,m]of this.#e)d===t?r.skipped_effects.delete(m):r.skipped_effects.add(m);for(const[d,m]of this.#a)d===t?r.skipped_effects.delete(m.effect):r.skipped_effects.add(m.effect);r.oncommit(this.#n),r.ondiscard(this.#o)}else R&&(this.anchor=K),this.#n()}}function S(e,t,a=!1){R&&Sa();var r=new vl(e),l=a?ga:0;function n(i,d){if(R){const v=Pr(e)===Ra;if(i===v){var m=qa();Be(m),r.anchor=m,st(!1),r.ensure(i,d),st(!0);return}}r.ensure(i,d)}Xa(()=>{var i=!1;t((d,m=!0)=>{i=!0,n(m,d)}),i||n(!1,null)},l)}function zo(e,t,a,r,l){R&&Sa();var n=t.$$slots?.[a],i=!1;n===!0&&(n=t[a==="default"?"children":a],i=!0),n===void 0?l!==null&&l(e):n(e,i?()=>r:r)}function pl(e,t){let a=null,r=R;var l;if(R){a=K;for(var n=Zt(document.head);n!==null&&(n.nodeType!==na||n.data!==e);)n=ut(n);if(n===null)st(!1);else{var i=ut(n);n.remove(),Be(i)}}R||(l=document.head.appendChild(tt()));try{Xa(()=>t(l),pr)}finally{r&&(st(!0),Be(a))}}function cl(e,t){Kn(()=>{var a=e.getRootNode(),r=a.host?a:a.head??a.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const l=document.createElement("style");l.id=t.hash,l.textContent=t.code,r.appendChild(l)}})}function bl(e,t,a){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function fl(e,t){return e==null?null:String(e)}function Me(e,t,a,r,l,n){var i=e.__className;if(R||i!==a||i===void 0){var d=bl(a,r);(!R||d!==e.getAttribute("class"))&&(d==null?e.removeAttribute("class"):e.className=d),e.__className=a}return n}function tr(e,t,a,r){var l=e.__style;if(R||l!==t){var n=fl(t);(!R||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return r}const gl=Symbol("is custom element"),ul=Symbol("is html");function hl(e){if(R){var t=!1,a=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;zt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var l=e.checked;zt(e,"checked",null),e.checked=l}}};e.__on_r=a,xa(a),Wn()}}function zt(e,t,a,r){var l=xl(e);R&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=a)&&(t==="loading"&&(e[fn]=a),a==null?e.removeAttribute(t):typeof a!="string"&&No(e).includes(t)?e[t]=a:e.setAttribute(t,a))}function $e(e,t,a){var r=W,l=X;let n=R;R&&st(!1),Je(null),xt(null);try{t!=="style"&&(jr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?No(e).includes(t):a&&typeof a=="object")?e[t]=a:zt(e,t,a==null?a:String(a))}finally{Je(r),xt(l),n&&st(!0)}}function xl(e){return e.__attributes??={[gl]:e.nodeName.includes("-"),[ul]:e.namespaceURI===sn}}var jr=new Map;function No(e){var t=e.getAttribute("is")||e.nodeName,a=jr.get(t);if(a)return a;jr.set(t,a=[]);for(var r,l=e,n=Element.prototype;n!==l;){r=mn(l);for(var i in r)r[i].set&&a.push(i);l=zr(l)}return a}let ar=!1;function wl(e){var t=ar;try{return ar=!1,[e(),ar]}finally{ar=t}}function xe(e,t,a,r){var l=(a&rn)!==0,n=(a&on)!==0,i=r,d=!0,m=()=>(d&&(d=!1,i=n?To(r):r),i),v;if(l){var b=Ha in e||Rr in e;v=aa(e,t)?.set??(b&&t in e?G=>e[t]=G:void 0)}var x,f=!1;l?[x,f]=wl(()=>e[t]):x=e[t],x===void 0&&r!==void 0&&(x=m(),v&&(_n(),v(x)));var h;if(h=()=>{var G=e[t];return G===void 0?m():(d=!0,G)},(a&an)===0)return h;if(v){var M=e.$$legacy;return(function(G,je){return arguments.length>0?((!je||M||f)&&v(je?h():G),G):h()})}var Y=!1,k=((a&tn)!==0?Ga:Kr)(()=>(Y=!1,h()));l&&o(k);var q=X;return(function(G,je){if(arguments.length>0){const ie=je?o(k):l?nt(G):G;return U(k,ie),Y=!0,i!==void 0&&(i=ie),G}return da&&Y||(q.f&Pt)!==0?k.v:o(k)})}function yl(e){return new _l(e)}class _l{#t;#e;constructor(t){var a=new Map,r=(n,i)=>{var d=to(i,!1,!1);return a.set(n,d),d};const l=new Proxy({...t.props||{},$$events:{}},{get(n,i){return o(a.get(i)??r(i,Reflect.get(n,i)))},has(n,i){return i===Rr?!0:(o(a.get(i)??r(i,Reflect.get(n,i))),Reflect.has(n,i))},set(n,i,d){return U(a.get(i)??r(i,d),d),Reflect.set(n,i,d)}});this.#e=(t.hydrate?dl:Ao)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ue(),this.#t=l.$$events;for(const n of Object.keys(this.#e))n==="$set"||n==="$destroy"||n==="$on"||Fa(this,n,{get(){return this.#e[n]},set(i){this.#e[n]=i},enumerable:!0});this.#e.$set=n=>{Object.assign(l,n)},this.#e.$destroy=()=>{ml(this.#e)}}$set(t){this.#e.$set(t)}$on(t,a){this.#t[t]=this.#t[t]||[];const r=(...l)=>a.call(this,...l);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(l=>l!==r)}}$destroy(){this.#e.$destroy()}}let Lo;typeof HTMLElement=="function"&&(Lo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,a){super(),this.$$ctor=e,this.$$s=t,a&&this.attachShadow({mode:"open"})}addEventListener(e,t,a){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,a)}removeEventListener(e,t,a){if(super.removeEventListener(e,t,a),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return l=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),u(l,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},a=kl(this);for(const r of this.$$s)r in a&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=rr(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=yl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zn(()=>{co(()=>{this.$$r=!0;for(const r of Pa(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const l=rr(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1})});for(const r in this.$$l)for(const l of this.$$l[r]){const n=this.$$c.$on(r,l);this.$$l_u.set(l,n)}this.$$l={}}}attributeChangedCallback(e,t,a){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rr(e,a,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 Pa(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rr(e,t,a,r){const l=a[e]?.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!a[e])return t;if(r==="toAttribute")switch(l){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(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function kl(e){const t={};return e.childNodes.forEach(a=>{t[a.slot||"default"]=!0}),t}function $l(e,t,a,r,l,n){let i=class extends Lo{constructor(){super(e,a,l),this.$$p_d=t}static get observedAttributes(){return Pa(t).map(d=>(t[d].attribute||d).toLowerCase())}};return Pa(t).forEach(d=>{Fa(i.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(m){m=rr(d,m,t),this.$$d[d]=m;var v=this.$$c;if(v){var b=aa(v,d)?.get;b?v[d]=m:v.$set({[d]:m})}}})}),r.forEach(d=>{Fa(i.prototype,d,{get(){return this.$$c?.[d]}})}),e.element=i,i}function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}},El=or.exports,Io;function Ro(){return Io||(Io=1,(function(e,t){(function(a,r){e.exports=r()})(El,(function(){var a=1e3,r=6e4,l=36e5,n="millisecond",i="second",d="minute",m="hour",v="day",b="week",x="month",f="quarter",h="year",M="date",Y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(y){var c=["th","st","nd","rd"],g=y%100;return"["+y+(c[(g-20)%10]||c[g]||c[0])+"]"}},je=function(y,c,g){var _=String(y);return!_||_.length>=c?y:""+Array(c+1-_.length).join(g)+y},ie={s:je,z:function(y){var c=-y.utcOffset(),g=Math.abs(c),_=Math.floor(g/60),w=g%60;return(c<=0?"+":"-")+je(_,2,"0")+":"+je(w,2,"0")},m:function y(c,g){if(c.date()<g.date())return-y(g,c);var _=12*(g.year()-c.year())+(g.month()-c.month()),w=c.clone().add(_,x),N=g-w<0,L=c.clone().add(_+(N?-1:1),x);return+(-(_+(g-w)/(N?w-L:L-w))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:x,y:h,w:b,d:v,D:M,h:m,m:d,s:i,ms:n,Q:f}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},He="en",De={};De[He]=G;var Ge="$isDayjsObject",Ke=function(y){return y instanceof yt||!(!y||!y[Ge])},Ue=function y(c,g,_){var w;if(!c)return He;if(typeof c=="string"){var N=c.toLowerCase();De[N]&&(w=N),g&&(De[N]=g,w=N);var L=c.split("-");if(!w&&L.length>1)return y(L[0])}else{var se=c.name;De[se]=c,w=se}return!_&&w&&(He=w),w||!_&&He},ce=function(y,c){if(Ke(y))return y.clone();var g=typeof c=="object"?c:{};return g.date=y,g.args=arguments,new yt(g)},A=ie;A.l=Ue,A.i=Ke,A.w=function(y,c){return ce(y,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var yt=(function(){function y(g){this.$L=Ue(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Ge]=!0}var c=y.prototype;return c.parse=function(g){this.$d=(function(_){var w=_.date,N=_.utc;if(w===null)return new Date(NaN);if(A.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var L=w.match(k);if(L){var se=L[2]-1||0,de=(L[7]||"0").substring(0,3);return N?new Date(Date.UTC(L[1],se,L[3]||1,L[4]||0,L[5]||0,L[6]||0,de)):new Date(L[1],se,L[3]||1,L[4]||0,L[5]||0,L[6]||0,de)}}return new Date(w)})(g),this.init()},c.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},c.$utils=function(){return A},c.isValid=function(){return this.$d.toString()!==Y},c.isSame=function(g,_){var w=ce(g);return this.startOf(_)<=w&&w<=this.endOf(_)},c.isAfter=function(g,_){return ce(g)<this.startOf(_)},c.isBefore=function(g,_){return this.endOf(_)<ce(g)},c.$g=function(g,_,w){return A.u(g)?this[_]:this.set(w,g)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(g,_){var w=this,N=!!A.u(_)||_,L=A.p(g),se=function(Ht,Pe){var vt=A.w(w.$u?Date.UTC(w.$y,Pe,Ht):new Date(w.$y,Pe,Ht),w);return N?vt:vt.endOf(v)},de=function(Ht,Pe){return A.w(w.toDate()[Ht].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Pe)),w)},V=this.$W,J=this.$M,lt=this.$D,Qt="set"+(this.$u?"UTC":"");switch(L){case h:return N?se(1,0):se(31,11);case x:return N?se(1,J):se(0,J+1);case b:var Bt=this.$locale().weekStart||0,mt=(V<Bt?V+7:V)-Bt;return se(N?lt-mt:lt+(6-mt),J);case v:case M:return de(Qt+"Hours",0);case m:return de(Qt+"Minutes",1);case d:return de(Qt+"Seconds",2);case i:return de(Qt+"Milliseconds",3);default:return this.clone()}},c.endOf=function(g){return this.startOf(g,!1)},c.$set=function(g,_){var w,N=A.p(g),L="set"+(this.$u?"UTC":""),se=(w={},w[v]=L+"Date",w[M]=L+"Date",w[x]=L+"Month",w[h]=L+"FullYear",w[m]=L+"Hours",w[d]=L+"Minutes",w[i]=L+"Seconds",w[n]=L+"Milliseconds",w)[N],de=N===v?this.$D+(_-this.$W):_;if(N===x||N===h){var V=this.clone().set(M,1);V.$d[se](de),V.init(),this.$d=V.set(M,Math.min(this.$D,V.daysInMonth())).$d}else se&&this.$d[se](de);return this.init(),this},c.set=function(g,_){return this.clone().$set(g,_)},c.get=function(g){return this[A.p(g)]()},c.add=function(g,_){var w,N=this;g=Number(g);var L=A.p(_),se=function(J){var lt=ce(N);return A.w(lt.date(lt.date()+Math.round(J*g)),N)};if(L===x)return this.set(x,this.$M+g);if(L===h)return this.set(h,this.$y+g);if(L===v)return se(1);if(L===b)return se(7);var de=(w={},w[d]=r,w[m]=l,w[i]=a,w)[L]||1,V=this.$d.getTime()+g*de;return A.w(V,this)},c.subtract=function(g,_){return this.add(-1*g,_)},c.format=function(g){var _=this,w=this.$locale();if(!this.isValid())return w.invalidDate||Y;var N=g||"YYYY-MM-DDTHH:mm:ssZ",L=A.z(this),se=this.$H,de=this.$m,V=this.$M,J=w.weekdays,lt=w.months,Qt=w.meridiem,Bt=function(Pe,vt,ea,ja){return Pe&&(Pe[vt]||Pe(_,N))||ea[vt].slice(0,ja)},mt=function(Pe){return A.s(se%12||12,Pe,"0")},Ht=Qt||function(Pe,vt,ea){var ja=Pe<12?"AM":"PM";return ea?ja.toLowerCase():ja};return N.replace(q,(function(Pe,vt){return vt||(function(ea){switch(ea){case"YY":return String(_.$y).slice(-2);case"YYYY":return A.s(_.$y,4,"0");case"M":return V+1;case"MM":return A.s(V+1,2,"0");case"MMM":return Bt(w.monthsShort,V,lt,3);case"MMMM":return Bt(lt,V);case"D":return _.$D;case"DD":return A.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Bt(w.weekdaysMin,_.$W,J,2);case"ddd":return Bt(w.weekdaysShort,_.$W,J,3);case"dddd":return J[_.$W];case"H":return String(se);case"HH":return A.s(se,2,"0");case"h":return mt(1);case"hh":return mt(2);case"a":return Ht(se,de,!0);case"A":return Ht(se,de,!1);case"m":return String(de);case"mm":return A.s(de,2,"0");case"s":return String(_.$s);case"ss":return A.s(_.$s,2,"0");case"SSS":return A.s(_.$ms,3,"0");case"Z":return L}return null})(Pe)||L.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(g,_,w){var N,L=this,se=A.p(_),de=ce(g),V=(de.utcOffset()-this.utcOffset())*r,J=this-de,lt=function(){return A.m(L,de)};switch(se){case h:N=lt()/12;break;case x:N=lt();break;case f:N=lt()/3;break;case b:N=(J-V)/6048e5;break;case v:N=(J-V)/864e5;break;case m:N=J/l;break;case d:N=J/r;break;case i:N=J/a;break;default:N=J}return w?N:A.a(N)},c.daysInMonth=function(){return this.endOf(x).$D},c.$locale=function(){return De[this.$L]},c.locale=function(g,_){if(!g)return this.$L;var w=this.clone(),N=Ue(g,_,!0);return N&&(w.$L=N),w},c.clone=function(){return A.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},y})(),Te=yt.prototype;return ce.prototype=Te,[["$ms",n],["$s",i],["$m",d],["$H",m],["$W",v],["$M",x],["$y",h],["$D",M]].forEach((function(y){Te[y[1]]=function(c){return this.$g(c,y[0],y[1])}})),ce.extend=function(y,c){return y.$i||(y(c,yt,ce),y.$i=!0),ce},ce.locale=Ue,ce.isDayjs=Ke,ce.unix=function(y){return ce(1e3*y)},ce.en=De[He],ce.Ls=De,ce.p={},ce}))})(or)),or.exports}var Sl=Ro();const Xt=jl(Sl);var nr={exports:{}},Ml=nr.exports,Po;function Tl(){return Po||(Po=1,(function(e,t){(function(a,r){e.exports=r(Ro())})(Ml,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var l=r(a),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(i){return i+"º"}};return l.default.locale(n,null,!0),n}))})(nr)),nr.exports}Tl();const lr={version:"0.65.18"};var ca={},Fo;function Cl(){if(Fo)return ca;Fo=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.LanguageTranslator=void 0,ca.getChildStyleToPass=e,ca.addComponent=t;function e(r,l){var n,i,d="";try{if(r&&l?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((i=l?.filter(function(f){return Object.keys(r).includes(f.name)}))===null||i===void 0)&&i.length))for(var m=function(f){var h=l?.filter(function(M){return M.name===f&&M.defaultValue!==r[f]});h&&(d+="".concat(f,":").concat(r[f],";"))},v=0,b=Object.keys(r);v<b.length;v++){var x=b[v];m(x)}}catch(f){console.error("error getting child style to pass",f)}finally{return d}}function t(r){var l,n=((l=r?.repoName.split("/"))===null||l===void 0?void 0:l[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var i=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var d=document.createElement("script");if(d.id=n+"-script",d.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(i),r?.local)d.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var m=n.split("-")[0];d.src="http://localhost:6006/webcomponents/".concat(n.replace(m+"-",""),"/").concat(i)}document.head.appendChild(d)}catch(v){console.warn(v)}}var a=(function(){function r(l){if(this.lang="",!l?.dictionary)throw new Error("no dictionary provided");this.dictionary=l.dictionary,this.setLang(l?.lang)}return r.prototype.setLang=function(l){l||(l=r.getDefaultLang()),this.lang=l},r.prototype.translateWord=function(l,n){return r.getDictionaryWord(l,this.dictionary,n||this.lang)},r.prototype.translateDate=function(l,n,i){return r.formatDate(l,n,i||this.lang)},r.getDefaultLang=function(){var l,n,i,d="en";return navigator?.languages&&(!((i=(n=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.length)&&(d=navigator.languages[0].split("-")[0].toLowerCase()),d},r.getDictionaryWord=function(l,n,i){var d;if(!l)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(i&&(!((d=n[i])===null||d===void 0)&&d[l]))return n[i][l];var m="",v=r.getDefaultLang();if(!i||v!==i){var b=n?.[v];b?.[l]&&(m=b[l])}return m},r.formatDate=function(l,n,i){if(!l)throw new Error("no date provided");if(typeof l.getMonth!="function")throw new Error("wrong date format");var d=new Intl.DateTimeFormat(i||r.getDefaultLang(),n);return d.format(l)},r})();return ca.LanguageTranslator=a,ca}var $a=Cl();const Yo={en:{actions:"Actions",selectAll:"Select all",deselectAll:"Deselect all",start:"Start",end:"End",all:"all"},it:{actions:"Azioni",selectAll:"Seleziona tutti",deselectAll:"Deseleziona tutti",start:"Inizio",end:"Fine",all:"tutti"}};var Ol=$('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-9da8a"/>'),Al=$('<button aria-label="Select all" class="btn btn-link svelte-9da8a"> </button>'),Dl=$('<button aria-label="Deselect all" class="btn btn-link svelte-9da8a"> </button>'),zl=$('<th scope="col" class="svelte-9da8a"><!></th>'),Nl=$('<th scope="col" class="svelte-9da8a"></th>'),Ll=$('<hb-tooltip><i class="bi bi-info-circle svelte-9da8a"></i> </hb-tooltip>',2),Il=$('<button style="border:none; background-color:inherit" class="svelte-9da8a"><!></button>'),Rl=$('<th scope="col" class="svelte-9da8a"><!> <!></th>'),Pl=$('<th scope="col" class="svelte-9da8a"> </th>'),Fl=$('<th scope="col" class="svelte-9da8a"> </th>'),Yl=$('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Bl=$('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),Hl=$('<option class="svelte-9da8a"> </option>'),Ul=$('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),Wl=$('<th scope="col" class="svelte-9da8a"><!> <!></th>'),ql=$('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),Vl=$("<!> <!>",1),Jl=$('<tr class="svelte-9da8a"><!><!></tr>'),Zl=$('<button class="btn btn-link svelte-9da8a"> </button>'),Gl=$('<button class="btn btn-link svelte-9da8a"> </button>'),Kl=$('<th scope="col" class="svelte-9da8a"><!></th>'),Xl=$('<span style="width:50px;display:inline-block" class="svelte-9da8a">Inizio</span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Ql=$('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),ei=$('<option class="svelte-9da8a"> </option>'),ti=$('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),ai=$('<th scope="col" class="svelte-9da8a"><!></th>'),ri=$('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),oi=$('<th scope="col" class="svelte-9da8a"> </th>'),ni=$('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),li=$('<th scope="col" class="svelte-9da8a"><!></th>'),ii=$('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),si=$('<tr class="svelte-9da8a"><!><!><!></tr> <tr class="svelte-9da8a"><!><!><!></tr>',1),di=$('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox" checked/>'),mi=$('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox"/>'),vi=$('<td style="box-shadow: none;" class="svelte-9da8a"><div class="form-check svelte-9da8a"><!></div></td>'),pi=$('<button type="button" style="margin-right:10px" disabled> </button>'),ci=$('<button type="button" style="margin-right:10px" disabled><i></i></button>'),bi=$('<button type="button" style="margin-right:10px"> </button>'),fi=$("<hb-tooltip><button><i></i></button></hb-tooltip>",2),gi=$('<button type="button" style="margin-right:10px"><i></i></button>'),ui=$('<td class="svelte-9da8a"></td>'),hi=$('<td class="svelte-9da8a"></td>'),xi=$('<button type="button" class="btn btn-link svelte-9da8a"> </button>'),wi=$('<button type="button" class="btn btn-link svelte-9da8a" aria-label="Copy to clipboard"><i class="bi-clipboard svelte-9da8a"></i></button>'),yi=$('<td class="svelte-9da8a"><!> <!></td>'),_i=$('<button type="button" style="margin-right:10px"> </button>'),ki=$('<hb-tooltip><button type="button" style="margin-right:10px"><i></i></button></hb-tooltip>',2),$i=$('<button type="button" style="margin-right:10px"><i></i></button>'),ji=$('<td class="svelte-9da8a"></td>'),Ei=$("<tr><!><!><!></tr>"),Si=$('<button type="button" class="btn btn-outline-primary svelte-9da8a"> </button>'),Mi=$('<span style="margin-left:20px" class="btn-group btn-group-sm svelte-9da8a" role="group" aria-label="Basic example"></span>'),Ti=$('<button aria-label="Settings"><i class="bi-gear svelte-9da8a"></i></button> <!>',1),Ci=$('<i class="bi-plus svelte-9da8a"></i>'),Oi=$('<button style="margin-left:20px" class="btn btn-primary btn-sm svelte-9da8a"><!></button>'),Ai=$("<hb-paginate></hb-paginate>",2),Di=$('<table part="table" class="table table-responsive table-striped table-hover align-middle svelte-9da8a" style="table-layout: fixed;width:100%;text-align:left"><thead class="svelte-9da8a"><tr class="svelte-9da8a"><!><!><!></tr><!></thead><tbody class="svelte-9da8a"><!></tbody></table> <nav part="table-actions" style="margin-top:20px" aria-label="actions on selected" class="svelte-9da8a"><!> <!> <!> <!></nav>',1),zi=$("<hb-dialogform></hb-dialogform> <hb-dialog></hb-dialog> <!>",3);const Ni={hash:"svelte-9da8a",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
2
+ `).some(d=>d.startsWith("https://svelte.dev/e/")))throw i;return i!==fa&&console.warn("Failed to hydrate: ",i),t.recover===!1&&yn(),xr(),io(a),st(!1),Ao(e,t)}finally{st(r),Be(l)}}const ka=new Map;function Do(e,{target:t,anchor:a,props:r={},events:l,context:n,intro:i=!0}){xr();var d=new Set,m=x=>{for(var f=0;f<x.length;f++){var h=x[f];if(!d.has(h)){d.add(h);var M=sl(h);t.addEventListener(h,za,{passive:M});var Y=ka.get(h);Y===void 0?(document.addEventListener(h,za,{passive:M}),ka.set(h,1)):ka.set(h,Y+1)}}};m(dr(Co)),kr.add(m);var v=void 0,b=Gn(()=>{var x=a??t.appendChild(tt());return Nn(x,{pending:()=>{}},f=>{if(n){Br({});var h=bt;h.c=n}if(l&&(r.$$events=l),R&&Kt(f,null),v=e(f,r)||{},R&&(X.nodes_end=K,K===null||K.nodeType!==na||K.data!==ir))throw Wa(),fa;n&&Hr()}),()=>{for(var f of d){t.removeEventListener(f,za);var h=ka.get(f);--h===0?(document.removeEventListener(f,za),ka.delete(f)):ka.set(f,h)}kr.delete(m),x!==a&&x.parentNode?.removeChild(x)}});return $r.set(v,b),v}let $r=new WeakMap;function ml(e,t){const a=$r.get(e);return a?($r.delete(e),a(t)):Promise.resolve()}class vl{anchor;#t=new Map;#e=new Map;#a=new Map;#r=new Set;#s=!0;constructor(t,a=!0){this.anchor=t,this.#s=a}#n=()=>{var t=ke;if(this.#t.has(t)){var a=this.#t.get(t),r=this.#e.get(a);if(r)_r(r),this.#r.delete(a);else{var l=this.#a.get(a);l&&(this.#e.set(a,l.effect),this.#a.delete(a),l.fragment.lastChild.remove(),this.anchor.before(l.fragment),r=l.effect)}for(const[n,i]of this.#t){if(this.#t.delete(n),n===t)break;const d=this.#a.get(i);d&&(at(d.effect),this.#a.delete(i))}for(const[n,i]of this.#e){if(n===a||this.#r.has(n))continue;const d=()=>{if(Array.from(this.#t.values()).includes(n)){var v=document.createDocumentFragment();xo(i,v),v.append(tt()),this.#a.set(n,{effect:i,fragment:v})}else at(i);this.#r.delete(n),this.#e.delete(n)};this.#s||!r?(this.#r.add(n),_a(i,d,!1)):d()}}};#o=t=>{this.#t.delete(t);const a=Array.from(this.#t.values());for(const[r,l]of this.#a)a.includes(r)||(at(l.effect),this.#a.delete(r))};ensure(t,a){var r=ke,l=so();if(a&&!this.#e.has(t)&&!this.#a.has(t))if(l){var n=document.createDocumentFragment(),i=tt();n.append(i),this.#a.set(t,{effect:ht(()=>a(i)),fragment:n})}else this.#e.set(t,ht(()=>a(this.anchor)));if(this.#t.set(r,t),l){for(const[d,m]of this.#e)d===t?r.skipped_effects.delete(m):r.skipped_effects.add(m);for(const[d,m]of this.#a)d===t?r.skipped_effects.delete(m.effect):r.skipped_effects.add(m.effect);r.oncommit(this.#n),r.ondiscard(this.#o)}else R&&(this.anchor=K),this.#n()}}function S(e,t,a=!1){R&&Sa();var r=new vl(e),l=a?ga:0;function n(i,d){if(R){const v=Pr(e)===Ra;if(i===v){var m=qa();Be(m),r.anchor=m,st(!1),r.ensure(i,d),st(!0);return}}r.ensure(i,d)}Xa(()=>{var i=!1;t((d,m=!0)=>{i=!0,n(m,d)}),i||n(!1,null)},l)}function zo(e,t,a,r,l){R&&Sa();var n=t.$$slots?.[a],i=!1;n===!0&&(n=t[a==="default"?"children":a],i=!0),n===void 0?l!==null&&l(e):n(e,i?()=>r:r)}function pl(e,t){let a=null,r=R;var l;if(R){a=K;for(var n=Zt(document.head);n!==null&&(n.nodeType!==na||n.data!==e);)n=ut(n);if(n===null)st(!1);else{var i=ut(n);n.remove(),Be(i)}}R||(l=document.head.appendChild(tt()));try{Xa(()=>t(l),pr)}finally{r&&(st(!0),Be(a))}}function cl(e,t){Kn(()=>{var a=e.getRootNode(),r=a.host?a:a.head??a.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const l=document.createElement("style");l.id=t.hash,l.textContent=t.code,r.appendChild(l)}})}function bl(e,t,a){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function fl(e,t){return e==null?null:String(e)}function Me(e,t,a,r,l,n){var i=e.__className;if(R||i!==a||i===void 0){var d=bl(a,r);(!R||d!==e.getAttribute("class"))&&(d==null?e.removeAttribute("class"):e.className=d),e.__className=a}return n}function tr(e,t,a,r){var l=e.__style;if(R||l!==t){var n=fl(t);(!R||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return r}const gl=Symbol("is custom element"),ul=Symbol("is html");function hl(e){if(R){var t=!1,a=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;zt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var l=e.checked;zt(e,"checked",null),e.checked=l}}};e.__on_r=a,xa(a),Wn()}}function zt(e,t,a,r){var l=xl(e);R&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=a)&&(t==="loading"&&(e[fn]=a),a==null?e.removeAttribute(t):typeof a!="string"&&No(e).includes(t)?e[t]=a:e.setAttribute(t,a))}function $e(e,t,a){var r=W,l=X;let n=R;R&&st(!1),Je(null),xt(null);try{t!=="style"&&(jr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?No(e).includes(t):a&&typeof a=="object")?e[t]=a:zt(e,t,a==null?a:String(a))}finally{Je(r),xt(l),n&&st(!0)}}function xl(e){return e.__attributes??={[gl]:e.nodeName.includes("-"),[ul]:e.namespaceURI===sn}}var jr=new Map;function No(e){var t=e.getAttribute("is")||e.nodeName,a=jr.get(t);if(a)return a;jr.set(t,a=[]);for(var r,l=e,n=Element.prototype;n!==l;){r=mn(l);for(var i in r)r[i].set&&a.push(i);l=zr(l)}return a}let ar=!1;function wl(e){var t=ar;try{return ar=!1,[e(),ar]}finally{ar=t}}function xe(e,t,a,r){var l=(a&rn)!==0,n=(a&on)!==0,i=r,d=!0,m=()=>(d&&(d=!1,i=n?To(r):r),i),v;if(l){var b=Ha in e||Rr in e;v=aa(e,t)?.set??(b&&t in e?G=>e[t]=G:void 0)}var x,f=!1;l?[x,f]=wl(()=>e[t]):x=e[t],x===void 0&&r!==void 0&&(x=m(),v&&(_n(),v(x)));var h;if(h=()=>{var G=e[t];return G===void 0?m():(d=!0,G)},(a&an)===0)return h;if(v){var M=e.$$legacy;return(function(G,je){return arguments.length>0?((!je||M||f)&&v(je?h():G),G):h()})}var Y=!1,k=((a&tn)!==0?Ga:Kr)(()=>(Y=!1,h()));l&&o(k);var q=X;return(function(G,je){if(arguments.length>0){const ie=je?o(k):l?nt(G):G;return U(k,ie),Y=!0,i!==void 0&&(i=ie),G}return da&&Y||(q.f&Pt)!==0?k.v:o(k)})}function yl(e){return new _l(e)}class _l{#t;#e;constructor(t){var a=new Map,r=(n,i)=>{var d=to(i,!1,!1);return a.set(n,d),d};const l=new Proxy({...t.props||{},$$events:{}},{get(n,i){return o(a.get(i)??r(i,Reflect.get(n,i)))},has(n,i){return i===Rr?!0:(o(a.get(i)??r(i,Reflect.get(n,i))),Reflect.has(n,i))},set(n,i,d){return U(a.get(i)??r(i,d),d),Reflect.set(n,i,d)}});this.#e=(t.hydrate?dl:Ao)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ue(),this.#t=l.$$events;for(const n of Object.keys(this.#e))n==="$set"||n==="$destroy"||n==="$on"||Fa(this,n,{get(){return this.#e[n]},set(i){this.#e[n]=i},enumerable:!0});this.#e.$set=n=>{Object.assign(l,n)},this.#e.$destroy=()=>{ml(this.#e)}}$set(t){this.#e.$set(t)}$on(t,a){this.#t[t]=this.#t[t]||[];const r=(...l)=>a.call(this,...l);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(l=>l!==r)}}$destroy(){this.#e.$destroy()}}let Lo;typeof HTMLElement=="function"&&(Lo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,a){super(),this.$$ctor=e,this.$$s=t,a&&this.attachShadow({mode:"open"})}addEventListener(e,t,a){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,a)}removeEventListener(e,t,a){if(super.removeEventListener(e,t,a),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return l=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),u(l,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},a=kl(this);for(const r of this.$$s)r in a&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=rr(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=yl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zn(()=>{co(()=>{this.$$r=!0;for(const r of Pa(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const l=rr(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1})});for(const r in this.$$l)for(const l of this.$$l[r]){const n=this.$$c.$on(r,l);this.$$l_u.set(l,n)}this.$$l={}}}attributeChangedCallback(e,t,a){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rr(e,a,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 Pa(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function rr(e,t,a,r){const l=a[e]?.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!a[e])return t;if(r==="toAttribute")switch(l){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(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function kl(e){const t={};return e.childNodes.forEach(a=>{t[a.slot||"default"]=!0}),t}function $l(e,t,a,r,l,n){let i=class extends Lo{constructor(){super(e,a,l),this.$$p_d=t}static get observedAttributes(){return Pa(t).map(d=>(t[d].attribute||d).toLowerCase())}};return Pa(t).forEach(d=>{Fa(i.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(m){m=rr(d,m,t),this.$$d[d]=m;var v=this.$$c;if(v){var b=aa(v,d)?.get;b?v[d]=m:v.$set({[d]:m})}}})}),r.forEach(d=>{Fa(i.prototype,d,{get(){return this.$$c?.[d]}})}),e.element=i,i}function jl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={exports:{}},El=or.exports,Io;function Ro(){return Io||(Io=1,(function(e,t){(function(a,r){e.exports=r()})(El,(function(){var a=1e3,r=6e4,l=36e5,n="millisecond",i="second",d="minute",m="hour",v="day",b="week",x="month",f="quarter",h="year",M="date",Y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(y){var c=["th","st","nd","rd"],g=y%100;return"["+y+(c[(g-20)%10]||c[g]||c[0])+"]"}},je=function(y,c,g){var _=String(y);return!_||_.length>=c?y:""+Array(c+1-_.length).join(g)+y},ie={s:je,z:function(y){var c=-y.utcOffset(),g=Math.abs(c),_=Math.floor(g/60),w=g%60;return(c<=0?"+":"-")+je(_,2,"0")+":"+je(w,2,"0")},m:function y(c,g){if(c.date()<g.date())return-y(g,c);var _=12*(g.year()-c.year())+(g.month()-c.month()),w=c.clone().add(_,x),N=g-w<0,L=c.clone().add(_+(N?-1:1),x);return+(-(_+(g-w)/(N?w-L:L-w))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:x,y:h,w:b,d:v,D:M,h:m,m:d,s:i,ms:n,Q:f}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},He="en",De={};De[He]=G;var Ge="$isDayjsObject",Ke=function(y){return y instanceof yt||!(!y||!y[Ge])},Ue=function y(c,g,_){var w;if(!c)return He;if(typeof c=="string"){var N=c.toLowerCase();De[N]&&(w=N),g&&(De[N]=g,w=N);var L=c.split("-");if(!w&&L.length>1)return y(L[0])}else{var se=c.name;De[se]=c,w=se}return!_&&w&&(He=w),w||!_&&He},ce=function(y,c){if(Ke(y))return y.clone();var g=typeof c=="object"?c:{};return g.date=y,g.args=arguments,new yt(g)},A=ie;A.l=Ue,A.i=Ke,A.w=function(y,c){return ce(y,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var yt=(function(){function y(g){this.$L=Ue(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[Ge]=!0}var c=y.prototype;return c.parse=function(g){this.$d=(function(_){var w=_.date,N=_.utc;if(w===null)return new Date(NaN);if(A.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var L=w.match(k);if(L){var se=L[2]-1||0,de=(L[7]||"0").substring(0,3);return N?new Date(Date.UTC(L[1],se,L[3]||1,L[4]||0,L[5]||0,L[6]||0,de)):new Date(L[1],se,L[3]||1,L[4]||0,L[5]||0,L[6]||0,de)}}return new Date(w)})(g),this.init()},c.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},c.$utils=function(){return A},c.isValid=function(){return this.$d.toString()!==Y},c.isSame=function(g,_){var w=ce(g);return this.startOf(_)<=w&&w<=this.endOf(_)},c.isAfter=function(g,_){return ce(g)<this.startOf(_)},c.isBefore=function(g,_){return this.endOf(_)<ce(g)},c.$g=function(g,_,w){return A.u(g)?this[_]:this.set(w,g)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(g,_){var w=this,N=!!A.u(_)||_,L=A.p(g),se=function(Ht,Pe){var vt=A.w(w.$u?Date.UTC(w.$y,Pe,Ht):new Date(w.$y,Pe,Ht),w);return N?vt:vt.endOf(v)},de=function(Ht,Pe){return A.w(w.toDate()[Ht].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(Pe)),w)},V=this.$W,J=this.$M,lt=this.$D,Qt="set"+(this.$u?"UTC":"");switch(L){case h:return N?se(1,0):se(31,11);case x:return N?se(1,J):se(0,J+1);case b:var Bt=this.$locale().weekStart||0,mt=(V<Bt?V+7:V)-Bt;return se(N?lt-mt:lt+(6-mt),J);case v:case M:return de(Qt+"Hours",0);case m:return de(Qt+"Minutes",1);case d:return de(Qt+"Seconds",2);case i:return de(Qt+"Milliseconds",3);default:return this.clone()}},c.endOf=function(g){return this.startOf(g,!1)},c.$set=function(g,_){var w,N=A.p(g),L="set"+(this.$u?"UTC":""),se=(w={},w[v]=L+"Date",w[M]=L+"Date",w[x]=L+"Month",w[h]=L+"FullYear",w[m]=L+"Hours",w[d]=L+"Minutes",w[i]=L+"Seconds",w[n]=L+"Milliseconds",w)[N],de=N===v?this.$D+(_-this.$W):_;if(N===x||N===h){var V=this.clone().set(M,1);V.$d[se](de),V.init(),this.$d=V.set(M,Math.min(this.$D,V.daysInMonth())).$d}else se&&this.$d[se](de);return this.init(),this},c.set=function(g,_){return this.clone().$set(g,_)},c.get=function(g){return this[A.p(g)]()},c.add=function(g,_){var w,N=this;g=Number(g);var L=A.p(_),se=function(J){var lt=ce(N);return A.w(lt.date(lt.date()+Math.round(J*g)),N)};if(L===x)return this.set(x,this.$M+g);if(L===h)return this.set(h,this.$y+g);if(L===v)return se(1);if(L===b)return se(7);var de=(w={},w[d]=r,w[m]=l,w[i]=a,w)[L]||1,V=this.$d.getTime()+g*de;return A.w(V,this)},c.subtract=function(g,_){return this.add(-1*g,_)},c.format=function(g){var _=this,w=this.$locale();if(!this.isValid())return w.invalidDate||Y;var N=g||"YYYY-MM-DDTHH:mm:ssZ",L=A.z(this),se=this.$H,de=this.$m,V=this.$M,J=w.weekdays,lt=w.months,Qt=w.meridiem,Bt=function(Pe,vt,ea,ja){return Pe&&(Pe[vt]||Pe(_,N))||ea[vt].slice(0,ja)},mt=function(Pe){return A.s(se%12||12,Pe,"0")},Ht=Qt||function(Pe,vt,ea){var ja=Pe<12?"AM":"PM";return ea?ja.toLowerCase():ja};return N.replace(q,(function(Pe,vt){return vt||(function(ea){switch(ea){case"YY":return String(_.$y).slice(-2);case"YYYY":return A.s(_.$y,4,"0");case"M":return V+1;case"MM":return A.s(V+1,2,"0");case"MMM":return Bt(w.monthsShort,V,lt,3);case"MMMM":return Bt(lt,V);case"D":return _.$D;case"DD":return A.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Bt(w.weekdaysMin,_.$W,J,2);case"ddd":return Bt(w.weekdaysShort,_.$W,J,3);case"dddd":return J[_.$W];case"H":return String(se);case"HH":return A.s(se,2,"0");case"h":return mt(1);case"hh":return mt(2);case"a":return Ht(se,de,!0);case"A":return Ht(se,de,!1);case"m":return String(de);case"mm":return A.s(de,2,"0");case"s":return String(_.$s);case"ss":return A.s(_.$s,2,"0");case"SSS":return A.s(_.$ms,3,"0");case"Z":return L}return null})(Pe)||L.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(g,_,w){var N,L=this,se=A.p(_),de=ce(g),V=(de.utcOffset()-this.utcOffset())*r,J=this-de,lt=function(){return A.m(L,de)};switch(se){case h:N=lt()/12;break;case x:N=lt();break;case f:N=lt()/3;break;case b:N=(J-V)/6048e5;break;case v:N=(J-V)/864e5;break;case m:N=J/l;break;case d:N=J/r;break;case i:N=J/a;break;default:N=J}return w?N:A.a(N)},c.daysInMonth=function(){return this.endOf(x).$D},c.$locale=function(){return De[this.$L]},c.locale=function(g,_){if(!g)return this.$L;var w=this.clone(),N=Ue(g,_,!0);return N&&(w.$L=N),w},c.clone=function(){return A.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},y})(),Te=yt.prototype;return ce.prototype=Te,[["$ms",n],["$s",i],["$m",d],["$H",m],["$W",v],["$M",x],["$y",h],["$D",M]].forEach((function(y){Te[y[1]]=function(c){return this.$g(c,y[0],y[1])}})),ce.extend=function(y,c){return y.$i||(y(c,yt,ce),y.$i=!0),ce},ce.locale=Ue,ce.isDayjs=Ke,ce.unix=function(y){return ce(1e3*y)},ce.en=De[He],ce.Ls=De,ce.p={},ce}))})(or)),or.exports}var Sl=Ro();const Xt=jl(Sl);var nr={exports:{}},Ml=nr.exports,Po;function Tl(){return Po||(Po=1,(function(e,t){(function(a,r){e.exports=r(Ro())})(Ml,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var l=r(a),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(i){return i+"º"}};return l.default.locale(n,null,!0),n}))})(nr)),nr.exports}Tl();const lr={version:"0.65.19"};var ca={},Fo;function Cl(){if(Fo)return ca;Fo=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.LanguageTranslator=void 0,ca.getChildStyleToPass=e,ca.addComponent=t;function e(r,l){var n,i,d="";try{if(r&&l?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((i=l?.filter(function(f){return Object.keys(r).includes(f.name)}))===null||i===void 0)&&i.length))for(var m=function(f){var h=l?.filter(function(M){return M.name===f&&M.defaultValue!==r[f]});h&&(d+="".concat(f,":").concat(r[f],";"))},v=0,b=Object.keys(r);v<b.length;v++){var x=b[v];m(x)}}catch(f){console.error("error getting child style to pass",f)}finally{return d}}function t(r){var l,n=((l=r?.repoName.split("/"))===null||l===void 0?void 0:l[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var i=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var d=document.createElement("script");if(d.id=n+"-script",d.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(i),r?.local)d.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var m=n.split("-")[0];d.src="http://localhost:6006/webcomponents/".concat(n.replace(m+"-",""),"/").concat(i)}document.head.appendChild(d)}catch(v){console.warn(v)}}var a=(function(){function r(l){if(this.lang="",!l?.dictionary)throw new Error("no dictionary provided");this.dictionary=l.dictionary,this.setLang(l?.lang)}return r.prototype.setLang=function(l){l||(l=r.getDefaultLang()),this.lang=l},r.prototype.translateWord=function(l,n){return r.getDictionaryWord(l,this.dictionary,n||this.lang)},r.prototype.translateDate=function(l,n,i){return r.formatDate(l,n,i||this.lang)},r.getDefaultLang=function(){var l,n,i,d="en";return navigator?.languages&&(!((i=(n=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.length)&&(d=navigator.languages[0].split("-")[0].toLowerCase()),d},r.getDictionaryWord=function(l,n,i){var d;if(!l)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(i&&(!((d=n[i])===null||d===void 0)&&d[l]))return n[i][l];var m="",v=r.getDefaultLang();if(!i||v!==i){var b=n?.[v];b?.[l]&&(m=b[l])}return m},r.formatDate=function(l,n,i){if(!l)throw new Error("no date provided");if(typeof l.getMonth!="function")throw new Error("wrong date format");var d=new Intl.DateTimeFormat(i||r.getDefaultLang(),n);return d.format(l)},r})();return ca.LanguageTranslator=a,ca}var $a=Cl();const Yo={en:{actions:"Actions",selectAll:"Select all",deselectAll:"Deselect all",start:"Start",end:"End",all:"all"},it:{actions:"Azioni",selectAll:"Seleziona tutti",deselectAll:"Deseleziona tutti",start:"Inizio",end:"Fine",all:"tutti"}};var Ol=$('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-9da8a"/>'),Al=$('<button aria-label="Select all" class="btn btn-link svelte-9da8a"> </button>'),Dl=$('<button aria-label="Deselect all" class="btn btn-link svelte-9da8a"> </button>'),zl=$('<th scope="col" class="svelte-9da8a"><!></th>'),Nl=$('<th scope="col" class="svelte-9da8a"></th>'),Ll=$('<hb-tooltip><i class="bi bi-info-circle svelte-9da8a"></i> </hb-tooltip>',2),Il=$('<button style="border:none; background-color:inherit" class="svelte-9da8a"><!></button>'),Rl=$('<th scope="col" class="svelte-9da8a"><!> <!></th>'),Pl=$('<th scope="col" class="svelte-9da8a"> </th>'),Fl=$('<th scope="col" class="svelte-9da8a"> </th>'),Yl=$('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Bl=$('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),Hl=$('<option class="svelte-9da8a"> </option>'),Ul=$('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),Wl=$('<th scope="col" class="svelte-9da8a"><!> <!></th>'),ql=$('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),Vl=$("<!> <!>",1),Jl=$('<tr class="svelte-9da8a"><!><!></tr>'),Zl=$('<button class="btn btn-link svelte-9da8a"> </button>'),Gl=$('<button class="btn btn-link svelte-9da8a"> </button>'),Kl=$('<th scope="col" class="svelte-9da8a"><!></th>'),Xl=$('<span style="width:50px;display:inline-block" class="svelte-9da8a">Inizio</span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Ql=$('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),ei=$('<option class="svelte-9da8a"> </option>'),ti=$('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),ai=$('<th scope="col" class="svelte-9da8a"><!></th>'),ri=$('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),oi=$('<th scope="col" class="svelte-9da8a"> </th>'),ni=$('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),li=$('<th scope="col" class="svelte-9da8a"><!></th>'),ii=$('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),si=$('<tr class="svelte-9da8a"><!><!><!></tr> <tr class="svelte-9da8a"><!><!><!></tr>',1),di=$('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox" checked/>'),mi=$('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox"/>'),vi=$('<td style="box-shadow: none;" class="svelte-9da8a"><div class="form-check svelte-9da8a"><!></div></td>'),pi=$('<button type="button" style="margin-right:10px" disabled> </button>'),ci=$('<button type="button" style="margin-right:10px" disabled><i></i></button>'),bi=$('<button type="button" style="margin-right:10px"> </button>'),fi=$("<hb-tooltip><button><i></i></button></hb-tooltip>",2),gi=$('<button type="button" style="margin-right:10px"><i></i></button>'),ui=$('<td class="svelte-9da8a"></td>'),hi=$('<td class="svelte-9da8a"></td>'),xi=$('<button type="button" class="btn btn-link svelte-9da8a"> </button>'),wi=$('<button type="button" class="btn btn-link svelte-9da8a" aria-label="Copy to clipboard"><i class="bi-clipboard svelte-9da8a"></i></button>'),yi=$('<td class="svelte-9da8a"><!> <!></td>'),_i=$('<button type="button" style="margin-right:10px"> </button>'),ki=$('<hb-tooltip><button type="button" style="margin-right:10px"><i></i></button></hb-tooltip>',2),$i=$('<button type="button" style="margin-right:10px"><i></i></button>'),ji=$('<td class="svelte-9da8a"></td>'),Ei=$("<tr><!><!><!></tr>"),Si=$('<button type="button" class="btn btn-outline-primary svelte-9da8a"> </button>'),Mi=$('<span style="margin-left:20px" class="btn-group btn-group-sm svelte-9da8a" role="group" aria-label="Basic example"></span>'),Ti=$('<button aria-label="Settings"><i class="bi-gear svelte-9da8a"></i></button> <!>',1),Ci=$('<i class="bi-plus svelte-9da8a"></i>'),Oi=$('<button style="margin-left:20px" class="btn btn-primary btn-sm svelte-9da8a"><!></button>'),Ai=$("<hb-paginate></hb-paginate>",2),Di=$('<table part="table" class="table table-responsive table-striped table-hover align-middle svelte-9da8a" style="table-layout: fixed;width:100%;text-align:left"><thead class="svelte-9da8a"><tr class="svelte-9da8a"><!><!><!></tr><!></thead><tbody class="svelte-9da8a"><!></tbody></table> <nav part="table-actions" style="margin-top:20px" aria-label="actions on selected" class="svelte-9da8a"><!> <!> <!> <!></nav>',1),zi=$("<hb-dialogform></hb-dialogform> <hb-dialog></hb-dialog> <!>",3);const Ni={hash:"svelte-9da8a",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
3
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
4
4
  /*!
5
5
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
package/manifest.json CHANGED
@@ -3491,5 +3491,5 @@
3491
3491
  "size": {},
3492
3492
  "iifePath": "main.iife.js",
3493
3493
  "repoName": "@htmlbricks/hb-table",
3494
- "version": "0.65.18"
3494
+ "version": "0.65.19"
3495
3495
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-table",
3
- "version": "0.65.18",
3
+ "version": "0.65.19",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [