@htmlbricks/hb-page-invoice 0.65.16 → 0.65.18

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(ur){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Tn=1,Dn=4,On=8,Nn=16,An=1,Cn=2,fr="[",Yt="[!",cr="]",We={},H=Symbol(),Ln="http://www.w3.org/1999/xhtml",Ft=!1;var Pn=Array.isArray,Rn=Array.prototype.indexOf,jn=Array.from,gt=Object.keys,mt=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,In=Object.getOwnPropertyDescriptors,Yn=Object.prototype,Fn=Array.prototype,dr=Object.getPrototypeOf,hr=Object.isExtensible;function qn(e){for(var t=0;t<e.length;t++)e[t]()}function vr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const F=2,qt=4,Ht=8,ye=16,we=32,De=64,yt=128,le=512,U=1024,G=2048,$e=4096,ve=8192,xe=16384,wt=32768,Ve=65536,br=1<<17,_r=1<<18,je=1<<19,Hn=1<<20,Ie=32768,Ut=1<<21,zt=1<<22,Oe=1<<23,$t=Symbol("$state"),pr=Symbol("legacy props"),Un=Symbol(""),Je=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xt=3,st=8;function zn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Vn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Jn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Zn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Qn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ei(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Et(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ti(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function Ne(e){T=e}let O;function te(e){if(e===null)throw Et(),We;return O=e}function Bt(){return te(ke(O))}function k(e){if(T){if(ke(O)!==null)throw Et(),We;O=e}}function ri(e=1){if(T){for(var t=e,r=O;t--;)r=ke(r);O=r}}function gr(e=!0){for(var t=0,r=O;;){if(r.nodeType===st){var n=r.data;if(n===cr){if(t===0)return r;t-=1}else(n===fr||n===Yt)&&(t+=1)}var s=ke(r);e&&r.remove(),r=s}}function ni(e){if(!e||e.nodeType!==st)throw Et(),We;return e.data}function mr(e){return e===this.v}function ii(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yr(e){return!ii(e,this.v)}let si=!1,re=null;function Ze(e){re=e}function wr(e,t=!1,r){re={p:re,i:!1,c:null,e:null,s:e,x:null,l:null}}function $r(e){var t=re,r=t.e;if(r!==null){t.e=null;for(var n of r)Yr(n)}return e!==void 0&&(t.x=e),t.i=!0,re=t.p,e??{}}function xr(){return!0}let Ye=[];function Er(){var e=Ye;Ye=[],qn(e)}function Wt(e){if(Ye.length===0&&!at){var t=Ye;queueMicrotask(()=>{t===Ye&&Er()})}Ye.push(e)}function ai(){for(;Ye.length>0;)Er()}function kr(e){var t=x;if(t===null)return $.f|=Oe,e;if((t.f&wt)===0){if((t.f&yt)===0)throw e;t.b.error(e)}else Ge(e,t)}function Ge(e,t){for(;t!==null;){if((t.f&yt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const kt=new Set;let C=null,ne=null,ie=[],St=null,Vt=!1,at=!1;class ue{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){ie=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#f(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(C=null,Mr(r.render_effects),Mr(r.effects),this.#l?.resolve()),ne=null}#a(t,r){t.f^=U;for(var n=t.first;n!==null;){var s=n.f,i=(s&(we|De))!==0,a=i&&(s&U)!==0,o=a||(s&ve)!==0||this.skipped_effects.has(n);if((n.f&yt)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){i?n.f^=U:(s&qt)!==0?r.effects.push(n):dt(n)&&((n.f&ye)!==0&&r.block_effects.push(n),ht(n));var l=n.first;if(l!==null){n=l;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)u===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=u.next,u=u.parent}}#o(t){for(const r of t)((r.f&G)!==0?this.#s:this.#i).push(r),this.#u(r.deps),B(r,U)}#u(t){if(t!==null)for(const r of t)(r.f&F)===0||(r.f&Ie)===0||(r.f^=Ie,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Oe)===0&&(this.current.set(t,t.v),ne?.set(t,t.v))}activate(){C=this,this.apply()}deactivate(){C===this&&(C=null,ne=null)}flush(){if(this.activate(),ie.length>0){if(Sr(),C!==null&&C!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(kt.size>1){this.previous.clear();var t=ne,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of kt){if(i===this){r=!1;continue}const a=[];for(const[l,u]of this.current){if(i.current.has(l))if(r&&u!==i.current.get(l))i.current.set(l,u);else continue;a.push(l)}if(a.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var s=ie;ie=[];const l=new Set,u=new Map;for(const _ of a)Tr(_,o,l,u);if(ie.length>0){C=i,i.apply();for(const _ of ie)i.#a(_,n);i.deactivate()}ie=s}}C=null,ne=t}this.committed=!0,kt.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)B(t,G),Fe(t);for(const t of this.#i)B(t,$e),Fe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=vr()).promise}static ensure(){if(C===null){const t=C=new ue;kt.add(C),at||ue.enqueue(()=>{C===t&&t.flush()})}return C}static enqueue(t){Wt(t)}apply(){}}function ot(e){var t=at;at=!0;try{for(var r;;){if(ai(),ie.length===0&&(C?.flush(),ie.length===0))return St=null,r;Sr()}}finally{at=t}}function Sr(){var e=Ce;Vt=!0;var t=null;try{var r=0;for(Nt(!0);ie.length>0;){var n=ue.ensure();if(r++>1e3){var s,i;oi()}n.process(ie),Ae.clear()}}finally{Vt=!1,Nt(e),St=null}}function oi(){try{Jn()}catch(e){Ge(e,St)}}let Ee=null;function Mr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(xe|ve))===0&&dt(n)&&(Ee=new Set,ht(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?zr(n):n.fn=null),Ee?.size>0)){Ae.clear();for(const s of Ee){if((s.f&(xe|ve))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)Ee.has(a)&&(Ee.delete(a),i.push(a)),a=a.parent;for(let o=i.length-1;o>=0;o--){const l=i[o];(l.f&(xe|ve))===0&&ht(l)}}Ee.clear()}}Ee=null}}function Tr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&F)!==0?Tr(s,t,r,n):(i&(zt|ye))!==0&&(i&G)===0&&Dr(s,t,n)&&(B(s,G),Fe(s))}}function Dr(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&F)!==0&&Dr(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Fe(e){for(var t=St=e;t.parent!==null;){t=t.parent;var r=t.f;if(Vt&&t===x&&(r&ye)!==0&&(r&_r)===0)return;if((r&(De|we))!==0){if((r&U)===0)return;t.f^=U}}ie.push(t)}function li(e){let t=0,r=lt(0),n;return()=>{Ot()&&(N(r),Fr(()=>(t===0&&(n=nn(()=>e(()=>ut(r)))),t+=1,()=>{Wt(()=>{t-=1,t===0&&(n?.(),n=void 0,ut(r))})})))}}var ui=Ve|je|yt;function fi(e,t,r){new ci(e,t,r)}class ci{parent;#t=!1;#e;#r=T?O:null;#n;#l;#s;#i=null;#a=null;#o=null;#u=null;#f=null;#c=0;#d=0;#v=!1;#h=null;#m=li(()=>(this.#h=lt(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=x.b,this.#t=!!this.#n.pending,this.#s=qr(()=>{if(x.b=this,T){const i=this.#r;Bt(),i.nodeType===st&&i.data===Yt?this.#w():this.#y()}else{var s=this.#p();try{this.#i=Se(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#f?.remove()}},ui),T&&(this.#e=O)}#y(){try{this.#i=Se(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#a=Se(()=>t(this.#e)),ue.enqueue(()=>{var r=this.#p();this.#i=this.#b(()=>(ue.ensure(),Se(()=>this.#l(r)))),this.#d>0?this.#_():(ft(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#f=fe(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=x,n=$,s=re;ae(this.#s),z(this.#s),Ze(this.#s.ctx);try{return t()}catch(i){return kr(i),null}finally{ae(r),z(n),Ze(s)}}#_(){const t=this.#n.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),Vr(this.#i,this.#u)),this.#a===null&&(this.#a=Se(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&ft(this.#a,()=>{this.#a=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&Dt(this.#h,this.#c)}get_effect_pending(){return this.#m(),N(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(K(this.#i),this.#i=null),this.#a&&(K(this.#a),this.#a=null),this.#o&&(K(this.#o),this.#o=null),T&&(te(this.#r),ri(),te(gr()));var s=!1,i=!1;const a=()=>{if(s){ti();return}s=!0,i&&ei(),ue.ensure(),this.#c=0,this.#o!==null&&ft(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#b(()=>(this.#v=!1,Se(()=>this.#l(this.#e)))),this.#d>0?this.#_():this.#t=!1};var o=$;try{z(null),i=!0,r?.(t,a),i=!1}catch(l){Ge(l,this.#s&&this.#s.parent)}finally{z(o)}n&&Wt(()=>{this.#o=this.#b(()=>{ue.ensure(),this.#v=!0;try{return Se(()=>{n(this.#e,()=>t,()=>a)})}catch(l){return Ge(l,this.#s.parent),null}finally{this.#v=!1}})})}}function di(e,t,r,n){const s=Tt;if(r.length===0&&e.length===0){n(t.map(s));return}var i=C,a=x,o=hi();function l(){Promise.all(r.map(u=>vi(u))).then(u=>{o();try{n([...t.map(s),...u])}catch(_){(a.f&xe)===0&&Ge(_,a)}i?.deactivate(),Mt()}).catch(u=>{Ge(u,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{i?.deactivate(),Mt()}}):l()}function hi(){var e=x,t=$,r=re,n=C;return function(i=!0){ae(e),z(t),Ze(r),i&&n?.activate()}}function Mt(){ae(null),z(null),Ze(null)}function Tt(e){var t=F|G,r=$!==null&&($.f&F)!==0?$:null;return x!==null&&(x.f|=je),{ctx:re,deps:null,effects:null,equals:mr,f:t,fn:e,reactions:null,rv:0,v:H,wv:0,parent:r??x,ac:null}}function vi(e,t){let r=x;r===null&&zn();var n=r.b,s=void 0,i=lt(H),a=!$,o=new Map;return Di(()=>{var l=vr();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{u===C&&u.committed&&u.deactivate(),Mt()})}catch(f){l.reject(f),Mt()}var u=C;if(a){var _=!n.is_pending();n.update_pending_count(1),u.increment(_),o.get(u)?.reject(Je),o.delete(u),o.set(u,l)}const h=(f,v=void 0)=>{if(u.activate(),v)v!==Je&&(i.f|=Oe,Dt(i,v));else{(i.f&Oe)!==0&&(i.f^=Oe),Dt(i,f);for(const[E,j]of o){if(o.delete(E),E===u)break;j.reject(Je)}}a&&(n.update_pending_count(-1),u.decrement(_))};l.promise.then(h,f=>h(null,f||"unknown"))}),Ei(()=>{for(const l of o.values())l.reject(Je)}),new Promise(l=>{function u(_){function h(){_===s?l(i):u(s)}_.then(h,h)}u(s)})}function Ke(e){const t=Tt(e);return Zr(t),t}function bi(e){const t=Tt(e);return t.equals=yr,t}function Or(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)K(t[r])}}function _i(e){for(var t=e.parent;t!==null;){if((t.f&F)===0)return(t.f&xe)===0?t:null;t=t.parent}return null}function Jt(e){var t,r=x;ae(_i(e));try{e.f&=~Ie,Or(e),t=en(e)}finally{ae(r)}return t}function Nr(e){var t=Jt(e);if(e.equals(t)||(C?.is_fork||(e.v=t),e.wv=Qr()),!He)if(ne!==null)Ot()&&ne.set(e,t);else{var r=(e.f&le)===0?$e:U;B(e,r)}}let Zt=new Set;const Ae=new Map;let Ar=!1;function lt(e,t){var r={f:0,v:e,reactions:null,equals:mr,rv:0,wv:0};return r}function se(e,t){const r=lt(e);return Zr(r),r}function pi(e,t=!1,r=!0){const n=lt(e);return t||(n.equals=yr),n}function J(e,t,r=!1){$!==null&&(!_e||($.f&br)!==0)&&xr()&&($.f&(F|ye|zt|br))!==0&&!Me?.includes(e)&&Xn();let n=r?qe(t):t;return Dt(e,n)}function Dt(e,t){if(!e.equals(t)){var r=e.v;He?Ae.set(e,t):Ae.set(e,r),e.v=t;var n=ue.ensure();n.capture(e,r),(e.f&F)!==0&&((e.f&G)!==0&&Jt(e),B(e,(e.f&le)!==0?U:$e)),e.wv=Qr(),Cr(e,G),x!==null&&(x.f&U)!==0&&(x.f&(we|De))===0&&(oe===null?Li([e]):oe.push(e)),!n.is_fork&&Zt.size>0&&!Ar&&gi()}return t}function gi(){Ar=!1;var e=Ce;Nt(!0);const t=Array.from(Zt);try{for(const r of t)(r.f&U)!==0&&B(r,$e),dt(r)&&ht(r)}finally{Nt(e)}Zt.clear()}function ut(e){J(e,e.v+1)}function Cr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],a=i.f,o=(a&G)===0;if(o&&B(i,t),(a&F)!==0){var l=i;ne?.delete(l),(a&Ie)===0&&(a&le&&(i.f|=Ie),Cr(l,$e))}else o&&((a&ye)!==0&&Ee!==null&&Ee.add(i),Fe(i))}}function qe(e){if(typeof e!="object"||e===null||$t in e)return e;const t=dr(e);if(t!==Yn&&t!==Fn)return e;var r=new Map,n=Pn(e),s=se(0),i=Ue,a=o=>{if(Ue===i)return o();var l=$,u=Ue;z(null),Kr(i);var _=o();return z(l),Kr(u),_};return n&&r.set("length",se(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Kn();var _=r.get(l);return _===void 0?_=a(()=>{var h=se(u.value);return r.set(l,h),h}):J(_,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const _=a(()=>se(H));r.set(l,_),ut(s)}}else J(u,H),ut(s);return!0},get(o,l,u){if(l===$t)return e;var _=r.get(l),h=l in o;if(_===void 0&&(!h||Re(o,l)?.writable)&&(_=a(()=>{var v=qe(h?o[l]:H),E=se(v);return E}),r.set(l,_)),_!==void 0){var f=N(_);return f===H?void 0:f}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var _=r.get(l);_&&(u.value=N(_))}else if(u===void 0){var h=r.get(l),f=h?.v;if(h!==void 0&&f!==H)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(o,l){if(l===$t)return!0;var u=r.get(l),_=u!==void 0&&u.v!==H||Reflect.has(o,l);if(u!==void 0||x!==null&&(!_||Re(o,l)?.writable)){u===void 0&&(u=a(()=>{var f=_?qe(o[l]):H,v=se(f);return v}),r.set(l,u));var h=N(u);if(h===H)return!1}return _},set(o,l,u,_){var h=r.get(l),f=l in o;if(n&&l==="length")for(var v=u;v<h.v;v+=1){var E=r.get(v+"");E!==void 0?J(E,H):v in o&&(E=a(()=>se(H)),r.set(v+"",E))}if(h===void 0)(!f||Re(o,l)?.writable)&&(h=a(()=>se(void 0)),J(h,qe(u)),r.set(l,h));else{f=h.v!==H;var j=a(()=>qe(u));J(h,j)}var q=Reflect.getOwnPropertyDescriptor(o,l);if(q?.set&&q.set.call(_,u),!f){if(n&&typeof l=="string"){var Pe=r.get("length"),I=Number(l);Number.isInteger(I)&&I>=Pe.v&&J(Pe,I+1)}ut(s)}return!0},ownKeys(o){N(s);var l=Reflect.ownKeys(o).filter(h=>{var f=r.get(h);return f===void 0||f.v!==H});for(var[u,_]of r)_.v!==H&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Qn()}})}var Lr,Pr,Rr,jr;function Gt(){if(Lr===void 0){Lr=window,Pr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Rr=Re(t,"firstChild").get,jr=Re(t,"nextSibling").get,hr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),hr(r)&&(r.__t=void 0)}}function fe(e=""){return document.createTextNode(e)}function Qe(e){return Rr.call(e)}function ke(e){return jr.call(e)}function S(e,t){if(!T)return Qe(e);var r=Qe(O);if(r===null)r=O.appendChild(fe());else if(t&&r.nodeType!==xt){var n=fe();return r?.before(n),te(n),n}return te(r),r}function mi(e,t=!1){if(!T){var r=Qe(e);return r instanceof Comment&&r.data===""?ke(r):r}if(t&&O?.nodeType!==xt){var n=fe();return O?.before(n),te(n),n}return O}function P(e,t=1,r=!1){let n=T?O:e;for(var s;t--;)s=n,n=ke(n);if(!T)return n;if(r&&n?.nodeType!==xt){var i=fe();return n===null?s?.after(i):n.before(i),te(i),i}return te(n),n}function yi(e){e.textContent=""}function wi(){return!1}function Ir(e){var t=$,r=x;z(null),ae(null);try{return e()}finally{z(t),ae(r)}}function $i(e){x===null&&($===null&&Vn(),Wn()),He&&Bn()}function xi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function be(e,t,r){var n=x;n!==null&&(n.f&ve)!==0&&(e|=ve);var s={ctx:re,deps:null,nodes_start:null,nodes_end:null,f:e|G|le,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ht(s),s.f|=wt}catch(o){throw K(s),o}else t!==null&&Fe(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&je)===0&&(i=i.first,(e&ye)!==0&&(e&Ve)!==0&&i!==null&&(i.f|=Ve)),i!==null&&(i.parent=n,n!==null&&xi(i,n),$!==null&&($.f&F)!==0&&(e&De)===0)){var a=$;(a.effects??=[]).push(i)}return s}function Ot(){return $!==null&&!_e}function Ei(e){const t=be(Ht,null,!1);return B(t,U),t.teardown=e,t}function ki(e){$i();var t=x.f,r=!$&&(t&we)!==0&&(t&wt)===0;if(r){var n=re;(n.e??=[]).push(e)}else return Yr(e)}function Yr(e){return be(qt|Hn,e,!1)}function Si(e){ue.ensure();const t=be(De|je,e,!0);return()=>{K(t)}}function Mi(e){ue.ensure();const t=be(De|je,e,!0);return(r={})=>new Promise(n=>{r.outro?ft(t,()=>{K(t),n(void 0)}):(K(t),n(void 0))})}function Ti(e){return be(qt,e,!1)}function Di(e){return be(zt|je,e,!0)}function Fr(e,t=0){return be(Ht|t,e,!0)}function Kt(e,t=[],r=[],n=[]){di(n,t,r,s=>{be(Ht,()=>e(...s.map(N)),!0)})}function qr(e,t=0){var r=be(ye|t,e,!0);return r}function Se(e){return be(we|je,e,!0)}function Hr(e){var t=e.teardown;if(t!==null){const r=He,n=$;Jr(!0),z(null);try{t.call(null)}finally{Jr(r),z(n)}}}function Ur(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Ir(()=>{s.abort(Je)});var n=r.next;(r.f&De)!==0?r.parent=null:K(r,t),r=n}}function Oi(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&we)===0&&K(t),t=r}}function K(e,t=!0){var r=!1;(t||(e.f&_r)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ni(e.nodes_start,e.nodes_end),r=!0),Ur(e,t&&!r),At(e,0),B(e,xe);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Hr(e);var s=e.parent;s!==null&&s.first!==null&&zr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ni(e,t){for(;e!==null;){var r=e===t?null:ke(e);e.remove(),e=r}}function zr(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 ft(e,t,r=!0){var n=[];Br(e,n,!0),Ai(n,()=>{r&&K(e),t&&t()})}function Ai(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Br(e,t,r){if((e.f&ve)===0){if(e.f^=ve,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&Ve)!==0||(n.f&we)!==0&&(e.f&ye)!==0;Br(n,t,i?r:!1),n=s}}}function Ci(e){Wr(e,!0)}function Wr(e,t){if((e.f&ve)!==0){e.f^=ve,(e.f&U)===0&&(B(e,G),Fe(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Ve)!==0||(r.f&we)!==0;Wr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function Vr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:ke(r);t.append(r),r=s}}let Ce=!1;function Nt(e){Ce=e}let He=!1;function Jr(e){He=e}let $=null,_e=!1;function z(e){$=e}let x=null;function ae(e){x=e}let Me=null;function Zr(e){$!==null&&(Me===null?Me=[e]:Me.push(e))}let Z=null,ee=0,oe=null;function Li(e){oe=e}let Gr=1,ct=0,Ue=ct;function Kr(e){Ue=e}function Qr(){return++Gr}function dt(e){var t=e.f;if((t&G)!==0)return!0;if(t&F&&(e.f&=~Ie),(t&$e)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(dt(i)&&Nr(i),i.wv>e.wv)return!0}(t&le)!==0&&ne===null&&B(e,U)}return!1}function Xr(e,t,r=!0){var n=e.reactions;if(n!==null&&!Me?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&F)!==0?Xr(i,t,!1):t===i&&(r?B(i,G):(i.f&U)!==0&&B(i,$e),Fe(i))}}function en(e){var t=Z,r=ee,n=oe,s=$,i=Me,a=re,o=_e,l=Ue,u=e.f;Z=null,ee=0,oe=null,$=(u&(we|De))===0?e:null,Me=null,Ze(e.ctx),_e=!1,Ue=++ct,e.ac!==null&&(Ir(()=>{e.ac.abort(Je)}),e.ac=null);try{e.f|=Ut;var _=e.fn,h=_(),f=e.deps;if(Z!==null){var v;if(At(e,ee),f!==null&&ee>0)for(f.length=ee+Z.length,v=0;v<Z.length;v++)f[ee+v]=Z[v];else e.deps=f=Z;if(Ce&&Ot()&&(e.f&le)!==0)for(v=ee;v<f.length;v++)(f[v].reactions??=[]).push(e)}else f!==null&&ee<f.length&&(At(e,ee),f.length=ee);if(xr()&&oe!==null&&!_e&&f!==null&&(e.f&(F|$e|G))===0)for(v=0;v<oe.length;v++)Xr(oe[v],e);return s!==null&&s!==e&&(ct++,oe!==null&&(n===null?n=oe:n.push(...oe))),(e.f&Oe)!==0&&(e.f^=Oe),h}catch(E){return kr(E)}finally{e.f^=Ut,Z=t,ee=r,oe=n,$=s,Me=i,Ze(a),_e=o,Ue=l}}function Pi(e,t){let r=t.reactions;if(r!==null){var n=Rn.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&F)!==0&&(Z===null||!Z.includes(t))&&(B(t,$e),(t.f&le)!==0&&(t.f^=le,t.f&=~Ie),Or(t),At(t,0))}function At(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Pi(e,r[n])}function ht(e){var t=e.f;if((t&xe)===0){B(e,U);var r=x,n=Ce;x=e,Ce=!0;try{(t&ye)!==0?Oi(e):Ur(e),Hr(e);var s=en(e);e.teardown=typeof s=="function"?s:null,e.wv=Gr;var i;Ft&&si&&(e.f&G)!==0&&e.deps}finally{Ce=n,x=r}}}function N(e){var t=e.f,r=(t&F)!==0;if($!==null&&!_e){var n=x!==null&&(x.f&xe)!==0;if(!n&&!Me?.includes(e)){var s=$.deps;if(($.f&Ut)!==0)e.rv<ct&&(e.rv=ct,Z===null&&s!==null&&s[ee]===e?ee++:Z===null?Z=[e]:Z.includes(e)||Z.push(e));else{($.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[$]:i.includes($)||i.push($)}}}if(He){if(Ae.has(e))return Ae.get(e);if(r){var a=e,o=a.v;return((a.f&U)===0&&a.reactions!==null||rn(a))&&(o=Jt(a)),Ae.set(a,o),o}}else r&&!ne?.has(e)&&(a=e,dt(a)&&Nr(a),Ce&&Ot()&&(a.f&le)===0&&tn(a));if(ne?.has(e))return ne.get(e);if((e.f&Oe)!==0)throw e.v;return e.v}function tn(e){if(e.deps!==null){e.f^=le;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&F)!==0&&(t.f&le)===0&&tn(t)}}function rn(e){if(e.v===H)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ae.has(t)||(t.f&F)!==0&&rn(t))return!0;return!1}function nn(e){var t=_e;try{return _e=!0,e()}finally{_e=t}}const Ri=-7169;function B(e,t){e.f=e.f&Ri|t}const sn=new Set,Qt=new Set;function ji(e){for(var t=0;t<e.length;t++)sn.add(e[t]);for(var r of Qt)r(e)}let an=null;function Ct(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;an=e;var a=0,o=an===e&&e.__root;if(o){var l=s.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(i=s[a]||e.target,i!==t){mt(e,"currentTarget",{configurable:!0,get(){return i||r}});var _=$,h=x;z(null),ae(null);try{for(var f,v=[];i!==null;){var E=i.assignedSlot||i.parentNode||i.host||null;try{var j=i["__"+n];j!=null&&(!i.disabled||e.target===i)&&j.call(i,e)}catch(q){f?v.push(q):f=q}if(e.cancelBubble||E===t||E===null)break;i=E}if(f){for(let q of v)queueMicrotask(()=>{throw q});throw f}}finally{e.__root=t,delete e.currentTarget,z(_),ae(h)}}}function Ii(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Le(e,t){var r=x;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function on(e,t){var r=(t&An)!==0,n=(t&Cn)!==0,s,i=!e.startsWith("<!>");return()=>{if(T)return Le(O,null),O;s===void 0&&(s=Ii(i?e:"<!>"+e),r||(s=Qe(s)));var a=n||Pr?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=Qe(a),l=a.lastChild;Le(o,l)}else Le(a,a);return a}}function Yi(e=""){if(!T){var t=fe(e+"");return Le(t,t),t}var r=O;return r.nodeType!==xt&&(r.before(r=fe()),te(r)),Le(r,r),r}function Fi(){if(T)return Le(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(""),r=fe();return e.append(t,r),Le(t,r),e}function vt(e,t){if(T){var r=x;((r.f&wt)===0||r.nodes_end===null)&&(r.nodes_end=O),Bt();return}e!==null&&e.before(t)}const qi=["touchstart","touchmove"];function Hi(e){return qi.includes(e)}function Q(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function ln(e,t){return un(e,t)}function Ui(e,t){Gt(),t.intro=t.intro??!1;const r=t.target,n=T,s=O;try{for(var i=Qe(r);i&&(i.nodeType!==st||i.data!==fr);)i=ke(i);if(!i)throw We;Ne(!0),te(i);const a=un(e,{...t,anchor:i});return Ne(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==We&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Zn(),Gt(),yi(r),Ne(!1),ln(e,t)}finally{Ne(n),te(s)}}const Xe=new Map;function un(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){Gt();var o=new Set,l=h=>{for(var f=0;f<h.length;f++){var v=h[f];if(!o.has(v)){o.add(v);var E=Hi(v);t.addEventListener(v,Ct,{passive:E});var j=Xe.get(v);j===void 0?(document.addEventListener(v,Ct,{passive:E}),Xe.set(v,1)):Xe.set(v,j+1)}}};l(jn(sn)),Qt.add(l);var u=void 0,_=Mi(()=>{var h=r??t.appendChild(fe());return fi(h,{pending:()=>{}},f=>{if(i){wr({});var v=re;v.c=i}if(s&&(n.$$events=s),T&&Le(f,null),u=e(f,n)||{},T&&(x.nodes_end=O,O===null||O.nodeType!==st||O.data!==cr))throw Et(),We;i&&$r()}),()=>{for(var f of o){t.removeEventListener(f,Ct);var v=Xe.get(f);--v===0?(document.removeEventListener(f,Ct),Xe.delete(f)):Xe.set(f,v)}Qt.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Xt.set(u,_),u}let Xt=new WeakMap;function zi(e,t){const r=Xt.get(e);return r?(Xt.delete(e),r(t)):Promise.resolve()}class Bi{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=C;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Ci(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,a]of this.#t){if(this.#t.delete(i),i===t)break;const o=this.#r.get(a);o&&(K(o.effect),this.#r.delete(a))}for(const[i,a]of this.#e){if(i===r||this.#n.has(i))continue;const o=()=>{if(Array.from(this.#t.values()).includes(i)){var u=document.createDocumentFragment();Vr(a,u),u.append(fe()),this.#r.set(i,{effect:a,fragment:u})}else K(a);this.#n.delete(i),this.#e.delete(i)};this.#l||!n?(this.#n.add(i),ft(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(K(s.effect),this.#r.delete(n))};ensure(t,r){var n=C,s=wi();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),a=fe();i.append(a),this.#r.set(t,{effect:Se(()=>r(a)),fragment:i})}else this.#e.set(t,Se(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[o,l]of this.#e)o===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[o,l]of this.#r)o===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else T&&(this.anchor=O),this.#s()}}function fn(e,t,r=!1){T&&Bt();var n=new Bi(e),s=r?Ve:0;function i(a,o){if(T){const u=ni(e)===Yt;if(a===u){var l=gr();te(l),n.anchor=l,Ne(!1),n.ensure(a,o),Ne(!0);return}}n.ensure(a,o)}qr(()=>{var a=!1;t((o,l=!0)=>{a=!0,i(l,o)}),a||i(!1,null)},s)}function Wi(e,t){Ti(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Vi(e,t,r){var n=""+e;return n}function Ji(e,t){return e==null?null:String(e)}function Zi(e,t,r,n,s,i){var a=e.__className;if(T||a!==r||a===void 0){var o=Vi(r);(!T||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function Gi(e,t,r,n){var s=e.__style;if(T||s!==t){var i=Ji(t);(!T||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Ki=Symbol("is custom element"),Qi=Symbol("is html");function cn(e,t,r,n){var s=Xi(e);T&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Un]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function er(e,t,r){var n=$,s=x;let i=T;T&&Ne(!1),z(null),ae(null);try{t!=="style"&&(tr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?dn(e).includes(t):r&&typeof r=="object")?e[t]=r:cn(e,t,r==null?r:String(r))}finally{z(n),ae(s),i&&Ne(!0)}}function Xi(e){return e.__attributes??={[Ki]:e.nodeName.includes("-"),[Qi]:e.namespaceURI===Ln}}var tr=new Map;function dn(e){var t=e.getAttribute("is")||e.nodeName,r=tr.get(t);if(r)return r;tr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=In(s);for(var a in n)n[a].set&&r.push(a);s=dr(s)}return r}let Lt=!1;function es(e){var t=Lt;try{return Lt=!1,[e(),Lt]}finally{Lt=t}}function Pt(e,t,r,n){var s=(r&On)!==0,i=(r&Nn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=i?nn(n):n),a),u;if(s){var _=$t in e||pr in e;u=Re(e,t)?.set??(_&&t in e?I=>e[t]=I:void 0)}var h,f=!1;s?[h,f]=es(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=l(),u&&(Gn(),u(h)));var v;if(v=()=>{var I=e[t];return I===void 0?l():(o=!0,I)},(r&Dn)===0)return v;if(u){var E=e.$$legacy;return(function(I,g){return arguments.length>0?((!g||E||f)&&u(g?v():I),I):v()})}var j=!1,q=((r&Tn)!==0?Tt:bi)(()=>(j=!1,v()));s&&N(q);var Pe=x;return(function(I,g){if(arguments.length>0){const W=g?N(q):s?qe(I):I;return J(q,W),j=!0,a!==void 0&&(a=W),I}return He&&j||(Pe.f&xe)!==0?q.v:N(q)})}function ts(e){return new rs(e)}class rs{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var o=pi(a,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return N(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===pr?!0:(N(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return J(r.get(a)??n(a,o),o),Reflect.set(i,a,o)}});this.#e=(t.hydrate?Ui:ln)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ot(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||mt(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{zi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let hn;typeof HTMLElement=="function"&&(hn=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){const 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){const 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 s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),vt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ns(this);for(const 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(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Rt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ts({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Si(()=>{Fr(()=>{this.$$r=!0;for(const n of gt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Rt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rt(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 gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ns(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function is(e,t,r,n,s,i){let a=class extends hn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return gt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return gt(t).forEach(o=>{mt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Rt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var _=Re(u,o)?.get;_?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{mt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function ss(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(r),setTimeout(()=>{t.print(),t.close()},2e3)}function as(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(r)}const rr={version:"0.65.16"};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt={exports:{}},ls=jt.exports,vn;function bn(){return vn||(vn=1,(function(e,t){(function(r,n){e.exports=n()})(ls,(function(){var r=1e3,n=6e4,s=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",_="week",h="month",f="quarter",v="year",E="date",j="Invalid Date",q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Pe=/\[([^\]]+)]|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,I={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(m){var b=["th","st","nd","rd"],c=m%100;return"["+m+(b[(c-20)%10]||b[c]||b[0])+"]"}},g=function(m,b,c){var p=String(m);return!p||p.length>=b?m:""+Array(b+1-p.length).join(c)+m},W={s:g,z:function(m){var b=-m.utcOffset(),c=Math.abs(b),p=Math.floor(c/60),d=c%60;return(b<=0?"+":"-")+g(p,2,"0")+":"+g(d,2,"0")},m:function m(b,c){if(b.date()<c.date())return-m(c,b);var p=12*(c.year()-b.year())+(c.month()-b.month()),d=b.clone().add(p,h),y=c-d<0,w=b.clone().add(p+(y?-1:1),h);return+(-(p+(c-d)/(y?d-w:w-d))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:h,y:v,w:_,d:u,D:E,h:l,m:o,s:a,ms:i,Q:f}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},pe="en",ce={};ce[pe]=I;var bt="$isDayjsObject",et=function(m){return m instanceof rt||!(!m||!m[bt])},tt=function m(b,c,p){var d;if(!b)return pe;if(typeof b=="string"){var y=b.toLowerCase();ce[y]&&(d=y),c&&(ce[y]=c,d=y);var w=b.split("-");if(!d&&w.length>1)return m(w[0])}else{var D=b.name;ce[D]=b,d=D}return!p&&d&&(pe=d),d||!p&&pe},L=function(m,b){if(et(m))return m.clone();var c=typeof b=="object"?b:{};return c.date=m,c.args=arguments,new rt(c)},M=W;M.l=tt,M.i=et,M.w=function(m,b){return L(m,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var rt=(function(){function m(c){this.$L=tt(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[bt]=!0}var b=m.prototype;return b.parse=function(c){this.$d=(function(p){var d=p.date,y=p.utc;if(d===null)return new Date(NaN);if(M.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var w=d.match(q);if(w){var D=w[2]-1||0,A=(w[7]||"0").substring(0,3);return y?new Date(Date.UTC(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,A)):new Date(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,A)}}return new Date(d)})(c),this.init()},b.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},b.$utils=function(){return M},b.isValid=function(){return this.$d.toString()!==j},b.isSame=function(c,p){var d=L(c);return this.startOf(p)<=d&&d<=this.endOf(p)},b.isAfter=function(c,p){return L(c)<this.startOf(p)},b.isBefore=function(c,p){return this.endOf(p)<L(c)},b.$g=function(c,p,d){return M.u(c)?this[p]:this.set(d,c)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(c,p){var d=this,y=!!M.u(p)||p,w=M.p(c),D=function(me,V){var he=M.w(d.$u?Date.UTC(d.$y,V,me):new Date(d.$y,V,me),d);return y?he:he.endOf(u)},A=function(me,V){return M.w(d.toDate()[me].apply(d.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(V)),d)},R=this.$W,Y=this.$M,X=this.$D,ge="set"+(this.$u?"UTC":"");switch(w){case v:return y?D(1,0):D(31,11);case h:return y?D(1,Y):D(0,Y+1);case _:var de=this.$locale().weekStart||0,Be=(R<de?R+7:R)-de;return D(y?X-Be:X+(6-Be),Y);case u:case E:return A(ge+"Hours",0);case l:return A(ge+"Minutes",1);case o:return A(ge+"Seconds",2);case a:return A(ge+"Milliseconds",3);default:return this.clone()}},b.endOf=function(c){return this.startOf(c,!1)},b.$set=function(c,p){var d,y=M.p(c),w="set"+(this.$u?"UTC":""),D=(d={},d[u]=w+"Date",d[E]=w+"Date",d[h]=w+"Month",d[v]=w+"FullYear",d[l]=w+"Hours",d[o]=w+"Minutes",d[a]=w+"Seconds",d[i]=w+"Milliseconds",d)[y],A=y===u?this.$D+(p-this.$W):p;if(y===h||y===v){var R=this.clone().set(E,1);R.$d[D](A),R.init(),this.$d=R.set(E,Math.min(this.$D,R.daysInMonth())).$d}else D&&this.$d[D](A);return this.init(),this},b.set=function(c,p){return this.clone().$set(c,p)},b.get=function(c){return this[M.p(c)]()},b.add=function(c,p){var d,y=this;c=Number(c);var w=M.p(p),D=function(Y){var X=L(y);return M.w(X.date(X.date()+Math.round(Y*c)),y)};if(w===h)return this.set(h,this.$M+c);if(w===v)return this.set(v,this.$y+c);if(w===u)return D(1);if(w===_)return D(7);var A=(d={},d[o]=n,d[l]=s,d[a]=r,d)[w]||1,R=this.$d.getTime()+c*A;return M.w(R,this)},b.subtract=function(c,p){return this.add(-1*c,p)},b.format=function(c){var p=this,d=this.$locale();if(!this.isValid())return d.invalidDate||j;var y=c||"YYYY-MM-DDTHH:mm:ssZ",w=M.z(this),D=this.$H,A=this.$m,R=this.$M,Y=d.weekdays,X=d.months,ge=d.meridiem,de=function(V,he,Te,it){return V&&(V[he]||V(p,y))||Te[he].slice(0,it)},Be=function(V){return M.s(D%12||12,V,"0")},me=ge||function(V,he,Te){var it=V<12?"AM":"PM";return Te?it.toLowerCase():it};return y.replace(Pe,(function(V,he){return he||(function(Te){switch(Te){case"YY":return String(p.$y).slice(-2);case"YYYY":return M.s(p.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return de(d.monthsShort,R,X,3);case"MMMM":return de(X,R);case"D":return p.$D;case"DD":return M.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return de(d.weekdaysMin,p.$W,Y,2);case"ddd":return de(d.weekdaysShort,p.$W,Y,3);case"dddd":return Y[p.$W];case"H":return String(D);case"HH":return M.s(D,2,"0");case"h":return Be(1);case"hh":return Be(2);case"a":return me(D,A,!0);case"A":return me(D,A,!1);case"m":return String(A);case"mm":return M.s(A,2,"0");case"s":return String(p.$s);case"ss":return M.s(p.$s,2,"0");case"SSS":return M.s(p.$ms,3,"0");case"Z":return w}return null})(V)||w.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(c,p,d){var y,w=this,D=M.p(p),A=L(c),R=(A.utcOffset()-this.utcOffset())*n,Y=this-A,X=function(){return M.m(w,A)};switch(D){case v:y=X()/12;break;case h:y=X();break;case f:y=X()/3;break;case _:y=(Y-R)/6048e5;break;case u:y=(Y-R)/864e5;break;case l:y=Y/s;break;case o:y=Y/n;break;case a:y=Y/r;break;default:y=Y}return d?y:M.a(y)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return ce[this.$L]},b.locale=function(c,p){if(!c)return this.$L;var d=this.clone(),y=tt(c,p,!0);return y&&(d.$L=y),d},b.clone=function(){return M.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},m})(),nt=rt.prototype;return L.prototype=nt,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",h],["$y",v],["$D",E]].forEach((function(m){nt[m[1]]=function(b){return this.$g(b,m[0],m[1])}})),L.extend=function(m,b){return m.$i||(m(b,rt,L),m.$i=!0),L},L.locale=tt,L.isDayjs=et,L.unix=function(m){return L(1e3*m)},L.en=ce[pe],L.Ls=ce,L.p={},L}))})(jt)),jt.exports}var us=bn();const fs=os(us);function _n(e,t=100,r={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof r=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:n}=r;let s,i,a,o,l;function u(){const f=s,v=i;return s=void 0,i=void 0,l=e.apply(f,v),l}function _(){const f=Date.now()-o;f<t&&f>=0?a=setTimeout(_,t-f):(a=void 0,n||(l=u()))}const h=function(...f){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,i=f,o=Date.now();const v=n&&!a;if(a||(a=setTimeout(_,t)),v)return l=u(),l};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0,s=void 0,i=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{l=u(),h.clear()},h}var It={exports:{}},cs=It.exports,pn;function ds(){return pn||(pn=1,(function(e,t){(function(r,n){e.exports=n(bn())})(cs,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=n(r),i={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(a){return a+"º"}};return s.default.locale(i,null,!0),i}))})(It)),It.exports}ds();var ze={},gn;function hs(){if(gn)return ze;gn=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.LanguageTranslator=void 0,ze.getChildStyleToPass=e,ze.addComponent=t;function e(n,s){var i,a,o="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((a=s?.filter(function(f){return Object.keys(n).includes(f.name)}))===null||a===void 0)&&a.length))for(var l=function(f){var v=s?.filter(function(E){return E.name===f&&E.defaultValue!==n[f]});v&&(o+="".concat(f,":").concat(n[f],";"))},u=0,_=Object.keys(n);u<_.length;u++){var h=_[u];l(h)}}catch(f){console.error("error getting child style to pass",f)}finally{return o}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,a){return n.formatDate(s,i,a||this.lang)},n.getDefaultLang=function(){var s,i,a,o="en";return navigator?.languages&&(!((a=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(s,i,a){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((o=i[a])===null||o===void 0)&&o[s]))return i[a][s];var l="",u=n.getDefaultLang();if(!a||u!==a){var _=i?.[u];_?.[s]&&(l=_[s])}return l},n.formatDate=function(s,i,a){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),i);return o.format(s)},n})();return ze.LanguageTranslator=r,ze}var vs=hs(),bs=on('<div style="text-align:right;padding-right:60px" class="svelte-1694i3h"><button class="btn btn-default svelte-1694i3h"><i class="bi-printer-fill svelte-1694i3h"></i></button> <button class="btn btn-default svelte-1694i3h"><i class="bi-arrows-fullscreen svelte-1694i3h"></i></button></div>'),_s=on('<div id="page" class="container svelte-1694i3h"><div class="row svelte-1694i3h" style="margin-top:20px"><div class="col svelte-1694i3h"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1694i3h"/> <span style="margin:0px 40px 0px 40px" class="svelte-1694i3h"> </span></div> <div class="col svelte-1694i3h"><!></div></div> <div class="row svelte-1694i3h" style="margin-top:60px"><div class="col svelte-1694i3h"> </div> <div class="col svelte-1694i3h"></div> <div class="col svelte-1694i3h"> </div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><hb-table></hb-table></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div style="width:300px;float:right" class="svelte-1694i3h"><div style="text-align:left;" class="svelte-1694i3h"><div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Totale:</span> </div></div></div></div></div></div>',2);const ps={hash:"svelte-1694i3h",code:`@charset "UTF-8";
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==We&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Zn(),Gt(),yi(r),Ne(!1),ln(e,t)}finally{Ne(n),te(s)}}const Xe=new Map;function un(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){Gt();var o=new Set,l=h=>{for(var f=0;f<h.length;f++){var v=h[f];if(!o.has(v)){o.add(v);var E=Hi(v);t.addEventListener(v,Ct,{passive:E});var j=Xe.get(v);j===void 0?(document.addEventListener(v,Ct,{passive:E}),Xe.set(v,1)):Xe.set(v,j+1)}}};l(jn(sn)),Qt.add(l);var u=void 0,_=Mi(()=>{var h=r??t.appendChild(fe());return fi(h,{pending:()=>{}},f=>{if(i){wr({});var v=re;v.c=i}if(s&&(n.$$events=s),T&&Le(f,null),u=e(f,n)||{},T&&(x.nodes_end=O,O===null||O.nodeType!==st||O.data!==cr))throw Et(),We;i&&$r()}),()=>{for(var f of o){t.removeEventListener(f,Ct);var v=Xe.get(f);--v===0?(document.removeEventListener(f,Ct),Xe.delete(f)):Xe.set(f,v)}Qt.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Xt.set(u,_),u}let Xt=new WeakMap;function zi(e,t){const r=Xt.get(e);return r?(Xt.delete(e),r(t)):Promise.resolve()}class Bi{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=C;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Ci(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,a]of this.#t){if(this.#t.delete(i),i===t)break;const o=this.#r.get(a);o&&(K(o.effect),this.#r.delete(a))}for(const[i,a]of this.#e){if(i===r||this.#n.has(i))continue;const o=()=>{if(Array.from(this.#t.values()).includes(i)){var u=document.createDocumentFragment();Vr(a,u),u.append(fe()),this.#r.set(i,{effect:a,fragment:u})}else K(a);this.#n.delete(i),this.#e.delete(i)};this.#l||!n?(this.#n.add(i),ft(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(K(s.effect),this.#r.delete(n))};ensure(t,r){var n=C,s=wi();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),a=fe();i.append(a),this.#r.set(t,{effect:Se(()=>r(a)),fragment:i})}else this.#e.set(t,Se(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[o,l]of this.#e)o===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[o,l]of this.#r)o===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else T&&(this.anchor=O),this.#s()}}function fn(e,t,r=!1){T&&Bt();var n=new Bi(e),s=r?Ve:0;function i(a,o){if(T){const u=ni(e)===Yt;if(a===u){var l=gr();te(l),n.anchor=l,Ne(!1),n.ensure(a,o),Ne(!0);return}}n.ensure(a,o)}qr(()=>{var a=!1;t((o,l=!0)=>{a=!0,i(l,o)}),a||i(!1,null)},s)}function Wi(e,t){Ti(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Vi(e,t,r){var n=""+e;return n}function Ji(e,t){return e==null?null:String(e)}function Zi(e,t,r,n,s,i){var a=e.__className;if(T||a!==r||a===void 0){var o=Vi(r);(!T||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function Gi(e,t,r,n){var s=e.__style;if(T||s!==t){var i=Ji(t);(!T||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Ki=Symbol("is custom element"),Qi=Symbol("is html");function cn(e,t,r,n){var s=Xi(e);T&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Un]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function er(e,t,r){var n=$,s=x;let i=T;T&&Ne(!1),z(null),ae(null);try{t!=="style"&&(tr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?dn(e).includes(t):r&&typeof r=="object")?e[t]=r:cn(e,t,r==null?r:String(r))}finally{z(n),ae(s),i&&Ne(!0)}}function Xi(e){return e.__attributes??={[Ki]:e.nodeName.includes("-"),[Qi]:e.namespaceURI===Ln}}var tr=new Map;function dn(e){var t=e.getAttribute("is")||e.nodeName,r=tr.get(t);if(r)return r;tr.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=In(s);for(var a in n)n[a].set&&r.push(a);s=dr(s)}return r}let Lt=!1;function es(e){var t=Lt;try{return Lt=!1,[e(),Lt]}finally{Lt=t}}function Pt(e,t,r,n){var s=(r&On)!==0,i=(r&Nn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=i?nn(n):n),a),u;if(s){var _=$t in e||pr in e;u=Re(e,t)?.set??(_&&t in e?I=>e[t]=I:void 0)}var h,f=!1;s?[h,f]=es(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=l(),u&&(Gn(),u(h)));var v;if(v=()=>{var I=e[t];return I===void 0?l():(o=!0,I)},(r&Dn)===0)return v;if(u){var E=e.$$legacy;return(function(I,g){return arguments.length>0?((!g||E||f)&&u(g?v():I),I):v()})}var j=!1,q=((r&Tn)!==0?Tt:bi)(()=>(j=!1,v()));s&&N(q);var Pe=x;return(function(I,g){if(arguments.length>0){const W=g?N(q):s?qe(I):I;return J(q,W),j=!0,a!==void 0&&(a=W),I}return He&&j||(Pe.f&xe)!==0?q.v:N(q)})}function ts(e){return new rs(e)}class rs{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var o=pi(a,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return N(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===pr?!0:(N(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return J(r.get(a)??n(a,o),o),Reflect.set(i,a,o)}});this.#e=(t.hydrate?Ui:ln)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ot(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||mt(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{zi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let hn;typeof HTMLElement=="function"&&(hn=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){const 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){const 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 s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),vt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ns(this);for(const 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(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Rt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ts({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Si(()=>{Fr(()=>{this.$$r=!0;for(const n of gt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Rt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rt(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 gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ns(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function is(e,t,r,n,s,i){let a=class extends hn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return gt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return gt(t).forEach(o=>{mt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Rt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var _=Re(u,o)?.get;_?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{mt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function ss(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(r),setTimeout(()=>{t.print(),t.close()},2e3)}function as(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/webcomponents/page-invoice/main.iife.js"),t.document.head.appendChild(r)}const rr={version:"0.65.18"};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt={exports:{}},ls=jt.exports,vn;function bn(){return vn||(vn=1,(function(e,t){(function(r,n){e.exports=n()})(ls,(function(){var r=1e3,n=6e4,s=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",_="week",h="month",f="quarter",v="year",E="date",j="Invalid Date",q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Pe=/\[([^\]]+)]|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,I={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(m){var b=["th","st","nd","rd"],c=m%100;return"["+m+(b[(c-20)%10]||b[c]||b[0])+"]"}},g=function(m,b,c){var p=String(m);return!p||p.length>=b?m:""+Array(b+1-p.length).join(c)+m},W={s:g,z:function(m){var b=-m.utcOffset(),c=Math.abs(b),p=Math.floor(c/60),d=c%60;return(b<=0?"+":"-")+g(p,2,"0")+":"+g(d,2,"0")},m:function m(b,c){if(b.date()<c.date())return-m(c,b);var p=12*(c.year()-b.year())+(c.month()-b.month()),d=b.clone().add(p,h),y=c-d<0,w=b.clone().add(p+(y?-1:1),h);return+(-(p+(c-d)/(y?d-w:w-d))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:h,y:v,w:_,d:u,D:E,h:l,m:o,s:a,ms:i,Q:f}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},pe="en",ce={};ce[pe]=I;var bt="$isDayjsObject",et=function(m){return m instanceof rt||!(!m||!m[bt])},tt=function m(b,c,p){var d;if(!b)return pe;if(typeof b=="string"){var y=b.toLowerCase();ce[y]&&(d=y),c&&(ce[y]=c,d=y);var w=b.split("-");if(!d&&w.length>1)return m(w[0])}else{var D=b.name;ce[D]=b,d=D}return!p&&d&&(pe=d),d||!p&&pe},L=function(m,b){if(et(m))return m.clone();var c=typeof b=="object"?b:{};return c.date=m,c.args=arguments,new rt(c)},M=W;M.l=tt,M.i=et,M.w=function(m,b){return L(m,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var rt=(function(){function m(c){this.$L=tt(c.locale,null,!0),this.parse(c),this.$x=this.$x||c.x||{},this[bt]=!0}var b=m.prototype;return b.parse=function(c){this.$d=(function(p){var d=p.date,y=p.utc;if(d===null)return new Date(NaN);if(M.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var w=d.match(q);if(w){var D=w[2]-1||0,A=(w[7]||"0").substring(0,3);return y?new Date(Date.UTC(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,A)):new Date(w[1],D,w[3]||1,w[4]||0,w[5]||0,w[6]||0,A)}}return new Date(d)})(c),this.init()},b.init=function(){var c=this.$d;this.$y=c.getFullYear(),this.$M=c.getMonth(),this.$D=c.getDate(),this.$W=c.getDay(),this.$H=c.getHours(),this.$m=c.getMinutes(),this.$s=c.getSeconds(),this.$ms=c.getMilliseconds()},b.$utils=function(){return M},b.isValid=function(){return this.$d.toString()!==j},b.isSame=function(c,p){var d=L(c);return this.startOf(p)<=d&&d<=this.endOf(p)},b.isAfter=function(c,p){return L(c)<this.startOf(p)},b.isBefore=function(c,p){return this.endOf(p)<L(c)},b.$g=function(c,p,d){return M.u(c)?this[p]:this.set(d,c)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(c,p){var d=this,y=!!M.u(p)||p,w=M.p(c),D=function(me,V){var he=M.w(d.$u?Date.UTC(d.$y,V,me):new Date(d.$y,V,me),d);return y?he:he.endOf(u)},A=function(me,V){return M.w(d.toDate()[me].apply(d.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(V)),d)},R=this.$W,Y=this.$M,X=this.$D,ge="set"+(this.$u?"UTC":"");switch(w){case v:return y?D(1,0):D(31,11);case h:return y?D(1,Y):D(0,Y+1);case _:var de=this.$locale().weekStart||0,Be=(R<de?R+7:R)-de;return D(y?X-Be:X+(6-Be),Y);case u:case E:return A(ge+"Hours",0);case l:return A(ge+"Minutes",1);case o:return A(ge+"Seconds",2);case a:return A(ge+"Milliseconds",3);default:return this.clone()}},b.endOf=function(c){return this.startOf(c,!1)},b.$set=function(c,p){var d,y=M.p(c),w="set"+(this.$u?"UTC":""),D=(d={},d[u]=w+"Date",d[E]=w+"Date",d[h]=w+"Month",d[v]=w+"FullYear",d[l]=w+"Hours",d[o]=w+"Minutes",d[a]=w+"Seconds",d[i]=w+"Milliseconds",d)[y],A=y===u?this.$D+(p-this.$W):p;if(y===h||y===v){var R=this.clone().set(E,1);R.$d[D](A),R.init(),this.$d=R.set(E,Math.min(this.$D,R.daysInMonth())).$d}else D&&this.$d[D](A);return this.init(),this},b.set=function(c,p){return this.clone().$set(c,p)},b.get=function(c){return this[M.p(c)]()},b.add=function(c,p){var d,y=this;c=Number(c);var w=M.p(p),D=function(Y){var X=L(y);return M.w(X.date(X.date()+Math.round(Y*c)),y)};if(w===h)return this.set(h,this.$M+c);if(w===v)return this.set(v,this.$y+c);if(w===u)return D(1);if(w===_)return D(7);var A=(d={},d[o]=n,d[l]=s,d[a]=r,d)[w]||1,R=this.$d.getTime()+c*A;return M.w(R,this)},b.subtract=function(c,p){return this.add(-1*c,p)},b.format=function(c){var p=this,d=this.$locale();if(!this.isValid())return d.invalidDate||j;var y=c||"YYYY-MM-DDTHH:mm:ssZ",w=M.z(this),D=this.$H,A=this.$m,R=this.$M,Y=d.weekdays,X=d.months,ge=d.meridiem,de=function(V,he,Te,it){return V&&(V[he]||V(p,y))||Te[he].slice(0,it)},Be=function(V){return M.s(D%12||12,V,"0")},me=ge||function(V,he,Te){var it=V<12?"AM":"PM";return Te?it.toLowerCase():it};return y.replace(Pe,(function(V,he){return he||(function(Te){switch(Te){case"YY":return String(p.$y).slice(-2);case"YYYY":return M.s(p.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return de(d.monthsShort,R,X,3);case"MMMM":return de(X,R);case"D":return p.$D;case"DD":return M.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return de(d.weekdaysMin,p.$W,Y,2);case"ddd":return de(d.weekdaysShort,p.$W,Y,3);case"dddd":return Y[p.$W];case"H":return String(D);case"HH":return M.s(D,2,"0");case"h":return Be(1);case"hh":return Be(2);case"a":return me(D,A,!0);case"A":return me(D,A,!1);case"m":return String(A);case"mm":return M.s(A,2,"0");case"s":return String(p.$s);case"ss":return M.s(p.$s,2,"0");case"SSS":return M.s(p.$ms,3,"0");case"Z":return w}return null})(V)||w.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(c,p,d){var y,w=this,D=M.p(p),A=L(c),R=(A.utcOffset()-this.utcOffset())*n,Y=this-A,X=function(){return M.m(w,A)};switch(D){case v:y=X()/12;break;case h:y=X();break;case f:y=X()/3;break;case _:y=(Y-R)/6048e5;break;case u:y=(Y-R)/864e5;break;case l:y=Y/s;break;case o:y=Y/n;break;case a:y=Y/r;break;default:y=Y}return d?y:M.a(y)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return ce[this.$L]},b.locale=function(c,p){if(!c)return this.$L;var d=this.clone(),y=tt(c,p,!0);return y&&(d.$L=y),d},b.clone=function(){return M.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},m})(),nt=rt.prototype;return L.prototype=nt,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",h],["$y",v],["$D",E]].forEach((function(m){nt[m[1]]=function(b){return this.$g(b,m[0],m[1])}})),L.extend=function(m,b){return m.$i||(m(b,rt,L),m.$i=!0),L},L.locale=tt,L.isDayjs=et,L.unix=function(m){return L(1e3*m)},L.en=ce[pe],L.Ls=ce,L.p={},L}))})(jt)),jt.exports}var us=bn();const fs=os(us);function _n(e,t=100,r={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if(typeof r=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:n}=r;let s,i,a,o,l;function u(){const f=s,v=i;return s=void 0,i=void 0,l=e.apply(f,v),l}function _(){const f=Date.now()-o;f<t&&f>=0?a=setTimeout(_,t-f):(a=void 0,n||(l=u()))}const h=function(...f){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,i=f,o=Date.now();const v=n&&!a;if(a||(a=setTimeout(_,t)),v)return l=u(),l};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0,s=void 0,i=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{l=u(),h.clear()},h}var It={exports:{}},cs=It.exports,pn;function ds(){return pn||(pn=1,(function(e,t){(function(r,n){e.exports=n(bn())})(cs,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=n(r),i={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(a){return a+"º"}};return s.default.locale(i,null,!0),i}))})(It)),It.exports}ds();var ze={},gn;function hs(){if(gn)return ze;gn=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.LanguageTranslator=void 0,ze.getChildStyleToPass=e,ze.addComponent=t;function e(n,s){var i,a,o="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((a=s?.filter(function(f){return Object.keys(n).includes(f.name)}))===null||a===void 0)&&a.length))for(var l=function(f){var v=s?.filter(function(E){return E.name===f&&E.defaultValue!==n[f]});v&&(o+="".concat(f,":").concat(n[f],";"))},u=0,_=Object.keys(n);u<_.length;u++){var h=_[u];l(h)}}catch(f){console.error("error getting child style to pass",f)}finally{return o}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,a){return n.formatDate(s,i,a||this.lang)},n.getDefaultLang=function(){var s,i,a,o="en";return navigator?.languages&&(!((a=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(s,i,a){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((o=i[a])===null||o===void 0)&&o[s]))return i[a][s];var l="",u=n.getDefaultLang();if(!a||u!==a){var _=i?.[u];_?.[s]&&(l=_[s])}return l},n.formatDate=function(s,i,a){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),i);return o.format(s)},n})();return ze.LanguageTranslator=r,ze}var vs=hs(),bs=on('<div style="text-align:right;padding-right:60px" class="svelte-1694i3h"><button class="btn btn-default svelte-1694i3h"><i class="bi-printer-fill svelte-1694i3h"></i></button> <button class="btn btn-default svelte-1694i3h"><i class="bi-arrows-fullscreen svelte-1694i3h"></i></button></div>'),_s=on('<div id="page" class="container svelte-1694i3h"><div class="row svelte-1694i3h" style="margin-top:20px"><div class="col svelte-1694i3h"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1694i3h"/> <span style="margin:0px 40px 0px 40px" class="svelte-1694i3h"> </span></div> <div class="col svelte-1694i3h"><!></div></div> <div class="row svelte-1694i3h" style="margin-top:60px"><div class="col svelte-1694i3h"> </div> <div class="col svelte-1694i3h"></div> <div class="col svelte-1694i3h"> </div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="col svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><hb-table></hb-table></div></div> <div class="row svelte-1694i3h" style="margin-top:40px"><div class="col svelte-1694i3h"><div style="width:300px;float:right" class="svelte-1694i3h"><div style="text-align:left;" class="svelte-1694i3h"><div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Totale:</span> </div></div></div></div></div></div>',2);const ps={hash:"svelte-1694i3h",code:`@charset "UTF-8";
3
3
  @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");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
package/manifest.json CHANGED
@@ -322,5 +322,5 @@
322
322
  "size": {},
323
323
  "iifePath": "main.iife.js",
324
324
  "repoName": "@htmlbricks/hb-page-invoice",
325
- "version": "0.65.16"
325
+ "version": "0.65.18"
326
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-page-invoice",
3
- "version": "0.65.16",
3
+ "version": "0.65.18",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [