@htmlbricks/hb-paragraps-around-image 0.61.52 → 0.61.53

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(At){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Or=1,Lr=4,Dr=8,Mr=16,Ir=1,jr=2,St="[",ot="[!",Nt="]",Ee={},E=Symbol(),Fr="http://www.w3.org/1999/xhtml",kt=!1;var qr=Array.isArray,Br=Array.prototype.indexOf,zr=Array.from,He=Object.keys,Ve=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Ur=Object.prototype,Hr=Array.prototype,Ct=Object.getPrototypeOf,Pt=Object.isExtensible;function Vr(e){for(var t=0;t<e.length;t++)e[t]()}function Rt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const T=2,We=4,ut=8,Z=16,X=32,ae=64,Ge=128,B=512,x=1024,P=2048,Q=4096,H=8192,le=16384,ct=32768,Te=65536,Ot=1<<17,ht=1<<18,he=1<<19,Wr=1<<20,Me=32768,dt=1<<21,_t=1<<22,fe=1<<23,Je=Symbol("$state"),Lt=Symbol("legacy props"),Gr=Symbol(""),xe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dt=3,Ae=8;function Jr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Kr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function rn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function an(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ln(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function V(e){m=e}let g;function D(e){if(e===null)throw Ke(),Ee;return g=e}function vt(){return D(Y(g))}function Ze(e){if(m){if(Y(g)!==null)throw Ke(),Ee;g=e}}function fn(e=1){if(m){for(var t=e,r=g;t--;)r=Y(r);g=r}}function Mt(e=!0){for(var t=0,r=g;;){if(r.nodeType===Ae){var n=r.data;if(n===Nt){if(t===0)return r;t-=1}else(n===St||n===ot)&&(t+=1)}var i=Y(r);e&&r.remove(),r=i}}function on(e){if(!e||e.nodeType!==Ae)throw Ke(),Ee;return e.data}function It(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jt(e){return!un(e,this.v)}let cn=!1,M=null;function Se(e){M=e}function Ft(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function qt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)nr(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Bt(){return!0}let de=[];function zt(){var e=de;de=[],Vr(e)}function Xe(e){if(de.length===0&&!Ie){var t=de;queueMicrotask(()=>{t===de&&zt()})}de.push(e)}function hn(){for(;de.length>0;)zt()}function Yt(e){var t=v;if(t===null)return _.f|=fe,e;if((t.f&ct)===0){if((t.f&Ge)===0)throw e;t.b.error(e)}else Ne(e,t)}function Ne(e,t){for(;t!==null;){if((t.f&Ge)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Qe=new Set;let $=null,O=null,W=[],et=null,pt=!1,Ie=!1;class z{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#f=null;#a=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){W=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#i(n,r);this.is_fork||this.#o(),this.#n>0||this.is_fork?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):($=null,Ht(r.render_effects),Ht(r.effects),this.#f?.resolve()),O=null}#i(t,r){t.f^=x;for(var n=t.first;n!==null;){var i=n.f,s=(i&(X|ae))!==0,a=s&&(i&x)!==0,l=a||(i&H)!==0||this.skipped_effects.has(n);if((n.f&Ge)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=x:(i&We)!==0?r.effects.push(n):ze(n)&&((n.f&Z)!==0&&r.block_effects.push(n),Ye(n));var f=n.first;if(f!==null){n=f;continue}}var o=n.parent;for(n=n.next;n===null&&o!==null;)o===r.effect&&(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects),r=r.parent),n=o.next,o=o.parent}}#s(t){for(const r of t)((r.f&P)!==0?this.#a:this.#l).push(r),S(r,x)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&fe)===0&&(this.current.set(t,t.v),O?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$=null,O=null}flush(){if(this.activate(),W.length>0){if(Ut(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#o(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(Qe.size>1){this.previous.clear();var t=O,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Qe){if(i===this){r=!1;continue}const s=[];for(const[l,f]of this.current){if(i.current.has(l))if(r&&f!==i.current.get(l))i.current.set(l,f);else continue;s.push(l)}if(s.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){const l=new Set,f=new Map;for(const o of s)Vt(o,a,l,f);if(W.length>0){$=i,i.apply();for(const o of W)i.#i(o,n);W=[],i.deactivate()}}}$=null,O=t}this.committed=!0,Qe.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.#a)S(t,P),_e(t);for(const t of this.#l)S(t,Q),_e(t);this.#a=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=Rt()).promise}static ensure(){if($===null){const t=$=new z;Qe.add($),Ie||z.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Xe(t)}apply(){}}function tt(e){var t=Ie;Ie=!0;try{for(var r;;){if(hn(),W.length===0&&($?.flush(),W.length===0))return et=null,r;Ut()}}finally{Ie=t}}function Ut(){var e=me;pt=!0;try{var t=0;for(cr(!0);W.length>0;){var r=z.ensure();if(t++>1e3){var n,i;dn()}r.process(W),oe.clear()}}finally{pt=!1,cr(e),et=null}}function dn(){try{Qr()}catch(e){Ne(e,et)}}let ee=null;function Ht(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(le|H))===0&&ze(n)&&(ee=new Set,Ye(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?lr(n):n.fn=null),ee?.size>0)){oe.clear();for(const i of ee){if((i.f&(le|H))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ee.has(a)&&(ee.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(le|H))===0&&Ye(f)}}ee.clear()}}ee=null}}function Vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?Vt(i,t,r,n):(s&(_t|Z))!==0&&(s&P)===0&&Wt(i,t,n)&&(S(i,P),_e(i))}}function Wt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&T)!==0&&Wt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function _e(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if(pt&&t===v&&(r&Z)!==0&&(r&ht)===0)return;if((r&(ae|X))!==0){if((r&x)===0)return;t.f^=x}}W.push(t)}function _n(e){let t=0,r=je(0),n;return()=>{st()&&(F(r),ir(()=>(t===0&&(n=yr(()=>e(()=>Fe(r)))),t+=1,()=>{Xe(()=>{t-=1,t===0&&(n?.(),n=void 0,Fe(r))})})))}}var vn=Te|he|Ge;function pn(e,t,r){new gn(e,t,r)}class gn{parent;#t=!1;#e;#r=m?g:null;#n;#f;#a;#l=null;#i=null;#s=null;#o=null;#u=null;#d=0;#c=0;#_=!1;#h=null;#w=_n(()=>(this.#h=je(this.#d),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#f=n,this.parent=v.b,this.#t=!!this.#n.pending,this.#a=bt(()=>{if(v.b=this,m){const s=this.#r;vt(),s.nodeType===Ae&&s.data===ot?this.#$():this.#y()}else{var i=this.#g();try{this.#l=ie(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},vn),m&&(this.#e=g)}#y(){try{this.#l=ie(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#n.pending;t&&(this.#i=ie(()=>t(this.#e)),z.enqueue(()=>{var r=this.#g();this.#l=this.#v(()=>(z.ensure(),ie(()=>this.#f(r)))),this.#c>0?this.#p():(qe(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=ne(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#v(t){var r=v,n=_,i=M;I(this.#a),A(this.#a),Se(this.#a.ctx);try{return t()}catch(s){return Yt(s),null}finally{I(r),A(n),Se(i)}}#p(){const t=this.#n.pending;this.#l!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),ur(this.#l,this.#o)),this.#i===null&&(this.#i=ie(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&qe(this.#i,()=>{this.#i=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&nt(this.#h,this.#d)}get_effect_pending(){return this.#w(),F(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#_||!r&&!n)throw t;this.#l&&(R(this.#l),this.#l=null),this.#i&&(R(this.#i),this.#i=null),this.#s&&(R(this.#s),this.#s=null),m&&(D(this.#r),fn(),D(Mt()));var i=!1,s=!1;const a=()=>{if(i){ln();return}i=!0,s&&an(),z.ensure(),this.#d=0,this.#s!==null&&qe(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#l=this.#v(()=>(this.#_=!1,ie(()=>this.#f(this.#e)))),this.#c>0?this.#p():this.#t=!1};var l=_;try{A(null),s=!0,r?.(t,a),s=!1}catch(f){Ne(f,this.#a&&this.#a.parent)}finally{A(l)}n&&Xe(()=>{this.#s=this.#v(()=>{z.ensure(),this.#_=!0;try{return ie(()=>{n(this.#e,()=>t,()=>a)})}catch(f){return Ne(f,this.#a.parent),null}finally{this.#_=!1}})})}}function mn(e,t,r,n){const i=gt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=$,a=v,l=wn();function f(){Promise.all(r.map(o=>yn(o))).then(o=>{l();try{n([...t.map(i),...o])}catch(d){(a.f&le)===0&&Ne(d,a)}s?.deactivate(),rt()}).catch(o=>{Ne(o,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{s?.deactivate(),rt()}}):f()}function wn(){var e=v,t=_,r=M,n=$;return function(s=!0){I(e),A(t),Se(r),s&&n?.activate()}}function rt(){I(null),A(null),Se(null)}function gt(e){var t=T|P,r=_!==null&&(_.f&T)!==0?_:null;return v!==null&&(v.f|=he),{ctx:M,deps:null,effects:null,equals:It,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:r??v,ac:null}}function yn(e,t){let r=v;r===null&&Jr();var n=r.b,i=void 0,s=je(E),a=!_,l=new Map;return Ln(()=>{var f=Rt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{o===$&&o.committed&&o.deactivate(),rt()})}catch(u){f.reject(u),rt()}var o=$;if(a){var d=!n.is_pending();n.update_pending_count(1),o.increment(d),l.get(o)?.reject(xe),l.delete(o),l.set(o,f)}const c=(u,h=void 0)=>{if(o.activate(),h)h!==xe&&(s.f|=fe,nt(s,h));else{(s.f&fe)!==0&&(s.f^=fe),nt(s,u);for(const[w,C]of l){if(l.delete(w),w===o)break;C.reject(xe)}}a&&(n.update_pending_count(-1),o.decrement(d))};f.promise.then(c,u=>c(null,u||"unknown"))}),rr(()=>{for(const f of l.values())f.reject(xe)}),new Promise(f=>{function o(d){function c(){d===i?f(s):o(i)}d.then(c,c)}o(i)})}function $n(e){const t=gt(e);return t.equals=jt,t}function Gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)R(t[r])}}function bn(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return t;t=t.parent}return null}function mt(e){var t,r=v;I(bn(e));try{e.f&=~Me,Gt(e),t=gr(e)}finally{I(r)}return t}function Jt(e){var t=mt(e);if(e.equals(t)||(e.v=t,e.wv=vr()),!we)if(O!==null)st()&&O.set(e,e.v);else{var r=(e.f&B)===0?Q:x;S(e,r)}}let wt=new Set;const oe=new Map;let Kt=!1;function je(e,t){var r={f:0,v:e,reactions:null,equals:It,rv:0,wv:0};return r}function te(e,t){const r=je(e);return Fn(r),r}function En(e,t=!1,r=!0){const n=je(e);return t||(n.equals=jt),n}function re(e,t,r=!1){_!==null&&(!J||(_.f&Ot)!==0)&&Bt()&&(_.f&(T|Z|_t|Ot))!==0&&!se?.includes(e)&&sn();let n=r?ve(t):t;return nt(e,n)}function nt(e,t){if(!e.equals(t)){var r=e.v;we?oe.set(e,t):oe.set(e,r),e.v=t;var n=z.ensure();n.capture(e,r),(e.f&T)!==0&&((e.f&P)!==0&&mt(e),S(e,(e.f&B)!==0?x:Q)),e.wv=vr(),Zt(e,P),v!==null&&(v.f&x)!==0&&(v.f&(X|ae))===0&&(j===null?qn([e]):j.push(e)),!n.is_fork&&wt.size>0&&!Kt&&Tn()}return t}function Tn(){Kt=!1;const e=Array.from(wt);for(const t of e)(t.f&x)!==0&&S(t,Q),ze(t)&&Ye(t);wt.clear()}function Fe(e){re(e,e.v+1)}function Zt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&P)===0;if(l&&S(s,t),(a&T)!==0){var f=s;O?.delete(f),(a&Me)===0&&(a&B&&(s.f|=Me),Zt(f,Q))}else l&&((a&Z)!==0&&ee!==null&&ee.add(s),_e(s))}}function ve(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Ct(e);if(t!==Ur&&t!==Hr)return e;var r=new Map,n=qr(e),i=te(0),s=ye,a=l=>{if(ye===s)return l();var f=_,o=ye;A(null),_r(s);var d=l();return A(f),_r(o),d};return n&&r.set("length",te(e.length)),new Proxy(e,{defineProperty(l,f,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&rn();var d=r.get(f);return d===void 0?d=a(()=>{var c=te(o.value);return r.set(f,c),c}):re(d,o.value,!0),!0},deleteProperty(l,f){var o=r.get(f);if(o===void 0){if(f in l){const d=a(()=>te(E));r.set(f,d),Fe(i)}}else re(o,E),Fe(i);return!0},get(l,f,o){if(f===Je)return e;var d=r.get(f),c=f in l;if(d===void 0&&(!c||ce(l,f)?.writable)&&(d=a(()=>{var h=ve(c?l[f]:E),w=te(h);return w}),r.set(f,d)),d!==void 0){var u=F(d);return u===E?void 0:u}return Reflect.get(l,f,o)},getOwnPropertyDescriptor(l,f){var o=Reflect.getOwnPropertyDescriptor(l,f);if(o&&"value"in o){var d=r.get(f);d&&(o.value=F(d))}else if(o===void 0){var c=r.get(f),u=c?.v;if(c!==void 0&&u!==E)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return o},has(l,f){if(f===Je)return!0;var o=r.get(f),d=o!==void 0&&o.v!==E||Reflect.has(l,f);if(o!==void 0||v!==null&&(!d||ce(l,f)?.writable)){o===void 0&&(o=a(()=>{var u=d?ve(l[f]):E,h=te(u);return h}),r.set(f,o));var c=F(o);if(c===E)return!1}return d},set(l,f,o,d){var c=r.get(f),u=f in l;if(n&&f==="length")for(var h=o;h<c.v;h+=1){var w=r.get(h+"");w!==void 0?re(w,E):h in l&&(w=a(()=>te(E)),r.set(h+"",w))}if(c===void 0)(!u||ce(l,f)?.writable)&&(c=a(()=>te(void 0)),re(c,ve(o)),r.set(f,c));else{u=c.v!==E;var C=a(()=>ve(o));re(c,C)}var N=Reflect.getOwnPropertyDescriptor(l,f);if(N?.set&&N.set.call(d,o),!u){if(n&&typeof f=="string"){var Oe=r.get("length"),b=Number(f);Number.isInteger(b)&&b>=Oe.v&&re(Oe,b+1)}Fe(i)}return!0},ownKeys(l){F(i);var f=Reflect.ownKeys(l).filter(c=>{var u=r.get(c);return u===void 0||u.v!==E});for(var[o,d]of r)d.v!==E&&!(o in l)&&f.push(o);return f},setPrototypeOf(){nn()}})}var Xt,Qt,er,tr;function yt(){if(Xt===void 0){Xt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;er=ce(t,"firstChild").get,tr=ce(t,"nextSibling").get,Pt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Pt(r)&&(r.__t=void 0)}}function ne(e=""){return document.createTextNode(e)}function pe(e){return er.call(e)}function Y(e){return tr.call(e)}function it(e,t){if(!m)return pe(e);var r=pe(g);return r===null&&(r=g.appendChild(ne())),D(r),r}function xn(e,t=!1){if(!m){var r=pe(e);return r instanceof Comment&&r.data===""?Y(r):r}if(t&&g?.nodeType!==Dt){var n=ne();return g?.before(n),D(n),n}return g}function ke(e,t=1,r=!1){let n=m?g:e;for(var i;t--;)i=n,n=Y(n);if(!m)return n;if(r&&n?.nodeType!==Dt){var s=ne();return n===null?i?.after(s):n.before(s),D(s),s}return D(n),n}function An(e){e.textContent=""}function Sn(){return!1}function $t(e){var t=_,r=v;A(null),I(null);try{return e()}finally{A(t),I(r)}}function Nn(e){v===null&&(_===null&&Xr(),Zr()),we&&Kr()}function kn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function G(e,t,r,n=!0){var i=v;i!==null&&(i.f&H)!==0&&(e|=H);var s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|P|B,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ye(s),s.f|=ct}catch(f){throw R(s),f}else t!==null&&_e(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&he)===0&&(a=a.first,(e&Z)!==0&&(e&Te)!==0&&a!==null&&(a.f|=Te)),a!==null&&(a.parent=i,i!==null&&kn(a,i),_!==null&&(_.f&T)!==0&&(e&ae)===0)){var l=_;(l.effects??=[]).push(a)}}return s}function st(){return _!==null&&!J}function rr(e){const t=G(ut,null,!1);return S(t,x),t.teardown=e,t}function Cn(e){Nn();var t=v.f,r=!_&&(t&X)!==0&&(t&ct)===0;if(r){var n=M;(n.e??=[]).push(e)}else return nr(e)}function nr(e){return G(We|Wr,e,!1)}function Pn(e){z.ensure();const t=G(ae|he,e,!0);return()=>{R(t)}}function Rn(e){z.ensure();const t=G(ae|he,e,!0);return(r={})=>new Promise(n=>{r.outro?qe(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function On(e){return G(We,e,!1)}function Ln(e){return G(_t|he,e,!0)}function ir(e,t=0){return G(ut|t,e,!0)}function ge(e,t=[],r=[],n=[],i=!1){mn(n,t,r,s=>{G(i?We:ut,()=>e(...s.map(F)),!0)})}function bt(e,t=0){var r=G(Z|t,e,!0);return r}function ie(e,t=!0){return G(X|he,e,!0,t)}function sr(e){var t=e.teardown;if(t!==null){const r=we,n=_;hr(!0),A(null);try{t.call(null)}finally{hr(r),A(n)}}}function ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&$t(()=>{i.abort(xe)});var n=r.next;(r.f&ae)!==0?r.parent=null:R(r,t),r=n}}function Dn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&R(t),t=r}}function R(e,t=!0){var r=!1;(t||(e.f&ht)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mn(e.nodes_start,e.nodes_end),r=!0),ar(e,t&&!r),at(e,0),S(e,le);var n=e.transitions;if(n!==null)for(const s of n)s.stop();sr(e);var i=e.parent;i!==null&&i.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mn(e,t){for(;e!==null;){var r=e===t?null:Y(e);e.remove(),e=r}}function lr(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 qe(e,t,r=!0){var n=[];fr(e,n,!0),In(n,()=>{r&&R(e),t&&t()})}function In(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function fr(e,t,r){if((e.f&H)===0){if(e.f^=H,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Te)!==0||(n.f&X)!==0&&(e.f&Z)!==0;fr(n,t,s?r:!1),n=i}}}function jn(e){or(e,!0)}function or(e,t){if((e.f&H)!==0){e.f^=H,(e.f&x)===0&&(S(e,P),_e(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Te)!==0||(r.f&X)!==0;or(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function ur(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:Y(r);t.append(r),r=i}}let me=!1;function cr(e){me=e}let we=!1;function hr(e){we=e}let _=null,J=!1;function A(e){_=e}let v=null;function I(e){v=e}let se=null;function Fn(e){_!==null&&(se===null?se=[e]:se.push(e))}let k=null,L=0,j=null;function qn(e){j=e}let dr=1,Be=0,ye=Be;function _r(e){ye=e}function vr(){return++dr}function ze(e){var t=e.f;if((t&P)!==0)return!0;if(t&T&&(e.f&=~Me),(t&Q)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(ze(s)&&Jt(s),s.wv>e.wv)return!0}(t&B)!==0&&O===null&&S(e,x)}return!1}function pr(e,t,r=!0){var n=e.reactions;if(n!==null&&!se?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&T)!==0?pr(s,t,!1):t===s&&(r?S(s,P):(s.f&x)!==0&&S(s,Q),_e(s))}}function gr(e){var t=k,r=L,n=j,i=_,s=se,a=M,l=J,f=ye,o=e.f;k=null,L=0,j=null,_=(o&(X|ae))===0?e:null,se=null,Se(e.ctx),J=!1,ye=++Be,e.ac!==null&&($t(()=>{e.ac.abort(xe)}),e.ac=null);try{e.f|=dt;var d=e.fn,c=d(),u=e.deps;if(k!==null){var h;if(at(e,L),u!==null&&L>0)for(u.length=L+k.length,h=0;h<k.length;h++)u[L+h]=k[h];else e.deps=u=k;if(me&&st()&&(e.f&B)!==0)for(h=L;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&L<u.length&&(at(e,L),u.length=L);if(Bt()&&j!==null&&!J&&u!==null&&(e.f&(T|Q|P))===0)for(h=0;h<j.length;h++)pr(j[h],e);return i!==null&&i!==e&&(Be++,j!==null&&(n===null?n=j:n.push(...j))),(e.f&fe)!==0&&(e.f^=fe),c}catch(w){return Yt(w)}finally{e.f^=dt,k=t,L=r,j=n,_=i,se=s,Se(a),J=l,ye=f}}function Bn(e,t){let r=t.reactions;if(r!==null){var n=Br.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&T)!==0&&(k===null||!k.includes(t))&&(S(t,Q),(t.f&B)!==0&&(t.f^=B,t.f&=~Me),Gt(t),at(t,0))}function at(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Bn(e,r[n])}function Ye(e){var t=e.f;if((t&le)===0){S(e,x);var r=v,n=me;v=e,me=!0;try{(t&Z)!==0?Dn(e):ar(e),sr(e);var i=gr(e);e.teardown=typeof i=="function"?i:null,e.wv=dr;var s;kt&&cn&&(e.f&P)!==0&&e.deps}finally{me=n,v=r}}}function F(e){var t=e.f,r=(t&T)!==0;if(_!==null&&!J){var n=v!==null&&(v.f&le)!==0;if(!n&&!se?.includes(e)){var i=_.deps;if((_.f&dt)!==0)e.rv<Be&&(e.rv=Be,k===null&&i!==null&&i[L]===e?L++:k===null?k=[e]:k.includes(e)||k.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(we){if(oe.has(e))return oe.get(e);if(r){var a=e,l=a.v;return((a.f&x)===0&&a.reactions!==null||wr(a))&&(l=mt(a)),oe.set(a,l),l}}else if(r){if(a=e,O?.has(a))return O.get(a);ze(a)&&Jt(a),me&&st()&&(a.f&B)===0&&mr(a)}else if(O?.has(e))return O.get(e);if((e.f&fe)!==0)throw e.v;return e.v}function mr(e){if(e.deps!==null){e.f^=B;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&B)===0&&mr(t)}}function wr(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&T)!==0&&wr(t))return!0;return!1}function yr(e){var t=J;try{return J=!0,e()}finally{J=t}}const zn=-7169;function S(e,t){e.f=e.f&zn|t}const Yn=new Set,$r=new Set;function Un(e,t,r,n={}){function i(s){if(n.capture||Ue.call(t,s),!s.cancelBubble)return $t(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Xe(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Ce(e,t,r,n,i){var s={capture:n,passive:i},a=Un(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rr(()=>{t.removeEventListener(e,a,s)})}let br=null;function Ue(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;br=e;var a=0,l=br===e&&e.__root;if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var o=i.indexOf(t);if(o===-1)return;f<=o&&(a=f)}if(s=i[a]||e.target,s!==t){Ve(e,"currentTarget",{configurable:!0,get(){return s||r}});var d=_,c=v;A(null),I(null);try{for(var u,h=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var C=s["__"+n];C!=null&&(!s.disabled||e.target===s)&&C.call(s,e)}catch(N){u?h.push(N):u=N}if(e.cancelBubble||w===t||w===null)break;s=w}if(u){for(let N of h)queueMicrotask(()=>{throw N});throw u}}finally{e.__root=t,delete e.currentTarget,A(d),I(c)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Pe(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ue(e,t){var r=(t&Ir)!==0,n=(t&jr)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return Pe(g,null),g;i===void 0&&(i=Hn(s?e:"<!>"+e),r||(i=pe(i)));var a=n||Qt?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=pe(a),f=a.lastChild;Pe(l,f)}else Pe(a,a);return a}}function Vn(){if(m)return Pe(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),r=ne();return e.append(t,r),Pe(t,r),e}function K(e,t){if(m){v.nodes_end=g,vt();return}e!==null&&e.before(t)}const Wn=["touchstart","touchmove"];function Gn(e){return Wn.includes(e)}function Er(e,t){return Tr(e,t)}function Jn(e,t){yt(),t.intro=t.intro??!1;const r=t.target,n=m,i=g;try{for(var s=pe(r);s&&(s.nodeType!==Ae||s.data!==St);)s=Y(s);if(!s)throw Ee;V(!0),D(s);const a=Tr(e,{...t,anchor:s});return V(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ee&&console.warn("Failed to hydrate: ",a),t.recover===!1&&en(),yt(),An(r),V(!1),Er(e,t)}finally{V(n),D(i)}}const Re=new Map;function Tr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){yt();var l=new Set,f=c=>{for(var u=0;u<c.length;u++){var h=c[u];if(!l.has(h)){l.add(h);var w=Gn(h);t.addEventListener(h,Ue,{passive:w});var C=Re.get(h);C===void 0?(document.addEventListener(h,Ue,{passive:w}),Re.set(h,1)):Re.set(h,C+1)}}};f(zr(Yn)),$r.add(f);var o=void 0,d=Rn(()=>{var c=r??t.appendChild(ne());return pn(c,{pending:()=>{}},u=>{if(s){Ft({});var h=M;h.c=s}if(i&&(n.$$events=i),m&&Pe(u,null),o=e(u,n)||{},m&&(v.nodes_end=g,g===null||g.nodeType!==Ae||g.data!==Nt))throw Ke(),Ee;s&&qt()}),()=>{for(var u of l){t.removeEventListener(u,Ue);var h=Re.get(u);--h===0?(document.removeEventListener(u,Ue),Re.delete(u)):Re.set(u,h)}$r.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return Et.set(o,d),o}let Et=new WeakMap;function Kn(e,t){const r=Et.get(e);return r?(Et.delete(e),r(t)):Promise.resolve()}class Zn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#f=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)jn(n);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#r.get(a);l&&(R(l.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var o=document.createDocumentFragment();ur(a,o),o.append(ne()),this.#r.set(s,{effect:a,fragment:o})}else R(a);this.#e.delete(s)};this.#n||!n?qe(a,l,!1):l()}}};#a=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(R(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=Sn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=ne();s.append(a),this.#r.set(t,{effect:ie(()=>r(a)),fragment:s})}else this.#e.set(t,ie(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[l,f]of this.#e)l===t?n.skipped_effects.delete(f):n.skipped_effects.add(f);for(const[l,f]of this.#r)l===t?n.skipped_effects.delete(f.effect):n.skipped_effects.add(f.effect);n.oncommit(this.#f),n.ondiscard(this.#a)}else m&&(this.anchor=g),this.#f()}}function $e(e,t,r=!1){m&&vt();var n=new Zn(e),i=r?Te:0;function s(a,l){if(m){const o=on(e)===ot;if(a===o){var f=Mt();D(f),n.anchor=f,V(!1),n.ensure(a,l),V(!0);return}}n.ensure(a,l)}bt(()=>{var a=!1;t((l,f=!0)=>{a=!0,s(f,l)}),a||s(!1,null)},i)}function Xn(e,t){let r=null,n=m;var i;if(m){r=g;for(var s=pe(document.head);s!==null&&(s.nodeType!==Ae||s.data!==e);)s=Y(s);if(s===null)V(!1);else{var a=Y(s);s.remove(),D(a)}}m||(i=document.head.appendChild(ne()));try{bt(()=>t(i),ht)}finally{n&&(V(!0),D(r))}}function Qn(e,t){On(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const ei=Symbol("is custom element"),ti=Symbol("is html");function xr(e,t,r,n){var i=ri(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Gr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ar(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function q(e,t,r){var n=_,i=v;let s=m;m&&V(!1),A(null),I(null);try{t!=="style"&&(Tt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ar(e).includes(t):r&&typeof r=="object")?e[t]=r:xr(e,t,r==null?r:String(r))}finally{A(n),I(i),s&&V(!0)}}function ri(e){return e.__attributes??={[ei]:e.nodeName.includes("-"),[ti]:e.namespaceURI===Fr}}var Tt=new Map;function Ar(e){var t=e.getAttribute("is")||e.nodeName,r=Tt.get(t);if(r)return r;Tt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Yr(i);for(var a in n)n[a].set&&r.push(a);i=Ct(i)}return r}let lt=!1;function ni(e){var t=lt;try{return lt=!1,[e(),lt]}finally{lt=t}}function xt(e,t,r,n){var i=(r&Dr)!==0,s=(r&Mr)!==0,a=n,l=!0,f=()=>(l&&(l=!1,a=s?yr(n):n),a),o;if(i){var d=Je in e||Lt in e;o=ce(e,t)?.set??(d&&t in e?b=>e[t]=b:void 0)}var c,u=!1;i?[c,u]=ni(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=f(),o&&(tn(),o(c)));var h;if(h=()=>{var b=e[t];return b===void 0?f():(l=!0,b)},(r&Lr)===0)return h;if(o){var w=e.$$legacy;return(function(b,Le){return arguments.length>0?((!Le||w||u)&&o(Le?h():b),b):h()})}var C=!1,N=((r&Or)!==0?gt:$n)(()=>(C=!1,h()));i&&F(N);var Oe=v;return(function(b,Le){if(arguments.length>0){const De=Le?F(N):i?ve(b):b;return re(N,De),C=!0,a!==void 0&&(a=De),b}return we&&C||(Oe.f&le)!==0?N.v:F(N)})}function ii(e){return new si(e)}class si{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=En(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return F(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Lt?!0:(F(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return re(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Jn:Er)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ve(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Kn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Sr;typeof HTMLElement=="function"&&(Sr=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 i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),K(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ai(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 i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=ft(i,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=ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{ir(()=>{this.$$r=!0;for(const n of He(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ft(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ft(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 He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ft(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function li(e,t,r,n,i,s){let a=class extends Sr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=ft(l,f,t),this.$$d[l]=f;var o=this.$$c;if(o){var d=ce(o,l)?.get;d?o[l]=f:o.$set({[l]:f})}}})}),n.forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var be={},Nr;function fi(){if(Nr)return be;Nr=1,Object.defineProperty(be,"__esModule",{value:!0}),be.LanguageTranslator=void 0,be.getChildStyleToPass=e,be.addComponent=t;function e(n,i){var s,a,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||a===void 0)&&a.length))for(var f=function(u){var h=i?.filter(function(w){return w.name===u&&w.defaultValue!==n[u]});h&&(l+="".concat(u,":").concat(n[u],";"))},o=0,d=Object.keys(n);o<d.length;o++){var c=d[o];f(c)}}catch(u){console.error("error getting child style to pass",u)}finally{return l}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)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(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(o){console.warn(o)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var f="",o=n.getDefaultLang();if(!a||o!==a){var d=s?.[o];d?.[i]&&(f=d[i])}return f},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return l.format(i)},n})();return be.LanguageTranslator=r,be}var oi=fi();const ui={version:"0.61.52"};var ci=ue('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),hi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),di=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),_i=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),vi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),pi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),gi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),mi=ue('<div id="container" class="svelte-1ttf3z"><div class="col svelte-1ttf3z" id="left"><!> <!> <!></div> <div class="col svelte-1ttf3z" id="center"><img id="center_image" alt="" class="svelte-1ttf3z"/></div> <div class="col svelte-1ttf3z" id="right"><!> <!> <!></div></div>');const wi={hash:"svelte-1ttf3z",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(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ee&&console.warn("Failed to hydrate: ",a),t.recover===!1&&en(),yt(),An(r),V(!1),Er(e,t)}finally{V(n),D(i)}}const Re=new Map;function Tr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){yt();var l=new Set,f=c=>{for(var u=0;u<c.length;u++){var h=c[u];if(!l.has(h)){l.add(h);var w=Gn(h);t.addEventListener(h,Ue,{passive:w});var C=Re.get(h);C===void 0?(document.addEventListener(h,Ue,{passive:w}),Re.set(h,1)):Re.set(h,C+1)}}};f(zr(Yn)),$r.add(f);var o=void 0,d=Rn(()=>{var c=r??t.appendChild(ne());return pn(c,{pending:()=>{}},u=>{if(s){Ft({});var h=M;h.c=s}if(i&&(n.$$events=i),m&&Pe(u,null),o=e(u,n)||{},m&&(v.nodes_end=g,g===null||g.nodeType!==Ae||g.data!==Nt))throw Ke(),Ee;s&&qt()}),()=>{for(var u of l){t.removeEventListener(u,Ue);var h=Re.get(u);--h===0?(document.removeEventListener(u,Ue),Re.delete(u)):Re.set(u,h)}$r.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return Et.set(o,d),o}let Et=new WeakMap;function Kn(e,t){const r=Et.get(e);return r?(Et.delete(e),r(t)):Promise.resolve()}class Zn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#f=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)jn(n);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#r.get(a);l&&(R(l.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var o=document.createDocumentFragment();ur(a,o),o.append(ne()),this.#r.set(s,{effect:a,fragment:o})}else R(a);this.#e.delete(s)};this.#n||!n?qe(a,l,!1):l()}}};#a=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(R(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=Sn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=ne();s.append(a),this.#r.set(t,{effect:ie(()=>r(a)),fragment:s})}else this.#e.set(t,ie(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[l,f]of this.#e)l===t?n.skipped_effects.delete(f):n.skipped_effects.add(f);for(const[l,f]of this.#r)l===t?n.skipped_effects.delete(f.effect):n.skipped_effects.add(f.effect);n.oncommit(this.#f),n.ondiscard(this.#a)}else m&&(this.anchor=g),this.#f()}}function $e(e,t,r=!1){m&&vt();var n=new Zn(e),i=r?Te:0;function s(a,l){if(m){const o=on(e)===ot;if(a===o){var f=Mt();D(f),n.anchor=f,V(!1),n.ensure(a,l),V(!0);return}}n.ensure(a,l)}bt(()=>{var a=!1;t((l,f=!0)=>{a=!0,s(f,l)}),a||s(!1,null)},i)}function Xn(e,t){let r=null,n=m;var i;if(m){r=g;for(var s=pe(document.head);s!==null&&(s.nodeType!==Ae||s.data!==e);)s=Y(s);if(s===null)V(!1);else{var a=Y(s);s.remove(),D(a)}}m||(i=document.head.appendChild(ne()));try{bt(()=>t(i),ht)}finally{n&&(V(!0),D(r))}}function Qn(e,t){On(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const ei=Symbol("is custom element"),ti=Symbol("is html");function xr(e,t,r,n){var i=ri(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Gr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ar(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function q(e,t,r){var n=_,i=v;let s=m;m&&V(!1),A(null),I(null);try{t!=="style"&&(Tt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ar(e).includes(t):r&&typeof r=="object")?e[t]=r:xr(e,t,r==null?r:String(r))}finally{A(n),I(i),s&&V(!0)}}function ri(e){return e.__attributes??={[ei]:e.nodeName.includes("-"),[ti]:e.namespaceURI===Fr}}var Tt=new Map;function Ar(e){var t=e.getAttribute("is")||e.nodeName,r=Tt.get(t);if(r)return r;Tt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Yr(i);for(var a in n)n[a].set&&r.push(a);i=Ct(i)}return r}let lt=!1;function ni(e){var t=lt;try{return lt=!1,[e(),lt]}finally{lt=t}}function xt(e,t,r,n){var i=(r&Dr)!==0,s=(r&Mr)!==0,a=n,l=!0,f=()=>(l&&(l=!1,a=s?yr(n):n),a),o;if(i){var d=Je in e||Lt in e;o=ce(e,t)?.set??(d&&t in e?b=>e[t]=b:void 0)}var c,u=!1;i?[c,u]=ni(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=f(),o&&(tn(),o(c)));var h;if(h=()=>{var b=e[t];return b===void 0?f():(l=!0,b)},(r&Lr)===0)return h;if(o){var w=e.$$legacy;return(function(b,Le){return arguments.length>0?((!Le||w||u)&&o(Le?h():b),b):h()})}var C=!1,N=((r&Or)!==0?gt:$n)(()=>(C=!1,h()));i&&F(N);var Oe=v;return(function(b,Le){if(arguments.length>0){const De=Le?F(N):i?ve(b):b;return re(N,De),C=!0,a!==void 0&&(a=De),b}return we&&C||(Oe.f&le)!==0?N.v:F(N)})}function ii(e){return new si(e)}class si{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=En(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return F(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Lt?!0:(F(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return re(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Jn:Er)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ve(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Kn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let Sr;typeof HTMLElement=="function"&&(Sr=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 i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),K(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ai(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 i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=ft(i,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=ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{ir(()=>{this.$$r=!0;for(const n of He(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ft(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ft(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 He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ft(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function li(e,t,r,n,i,s){let a=class extends Sr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=ft(l,f,t),this.$$d[l]=f;var o=this.$$c;if(o){var d=ce(o,l)?.get;d?o[l]=f:o.$set({[l]:f})}}})}),n.forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var be={},Nr;function fi(){if(Nr)return be;Nr=1,Object.defineProperty(be,"__esModule",{value:!0}),be.LanguageTranslator=void 0,be.getChildStyleToPass=e,be.addComponent=t;function e(n,i){var s,a,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||a===void 0)&&a.length))for(var f=function(u){var h=i?.filter(function(w){return w.name===u&&w.defaultValue!==n[u]});h&&(l+="".concat(u,":").concat(n[u],";"))},o=0,d=Object.keys(n);o<d.length;o++){var c=d[o];f(c)}}catch(u){console.error("error getting child style to pass",u)}finally{return l}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)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(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(o){console.warn(o)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var f="",o=n.getDefaultLang();if(!a||o!==a){var d=s?.[o];d?.[i]&&(f=d[i])}return f},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return l.format(i)},n})();return be.LanguageTranslator=r,be}var oi=fi();const ui={version:"0.61.53"};var ci=ue('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),hi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),di=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),_i=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),vi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),pi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),gi=ue("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),mi=ue('<div id="container" class="svelte-1ttf3z"><div class="col svelte-1ttf3z" id="left"><!> <!> <!></div> <div class="col svelte-1ttf3z" id="center"><img id="center_image" alt="" class="svelte-1ttf3z"/></div> <div class="col svelte-1ttf3z" id="right"><!> <!> <!></div></div>');const wi={hash:"svelte-1ttf3z",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");:host {font-family:"Roboto", sans-serif;display:block;}
4
4
  @media screen and (min-width: 900px) {#container.svelte-1ttf3z {margin:auto;display:flex;flex-direction:row;}
5
5
  }.col.svelte-1ttf3z {flex:1;padding:20px;}#center.svelte-1ttf3z {display:flex;justify-content:center;}#center_image.svelte-1ttf3z {margin:auto;}`};function kr(e,t){Ft(t,!0),Qn(e,wi),oi.addComponent({repoName:"@htmlbricks/hb-paragraps-around-image-cell",version:ui.version});function r(c,u){t.$$host.dispatchEvent(new CustomEvent(c,{detail:u}))}let n=xt(t,"id",7,""),i=xt(t,"img",7,""),s=xt(t,"paragraphs",23,()=>[]);ve({}),Cn(()=>{if(typeof s()=="string")try{s(JSON.parse(s()))}catch(c){console.error("error parsing paragraphs",c)}});function a(c){r("paragraphPressed",c.detail)}var l={get id(){return n()},set id(c=""){n(c),tt()},get img(){return i()},set img(c=""){i(c),tt()},get paragraphs(){return s()},set paragraphs(c=[]){s(c),tt()}},f=Vn();Xn("1ttf3z",c=>{var u=ci();K(c,u)});var o=xn(f);{var d=c=>{var u=mi(),h=it(u),w=it(h);{var C=y=>{var p=hi();ge(()=>q(p,"paragraph",s()[0])),q(p,"max_lines","8"),Ce("paragraphPressed",p,U=>a(U)),K(y,p)};$e(w,y=>{s()[0]&&y(C)})}var N=ke(w,2);{var Oe=y=>{var p=di();ge(()=>q(p,"paragraph",s()[2])),q(p,"max_lines","8"),Ce("paragraphPressed",p,U=>a(U)),K(y,p)};$e(N,y=>{s()[2]&&y(Oe)})}var b=ke(N,2);{var Le=y=>{var p=_i();ge(()=>q(p,"paragraph",s()[4])),q(p,"max_lines","8"),Ce("paragraphPressed",p,U=>a(U)),K(y,p)};$e(b,y=>{s()[4]&&y(Le)})}Ze(h);var De=ke(h,2),yi=it(De);Ze(De);var Cr=ke(De,2),Pr=it(Cr);{var $i=y=>{var p=vi();ge(()=>q(p,"paragraph",s()[1])),q(p,"max_lines","8"),Ce("paragraphPressed",p,U=>a(U)),K(y,p)};$e(Pr,y=>{s()[1]&&y($i)})}var Rr=ke(Pr,2);{var bi=y=>{var p=pi();ge(()=>q(p,"paragraph",s()[3])),q(p,"max_lines","8"),Ce("paragraphPressed",p,U=>a(U)),K(y,p)};$e(Rr,y=>{s()[3]&&y(bi)})}var Ei=ke(Rr,2);{var Ti=y=>{var p=gi();ge(()=>q(p,"paragraph",s()[5])),q(p,"max_lines","8"),Ce("paragraphPressed",p,U=>a(U)),K(y,p)};$e(Ei,y=>{s()[5]&&y(Ti)})}Ze(Cr),Ze(u),ge(()=>xr(yi,"src",i())),K(c,u)};$e(o,c=>{s()?.length&&i()&&c(d)})}return K(e,f),qt(l)}customElements.define("hb-paragraps-around-image",li(kr,{id:{},img:{},paragraphs:{}},[],[],!0)),At.Component=kr,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})})(this["paragraps-around-image"]=this["paragraps-around-image"]||{});
package/manifest.json CHANGED
@@ -232,5 +232,5 @@
232
232
  "size": {},
233
233
  "iifePath": "main.iife.js",
234
234
  "repoName": "@htmlbricks/hb-paragraps-around-image",
235
- "version": "0.61.52"
235
+ "version": "0.61.53"
236
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-paragraps-around-image",
3
- "version": "0.61.52",
3
+ "version": "0.61.53",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [