wineater-bot 4.23.2 → 4.23.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Zo=Object.defineProperty,fi=e=>{throw TypeError(e)},Jo=(e,t,n)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ut=(e,t,n)=>Jo(e,typeof t!="symbol"?t+"":t,n),Sr=(e,t,n)=>t.has(e)||fi("Cannot "+n),h=(e,t,n)=>(Sr(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>t.has(e)?fi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Sr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Y=(e,t,n)=>(Sr(e,t,"access private method"),n);const Qo="5";var vi;typeof window<"u"&&((vi=window.__svelte??(window.__svelte={})).v??(vi.v=new Set)).add(Qo);const gi=1,wi=2,mi=4,Xo=8,ea=16,ta=1,na=2,ra=4,ia=8,oa=16,yi=1,aa=2,we=Symbol(),sa="http://www.w3.org/1999/xhtml",la=!1;var Cr=Array.isArray,ca=Array.prototype.indexOf,Pr=Array.from,ua=Object.defineProperty,en=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertyDescriptors,pa=Object.prototype,ha=Array.prototype,bi=Object.getPrototypeOf,ki=Object.isExtensible;function fa(e){for(var t=0;t<e.length;t++)e[t]()}function xi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function va(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const fe=2,Wr=4,Tr=8,dt=16,pt=32,zt=64,Qn=128,Ge=512,me=1024,Pe=2048,ht=4096,Me=8192,ft=16384,Dr=32768,Bt=65536,_i=1<<17,Si=1<<18,tn=1<<19,ga=1<<20,Lt=32768,Er=1<<21,Mr=1<<22,_t=1<<23,Nt=Symbol("$state"),wa=Symbol("legacy props"),ma=Symbol(""),nn=new class extends Error{constructor(){super(...arguments),ut(this,"name","StaleReactionError"),ut(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function ya(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ba(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ka(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _a(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ca(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ta(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Da(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ea(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ma(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ci(e){return e===this.v}function Aa(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Pi(e){return!Aa(e,this.v)}let rn=!1,Ia=!1;function Ra(){rn=!0}let le=null;function on(e){le=e}function Xe(e,t=!1,n){le={p:le,i:!1,c:null,e:null,s:e,x:null,l:rn&&!t?{s:null,u:null,$:[]}:null}}function et(e){var t=le,n=t.e;if(n!==null){t.e=null;for(var r of n)Ki(r)}return e!==void 0&&(t.x=e),t.i=!0,le=t.p,e??{}}function Tn(){return!rn||le!==null&&le.l===null}let jt=[];function Wi(){var e=jt;jt=[],fa(e)}function an(e){if(jt.length===0&&!Dn){var t=jt;queueMicrotask(()=>{t===jt&&Wi()})}jt.push(e)}function za(){for(;jt.length>0;)Wi()}function Ti(e){var t=Z;if(t===null)return G.f|=_t,e;if(t.f&Dr)sn(e,t);else{if(!(t.f&Qn))throw e;t.b.error(e)}}function sn(e,t){for(;t!==null;){if(t.f&Qn)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Xn=new Set;let J=null,er=null,ye=null,Ne=[],tr=null,Ar=!1,Dn=!1;var En,Mn,St,Ct,An,In,Rn,We,Ir,Ot,Rr,Di,Ei;const Ba=class ui{constructor(){F(this,We),ut(this,"committed",!1),ut(this,"current",new Map),ut(this,"previous",new Map),F(this,En,new Set),F(this,Mn,new Set),F(this,St,0),F(this,Ct,0),F(this,An,null),F(this,In,[]),F(this,Rn,[]),ut(this,"skipped_effects",new Set),ut(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,Ct)>0}process(t){var n;Ne=[],er=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)Y(this,We,Ir).call(this,i,r);this.is_fork||Y(this,We,Di).call(this),this.is_deferred()?(Y(this,We,Ot).call(this,r.effects),Y(this,We,Ot).call(this,r.render_effects),Y(this,We,Ot).call(this,r.block_effects)):(er=this,J=null,Ai(r.render_effects),Ai(r.effects),er=null,(n=h(this,An))==null||n.resolve()),ye=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&_t||(this.current.set(t,t.v),ye?.set(t,t.v))}activate(){J=this,this.apply()}deactivate(){J===this&&(J=null,ye=null)}flush(){if(this.activate(),Ne.length>0){if(Mi(),J!==null&&J!==this)return}else h(this,St)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,Mn))t(this);h(this,Mn).clear()}increment(t){j(this,St,h(this,St)+1),t&&j(this,Ct,h(this,Ct)+1)}decrement(t){j(this,St,h(this,St)-1),t&&j(this,Ct,h(this,Ct)-1),this.revive()}revive(){for(const t of h(this,In))be(t,Pe),$t(t);for(const t of h(this,Rn))be(t,ht),$t(t);j(this,In,[]),j(this,Rn,[]),this.flush()}oncommit(t){h(this,En).add(t)}ondiscard(t){h(this,Mn).add(t)}settled(){return(h(this,An)??j(this,An,xi())).promise}static ensure(){if(J===null){const t=J=new ui;Xn.add(J),Dn||ui.enqueue(()=>{J===t&&t.flush()})}return J}static enqueue(t){an(t)}apply(){}};En=new WeakMap,Mn=new WeakMap,St=new WeakMap,Ct=new WeakMap,An=new WeakMap,In=new WeakMap,Rn=new WeakMap,We=new WeakSet,Ir=function(e,t){var n;e.f^=me;for(var r=e.first;r!==null;){var i=r.f,o=(i&(pt|zt))!==0,s=o&&(i&me)!==0,c=s||(i&Me)!==0||this.skipped_effects.has(r);if(r.f&Qn&&(n=r.b)!=null&&n.is_pending()&&(t={parent:t,effect:r,effects:[],render_effects:[],block_effects:[]}),!c&&r.fn!==null){o?r.f^=me:i&Wr?t.effects.push(r):jn(r)&&(r.f&dt&&t.block_effects.push(r),On(r));var l=r.first;if(l!==null){r=l;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)d===t.effect&&(Y(this,We,Ot).call(this,t.effects),Y(this,We,Ot).call(this,t.render_effects),Y(this,We,Ot).call(this,t.block_effects),t=t.parent),r=d.next,d=d.parent}},Ot=function(e){for(const t of e)(t.f&Pe?h(this,In):h(this,Rn)).push(t),Y(this,We,Rr).call(this,t.deps),be(t,me)},Rr=function(e){if(e!==null)for(const t of e)!(t.f&fe)||!(t.f&Lt)||(t.f^=Lt,Y(this,We,Rr).call(this,t.deps))},Di=function(){if(h(this,Ct)===0){for(const e of h(this,En))e();h(this,En).clear()}h(this,St)===0&&Y(this,We,Ei).call(this)},Ei=function(){var e;if(Xn.size>1){this.previous.clear();var t=ye,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of Xn){if(o===this){n=!1;continue}const s=[];for(const[l,d]of this.current){if(o.current.has(l))if(n&&d!==o.current.get(l))o.current.set(l,d);else continue;s.push(l)}if(s.length===0)continue;const c=[...o.current.keys()].filter(l=>!this.current.has(l));if(c.length>0){var i=Ne;Ne=[];const l=new Set,d=new Map;for(const f of s)Ii(f,c,l,d);if(Ne.length>0){J=o,o.apply();for(const f of Ne)Y(e=o,We,Ir).call(e,f,r);o.deactivate()}Ne=i}}J=null,ye=t}this.committed=!0,Xn.delete(this)};let qt=Ba;function La(e){var t=Dn;Dn=!0;try{for(var n;;){if(za(),Ne.length===0&&(J?.flush(),Ne.length===0))return tr=null,n;Mi()}}finally{Dn=t}}function Mi(){var e=Et;Ar=!0;var t=null;try{var n=0;for(cr(!0);Ne.length>0;){var r=qt.ensure();if(n++>1e3){var i,o;Na()}r.process(Ne),Dt.clear()}}finally{Ar=!1,cr(e),tr=null}}function Na(){try{Sa()}catch(e){sn(e,tr)}}let tt=null;function Ai(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(ft|Me))&&jn(r)&&(tt=new Set,On(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Qi(r):r.fn=null),tt?.size>0)){Dt.clear();for(const i of tt){if(i.f&(ft|Me))continue;const o=[i];let s=i.parent;for(;s!==null;)tt.has(s)&&(tt.delete(s),o.push(s)),s=s.parent;for(let c=o.length-1;c>=0;c--){const l=o[c];l.f&(ft|Me)||On(l)}}tt.clear()}}tt=null}}function Ii(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&fe?Ii(i,t,n,r):o&(Mr|dt)&&!(o&Pe)&&Ri(i,t,r)&&(be(i,Pe),$t(i))}}function Ri(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&fe&&Ri(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function $t(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ar&&t===Z&&n&dt&&!(n&Si))return;if(n&(zt|pt)){if(!(n&me))return;t.f^=me}}Ne.push(t)}function ja(e){let t=0,n=Gt(0),r;return()=>{sr()&&(a(n),Ur(()=>(t===0&&(r=qn(()=>e(()=>zn(n)))),t+=1,()=>{an(()=>{t-=1,t===0&&(r?.(),r=void 0,zn(n))})})))}}var Oa=Bt|tn|Qn;function qa(e,t,n){new Fa(e,t,n)}var Ve,Ke,zi,vt,ln,gt,Ye,Ae,wt,Pt,Ut,Ft,Wt,cn,Ht,zr,je,$a,Ua,Br,nr,rr,Lr;class Fa{constructor(t,n,r){F(this,je),ut(this,"parent"),F(this,Ve,!1),F(this,Ke),F(this,zi,null),F(this,vt),F(this,ln),F(this,gt),F(this,Ye,null),F(this,Ae,null),F(this,wt,null),F(this,Pt,null),F(this,Ut,null),F(this,Ft,0),F(this,Wt,0),F(this,cn,!1),F(this,Ht,null),F(this,zr,ja(()=>(j(this,Ht,Gt(h(this,Ft))),()=>{j(this,Ht,null)}))),j(this,Ke,t),j(this,vt,n),j(this,ln,r),this.parent=Z.b,j(this,Ve,!!h(this,vt).pending),j(this,gt,lr(()=>{Z.b=this;{var i=Y(this,je,Br).call(this);try{j(this,Ye,qe(()=>r(i)))}catch(o){this.error(o)}h(this,Wt)>0?Y(this,je,rr).call(this):j(this,Ve,!1)}return()=>{var o;(o=h(this,Ut))==null||o.remove()}},Oa))}is_pending(){return h(this,Ve)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,vt).pending}update_pending_count(t){Y(this,je,Lr).call(this,t),j(this,Ft,h(this,Ft)+t),h(this,Ht)&&dn(h(this,Ht),h(this,Ft))}get_effect_pending(){return h(this,zr).call(this),a(h(this,Ht))}error(t){var n=h(this,vt).onerror;let r=h(this,vt).failed;if(h(this,cn)||!n&&!r)throw t;h(this,Ye)&&(Te(h(this,Ye)),j(this,Ye,null)),h(this,Ae)&&(Te(h(this,Ae)),j(this,Ae,null)),h(this,wt)&&(Te(h(this,wt)),j(this,wt,null));var i=!1,o=!1;const s=()=>{if(i){Ma();return}i=!0,o&&Da(),qt.ensure(),j(this,Ft,0),h(this,wt)!==null&&pn(h(this,wt),()=>{j(this,wt,null)}),j(this,Ve,this.has_pending_snippet()),j(this,Ye,Y(this,je,nr).call(this,()=>(j(this,cn,!1),qe(()=>h(this,ln).call(this,h(this,Ke)))))),h(this,Wt)>0?Y(this,je,rr).call(this):j(this,Ve,!1)};var c=G;try{De(null),o=!0,n?.(t,s),o=!1}catch(l){sn(l,h(this,gt)&&h(this,gt).parent)}finally{De(c)}r&&an(()=>{j(this,wt,Y(this,je,nr).call(this,()=>{qt.ensure(),j(this,cn,!0);try{return qe(()=>{r(h(this,Ke),()=>t,()=>s)})}catch(l){return sn(l,h(this,gt).parent),null}finally{j(this,cn,!1)}}))})}}Ve=new WeakMap,Ke=new WeakMap,zi=new WeakMap,vt=new WeakMap,ln=new WeakMap,gt=new WeakMap,Ye=new WeakMap,Ae=new WeakMap,wt=new WeakMap,Pt=new WeakMap,Ut=new WeakMap,Ft=new WeakMap,Wt=new WeakMap,cn=new WeakMap,Ht=new WeakMap,zr=new WeakMap,je=new WeakSet,$a=function(){try{j(this,Ye,qe(()=>h(this,ln).call(this,h(this,Ke))))}catch(e){this.error(e)}j(this,Ve,!1)},Ua=function(){const e=h(this,vt).pending;e&&(j(this,Ae,qe(()=>e(h(this,Ke)))),qt.enqueue(()=>{var t=Y(this,je,Br).call(this);j(this,Ye,Y(this,je,nr).call(this,()=>(qt.ensure(),qe(()=>h(this,ln).call(this,t))))),h(this,Wt)>0?Y(this,je,rr).call(this):(pn(h(this,Ae),()=>{j(this,Ae,null)}),j(this,Ve,!1))}))},Br=function(){var e=h(this,Ke);return h(this,Ve)&&(j(this,Ut,mt()),h(this,Ke).before(h(this,Ut)),e=h(this,Ut)),e},nr=function(e){var t=Z,n=G,r=le;it(h(this,gt)),De(h(this,gt)),on(h(this,gt).ctx);try{return e()}catch(i){return Ti(i),null}finally{it(t),De(n),on(r)}},rr=function(){const e=h(this,vt).pending;h(this,Ye)!==null&&(j(this,Pt,document.createDocumentFragment()),h(this,Pt).append(h(this,Ut)),to(h(this,Ye),h(this,Pt))),h(this,Ae)===null&&j(this,Ae,qe(()=>e(h(this,Ke))))},Lr=function(e){var t;if(!this.has_pending_snippet()){this.parent&&Y(t=this.parent,je,Lr).call(t,e);return}j(this,Wt,h(this,Wt)+e),h(this,Wt)===0&&(j(this,Ve,!1),h(this,Ae)&&pn(h(this,Ae),()=>{j(this,Ae,null)}),h(this,Pt)&&(h(this,Ke).before(h(this,Pt)),j(this,Pt,null)))};function un(e,t){return t}function Ha(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)Fr(t[o].e,r,!0);Xi(r,()=>{var s=r.length===0&&n!==null;if(s){var c=n,l=c.parentNode;ns(l),l.append(c),e.items.clear(),nt(e,t[0].prev,t[i-1].next)}for(var d=0;d<i;d++){var f=t[d];s||(e.items.delete(f.k),nt(e,f.prev,f.next)),Te(f.e,!s)}e.first===t[0]&&(e.first=t[0].prev)})}function Tt(e,t,n,r,i,o=null){var s=e,c=new Map,l=null,d=(t&mi)!==0,f=(t&gi)!==0,g=(t&wi)!==0;if(d){var p=e;s=p.appendChild(mt())}var u=null,w=jr(()=>{var v=n();return Cr(v)?v:v==null?[]:Pr(v)}),m,S=!0;function W(){Ga(N,m,s,t,r),u!==null&&(m.length===0?(u.fragment?(s.before(u.fragment),u.fragment=null):Hr(u.effect),b.first=u.effect):pn(u.effect,()=>{u=null}))}var b=lr(()=>{m=a(w);for(var v=m.length,k=new Set,E=J,P=null,T=Gi(),z=0;z<v;z+=1){var U=m[z],q=r(U,z),I=S?null:c.get(q);I?(f&&dn(I.v,U),g?dn(I.i,z):I.i=z,T&&E.skipped_effects.delete(I.e)):(I=Va(S?s:null,P,U,q,z,i,t,n),S&&(I.o=!0,P===null?l=I:P.next=I,P=I),c.set(q,I)),k.add(q)}if(v===0&&o&&!u)if(S)u={fragment:null,effect:qe(()=>o(s))};else{var se=document.createDocumentFragment(),ee=mt();se.append(ee),u={fragment:se,effect:qe(()=>o(ee))}}if(!S)if(T){for(const[ve,ke]of c)k.has(ve)||E.skipped_effects.add(ke.e);E.oncommit(W),E.ondiscard(()=>{})}else W();a(w)}),N={effect:b,items:c,first:l};S=!1}function Ga(e,t,n,r,i){var o,s,c,l,d=(r&Xo)!==0,f=t.length,g=e.items,p=e.first,u,w=null,m,S=[],W=[],b,N,v,k;if(d)for(k=0;k<f;k+=1)b=t[k],N=i(b,k),v=g.get(N),(o=v.a)==null||o.measure(),(m??(m=new Set)).add(v);for(k=0;k<f;k+=1){if(b=t[k],N=i(b,k),v=g.get(N),e.first??(e.first=v),!v.o){v.o=!0;var E=w?w.next:p;nt(e,w,v),nt(e,v,E),Nr(v,E,n),w=v,S=[],W=[],p=w.next;continue}if(v.e.f&Me&&(Hr(v.e),d&&((s=v.a)==null||s.unfix(),(m??(m=new Set)).delete(v))),v!==p){if(u!==void 0&&u.has(v)){if(S.length<W.length){var P=W[0],T;w=P.prev;var z=S[0],U=S[S.length-1];for(T=0;T<S.length;T+=1)Nr(S[T],P,n);for(T=0;T<W.length;T+=1)u.delete(W[T]);nt(e,z.prev,U.next),nt(e,w,z),nt(e,U,P),p=P,w=U,k-=1,S=[],W=[]}else u.delete(v),Nr(v,p,n),nt(e,v.prev,v.next),nt(e,v,w===null?e.first:w.next),nt(e,w,v),w=v;continue}for(S=[],W=[];p!==null&&p.k!==N;)p.e.f&Me||(u??(u=new Set)).add(p),W.push(p),p=p.next;if(p===null)continue;v=p}S.push(v),w=v,p=v.next}if(p!==null||u!==void 0){for(var q=u===void 0?[]:Pr(u);p!==null;)p.e.f&Me||q.push(p),p=p.next;var I=q.length;if(I>0){var se=r&mi&&f===0?n:null;if(d){for(k=0;k<I;k+=1)(c=q[k].a)==null||c.measure();for(k=0;k<I;k+=1)(l=q[k].a)==null||l.fix()}Ha(e,q,se)}}d&&an(()=>{var ee;if(m!==void 0)for(v of m)(ee=v.a)==null||ee.apply()})}function Va(e,t,n,r,i,o,s,c){var l=(s&gi)!==0,d=(s&ea)===0,f=l?d?Qa(n,!1,!1):Gt(n):n,g=s&wi?Gt(i):i,p={i:g,v:f,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var u=document.createDocumentFragment();u.append(e=mt())}return p.e=qe(()=>o(e,f,g,c)),t!==null&&(t.next=p),p}finally{}}function Nr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==null&&o!==r;){var s=Bn(o);i.before(o),o=s}}function nt(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Ka(e,t,n,r){const i=Tn()?or:jr;if(n.length===0&&e.length===0){r(t.map(i));return}var o=J,s=Z,c=Ya();function l(){Promise.all(n.map(d=>Za(d))).then(d=>{c();try{r([...t.map(i),...d])}catch(f){s.f&ft||sn(f,s)}o?.deactivate(),ir()}).catch(d=>{sn(d,s)})}e.length>0?Promise.all(e).then(()=>{c();try{return l()}finally{o?.deactivate(),ir()}}):l()}function Ya(){var e=Z,t=G,n=le,r=J;return function(i=!0){it(e),De(t),on(n),i&&r?.activate()}}function ir(){it(null),De(null),on(null)}function or(e){var t=fe|Pe,n=G!==null&&G.f&fe?G:null;return Z!==null&&(Z.f|=tn),{ctx:le,deps:null,effects:null,equals:Ci,f:t,fn:e,reactions:null,rv:0,v:we,wv:0,parent:n??Z,ac:null}}function Za(e,t){let n=Z;n===null&&ba();var r=n.b,i=void 0,o=Gt(we),s=!G,c=new Map;return ls(()=>{var l,d=xi();i=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{f===J&&f.committed&&f.deactivate(),ir()})}catch(u){d.reject(u),ir()}var f=J;if(s){var g=!r.is_pending();r.update_pending_count(1),f.increment(g),(l=c.get(f))==null||l.reject(nn),c.delete(f),c.set(f,d)}const p=(u,w=void 0)=>{if(f.activate(),w)w!==nn&&(o.f|=_t,dn(o,w));else{o.f&_t&&(o.f^=_t),dn(o,u);for(const[m,S]of c){if(c.delete(m),m===f)break;S.reject(nn)}}s&&(r.update_pending_count(-1),f.decrement(g))};d.promise.then(p,u=>p(null,u||"unknown"))}),$r(()=>{for(const l of c.values())l.reject(nn)}),new Promise(l=>{function d(f){function g(){f===i?l(o):d(i)}f.then(g,g)}d(i)})}function X(e){const t=or(e);return ro(t),t}function jr(e){const t=or(e);return t.equals=Pi,t}function Bi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Te(t[n])}}function Ja(e){for(var t=e.parent;t!==null;){if(!(t.f&fe))return t.f&ft?null:t;t=t.parent}return null}function Or(e){var t,n=Z;it(Ja(e));try{e.f&=~Lt,Bi(e),t=lo(e)}finally{it(n)}return t}function Li(e){var t=Or(e);if(e.equals(t)||(J!=null&&J.is_fork||(e.v=t),e.wv=ao()),!Vt)if(ye!==null)sr()&&ye.set(e,t);else{var n=e.f&Ge?me:ht;be(e,n)}}let qr=new Set;const Dt=new Map;let Ni=!1;function Gt(e,t){var n={f:0,v:e,reactions:null,equals:Ci,rv:0,wv:0};return n}function V(e,t){const n=Gt(e);return ro(n),n}function Qa(e,t=!1,n=!0){var r;const i=Gt(e);return t||(i.equals=Pi),rn&&n&&le!==null&&le.l!==null&&((r=le.l).s??(r.s=[])).push(i),i}function y(e,t,n=!1){G!==null&&(!rt||G.f&_i)&&Tn()&&G.f&(fe|dt|Mr|_i)&&!($e!=null&&$e.includes(e))&&Ta();let r=n?Oe(t):t;return dn(e,r)}function dn(e,t){if(!e.equals(t)){var n=e.v;Vt?Dt.set(e,t):Dt.set(e,n),e.v=t;var r=qt.ensure();r.capture(e,n),e.f&fe&&(e.f&Pe&&Or(e),be(e,e.f&Ge?me:ht)),e.wv=ao(),Oi(e,Pe),Tn()&&Z!==null&&Z.f&me&&!(Z.f&(pt|zt))&&(Ue===null?ds([e]):Ue.push(e)),!r.is_fork&&qr.size>0&&!Ni&&Xa()}return t}function Xa(){Ni=!1;var e=Et;cr(!0);const t=Array.from(qr);try{for(const n of t)n.f&me&&be(n,ht),jn(n)&&On(n)}finally{cr(e)}qr.clear()}function ji(e,t=1){var n=a(e),r=t===1?n++:n--;return y(e,n),r}function zn(e){y(e,e.v+1)}function Oi(e,t){var n=e.reactions;if(n!==null)for(var r=Tn(),i=n.length,o=0;o<i;o++){var s=n[o],c=s.f;if(!(!r&&s===Z)){var l=(c&Pe)===0;if(l&&be(s,t),c&fe){var d=s;ye?.delete(d),c&Lt||(c&Ge&&(s.f|=Lt),Oi(d,ht))}else l&&(c&dt&&tt!==null&&tt.add(s),$t(s))}}}function Oe(e){if(typeof e!="object"||e===null||Nt in e)return e;const t=bi(e);if(t!==pa&&t!==ha)return e;var n=new Map,r=Cr(e),i=V(0),o=Kt,s=c=>{if(Kt===o)return c();var l=G,d=Kt;De(null),oo(o);var f=c();return De(l),oo(d),f};return r&&n.set("length",V(e.length)),new Proxy(e,{defineProperty(c,l,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Pa();var f=n.get(l);return f===void 0?f=s(()=>{var g=V(d.value);return n.set(l,g),g}):y(f,d.value,!0),!0},deleteProperty(c,l){var d=n.get(l);if(d===void 0){if(l in c){const f=s(()=>V(we));n.set(l,f),zn(i)}}else y(d,we),zn(i);return!0},get(c,l,d){var f;if(l===Nt)return e;var g=n.get(l),p=l in c;if(g===void 0&&(!p||(f=en(c,l))!=null&&f.writable)&&(g=s(()=>{var w=Oe(p?c[l]:we),m=V(w);return m}),n.set(l,g)),g!==void 0){var u=a(g);return u===we?void 0:u}return Reflect.get(c,l,d)},getOwnPropertyDescriptor(c,l){var d=Reflect.getOwnPropertyDescriptor(c,l);if(d&&"value"in d){var f=n.get(l);f&&(d.value=a(f))}else if(d===void 0){var g=n.get(l),p=g?.v;if(g!==void 0&&p!==we)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(c,l){var d;if(l===Nt)return!0;var f=n.get(l),g=f!==void 0&&f.v!==we||Reflect.has(c,l);if(f!==void 0||Z!==null&&(!g||(d=en(c,l))!=null&&d.writable)){f===void 0&&(f=s(()=>{var u=g?Oe(c[l]):we,w=V(u);return w}),n.set(l,f));var p=a(f);if(p===we)return!1}return g},set(c,l,d,f){var g,p=n.get(l),u=l in c;if(r&&l==="length")for(var w=d;w<p.v;w+=1){var m=n.get(w+"");m!==void 0?y(m,we):w in c&&(m=s(()=>V(we)),n.set(w+"",m))}if(p===void 0)(!u||(g=en(c,l))!=null&&g.writable)&&(p=s(()=>V(void 0)),y(p,Oe(d)),n.set(l,p));else{u=p.v!==we;var S=s(()=>Oe(d));y(p,S)}var W=Reflect.getOwnPropertyDescriptor(c,l);if(W!=null&&W.set&&W.set.call(f,d),!u){if(r&&typeof l=="string"){var b=n.get("length"),N=Number(l);Number.isInteger(N)&&N>=b.v&&y(b,N+1)}zn(i)}return!0},ownKeys(c){a(i);var l=Reflect.ownKeys(c).filter(g=>{var p=n.get(g);return p===void 0||p.v!==we});for(var[d,f]of n)f.v!==we&&!(d in c)&&l.push(d);return l},setPrototypeOf(){Wa()}})}function qi(e){try{if(e!==null&&typeof e=="object"&&Nt in e)return e[Nt]}catch{}return e}function es(e,t){return Object.is(qi(e),qi(t))}var $i,Ui,Fi,Hi;function ts(){if($i===void 0){$i=window,Ui=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fi=en(t,"firstChild").get,Hi=en(t,"nextSibling").get,ki(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ki(n)&&(n.__t=void 0)}}function mt(e=""){return document.createTextNode(e)}function yt(e){return Fi.call(e)}function Bn(e){return Hi.call(e)}function D(e,t){return yt(e)}function de(e,t=!1){{var n=yt(e);return n instanceof Comment&&n.data===""?Bn(n):n}}function M(e,t=1,n=!1){let r=e;for(;t--;)r=Bn(r);return r}function ns(e){e.textContent=""}function Gi(){return!1}let Vi=!1;function rs(){Vi||(Vi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function ar(e){var t=G,n=Z;De(null),it(null);try{return e()}finally{De(t),it(n)}}function is(e,t,n,r=n){e.addEventListener(t,()=>ar(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),rs()}function os(e){Z===null&&(G===null&&_a(),xa()),Vt&&ka()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function bt(e,t,n){var r=Z;r!==null&&r.f&Me&&(e|=Me);var i={ctx:le,deps:null,nodes_start:null,nodes_end:null,f:e|Pe|Ge,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{On(i),i.f|=Dr}catch(c){throw Te(i),c}else t!==null&&$t(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&tn)&&(o=o.first,e&dt&&e&Bt&&o!==null&&(o.f|=Bt)),o!==null&&(o.parent=r,r!==null&&as(o,r),G!==null&&G.f&fe&&!(e&zt))){var s=G;(s.effects??(s.effects=[])).push(o)}return i}function sr(){return G!==null&&!rt}function $r(e){const t=bt(Tr,null,!1);return be(t,me),t.teardown=e,t}function Ln(e){os();var t=Z.f,n=!G&&(t&pt)!==0&&(t&Dr)===0;if(n){var r=le;(r.e??(r.e=[])).push(e)}else return Ki(e)}function Ki(e){return bt(Wr|ga,e,!1)}function ss(e){qt.ensure();const t=bt(zt|tn,e,!0);return(n={})=>new Promise(r=>{n.outro?pn(t,()=>{Te(t),r(void 0)}):(Te(t),r(void 0))})}function Yi(e){return bt(Wr,e,!1)}function ls(e){return bt(Mr|tn,e,!0)}function Ur(e,t=0){return bt(Tr|t,e,!0)}function L(e,t=[],n=[],r=[]){Ka(r,t,n,i=>{bt(Tr,()=>e(...i.map(a)),!0)})}function lr(e,t=0){var n=bt(dt|t,e,!0);return n}function qe(e){return bt(pt|tn,e,!0)}function Zi(e){var t=e.teardown;if(t!==null){const n=Vt,r=G;no(!0),De(null);try{t.call(null)}finally{no(n),De(r)}}}function Ji(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&ar(()=>{i.abort(nn)});var r=n.next;n.f&zt?n.parent=null:Te(n,t),n=r}}function cs(e){for(var t=e.first;t!==null;){var n=t.next;t.f&pt||Te(t),t=n}}function Te(e,t=!0){var n=!1;(t||e.f&Si)&&e.nodes_start!==null&&e.nodes_end!==null&&(us(e.nodes_start,e.nodes_end),n=!0),Ji(e,t&&!n),ur(e,0),be(e,ft);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Zi(e);var i=e.parent;i!==null&&i.first!==null&&Qi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function us(e,t){for(;e!==null;){var n=e===t?null:Bn(e);e.remove(),e=n}}function Qi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function pn(e,t,n=!0){var r=[];Fr(e,r,!0),Xi(r,()=>{n&&Te(e),t&&t()})}function Xi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Fr(e,t,n){if(!(e.f&Me)){if(e.f^=Me,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Bt)!==0||(r.f&pt)!==0&&(e.f&dt)!==0;Fr(r,t,o?n:!1),r=i}}}function Hr(e){eo(e,!0)}function eo(e,t){if(e.f&Me){e.f^=Me,e.f&me||(be(e,Pe),$t(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Bt)!==0||(n.f&pt)!==0;eo(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function to(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Bn(n);t.append(n),n=i}}let Et=!1;function cr(e){Et=e}let Vt=!1;function no(e){Vt=e}let G=null,rt=!1;function De(e){G=e}let Z=null;function it(e){Z=e}let $e=null;function ro(e){G!==null&&($e===null?$e=[e]:$e.push(e))}let Ce=null,Ie=0,Ue=null;function ds(e){Ue=e}let io=1,Nn=0,Kt=Nn;function oo(e){Kt=e}function ao(){return++io}function jn(e){var t=e.f;if(t&Pe)return!0;if(t&fe&&(e.f&=~Lt),t&ht){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(jn(o)&&Li(o),o.wv>e.wv)return!0}t&Ge&&ye===null&&be(e,me)}return!1}function so(e,t,n=!0){var r=e.reactions;if(r!==null&&!($e!=null&&$e.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&fe?so(o,t,!1):t===o&&(n?be(o,Pe):o.f&me&&be(o,ht),$t(o))}}function lo(e){var t,n=Ce,r=Ie,i=Ue,o=G,s=$e,c=le,l=rt,d=Kt,f=e.f;Ce=null,Ie=0,Ue=null,G=f&(pt|zt)?null:e,$e=null,on(e.ctx),rt=!1,Kt=++Nn,e.ac!==null&&(ar(()=>{e.ac.abort(nn)}),e.ac=null);try{e.f|=Er;var g=e.fn,p=g(),u=e.deps;if(Ce!==null){var w;if(ur(e,Ie),u!==null&&Ie>0)for(u.length=Ie+Ce.length,w=0;w<Ce.length;w++)u[Ie+w]=Ce[w];else e.deps=u=Ce;if(Et&&sr()&&e.f&Ge)for(w=Ie;w<u.length;w++)((t=u[w]).reactions??(t.reactions=[])).push(e)}else u!==null&&Ie<u.length&&(ur(e,Ie),u.length=Ie);if(Tn()&&Ue!==null&&!rt&&u!==null&&!(e.f&(fe|ht|Pe)))for(w=0;w<Ue.length;w++)so(Ue[w],e);return o!==null&&o!==e&&(Nn++,Ue!==null&&(i===null?i=Ue:i.push(...Ue))),e.f&_t&&(e.f^=_t),p}catch(m){return Ti(m)}finally{e.f^=Er,Ce=n,Ie=r,Ue=i,G=o,$e=s,on(c),rt=l,Kt=d}}function ps(e,t){let n=t.reactions;if(n!==null){var r=ca.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&fe&&(Ce===null||!Ce.includes(t))&&(be(t,ht),t.f&Ge&&(t.f^=Ge,t.f&=~Lt),Bi(t),ur(t,0))}function ur(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ps(e,n[r])}function On(e){var t=e.f;if(!(t&ft)){be(e,me);var n=Z,r=Et;Z=e,Et=!0;try{t&dt?cs(e):Ji(e),Zi(e);var i=lo(e);e.teardown=typeof i=="function"?i:null,e.wv=io;var o;la&&Ia&&e.f&Pe&&e.deps}finally{Et=r,Z=n}}}async function hs(){await Promise.resolve(),La()}function a(e){var t=e.f,n=(t&fe)!==0;if(G!==null&&!rt){var r=Z!==null&&(Z.f&ft)!==0;if(!r&&!($e!=null&&$e.includes(e))){var i=G.deps;if(G.f&Er)e.rv<Nn&&(e.rv=Nn,Ce===null&&i!==null&&i[Ie]===e?Ie++:Ce===null?Ce=[e]:Ce.includes(e)||Ce.push(e));else{(G.deps??(G.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[G]:o.includes(G)||o.push(G)}}}if(Vt){if(Dt.has(e))return Dt.get(e);if(n){var s=e,c=s.v;return(!(s.f&me)&&s.reactions!==null||uo(s))&&(c=Or(s)),Dt.set(s,c),c}}else n&&!(ye!=null&&ye.has(e))&&(s=e,jn(s)&&Li(s),Et&&sr()&&!(s.f&Ge)&&co(s));if(ye!=null&&ye.has(e))return ye.get(e);if(e.f&_t)throw e.v;return e.v}function co(e){if(e.deps!==null){e.f^=Ge;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&fe&&!(t.f&Ge)&&co(t)}}function uo(e){if(e.v===we)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Dt.has(t)||t.f&fe&&uo(t))return!0;return!1}function qn(e){var t=rt;try{return rt=!0,e()}finally{rt=t}}const fs=-7169;function be(e,t){e.f=e.f&fs|t}const po=new Set,Gr=new Set;function vs(e,t,n,r={}){function i(o){if(r.capture||$n.call(t,o),!o.cancelBubble)return ar(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?an(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ot(e,t,n,r,i){var o={capture:r,passive:i},s=vs(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$r(()=>{t.removeEventListener(e,s,o)})}function dr(e){for(var t=0;t<e.length;t++)po.add(e[t]);for(var n of Gr)n(e)}let ho=null;function $n(e){var t,n=this,r=n.ownerDocument,i=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],s=o[0]||e.target;ho=e;var c=0,l=ho===e&&e.__root;if(l){var d=o.indexOf(l);if(d!==-1&&(n===document||n===window)){e.__root=n;return}var f=o.indexOf(n);if(f===-1)return;d<=f&&(c=d)}if(s=o[c]||e.target,s!==n){ua(e,"currentTarget",{configurable:!0,get(){return s||r}});var g=G,p=Z;De(null),it(null);try{for(var u,w=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var S=s["__"+i];S!=null&&(!s.disabled||e.target===s)&&S.call(s,e)}catch(W){u?w.push(W):u=W}if(e.cancelBubble||m===n||m===null)break;s=m}if(u){for(let W of w)queueMicrotask(()=>{throw W});throw u}}finally{e.__root=n,delete e.currentTarget,De(g),it(p)}}}function fo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function hn(e,t){var n=Z;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function O(e,t){var n=(t&yi)!==0,r=(t&aa)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=fo(o?e:"<!>"+e),n||(i=yt(i)));var s=r||Ui?document.importNode(i,!0):i.cloneNode(!0);if(n){var c=yt(s),l=s.lastChild;hn(c,l)}else hn(s,s);return s}}function gs(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&yi)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(!s){var c=fo(o),l=yt(c);if(i)for(s=document.createDocumentFragment();yt(l);)s.appendChild(yt(l));else s=yt(l)}var d=s.cloneNode(!0);if(i){var f=yt(d),g=d.lastChild;hn(f,g)}else hn(d,d);return d}}function Mt(e,t){return gs(e,t,"svg")}function At(e=""){{var t=mt(e+"");return hn(t,t),t}}function Ze(){var e=document.createDocumentFragment(),t=document.createComment(""),n=mt();return e.append(t,n),hn(t,n),e}function _(e,t){e!==null&&e.before(t)}const ws=["touchstart","touchmove"];function ms(e){return ws.includes(e)}function $(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function ys(e,t){return bs(e,t)}const fn=new Map;function bs(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0}){ts();var c=new Set,l=g=>{for(var p=0;p<g.length;p++){var u=g[p];if(!c.has(u)){c.add(u);var w=ms(u);t.addEventListener(u,$n,{passive:w});var m=fn.get(u);m===void 0?(document.addEventListener(u,$n,{passive:w}),fn.set(u,1)):fn.set(u,m+1)}}};l(Pr(po)),Gr.add(l);var d=void 0,f=ss(()=>{var g=n??t.appendChild(mt());return qa(g,{pending:()=>{}},p=>{if(o){Xe({});var u=le;u.c=o}i&&(r.$$events=i),d=e(p,r)||{},o&&et()}),()=>{var p;for(var u of c){t.removeEventListener(u,$n);var w=fn.get(u);--w===0?(document.removeEventListener(u,$n),fn.delete(u)):fn.set(u,w)}Gr.delete(l),g!==n&&((p=g.parentNode)==null||p.removeChild(g))}});return ks.set(d,f),d}let ks=new WeakMap;var at,kt,Fe,vn,pr,hr,Vr;class vo{constructor(t,n=!0){ut(this,"anchor"),F(this,at,new Map),F(this,kt,new Map),F(this,Fe,new Map),F(this,vn,new Set),F(this,pr,!0),F(this,hr,()=>{var r=J;if(h(this,at).has(r)){var i=h(this,at).get(r),o=h(this,kt).get(i);if(o)Hr(o),h(this,vn).delete(i);else{var s=h(this,Fe).get(i);s&&(h(this,kt).set(i,s.effect),h(this,Fe).delete(i),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),o=s.effect)}for(const[c,l]of h(this,at)){if(h(this,at).delete(c),c===r)break;const d=h(this,Fe).get(l);d&&(Te(d.effect),h(this,Fe).delete(l))}for(const[c,l]of h(this,kt)){if(c===i||h(this,vn).has(c))continue;const d=()=>{if(Array.from(h(this,at).values()).includes(c)){var f=document.createDocumentFragment();to(l,f),f.append(mt()),h(this,Fe).set(c,{effect:l,fragment:f})}else Te(l);h(this,vn).delete(c),h(this,kt).delete(c)};h(this,pr)||!o?(h(this,vn).add(c),pn(l,d,!1)):d()}}}),F(this,Vr,r=>{h(this,at).delete(r);const i=Array.from(h(this,at).values());for(const[o,s]of h(this,Fe))i.includes(o)||(Te(s.effect),h(this,Fe).delete(o))}),this.anchor=t,j(this,pr,n)}ensure(t,n){var r=J,i=Gi();if(n&&!h(this,kt).has(t)&&!h(this,Fe).has(t))if(i){var o=document.createDocumentFragment(),s=mt();o.append(s),h(this,Fe).set(t,{effect:qe(()=>n(s)),fragment:o})}else h(this,kt).set(t,qe(()=>n(this.anchor)));if(h(this,at).set(r,t),i){for(const[c,l]of h(this,kt))c===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[c,l]of h(this,Fe))c===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(h(this,hr)),r.ondiscard(h(this,Vr))}else h(this,hr).call(this)}}at=new WeakMap,kt=new WeakMap,Fe=new WeakMap,vn=new WeakMap,pr=new WeakMap,hr=new WeakMap,Vr=new WeakMap;function Kr(e){le===null&&ya(),rn&&le.l!==null?xs(le).m.push(e):Ln(()=>{const t=qn(e);if(typeof t=="function")return t})}function xs(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function H(e,t,n=!1){var r=new vo(e),i=n?Bt:0;function o(s,c){r.ensure(s,c)}lr(()=>{var s=!1;t((c,l=!0)=>{s=!0,o(l,c)}),s||o(!1,null)},i)}function go(e,t,n,r,i){var o,s=(o=t.$$slots)==null?void 0:o[n],c=!1;s===!0&&(s=t.children,c=!0),s===void 0||s(e,c?()=>r:r)}function wo(e,t,n){var r=new vo(e);lr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Bt)}function st(e,t){Yi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function mo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _s(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mo(e))&&(r&&(r+=" "),r+=t);return r}function gn(e){return typeof e=="object"?_s(e):e??""}function Ss(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function It(e,t,n,r,i,o){var s=e.__className;if(s!==n||s===void 0){var c=Ss(n,r);c==null?e.removeAttribute("class"):t?e.className=c:e.setAttribute("class",c),e.__className=n}return o}function yo(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Cr(t))return Ea();for(var r of e.options)r.selected=t.includes(bo(r));return}for(r of e.options){var i=bo(r);if(es(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Cs(e){var t=new MutationObserver(()=>{yo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),$r(()=>{t.disconnect()})}function bo(e){return"__value"in e?e.__value:e.value}const Ps=Symbol("is custom element"),Ws=Symbol("is html");function Ts(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function A(e,t,n,r){var i=Ds(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[ma]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Es(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ds(e){return e.__attributes??(e.__attributes={[Ps]:e.nodeName.includes("-"),[Ws]:e.namespaceURI===sa})}var ko=new Map;function Es(e){var t=e.getAttribute("is")||e.nodeName,n=ko.get(t);if(n)return n;ko.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=da(i);for(var s in r)r[s].set&&n.push(s);i=bi(i)}return n}function Ms(e,t,n=t){var r=new WeakSet;is(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Yr(e)?Zr(o):o,n(o),J!==null&&r.add(J),await hs(),o!==(o=t())){var s=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=o??"",c!==null){var d=e.value.length;s===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=s,e.selectionEnd=Math.min(c,d))}}}),qn(t)==null&&e.value&&(n(Yr(e)?Zr(e.value):e.value),J!==null&&r.add(J)),Ur(()=>{var i=t();if(e===document.activeElement){var o=er??J;if(r.has(o))return}Yr(e)&&i===Zr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Yr(e){var t=e.type;return t==="number"||t==="range"}function Zr(e){return e===""?null:+e}function xo(e,t){return e===t||e?.[Nt]===t}function As(e={},t,n,r){return Yi(()=>{var i,o;return Ur(()=>{i=o,o=[],qn(()=>{e!==n(...o)&&(t(e,...o),i&&xo(n(...i),e)&&t(null,...i))})}),()=>{an(()=>{o&&xo(n(...o),e)&&t(null,...o)})}}),e}let fr=!1;function Is(e){var t=fr;try{return fr=!1,[e(),fr]}finally{fr=t}}function Re(e,t,n,r){var i,o=!rn||(n&na)!==0,s=(n&ia)!==0,c=(n&oa)!==0,l=r,d=!0,f=()=>(d&&(d=!1,l=c?qn(r):r),l),g;if(s){var p=Nt in e||wa in e;g=((i=en(e,t))==null?void 0:i.set)??(p&&t in e?v=>e[t]=v:void 0)}var u,w=!1;s?[u,w]=Is(()=>e[t]):u=e[t],u===void 0&&r!==void 0&&(u=f(),g&&(o&&Ca(),g(u)));var m;if(o?m=()=>{var v=e[t];return v===void 0?f():(d=!0,v)}:m=()=>{var v=e[t];return v!==void 0&&(l=void 0),v===void 0?l:v},o&&!(n&ra))return m;if(g){var S=e.$$legacy;return function(v,k){return arguments.length>0?((!o||!k||S||w)&&g(k?m():v),v):m()}}var W=!1,b=(n&ta?or:jr)(()=>(W=!1,m()));s&&a(b);var N=Z;return function(v,k){if(arguments.length>0){const E=k?a(b):o&&s?Oe(v):v;return y(b,E),W=!0,l!==void 0&&(l=E),v}return Vt&&W||N.f&ft?b.v:a(b)}}const _o="wineater_consent",Rs=["wineater_uid","uniqueUserID","sessionID"];function zs(){try{const e=window.localStorage.getItem(_o);return e==="granted"||e==="denied"?e:null}catch{return null}}let Jr=V(Oe(zs())),vr=V(null);function Bs(e){y(vr,e,!0)}function So(){var e;return((e=window?.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(vr)===!0}function Ls(){return a(vr)!==null&&So()&&a(Jr)===null}function Co(){var e;return((e=window?.wineaterData)==null?void 0:e.tracking)===!1||a(vr)===null?!1:So()?a(Jr)==="granted":!0}function Ns(){for(const e of Rs){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Qr=new Set;function js(e){return Qr.add(e),()=>Qr.delete(e)}function Po(e){y(Jr,e,!0);try{window.localStorage.setItem(_o,e)}catch{}e==="denied"&&Ns();for(const t of Qr)t(e)}function Wo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Xr(e,t,n){let r="";if(n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function ei(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function Os(){const e="uniqueUserID";let t=ei(e);return t||(t=Wo(),Xr(e,t,365)),t}function ze(e,t,n={},r={}){const i="https://admin-api.wineater.com/api/widget-events",o=new Date().toISOString(),s=navigator.language.split("-")[1]||null,c=navigator.language.split("-")[0]||"en";if(!Co()){const p={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:s,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p),keepalive:!0}).catch(u=>{console.debug("[wineater] anonymous event failed:",u?.message)})}let l=ei("uniqueUserID");l||(l=Os());const d={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let f=ei("sessionID");f||(f=Wo(),Xr("sessionID",f,1));const g={event_type:e,store_id:t,session_id:f,event_time:o,data:n,meta:{...r,user_id:l},device_info:d,region:s,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then(p=>p.ok?p.json():p.json().then(u=>{throw new Error(u.message||"Failed to track widget event")})).catch(p=>{throw console.error("Widget event tracking error:",p),p})}function qs(e){return{id:String(e.ID),appellation:e.Appellation||null,country:e.Country||null,grape:e.Grape,image:e.Image,price:Number(e.Price),producer:e.Producer||null,region:e.Region,score:e.Score?Number(e.Score):null,shortDescription:e["Short Description"]||null,store:e.Store,storeId:e.Store_id||null,tags:Array.isArray(e.Tags)?e.Tags.map(String):[],title:e.Title,type:e.Type,url:e.Url||null,vintage:e.Vintage?Number(e.Vintage):null,pairingRecommendation:e.pairing_recommendation||null,total:e.Total?Number(e.Total):null,itemId:e.item_id||null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function gr(e){return{id:String(e.id),title:String(e.title),description:String(e.description),region:String(e.region),price:Number(e.price),grape:String(e.grape),appellation:e.appellation?String(e.appellation):null,url:e.url?String(e.url):null,store:String(e.store),storeId:e.storeId?String(e.storeId):null,image:String(e.image),country:e.country?String(e.country):null,vintage:e.vintage?Number(e.vintage):null,tags:Array.isArray(e.tags)?e.tags.map(String):[],score:e.score?Number(e.score):null,total:e.total?Number(e.total):null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,distance:Number(e.distance),reason:String(e.reason),type:String(e.type),byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function $s(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(gr),hasMore:!!e.has_more}}const Un="wineater_uid",Us=365;let wr=null;function To(){const e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);if(e!=null&&e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<16;r++)t[r]=Math.random()*256|0;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const Do=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Eo(e){try{const t=e+"=";for(const n of document.cookie.split(";")){const r=n.trim();if(r.startsWith(t))return decodeURIComponent(r.slice(t.length))}}catch{}return null}function Fs(e,t){try{const n=new Date(Date.now()+Us*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function Mo(){return Co()}js(e=>{e==="denied"&&(wr=null)});function ti(){if(!Mo())return null;if(wr)return wr;let e=null;try{e=window.localStorage.getItem(Un)}catch{}(!e||!Do.test(e))&&(e=Eo(Un)),(!e||!Do.test(e))&&(e=To());try{window.localStorage.setItem(Un,e)}catch{}return Eo(Un)!==e&&Fs(Un,e),wr=e,e}function Ao(){return To()}const Hs=2e3,Io=100;let mr=null,wn=[],Fn=null,Ro=!1;function Gs(e){mr=e,!(Ro||typeof document>"u")&&(Ro=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Hn()}),window.addEventListener("pagehide",()=>void Hn()))}function mn(e){var t;if(!(!Mo()||!mr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(wn.push(e),wn.length>=Io){Hn();return}Fn||(Fn=setTimeout(()=>void Hn(),Hs))}}async function Hn(){if(Fn&&(clearTimeout(Fn),Fn=null),!mr||wn.length===0)return;const e=ti();if(!e){wn=[];return}const t=wn.splice(0,Io);try{await mr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n?.message)}wn.length>0&&Hn()}const Vs="X-Wineater-Uid";var Gn,yr,yn,Vn,Je,ni,bn,ri;class Ks{constructor(t,n="1"){F(this,Je),F(this,Gn,"https://api.wineater.com/"),F(this,yr),F(this,yn),F(this,Vn,!1),j(this,yr,t),j(this,yn,n)}async getInstantRecommendations(){try{const t=h(this,yn)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:n,headers:r}=await Y(this,Je,ri).call(this,t,{});return{wines:n.filter(Boolean).map(qs),profileHash:r.get("X-Wineater-Profile")||null}}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,yn)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await Y(this,Je,bn).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(gr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(h(this,yn)!=="2")return i();let o;try{o=await fetch(`${h(this,Gn)}dish/recommendations/search/v2/stream`,{method:"POST",headers:Y(this,Je,ni).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return i()}if(!o.ok||!o.body)return i();const s=o.body.getReader(),c=new TextDecoder;let l="",d=null;const f=g=>(g??[]).filter(Boolean).map(gr);try{for(;;){const{done:g,value:p}=await s.read();p&&(l+=c.decode(p,{stream:!0}));const u=l.split(`
|
|
1
|
+
var Zo=Object.defineProperty,fi=e=>{throw TypeError(e)},Jo=(e,t,n)=>t in e?Zo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ut=(e,t,n)=>Jo(e,typeof t!="symbol"?t+"":t,n),Sr=(e,t,n)=>t.has(e)||fi("Cannot "+n),h=(e,t,n)=>(Sr(e,t,"read from private field"),n?n.call(e):t.get(e)),F=(e,t,n)=>t.has(e)?fi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Sr(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Y=(e,t,n)=>(Sr(e,t,"access private method"),n);const Qo="5";var vi;typeof window<"u"&&((vi=window.__svelte??(window.__svelte={})).v??(vi.v=new Set)).add(Qo);const gi=1,wi=2,mi=4,Xo=8,ea=16,ta=1,na=2,ra=4,ia=8,oa=16,yi=1,aa=2,we=Symbol(),sa="http://www.w3.org/1999/xhtml",la=!1;var Cr=Array.isArray,ca=Array.prototype.indexOf,Pr=Array.from,ua=Object.defineProperty,en=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertyDescriptors,pa=Object.prototype,ha=Array.prototype,bi=Object.getPrototypeOf,ki=Object.isExtensible;function fa(e){for(var t=0;t<e.length;t++)e[t]()}function xi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function va(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const fe=2,Wr=4,Tr=8,dt=16,pt=32,zt=64,Qn=128,Ge=512,me=1024,Pe=2048,ht=4096,Me=8192,ft=16384,Dr=32768,Bt=65536,_i=1<<17,Si=1<<18,tn=1<<19,ga=1<<20,Lt=32768,Er=1<<21,Mr=1<<22,_t=1<<23,Nt=Symbol("$state"),wa=Symbol("legacy props"),ma=Symbol(""),nn=new class extends Error{constructor(){super(...arguments),ut(this,"name","StaleReactionError"),ut(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function ya(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ba(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ka(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _a(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ca(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Pa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ta(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Da(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ea(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ma(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ci(e){return e===this.v}function Aa(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Pi(e){return!Aa(e,this.v)}let rn=!1,Ia=!1;function Ra(){rn=!0}let le=null;function on(e){le=e}function Xe(e,t=!1,n){le={p:le,i:!1,c:null,e:null,s:e,x:null,l:rn&&!t?{s:null,u:null,$:[]}:null}}function et(e){var t=le,n=t.e;if(n!==null){t.e=null;for(var r of n)Ki(r)}return e!==void 0&&(t.x=e),t.i=!0,le=t.p,e??{}}function Tn(){return!rn||le!==null&&le.l===null}let jt=[];function Wi(){var e=jt;jt=[],fa(e)}function an(e){if(jt.length===0&&!Dn){var t=jt;queueMicrotask(()=>{t===jt&&Wi()})}jt.push(e)}function za(){for(;jt.length>0;)Wi()}function Ti(e){var t=Z;if(t===null)return G.f|=_t,e;if(t.f&Dr)sn(e,t);else{if(!(t.f&Qn))throw e;t.b.error(e)}}function sn(e,t){for(;t!==null;){if(t.f&Qn)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Xn=new Set;let J=null,er=null,ye=null,Ne=[],tr=null,Ar=!1,Dn=!1;var En,Mn,St,Ct,An,In,Rn,We,Ir,Ot,Rr,Di,Ei;const Ba=class ui{constructor(){F(this,We),ut(this,"committed",!1),ut(this,"current",new Map),ut(this,"previous",new Map),F(this,En,new Set),F(this,Mn,new Set),F(this,St,0),F(this,Ct,0),F(this,An,null),F(this,In,[]),F(this,Rn,[]),ut(this,"skipped_effects",new Set),ut(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,Ct)>0}process(t){var n;Ne=[],er=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)Y(this,We,Ir).call(this,i,r);this.is_fork||Y(this,We,Di).call(this),this.is_deferred()?(Y(this,We,Ot).call(this,r.effects),Y(this,We,Ot).call(this,r.render_effects),Y(this,We,Ot).call(this,r.block_effects)):(er=this,J=null,Ai(r.render_effects),Ai(r.effects),er=null,(n=h(this,An))==null||n.resolve()),ye=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&_t||(this.current.set(t,t.v),ye?.set(t,t.v))}activate(){J=this,this.apply()}deactivate(){J===this&&(J=null,ye=null)}flush(){if(this.activate(),Ne.length>0){if(Mi(),J!==null&&J!==this)return}else h(this,St)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,Mn))t(this);h(this,Mn).clear()}increment(t){j(this,St,h(this,St)+1),t&&j(this,Ct,h(this,Ct)+1)}decrement(t){j(this,St,h(this,St)-1),t&&j(this,Ct,h(this,Ct)-1),this.revive()}revive(){for(const t of h(this,In))be(t,Pe),$t(t);for(const t of h(this,Rn))be(t,ht),$t(t);j(this,In,[]),j(this,Rn,[]),this.flush()}oncommit(t){h(this,En).add(t)}ondiscard(t){h(this,Mn).add(t)}settled(){return(h(this,An)??j(this,An,xi())).promise}static ensure(){if(J===null){const t=J=new ui;Xn.add(J),Dn||ui.enqueue(()=>{J===t&&t.flush()})}return J}static enqueue(t){an(t)}apply(){}};En=new WeakMap,Mn=new WeakMap,St=new WeakMap,Ct=new WeakMap,An=new WeakMap,In=new WeakMap,Rn=new WeakMap,We=new WeakSet,Ir=function(e,t){var n;e.f^=me;for(var r=e.first;r!==null;){var i=r.f,o=(i&(pt|zt))!==0,s=o&&(i&me)!==0,c=s||(i&Me)!==0||this.skipped_effects.has(r);if(r.f&Qn&&(n=r.b)!=null&&n.is_pending()&&(t={parent:t,effect:r,effects:[],render_effects:[],block_effects:[]}),!c&&r.fn!==null){o?r.f^=me:i&Wr?t.effects.push(r):jn(r)&&(r.f&dt&&t.block_effects.push(r),On(r));var l=r.first;if(l!==null){r=l;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)d===t.effect&&(Y(this,We,Ot).call(this,t.effects),Y(this,We,Ot).call(this,t.render_effects),Y(this,We,Ot).call(this,t.block_effects),t=t.parent),r=d.next,d=d.parent}},Ot=function(e){for(const t of e)(t.f&Pe?h(this,In):h(this,Rn)).push(t),Y(this,We,Rr).call(this,t.deps),be(t,me)},Rr=function(e){if(e!==null)for(const t of e)!(t.f&fe)||!(t.f&Lt)||(t.f^=Lt,Y(this,We,Rr).call(this,t.deps))},Di=function(){if(h(this,Ct)===0){for(const e of h(this,En))e();h(this,En).clear()}h(this,St)===0&&Y(this,We,Ei).call(this)},Ei=function(){var e;if(Xn.size>1){this.previous.clear();var t=ye,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of Xn){if(o===this){n=!1;continue}const s=[];for(const[l,d]of this.current){if(o.current.has(l))if(n&&d!==o.current.get(l))o.current.set(l,d);else continue;s.push(l)}if(s.length===0)continue;const c=[...o.current.keys()].filter(l=>!this.current.has(l));if(c.length>0){var i=Ne;Ne=[];const l=new Set,d=new Map;for(const f of s)Ii(f,c,l,d);if(Ne.length>0){J=o,o.apply();for(const f of Ne)Y(e=o,We,Ir).call(e,f,r);o.deactivate()}Ne=i}}J=null,ye=t}this.committed=!0,Xn.delete(this)};let qt=Ba;function La(e){var t=Dn;Dn=!0;try{for(var n;;){if(za(),Ne.length===0&&(J?.flush(),Ne.length===0))return tr=null,n;Mi()}}finally{Dn=t}}function Mi(){var e=Et;Ar=!0;var t=null;try{var n=0;for(cr(!0);Ne.length>0;){var r=qt.ensure();if(n++>1e3){var i,o;Na()}r.process(Ne),Dt.clear()}}finally{Ar=!1,cr(e),tr=null}}function Na(){try{Sa()}catch(e){sn(e,tr)}}let tt=null;function Ai(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(ft|Me))&&jn(r)&&(tt=new Set,On(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Qi(r):r.fn=null),tt?.size>0)){Dt.clear();for(const i of tt){if(i.f&(ft|Me))continue;const o=[i];let s=i.parent;for(;s!==null;)tt.has(s)&&(tt.delete(s),o.push(s)),s=s.parent;for(let c=o.length-1;c>=0;c--){const l=o[c];l.f&(ft|Me)||On(l)}}tt.clear()}}tt=null}}function Ii(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&fe?Ii(i,t,n,r):o&(Mr|dt)&&!(o&Pe)&&Ri(i,t,r)&&(be(i,Pe),$t(i))}}function Ri(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&fe&&Ri(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function $t(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ar&&t===Z&&n&dt&&!(n&Si))return;if(n&(zt|pt)){if(!(n&me))return;t.f^=me}}Ne.push(t)}function ja(e){let t=0,n=Gt(0),r;return()=>{sr()&&(a(n),Ur(()=>(t===0&&(r=qn(()=>e(()=>zn(n)))),t+=1,()=>{an(()=>{t-=1,t===0&&(r?.(),r=void 0,zn(n))})})))}}var Oa=Bt|tn|Qn;function qa(e,t,n){new Fa(e,t,n)}var Ve,Ke,zi,vt,ln,gt,Ye,Ae,wt,Pt,Ut,Ft,Wt,cn,Ht,zr,je,$a,Ua,Br,nr,rr,Lr;class Fa{constructor(t,n,r){F(this,je),ut(this,"parent"),F(this,Ve,!1),F(this,Ke),F(this,zi,null),F(this,vt),F(this,ln),F(this,gt),F(this,Ye,null),F(this,Ae,null),F(this,wt,null),F(this,Pt,null),F(this,Ut,null),F(this,Ft,0),F(this,Wt,0),F(this,cn,!1),F(this,Ht,null),F(this,zr,ja(()=>(j(this,Ht,Gt(h(this,Ft))),()=>{j(this,Ht,null)}))),j(this,Ke,t),j(this,vt,n),j(this,ln,r),this.parent=Z.b,j(this,Ve,!!h(this,vt).pending),j(this,gt,lr(()=>{Z.b=this;{var i=Y(this,je,Br).call(this);try{j(this,Ye,qe(()=>r(i)))}catch(o){this.error(o)}h(this,Wt)>0?Y(this,je,rr).call(this):j(this,Ve,!1)}return()=>{var o;(o=h(this,Ut))==null||o.remove()}},Oa))}is_pending(){return h(this,Ve)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,vt).pending}update_pending_count(t){Y(this,je,Lr).call(this,t),j(this,Ft,h(this,Ft)+t),h(this,Ht)&&dn(h(this,Ht),h(this,Ft))}get_effect_pending(){return h(this,zr).call(this),a(h(this,Ht))}error(t){var n=h(this,vt).onerror;let r=h(this,vt).failed;if(h(this,cn)||!n&&!r)throw t;h(this,Ye)&&(Te(h(this,Ye)),j(this,Ye,null)),h(this,Ae)&&(Te(h(this,Ae)),j(this,Ae,null)),h(this,wt)&&(Te(h(this,wt)),j(this,wt,null));var i=!1,o=!1;const s=()=>{if(i){Ma();return}i=!0,o&&Da(),qt.ensure(),j(this,Ft,0),h(this,wt)!==null&&pn(h(this,wt),()=>{j(this,wt,null)}),j(this,Ve,this.has_pending_snippet()),j(this,Ye,Y(this,je,nr).call(this,()=>(j(this,cn,!1),qe(()=>h(this,ln).call(this,h(this,Ke)))))),h(this,Wt)>0?Y(this,je,rr).call(this):j(this,Ve,!1)};var c=G;try{De(null),o=!0,n?.(t,s),o=!1}catch(l){sn(l,h(this,gt)&&h(this,gt).parent)}finally{De(c)}r&&an(()=>{j(this,wt,Y(this,je,nr).call(this,()=>{qt.ensure(),j(this,cn,!0);try{return qe(()=>{r(h(this,Ke),()=>t,()=>s)})}catch(l){return sn(l,h(this,gt).parent),null}finally{j(this,cn,!1)}}))})}}Ve=new WeakMap,Ke=new WeakMap,zi=new WeakMap,vt=new WeakMap,ln=new WeakMap,gt=new WeakMap,Ye=new WeakMap,Ae=new WeakMap,wt=new WeakMap,Pt=new WeakMap,Ut=new WeakMap,Ft=new WeakMap,Wt=new WeakMap,cn=new WeakMap,Ht=new WeakMap,zr=new WeakMap,je=new WeakSet,$a=function(){try{j(this,Ye,qe(()=>h(this,ln).call(this,h(this,Ke))))}catch(e){this.error(e)}j(this,Ve,!1)},Ua=function(){const e=h(this,vt).pending;e&&(j(this,Ae,qe(()=>e(h(this,Ke)))),qt.enqueue(()=>{var t=Y(this,je,Br).call(this);j(this,Ye,Y(this,je,nr).call(this,()=>(qt.ensure(),qe(()=>h(this,ln).call(this,t))))),h(this,Wt)>0?Y(this,je,rr).call(this):(pn(h(this,Ae),()=>{j(this,Ae,null)}),j(this,Ve,!1))}))},Br=function(){var e=h(this,Ke);return h(this,Ve)&&(j(this,Ut,mt()),h(this,Ke).before(h(this,Ut)),e=h(this,Ut)),e},nr=function(e){var t=Z,n=G,r=le;it(h(this,gt)),De(h(this,gt)),on(h(this,gt).ctx);try{return e()}catch(i){return Ti(i),null}finally{it(t),De(n),on(r)}},rr=function(){const e=h(this,vt).pending;h(this,Ye)!==null&&(j(this,Pt,document.createDocumentFragment()),h(this,Pt).append(h(this,Ut)),to(h(this,Ye),h(this,Pt))),h(this,Ae)===null&&j(this,Ae,qe(()=>e(h(this,Ke))))},Lr=function(e){var t;if(!this.has_pending_snippet()){this.parent&&Y(t=this.parent,je,Lr).call(t,e);return}j(this,Wt,h(this,Wt)+e),h(this,Wt)===0&&(j(this,Ve,!1),h(this,Ae)&&pn(h(this,Ae),()=>{j(this,Ae,null)}),h(this,Pt)&&(h(this,Ke).before(h(this,Pt)),j(this,Pt,null)))};function un(e,t){return t}function Ha(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)Fr(t[o].e,r,!0);Xi(r,()=>{var s=r.length===0&&n!==null;if(s){var c=n,l=c.parentNode;ns(l),l.append(c),e.items.clear(),nt(e,t[0].prev,t[i-1].next)}for(var d=0;d<i;d++){var f=t[d];s||(e.items.delete(f.k),nt(e,f.prev,f.next)),Te(f.e,!s)}e.first===t[0]&&(e.first=t[0].prev)})}function Tt(e,t,n,r,i,o=null){var s=e,c=new Map,l=null,d=(t&mi)!==0,f=(t&gi)!==0,g=(t&wi)!==0;if(d){var p=e;s=p.appendChild(mt())}var u=null,w=jr(()=>{var v=n();return Cr(v)?v:v==null?[]:Pr(v)}),m,S=!0;function W(){Ga(N,m,s,t,r),u!==null&&(m.length===0?(u.fragment?(s.before(u.fragment),u.fragment=null):Hr(u.effect),b.first=u.effect):pn(u.effect,()=>{u=null}))}var b=lr(()=>{m=a(w);for(var v=m.length,k=new Set,E=J,P=null,T=Gi(),z=0;z<v;z+=1){var U=m[z],q=r(U,z),I=S?null:c.get(q);I?(f&&dn(I.v,U),g?dn(I.i,z):I.i=z,T&&E.skipped_effects.delete(I.e)):(I=Va(S?s:null,P,U,q,z,i,t,n),S&&(I.o=!0,P===null?l=I:P.next=I,P=I),c.set(q,I)),k.add(q)}if(v===0&&o&&!u)if(S)u={fragment:null,effect:qe(()=>o(s))};else{var se=document.createDocumentFragment(),ee=mt();se.append(ee),u={fragment:se,effect:qe(()=>o(ee))}}if(!S)if(T){for(const[ve,ke]of c)k.has(ve)||E.skipped_effects.add(ke.e);E.oncommit(W),E.ondiscard(()=>{})}else W();a(w)}),N={effect:b,items:c,first:l};S=!1}function Ga(e,t,n,r,i){var o,s,c,l,d=(r&Xo)!==0,f=t.length,g=e.items,p=e.first,u,w=null,m,S=[],W=[],b,N,v,k;if(d)for(k=0;k<f;k+=1)b=t[k],N=i(b,k),v=g.get(N),(o=v.a)==null||o.measure(),(m??(m=new Set)).add(v);for(k=0;k<f;k+=1){if(b=t[k],N=i(b,k),v=g.get(N),e.first??(e.first=v),!v.o){v.o=!0;var E=w?w.next:p;nt(e,w,v),nt(e,v,E),Nr(v,E,n),w=v,S=[],W=[],p=w.next;continue}if(v.e.f&Me&&(Hr(v.e),d&&((s=v.a)==null||s.unfix(),(m??(m=new Set)).delete(v))),v!==p){if(u!==void 0&&u.has(v)){if(S.length<W.length){var P=W[0],T;w=P.prev;var z=S[0],U=S[S.length-1];for(T=0;T<S.length;T+=1)Nr(S[T],P,n);for(T=0;T<W.length;T+=1)u.delete(W[T]);nt(e,z.prev,U.next),nt(e,w,z),nt(e,U,P),p=P,w=U,k-=1,S=[],W=[]}else u.delete(v),Nr(v,p,n),nt(e,v.prev,v.next),nt(e,v,w===null?e.first:w.next),nt(e,w,v),w=v;continue}for(S=[],W=[];p!==null&&p.k!==N;)p.e.f&Me||(u??(u=new Set)).add(p),W.push(p),p=p.next;if(p===null)continue;v=p}S.push(v),w=v,p=v.next}if(p!==null||u!==void 0){for(var q=u===void 0?[]:Pr(u);p!==null;)p.e.f&Me||q.push(p),p=p.next;var I=q.length;if(I>0){var se=r&mi&&f===0?n:null;if(d){for(k=0;k<I;k+=1)(c=q[k].a)==null||c.measure();for(k=0;k<I;k+=1)(l=q[k].a)==null||l.fix()}Ha(e,q,se)}}d&&an(()=>{var ee;if(m!==void 0)for(v of m)(ee=v.a)==null||ee.apply()})}function Va(e,t,n,r,i,o,s,c){var l=(s&gi)!==0,d=(s&ea)===0,f=l?d?Qa(n,!1,!1):Gt(n):n,g=s&wi?Gt(i):i,p={i:g,v:f,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var u=document.createDocumentFragment();u.append(e=mt())}return p.e=qe(()=>o(e,f,g,c)),t!==null&&(t.next=p),p}finally{}}function Nr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==null&&o!==r;){var s=Bn(o);i.before(o),o=s}}function nt(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Ka(e,t,n,r){const i=Tn()?or:jr;if(n.length===0&&e.length===0){r(t.map(i));return}var o=J,s=Z,c=Ya();function l(){Promise.all(n.map(d=>Za(d))).then(d=>{c();try{r([...t.map(i),...d])}catch(f){s.f&ft||sn(f,s)}o?.deactivate(),ir()}).catch(d=>{sn(d,s)})}e.length>0?Promise.all(e).then(()=>{c();try{return l()}finally{o?.deactivate(),ir()}}):l()}function Ya(){var e=Z,t=G,n=le,r=J;return function(i=!0){it(e),De(t),on(n),i&&r?.activate()}}function ir(){it(null),De(null),on(null)}function or(e){var t=fe|Pe,n=G!==null&&G.f&fe?G:null;return Z!==null&&(Z.f|=tn),{ctx:le,deps:null,effects:null,equals:Ci,f:t,fn:e,reactions:null,rv:0,v:we,wv:0,parent:n??Z,ac:null}}function Za(e,t){let n=Z;n===null&&ba();var r=n.b,i=void 0,o=Gt(we),s=!G,c=new Map;return ls(()=>{var l,d=xi();i=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{f===J&&f.committed&&f.deactivate(),ir()})}catch(u){d.reject(u),ir()}var f=J;if(s){var g=!r.is_pending();r.update_pending_count(1),f.increment(g),(l=c.get(f))==null||l.reject(nn),c.delete(f),c.set(f,d)}const p=(u,w=void 0)=>{if(f.activate(),w)w!==nn&&(o.f|=_t,dn(o,w));else{o.f&_t&&(o.f^=_t),dn(o,u);for(const[m,S]of c){if(c.delete(m),m===f)break;S.reject(nn)}}s&&(r.update_pending_count(-1),f.decrement(g))};d.promise.then(p,u=>p(null,u||"unknown"))}),$r(()=>{for(const l of c.values())l.reject(nn)}),new Promise(l=>{function d(f){function g(){f===i?l(o):d(i)}f.then(g,g)}d(i)})}function X(e){const t=or(e);return ro(t),t}function jr(e){const t=or(e);return t.equals=Pi,t}function Bi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Te(t[n])}}function Ja(e){for(var t=e.parent;t!==null;){if(!(t.f&fe))return t.f&ft?null:t;t=t.parent}return null}function Or(e){var t,n=Z;it(Ja(e));try{e.f&=~Lt,Bi(e),t=lo(e)}finally{it(n)}return t}function Li(e){var t=Or(e);if(e.equals(t)||(J!=null&&J.is_fork||(e.v=t),e.wv=ao()),!Vt)if(ye!==null)sr()&&ye.set(e,t);else{var n=e.f&Ge?me:ht;be(e,n)}}let qr=new Set;const Dt=new Map;let Ni=!1;function Gt(e,t){var n={f:0,v:e,reactions:null,equals:Ci,rv:0,wv:0};return n}function V(e,t){const n=Gt(e);return ro(n),n}function Qa(e,t=!1,n=!0){var r;const i=Gt(e);return t||(i.equals=Pi),rn&&n&&le!==null&&le.l!==null&&((r=le.l).s??(r.s=[])).push(i),i}function y(e,t,n=!1){G!==null&&(!rt||G.f&_i)&&Tn()&&G.f&(fe|dt|Mr|_i)&&!($e!=null&&$e.includes(e))&&Ta();let r=n?Oe(t):t;return dn(e,r)}function dn(e,t){if(!e.equals(t)){var n=e.v;Vt?Dt.set(e,t):Dt.set(e,n),e.v=t;var r=qt.ensure();r.capture(e,n),e.f&fe&&(e.f&Pe&&Or(e),be(e,e.f&Ge?me:ht)),e.wv=ao(),Oi(e,Pe),Tn()&&Z!==null&&Z.f&me&&!(Z.f&(pt|zt))&&(Ue===null?ds([e]):Ue.push(e)),!r.is_fork&&qr.size>0&&!Ni&&Xa()}return t}function Xa(){Ni=!1;var e=Et;cr(!0);const t=Array.from(qr);try{for(const n of t)n.f&me&&be(n,ht),jn(n)&&On(n)}finally{cr(e)}qr.clear()}function ji(e,t=1){var n=a(e),r=t===1?n++:n--;return y(e,n),r}function zn(e){y(e,e.v+1)}function Oi(e,t){var n=e.reactions;if(n!==null)for(var r=Tn(),i=n.length,o=0;o<i;o++){var s=n[o],c=s.f;if(!(!r&&s===Z)){var l=(c&Pe)===0;if(l&&be(s,t),c&fe){var d=s;ye?.delete(d),c&Lt||(c&Ge&&(s.f|=Lt),Oi(d,ht))}else l&&(c&dt&&tt!==null&&tt.add(s),$t(s))}}}function Oe(e){if(typeof e!="object"||e===null||Nt in e)return e;const t=bi(e);if(t!==pa&&t!==ha)return e;var n=new Map,r=Cr(e),i=V(0),o=Kt,s=c=>{if(Kt===o)return c();var l=G,d=Kt;De(null),oo(o);var f=c();return De(l),oo(d),f};return r&&n.set("length",V(e.length)),new Proxy(e,{defineProperty(c,l,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Pa();var f=n.get(l);return f===void 0?f=s(()=>{var g=V(d.value);return n.set(l,g),g}):y(f,d.value,!0),!0},deleteProperty(c,l){var d=n.get(l);if(d===void 0){if(l in c){const f=s(()=>V(we));n.set(l,f),zn(i)}}else y(d,we),zn(i);return!0},get(c,l,d){var f;if(l===Nt)return e;var g=n.get(l),p=l in c;if(g===void 0&&(!p||(f=en(c,l))!=null&&f.writable)&&(g=s(()=>{var w=Oe(p?c[l]:we),m=V(w);return m}),n.set(l,g)),g!==void 0){var u=a(g);return u===we?void 0:u}return Reflect.get(c,l,d)},getOwnPropertyDescriptor(c,l){var d=Reflect.getOwnPropertyDescriptor(c,l);if(d&&"value"in d){var f=n.get(l);f&&(d.value=a(f))}else if(d===void 0){var g=n.get(l),p=g?.v;if(g!==void 0&&p!==we)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(c,l){var d;if(l===Nt)return!0;var f=n.get(l),g=f!==void 0&&f.v!==we||Reflect.has(c,l);if(f!==void 0||Z!==null&&(!g||(d=en(c,l))!=null&&d.writable)){f===void 0&&(f=s(()=>{var u=g?Oe(c[l]):we,w=V(u);return w}),n.set(l,f));var p=a(f);if(p===we)return!1}return g},set(c,l,d,f){var g,p=n.get(l),u=l in c;if(r&&l==="length")for(var w=d;w<p.v;w+=1){var m=n.get(w+"");m!==void 0?y(m,we):w in c&&(m=s(()=>V(we)),n.set(w+"",m))}if(p===void 0)(!u||(g=en(c,l))!=null&&g.writable)&&(p=s(()=>V(void 0)),y(p,Oe(d)),n.set(l,p));else{u=p.v!==we;var S=s(()=>Oe(d));y(p,S)}var W=Reflect.getOwnPropertyDescriptor(c,l);if(W!=null&&W.set&&W.set.call(f,d),!u){if(r&&typeof l=="string"){var b=n.get("length"),N=Number(l);Number.isInteger(N)&&N>=b.v&&y(b,N+1)}zn(i)}return!0},ownKeys(c){a(i);var l=Reflect.ownKeys(c).filter(g=>{var p=n.get(g);return p===void 0||p.v!==we});for(var[d,f]of n)f.v!==we&&!(d in c)&&l.push(d);return l},setPrototypeOf(){Wa()}})}function qi(e){try{if(e!==null&&typeof e=="object"&&Nt in e)return e[Nt]}catch{}return e}function es(e,t){return Object.is(qi(e),qi(t))}var $i,Ui,Fi,Hi;function ts(){if($i===void 0){$i=window,Ui=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fi=en(t,"firstChild").get,Hi=en(t,"nextSibling").get,ki(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ki(n)&&(n.__t=void 0)}}function mt(e=""){return document.createTextNode(e)}function yt(e){return Fi.call(e)}function Bn(e){return Hi.call(e)}function D(e,t){return yt(e)}function de(e,t=!1){{var n=yt(e);return n instanceof Comment&&n.data===""?Bn(n):n}}function M(e,t=1,n=!1){let r=e;for(;t--;)r=Bn(r);return r}function ns(e){e.textContent=""}function Gi(){return!1}let Vi=!1;function rs(){Vi||(Vi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function ar(e){var t=G,n=Z;De(null),it(null);try{return e()}finally{De(t),it(n)}}function is(e,t,n,r=n){e.addEventListener(t,()=>ar(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),rs()}function os(e){Z===null&&(G===null&&_a(),xa()),Vt&&ka()}function as(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function bt(e,t,n){var r=Z;r!==null&&r.f&Me&&(e|=Me);var i={ctx:le,deps:null,nodes_start:null,nodes_end:null,f:e|Pe|Ge,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{On(i),i.f|=Dr}catch(c){throw Te(i),c}else t!==null&&$t(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&tn)&&(o=o.first,e&dt&&e&Bt&&o!==null&&(o.f|=Bt)),o!==null&&(o.parent=r,r!==null&&as(o,r),G!==null&&G.f&fe&&!(e&zt))){var s=G;(s.effects??(s.effects=[])).push(o)}return i}function sr(){return G!==null&&!rt}function $r(e){const t=bt(Tr,null,!1);return be(t,me),t.teardown=e,t}function Ln(e){os();var t=Z.f,n=!G&&(t&pt)!==0&&(t&Dr)===0;if(n){var r=le;(r.e??(r.e=[])).push(e)}else return Ki(e)}function Ki(e){return bt(Wr|ga,e,!1)}function ss(e){qt.ensure();const t=bt(zt|tn,e,!0);return(n={})=>new Promise(r=>{n.outro?pn(t,()=>{Te(t),r(void 0)}):(Te(t),r(void 0))})}function Yi(e){return bt(Wr,e,!1)}function ls(e){return bt(Mr|tn,e,!0)}function Ur(e,t=0){return bt(Tr|t,e,!0)}function L(e,t=[],n=[],r=[]){Ka(r,t,n,i=>{bt(Tr,()=>e(...i.map(a)),!0)})}function lr(e,t=0){var n=bt(dt|t,e,!0);return n}function qe(e){return bt(pt|tn,e,!0)}function Zi(e){var t=e.teardown;if(t!==null){const n=Vt,r=G;no(!0),De(null);try{t.call(null)}finally{no(n),De(r)}}}function Ji(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&ar(()=>{i.abort(nn)});var r=n.next;n.f&zt?n.parent=null:Te(n,t),n=r}}function cs(e){for(var t=e.first;t!==null;){var n=t.next;t.f&pt||Te(t),t=n}}function Te(e,t=!0){var n=!1;(t||e.f&Si)&&e.nodes_start!==null&&e.nodes_end!==null&&(us(e.nodes_start,e.nodes_end),n=!0),Ji(e,t&&!n),ur(e,0),be(e,ft);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Zi(e);var i=e.parent;i!==null&&i.first!==null&&Qi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function us(e,t){for(;e!==null;){var n=e===t?null:Bn(e);e.remove(),e=n}}function Qi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function pn(e,t,n=!0){var r=[];Fr(e,r,!0),Xi(r,()=>{n&&Te(e),t&&t()})}function Xi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Fr(e,t,n){if(!(e.f&Me)){if(e.f^=Me,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Bt)!==0||(r.f&pt)!==0&&(e.f&dt)!==0;Fr(r,t,o?n:!1),r=i}}}function Hr(e){eo(e,!0)}function eo(e,t){if(e.f&Me){e.f^=Me,e.f&me||(be(e,Pe),$t(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Bt)!==0||(n.f&pt)!==0;eo(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function to(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Bn(n);t.append(n),n=i}}let Et=!1;function cr(e){Et=e}let Vt=!1;function no(e){Vt=e}let G=null,rt=!1;function De(e){G=e}let Z=null;function it(e){Z=e}let $e=null;function ro(e){G!==null&&($e===null?$e=[e]:$e.push(e))}let Ce=null,Ie=0,Ue=null;function ds(e){Ue=e}let io=1,Nn=0,Kt=Nn;function oo(e){Kt=e}function ao(){return++io}function jn(e){var t=e.f;if(t&Pe)return!0;if(t&fe&&(e.f&=~Lt),t&ht){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(jn(o)&&Li(o),o.wv>e.wv)return!0}t&Ge&&ye===null&&be(e,me)}return!1}function so(e,t,n=!0){var r=e.reactions;if(r!==null&&!($e!=null&&$e.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&fe?so(o,t,!1):t===o&&(n?be(o,Pe):o.f&me&&be(o,ht),$t(o))}}function lo(e){var t,n=Ce,r=Ie,i=Ue,o=G,s=$e,c=le,l=rt,d=Kt,f=e.f;Ce=null,Ie=0,Ue=null,G=f&(pt|zt)?null:e,$e=null,on(e.ctx),rt=!1,Kt=++Nn,e.ac!==null&&(ar(()=>{e.ac.abort(nn)}),e.ac=null);try{e.f|=Er;var g=e.fn,p=g(),u=e.deps;if(Ce!==null){var w;if(ur(e,Ie),u!==null&&Ie>0)for(u.length=Ie+Ce.length,w=0;w<Ce.length;w++)u[Ie+w]=Ce[w];else e.deps=u=Ce;if(Et&&sr()&&e.f&Ge)for(w=Ie;w<u.length;w++)((t=u[w]).reactions??(t.reactions=[])).push(e)}else u!==null&&Ie<u.length&&(ur(e,Ie),u.length=Ie);if(Tn()&&Ue!==null&&!rt&&u!==null&&!(e.f&(fe|ht|Pe)))for(w=0;w<Ue.length;w++)so(Ue[w],e);return o!==null&&o!==e&&(Nn++,Ue!==null&&(i===null?i=Ue:i.push(...Ue))),e.f&_t&&(e.f^=_t),p}catch(m){return Ti(m)}finally{e.f^=Er,Ce=n,Ie=r,Ue=i,G=o,$e=s,on(c),rt=l,Kt=d}}function ps(e,t){let n=t.reactions;if(n!==null){var r=ca.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&fe&&(Ce===null||!Ce.includes(t))&&(be(t,ht),t.f&Ge&&(t.f^=Ge,t.f&=~Lt),Bi(t),ur(t,0))}function ur(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ps(e,n[r])}function On(e){var t=e.f;if(!(t&ft)){be(e,me);var n=Z,r=Et;Z=e,Et=!0;try{t&dt?cs(e):Ji(e),Zi(e);var i=lo(e);e.teardown=typeof i=="function"?i:null,e.wv=io;var o;la&&Ia&&e.f&Pe&&e.deps}finally{Et=r,Z=n}}}async function hs(){await Promise.resolve(),La()}function a(e){var t=e.f,n=(t&fe)!==0;if(G!==null&&!rt){var r=Z!==null&&(Z.f&ft)!==0;if(!r&&!($e!=null&&$e.includes(e))){var i=G.deps;if(G.f&Er)e.rv<Nn&&(e.rv=Nn,Ce===null&&i!==null&&i[Ie]===e?Ie++:Ce===null?Ce=[e]:Ce.includes(e)||Ce.push(e));else{(G.deps??(G.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[G]:o.includes(G)||o.push(G)}}}if(Vt){if(Dt.has(e))return Dt.get(e);if(n){var s=e,c=s.v;return(!(s.f&me)&&s.reactions!==null||uo(s))&&(c=Or(s)),Dt.set(s,c),c}}else n&&!(ye!=null&&ye.has(e))&&(s=e,jn(s)&&Li(s),Et&&sr()&&!(s.f&Ge)&&co(s));if(ye!=null&&ye.has(e))return ye.get(e);if(e.f&_t)throw e.v;return e.v}function co(e){if(e.deps!==null){e.f^=Ge;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&fe&&!(t.f&Ge)&&co(t)}}function uo(e){if(e.v===we)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Dt.has(t)||t.f&fe&&uo(t))return!0;return!1}function qn(e){var t=rt;try{return rt=!0,e()}finally{rt=t}}const fs=-7169;function be(e,t){e.f=e.f&fs|t}const po=new Set,Gr=new Set;function vs(e,t,n,r={}){function i(o){if(r.capture||$n.call(t,o),!o.cancelBubble)return ar(()=>n?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?an(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ot(e,t,n,r,i){var o={capture:r,passive:i},s=vs(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$r(()=>{t.removeEventListener(e,s,o)})}function dr(e){for(var t=0;t<e.length;t++)po.add(e[t]);for(var n of Gr)n(e)}let ho=null;function $n(e){var t,n=this,r=n.ownerDocument,i=e.type,o=((t=e.composedPath)==null?void 0:t.call(e))||[],s=o[0]||e.target;ho=e;var c=0,l=ho===e&&e.__root;if(l){var d=o.indexOf(l);if(d!==-1&&(n===document||n===window)){e.__root=n;return}var f=o.indexOf(n);if(f===-1)return;d<=f&&(c=d)}if(s=o[c]||e.target,s!==n){ua(e,"currentTarget",{configurable:!0,get(){return s||r}});var g=G,p=Z;De(null),it(null);try{for(var u,w=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var S=s["__"+i];S!=null&&(!s.disabled||e.target===s)&&S.call(s,e)}catch(W){u?w.push(W):u=W}if(e.cancelBubble||m===n||m===null)break;s=m}if(u){for(let W of w)queueMicrotask(()=>{throw W});throw u}}finally{e.__root=n,delete e.currentTarget,De(g),it(p)}}}function fo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function hn(e,t){var n=Z;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function O(e,t){var n=(t&yi)!==0,r=(t&aa)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=fo(o?e:"<!>"+e),n||(i=yt(i)));var s=r||Ui?document.importNode(i,!0):i.cloneNode(!0);if(n){var c=yt(s),l=s.lastChild;hn(c,l)}else hn(s,s);return s}}function gs(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&yi)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(!s){var c=fo(o),l=yt(c);if(i)for(s=document.createDocumentFragment();yt(l);)s.appendChild(yt(l));else s=yt(l)}var d=s.cloneNode(!0);if(i){var f=yt(d),g=d.lastChild;hn(f,g)}else hn(d,d);return d}}function Mt(e,t){return gs(e,t,"svg")}function At(e=""){{var t=mt(e+"");return hn(t,t),t}}function Ze(){var e=document.createDocumentFragment(),t=document.createComment(""),n=mt();return e.append(t,n),hn(t,n),e}function _(e,t){e!==null&&e.before(t)}const ws=["touchstart","touchmove"];function ms(e){return ws.includes(e)}function $(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function ys(e,t){return bs(e,t)}const fn=new Map;function bs(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0}){ts();var c=new Set,l=g=>{for(var p=0;p<g.length;p++){var u=g[p];if(!c.has(u)){c.add(u);var w=ms(u);t.addEventListener(u,$n,{passive:w});var m=fn.get(u);m===void 0?(document.addEventListener(u,$n,{passive:w}),fn.set(u,1)):fn.set(u,m+1)}}};l(Pr(po)),Gr.add(l);var d=void 0,f=ss(()=>{var g=n??t.appendChild(mt());return qa(g,{pending:()=>{}},p=>{if(o){Xe({});var u=le;u.c=o}i&&(r.$$events=i),d=e(p,r)||{},o&&et()}),()=>{var p;for(var u of c){t.removeEventListener(u,$n);var w=fn.get(u);--w===0?(document.removeEventListener(u,$n),fn.delete(u)):fn.set(u,w)}Gr.delete(l),g!==n&&((p=g.parentNode)==null||p.removeChild(g))}});return ks.set(d,f),d}let ks=new WeakMap;var at,kt,Fe,vn,pr,hr,Vr;class vo{constructor(t,n=!0){ut(this,"anchor"),F(this,at,new Map),F(this,kt,new Map),F(this,Fe,new Map),F(this,vn,new Set),F(this,pr,!0),F(this,hr,()=>{var r=J;if(h(this,at).has(r)){var i=h(this,at).get(r),o=h(this,kt).get(i);if(o)Hr(o),h(this,vn).delete(i);else{var s=h(this,Fe).get(i);s&&(h(this,kt).set(i,s.effect),h(this,Fe).delete(i),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),o=s.effect)}for(const[c,l]of h(this,at)){if(h(this,at).delete(c),c===r)break;const d=h(this,Fe).get(l);d&&(Te(d.effect),h(this,Fe).delete(l))}for(const[c,l]of h(this,kt)){if(c===i||h(this,vn).has(c))continue;const d=()=>{if(Array.from(h(this,at).values()).includes(c)){var f=document.createDocumentFragment();to(l,f),f.append(mt()),h(this,Fe).set(c,{effect:l,fragment:f})}else Te(l);h(this,vn).delete(c),h(this,kt).delete(c)};h(this,pr)||!o?(h(this,vn).add(c),pn(l,d,!1)):d()}}}),F(this,Vr,r=>{h(this,at).delete(r);const i=Array.from(h(this,at).values());for(const[o,s]of h(this,Fe))i.includes(o)||(Te(s.effect),h(this,Fe).delete(o))}),this.anchor=t,j(this,pr,n)}ensure(t,n){var r=J,i=Gi();if(n&&!h(this,kt).has(t)&&!h(this,Fe).has(t))if(i){var o=document.createDocumentFragment(),s=mt();o.append(s),h(this,Fe).set(t,{effect:qe(()=>n(s)),fragment:o})}else h(this,kt).set(t,qe(()=>n(this.anchor)));if(h(this,at).set(r,t),i){for(const[c,l]of h(this,kt))c===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[c,l]of h(this,Fe))c===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(h(this,hr)),r.ondiscard(h(this,Vr))}else h(this,hr).call(this)}}at=new WeakMap,kt=new WeakMap,Fe=new WeakMap,vn=new WeakMap,pr=new WeakMap,hr=new WeakMap,Vr=new WeakMap;function Kr(e){le===null&&ya(),rn&&le.l!==null?xs(le).m.push(e):Ln(()=>{const t=qn(e);if(typeof t=="function")return t})}function xs(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function H(e,t,n=!1){var r=new vo(e),i=n?Bt:0;function o(s,c){r.ensure(s,c)}lr(()=>{var s=!1;t((c,l=!0)=>{s=!0,o(l,c)}),s||o(!1,null)},i)}function go(e,t,n,r,i){var o,s=(o=t.$$slots)==null?void 0:o[n],c=!1;s===!0&&(s=t.children,c=!0),s===void 0||s(e,c?()=>r:r)}function wo(e,t,n){var r=new vo(e);lr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Bt)}function st(e,t){Yi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function mo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _s(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mo(e))&&(r&&(r+=" "),r+=t);return r}function gn(e){return typeof e=="object"?_s(e):e??""}function Ss(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function It(e,t,n,r,i,o){var s=e.__className;if(s!==n||s===void 0){var c=Ss(n,r);c==null?e.removeAttribute("class"):t?e.className=c:e.setAttribute("class",c),e.__className=n}return o}function yo(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Cr(t))return Ea();for(var r of e.options)r.selected=t.includes(bo(r));return}for(r of e.options){var i=bo(r);if(es(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Cs(e){var t=new MutationObserver(()=>{yo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),$r(()=>{t.disconnect()})}function bo(e){return"__value"in e?e.__value:e.value}const Ps=Symbol("is custom element"),Ws=Symbol("is html");function Ts(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function A(e,t,n,r){var i=Ds(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[ma]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Es(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ds(e){return e.__attributes??(e.__attributes={[Ps]:e.nodeName.includes("-"),[Ws]:e.namespaceURI===sa})}var ko=new Map;function Es(e){var t=e.getAttribute("is")||e.nodeName,n=ko.get(t);if(n)return n;ko.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=da(i);for(var s in r)r[s].set&&n.push(s);i=bi(i)}return n}function Ms(e,t,n=t){var r=new WeakSet;is(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Yr(e)?Zr(o):o,n(o),J!==null&&r.add(J),await hs(),o!==(o=t())){var s=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=o??"",c!==null){var d=e.value.length;s===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=s,e.selectionEnd=Math.min(c,d))}}}),qn(t)==null&&e.value&&(n(Yr(e)?Zr(e.value):e.value),J!==null&&r.add(J)),Ur(()=>{var i=t();if(e===document.activeElement){var o=er??J;if(r.has(o))return}Yr(e)&&i===Zr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Yr(e){var t=e.type;return t==="number"||t==="range"}function Zr(e){return e===""?null:+e}function xo(e,t){return e===t||e?.[Nt]===t}function As(e={},t,n,r){return Yi(()=>{var i,o;return Ur(()=>{i=o,o=[],qn(()=>{e!==n(...o)&&(t(e,...o),i&&xo(n(...i),e)&&t(null,...i))})}),()=>{an(()=>{o&&xo(n(...o),e)&&t(null,...o)})}}),e}let fr=!1;function Is(e){var t=fr;try{return fr=!1,[e(),fr]}finally{fr=t}}function Re(e,t,n,r){var i,o=!rn||(n&na)!==0,s=(n&ia)!==0,c=(n&oa)!==0,l=r,d=!0,f=()=>(d&&(d=!1,l=c?qn(r):r),l),g;if(s){var p=Nt in e||wa in e;g=((i=en(e,t))==null?void 0:i.set)??(p&&t in e?v=>e[t]=v:void 0)}var u,w=!1;s?[u,w]=Is(()=>e[t]):u=e[t],u===void 0&&r!==void 0&&(u=f(),g&&(o&&Ca(),g(u)));var m;if(o?m=()=>{var v=e[t];return v===void 0?f():(d=!0,v)}:m=()=>{var v=e[t];return v!==void 0&&(l=void 0),v===void 0?l:v},o&&!(n&ra))return m;if(g){var S=e.$$legacy;return function(v,k){return arguments.length>0?((!o||!k||S||w)&&g(k?m():v),v):m()}}var W=!1,b=(n&ta?or:jr)(()=>(W=!1,m()));s&&a(b);var N=Z;return function(v,k){if(arguments.length>0){const E=k?a(b):o&&s?Oe(v):v;return y(b,E),W=!0,l!==void 0&&(l=E),v}return Vt&&W||N.f&ft?b.v:a(b)}}const _o="wineater_consent",Rs=["wineater_uid","uniqueUserID","sessionID"];function zs(){try{const e=window.localStorage.getItem(_o);return e==="granted"||e==="denied"?e:null}catch{return null}}let Jr=V(Oe(zs())),vr=V(null);function Bs(e){y(vr,e,!0)}function So(){var e;return((e=window?.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(vr)===!0}function Ls(){return a(vr)!==null&&So()&&a(Jr)===null}function Co(){var e;return((e=window?.wineaterData)==null?void 0:e.tracking)===!1||a(vr)===null?!1:So()?a(Jr)==="granted":!0}function Ns(){for(const e of Rs){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Qr=new Set;function js(e){return Qr.add(e),()=>Qr.delete(e)}function Po(e){y(Jr,e,!0);try{window.localStorage.setItem(_o,e)}catch{}e==="denied"&&Ns();for(const t of Qr)t(e)}function Wo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Xr(e,t,n){let r="";if(n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function ei(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function Os(){const e="uniqueUserID";let t=ei(e);return t||(t=Wo(),Xr(e,t,365)),t}function ze(e,t,n={},r={}){const i="https://api.wineater.com/api/widget-events",o=new Date().toISOString(),s=navigator.language.split("-")[1]||null,c=navigator.language.split("-")[0]||"en";if(!Co()){const p={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:s,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p),keepalive:!0}).catch(u=>{console.debug("[wineater] anonymous event failed:",u?.message)})}let l=ei("uniqueUserID");l||(l=Os());const d={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let f=ei("sessionID");f||(f=Wo(),Xr("sessionID",f,1));const g={event_type:e,store_id:t,session_id:f,event_time:o,data:n,meta:{...r,user_id:l},device_info:d,region:s,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then(p=>p.ok?p.json():p.json().then(u=>{throw new Error(u.message||"Failed to track widget event")})).catch(p=>{throw console.error("Widget event tracking error:",p),p})}function qs(e){return{id:String(e.ID),appellation:e.Appellation||null,country:e.Country||null,grape:e.Grape,image:e.Image,price:Number(e.Price),producer:e.Producer||null,region:e.Region,score:e.Score?Number(e.Score):null,shortDescription:e["Short Description"]||null,store:e.Store,storeId:e.Store_id||null,tags:Array.isArray(e.Tags)?e.Tags.map(String):[],title:e.Title,type:e.Type,url:e.Url||null,vintage:e.Vintage?Number(e.Vintage):null,pairingRecommendation:e.pairing_recommendation||null,total:e.Total?Number(e.Total):null,itemId:e.item_id||null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function gr(e){return{id:String(e.id),title:String(e.title),description:String(e.description),region:String(e.region),price:Number(e.price),grape:String(e.grape),appellation:e.appellation?String(e.appellation):null,url:e.url?String(e.url):null,store:String(e.store),storeId:e.storeId?String(e.storeId):null,image:String(e.image),country:e.country?String(e.country):null,vintage:e.vintage?Number(e.vintage):null,tags:Array.isArray(e.tags)?e.tags.map(String):[],score:e.score?Number(e.score):null,total:e.total?Number(e.total):null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,distance:Number(e.distance),reason:String(e.reason),type:String(e.type),byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function $s(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(gr),hasMore:!!e.has_more}}const Un="wineater_uid",Us=365;let wr=null;function To(){const e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);if(e!=null&&e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<16;r++)t[r]=Math.random()*256|0;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const Do=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Eo(e){try{const t=e+"=";for(const n of document.cookie.split(";")){const r=n.trim();if(r.startsWith(t))return decodeURIComponent(r.slice(t.length))}}catch{}return null}function Fs(e,t){try{const n=new Date(Date.now()+Us*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function Mo(){return Co()}js(e=>{e==="denied"&&(wr=null)});function ti(){if(!Mo())return null;if(wr)return wr;let e=null;try{e=window.localStorage.getItem(Un)}catch{}(!e||!Do.test(e))&&(e=Eo(Un)),(!e||!Do.test(e))&&(e=To());try{window.localStorage.setItem(Un,e)}catch{}return Eo(Un)!==e&&Fs(Un,e),wr=e,e}function Ao(){return To()}const Hs=2e3,Io=100;let mr=null,wn=[],Fn=null,Ro=!1;function Gs(e){mr=e,!(Ro||typeof document>"u")&&(Ro=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Hn()}),window.addEventListener("pagehide",()=>void Hn()))}function mn(e){var t;if(!(!Mo()||!mr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(wn.push(e),wn.length>=Io){Hn();return}Fn||(Fn=setTimeout(()=>void Hn(),Hs))}}async function Hn(){if(Fn&&(clearTimeout(Fn),Fn=null),!mr||wn.length===0)return;const e=ti();if(!e){wn=[];return}const t=wn.splice(0,Io);try{await mr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n?.message)}wn.length>0&&Hn()}const Vs="X-Wineater-Uid";var Gn,yr,yn,Vn,Je,ni,bn,ri;class Ks{constructor(t,n="1"){F(this,Je),F(this,Gn,"https://api.wineater.com/"),F(this,yr),F(this,yn),F(this,Vn,!1),j(this,yr,t),j(this,yn,n)}async getInstantRecommendations(){try{const t=h(this,yn)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:n,headers:r}=await Y(this,Je,ri).call(this,t,{});return{wines:n.filter(Boolean).map(qs),profileHash:r.get("X-Wineater-Profile")||null}}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,yn)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await Y(this,Je,bn).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(gr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(h(this,yn)!=="2")return i();let o;try{o=await fetch(`${h(this,Gn)}dish/recommendations/search/v2/stream`,{method:"POST",headers:Y(this,Je,ni).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return i()}if(!o.ok||!o.body)return i();const s=o.body.getReader(),c=new TextDecoder;let l="",d=null;const f=g=>(g??[]).filter(Boolean).map(gr);try{for(;;){const{done:g,value:p}=await s.read();p&&(l+=c.decode(p,{stream:!0}));const u=l.split(`
|
|
2
2
|
`);l=g?"":u.pop()??"";for(const w of g?u.filter(Boolean):u){if(!w.trim())continue;const m=JSON.parse(w);if(m.type==="wines")d=f(m.recommendations).map(S=>({...S,reason:""})),r(d);else{if(m.type==="final")return f(m.recommendations);if(m.type==="error")return d||i()}}if(g)break}}catch{return d||i()}return d??i()}async getMoreWineRecommendations(t,n){try{const r=await Y(this,Je,bn).call(this,"dish/recommendations/search/v2/more",{text:t,exclude_ids:n});return $s(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await Y(this,Je,bn).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(gr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await Y(this,Je,bn).call(this,"events",t,{keepalive:!0})}async getStoreConfig(){try{return await Y(this,Je,bn).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}Gn=new WeakMap,yr=new WeakMap,yn=new WeakMap,Vn=new WeakMap,Je=new WeakSet,ni=function(){const e={"Content-Type":"application/json",Authorization:`Bearer ${h(this,yr)}`};if(!h(this,Vn)){const t=ti();t&&(e[Vs]=t)}return e},bn=async function(e,t,n={}){return(await Y(this,Je,ri).call(this,e,t,n)).data},ri=async function(e,t,n={}){const r=()=>({method:n.method??"POST",headers:Y(this,Je,ni).call(this),body:t===void 0?void 0:JSON.stringify(t),keepalive:n.keepalive});let i;try{i=await fetch(`${h(this,Gn)}${e}`,r())}catch(c){if(h(this,Vn)||!ti())throw c;j(this,Vn,!0),i=await fetch(`${h(this,Gn)}${e}`,r())}const o=await i.text(),s=o?JSON.parse(o):null;if(!i.ok)throw new Error(`API call failed with status ${i.status}: ${s?.message||"No additional error information"}`);return{data:s,headers:i.headers}};const Ys="HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG";var zo;const Bo=((zo=window?.wineaterData)==null?void 0:zo.CLIENT_TOKEN)||Ys;var Lo;const ii=String(((Lo=window?.wineaterData)==null?void 0:Lo.apiVersion)||"1"),kn=new Ks(Bo,ii);Gs(e=>kn.postEvents(e));function Zs(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const oi=`${Zs(Bo)}:${ii}`,No="wineater:v1:";function ai(e,t){try{const n=window.localStorage.getItem(No+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function si(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(No+e,JSON.stringify(n))}catch{}}const Be={WIDGET_INITIALIZED:"widget_initialized",WIDGET_LOADED:"widget_loaded",SEARCH_PERFORMED:"search_performed",SEARCH_RESULTS_DISPLAYED:"search_results_displayed",NO_RESULTS_FOUND:"no_results_found",WINE_CARD_HOVER:"wine_card_hover",WINE_CARD_CLICK:"wine_card_click",WINE_DETAILS_VIEWED:"wine_details_viewed",WINE_DETAILS_CLOSED:"wine_details_closed",BUY_BUTTON_CLICKED:"buy_button_clicked",SHOW_MORE_CLICKED:"show_more_clicked",SIMILAR_WINES_CLICKED:"similar_wines_clicked",FILTER_APPLIED:"filter_applied",LANGUAGE_CHANGED:"language_changed",ERROR_OCCURRED:"error_occurred",MOBILE_VIEW_ACTIVATED:"mobile_view_activated"},Js={lang:"fr",welcomeMessage:"Quel plat allez-vous d\xE9guster ? D\xE9crivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",noResultsFound:"Aucun r\xE9sultat trouv\xE9.",somethingWentWrong:"D\xE9sol\xE9, quelque chose a mal tourn\xE9.",chatButton1:"Trouvez l'accord parfait",chatButton2:"Associez le vin",chatButton3:"Obtenez des conseils",chatTitle:"Accord Mets & Vins \u{1F377}",chatSubtitle:"D\xE9crivez votre plat et obtenez une recommandation en 30 secondes",inputPlaceholder:"ex., Salade de thon",sendButton:"Accorder",poweredBy:"Propuls\xE9 par",price:"Prix",region:"R\xE9gion",type:"Type",reason:"Suggestion",moreInfo:"Plus d'infos",tryAgain:"R\xE9essayer",similarWines:"Vins similaires",byTheGlass:"Au verre",winePairingIntro:"Pour ce vin, voici quelques suggestions de plats :",askForDinner:"Que voulez-vous manger ce soir?",clearChatButton:"Effacer le chat",widgetTitle:"TROUVEZ VOTRE VIN PARFAIT",widgetSubtitle:"Partagez tout ce que vous avez en t\xEAte\u2014votre repas, humeur, budget ou occasion\u2014et notre sommelier IA vous recommandera le vin parfait en quelques secondes",searchPlaceholder:"Entrez un mot-cl\xE9 ou une description","wineDetails.reason":"Raison","wineDetails.price":"Prix","wineDetails.region":"R\xE9gion","wineDetails.type":"Type","wineDetails.moreInfo":"Plus d'infos","wineDetails.code":"Code","wineDetails.buy":"Acheter",searchButton:"Rechercher",priceRange:"Gamme de prix",wineColor:"Couleur du vin",intensity:"Intensit\xE9",red:"Rouge",white:"Blanc",rose:"Ros\xE9",light:"L\xE9ger",medium:"Moyen",full:"Puissant",barTitle:"S\xE9lection du bar",barSubtitle:"Choisissez vos plats ci-dessous et cliquez sur \xABEnvoyer\xBB",barSendButton:"Envoyer",barResetButton:"R\xE9initialiser",barName:"Nom du bar",barNotesPlaceholder:"Entrez vos souhaits ici...",placeholderSuggestions:["Vin pour les p\xE2tes","Parfait avec du poisson","Recommand\xE9 pour une soir\xE9e"],headerLine1:"Partagez tout ce qui vous passe par la t\xEAte \u2014",headerLine2:"\u2014 et obtenez des recommandations de vin parfait en quelques secondes",headerMeal:"repas",headerMood:"humeur",headerBudget:"budget",headerOccasion:"occasion",headerOr:"ou",errorMessage:"Une erreur est survenue. Veuillez r\xE9essayer plus tard.",noResultsMessage:"Aucun r\xE9sultat trouv\xE9 pour votre recherche. Veuillez essayer une autre requ\xEAte.",ai_sommelier:"AI sommelier",consentText:"L'assistant vin enregistre un identifiant anonyme sur cet appareil pour apprendre vos go\xFBts et am\xE9liorer ses recommandations. Vous pouvez l'utiliser sans accepter.",consentAccept:"Accepter",consentDecline:"Refuser",consentPrivacy:"Politique de confidentialit\xE9"},Qs={lang:"es",welcomeMessage:"\xBFQu\xE9 vas a comer? Cu\xE9ntame tu plato y te recomendar\xE9 el maridaje perfecto.",noResultsFound:"No se encontraron resultados.",somethingWentWrong:"Lo sentimos, algo sali\xF3 mal.",chatButton1:"Encuentra tu maridaje",chatButton2:"Combina vino ya",chatButton3:"Recibe asesor\xEDa ahora",chatTitle:"Maridaje de Vinos \u{1F377}",chatSubtitle:"Describe tu comida y obt\xE9n una recomendaci\xF3n en 30 segundos",inputPlaceholder:"ej., Ensalada de at\xFAn",sendButton:"Combinar",poweredBy:"Desarrollado por",price:"Precio",region:"Regi\xF3n",type:"Tipo",reason:"Sugerencia",moreInfo:"M\xE1s info",tryAgain:"Probar otra vez",similarWines:"Vinos similares",byTheGlass:"Por copa",winePairingIntro:"Para este vino, aqu\xED tienes algunas sugerencias de platos:",askForDinner:"\xBFQu\xE9 te gustar\xEDa cenar?",clearChatButton:"Limpiar el chat",widgetTitle:"ENCUENTRA TU VINO PERFECTO",widgetSubtitle:"Comparte cualquier cosa que tengas en mente\u2014tu comida, estado de \xE1nimo, presupuesto o evento\u2014y nuestro sommelier de IA te recomendar\xE1 el vino perfecto en segundos",searchPlaceholder:"Escribe una palabra clave o descripci\xF3n","wineDetails.reason":"Raz\xF3n","wineDetails.price":"Precio","wineDetails.region":"Regi\xF3n","wineDetails.type":"Tipo","wineDetails.code":"C\xF3digo","wineDetails.moreInfo":"M\xE1s informaci\xF3n","wineDetails.buy":"Comprar",searchButton:"Buscar",priceRange:"Rango de precios",wineColor:"Color del vino",intensity:"Intensidad",red:"Tinto",white:"Blanco",rose:"Rosado",light:"Ligero",medium:"Medio",full:"Intenso",barTitle:"Platos de Bar",barSubtitle:"Selecciona de la lista y presiona \xABEnviar\xBB",barSendButton:"Enviar",barResetButton:"Reiniciar",barName:"Nombre del bar",barNotesPlaceholder:"Agrega tus comentarios aqu\xED...",placeholderSuggestions:["Vino para pasta","Perfecto con pescado","Recomendado para una fiesta"],headerLine1:"Comparte cualquier cosa que tengas en mente \u2014",headerLine2:"\u2014 y obt\xE9n recomendaciones del vino perfecto en cuesti\xF3n de segundos",headerMeal:"comida",headerMood:"estado de \xE1nimo",headerBudget:"presupuesto",headerOccasion:"ocasi\xF3n",headerOr:"o",errorMessage:"Algo sali\xF3 mal. Por favor, int\xE9ntalo de nuevo m\xE1s tarde.",noResultsMessage:"No se encontraron resultados para tu b\xFAsqueda. Por favor, intenta con otra consulta.",ai_sommelier:"AI sommelier",consentText:"El asistente de vinos guarda un identificador an\xF3nimo en este dispositivo para conocer tus gustos y mejorar las recomendaciones. Puedes usarlo sin aceptar.",consentAccept:"Aceptar",consentDecline:"Rechazar",consentPrivacy:"Pol\xEDtica de privacidad"},Xs={lang:"en",welcomeMessage:"What are you planning to eat? Share your dish and I'll recommend the perfect wine pairing for your meal.",noResultsFound:"No results found.",somethingWentWrong:"Sorry, something went wrong.",chatButton1:"Find Your Pairing",chatButton2:"Pair Wine Now",chatButton3:"Get Wine Advice",chatTitle:"Wine Pairing Assistant \u{1F377}",chatSubtitle:"Describe your meal and get a recommendation in 30 seconds",inputPlaceholder:"e.g., Tuna salad",sendButton:"Match",poweredBy:"Powered by",price:"Price",region:"Region",type:"Type",reason:"Suggestion",moreInfo:"More info",tryAgain:"Try again",similarWines:"Similar wines",byTheGlass:"By the glass",winePairingIntro:"For this wine, here are some suggested dishes:",askForDinner:"What would you like to have for dinner?",clearChatButton:"Clear Chat",widgetTitle:"FIND YOUR PERFECT WINE",widgetSubtitle:"Share anything on your mind\u2014your meal, mood, budget, or occasion\u2014and our AI sommelier will recommend the perfect wine in seconds",searchPlaceholder:"Enter a keyword or description","wineDetails.price":"Price","wineDetails.region":"Region","wineDetails.type":"Type","wineDetails.moreInfo":"More info","wineDetails.reason":"Reason","wineDetails.code":"Code","wineDetails.buy":"Buy",searchButton:"Search",priceRange:"Price Range",wineColor:"Wine Color",intensity:"Intensity",red:"Red",white:"White",rose:"Ros\xE9",light:"Light",medium:"Medium",full:"Full",barTitle:"Bar Dishes",barSubtitle:"Select dishes below and click 'Send'",barSendButton:"Send",barResetButton:"Reset",barName:"Bar Name",barNotesPlaceholder:"Add your wishes here...",placeholderSuggestions:["Wine for pasta","Perfect with fish","Recommended for a party"],headerLine1:"Share anything on your mind \u2014",headerLine2:"\u2014 and get recommendations of the perfect wine in seconds",headerMeal:"meal",headerMood:"mood",headerBudget:"budget",headerOccasion:"occasion",headerOr:"or",errorMessage:"Something went wrong. Please try again later.",noResultsMessage:"No results found for your search. Please try a different query.",ai_sommelier:"AI sommelier",consentText:"The wine assistant stores an anonymous identifier on this device to learn your taste and improve recommendations. You can use it without accepting.",consentAccept:"Accept",consentDecline:"Decline",consentPrivacy:"Privacy policy"},el={lang:"sr",welcomeMessage:"\u0160ta planirate da jedete? Podelite svoje jelo i preporu\u010Di\u0107u vam savr\u0161eno vino uz obrok.",noResultsFound:"Nema rezultata.",somethingWentWrong:"Izvinite, ne\u0161to je po\u0161lo po zlu.",chatButton1:"Prona\u0111i vino",chatButton2:"Upari vino sada",chatButton3:"Zatra\u017Ei preporuku",chatTitle:"Asistent za uparivanje vina \u{1F377}",chatSubtitle:"Opi\u0161ite svoj obrok i dobijte preporuku za 30 sekundi",inputPlaceholder:"npr. Tuna salata",sendButton:"Upari",poweredBy:"Pokre\u0107e",price:"Cena",region:"Regija",type:"Tip",reason:"Preporuka",moreInfo:"Vi\u0161e informacija",tryAgain:"Poku\u0161aj ponovo",similarWines:"Sli\u010Dna vina",byTheGlass:"Na \u010Da\u0161u",winePairingIntro:"Za ovo vino, preporu\u010Duju se slede\u0107a jela:",askForDinner:"\u0160ta biste \u017Eeleli za ve\u010Deru?",clearChatButton:"Obri\u0161i razgovor",widgetTitle:"PRONA\u0110ITE SAVR\u0160ENO VINO",widgetSubtitle:"Podelite bilo \u0161ta \u2014 obrok, raspolo\u017Eenje, bud\u017Eet ili priliku \u2014 i na\u0161 AI somelijer \u0107e vam za par sekundi preporu\u010Diti vino",searchPlaceholder:"Unesite klju\u010Dnu re\u010D ili opis","wineDetails.price":"Cena","wineDetails.region":"Regija","wineDetails.type":"Tip","wineDetails.moreInfo":"Vi\u0161e informacija","wineDetails.reason":"Razlog","wineDetails.code":"\u0160ifra","wineDetails.buy":"Kupi",searchButton:"Pretraga",priceRange:"Cenovni raspon",wineColor:"Boja vina",intensity:"Intenzitet",red:"Crveno",white:"Belo",rose:"Roze",light:"Lako",medium:"Srednje",full:"Puno",barTitle:"Jela iz bara",barSubtitle:"Izaberite jela ispod i kliknite 'Po\u0161alji'",barSendButton:"Po\u0161alji",barResetButton:"Resetuj",barName:"Naziv bara",barNotesPlaceholder:"Dodajte svoje \u017Eelje ovde...",placeholderSuggestions:["Vino uz pastu","Savr\u0161eno uz ribu","Preporuka za \u017Eurku"],headerLine1:"Podelite bilo \u0161ta \u0161to vam je na umu \u2014",headerLine2:"\u2014 i dobijte preporuke za savr\u0161eno vino za par sekundi",headerMeal:"obrok",headerMood:"raspolo\u017Eenje",headerBudget:"bud\u017Eet",headerOccasion:"prilika",headerOr:"ili",errorMessage:"Ne\u0161to je po\u0161lo po zlu. Molimo poku\u0161ajte ponovo kasnije.",noResultsMessage:"Nema rezultata za va\u0161u pretragu. Molimo poku\u0161ajte sa druga\u010Dijim upitom.",ai_sommelier:"AI sommelier",consentText:"Vinski asistent \u010Duva anonimni identifikator na ovom ure\u0111aju kako bi upoznao va\u0161 ukus i pobolj\u0161ao preporuke. Mo\u017Eete ga koristiti i bez prihvatanja.",consentAccept:"Prihvati",consentDecline:"Odbij",consentPrivacy:"Politika privatnosti"},tl={lang:"de",welcomeMessage:"Was m\xF6chten Sie essen? Beschreiben Sie Ihr Gericht und ich empfehle Ihnen den perfekten Wein dazu.",noResultsFound:"Keine Ergebnisse gefunden.",somethingWentWrong:"Entschuldigung, etwas ist schief gelaufen.",chatButton1:"Finde Dein Pairing",chatButton2:"Wein jetzt w\xE4hlen",chatButton3:"Erhalte Weinberatung",chatTitle:"Wein & Speisen \u{1F377}",chatSubtitle:"Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",inputPlaceholder:"z.B., Thunfischsalat",sendButton:"Kombinieren",poweredBy:"Unterst\xFCtzt von",price:"Preis",region:"Region",type:"Typ",reason:"Anregung",moreInfo:"Mehr Info",tryAgain:"Nochmal versuchen",similarWines:"\xC4hnliche Weine",byTheGlass:"Glasweise",winePairingIntro:"F\xFCr diesen Wein gibt es folgende Essensvorschl\xE4ge:",askForDinner:"Was m\xF6chten Sie zum Abendessen essen?",clearChatButton:"Chat l\xF6schen",widgetTitle:"FINDEN SIE IHREN PERFEKTEN WEIN",widgetSubtitle:"Teilen Sie alles, was Ihnen in den Sinn kommt\u2014Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass\u2014und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",placeholderSuggestions:["Wein f\xFCr Pasta","Perfekt zu Fisch","Empfohlen f\xFCr eine Party"],searchPlaceholder:"Geben Sie ein Stichwort oder eine Beschreibung ein","wineDetails.price":"Preis","wineDetails.region":"Region","wineDetails.type":"Typ","wineDetails.moreInfo":"Mehr Info","wineDetails.reason":"Grund","wineDetails.code":"Code","wineDetails.buy":"Kaufen",searchButton:"Suche",priceRange:"Preisspanne",wineColor:"Weinfarbe",intensity:"Intensit\xE4t",red:"Rot",white:"Wei\xDF",rose:"Ros\xE9",light:"Leicht",medium:"Mittel",full:"Voll",barTitle:"Bar-Auswahl",barSubtitle:"W\xE4hlen Sie Ihre Gerichte und klicken Sie auf 'Senden'",barSendButton:"Senden",barResetButton:"Zur\xFCcksetzen",barName:"Name der Bar",headerLine1:"Teilen Sie alles, was Ihnen durch den Kopf geht \u2014",headerLine2:"\u2014 und erhalten Sie in Sekundenschnelle Empfehlungen f\xFCr den perfekten Wein",headerMeal:"Mahlzeit",headerMood:"Stimmung",headerBudget:"Budget",headerOccasion:"Anlass",headerOr:"oder",errorMessage:"Etwas ist schief gelaufen. Bitte versuchen Sie es sp\xE4ter erneut.",noResultsMessage:"Keine Ergebnisse f\xFCr Ihre Suche gefunden. Bitte versuchen Sie es mit einer anderen Anfrage.",ai_sommelier:"AI sommelier",consentText:"Der Weinassistent speichert eine anonyme Kennung auf diesem Ger\xE4t, um Ihren Geschmack kennenzulernen und Empfehlungen zu verbessern. Sie k\xF6nnen ihn auch ohne Zustimmung nutzen.",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentPrivacy:"Datenschutzerkl\xE4rung"},nl={lang:"ukr",welcomeMessage:"\u0429\u043E \u0432\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u0442\u0435\u0441\u044C \u0457\u0441\u0442\u0438? \u041E\u043F\u0438\u0448\u0456\u0442\u044C \u0441\u0432\u043E\u044E \u0441\u0442\u0440\u0430\u0432\u0443, \u0456 \u044F \u043F\u043E\u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u044E \u0432\u0430\u043C \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u0432\u0438\u043D\u043E.",noResultsFound:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432 \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E.",somethingWentWrong:"\u0412\u0438\u0431\u0430\u0447\u0442\u0435, \u0449\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",chatButton1:"\u0417\u043D\u0430\u0439\u0442\u0438 \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u043F\u043E\u0454\u0434\u043D\u0430\u043D\u043D\u044F",chatButton2:"\u041F\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438 \u0432\u0438\u043D\u043E",chatButton3:"\u041E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u043F\u043E\u0440\u0430\u0434\u0443",chatTitle:"\u0421\u043E\u043C\u0435\u043B\u044C\u0454-\u043F\u043E\u043C\u0456\u0447\u043D\u0438\u043A \u{1F377}",chatSubtitle:"\u041E\u043F\u0438\u0448\u0456\u0442\u044C \u0441\u0432\u043E\u044E \u0441\u0442\u0440\u0430\u0432\u0443 \u0456 \u043E\u0442\u0440\u0438\u043C\u0430\u0439\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u044E \u0437\u0430 30 \u0441\u0435\u043A\u0443\u043D\u0434",inputPlaceholder:"\u043D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434, \u0422\u0443\u043D\u0435\u0446\u044C \u0456\u0437 \u0441\u0430\u043B\u0430\u0442\u043E\u043C",sendButton:"\u041F\u0456\u0434\u0456\u0431\u0440\u0430\u0442\u0438",poweredBy:"\u0420\u043E\u0437\u0440\u043E\u0431\u043B\u0435\u043D\u043E \u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u0456",price:"\u0426\u0456\u043D\u0430",region:"\u0420\u0435\u0433\u0456\u043E\u043D",type:"\u0422\u0438\u043F",reason:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u044F",moreInfo:"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435",tryAgain:"\u0421\u043F\u0440\u043E\u0431\u0443\u0432\u0430\u0442\u0438 \u0449\u0435",similarWines:"\u0421\u0445\u043E\u0436\u0456 \u0432\u0438\u043D\u0430",byTheGlass:"\u041D\u0430 \u043A\u0435\u043B\u0438\u0445",winePairingIntro:"\u0414\u043E \u0446\u044C\u043E\u0433\u043E \u0432\u0438\u043D\u0430 \u043F\u0456\u0434\u0445\u043E\u0434\u044F\u0442\u044C \u0442\u0430\u043A\u0456 \u0441\u0442\u0440\u0430\u0432\u0438:",askForDinner:"\u0429\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u043D\u0430 \u0432\u0435\u0447\u0435\u0440\u044E?",clearChatButton:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0447\u0430\u0442",widgetTitle:"\u0417\u041D\u0410\u0419\u0414\u0406\u0422\u042C \u0406\u0414\u0415\u0410\u041B\u042C\u041D\u0415 \u0412\u0418\u041D\u041E",widgetSubtitle:"\u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0442\u0438\u043C, \u0449\u043E \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0434\u0443\u043C\u0446\u0456\u2014\u0457\u0436\u0430, \u043D\u0430\u0441\u0442\u0440\u0456\u0439, \u0431\u044E\u0434\u0436\u0435\u0442 \u0447\u0438 \u043F\u043E\u0434\u0456\u044F\u2014\u0456 \u043D\u0430\u0448 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0454 \u043F\u043E\u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0454 \u0432\u0430\u043C \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u0435 \u0432\u0438\u043D\u043E \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",searchPlaceholder:"\u0412\u0432\u0435\u0434\u0456\u0442\u044C \u043A\u043B\u044E\u0447\u043E\u0432\u0435 \u0441\u043B\u043E\u0432\u043E \u0430\u0431\u043E \u043E\u043F\u0438\u0441","wineDetails.reason":"\u041F\u0440\u0438\u0447\u0438\u043D\u0430","wineDetails.price":"\u0426\u0456\u043D\u0430","wineDetails.region":"\u0420\u0435\u0433\u0456\u043E\u043D","wineDetails.type":"\u0422\u0438\u043F","wineDetails.moreInfo":"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u041A\u0443\u043F\u0438\u0442\u0438",searchButton:"\u041F\u043E\u0448\u0443\u043A",priceRange:"\u0414\u0456\u0430\u043F\u0430\u0437\u043E\u043D \u0446\u0456\u043D",wineColor:"\u041A\u043E\u043B\u0456\u0440 \u0432\u0438\u043D\u0430",intensity:"\u0406\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u0456\u0441\u0442\u044C",red:"\u0427\u0435\u0440\u0432\u043E\u043D\u0435",white:"\u0411\u0456\u043B\u0435",rose:"\u0420\u043E\u0436\u0435\u0432\u0435",light:"\u041B\u0435\u0433\u043A\u0435",medium:"\u0421\u0435\u0440\u0435\u0434\u043D\u0454",full:"\u041F\u043E\u0432\u043D\u0435",barTitle:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438 \u0434\u043E \u0432\u0438\u043D\u0430",barSubtitle:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0441\u0442\u0440\u0430\u0432\u0438 \u043D\u0438\u0436\u0447\u0435 \u0442\u0430 \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \xAB\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438\xBB",barSendButton:"\u041D\u0430\u0434\u0456\u0441\u043B\u0430\u0442\u0438",barResetButton:"\u0421\u043A\u0438\u043D\u0443\u0442\u0438",barName:"\u041D\u0430\u0437\u0432\u0430 \u0431\u0430\u0440\u0443",barNotesPlaceholder:"\u0414\u043E\u0434\u0430\u0439\u0442\u0435 \u0432\u0430\u0448\u0456 \u043F\u043E\u0431\u0430\u0436\u0430\u043D\u043D\u044F \u0442\u0443\u0442...",placeholderSuggestions:["\u0412\u0438\u043D\u043E \u0434\u043E \u043F\u0430\u0441\u0442\u0438","\u0406\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u0434\u043E \u0440\u0438\u0431\u0438","\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0454\u043C\u043E \u0434\u043B\u044F \u0432\u0435\u0447\u0456\u0440\u043A\u0438"],headerLine1:"\u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u043C\u0438 \u0432\u0430\u0448\u0438\u043C\u0438 \u0434\u0443\u043C\u043A\u0430\u043C\u0438 \u2014",headerLine2:"\u2014 \u0456 \u043E\u0442\u0440\u0438\u043C\u0430\u0439\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u0457 \u0449\u043E\u0434\u043E \u0456\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u0438\u043D\u0430 \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u0438",headerMeal:"\u0441\u0442\u0440\u0430\u0432\u0430",headerMood:"\u043D\u0430\u0441\u0442\u0440\u0456\u0439",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u043F\u043E\u0434\u0456\u044F",headerOr:"\u0430\u0431\u043E",errorMessage:"\u0429\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0441\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u0456\u0437\u043D\u0456\u0448\u0435.",noResultsMessage:"\u0417\u0430 \u0432\u0430\u0448\u0438\u043C \u0437\u0430\u043F\u0438\u0442\u043E\u043C \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0456\u0432. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442.",ai_sommelier:"AI sommelier",consentText:"\u0412\u0438\u043D\u043D\u0438\u0439 \u043F\u043E\u043C\u0456\u0447\u043D\u0438\u043A \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454 \u043D\u0430 \u0446\u044C\u043E\u043C\u0443 \u043F\u0440\u0438\u0441\u0442\u0440\u043E\u0457 \u0430\u043D\u043E\u043D\u0456\u043C\u043D\u0438\u0439 \u0456\u0434\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0442\u043E\u0440, \u0449\u043E\u0431 \u0432\u0440\u0430\u0445\u043E\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0430\u0448 \u0441\u043C\u0430\u043A \u0456 \u043F\u043E\u043A\u0440\u0430\u0449\u0443\u0432\u0430\u0442\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0456\u0457. \u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043C\u043E\u0436\u043D\u0430 \u0439 \u0431\u0435\u0437 \u0437\u0433\u043E\u0434\u0438.",consentAccept:"\u041F\u0440\u0438\u0439\u043D\u044F\u0442\u0438",consentDecline:"\u0412\u0456\u0434\u0445\u0438\u043B\u0438\u0442\u0438",consentPrivacy:"\u041F\u043E\u043B\u0456\u0442\u0438\u043A\u0430 \u043A\u043E\u043D\u0444\u0456\u0434\u0435\u043D\u0446\u0456\u0439\u043D\u043E\u0441\u0442\u0456"},rl={lang:"ru",welcomeMessage:"\u0427\u0442\u043E \u0432\u044B \u043F\u043B\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u043F\u043E\u0435\u0441\u0442\u044C? \u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0431\u043B\u044E\u0434\u043E, \u0438 \u044F \u043F\u043E\u0434\u0431\u0435\u0440\u0443 \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0438\u043D\u043E \u043A \u043D\u0435\u043C\u0443.",noResultsFound:"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B.",somethingWentWrong:"\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0447\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A.",chatButton1:"\u041D\u0430\u0439\u0442\u0438 \u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u0435",chatButton2:"\u041F\u043E\u0434\u043E\u0431\u0440\u0430\u0442\u044C \u0432\u0438\u043D\u043E",chatButton3:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u043E\u0432\u0435\u0442",chatTitle:"\u0410\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442 \u043F\u043E \u043F\u043E\u0434\u0431\u043E\u0440\u0443 \u0432\u0438\u043D\u0430 \u{1F377}",chatSubtitle:"\u041E\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0431\u043B\u044E\u0434\u043E \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u044E \u0437\u0430 30 \u0441\u0435\u043A\u0443\u043D\u0434",inputPlaceholder:"\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u0422\u0443\u043D\u0435\u0446 \u0441 \u0441\u0430\u043B\u0430\u0442\u043E\u043C",sendButton:"\u041F\u043E\u0434\u043E\u0431\u0440\u0430\u0442\u044C",poweredBy:"Powered by",price:"\u0426\u0435\u043D\u0430",region:"\u0420\u0435\u0433\u0438\u043E\u043D",type:"\u0422\u0438\u043F",reason:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u044F",moreInfo:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435",tryAgain:"\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0435\u0449\u0451",similarWines:"\u041F\u043E\u0445\u043E\u0436\u0438\u0435 \u0432\u0438\u043D\u0430",byTheGlass:"\u041F\u043E \u0431\u043E\u043A\u0430\u043B\u0430\u043C",winePairingIntro:"\u041A \u044D\u0442\u043E\u043C\u0443 \u0432\u0438\u043D\u0443 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0431\u043B\u044E\u0434\u0430:",askForDinner:"\u0427\u0442\u043E \u0431\u044B \u0432\u044B \u0445\u043E\u0442\u0435\u043B\u0438 \u043D\u0430 \u0443\u0436\u0438\u043D?",clearChatButton:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0447\u0430\u0442",widgetTitle:"\u041D\u0410\u0419\u0414\u0418\u0422\u042C \u0418\u0414\u0415\u0410\u041B\u042C\u041D\u041E\u0415 \u0412\u0418\u041D\u041E",widgetSubtitle:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u0432\u0430\u0448\u0438\u043C\u0438 \u043F\u0440\u0435\u0434\u043F\u043E\u0447\u0442\u0435\u043D\u0438\u044F\u043C\u0438 \u2014 \u0431\u043B\u044E\u0434\u043E\u043C, \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435\u043C, \u0431\u044E\u0434\u0436\u0435\u0442\u043E\u043C \u0438\u043B\u0438 \u0441\u043B\u0443\u0447\u0430\u0435\u043C \u2014 \u0438 \u043D\u0430\u0448 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u043F\u043E\u0434\u0431\u0435\u0440\u0451\u0442 \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u0435 \u0432\u0438\u043D\u043E \u0437\u0430 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",searchPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0435\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E \u0438\u043B\u0438 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435","wineDetails.price":"\u0426\u0435\u043D\u0430","wineDetails.region":"\u0420\u0435\u0433\u0438\u043E\u043D","wineDetails.type":"\u0422\u0438\u043F","wineDetails.moreInfo":"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435","wineDetails.reason":"\u041F\u0440\u0438\u0447\u0438\u043D\u0430","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u041A\u0443\u043F\u0438\u0442\u044C",searchButton:"\u041F\u043E\u0438\u0441\u043A",priceRange:"\u0414\u0438\u0430\u043F\u0430\u0437\u043E\u043D \u0446\u0435\u043D",wineColor:"\u0426\u0432\u0435\u0442 \u0432\u0438\u043D\u0430",intensity:"\u0418\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u043E\u0441\u0442\u044C",red:"\u041A\u0440\u0430\u0441\u043D\u043E\u0435",white:"\u0411\u0435\u043B\u043E\u0435",rose:"\u0420\u043E\u0437\u043E\u0432\u043E\u0435",light:"\u041B\u0451\u0433\u043A\u043E\u0435",medium:"\u0421\u0440\u0435\u0434\u043D\u0435\u0435",full:"\u041F\u043E\u043B\u043D\u043E\u0435",barTitle:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438 \u043A \u0432\u0438\u043D\u0443",barSubtitle:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0431\u043B\u044E\u0434\u0430 \u043D\u0438\u0436\u0435 \u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 '\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C'",barSendButton:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",barResetButton:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",barName:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0440\u0430",barNotesPlaceholder:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0432\u0430\u0448\u0438 \u043F\u043E\u0436\u0435\u043B\u0430\u043D\u0438\u044F \u0437\u0434\u0435\u0441\u044C...",placeholderSuggestions:["\u0412\u0438\u043D\u043E \u0434\u043B\u044F \u043F\u0430\u0441\u0442\u044B","\u0418\u0434\u0435\u0430\u043B\u044C\u043D\u043E \u043A \u0440\u044B\u0431\u0435","\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u0434\u043B\u044F \u0432\u0435\u0447\u0435\u0440\u0438\u043D\u043A\u0438"],headerLine1:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u0435\u0441\u044C \u043B\u044E\u0431\u044B\u043C\u0438 \u0432\u0430\u0448\u0438\u043C\u0438 \u043C\u044B\u0441\u043B\u044F\u043C\u0438 \u2014",headerLine2:"\u2014 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u043F\u043E \u0438\u0434\u0435\u0430\u043B\u044C\u043D\u043E\u043C\u0443 \u0432\u0438\u043D\u0443 \u0437\u0430 \u0441\u0447\u0438\u0442\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",headerMeal:"\u0431\u043B\u044E\u0434\u043E",headerMood:"\u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u0441\u043B\u0443\u0447\u0430\u0439",headerOr:"\u0438\u043B\u0438",errorMessage:"\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",noResultsMessage:"\u041F\u043E \u0432\u0430\u0448\u0435\u043C\u0443 \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0437\u0430\u043F\u0440\u043E\u0441.",ai_sommelier:"AI sommelier",consentText:"\u0412\u0438\u043D\u043D\u044B\u0439 \u043F\u043E\u043C\u043E\u0449\u043D\u0438\u043A \u0441\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442 \u043D\u0430 \u044D\u0442\u043E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435 \u0430\u043D\u043E\u043D\u0438\u043C\u043D\u044B\u0439 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440, \u0447\u0442\u043E\u0431\u044B \u0443\u0447\u0438\u0442\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448 \u0432\u043A\u0443\u0441 \u0438 \u0443\u043B\u0443\u0447\u0448\u0430\u0442\u044C \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438. \u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u043C\u043E\u0436\u043D\u043E \u0438 \u0431\u0435\u0437 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u044F.",consentAccept:"\u041F\u0440\u0438\u043D\u044F\u0442\u044C",consentDecline:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C",consentPrivacy:"\u041F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043A\u043E\u043D\u0444\u0438\u0434\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0441\u0442\u0438"},il={lang:"kk",welcomeMessage:"\u0421\u0456\u0437 \u043D\u0435 \u0436\u0435\u0433\u0456\u04A3\u0456\u0437 \u043A\u0435\u043B\u0435\u0434\u0456? \u0422\u0430\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u04A3\u044B\u0437, \u043C\u0435\u043D \u043E\u0493\u0430\u043D \u043A\u0435\u0440\u0435\u043C\u0435\u0442 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u0430\u043C\u044B\u043D.",noResultsFound:"\u041D\u04D9\u0442\u0438\u0436\u0435\u043B\u0435\u0440 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B.",somethingWentWrong:"\u041A\u0435\u0448\u0456\u0440\u0456\u04A3\u0456\u0437, \u0431\u0456\u0440\u0434\u0435\u04A3\u0435 \u0434\u04B1\u0440\u044B\u0441 \u0431\u043E\u043B\u043C\u0430\u0434\u044B.",chatButton1:"\u0421\u04D9\u0439\u043A\u0435\u0441\u0442\u0456\u043A \u0442\u0430\u0431\u0443",chatButton2:"\u0428\u0430\u0440\u0430\u043F \u0442\u0430\u04A3\u0434\u0430\u0443",chatButton3:"\u041A\u0435\u04A3\u0435\u0441 \u0430\u043B\u0443",chatTitle:"\u0428\u0430\u0440\u0430\u043F \u0442\u0430\u04A3\u0434\u0430\u0443\u0448\u044B \u043A\u04E9\u043C\u0435\u043A\u0448\u0456 \u{1F377}",chatSubtitle:"\u0422\u0430\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u04A3\u044B\u0437 \u2014 30 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u04B1\u0441\u044B\u043D\u044B\u0441 \u0430\u043B\u044B\u04A3\u044B\u0437",inputPlaceholder:"\u043C\u044B\u0441\u0430\u043B\u044B, \u0442\u0443\u043D\u0435\u0446 \u0441\u0430\u043B\u0430\u0442\u044B\u043C\u0435\u043D",sendButton:"\u0422\u0430\u04A3\u0434\u0430\u0443",poweredBy:"Powered by",price:"\u0411\u0430\u0493\u0430\u0441\u044B",region:"\u04E8\u04A3\u0456\u0440",type:"\u0422\u04AF\u0440\u0456",reason:"\u04B0\u0441\u044B\u043D\u044B\u0441",moreInfo:"\u0422\u043E\u043B\u044B\u0493\u044B\u0440\u0430\u049B",tryAgain:"\u049A\u0430\u0439\u0442\u0430 \u043A\u04E9\u0440\u0443",similarWines:"\u04B0\u049B\u0441\u0430\u0441 \u0448\u0430\u0440\u0430\u043F\u0442\u0430\u0440",byTheGlass:"\u0411\u043E\u043A\u0430\u043B\u043C\u0435\u043D",winePairingIntro:"\u0411\u04B1\u043B \u0448\u0430\u0440\u0430\u043F\u049B\u0430 \u043A\u0435\u043B\u0435\u0441\u0456 \u0442\u0430\u0493\u0430\u043C\u0434\u0430\u0440 \u0441\u04D9\u0439\u043A\u0435\u0441 \u043A\u0435\u043B\u0435\u0434\u0456:",askForDinner:"\u041A\u0435\u0448\u043A\u0456 \u0430\u0441\u049B\u0430 \u043D\u0435 \u049B\u0430\u043B\u0430\u0439\u0441\u044B\u0437?",clearChatButton:"\u0427\u0430\u0442\u0442\u044B \u0442\u0430\u0437\u0430\u043B\u0430\u0443",widgetTitle:"\u041A\u0415\u0420\u0415\u041C\u0415\u0422 \u0428\u0410\u0420\u0410\u041F\u0422\u042B \u0422\u0410\u0411\u042B\u04A2\u042B\u0417",widgetSubtitle:"\u0422\u0430\u04A3\u0434\u0430\u0443\u043B\u0430\u0440\u044B\u04A3\u044B\u0437\u0434\u044B \u0431\u04E9\u043B\u0456\u0441\u0456\u04A3\u0456\u0437 \u2014 \u0442\u0430\u0493\u0430\u043C, \u043A\u04E9\u04A3\u0456\u043B-\u043A\u04AF\u0439, \u0431\u044E\u0434\u0436\u0435\u0442 \u043D\u0435\u043C\u0435\u0441\u0435 \u0436\u0430\u0493\u0434\u0430\u0439 \u2014 \u0436\u04D9\u043D\u0435 \u0431\u0456\u0437\u0434\u0456\u04A3 AI-\u0441\u043E\u043C\u0435\u043B\u044C\u0435 \u0441\u0456\u0437\u0433\u0435 \u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u0430\u0434\u044B",searchPlaceholder:"\u041A\u0456\u043B\u0442 \u0441\u04E9\u0437\u0434\u0456 \u043D\u0435\u043C\u0435\u0441\u0435 \u0441\u0438\u043F\u0430\u0442\u0442\u0430\u043C\u0430\u043D\u044B \u0435\u043D\u0433\u0456\u0437\u0456\u04A3\u0456\u0437","wineDetails.price":"\u0411\u0430\u0493\u0430\u0441\u044B","wineDetails.region":"\u04E8\u04A3\u0456\u0440","wineDetails.type":"\u0422\u04AF\u0440\u0456","wineDetails.moreInfo":"\u0422\u043E\u043B\u044B\u0493\u044B\u0440\u0430\u049B","wineDetails.reason":"\u0421\u0435\u0431\u0435\u0431\u0456","wineDetails.code":"\u041A\u043E\u0434","wineDetails.buy":"\u0421\u0430\u0442\u044B\u043F \u0430\u043B\u0443",searchButton:"\u0406\u0437\u0434\u0435\u0443",priceRange:"\u0411\u0430\u0493\u0430 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u044B",wineColor:"\u0428\u0430\u0440\u0430\u043F \u0442\u04AF\u0441\u0456",intensity:"\u049A\u0430\u043D\u044B\u049B\u0442\u044B\u043B\u044B\u049B",red:"\u049A\u044B\u0437\u044B\u043B",white:"\u0410\u049B",rose:"\u0420\u043E\u0437\u0430\u043B\u044B\u049B",light:"\u0416\u0435\u04A3\u0456\u043B",medium:"\u041E\u0440\u0442\u0430\u0448\u0430",full:"\u0422\u043E\u043B\u044B\u049B",barTitle:"\u0428\u0430\u0440\u0430\u043F\u049B\u0430 \u0430\u0440\u043D\u0430\u043B\u0493\u0430\u043D \u0442\u0456\u0441\u043A\u0435\u0431\u0430\u0441\u0430\u0440\u043B\u0430\u0440",barSubtitle:"\u0422\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u0442\u0430\u0493\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437 \u0436\u04D9\u043D\u0435 '\u0416\u0456\u0431\u0435\u0440\u0443' \u0431\u0430\u0442\u044B\u0440\u043C\u0430\u0441\u044B\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",barSendButton:"\u0416\u0456\u0431\u0435\u0440\u0443",barResetButton:"\u049A\u0430\u043B\u043F\u044B\u043D\u0430 \u043A\u0435\u043B\u0442\u0456\u0440\u0443",barName:"\u0411\u0430\u0440 \u0430\u0442\u0430\u0443\u044B",barNotesPlaceholder:"\u041C\u04B1\u043D\u0434\u0430 \u04E9\u0437 \u0442\u0456\u043B\u0435\u043A\u0442\u0435\u0440\u0456\u04A3\u0456\u0437\u0434\u0456 \u0436\u0430\u0437\u044B\u04A3\u044B\u0437...",placeholderSuggestions:["\u041F\u0430\u0441\u0442\u0430\u0493\u0430 \u0430\u0440\u043D\u0430\u043B\u0493\u0430\u043D \u0448\u0430\u0440\u0430\u043F","\u0411\u0430\u043B\u044B\u049B\u049B\u0430 \u0442\u0430\u043C\u0430\u0448\u0430 \u04AF\u0439\u043B\u0435\u0441\u0435\u0434\u0456","\u041A\u0435\u0448\u043A\u0435 \u04B1\u0441\u044B\u043D\u0443\u0493\u0430 \u0431\u043E\u043B\u0430\u0434\u044B"],headerLine1:"\u041E\u0439\u043B\u0430\u0440\u044B\u04A3\u044B\u0437\u0431\u0435\u043D \u0431\u04E9\u043B\u0456\u0441\u0456\u04A3\u0456\u0437 \u2014",headerLine2:"\u2014 \u0436\u04D9\u043D\u0435 \u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430 \u043C\u0456\u043D\u0441\u0456\u0437 \u0448\u0430\u0440\u0430\u043F \u04B1\u0441\u044B\u043D\u044B\u0441\u044B\u043D \u0430\u043B\u044B\u04A3\u044B\u0437",headerMeal:"\u0442\u0430\u0493\u0430\u043C",headerMood:"\u043A\u04E9\u04A3\u0456\u043B-\u043A\u04AF\u0439",headerBudget:"\u0431\u044E\u0434\u0436\u0435\u0442",headerOccasion:"\u0436\u0430\u0493\u0434\u0430\u0439",headerOr:"\u043D\u0435\u043C\u0435\u0441\u0435",errorMessage:"\u0411\u0456\u0440\u0434\u0435\u04A3\u0435 \u0434\u04B1\u0440\u044B\u0441 \u0431\u043E\u043B\u043C\u0430\u0434\u044B. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430 \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",noResultsMessage:"\u0406\u0437\u0434\u0435\u0443\u0456\u04A3\u0456\u0437\u0433\u0435 \u0441\u04D9\u0439\u043A\u0435\u0441 \u043D\u04D9\u0442\u0438\u0436\u0435 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B. \u0411\u0430\u0441\u049B\u0430 \u0441\u04B1\u0440\u0430\u0443 \u049B\u043E\u043B\u0434\u0430\u043D\u044B\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",ai_sommelier:"AI sommelier",consentText:"\u0428\u0430\u0440\u0430\u043F \u043A\u04E9\u043C\u0435\u043A\u0448\u0456\u0441\u0456 \u0441\u0456\u0437\u0434\u0456\u04A3 \u0442\u0430\u043B\u0493\u0430\u043C\u044B\u04A3\u044B\u0437\u0434\u044B \u0435\u0441\u043A\u0435\u0440\u0456\u043F, \u04B1\u0441\u044B\u043D\u044B\u0441\u0442\u0430\u0440\u0434\u044B \u0436\u0430\u049B\u0441\u0430\u0440\u0442\u0443 \u04AF\u0448\u0456\u043D \u043E\u0441\u044B \u049B\u04B1\u0440\u044B\u043B\u0493\u044B\u0434\u0430 \u0430\u043D\u043E\u043D\u0438\u043C\u0434\u0456 \u0438\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u0441\u0430\u049B\u0442\u0430\u0439\u0434\u044B. \u041A\u0435\u043B\u0456\u0441\u0456\u043C\u0441\u0456\u0437 \u0434\u0435 \u043F\u0430\u0439\u0434\u0430\u043B\u0430\u043D\u0430 \u0430\u043B\u0430\u0441\u044B\u0437.",consentAccept:"\u049A\u0430\u0431\u044B\u043B\u0434\u0430\u0443",consentDecline:"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443",consentPrivacy:"\u049A\u04B1\u043F\u0438\u044F\u043B\u044B\u043B\u044B\u049B \u0441\u0430\u044F\u0441\u0430\u0442\u044B"},ol={lang:"pt",welcomeMessage:"O que voc\xEA planeja comer? Descreva seu prato e eu recomendarei a harmoniza\xE7\xE3o perfeita.",noResultsFound:"Nenhum resultado encontrado.",somethingWentWrong:"Desculpe, algo deu errado.",chatButton1:"Encontre sua harmoniza\xE7\xE3o",chatButton2:"Harmonizar vinho agora",chatButton3:"Receber conselho de vinho",chatTitle:"Assistente de Harmoniza\xE7\xE3o de Vinhos \u{1F377}",chatSubtitle:"Descreva sua refei\xE7\xE3o e receba uma recomenda\xE7\xE3o em 30 segundos",inputPlaceholder:"ex., Salada de atum",sendButton:"Harmonizar",poweredBy:"Desenvolvido por",price:"Pre\xE7o",region:"Regi\xE3o",type:"Tipo",reason:"Sugest\xE3o",moreInfo:"Mais informa\xE7\xF5es",tryAgain:"Tentar de novo",similarWines:"Vinhos semelhantes",byTheGlass:"Por ta\xE7a",winePairingIntro:"Para este vinho, aqui est\xE3o algumas sugest\xF5es de pratos:",askForDinner:"O que voc\xEA gostaria de jantar?",clearChatButton:"Limpar chat",widgetTitle:"ENCONTRE SEU VINHO PERFEITO",widgetSubtitle:"Compartilhe o que tiver em mente \u2014 sua refei\xE7\xE3o, humor, or\xE7amento ou ocasi\xE3o \u2014 e nosso sommelier de IA recomendar\xE1 o vinho perfeito em segundos",searchPlaceholder:"Digite uma palavra-chave ou descri\xE7\xE3o","wineDetails.reason":"Motivo","wineDetails.price":"Pre\xE7o","wineDetails.region":"Regi\xE3o","wineDetails.type":"Tipo","wineDetails.moreInfo":"Mais informa\xE7\xF5es","wineDetails.code":"C\xF3digo","wineDetails.buy":"Comprar",searchButton:"Pesquisar",priceRange:"Faixa de pre\xE7o",wineColor:"Cor do vinho",intensity:"Intensidade",red:"Tinto",white:"Branco",rose:"Ros\xE9",light:"Leve",medium:"M\xE9dio",full:"Encorpado",barTitle:"Pratos do bar",barSubtitle:"Selecione os pratos abaixo e clique em 'Enviar'",barSendButton:"Enviar",barResetButton:"Resetar",barName:"Nome do bar",barNotesPlaceholder:"Adicione seus desejos aqui...",placeholderSuggestions:["Vinho para massa","Perfeito com peixe","Recomendado para uma festa"],headerLine1:"Compartilhe o que tiver em mente \u2014",headerLine2:"\u2014 e receba recomenda\xE7\xF5es do vinho perfeito em segundos",headerMeal:"refei\xE7\xE3o",headerMood:"humor",headerBudget:"or\xE7amento",headerOccasion:"ocasi\xE3o",headerOr:"ou",errorMessage:"Algo deu errado. Por favor, tente novamente mais tarde.",noResultsMessage:"Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",ai_sommelier:"AI sommelier",consentText:"O assistente de vinhos guarda um identificador an\xF3nimo neste dispositivo para conhecer o seu gosto e melhorar as recomenda\xE7\xF5es. Pode us\xE1-lo sem aceitar.",consentAccept:"Aceitar",consentDecline:"Recusar",consentPrivacy:"Pol\xEDtica de privacidade"},al={fr:Js,es:Qs,en:Xs,sr:el,de:tl,ukr:nl,ru:rl,kk:il,pt:ol};function sl(e){return{id:String(e.id),lang:e.lang,available_languages:e.available_languages?e.available_languages:[e.lang],open_ai_key:e.open_ai_key??null,currency:e.currency,title:e.title,requires_cookie_consent:e.requires_cookie_consent===!0}}const ll={0:{logoUrl:null,brandColor:"#7B2BEB"},29:{logoUrl:"https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/plou_logo.jpg",brandColor:"#e6c6bb"},25:{logoUrl:null,brandColor:"#000000",wineaterColor:"#000000",buttonUppercase:!0,customCss:`
|
|
3
3
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
|
|
4
4
|
:root { --wineater-font-primary: 'Roboto', sans-serif; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function($,ee){typeof exports=="object"&&typeof module<"u"?module.exports=ee():typeof define=="function"&&define.amd?define(ee):($=typeof globalThis<"u"?globalThis:$||self,$.WineaterChatbot=ee())})(this,function(){"use strict";var xc=Object.defineProperty;var Ho=$=>{throw TypeError($)};var kc=($,ee,de)=>ee in $?xc($,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):$[ee]=de;var ht=($,ee,de)=>kc($,typeof ee!="symbol"?ee+"":ee,de),ui=($,ee,de)=>ee.has($)||Ho("Cannot "+de);var h=($,ee,de)=>(ui($,ee,"read from private field"),de?de.call($):ee.get($)),U=($,ee,de)=>ee.has($)?Ho("Cannot add the same private member more than once"):ee instanceof WeakSet?ee.add($):ee.set($,de),N=($,ee,de,In)=>(ui($,ee,"write to private field"),In?In.call($,de):ee.set($,de),de),Z=($,ee,de)=>(ui($,ee,"access private method"),de);var zo,_n,yn,Kt,Yt,Hn,bn,xn,pe,di,tn,fi,Vo,Go,Ke,Ye,ri,ct,Zt,ut,Ze,We,dt,xt,Dt,Qt,Rt,Jt,Wt,mr,_e,Sc,Cc,hi,kr,Sr,vi,$e,ft,je,Xt,Vn,Gn,wr,kn,Kn,$t,Sn,Me,pi,An,gi,Lo,Oo;const $="5";typeof window<"u"&&((zo=window.__svelte??(window.__svelte={})).v??(zo.v=new Set)).add($);const ee=1,de=2,In=4,Ko=8,Yo=16,Zo=1,Qo=2,Jo=4,Xo=8,$o=16,mi=1,ea=2,be=Symbol(),ta="http://www.w3.org/1999/xhtml",Cr=!1;var Er=Array.isArray,na=Array.prototype.indexOf,Tr=Array.from,ra=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ia=Object.getOwnPropertyDescriptors,oa=Object.prototype,aa=Array.prototype,wi=Object.getPrototypeOf,_i=Object.isExtensible;function sa(e){for(var t=0;t<e.length;t++)e[t]()}function yi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function la(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const ye=2,Pr=4,Ar=8,vt=16,pt=32,zt=64,$n=128,Qe=512,xe=1024,Ie=2048,gt=4096,Be=8192,mt=16384,Ir=32768,Lt=65536,bi=1<<17,xi=1<<18,rn=1<<19,ca=1<<20,Ot=32768,Dr=1<<21,Rr=1<<22,St=1<<23,jt=Symbol("$state"),ua=Symbol("legacy props"),da=Symbol(""),on=new class extends Error{constructor(){super(...arguments);ht(this,"name","StaleReactionError");ht(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function fa(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ha(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function va(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ga(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ma(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wa(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _a(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ya(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ba(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ka(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Sa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ki(e){return e===this.v}function Ca(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Si(e){return!Ca(e,this.v)}let an=!1,Ea=!1;function Ta(){an=!0}let fe=null;function sn(e){fe=e}function nt(e,t=!1,n){fe={p:fe,i:!1,c:null,e:null,s:e,x:null,l:an&&!t?{s:null,u:null,$:[]}:null}}function rt(e){var t=fe,n=t.e;if(n!==null){t.e=null;for(var r of n)Ui(r)}return e!==void 0&&(t.x=e),t.i=!0,fe=t.p,e??{}}function Dn(){return!an||fe!==null&&fe.l===null}let qt=[];function Ci(){var e=qt;qt=[],sa(e)}function ln(e){if(qt.length===0&&!Rn){var t=qt;queueMicrotask(()=>{t===qt&&Ci()})}qt.push(e)}function Pa(){for(;qt.length>0;)Ci()}function Ei(e){var t=X;if(t===null)return V.f|=St,e;if(t.f&Ir)cn(e,t);else{if(!(t.f&$n))throw e;t.b.error(e)}}function cn(e,t){for(;t!==null;){if(t.f&$n)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const er=new Set;let Q=null,tr=null,he=null,Ue=[],nr=null,Wr=!1,Rn=!1;const gr=class gr{constructor(){U(this,pe);ht(this,"committed",!1);ht(this,"current",new Map);ht(this,"previous",new Map);U(this,_n,new Set);U(this,yn,new Set);U(this,Kt,0);U(this,Yt,0);U(this,Hn,null);U(this,bn,[]);U(this,xn,[]);ht(this,"skipped_effects",new Set);ht(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,Yt)>0}process(t){var r;Ue=[],tr=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)Z(this,pe,di).call(this,i,n);this.is_fork||Z(this,pe,Vo).call(this),this.is_deferred()?(Z(this,pe,tn).call(this,n.effects),Z(this,pe,tn).call(this,n.render_effects),Z(this,pe,tn).call(this,n.block_effects)):(tr=this,Q=null,Pi(n.render_effects),Pi(n.effects),tr=null,(r=h(this,Hn))==null||r.resolve()),he=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&St||(this.current.set(t,t.v),he==null||he.set(t,t.v))}activate(){Q=this,this.apply()}deactivate(){Q===this&&(Q=null,he=null)}flush(){if(this.activate(),Ue.length>0){if(Ti(),Q!==null&&Q!==this)return}else h(this,Kt)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,yn))t(this);h(this,yn).clear()}increment(t){N(this,Kt,h(this,Kt)+1),t&&N(this,Yt,h(this,Yt)+1)}decrement(t){N(this,Kt,h(this,Kt)-1),t&&N(this,Yt,h(this,Yt)-1),this.revive()}revive(){for(const t of h(this,bn))ke(t,Ie),Ft(t);for(const t of h(this,xn))ke(t,gt),Ft(t);N(this,bn,[]),N(this,xn,[]),this.flush()}oncommit(t){h(this,_n).add(t)}ondiscard(t){h(this,yn).add(t)}settled(){return(h(this,Hn)??N(this,Hn,yi())).promise}static ensure(){if(Q===null){const t=Q=new gr;er.add(Q),Rn||gr.enqueue(()=>{Q===t&&t.flush()})}return Q}static enqueue(t){ln(t)}apply(){}};_n=new WeakMap,yn=new WeakMap,Kt=new WeakMap,Yt=new WeakMap,Hn=new WeakMap,bn=new WeakMap,xn=new WeakMap,pe=new WeakSet,di=function(t,n){var v;t.f^=xe;for(var r=t.first;r!==null;){var i=r.f,o=(i&(pt|zt))!==0,l=o&&(i&xe)!==0,c=l||(i&Be)!==0||this.skipped_effects.has(r);if(r.f&$n&&((v=r.b)!=null&&v.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!c&&r.fn!==null){o?r.f^=xe:i&Pr?n.effects.push(r):zn(r)&&(r.f&vt&&n.block_effects.push(r),Ln(r));var s=r.first;if(s!==null){r=s;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(Z(this,pe,tn).call(this,n.effects),Z(this,pe,tn).call(this,n.render_effects),Z(this,pe,tn).call(this,n.block_effects),n=n.parent),r=u.next,u=u.parent}},tn=function(t){for(const n of t)(n.f&Ie?h(this,bn):h(this,xn)).push(n),Z(this,pe,fi).call(this,n.deps),ke(n,xe)},fi=function(t){if(t!==null)for(const n of t)!(n.f&ye)||!(n.f&Ot)||(n.f^=Ot,Z(this,pe,fi).call(this,n.deps))},Vo=function(){if(h(this,Yt)===0){for(const t of h(this,_n))t();h(this,_n).clear()}h(this,Kt)===0&&Z(this,pe,Go).call(this)},Go=function(){var o;if(er.size>1){this.previous.clear();var t=he,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of er){if(l===this){n=!1;continue}const c=[];for(const[u,v]of this.current){if(l.current.has(u))if(n&&v!==l.current.get(u))l.current.set(u,v);else continue;c.push(u)}if(c.length===0)continue;const s=[...l.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ue;Ue=[];const u=new Set,v=new Map;for(const g of c)Ai(g,s,u,v);if(Ue.length>0){Q=l,l.apply();for(const g of Ue)Z(o=l,pe,di).call(o,g,r);l.deactivate()}Ue=i}}Q=null,he=t}this.committed=!0,er.delete(this)};let wt=gr;function Aa(e){var t=Rn;Rn=!0;try{for(var n;;){if(Pa(),Ue.length===0&&(Q==null||Q.flush(),Ue.length===0))return nr=null,n;Ti()}}finally{Rn=t}}function Ti(){var e=Tt;Wr=!0;var t=null;try{var n=0;for(lr(!0);Ue.length>0;){var r=wt.ensure();if(n++>1e3){var i,o;Ia()}r.process(Ue),Et.clear()}}finally{Wr=!1,lr(e),nr=null}}function Ia(){try{ma()}catch(e){cn(e,nr)}}let Je=null;function Pi(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(mt|Be))&&zn(r)&&(Je=new Set,Ln(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ki(r):r.fn=null),(Je==null?void 0:Je.size)>0)){Et.clear();for(const i of Je){if(i.f&(mt|Be))continue;const o=[i];let l=i.parent;for(;l!==null;)Je.has(l)&&(Je.delete(l),o.push(l)),l=l.parent;for(let c=o.length-1;c>=0;c--){const s=o[c];s.f&(mt|Be)||Ln(s)}}Je.clear()}}Je=null}}function Ai(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&ye?Ai(i,t,n,r):o&(Rr|vt)&&!(o&Ie)&&Ii(i,t,r)&&(ke(i,Ie),Ft(i))}}function Ii(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&ye&&Ii(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ft(e){for(var t=nr=e;t.parent!==null;){t=t.parent;var n=t.f;if(Wr&&t===X&&n&vt&&!(n&xi))return;if(n&(zt|pt)){if(!(n&xe))return;t.f^=xe}}Ue.push(t)}function Da(e){let t=0,n=Ut(0),r;return()=>{ar()&&(a(n),Or(()=>(t===0&&(r=On(()=>e(()=>Wn(n)))),t+=1,()=>{ln(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Wn(n))})})))}}var Ra=Lt|rn|$n;function Wa(e,t,n){new Ma(e,t,n)}class Ma{constructor(t,n,r){U(this,_e);ht(this,"parent");U(this,Ke,!1);U(this,Ye);U(this,ri,null);U(this,ct);U(this,Zt);U(this,ut);U(this,Ze,null);U(this,We,null);U(this,dt,null);U(this,xt,null);U(this,Dt,null);U(this,Qt,0);U(this,Rt,0);U(this,Jt,!1);U(this,Wt,null);U(this,mr,Da(()=>(N(this,Wt,Ut(h(this,Qt))),()=>{N(this,Wt,null)})));N(this,Ye,t),N(this,ct,n),N(this,Zt,r),this.parent=X.b,N(this,Ke,!!h(this,ct).pending),N(this,ut,sr(()=>{X.b=this;{var i=Z(this,_e,hi).call(this);try{N(this,Ze,Ve(()=>r(i)))}catch(o){this.error(o)}h(this,Rt)>0?Z(this,_e,Sr).call(this):N(this,Ke,!1)}return()=>{var o;(o=h(this,Dt))==null||o.remove()}},Ra))}is_pending(){return h(this,Ke)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,ct).pending}update_pending_count(t){Z(this,_e,vi).call(this,t),N(this,Qt,h(this,Qt)+t),h(this,Wt)&&dn(h(this,Wt),h(this,Qt))}get_effect_pending(){return h(this,mr).call(this),a(h(this,Wt))}error(t){var n=h(this,ct).onerror;let r=h(this,ct).failed;if(h(this,Jt)||!n&&!r)throw t;h(this,Ze)&&(De(h(this,Ze)),N(this,Ze,null)),h(this,We)&&(De(h(this,We)),N(this,We,null)),h(this,dt)&&(De(h(this,dt)),N(this,dt,null));var i=!1,o=!1;const l=()=>{if(i){Sa();return}i=!0,o&&xa(),wt.ensure(),N(this,Qt,0),h(this,dt)!==null&&fn(h(this,dt),()=>{N(this,dt,null)}),N(this,Ke,this.has_pending_snippet()),N(this,Ze,Z(this,_e,kr).call(this,()=>(N(this,Jt,!1),Ve(()=>h(this,Zt).call(this,h(this,Ye)))))),h(this,Rt)>0?Z(this,_e,Sr).call(this):N(this,Ke,!1)};var c=V;try{Re(null),o=!0,n==null||n(t,l),o=!1}catch(s){cn(s,h(this,ut)&&h(this,ut).parent)}finally{Re(c)}r&&ln(()=>{N(this,dt,Z(this,_e,kr).call(this,()=>{wt.ensure(),N(this,Jt,!0);try{return Ve(()=>{r(h(this,Ye),()=>t,()=>l)})}catch(s){return cn(s,h(this,ut).parent),null}finally{N(this,Jt,!1)}}))})}}Ke=new WeakMap,Ye=new WeakMap,ri=new WeakMap,ct=new WeakMap,Zt=new WeakMap,ut=new WeakMap,Ze=new WeakMap,We=new WeakMap,dt=new WeakMap,xt=new WeakMap,Dt=new WeakMap,Qt=new WeakMap,Rt=new WeakMap,Jt=new WeakMap,Wt=new WeakMap,mr=new WeakMap,_e=new WeakSet,Sc=function(){try{N(this,Ze,Ve(()=>h(this,Zt).call(this,h(this,Ye))))}catch(t){this.error(t)}N(this,Ke,!1)},Cc=function(){const t=h(this,ct).pending;t&&(N(this,We,Ve(()=>t(h(this,Ye)))),wt.enqueue(()=>{var n=Z(this,_e,hi).call(this);N(this,Ze,Z(this,_e,kr).call(this,()=>(wt.ensure(),Ve(()=>h(this,Zt).call(this,n))))),h(this,Rt)>0?Z(this,_e,Sr).call(this):(fn(h(this,We),()=>{N(this,We,null)}),N(this,Ke,!1))}))},hi=function(){var t=h(this,Ye);return h(this,Ke)&&(N(this,Dt,_t()),h(this,Ye).before(h(this,Dt)),t=h(this,Dt)),t},kr=function(t){var n=X,r=V,i=fe;at(h(this,ut)),Re(h(this,ut)),sn(h(this,ut).ctx);try{return t()}catch(o){return Ei(o),null}finally{at(n),Re(r),sn(i)}},Sr=function(){const t=h(this,ct).pending;h(this,Ze)!==null&&(N(this,xt,document.createDocumentFragment()),h(this,xt).append(h(this,Dt)),Qi(h(this,Ze),h(this,xt))),h(this,We)===null&&N(this,We,Ve(()=>t(h(this,Ye))))},vi=function(t){var n;if(!this.has_pending_snippet()){this.parent&&Z(n=this.parent,_e,vi).call(n,t);return}N(this,Rt,h(this,Rt)+t),h(this,Rt)===0&&(N(this,Ke,!1),h(this,We)&&fn(h(this,We),()=>{N(this,We,null)}),h(this,xt)&&(h(this,Ye).before(h(this,xt)),N(this,xt,null)))};function un(e,t){return t}function Ba(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)jr(t[o].e,r,!0);Yi(r,()=>{var l=r.length===0&&n!==null;if(l){var c=n,s=c.parentNode;Ga(s),s.append(c),e.items.clear(),it(e,t[0].prev,t[i-1].next)}for(var u=0;u<i;u++){var v=t[u];l||(e.items.delete(v.k),it(e,v.prev,v.next)),De(v.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function Ct(e,t,n,r,i,o=null){var l=e,c=new Map,s=null,u=(t&In)!==0,v=(t&ee)!==0,g=(t&de)!==0;if(u){var f=e;l=f.appendChild(_t())}var d=null,y=Br(()=>{var _=n();return Er(_)?_:_==null?[]:Tr(_)}),p,m=!0;function x(){Na(O,p,l,t,r),d!==null&&(p.length===0?(d.fragment?(l.before(d.fragment),d.fragment=null):qr(d.effect),A.first=d.effect):fn(d.effect,()=>{d=null}))}var A=sr(()=>{p=a(y);for(var _=p.length,E=new Set,P=Q,S=null,R=qi(),W=0;W<_;W+=1){var G=p[W],q=r(G,W),F=m?null:c.get(q);F?(v&&dn(F.v,G),g?dn(F.i,W):F.i=W,R&&P.skipped_effects.delete(F.e)):(F=za(m?l:null,S,G,q,W,i,t,n),m&&(F.o=!0,S===null?s=F:S.next=F,S=F),c.set(q,F)),E.add(q)}if(_===0&&o&&!d)if(m)d={fragment:null,effect:Ve(()=>o(l))};else{var ge=document.createDocumentFragment(),J=_t();ge.append(J),d={fragment:ge,effect:Ve(()=>o(J))}}if(!m)if(R){for(const[Se,ae]of c)E.has(Se)||P.skipped_effects.add(ae.e);P.oncommit(x),P.ondiscard(()=>{})}else x();a(y)}),O={effect:A,items:c,first:s};m=!1}function Na(e,t,n,r,i){var G,q,F,ge;var o=(r&Ko)!==0,l=t.length,c=e.items,s=e.first,u,v=null,g,f=[],d=[],y,p,m,x;if(o)for(x=0;x<l;x+=1)y=t[x],p=i(y,x),m=c.get(p),(G=m.a)==null||G.measure(),(g??(g=new Set)).add(m);for(x=0;x<l;x+=1){if(y=t[x],p=i(y,x),m=c.get(p),e.first??(e.first=m),!m.o){m.o=!0;var A=v?v.next:s;it(e,v,m),it(e,m,A),Mr(m,A,n),v=m,f=[],d=[],s=v.next;continue}if(m.e.f&Be&&(qr(m.e),o&&((q=m.a)==null||q.unfix(),(g??(g=new Set)).delete(m))),m!==s){if(u!==void 0&&u.has(m)){if(f.length<d.length){var O=d[0],_;v=O.prev;var E=f[0],P=f[f.length-1];for(_=0;_<f.length;_+=1)Mr(f[_],O,n);for(_=0;_<d.length;_+=1)u.delete(d[_]);it(e,E.prev,P.next),it(e,v,E),it(e,P,O),s=O,v=P,x-=1,f=[],d=[]}else u.delete(m),Mr(m,s,n),it(e,m.prev,m.next),it(e,m,v===null?e.first:v.next),it(e,v,m),v=m;continue}for(f=[],d=[];s!==null&&s.k!==p;)s.e.f&Be||(u??(u=new Set)).add(s),d.push(s),s=s.next;if(s===null)continue;m=s}f.push(m),v=m,s=m.next}if(s!==null||u!==void 0){for(var S=u===void 0?[]:Tr(u);s!==null;)s.e.f&Be||S.push(s),s=s.next;var R=S.length;if(R>0){var W=r&In&&l===0?n:null;if(o){for(x=0;x<R;x+=1)(F=S[x].a)==null||F.measure();for(x=0;x<R;x+=1)(ge=S[x].a)==null||ge.fix()}Ba(e,S,W)}}o&&ln(()=>{var J;if(g!==void 0)for(m of g)(J=m.a)==null||J.apply()})}function za(e,t,n,r,i,o,l,c){var s=(l&ee)!==0,u=(l&Yo)===0,v=s?u?Fa(n,!1,!1):Ut(n):n,g=l&de?Ut(i):i,f={i:g,v,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=_t())}return f.e=Ve(()=>o(e,v,g,c)),t!==null&&(t.next=f),f}finally{}}function Mr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==null&&o!==r;){var l=Mn(o);i.before(o),o=l}}function it(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function La(e,t,n,r){const i=Dn()?ir:Br;if(n.length===0&&e.length===0){r(t.map(i));return}var o=Q,l=X,c=Oa();function s(){Promise.all(n.map(u=>ja(u))).then(u=>{c();try{r([...t.map(i),...u])}catch(v){l.f&mt||cn(v,l)}o==null||o.deactivate(),rr()}).catch(u=>{cn(u,l)})}e.length>0?Promise.all(e).then(()=>{c();try{return s()}finally{o==null||o.deactivate(),rr()}}):s()}function Oa(){var e=X,t=V,n=fe,r=Q;return function(o=!0){at(e),Re(t),sn(n),o&&(r==null||r.activate())}}function rr(){at(null),Re(null),sn(null)}function ir(e){var t=ye|Ie,n=V!==null&&V.f&ye?V:null;return X!==null&&(X.f|=rn),{ctx:fe,deps:null,effects:null,equals:ki,f:t,fn:e,reactions:null,rv:0,v:be,wv:0,parent:n??X,ac:null}}function ja(e,t){let n=X;n===null&&ha();var r=n.b,i=void 0,o=Ut(be),l=!V,c=new Map;return Xa(()=>{var f;var s=yi();i=s.promise;try{Promise.resolve(e()).then(s.resolve,s.reject).then(()=>{u===Q&&u.committed&&u.deactivate(),rr()})}catch(d){s.reject(d),rr()}var u=Q;if(l){var v=!r.is_pending();r.update_pending_count(1),u.increment(v),(f=c.get(u))==null||f.reject(on),c.delete(u),c.set(u,s)}const g=(d,y=void 0)=>{if(u.activate(),y)y!==on&&(o.f|=St,dn(o,y));else{o.f&St&&(o.f^=St),dn(o,d);for(const[p,m]of c){if(c.delete(p),p===u)break;m.reject(on)}}l&&(r.update_pending_count(-1),u.decrement(v))};s.promise.then(g,d=>g(null,d||"unknown"))}),Lr(()=>{for(const s of c.values())s.reject(on)}),new Promise(s=>{function u(v){function g(){v===i?s(o):u(i)}v.then(g,g)}u(i)})}function re(e){const t=ir(e);return Xi(t),t}function Br(e){const t=ir(e);return t.equals=Si,t}function Di(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)De(t[n])}}function qa(e){for(var t=e.parent;t!==null;){if(!(t.f&ye))return t.f&mt?null:t;t=t.parent}return null}function Nr(e){var t,n=X;at(qa(e));try{e.f&=~Ot,Di(e),t=ro(e)}finally{at(n)}return t}function Ri(e){var t=Nr(e);if(e.equals(t)||(Q!=null&&Q.is_fork||(e.v=t),e.wv=to()),!Ht)if(he!==null)ar()&&he.set(e,t);else{var n=e.f&Qe?xe:gt;ke(e,n)}}let zr=new Set;const Et=new Map;let Wi=!1;function Ut(e,t){var n={f:0,v:e,reactions:null,equals:ki,rv:0,wv:0};return n}function Y(e,t){const n=Ut(e);return Xi(n),n}function Fa(e,t=!1,n=!0){var i;const r=Ut(e);return t||(r.equals=Si),an&&n&&fe!==null&&fe.l!==null&&((i=fe.l).s??(i.s=[])).push(r),r}function w(e,t,n=!1){V!==null&&(!ot||V.f&bi)&&Dn()&&V.f&(ye|vt|Rr|bi)&&!(Ce!=null&&Ce.includes(e))&&ba();let r=n?He(t):t;return dn(e,r)}function dn(e,t){if(!e.equals(t)){var n=e.v;Ht?Et.set(e,t):Et.set(e,n),e.v=t;var r=wt.ensure();r.capture(e,n),e.f&ye&&(e.f&Ie&&Nr(e),ke(e,e.f&Qe?xe:gt)),e.wv=to(),Bi(e,Ie),Dn()&&X!==null&&X.f&xe&&!(X.f&(pt|zt))&&(Ge===null?ts([e]):Ge.push(e)),!r.is_fork&&zr.size>0&&!Wi&&Ua()}return t}function Ua(){Wi=!1;var e=Tt;lr(!0);const t=Array.from(zr);try{for(const n of t)n.f&xe&&ke(n,gt),zn(n)&&Ln(n)}finally{lr(e)}zr.clear()}function Mi(e,t=1){var n=a(e),r=t===1?n++:n--;return w(e,n),r}function Wn(e){w(e,e.v+1)}function Bi(e,t){var n=e.reactions;if(n!==null)for(var r=Dn(),i=n.length,o=0;o<i;o++){var l=n[o],c=l.f;if(!(!r&&l===X)){var s=(c&Ie)===0;if(s&&ke(l,t),c&ye){var u=l;he==null||he.delete(u),c&Ot||(c&Qe&&(l.f|=Ot),Bi(u,gt))}else s&&(c&vt&&Je!==null&&Je.add(l),Ft(l))}}}function He(e){if(typeof e!="object"||e===null||jt in e)return e;const t=wi(e);if(t!==oa&&t!==aa)return e;var n=new Map,r=Er(e),i=Y(0),o=Vt,l=c=>{if(Vt===o)return c();var s=V,u=Vt;Re(null),eo(o);var v=c();return Re(s),eo(u),v};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(c,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_a();var v=n.get(s);return v===void 0?v=l(()=>{var g=Y(u.value);return n.set(s,g),g}):w(v,u.value,!0),!0},deleteProperty(c,s){var u=n.get(s);if(u===void 0){if(s in c){const v=l(()=>Y(be));n.set(s,v),Wn(i)}}else w(u,be),Wn(i);return!0},get(c,s,u){var d;if(s===jt)return e;var v=n.get(s),g=s in c;if(v===void 0&&(!g||(d=nn(c,s))!=null&&d.writable)&&(v=l(()=>{var y=He(g?c[s]:be),p=Y(y);return p}),n.set(s,v)),v!==void 0){var f=a(v);return f===be?void 0:f}return Reflect.get(c,s,u)},getOwnPropertyDescriptor(c,s){var u=Reflect.getOwnPropertyDescriptor(c,s);if(u&&"value"in u){var v=n.get(s);v&&(u.value=a(v))}else if(u===void 0){var g=n.get(s),f=g==null?void 0:g.v;if(g!==void 0&&f!==be)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(c,s){var f;if(s===jt)return!0;var u=n.get(s),v=u!==void 0&&u.v!==be||Reflect.has(c,s);if(u!==void 0||X!==null&&(!v||(f=nn(c,s))!=null&&f.writable)){u===void 0&&(u=l(()=>{var d=v?He(c[s]):be,y=Y(d);return y}),n.set(s,u));var g=a(u);if(g===be)return!1}return v},set(c,s,u,v){var O;var g=n.get(s),f=s in c;if(r&&s==="length")for(var d=u;d<g.v;d+=1){var y=n.get(d+"");y!==void 0?w(y,be):d in c&&(y=l(()=>Y(be)),n.set(d+"",y))}if(g===void 0)(!f||(O=nn(c,s))!=null&&O.writable)&&(g=l(()=>Y(void 0)),w(g,He(u)),n.set(s,g));else{f=g.v!==be;var p=l(()=>He(u));w(g,p)}var m=Reflect.getOwnPropertyDescriptor(c,s);if(m!=null&&m.set&&m.set.call(v,u),!f){if(r&&typeof s=="string"){var x=n.get("length"),A=Number(s);Number.isInteger(A)&&A>=x.v&&w(x,A+1)}Wn(i)}return!0},ownKeys(c){a(i);var s=Reflect.ownKeys(c).filter(g=>{var f=n.get(g);return f===void 0||f.v!==be});for(var[u,v]of n)v.v!==be&&!(u in c)&&s.push(u);return s},setPrototypeOf(){ya()}})}function Ni(e){try{if(e!==null&&typeof e=="object"&&jt in e)return e[jt]}catch{}return e}function Ha(e,t){return Object.is(Ni(e),Ni(t))}var zi,Li,Oi,ji;function Va(){if(zi===void 0){zi=window,Li=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Oi=nn(t,"firstChild").get,ji=nn(t,"nextSibling").get,_i(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_i(n)&&(n.__t=void 0)}}function _t(e=""){return document.createTextNode(e)}function yt(e){return Oi.call(e)}function Mn(e){return ji.call(e)}function T(e,t){return yt(e)}function we(e,t=!1){{var n=yt(e);return n instanceof Comment&&n.data===""?Mn(n):n}}function I(e,t=1,n=!1){let r=e;for(;t--;)r=Mn(r);return r}function Ga(e){e.textContent=""}function qi(){return!1}let Fi=!1;function Ka(){Fi||(Fi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function or(e){var t=V,n=X;Re(null),at(null);try{return e()}finally{Re(t),at(n)}}function Ya(e,t,n,r=n){e.addEventListener(t,()=>or(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Ka()}function Za(e){X===null&&(V===null&&ga(),pa()),Ht&&va()}function Qa(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function bt(e,t,n){var r=X;r!==null&&r.f&Be&&(e|=Be);var i={ctx:fe,deps:null,nodes_start:null,nodes_end:null,f:e|Ie|Qe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ln(i),i.f|=Ir}catch(c){throw De(i),c}else t!==null&&Ft(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&rn)&&(o=o.first,e&vt&&e&Lt&&o!==null&&(o.f|=Lt)),o!==null&&(o.parent=r,r!==null&&Qa(o,r),V!==null&&V.f&ye&&!(e&zt))){var l=V;(l.effects??(l.effects=[])).push(o)}return i}function ar(){return V!==null&&!ot}function Lr(e){const t=bt(Ar,null,!1);return ke(t,xe),t.teardown=e,t}function Bn(e){Za();var t=X.f,n=!V&&(t&pt)!==0&&(t&Ir)===0;if(n){var r=fe;(r.e??(r.e=[])).push(e)}else return Ui(e)}function Ui(e){return bt(Pr|ca,e,!1)}function Ja(e){wt.ensure();const t=bt(zt|rn,e,!0);return(n={})=>new Promise(r=>{n.outro?fn(t,()=>{De(t),r(void 0)}):(De(t),r(void 0))})}function Hi(e){return bt(Pr,e,!1)}function Xa(e){return bt(Rr|rn,e,!0)}function Or(e,t=0){return bt(Ar|t,e,!0)}function B(e,t=[],n=[],r=[]){La(r,t,n,i=>{bt(Ar,()=>e(...i.map(a)),!0)})}function sr(e,t=0){var n=bt(vt|t,e,!0);return n}function Ve(e){return bt(pt|rn,e,!0)}function Vi(e){var t=e.teardown;if(t!==null){const n=Ht,r=V;Ji(!0),Re(null);try{t.call(null)}finally{Ji(n),Re(r)}}}function Gi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&or(()=>{i.abort(on)});var r=n.next;n.f&zt?n.parent=null:De(n,t),n=r}}function $a(e){for(var t=e.first;t!==null;){var n=t.next;t.f&pt||De(t),t=n}}function De(e,t=!0){var n=!1;(t||e.f&xi)&&e.nodes_start!==null&&e.nodes_end!==null&&(es(e.nodes_start,e.nodes_end),n=!0),Gi(e,t&&!n),cr(e,0),ke(e,mt);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Vi(e);var i=e.parent;i!==null&&i.first!==null&&Ki(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function es(e,t){for(;e!==null;){var n=e===t?null:Mn(e);e.remove(),e=n}}function Ki(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function fn(e,t,n=!0){var r=[];jr(e,r,!0),Yi(r,()=>{n&&De(e),t&&t()})}function Yi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function jr(e,t,n){if(!(e.f&Be)){if(e.f^=Be,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Lt)!==0||(r.f&pt)!==0&&(e.f&vt)!==0;jr(r,t,o?n:!1),r=i}}}function qr(e){Zi(e,!0)}function Zi(e,t){if(e.f&Be){e.f^=Be,e.f&xe||(ke(e,Ie),Ft(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Lt)!==0||(n.f&pt)!==0;Zi(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Qi(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Mn(n);t.append(n),n=i}}let Tt=!1;function lr(e){Tt=e}let Ht=!1;function Ji(e){Ht=e}let V=null,ot=!1;function Re(e){V=e}let X=null;function at(e){X=e}let Ce=null;function Xi(e){V!==null&&(Ce===null?Ce=[e]:Ce.push(e))}let Ee=null,Ne=0,Ge=null;function ts(e){Ge=e}let $i=1,Nn=0,Vt=Nn;function eo(e){Vt=e}function to(){return++$i}function zn(e){var t=e.f;if(t&Ie)return!0;if(t&ye&&(e.f&=~Ot),t>){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(zn(o)&&Ri(o),o.wv>e.wv)return!0}t&Qe&&he===null&&ke(e,xe)}return!1}function no(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Ce!=null&&Ce.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&ye?no(o,t,!1):t===o&&(n?ke(o,Ie):o.f&xe&&ke(o,gt),Ft(o))}}function ro(e){var y;var t=Ee,n=Ne,r=Ge,i=V,o=Ce,l=fe,c=ot,s=Vt,u=e.f;Ee=null,Ne=0,Ge=null,V=u&(pt|zt)?null:e,Ce=null,sn(e.ctx),ot=!1,Vt=++Nn,e.ac!==null&&(or(()=>{e.ac.abort(on)}),e.ac=null);try{e.f|=Dr;var v=e.fn,g=v(),f=e.deps;if(Ee!==null){var d;if(cr(e,Ne),f!==null&&Ne>0)for(f.length=Ne+Ee.length,d=0;d<Ee.length;d++)f[Ne+d]=Ee[d];else e.deps=f=Ee;if(Tt&&ar()&&e.f&Qe)for(d=Ne;d<f.length;d++)((y=f[d]).reactions??(y.reactions=[])).push(e)}else f!==null&&Ne<f.length&&(cr(e,Ne),f.length=Ne);if(Dn()&&Ge!==null&&!ot&&f!==null&&!(e.f&(ye|gt|Ie)))for(d=0;d<Ge.length;d++)no(Ge[d],e);return i!==null&&i!==e&&(Nn++,Ge!==null&&(r===null?r=Ge:r.push(...Ge))),e.f&St&&(e.f^=St),g}catch(p){return Ei(p)}finally{e.f^=Dr,Ee=t,Ne=n,Ge=r,V=i,Ce=o,sn(l),ot=c,Vt=s}}function ns(e,t){let n=t.reactions;if(n!==null){var r=na.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&ye&&(Ee===null||!Ee.includes(t))&&(ke(t,gt),t.f&Qe&&(t.f^=Qe,t.f&=~Ot),Di(t),cr(t,0))}function cr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ns(e,n[r])}function Ln(e){var t=e.f;if(!(t&mt)){ke(e,xe);var n=X,r=Tt;X=e,Tt=!0;try{t&vt?$a(e):Gi(e),Vi(e);var i=ro(e);e.teardown=typeof i=="function"?i:null,e.wv=$i;var o;Cr&&Ea&&e.f&Ie&&e.deps}finally{Tt=r,X=n}}}async function rs(){await Promise.resolve(),Aa()}function a(e){var t=e.f,n=(t&ye)!==0;if(V!==null&&!ot){var r=X!==null&&(X.f&mt)!==0;if(!r&&!(Ce!=null&&Ce.includes(e))){var i=V.deps;if(V.f&Dr)e.rv<Nn&&(e.rv=Nn,Ee===null&&i!==null&&i[Ne]===e?Ne++:Ee===null?Ee=[e]:Ee.includes(e)||Ee.push(e));else{(V.deps??(V.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[V]:o.includes(V)||o.push(V)}}}if(Ht){if(Et.has(e))return Et.get(e);if(n){var l=e,c=l.v;return(!(l.f&xe)&&l.reactions!==null||oo(l))&&(c=Nr(l)),Et.set(l,c),c}}else n&&!(he!=null&&he.has(e))&&(l=e,zn(l)&&Ri(l),Tt&&ar()&&!(l.f&Qe)&&io(l));if(he!=null&&he.has(e))return he.get(e);if(e.f&St)throw e.v;return e.v}function io(e){if(e.deps!==null){e.f^=Qe;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&ye&&!(t.f&Qe)&&io(t)}}function oo(e){if(e.v===be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Et.has(t)||t.f&ye&&oo(t))return!0;return!1}function On(e){var t=ot;try{return ot=!0,e()}finally{ot=t}}const is=-7169;function ke(e,t){e.f=e.f&is|t}const ao=new Set,Fr=new Set;function os(e,t,n,r={}){function i(o){if(r.capture||jn.call(t,o),!o.cancelBubble)return or(()=>n==null?void 0:n.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ln(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function st(e,t,n,r,i){var o={capture:r,passive:i},l=os(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Lr(()=>{t.removeEventListener(e,l,o)})}function ur(e){for(var t=0;t<e.length;t++)ao.add(e[t]);for(var n of Fr)n(e)}let so=null;function jn(e){var m;var t=this,n=t.ownerDocument,r=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],o=i[0]||e.target;so=e;var l=0,c=so===e&&e.__root;if(c){var s=i.indexOf(c);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;s<=u&&(l=s)}if(o=i[l]||e.target,o!==t){ra(e,"currentTarget",{configurable:!0,get(){return o||n}});var v=V,g=X;Re(null),at(null);try{for(var f,d=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+r];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(x){f?d.push(x):f=x}if(e.cancelBubble||y===t||y===null)break;o=y}if(f){for(let x of d)queueMicrotask(()=>{throw x});throw f}}finally{e.__root=t,delete e.currentTarget,Re(v),at(g)}}}function lo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function hn(e,t){var n=X;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function L(e,t){var n=(t&mi)!==0,r=(t&ea)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=lo(o?e:"<!>"+e),n||(i=yt(i)));var l=r||Li?document.importNode(i,!0):i.cloneNode(!0);if(n){var c=yt(l),s=l.lastChild;hn(c,s)}else hn(l,l);return l}}function as(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&mi)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,l;return()=>{if(!l){var c=lo(o),s=yt(c);if(i)for(l=document.createDocumentFragment();yt(s);)l.appendChild(yt(s));else l=yt(s)}var u=l.cloneNode(!0);if(i){var v=yt(u),g=u.lastChild;hn(v,g)}else hn(u,u);return u}}function Pt(e,t){return as(e,t,"svg")}function At(e=""){{var t=_t(e+"");return hn(t,t),t}}function Xe(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_t();return e.append(t,n),hn(t,n),e}function k(e,t){e!==null&&e.before(t)}const ss=["touchstart","touchmove"];function ls(e){return ss.includes(e)}function j(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function cs(e,t){return us(e,t)}const vn=new Map;function us(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){Va();var c=new Set,s=g=>{for(var f=0;f<g.length;f++){var d=g[f];if(!c.has(d)){c.add(d);var y=ls(d);t.addEventListener(d,jn,{passive:y});var p=vn.get(d);p===void 0?(document.addEventListener(d,jn,{passive:y}),vn.set(d,1)):vn.set(d,p+1)}}};s(Tr(ao)),Fr.add(s);var u=void 0,v=Ja(()=>{var g=n??t.appendChild(_t());return Wa(g,{pending:()=>{}},f=>{if(o){nt({});var d=fe;d.c=o}i&&(r.$$events=i),u=e(f,r)||{},o&&rt()}),()=>{var y;for(var f of c){t.removeEventListener(f,jn);var d=vn.get(f);--d===0?(document.removeEventListener(f,jn),vn.delete(f)):vn.set(f,d)}Fr.delete(s),g!==n&&((y=g.parentNode)==null||y.removeChild(g))}});return ds.set(u,v),u}let ds=new WeakMap;class co{constructor(t,n=!0){ht(this,"anchor");U(this,$e,new Map);U(this,ft,new Map);U(this,je,new Map);U(this,Xt,new Set);U(this,Vn,!0);U(this,Gn,()=>{var t=Q;if(h(this,$e).has(t)){var n=h(this,$e).get(t),r=h(this,ft).get(n);if(r)qr(r),h(this,Xt).delete(n);else{var i=h(this,je).get(n);i&&(h(this,ft).set(n,i.effect),h(this,je).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of h(this,$e)){if(h(this,$e).delete(o),o===t)break;const c=h(this,je).get(l);c&&(De(c.effect),h(this,je).delete(l))}for(const[o,l]of h(this,ft)){if(o===n||h(this,Xt).has(o))continue;const c=()=>{if(Array.from(h(this,$e).values()).includes(o)){var u=document.createDocumentFragment();Qi(l,u),u.append(_t()),h(this,je).set(o,{effect:l,fragment:u})}else De(l);h(this,Xt).delete(o),h(this,ft).delete(o)};h(this,Vn)||!r?(h(this,Xt).add(o),fn(l,c,!1)):c()}}});U(this,wr,t=>{h(this,$e).delete(t);const n=Array.from(h(this,$e).values());for(const[r,i]of h(this,je))n.includes(r)||(De(i.effect),h(this,je).delete(r))});this.anchor=t,N(this,Vn,n)}ensure(t,n){var r=Q,i=qi();if(n&&!h(this,ft).has(t)&&!h(this,je).has(t))if(i){var o=document.createDocumentFragment(),l=_t();o.append(l),h(this,je).set(t,{effect:Ve(()=>n(l)),fragment:o})}else h(this,ft).set(t,Ve(()=>n(this.anchor)));if(h(this,$e).set(r,t),i){for(const[c,s]of h(this,ft))c===t?r.skipped_effects.delete(s):r.skipped_effects.add(s);for(const[c,s]of h(this,je))c===t?r.skipped_effects.delete(s.effect):r.skipped_effects.add(s.effect);r.oncommit(h(this,Gn)),r.ondiscard(h(this,wr))}else h(this,Gn).call(this)}}$e=new WeakMap,ft=new WeakMap,je=new WeakMap,Xt=new WeakMap,Vn=new WeakMap,Gn=new WeakMap,wr=new WeakMap;function Ur(e){fe===null&&fa(),an&&fe.l!==null?fs(fe).m.push(e):Bn(()=>{const t=On(e);if(typeof t=="function")return t})}function fs(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function H(e,t,n=!1){var r=new co(e),i=n?Lt:0;function o(l,c){r.ensure(l,c)}sr(()=>{var l=!1;t((c,s=!0)=>{l=!0,o(s,c)}),l||o(!1,null)},i)}function uo(e,t,n,r,i){var c;var o=(c=t.$$slots)==null?void 0:c[n],l=!1;o===!0&&(o=t.children,l=!0),o===void 0||o(e,l?()=>r:r)}function fo(e,t,n){var r=new co(e);sr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Lt)}function lt(e,t){Hi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ho(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ho(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ho(e))&&(r&&(r+=" "),r+=t);return r}function pn(e){return typeof e=="object"?hs(e):e??""}function vs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function It(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var c=vs(n,r);c==null?e.removeAttribute("class"):t?e.className=c:e.setAttribute("class",c),e.__className=n}return o}function vo(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Er(t))return ka();for(var r of e.options)r.selected=t.includes(po(r));return}for(r of e.options){var i=po(r);if(Ha(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ps(e){var t=new MutationObserver(()=>{vo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Lr(()=>{t.disconnect()})}function po(e){return"__value"in e?e.__value:e.value}const gs=Symbol("is custom element"),ms=Symbol("is html");function ws(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function D(e,t,n,r){var i=_s(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[da]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ys(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _s(e){return e.__attributes??(e.__attributes={[gs]:e.nodeName.includes("-"),[ms]:e.namespaceURI===ta})}var go=new Map;function ys(e){var t=e.getAttribute("is")||e.nodeName,n=go.get(t);if(n)return n;go.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=ia(i);for(var l in r)r[l].set&&n.push(l);i=wi(i)}return n}function bs(e,t,n=t){var r=new WeakSet;Ya(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Hr(e)?Vr(o):o,n(o),Q!==null&&r.add(Q),await rs(),o!==(o=t())){var l=e.selectionStart,c=e.selectionEnd,s=e.value.length;if(e.value=o??"",c!==null){var u=e.value.length;l===c&&c===s&&u>s?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=l,e.selectionEnd=Math.min(c,u))}}}),On(t)==null&&e.value&&(n(Hr(e)?Vr(e.value):e.value),Q!==null&&r.add(Q)),Or(()=>{var i=t();if(e===document.activeElement){var o=tr??Q;if(r.has(o))return}Hr(e)&&i===Vr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Hr(e){var t=e.type;return t==="number"||t==="range"}function Vr(e){return e===""?null:+e}function mo(e,t){return e===t||(e==null?void 0:e[jt])===t}function xs(e={},t,n,r){return Hi(()=>{var i,o;return Or(()=>{i=o,o=[],On(()=>{e!==n(...o)&&(t(e,...o),i&&mo(n(...i),e)&&t(null,...i))})}),()=>{ln(()=>{o&&mo(n(...o),e)&&t(null,...o)})}}),e}let dr=!1;function ks(e){var t=dr;try{return dr=!1,[e(),dr]}finally{dr=t}}function ze(e,t,n,r){var O;var i=!an||(n&Qo)!==0,o=(n&Xo)!==0,l=(n&$o)!==0,c=r,s=!0,u=()=>(s&&(s=!1,c=l?On(r):r),c),v;if(o){var g=jt in e||ua in e;v=((O=nn(e,t))==null?void 0:O.set)??(g&&t in e?_=>e[t]=_:void 0)}var f,d=!1;o?[f,d]=ks(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=u(),v&&(i&&wa(),v(f)));var y;if(i?y=()=>{var _=e[t];return _===void 0?u():(s=!0,_)}:y=()=>{var _=e[t];return _!==void 0&&(c=void 0),_===void 0?c:_},i&&!(n&Jo))return y;if(v){var p=e.$$legacy;return function(_,E){return arguments.length>0?((!i||!E||p||d)&&v(E?y():_),_):y()}}var m=!1,x=(n&Zo?ir:Br)(()=>(m=!1,y()));o&&a(x);var A=X;return function(_,E){if(arguments.length>0){const P=E?a(x):i&&o?He(_):_;return w(x,P),m=!0,c!==void 0&&(c=P),_}return Ht&&m||A.f&mt?x.v:a(x)}}const wo="wineater_consent",Ss=["wineater_uid","uniqueUserID","sessionID"];function Cs(){try{const e=window.localStorage.getItem(wo);return e==="granted"||e==="denied"?e:null}catch{return null}}let Gr=Y(He(Cs())),fr=Y(null);function Es(e){w(fr,e,!0)}function _o(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(fr)===!0}function Ts(){return a(fr)!==null&&_o()&&a(Gr)===null}function yo(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.tracking)===!1||a(fr)===null?!1:_o()?a(Gr)==="granted":!0}function Ps(){for(const e of Ss){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Kr=new Set;function As(e){return Kr.add(e),()=>Kr.delete(e)}function bo(e){w(Gr,e,!0);try{window.localStorage.setItem(wo,e)}catch{}e==="denied"&&Ps();for(const t of Kr)t(e)}function xo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Yr(e,t,n){let r="";if(n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function Zr(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function Is(){const e="uniqueUserID";let t=Zr(e);return t||(t=xo(),Yr(e,t,365)),t}function Le(e,t,n={},r={}){const i="https://admin-api.wineater.com/api/widget-events",o=new Date().toISOString(),l=navigator.language.split("-")[1]||null,c=navigator.language.split("-")[0]||"en";if(!yo()){const f={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:l,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f),keepalive:!0}).catch(d=>{console.debug("[wineater] anonymous event failed:",d==null?void 0:d.message)})}let s=Zr("uniqueUserID");s||(s=Is());const u={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let v=Zr("sessionID");v||(v=xo(),Yr("sessionID",v,1));const g={event_type:e,store_id:t,session_id:v,event_time:o,data:n,meta:{...r,user_id:s},device_info:u,region:l,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then(f=>f.ok?f.json():f.json().then(d=>{throw new Error(d.message||"Failed to track widget event")})).catch(f=>{throw console.error("Widget event tracking error:",f),f})}function Ds(e){return{id:String(e.ID),appellation:e.Appellation||null,country:e.Country||null,grape:e.Grape,image:e.Image,price:Number(e.Price),producer:e.Producer||null,region:e.Region,score:e.Score?Number(e.Score):null,shortDescription:e["Short Description"]||null,store:e.Store,storeId:e.Store_id||null,tags:Array.isArray(e.Tags)?e.Tags.map(String):[],title:e.Title,type:e.Type,url:e.Url||null,vintage:e.Vintage?Number(e.Vintage):null,pairingRecommendation:e.pairing_recommendation||null,total:e.Total?Number(e.Total):null,itemId:e.item_id||null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function hr(e){return{id:String(e.id),title:String(e.title),description:String(e.description),region:String(e.region),price:Number(e.price),grape:String(e.grape),appellation:e.appellation?String(e.appellation):null,url:e.url?String(e.url):null,store:String(e.store),storeId:e.storeId?String(e.storeId):null,image:String(e.image),country:e.country?String(e.country):null,vintage:e.vintage?Number(e.vintage):null,tags:Array.isArray(e.tags)?e.tags.map(String):[],score:e.score?Number(e.score):null,total:e.total?Number(e.total):null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,distance:Number(e.distance),reason:String(e.reason),type:String(e.type),byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function Rs(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(hr),hasMore:!!e.has_more}}const qn="wineater_uid",Ws=365;let vr=null;function ko(){const e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);if(e!=null&&e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<16;r++)t[r]=Math.random()*256|0;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const So=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Co(e){try{const t=e+"=";for(const n of document.cookie.split(";")){const r=n.trim();if(r.startsWith(t))return decodeURIComponent(r.slice(t.length))}}catch{}return null}function Ms(e,t){try{const n=new Date(Date.now()+Ws*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function Eo(){return yo()}As(e=>{e==="denied"&&(vr=null)});function Qr(){if(!Eo())return null;if(vr)return vr;let e=null;try{e=window.localStorage.getItem(qn)}catch{}(!e||!So.test(e))&&(e=Co(qn)),(!e||!So.test(e))&&(e=ko());try{window.localStorage.setItem(qn,e)}catch{}return Co(qn)!==e&&Ms(qn,e),vr=e,e}function To(){return ko()}const Bs=2e3,Po=100;let pr=null,gn=[],Fn=null,Ao=!1;function Ns(e){pr=e,!(Ao||typeof document>"u")&&(Ao=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Un()}),window.addEventListener("pagehide",()=>void Un()))}function mn(e){var t;if(!(!Eo()||!pr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(gn.push(e),gn.length>=Po){Un();return}Fn||(Fn=setTimeout(()=>void Un(),Bs))}}async function Un(){if(Fn&&(clearTimeout(Fn),Fn=null),!pr||gn.length===0)return;const e=Qr();if(!e){gn=[];return}const t=gn.splice(0,Po);try{await pr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n==null?void 0:n.message)}gn.length>0&&Un()}const zs="X-Wineater-Uid";class Ls{constructor(t,n="1"){U(this,Me);U(this,kn,"https://api.wineater.com/");U(this,Kn);U(this,$t);U(this,Sn,!1);N(this,Kn,t),N(this,$t,n)}async getInstantRecommendations(){try{const t=h(this,$t)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:n,headers:r}=await Z(this,Me,gi).call(this,t,{});return{wines:n.filter(Boolean).map(Ds),profileHash:r.get("X-Wineater-Profile")||null}}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,$t)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await Z(this,Me,An).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(hr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(h(this,$t)!=="2")return i();let o;try{o=await fetch(`${h(this,kn)}dish/recommendations/search/v2/stream`,{method:"POST",headers:Z(this,Me,pi).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return i()}if(!o.ok||!o.body)return i();const l=o.body.getReader(),c=new TextDecoder;let s="",u=null;const v=g=>(g??[]).filter(Boolean).map(hr);try{for(;;){const{done:g,value:f}=await l.read();f&&(s+=c.decode(f,{stream:!0}));const d=s.split(`
|
|
1
|
+
(function($,ee){typeof exports=="object"&&typeof module<"u"?module.exports=ee():typeof define=="function"&&define.amd?define(ee):($=typeof globalThis<"u"?globalThis:$||self,$.WineaterChatbot=ee())})(this,function(){"use strict";var xc=Object.defineProperty;var Ho=$=>{throw TypeError($)};var kc=($,ee,de)=>ee in $?xc($,ee,{enumerable:!0,configurable:!0,writable:!0,value:de}):$[ee]=de;var ht=($,ee,de)=>kc($,typeof ee!="symbol"?ee+"":ee,de),ui=($,ee,de)=>ee.has($)||Ho("Cannot "+de);var h=($,ee,de)=>(ui($,ee,"read from private field"),de?de.call($):ee.get($)),U=($,ee,de)=>ee.has($)?Ho("Cannot add the same private member more than once"):ee instanceof WeakSet?ee.add($):ee.set($,de),N=($,ee,de,In)=>(ui($,ee,"write to private field"),In?In.call($,de):ee.set($,de),de),Z=($,ee,de)=>(ui($,ee,"access private method"),de);var zo,_n,yn,Kt,Yt,Hn,bn,xn,pe,di,tn,fi,Vo,Go,Ke,Ye,ri,ct,Zt,ut,Ze,We,dt,xt,Dt,Qt,Rt,Jt,Wt,mr,_e,Sc,Cc,hi,kr,Sr,vi,$e,ft,je,Xt,Vn,Gn,wr,kn,Kn,$t,Sn,Me,pi,An,gi,Lo,Oo;const $="5";typeof window<"u"&&((zo=window.__svelte??(window.__svelte={})).v??(zo.v=new Set)).add($);const ee=1,de=2,In=4,Ko=8,Yo=16,Zo=1,Qo=2,Jo=4,Xo=8,$o=16,mi=1,ea=2,be=Symbol(),ta="http://www.w3.org/1999/xhtml",Cr=!1;var Er=Array.isArray,na=Array.prototype.indexOf,Tr=Array.from,ra=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ia=Object.getOwnPropertyDescriptors,oa=Object.prototype,aa=Array.prototype,wi=Object.getPrototypeOf,_i=Object.isExtensible;function sa(e){for(var t=0;t<e.length;t++)e[t]()}function yi(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}function la(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const ye=2,Pr=4,Ar=8,vt=16,pt=32,zt=64,$n=128,Qe=512,xe=1024,Ie=2048,gt=4096,Be=8192,mt=16384,Ir=32768,Lt=65536,bi=1<<17,xi=1<<18,rn=1<<19,ca=1<<20,Ot=32768,Dr=1<<21,Rr=1<<22,St=1<<23,jt=Symbol("$state"),ua=Symbol("legacy props"),da=Symbol(""),on=new class extends Error{constructor(){super(...arguments);ht(this,"name","StaleReactionError");ht(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function fa(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ha(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function va(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ga(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ma(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wa(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _a(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ya(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ba(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ka(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Sa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ki(e){return e===this.v}function Ca(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Si(e){return!Ca(e,this.v)}let an=!1,Ea=!1;function Ta(){an=!0}let fe=null;function sn(e){fe=e}function nt(e,t=!1,n){fe={p:fe,i:!1,c:null,e:null,s:e,x:null,l:an&&!t?{s:null,u:null,$:[]}:null}}function rt(e){var t=fe,n=t.e;if(n!==null){t.e=null;for(var r of n)Ui(r)}return e!==void 0&&(t.x=e),t.i=!0,fe=t.p,e??{}}function Dn(){return!an||fe!==null&&fe.l===null}let qt=[];function Ci(){var e=qt;qt=[],sa(e)}function ln(e){if(qt.length===0&&!Rn){var t=qt;queueMicrotask(()=>{t===qt&&Ci()})}qt.push(e)}function Pa(){for(;qt.length>0;)Ci()}function Ei(e){var t=X;if(t===null)return V.f|=St,e;if(t.f&Ir)cn(e,t);else{if(!(t.f&$n))throw e;t.b.error(e)}}function cn(e,t){for(;t!==null;){if(t.f&$n)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const er=new Set;let Q=null,tr=null,he=null,Ue=[],nr=null,Wr=!1,Rn=!1;const gr=class gr{constructor(){U(this,pe);ht(this,"committed",!1);ht(this,"current",new Map);ht(this,"previous",new Map);U(this,_n,new Set);U(this,yn,new Set);U(this,Kt,0);U(this,Yt,0);U(this,Hn,null);U(this,bn,[]);U(this,xn,[]);ht(this,"skipped_effects",new Set);ht(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,Yt)>0}process(t){var r;Ue=[],tr=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of t)Z(this,pe,di).call(this,i,n);this.is_fork||Z(this,pe,Vo).call(this),this.is_deferred()?(Z(this,pe,tn).call(this,n.effects),Z(this,pe,tn).call(this,n.render_effects),Z(this,pe,tn).call(this,n.block_effects)):(tr=this,Q=null,Pi(n.render_effects),Pi(n.effects),tr=null,(r=h(this,Hn))==null||r.resolve()),he=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),t.f&St||(this.current.set(t,t.v),he==null||he.set(t,t.v))}activate(){Q=this,this.apply()}deactivate(){Q===this&&(Q=null,he=null)}flush(){if(this.activate(),Ue.length>0){if(Ti(),Q!==null&&Q!==this)return}else h(this,Kt)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,yn))t(this);h(this,yn).clear()}increment(t){N(this,Kt,h(this,Kt)+1),t&&N(this,Yt,h(this,Yt)+1)}decrement(t){N(this,Kt,h(this,Kt)-1),t&&N(this,Yt,h(this,Yt)-1),this.revive()}revive(){for(const t of h(this,bn))ke(t,Ie),Ft(t);for(const t of h(this,xn))ke(t,gt),Ft(t);N(this,bn,[]),N(this,xn,[]),this.flush()}oncommit(t){h(this,_n).add(t)}ondiscard(t){h(this,yn).add(t)}settled(){return(h(this,Hn)??N(this,Hn,yi())).promise}static ensure(){if(Q===null){const t=Q=new gr;er.add(Q),Rn||gr.enqueue(()=>{Q===t&&t.flush()})}return Q}static enqueue(t){ln(t)}apply(){}};_n=new WeakMap,yn=new WeakMap,Kt=new WeakMap,Yt=new WeakMap,Hn=new WeakMap,bn=new WeakMap,xn=new WeakMap,pe=new WeakSet,di=function(t,n){var v;t.f^=xe;for(var r=t.first;r!==null;){var i=r.f,o=(i&(pt|zt))!==0,l=o&&(i&xe)!==0,c=l||(i&Be)!==0||this.skipped_effects.has(r);if(r.f&$n&&((v=r.b)!=null&&v.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!c&&r.fn!==null){o?r.f^=xe:i&Pr?n.effects.push(r):zn(r)&&(r.f&vt&&n.block_effects.push(r),Ln(r));var s=r.first;if(s!==null){r=s;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(Z(this,pe,tn).call(this,n.effects),Z(this,pe,tn).call(this,n.render_effects),Z(this,pe,tn).call(this,n.block_effects),n=n.parent),r=u.next,u=u.parent}},tn=function(t){for(const n of t)(n.f&Ie?h(this,bn):h(this,xn)).push(n),Z(this,pe,fi).call(this,n.deps),ke(n,xe)},fi=function(t){if(t!==null)for(const n of t)!(n.f&ye)||!(n.f&Ot)||(n.f^=Ot,Z(this,pe,fi).call(this,n.deps))},Vo=function(){if(h(this,Yt)===0){for(const t of h(this,_n))t();h(this,_n).clear()}h(this,Kt)===0&&Z(this,pe,Go).call(this)},Go=function(){var o;if(er.size>1){this.previous.clear();var t=he,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of er){if(l===this){n=!1;continue}const c=[];for(const[u,v]of this.current){if(l.current.has(u))if(n&&v!==l.current.get(u))l.current.set(u,v);else continue;c.push(u)}if(c.length===0)continue;const s=[...l.current.keys()].filter(u=>!this.current.has(u));if(s.length>0){var i=Ue;Ue=[];const u=new Set,v=new Map;for(const g of c)Ai(g,s,u,v);if(Ue.length>0){Q=l,l.apply();for(const g of Ue)Z(o=l,pe,di).call(o,g,r);l.deactivate()}Ue=i}}Q=null,he=t}this.committed=!0,er.delete(this)};let wt=gr;function Aa(e){var t=Rn;Rn=!0;try{for(var n;;){if(Pa(),Ue.length===0&&(Q==null||Q.flush(),Ue.length===0))return nr=null,n;Ti()}}finally{Rn=t}}function Ti(){var e=Tt;Wr=!0;var t=null;try{var n=0;for(lr(!0);Ue.length>0;){var r=wt.ensure();if(n++>1e3){var i,o;Ia()}r.process(Ue),Et.clear()}}finally{Wr=!1,lr(e),nr=null}}function Ia(){try{ma()}catch(e){cn(e,nr)}}let Je=null;function Pi(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&(mt|Be))&&zn(r)&&(Je=new Set,Ln(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ki(r):r.fn=null),(Je==null?void 0:Je.size)>0)){Et.clear();for(const i of Je){if(i.f&(mt|Be))continue;const o=[i];let l=i.parent;for(;l!==null;)Je.has(l)&&(Je.delete(l),o.push(l)),l=l.parent;for(let c=o.length-1;c>=0;c--){const s=o[c];s.f&(mt|Be)||Ln(s)}}Je.clear()}}Je=null}}function Ai(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;o&ye?Ai(i,t,n,r):o&(Rr|vt)&&!(o&Ie)&&Ii(i,t,r)&&(ke(i,Ie),Ft(i))}}function Ii(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&ye&&Ii(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ft(e){for(var t=nr=e;t.parent!==null;){t=t.parent;var n=t.f;if(Wr&&t===X&&n&vt&&!(n&xi))return;if(n&(zt|pt)){if(!(n&xe))return;t.f^=xe}}Ue.push(t)}function Da(e){let t=0,n=Ut(0),r;return()=>{ar()&&(a(n),Or(()=>(t===0&&(r=On(()=>e(()=>Wn(n)))),t+=1,()=>{ln(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Wn(n))})})))}}var Ra=Lt|rn|$n;function Wa(e,t,n){new Ma(e,t,n)}class Ma{constructor(t,n,r){U(this,_e);ht(this,"parent");U(this,Ke,!1);U(this,Ye);U(this,ri,null);U(this,ct);U(this,Zt);U(this,ut);U(this,Ze,null);U(this,We,null);U(this,dt,null);U(this,xt,null);U(this,Dt,null);U(this,Qt,0);U(this,Rt,0);U(this,Jt,!1);U(this,Wt,null);U(this,mr,Da(()=>(N(this,Wt,Ut(h(this,Qt))),()=>{N(this,Wt,null)})));N(this,Ye,t),N(this,ct,n),N(this,Zt,r),this.parent=X.b,N(this,Ke,!!h(this,ct).pending),N(this,ut,sr(()=>{X.b=this;{var i=Z(this,_e,hi).call(this);try{N(this,Ze,Ve(()=>r(i)))}catch(o){this.error(o)}h(this,Rt)>0?Z(this,_e,Sr).call(this):N(this,Ke,!1)}return()=>{var o;(o=h(this,Dt))==null||o.remove()}},Ra))}is_pending(){return h(this,Ke)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!h(this,ct).pending}update_pending_count(t){Z(this,_e,vi).call(this,t),N(this,Qt,h(this,Qt)+t),h(this,Wt)&&dn(h(this,Wt),h(this,Qt))}get_effect_pending(){return h(this,mr).call(this),a(h(this,Wt))}error(t){var n=h(this,ct).onerror;let r=h(this,ct).failed;if(h(this,Jt)||!n&&!r)throw t;h(this,Ze)&&(De(h(this,Ze)),N(this,Ze,null)),h(this,We)&&(De(h(this,We)),N(this,We,null)),h(this,dt)&&(De(h(this,dt)),N(this,dt,null));var i=!1,o=!1;const l=()=>{if(i){Sa();return}i=!0,o&&xa(),wt.ensure(),N(this,Qt,0),h(this,dt)!==null&&fn(h(this,dt),()=>{N(this,dt,null)}),N(this,Ke,this.has_pending_snippet()),N(this,Ze,Z(this,_e,kr).call(this,()=>(N(this,Jt,!1),Ve(()=>h(this,Zt).call(this,h(this,Ye)))))),h(this,Rt)>0?Z(this,_e,Sr).call(this):N(this,Ke,!1)};var c=V;try{Re(null),o=!0,n==null||n(t,l),o=!1}catch(s){cn(s,h(this,ut)&&h(this,ut).parent)}finally{Re(c)}r&&ln(()=>{N(this,dt,Z(this,_e,kr).call(this,()=>{wt.ensure(),N(this,Jt,!0);try{return Ve(()=>{r(h(this,Ye),()=>t,()=>l)})}catch(s){return cn(s,h(this,ut).parent),null}finally{N(this,Jt,!1)}}))})}}Ke=new WeakMap,Ye=new WeakMap,ri=new WeakMap,ct=new WeakMap,Zt=new WeakMap,ut=new WeakMap,Ze=new WeakMap,We=new WeakMap,dt=new WeakMap,xt=new WeakMap,Dt=new WeakMap,Qt=new WeakMap,Rt=new WeakMap,Jt=new WeakMap,Wt=new WeakMap,mr=new WeakMap,_e=new WeakSet,Sc=function(){try{N(this,Ze,Ve(()=>h(this,Zt).call(this,h(this,Ye))))}catch(t){this.error(t)}N(this,Ke,!1)},Cc=function(){const t=h(this,ct).pending;t&&(N(this,We,Ve(()=>t(h(this,Ye)))),wt.enqueue(()=>{var n=Z(this,_e,hi).call(this);N(this,Ze,Z(this,_e,kr).call(this,()=>(wt.ensure(),Ve(()=>h(this,Zt).call(this,n))))),h(this,Rt)>0?Z(this,_e,Sr).call(this):(fn(h(this,We),()=>{N(this,We,null)}),N(this,Ke,!1))}))},hi=function(){var t=h(this,Ye);return h(this,Ke)&&(N(this,Dt,_t()),h(this,Ye).before(h(this,Dt)),t=h(this,Dt)),t},kr=function(t){var n=X,r=V,i=fe;at(h(this,ut)),Re(h(this,ut)),sn(h(this,ut).ctx);try{return t()}catch(o){return Ei(o),null}finally{at(n),Re(r),sn(i)}},Sr=function(){const t=h(this,ct).pending;h(this,Ze)!==null&&(N(this,xt,document.createDocumentFragment()),h(this,xt).append(h(this,Dt)),Qi(h(this,Ze),h(this,xt))),h(this,We)===null&&N(this,We,Ve(()=>t(h(this,Ye))))},vi=function(t){var n;if(!this.has_pending_snippet()){this.parent&&Z(n=this.parent,_e,vi).call(n,t);return}N(this,Rt,h(this,Rt)+t),h(this,Rt)===0&&(N(this,Ke,!1),h(this,We)&&fn(h(this,We),()=>{N(this,We,null)}),h(this,xt)&&(h(this,Ye).before(h(this,xt)),N(this,xt,null)))};function un(e,t){return t}function Ba(e,t,n){for(var r=[],i=t.length,o=0;o<i;o++)jr(t[o].e,r,!0);Yi(r,()=>{var l=r.length===0&&n!==null;if(l){var c=n,s=c.parentNode;Ga(s),s.append(c),e.items.clear(),it(e,t[0].prev,t[i-1].next)}for(var u=0;u<i;u++){var v=t[u];l||(e.items.delete(v.k),it(e,v.prev,v.next)),De(v.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function Ct(e,t,n,r,i,o=null){var l=e,c=new Map,s=null,u=(t&In)!==0,v=(t&ee)!==0,g=(t&de)!==0;if(u){var f=e;l=f.appendChild(_t())}var d=null,y=Br(()=>{var _=n();return Er(_)?_:_==null?[]:Tr(_)}),p,m=!0;function x(){Na(O,p,l,t,r),d!==null&&(p.length===0?(d.fragment?(l.before(d.fragment),d.fragment=null):qr(d.effect),A.first=d.effect):fn(d.effect,()=>{d=null}))}var A=sr(()=>{p=a(y);for(var _=p.length,E=new Set,P=Q,S=null,R=qi(),W=0;W<_;W+=1){var G=p[W],q=r(G,W),F=m?null:c.get(q);F?(v&&dn(F.v,G),g?dn(F.i,W):F.i=W,R&&P.skipped_effects.delete(F.e)):(F=za(m?l:null,S,G,q,W,i,t,n),m&&(F.o=!0,S===null?s=F:S.next=F,S=F),c.set(q,F)),E.add(q)}if(_===0&&o&&!d)if(m)d={fragment:null,effect:Ve(()=>o(l))};else{var ge=document.createDocumentFragment(),J=_t();ge.append(J),d={fragment:ge,effect:Ve(()=>o(J))}}if(!m)if(R){for(const[Se,ae]of c)E.has(Se)||P.skipped_effects.add(ae.e);P.oncommit(x),P.ondiscard(()=>{})}else x();a(y)}),O={effect:A,items:c,first:s};m=!1}function Na(e,t,n,r,i){var G,q,F,ge;var o=(r&Ko)!==0,l=t.length,c=e.items,s=e.first,u,v=null,g,f=[],d=[],y,p,m,x;if(o)for(x=0;x<l;x+=1)y=t[x],p=i(y,x),m=c.get(p),(G=m.a)==null||G.measure(),(g??(g=new Set)).add(m);for(x=0;x<l;x+=1){if(y=t[x],p=i(y,x),m=c.get(p),e.first??(e.first=m),!m.o){m.o=!0;var A=v?v.next:s;it(e,v,m),it(e,m,A),Mr(m,A,n),v=m,f=[],d=[],s=v.next;continue}if(m.e.f&Be&&(qr(m.e),o&&((q=m.a)==null||q.unfix(),(g??(g=new Set)).delete(m))),m!==s){if(u!==void 0&&u.has(m)){if(f.length<d.length){var O=d[0],_;v=O.prev;var E=f[0],P=f[f.length-1];for(_=0;_<f.length;_+=1)Mr(f[_],O,n);for(_=0;_<d.length;_+=1)u.delete(d[_]);it(e,E.prev,P.next),it(e,v,E),it(e,P,O),s=O,v=P,x-=1,f=[],d=[]}else u.delete(m),Mr(m,s,n),it(e,m.prev,m.next),it(e,m,v===null?e.first:v.next),it(e,v,m),v=m;continue}for(f=[],d=[];s!==null&&s.k!==p;)s.e.f&Be||(u??(u=new Set)).add(s),d.push(s),s=s.next;if(s===null)continue;m=s}f.push(m),v=m,s=m.next}if(s!==null||u!==void 0){for(var S=u===void 0?[]:Tr(u);s!==null;)s.e.f&Be||S.push(s),s=s.next;var R=S.length;if(R>0){var W=r&In&&l===0?n:null;if(o){for(x=0;x<R;x+=1)(F=S[x].a)==null||F.measure();for(x=0;x<R;x+=1)(ge=S[x].a)==null||ge.fix()}Ba(e,S,W)}}o&&ln(()=>{var J;if(g!==void 0)for(m of g)(J=m.a)==null||J.apply()})}function za(e,t,n,r,i,o,l,c){var s=(l&ee)!==0,u=(l&Yo)===0,v=s?u?Fa(n,!1,!1):Ut(n):n,g=l&de?Ut(i):i,f={i:g,v,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=_t())}return f.e=Ve(()=>o(e,v,g,c)),t!==null&&(t.next=f),f}finally{}}function Mr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==null&&o!==r;){var l=Mn(o);i.before(o),o=l}}function it(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function La(e,t,n,r){const i=Dn()?ir:Br;if(n.length===0&&e.length===0){r(t.map(i));return}var o=Q,l=X,c=Oa();function s(){Promise.all(n.map(u=>ja(u))).then(u=>{c();try{r([...t.map(i),...u])}catch(v){l.f&mt||cn(v,l)}o==null||o.deactivate(),rr()}).catch(u=>{cn(u,l)})}e.length>0?Promise.all(e).then(()=>{c();try{return s()}finally{o==null||o.deactivate(),rr()}}):s()}function Oa(){var e=X,t=V,n=fe,r=Q;return function(o=!0){at(e),Re(t),sn(n),o&&(r==null||r.activate())}}function rr(){at(null),Re(null),sn(null)}function ir(e){var t=ye|Ie,n=V!==null&&V.f&ye?V:null;return X!==null&&(X.f|=rn),{ctx:fe,deps:null,effects:null,equals:ki,f:t,fn:e,reactions:null,rv:0,v:be,wv:0,parent:n??X,ac:null}}function ja(e,t){let n=X;n===null&&ha();var r=n.b,i=void 0,o=Ut(be),l=!V,c=new Map;return Xa(()=>{var f;var s=yi();i=s.promise;try{Promise.resolve(e()).then(s.resolve,s.reject).then(()=>{u===Q&&u.committed&&u.deactivate(),rr()})}catch(d){s.reject(d),rr()}var u=Q;if(l){var v=!r.is_pending();r.update_pending_count(1),u.increment(v),(f=c.get(u))==null||f.reject(on),c.delete(u),c.set(u,s)}const g=(d,y=void 0)=>{if(u.activate(),y)y!==on&&(o.f|=St,dn(o,y));else{o.f&St&&(o.f^=St),dn(o,d);for(const[p,m]of c){if(c.delete(p),p===u)break;m.reject(on)}}l&&(r.update_pending_count(-1),u.decrement(v))};s.promise.then(g,d=>g(null,d||"unknown"))}),Lr(()=>{for(const s of c.values())s.reject(on)}),new Promise(s=>{function u(v){function g(){v===i?s(o):u(i)}v.then(g,g)}u(i)})}function re(e){const t=ir(e);return Xi(t),t}function Br(e){const t=ir(e);return t.equals=Si,t}function Di(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)De(t[n])}}function qa(e){for(var t=e.parent;t!==null;){if(!(t.f&ye))return t.f&mt?null:t;t=t.parent}return null}function Nr(e){var t,n=X;at(qa(e));try{e.f&=~Ot,Di(e),t=ro(e)}finally{at(n)}return t}function Ri(e){var t=Nr(e);if(e.equals(t)||(Q!=null&&Q.is_fork||(e.v=t),e.wv=to()),!Ht)if(he!==null)ar()&&he.set(e,t);else{var n=e.f&Qe?xe:gt;ke(e,n)}}let zr=new Set;const Et=new Map;let Wi=!1;function Ut(e,t){var n={f:0,v:e,reactions:null,equals:ki,rv:0,wv:0};return n}function Y(e,t){const n=Ut(e);return Xi(n),n}function Fa(e,t=!1,n=!0){var i;const r=Ut(e);return t||(r.equals=Si),an&&n&&fe!==null&&fe.l!==null&&((i=fe.l).s??(i.s=[])).push(r),r}function w(e,t,n=!1){V!==null&&(!ot||V.f&bi)&&Dn()&&V.f&(ye|vt|Rr|bi)&&!(Ce!=null&&Ce.includes(e))&&ba();let r=n?He(t):t;return dn(e,r)}function dn(e,t){if(!e.equals(t)){var n=e.v;Ht?Et.set(e,t):Et.set(e,n),e.v=t;var r=wt.ensure();r.capture(e,n),e.f&ye&&(e.f&Ie&&Nr(e),ke(e,e.f&Qe?xe:gt)),e.wv=to(),Bi(e,Ie),Dn()&&X!==null&&X.f&xe&&!(X.f&(pt|zt))&&(Ge===null?ts([e]):Ge.push(e)),!r.is_fork&&zr.size>0&&!Wi&&Ua()}return t}function Ua(){Wi=!1;var e=Tt;lr(!0);const t=Array.from(zr);try{for(const n of t)n.f&xe&&ke(n,gt),zn(n)&&Ln(n)}finally{lr(e)}zr.clear()}function Mi(e,t=1){var n=a(e),r=t===1?n++:n--;return w(e,n),r}function Wn(e){w(e,e.v+1)}function Bi(e,t){var n=e.reactions;if(n!==null)for(var r=Dn(),i=n.length,o=0;o<i;o++){var l=n[o],c=l.f;if(!(!r&&l===X)){var s=(c&Ie)===0;if(s&&ke(l,t),c&ye){var u=l;he==null||he.delete(u),c&Ot||(c&Qe&&(l.f|=Ot),Bi(u,gt))}else s&&(c&vt&&Je!==null&&Je.add(l),Ft(l))}}}function He(e){if(typeof e!="object"||e===null||jt in e)return e;const t=wi(e);if(t!==oa&&t!==aa)return e;var n=new Map,r=Er(e),i=Y(0),o=Vt,l=c=>{if(Vt===o)return c();var s=V,u=Vt;Re(null),eo(o);var v=c();return Re(s),eo(u),v};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(c,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_a();var v=n.get(s);return v===void 0?v=l(()=>{var g=Y(u.value);return n.set(s,g),g}):w(v,u.value,!0),!0},deleteProperty(c,s){var u=n.get(s);if(u===void 0){if(s in c){const v=l(()=>Y(be));n.set(s,v),Wn(i)}}else w(u,be),Wn(i);return!0},get(c,s,u){var d;if(s===jt)return e;var v=n.get(s),g=s in c;if(v===void 0&&(!g||(d=nn(c,s))!=null&&d.writable)&&(v=l(()=>{var y=He(g?c[s]:be),p=Y(y);return p}),n.set(s,v)),v!==void 0){var f=a(v);return f===be?void 0:f}return Reflect.get(c,s,u)},getOwnPropertyDescriptor(c,s){var u=Reflect.getOwnPropertyDescriptor(c,s);if(u&&"value"in u){var v=n.get(s);v&&(u.value=a(v))}else if(u===void 0){var g=n.get(s),f=g==null?void 0:g.v;if(g!==void 0&&f!==be)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(c,s){var f;if(s===jt)return!0;var u=n.get(s),v=u!==void 0&&u.v!==be||Reflect.has(c,s);if(u!==void 0||X!==null&&(!v||(f=nn(c,s))!=null&&f.writable)){u===void 0&&(u=l(()=>{var d=v?He(c[s]):be,y=Y(d);return y}),n.set(s,u));var g=a(u);if(g===be)return!1}return v},set(c,s,u,v){var O;var g=n.get(s),f=s in c;if(r&&s==="length")for(var d=u;d<g.v;d+=1){var y=n.get(d+"");y!==void 0?w(y,be):d in c&&(y=l(()=>Y(be)),n.set(d+"",y))}if(g===void 0)(!f||(O=nn(c,s))!=null&&O.writable)&&(g=l(()=>Y(void 0)),w(g,He(u)),n.set(s,g));else{f=g.v!==be;var p=l(()=>He(u));w(g,p)}var m=Reflect.getOwnPropertyDescriptor(c,s);if(m!=null&&m.set&&m.set.call(v,u),!f){if(r&&typeof s=="string"){var x=n.get("length"),A=Number(s);Number.isInteger(A)&&A>=x.v&&w(x,A+1)}Wn(i)}return!0},ownKeys(c){a(i);var s=Reflect.ownKeys(c).filter(g=>{var f=n.get(g);return f===void 0||f.v!==be});for(var[u,v]of n)v.v!==be&&!(u in c)&&s.push(u);return s},setPrototypeOf(){ya()}})}function Ni(e){try{if(e!==null&&typeof e=="object"&&jt in e)return e[jt]}catch{}return e}function Ha(e,t){return Object.is(Ni(e),Ni(t))}var zi,Li,Oi,ji;function Va(){if(zi===void 0){zi=window,Li=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Oi=nn(t,"firstChild").get,ji=nn(t,"nextSibling").get,_i(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_i(n)&&(n.__t=void 0)}}function _t(e=""){return document.createTextNode(e)}function yt(e){return Oi.call(e)}function Mn(e){return ji.call(e)}function T(e,t){return yt(e)}function we(e,t=!1){{var n=yt(e);return n instanceof Comment&&n.data===""?Mn(n):n}}function I(e,t=1,n=!1){let r=e;for(;t--;)r=Mn(r);return r}function Ga(e){e.textContent=""}function qi(){return!1}let Fi=!1;function Ka(){Fi||(Fi=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function or(e){var t=V,n=X;Re(null),at(null);try{return e()}finally{Re(t),at(n)}}function Ya(e,t,n,r=n){e.addEventListener(t,()=>or(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Ka()}function Za(e){X===null&&(V===null&&ga(),pa()),Ht&&va()}function Qa(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function bt(e,t,n){var r=X;r!==null&&r.f&Be&&(e|=Be);var i={ctx:fe,deps:null,nodes_start:null,nodes_end:null,f:e|Ie|Qe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ln(i),i.f|=Ir}catch(c){throw De(i),c}else t!==null&&Ft(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&!(o.f&rn)&&(o=o.first,e&vt&&e&Lt&&o!==null&&(o.f|=Lt)),o!==null&&(o.parent=r,r!==null&&Qa(o,r),V!==null&&V.f&ye&&!(e&zt))){var l=V;(l.effects??(l.effects=[])).push(o)}return i}function ar(){return V!==null&&!ot}function Lr(e){const t=bt(Ar,null,!1);return ke(t,xe),t.teardown=e,t}function Bn(e){Za();var t=X.f,n=!V&&(t&pt)!==0&&(t&Ir)===0;if(n){var r=fe;(r.e??(r.e=[])).push(e)}else return Ui(e)}function Ui(e){return bt(Pr|ca,e,!1)}function Ja(e){wt.ensure();const t=bt(zt|rn,e,!0);return(n={})=>new Promise(r=>{n.outro?fn(t,()=>{De(t),r(void 0)}):(De(t),r(void 0))})}function Hi(e){return bt(Pr,e,!1)}function Xa(e){return bt(Rr|rn,e,!0)}function Or(e,t=0){return bt(Ar|t,e,!0)}function B(e,t=[],n=[],r=[]){La(r,t,n,i=>{bt(Ar,()=>e(...i.map(a)),!0)})}function sr(e,t=0){var n=bt(vt|t,e,!0);return n}function Ve(e){return bt(pt|rn,e,!0)}function Vi(e){var t=e.teardown;if(t!==null){const n=Ht,r=V;Ji(!0),Re(null);try{t.call(null)}finally{Ji(n),Re(r)}}}function Gi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&or(()=>{i.abort(on)});var r=n.next;n.f&zt?n.parent=null:De(n,t),n=r}}function $a(e){for(var t=e.first;t!==null;){var n=t.next;t.f&pt||De(t),t=n}}function De(e,t=!0){var n=!1;(t||e.f&xi)&&e.nodes_start!==null&&e.nodes_end!==null&&(es(e.nodes_start,e.nodes_end),n=!0),Gi(e,t&&!n),cr(e,0),ke(e,mt);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Vi(e);var i=e.parent;i!==null&&i.first!==null&&Ki(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function es(e,t){for(;e!==null;){var n=e===t?null:Mn(e);e.remove(),e=n}}function Ki(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function fn(e,t,n=!0){var r=[];jr(e,r,!0),Yi(r,()=>{n&&De(e),t&&t()})}function Yi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function jr(e,t,n){if(!(e.f&Be)){if(e.f^=Be,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Lt)!==0||(r.f&pt)!==0&&(e.f&vt)!==0;jr(r,t,o?n:!1),r=i}}}function qr(e){Zi(e,!0)}function Zi(e,t){if(e.f&Be){e.f^=Be,e.f&xe||(ke(e,Ie),Ft(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Lt)!==0||(n.f&pt)!==0;Zi(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}function Qi(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Mn(n);t.append(n),n=i}}let Tt=!1;function lr(e){Tt=e}let Ht=!1;function Ji(e){Ht=e}let V=null,ot=!1;function Re(e){V=e}let X=null;function at(e){X=e}let Ce=null;function Xi(e){V!==null&&(Ce===null?Ce=[e]:Ce.push(e))}let Ee=null,Ne=0,Ge=null;function ts(e){Ge=e}let $i=1,Nn=0,Vt=Nn;function eo(e){Vt=e}function to(){return++$i}function zn(e){var t=e.f;if(t&Ie)return!0;if(t&ye&&(e.f&=~Ot),t>){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(zn(o)&&Ri(o),o.wv>e.wv)return!0}t&Qe&&he===null&&ke(e,xe)}return!1}function no(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Ce!=null&&Ce.includes(e)))for(var i=0;i<r.length;i++){var o=r[i];o.f&ye?no(o,t,!1):t===o&&(n?ke(o,Ie):o.f&xe&&ke(o,gt),Ft(o))}}function ro(e){var y;var t=Ee,n=Ne,r=Ge,i=V,o=Ce,l=fe,c=ot,s=Vt,u=e.f;Ee=null,Ne=0,Ge=null,V=u&(pt|zt)?null:e,Ce=null,sn(e.ctx),ot=!1,Vt=++Nn,e.ac!==null&&(or(()=>{e.ac.abort(on)}),e.ac=null);try{e.f|=Dr;var v=e.fn,g=v(),f=e.deps;if(Ee!==null){var d;if(cr(e,Ne),f!==null&&Ne>0)for(f.length=Ne+Ee.length,d=0;d<Ee.length;d++)f[Ne+d]=Ee[d];else e.deps=f=Ee;if(Tt&&ar()&&e.f&Qe)for(d=Ne;d<f.length;d++)((y=f[d]).reactions??(y.reactions=[])).push(e)}else f!==null&&Ne<f.length&&(cr(e,Ne),f.length=Ne);if(Dn()&&Ge!==null&&!ot&&f!==null&&!(e.f&(ye|gt|Ie)))for(d=0;d<Ge.length;d++)no(Ge[d],e);return i!==null&&i!==e&&(Nn++,Ge!==null&&(r===null?r=Ge:r.push(...Ge))),e.f&St&&(e.f^=St),g}catch(p){return Ei(p)}finally{e.f^=Dr,Ee=t,Ne=n,Ge=r,V=i,Ce=o,sn(l),ot=c,Vt=s}}function ns(e,t){let n=t.reactions;if(n!==null){var r=na.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&ye&&(Ee===null||!Ee.includes(t))&&(ke(t,gt),t.f&Qe&&(t.f^=Qe,t.f&=~Ot),Di(t),cr(t,0))}function cr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ns(e,n[r])}function Ln(e){var t=e.f;if(!(t&mt)){ke(e,xe);var n=X,r=Tt;X=e,Tt=!0;try{t&vt?$a(e):Gi(e),Vi(e);var i=ro(e);e.teardown=typeof i=="function"?i:null,e.wv=$i;var o;Cr&&Ea&&e.f&Ie&&e.deps}finally{Tt=r,X=n}}}async function rs(){await Promise.resolve(),Aa()}function a(e){var t=e.f,n=(t&ye)!==0;if(V!==null&&!ot){var r=X!==null&&(X.f&mt)!==0;if(!r&&!(Ce!=null&&Ce.includes(e))){var i=V.deps;if(V.f&Dr)e.rv<Nn&&(e.rv=Nn,Ee===null&&i!==null&&i[Ne]===e?Ne++:Ee===null?Ee=[e]:Ee.includes(e)||Ee.push(e));else{(V.deps??(V.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[V]:o.includes(V)||o.push(V)}}}if(Ht){if(Et.has(e))return Et.get(e);if(n){var l=e,c=l.v;return(!(l.f&xe)&&l.reactions!==null||oo(l))&&(c=Nr(l)),Et.set(l,c),c}}else n&&!(he!=null&&he.has(e))&&(l=e,zn(l)&&Ri(l),Tt&&ar()&&!(l.f&Qe)&&io(l));if(he!=null&&he.has(e))return he.get(e);if(e.f&St)throw e.v;return e.v}function io(e){if(e.deps!==null){e.f^=Qe;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),t.f&ye&&!(t.f&Qe)&&io(t)}}function oo(e){if(e.v===be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Et.has(t)||t.f&ye&&oo(t))return!0;return!1}function On(e){var t=ot;try{return ot=!0,e()}finally{ot=t}}const is=-7169;function ke(e,t){e.f=e.f&is|t}const ao=new Set,Fr=new Set;function os(e,t,n,r={}){function i(o){if(r.capture||jn.call(t,o),!o.cancelBubble)return or(()=>n==null?void 0:n.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ln(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function st(e,t,n,r,i){var o={capture:r,passive:i},l=os(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Lr(()=>{t.removeEventListener(e,l,o)})}function ur(e){for(var t=0;t<e.length;t++)ao.add(e[t]);for(var n of Fr)n(e)}let so=null;function jn(e){var m;var t=this,n=t.ownerDocument,r=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],o=i[0]||e.target;so=e;var l=0,c=so===e&&e.__root;if(c){var s=i.indexOf(c);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;s<=u&&(l=s)}if(o=i[l]||e.target,o!==t){ra(e,"currentTarget",{configurable:!0,get(){return o||n}});var v=V,g=X;Re(null),at(null);try{for(var f,d=[];o!==null;){var y=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+r];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(x){f?d.push(x):f=x}if(e.cancelBubble||y===t||y===null)break;o=y}if(f){for(let x of d)queueMicrotask(()=>{throw x});throw f}}finally{e.__root=t,delete e.currentTarget,Re(v),at(g)}}}function lo(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function hn(e,t){var n=X;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function L(e,t){var n=(t&mi)!==0,r=(t&ea)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=lo(o?e:"<!>"+e),n||(i=yt(i)));var l=r||Li?document.importNode(i,!0):i.cloneNode(!0);if(n){var c=yt(l),s=l.lastChild;hn(c,s)}else hn(l,l);return l}}function as(e,t,n="svg"){var r=!e.startsWith("<!>"),i=(t&mi)!==0,o=`<${n}>${r?e:"<!>"+e}</${n}>`,l;return()=>{if(!l){var c=lo(o),s=yt(c);if(i)for(l=document.createDocumentFragment();yt(s);)l.appendChild(yt(s));else l=yt(s)}var u=l.cloneNode(!0);if(i){var v=yt(u),g=u.lastChild;hn(v,g)}else hn(u,u);return u}}function Pt(e,t){return as(e,t,"svg")}function At(e=""){{var t=_t(e+"");return hn(t,t),t}}function Xe(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_t();return e.append(t,n),hn(t,n),e}function k(e,t){e!==null&&e.before(t)}const ss=["touchstart","touchmove"];function ls(e){return ss.includes(e)}function j(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function cs(e,t){return us(e,t)}const vn=new Map;function us(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:l=!0}){Va();var c=new Set,s=g=>{for(var f=0;f<g.length;f++){var d=g[f];if(!c.has(d)){c.add(d);var y=ls(d);t.addEventListener(d,jn,{passive:y});var p=vn.get(d);p===void 0?(document.addEventListener(d,jn,{passive:y}),vn.set(d,1)):vn.set(d,p+1)}}};s(Tr(ao)),Fr.add(s);var u=void 0,v=Ja(()=>{var g=n??t.appendChild(_t());return Wa(g,{pending:()=>{}},f=>{if(o){nt({});var d=fe;d.c=o}i&&(r.$$events=i),u=e(f,r)||{},o&&rt()}),()=>{var y;for(var f of c){t.removeEventListener(f,jn);var d=vn.get(f);--d===0?(document.removeEventListener(f,jn),vn.delete(f)):vn.set(f,d)}Fr.delete(s),g!==n&&((y=g.parentNode)==null||y.removeChild(g))}});return ds.set(u,v),u}let ds=new WeakMap;class co{constructor(t,n=!0){ht(this,"anchor");U(this,$e,new Map);U(this,ft,new Map);U(this,je,new Map);U(this,Xt,new Set);U(this,Vn,!0);U(this,Gn,()=>{var t=Q;if(h(this,$e).has(t)){var n=h(this,$e).get(t),r=h(this,ft).get(n);if(r)qr(r),h(this,Xt).delete(n);else{var i=h(this,je).get(n);i&&(h(this,ft).set(n,i.effect),h(this,je).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of h(this,$e)){if(h(this,$e).delete(o),o===t)break;const c=h(this,je).get(l);c&&(De(c.effect),h(this,je).delete(l))}for(const[o,l]of h(this,ft)){if(o===n||h(this,Xt).has(o))continue;const c=()=>{if(Array.from(h(this,$e).values()).includes(o)){var u=document.createDocumentFragment();Qi(l,u),u.append(_t()),h(this,je).set(o,{effect:l,fragment:u})}else De(l);h(this,Xt).delete(o),h(this,ft).delete(o)};h(this,Vn)||!r?(h(this,Xt).add(o),fn(l,c,!1)):c()}}});U(this,wr,t=>{h(this,$e).delete(t);const n=Array.from(h(this,$e).values());for(const[r,i]of h(this,je))n.includes(r)||(De(i.effect),h(this,je).delete(r))});this.anchor=t,N(this,Vn,n)}ensure(t,n){var r=Q,i=qi();if(n&&!h(this,ft).has(t)&&!h(this,je).has(t))if(i){var o=document.createDocumentFragment(),l=_t();o.append(l),h(this,je).set(t,{effect:Ve(()=>n(l)),fragment:o})}else h(this,ft).set(t,Ve(()=>n(this.anchor)));if(h(this,$e).set(r,t),i){for(const[c,s]of h(this,ft))c===t?r.skipped_effects.delete(s):r.skipped_effects.add(s);for(const[c,s]of h(this,je))c===t?r.skipped_effects.delete(s.effect):r.skipped_effects.add(s.effect);r.oncommit(h(this,Gn)),r.ondiscard(h(this,wr))}else h(this,Gn).call(this)}}$e=new WeakMap,ft=new WeakMap,je=new WeakMap,Xt=new WeakMap,Vn=new WeakMap,Gn=new WeakMap,wr=new WeakMap;function Ur(e){fe===null&&fa(),an&&fe.l!==null?fs(fe).m.push(e):Bn(()=>{const t=On(e);if(typeof t=="function")return t})}function fs(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function H(e,t,n=!1){var r=new co(e),i=n?Lt:0;function o(l,c){r.ensure(l,c)}sr(()=>{var l=!1;t((c,s=!0)=>{l=!0,o(s,c)}),l||o(!1,null)},i)}function uo(e,t,n,r,i){var c;var o=(c=t.$$slots)==null?void 0:c[n],l=!1;o===!0&&(o=t.children,l=!0),o===void 0||o(e,l?()=>r:r)}function fo(e,t,n){var r=new co(e);sr(()=>{var i=t()??null;r.ensure(i,i&&(o=>n(o,i)))},Lt)}function lt(e,t){Hi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ho(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ho(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function hs(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ho(e))&&(r&&(r+=" "),r+=t);return r}function pn(e){return typeof e=="object"?hs(e):e??""}function vs(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function It(e,t,n,r,i,o){var l=e.__className;if(l!==n||l===void 0){var c=vs(n,r);c==null?e.removeAttribute("class"):t?e.className=c:e.setAttribute("class",c),e.__className=n}return o}function vo(e,t,n=!1){if(e.multiple){if(t==null)return;if(!Er(t))return ka();for(var r of e.options)r.selected=t.includes(po(r));return}for(r of e.options){var i=po(r);if(Ha(i,t)){r.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ps(e){var t=new MutationObserver(()=>{vo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Lr(()=>{t.disconnect()})}function po(e){return"__value"in e?e.__value:e.value}const gs=Symbol("is custom element"),ms=Symbol("is html");function ws(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function D(e,t,n,r){var i=_s(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[da]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ys(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _s(e){return e.__attributes??(e.__attributes={[gs]:e.nodeName.includes("-"),[ms]:e.namespaceURI===ta})}var go=new Map;function ys(e){var t=e.getAttribute("is")||e.nodeName,n=go.get(t);if(n)return n;go.set(t,n=[]);for(var r,i=e,o=Element.prototype;o!==i;){r=ia(i);for(var l in r)r[l].set&&n.push(l);i=wi(i)}return n}function bs(e,t,n=t){var r=new WeakSet;Ya(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=Hr(e)?Vr(o):o,n(o),Q!==null&&r.add(Q),await rs(),o!==(o=t())){var l=e.selectionStart,c=e.selectionEnd,s=e.value.length;if(e.value=o??"",c!==null){var u=e.value.length;l===c&&c===s&&u>s?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=l,e.selectionEnd=Math.min(c,u))}}}),On(t)==null&&e.value&&(n(Hr(e)?Vr(e.value):e.value),Q!==null&&r.add(Q)),Or(()=>{var i=t();if(e===document.activeElement){var o=tr??Q;if(r.has(o))return}Hr(e)&&i===Vr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Hr(e){var t=e.type;return t==="number"||t==="range"}function Vr(e){return e===""?null:+e}function mo(e,t){return e===t||(e==null?void 0:e[jt])===t}function xs(e={},t,n,r){return Hi(()=>{var i,o;return Or(()=>{i=o,o=[],On(()=>{e!==n(...o)&&(t(e,...o),i&&mo(n(...i),e)&&t(null,...i))})}),()=>{ln(()=>{o&&mo(n(...o),e)&&t(null,...o)})}}),e}let dr=!1;function ks(e){var t=dr;try{return dr=!1,[e(),dr]}finally{dr=t}}function ze(e,t,n,r){var O;var i=!an||(n&Qo)!==0,o=(n&Xo)!==0,l=(n&$o)!==0,c=r,s=!0,u=()=>(s&&(s=!1,c=l?On(r):r),c),v;if(o){var g=jt in e||ua in e;v=((O=nn(e,t))==null?void 0:O.set)??(g&&t in e?_=>e[t]=_:void 0)}var f,d=!1;o?[f,d]=ks(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=u(),v&&(i&&wa(),v(f)));var y;if(i?y=()=>{var _=e[t];return _===void 0?u():(s=!0,_)}:y=()=>{var _=e[t];return _!==void 0&&(c=void 0),_===void 0?c:_},i&&!(n&Jo))return y;if(v){var p=e.$$legacy;return function(_,E){return arguments.length>0?((!i||!E||p||d)&&v(E?y():_),_):y()}}var m=!1,x=(n&Zo?ir:Br)(()=>(m=!1,y()));o&&a(x);var A=X;return function(_,E){if(arguments.length>0){const P=E?a(x):i&&o?He(_):_;return w(x,P),m=!0,c!==void 0&&(c=P),_}return Ht&&m||A.f&mt?x.v:a(x)}}const wo="wineater_consent",Ss=["wineater_uid","uniqueUserID","sessionID"];function Cs(){try{const e=window.localStorage.getItem(wo);return e==="granted"||e==="denied"?e:null}catch{return null}}let Gr=Y(He(Cs())),fr=Y(null);function Es(e){w(fr,e,!0)}function _o(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.requireConsent)===!0?!0:a(fr)===!0}function Ts(){return a(fr)!==null&&_o()&&a(Gr)===null}function yo(){var e;return((e=window==null?void 0:window.wineaterData)==null?void 0:e.tracking)===!1||a(fr)===null?!1:_o()?a(Gr)==="granted":!0}function Ps(){for(const e of Ss){try{window.localStorage.removeItem(e)}catch{}try{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}catch{}}}const Kr=new Set;function As(e){return Kr.add(e),()=>Kr.delete(e)}function bo(e){w(Gr,e,!0);try{window.localStorage.setItem(wo,e)}catch{}e==="denied"&&Ps();for(const t of Kr)t(e)}function xo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Yr(e,t,n){let r="";if(n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=e+"="+(t||"")+r+"; path=/; secure; samesite=strict"}function Zr(e){const t=e+"=",n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function Is(){const e="uniqueUserID";let t=Zr(e);return t||(t=xo(),Yr(e,t,365)),t}function Le(e,t,n={},r={}){const i="https://api.wineater.com/api/widget-events",o=new Date().toISOString(),l=navigator.language.split("-")[1]||null,c=navigator.language.split("-")[0]||"en";if(!yo()){const f={event_type:e,store_id:t,event_time:o,data:n,meta:{...r,anonymous:!0},device_info:{device:window.innerWidth<768?"mobile":"desktop"},region:l,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f),keepalive:!0}).catch(d=>{console.debug("[wineater] anonymous event failed:",d==null?void 0:d.message)})}let s=Zr("uniqueUserID");s||(s=Is());const u={user_agent:navigator.userAgent,screen_width:window.screen.width,screen_height:window.screen.height,language:navigator.language,platform:navigator.platform};let v=Zr("sessionID");v||(v=xo(),Yr("sessionID",v,1));const g={event_type:e,store_id:t,session_id:v,event_time:o,data:n,meta:{...r,user_id:s},device_info:u,region:l,language:c};return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)}).then(f=>f.ok?f.json():f.json().then(d=>{throw new Error(d.message||"Failed to track widget event")})).catch(f=>{throw console.error("Widget event tracking error:",f),f})}function Ds(e){return{id:String(e.ID),appellation:e.Appellation||null,country:e.Country||null,grape:e.Grape,image:e.Image,price:Number(e.Price),producer:e.Producer||null,region:e.Region,score:e.Score?Number(e.Score):null,shortDescription:e["Short Description"]||null,store:e.Store,storeId:e.Store_id||null,tags:Array.isArray(e.Tags)?e.Tags.map(String):[],title:e.Title,type:e.Type,url:e.Url||null,vintage:e.Vintage?Number(e.Vintage):null,pairingRecommendation:e.pairing_recommendation||null,total:e.Total?Number(e.Total):null,itemId:e.item_id||null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function hr(e){return{id:String(e.id),title:String(e.title),description:String(e.description),region:String(e.region),price:Number(e.price),grape:String(e.grape),appellation:e.appellation?String(e.appellation):null,url:e.url?String(e.url):null,store:String(e.store),storeId:e.storeId?String(e.storeId):null,image:String(e.image),country:e.country?String(e.country):null,vintage:e.vintage?Number(e.vintage):null,tags:Array.isArray(e.tags)?e.tags.map(String):[],score:e.score?Number(e.score):null,total:e.total?Number(e.total):null,isPromote:e.is_promote?!!e.is_promote:null,stock:e.stock?Number(e.stock):null,distance:Number(e.distance),reason:String(e.reason),type:String(e.type),byTheGlass:!!e.by_the_glass,glassPrice:e.glass_price!=null?Number(e.glass_price):null}}function Rs(e){return{recommendations:(e.recommendations||[]).filter(Boolean).map(hr),hasMore:!!e.has_more}}const qn="wineater_uid",Ws=365;let vr=null;function ko(){const e=globalThis.crypto;if(e!=null&&e.randomUUID)return e.randomUUID();const t=new Uint8Array(16);if(e!=null&&e.getRandomValues)e.getRandomValues(t);else for(let r=0;r<16;r++)t[r]=Math.random()*256|0;t[6]=t[6]&15|64,t[8]=t[8]&63|128;const n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const So=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function Co(e){try{const t=e+"=";for(const n of document.cookie.split(";")){const r=n.trim();if(r.startsWith(t))return decodeURIComponent(r.slice(t.length))}}catch{}return null}function Ms(e,t){try{const n=new Date(Date.now()+Ws*864e5).toUTCString();document.cookie=`${e}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax; Secure`}catch{}}function Eo(){return yo()}As(e=>{e==="denied"&&(vr=null)});function Qr(){if(!Eo())return null;if(vr)return vr;let e=null;try{e=window.localStorage.getItem(qn)}catch{}(!e||!So.test(e))&&(e=Co(qn)),(!e||!So.test(e))&&(e=ko());try{window.localStorage.setItem(qn,e)}catch{}return Co(qn)!==e&&Ms(qn,e),vr=e,e}function To(){return ko()}const Bs=2e3,Po=100;let pr=null,gn=[],Fn=null,Ao=!1;function Ns(e){pr=e,!(Ao||typeof document>"u")&&(Ao=!0,document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Un()}),window.addEventListener("pagehide",()=>void Un()))}function mn(e){var t;if(!(!Eo()||!pr)&&!(!((t=e.sku_ids)!=null&&t.length)&&e.type!=="more")){if(gn.push(e),gn.length>=Po){Un();return}Fn||(Fn=setTimeout(()=>void Un(),Bs))}}async function Un(){if(Fn&&(clearTimeout(Fn),Fn=null),!pr||gn.length===0)return;const e=Qr();if(!e){gn=[];return}const t=gn.splice(0,Po);try{await pr({uid:e,events:t})}catch(n){console.debug("[wineater] feedback flush failed:",n==null?void 0:n.message)}gn.length>0&&Un()}const zs="X-Wineater-Uid";class Ls{constructor(t,n="1"){U(this,Me);U(this,kn,"https://api.wineater.com/");U(this,Kn);U(this,$t);U(this,Sn,!1);N(this,Kn,t),N(this,$t,n)}async getInstantRecommendations(){try{const t=h(this,$t)==="2"?"dish/recommendations/instant/v2":"dish/recommendations/instant",{data:n,headers:r}=await Z(this,Me,gi).call(this,t,{});return{wines:n.filter(Boolean).map(Ds),profileHash:r.get("X-Wineater-Profile")||null}}catch(t){throw new Error(`Error in getInstantRecommendations: ${t.message}`)}}async getWineRecommendationsSearch(t,n){try{const r=h(this,$t)==="2"?"dish/recommendations/search/v2":"dish/recommendations/search";return(await Z(this,Me,An).call(this,r,n?{text:t,query_id:n}:{text:t})).filter(Boolean).map(hr)}catch(r){throw new Error(`Error in getWineRecommendations: ${r.message}`)}}async searchStream(t,n,r){const i=()=>this.getWineRecommendationsSearch(t,n);if(h(this,$t)!=="2")return i();let o;try{o=await fetch(`${h(this,kn)}dish/recommendations/search/v2/stream`,{method:"POST",headers:Z(this,Me,pi).call(this),body:JSON.stringify(n?{text:t,query_id:n}:{text:t})})}catch{return i()}if(!o.ok||!o.body)return i();const l=o.body.getReader(),c=new TextDecoder;let s="",u=null;const v=g=>(g??[]).filter(Boolean).map(hr);try{for(;;){const{done:g,value:f}=await l.read();f&&(s+=c.decode(f,{stream:!0}));const d=s.split(`
|
|
2
2
|
`);s=g?"":d.pop()??"";for(const y of g?d.filter(Boolean):d){if(!y.trim())continue;const p=JSON.parse(y);if(p.type==="wines")u=v(p.recommendations).map(m=>({...m,reason:""})),r(u);else{if(p.type==="final")return v(p.recommendations);if(p.type==="error")return u||i()}}if(g)break}}catch{return u||i()}return u??i()}async getMoreWineRecommendations(t,n){try{const r=await Z(this,Me,An).call(this,"dish/recommendations/search/v2/more",{text:t,exclude_ids:n});return Rs(r)}catch(r){throw new Error(`Error in getMoreWineRecommendations: ${r.message}`)}}async getSimilarWines(t){try{return(await Z(this,Me,An).call(this,"dish/recommendations/similar",{id:t})).filter(Boolean).map(hr)}catch(n){throw new Error(`Error in getSimilarWines: ${n.message}`)}}async postEvents(t){await Z(this,Me,An).call(this,"events",t,{keepalive:!0})}async getStoreConfig(){try{return await Z(this,Me,An).call(this,"stores/store",{})}catch(t){throw console.error("Error fetching store configuration:",t),t}}}kn=new WeakMap,Kn=new WeakMap,$t=new WeakMap,Sn=new WeakMap,Me=new WeakSet,pi=function(){const t={"Content-Type":"application/json",Authorization:`Bearer ${h(this,Kn)}`};if(!h(this,Sn)){const n=Qr();n&&(t[zs]=n)}return t},An=async function(t,n,r={}){return(await Z(this,Me,gi).call(this,t,n,r)).data},gi=async function(t,n,r={}){const i=()=>({method:r.method??"POST",headers:Z(this,Me,pi).call(this),body:n===void 0?void 0:JSON.stringify(n),keepalive:r.keepalive});let o;try{o=await fetch(`${h(this,kn)}${t}`,i())}catch(s){if(h(this,Sn)||!Qr())throw s;N(this,Sn,!0),o=await fetch(`${h(this,kn)}${t}`,i())}const l=await o.text(),c=l?JSON.parse(l):null;if(!o.ok)throw new Error(`API call failed with status ${o.status}: ${(c==null?void 0:c.message)||"No additional error information"}`);return{data:c,headers:o.headers}};const Io=((Lo=window==null?void 0:window.wineaterData)==null?void 0:Lo.CLIENT_TOKEN)||"HeUw6IXuhvz6tRuXdPEGEbj3SGQ3Q2YtEc1Z8jd41Kg9LtyPb4Epu0to31SYIadG",Jr=String(((Oo=window==null?void 0:window.wineaterData)==null?void 0:Oo.apiVersion)||"1"),wn=new Ls(Io,Jr);Ns(e=>wn.postEvents(e));function Os(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}const Xr=`${Os(Io)}:${Jr}`,Do="wineater:v1:";function $r(e,t){try{const n=window.localStorage.getItem(Do+e);if(!n)return null;const r=JSON.parse(n);return Date.now()-r.savedAt>t?null:r.value}catch{return null}}function ei(e,t){try{const n={savedAt:Date.now(),value:t};window.localStorage.setItem(Do+e,JSON.stringify(n))}catch{}}const Oe={WIDGET_INITIALIZED:"widget_initialized",WIDGET_LOADED:"widget_loaded",SEARCH_PERFORMED:"search_performed",SEARCH_RESULTS_DISPLAYED:"search_results_displayed",NO_RESULTS_FOUND:"no_results_found",WINE_CARD_HOVER:"wine_card_hover",WINE_CARD_CLICK:"wine_card_click",WINE_DETAILS_VIEWED:"wine_details_viewed",WINE_DETAILS_CLOSED:"wine_details_closed",BUY_BUTTON_CLICKED:"buy_button_clicked",SHOW_MORE_CLICKED:"show_more_clicked",SIMILAR_WINES_CLICKED:"similar_wines_clicked",FILTER_APPLIED:"filter_applied",LANGUAGE_CHANGED:"language_changed",ERROR_OCCURRED:"error_occurred",MOBILE_VIEW_ACTIVATED:"mobile_view_activated"},js={fr:{lang:"fr",welcomeMessage:"Quel plat allez-vous déguster ? Décrivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",noResultsFound:"Aucun résultat trouvé.",somethingWentWrong:"Désolé, quelque chose a mal tourné.",chatButton1:"Trouvez l'accord parfait",chatButton2:"Associez le vin",chatButton3:"Obtenez des conseils",chatTitle:"Accord Mets & Vins 🍷",chatSubtitle:"Décrivez votre plat et obtenez une recommandation en 30 secondes",inputPlaceholder:"ex., Salade de thon",sendButton:"Accorder",poweredBy:"Propulsé par",price:"Prix",region:"Région",type:"Type",reason:"Suggestion",moreInfo:"Plus d'infos",tryAgain:"Réessayer",similarWines:"Vins similaires",byTheGlass:"Au verre",winePairingIntro:"Pour ce vin, voici quelques suggestions de plats :",askForDinner:"Que voulez-vous manger ce soir?",clearChatButton:"Effacer le chat",widgetTitle:"TROUVEZ VOTRE VIN PARFAIT",widgetSubtitle:"Partagez tout ce que vous avez en tête—votre repas, humeur, budget ou occasion—et notre sommelier IA vous recommandera le vin parfait en quelques secondes",searchPlaceholder:"Entrez un mot-clé ou une description","wineDetails.reason":"Raison","wineDetails.price":"Prix","wineDetails.region":"Région","wineDetails.type":"Type","wineDetails.moreInfo":"Plus d'infos","wineDetails.code":"Code","wineDetails.buy":"Acheter",searchButton:"Rechercher",priceRange:"Gamme de prix",wineColor:"Couleur du vin",intensity:"Intensité",red:"Rouge",white:"Blanc",rose:"Rosé",light:"Léger",medium:"Moyen",full:"Puissant",barTitle:"Sélection du bar",barSubtitle:"Choisissez vos plats ci-dessous et cliquez sur «Envoyer»",barSendButton:"Envoyer",barResetButton:"Réinitialiser",barName:"Nom du bar",barNotesPlaceholder:"Entrez vos souhaits ici...",placeholderSuggestions:["Vin pour les pâtes","Parfait avec du poisson","Recommandé pour une soirée"],headerLine1:"Partagez tout ce qui vous passe par la tête —",headerLine2:"— et obtenez des recommandations de vin parfait en quelques secondes",headerMeal:"repas",headerMood:"humeur",headerBudget:"budget",headerOccasion:"occasion",headerOr:"ou",errorMessage:"Une erreur est survenue. Veuillez réessayer plus tard.",noResultsMessage:"Aucun résultat trouvé pour votre recherche. Veuillez essayer une autre requête.",ai_sommelier:"AI sommelier",consentText:"L'assistant vin enregistre un identifiant anonyme sur cet appareil pour apprendre vos goûts et améliorer ses recommandations. Vous pouvez l'utiliser sans accepter.",consentAccept:"Accepter",consentDecline:"Refuser",consentPrivacy:"Politique de confidentialité"},es:{lang:"es",welcomeMessage:"¿Qué vas a comer? Cuéntame tu plato y te recomendaré el maridaje perfecto.",noResultsFound:"No se encontraron resultados.",somethingWentWrong:"Lo sentimos, algo salió mal.",chatButton1:"Encuentra tu maridaje",chatButton2:"Combina vino ya",chatButton3:"Recibe asesoría ahora",chatTitle:"Maridaje de Vinos 🍷",chatSubtitle:"Describe tu comida y obtén una recomendación en 30 segundos",inputPlaceholder:"ej., Ensalada de atún",sendButton:"Combinar",poweredBy:"Desarrollado por",price:"Precio",region:"Región",type:"Tipo",reason:"Sugerencia",moreInfo:"Más info",tryAgain:"Probar otra vez",similarWines:"Vinos similares",byTheGlass:"Por copa",winePairingIntro:"Para este vino, aquí tienes algunas sugerencias de platos:",askForDinner:"¿Qué te gustaría cenar?",clearChatButton:"Limpiar el chat",widgetTitle:"ENCUENTRA TU VINO PERFECTO",widgetSubtitle:"Comparte cualquier cosa que tengas en mente—tu comida, estado de ánimo, presupuesto o evento—y nuestro sommelier de IA te recomendará el vino perfecto en segundos",searchPlaceholder:"Escribe una palabra clave o descripción","wineDetails.reason":"Razón","wineDetails.price":"Precio","wineDetails.region":"Región","wineDetails.type":"Tipo","wineDetails.code":"Código","wineDetails.moreInfo":"Más información","wineDetails.buy":"Comprar",searchButton:"Buscar",priceRange:"Rango de precios",wineColor:"Color del vino",intensity:"Intensidad",red:"Tinto",white:"Blanco",rose:"Rosado",light:"Ligero",medium:"Medio",full:"Intenso",barTitle:"Platos de Bar",barSubtitle:"Selecciona de la lista y presiona «Enviar»",barSendButton:"Enviar",barResetButton:"Reiniciar",barName:"Nombre del bar",barNotesPlaceholder:"Agrega tus comentarios aquí...",placeholderSuggestions:["Vino para pasta","Perfecto con pescado","Recomendado para una fiesta"],headerLine1:"Comparte cualquier cosa que tengas en mente —",headerLine2:"— y obtén recomendaciones del vino perfecto en cuestión de segundos",headerMeal:"comida",headerMood:"estado de ánimo",headerBudget:"presupuesto",headerOccasion:"ocasión",headerOr:"o",errorMessage:"Algo salió mal. Por favor, inténtalo de nuevo más tarde.",noResultsMessage:"No se encontraron resultados para tu búsqueda. Por favor, intenta con otra consulta.",ai_sommelier:"AI sommelier",consentText:"El asistente de vinos guarda un identificador anónimo en este dispositivo para conocer tus gustos y mejorar las recomendaciones. Puedes usarlo sin aceptar.",consentAccept:"Aceptar",consentDecline:"Rechazar",consentPrivacy:"Política de privacidad"},en:{lang:"en",welcomeMessage:"What are you planning to eat? Share your dish and I'll recommend the perfect wine pairing for your meal.",noResultsFound:"No results found.",somethingWentWrong:"Sorry, something went wrong.",chatButton1:"Find Your Pairing",chatButton2:"Pair Wine Now",chatButton3:"Get Wine Advice",chatTitle:"Wine Pairing Assistant 🍷",chatSubtitle:"Describe your meal and get a recommendation in 30 seconds",inputPlaceholder:"e.g., Tuna salad",sendButton:"Match",poweredBy:"Powered by",price:"Price",region:"Region",type:"Type",reason:"Suggestion",moreInfo:"More info",tryAgain:"Try again",similarWines:"Similar wines",byTheGlass:"By the glass",winePairingIntro:"For this wine, here are some suggested dishes:",askForDinner:"What would you like to have for dinner?",clearChatButton:"Clear Chat",widgetTitle:"FIND YOUR PERFECT WINE",widgetSubtitle:"Share anything on your mind—your meal, mood, budget, or occasion—and our AI sommelier will recommend the perfect wine in seconds",searchPlaceholder:"Enter a keyword or description","wineDetails.price":"Price","wineDetails.region":"Region","wineDetails.type":"Type","wineDetails.moreInfo":"More info","wineDetails.reason":"Reason","wineDetails.code":"Code","wineDetails.buy":"Buy",searchButton:"Search",priceRange:"Price Range",wineColor:"Wine Color",intensity:"Intensity",red:"Red",white:"White",rose:"Rosé",light:"Light",medium:"Medium",full:"Full",barTitle:"Bar Dishes",barSubtitle:"Select dishes below and click 'Send'",barSendButton:"Send",barResetButton:"Reset",barName:"Bar Name",barNotesPlaceholder:"Add your wishes here...",placeholderSuggestions:["Wine for pasta","Perfect with fish","Recommended for a party"],headerLine1:"Share anything on your mind —",headerLine2:"— and get recommendations of the perfect wine in seconds",headerMeal:"meal",headerMood:"mood",headerBudget:"budget",headerOccasion:"occasion",headerOr:"or",errorMessage:"Something went wrong. Please try again later.",noResultsMessage:"No results found for your search. Please try a different query.",ai_sommelier:"AI sommelier",consentText:"The wine assistant stores an anonymous identifier on this device to learn your taste and improve recommendations. You can use it without accepting.",consentAccept:"Accept",consentDecline:"Decline",consentPrivacy:"Privacy policy"},sr:{lang:"sr",welcomeMessage:"Šta planirate da jedete? Podelite svoje jelo i preporučiću vam savršeno vino uz obrok.",noResultsFound:"Nema rezultata.",somethingWentWrong:"Izvinite, nešto je pošlo po zlu.",chatButton1:"Pronađi vino",chatButton2:"Upari vino sada",chatButton3:"Zatraži preporuku",chatTitle:"Asistent za uparivanje vina 🍷",chatSubtitle:"Opišite svoj obrok i dobijte preporuku za 30 sekundi",inputPlaceholder:"npr. Tuna salata",sendButton:"Upari",poweredBy:"Pokreće",price:"Cena",region:"Regija",type:"Tip",reason:"Preporuka",moreInfo:"Više informacija",tryAgain:"Pokušaj ponovo",similarWines:"Slična vina",byTheGlass:"Na čašu",winePairingIntro:"Za ovo vino, preporučuju se sledeća jela:",askForDinner:"Šta biste želeli za večeru?",clearChatButton:"Obriši razgovor",widgetTitle:"PRONAĐITE SAVRŠENO VINO",widgetSubtitle:"Podelite bilo šta — obrok, raspoloženje, budžet ili priliku — i naš AI somelijer će vam za par sekundi preporučiti vino",searchPlaceholder:"Unesite ključnu reč ili opis","wineDetails.price":"Cena","wineDetails.region":"Regija","wineDetails.type":"Tip","wineDetails.moreInfo":"Više informacija","wineDetails.reason":"Razlog","wineDetails.code":"Šifra","wineDetails.buy":"Kupi",searchButton:"Pretraga",priceRange:"Cenovni raspon",wineColor:"Boja vina",intensity:"Intenzitet",red:"Crveno",white:"Belo",rose:"Roze",light:"Lako",medium:"Srednje",full:"Puno",barTitle:"Jela iz bara",barSubtitle:"Izaberite jela ispod i kliknite 'Pošalji'",barSendButton:"Pošalji",barResetButton:"Resetuj",barName:"Naziv bara",barNotesPlaceholder:"Dodajte svoje želje ovde...",placeholderSuggestions:["Vino uz pastu","Savršeno uz ribu","Preporuka za žurku"],headerLine1:"Podelite bilo šta što vam je na umu —",headerLine2:"— i dobijte preporuke za savršeno vino za par sekundi",headerMeal:"obrok",headerMood:"raspoloženje",headerBudget:"budžet",headerOccasion:"prilika",headerOr:"ili",errorMessage:"Nešto je pošlo po zlu. Molimo pokušajte ponovo kasnije.",noResultsMessage:"Nema rezultata za vašu pretragu. Molimo pokušajte sa drugačijim upitom.",ai_sommelier:"AI sommelier",consentText:"Vinski asistent čuva anonimni identifikator na ovom uređaju kako bi upoznao vaš ukus i poboljšao preporuke. Možete ga koristiti i bez prihvatanja.",consentAccept:"Prihvati",consentDecline:"Odbij",consentPrivacy:"Politika privatnosti"},de:{lang:"de",welcomeMessage:"Was möchten Sie essen? Beschreiben Sie Ihr Gericht und ich empfehle Ihnen den perfekten Wein dazu.",noResultsFound:"Keine Ergebnisse gefunden.",somethingWentWrong:"Entschuldigung, etwas ist schief gelaufen.",chatButton1:"Finde Dein Pairing",chatButton2:"Wein jetzt wählen",chatButton3:"Erhalte Weinberatung",chatTitle:"Wein & Speisen 🍷",chatSubtitle:"Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",inputPlaceholder:"z.B., Thunfischsalat",sendButton:"Kombinieren",poweredBy:"Unterstützt von",price:"Preis",region:"Region",type:"Typ",reason:"Anregung",moreInfo:"Mehr Info",tryAgain:"Nochmal versuchen",similarWines:"Ähnliche Weine",byTheGlass:"Glasweise",winePairingIntro:"Für diesen Wein gibt es folgende Essensvorschläge:",askForDinner:"Was möchten Sie zum Abendessen essen?",clearChatButton:"Chat löschen",widgetTitle:"FINDEN SIE IHREN PERFEKTEN WEIN",widgetSubtitle:"Teilen Sie alles, was Ihnen in den Sinn kommt—Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass—und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",placeholderSuggestions:["Wein für Pasta","Perfekt zu Fisch","Empfohlen für eine Party"],searchPlaceholder:"Geben Sie ein Stichwort oder eine Beschreibung ein","wineDetails.price":"Preis","wineDetails.region":"Region","wineDetails.type":"Typ","wineDetails.moreInfo":"Mehr Info","wineDetails.reason":"Grund","wineDetails.code":"Code","wineDetails.buy":"Kaufen",searchButton:"Suche",priceRange:"Preisspanne",wineColor:"Weinfarbe",intensity:"Intensität",red:"Rot",white:"Weiß",rose:"Rosé",light:"Leicht",medium:"Mittel",full:"Voll",barTitle:"Bar-Auswahl",barSubtitle:"Wählen Sie Ihre Gerichte und klicken Sie auf 'Senden'",barSendButton:"Senden",barResetButton:"Zurücksetzen",barName:"Name der Bar",headerLine1:"Teilen Sie alles, was Ihnen durch den Kopf geht —",headerLine2:"— und erhalten Sie in Sekundenschnelle Empfehlungen für den perfekten Wein",headerMeal:"Mahlzeit",headerMood:"Stimmung",headerBudget:"Budget",headerOccasion:"Anlass",headerOr:"oder",errorMessage:"Etwas ist schief gelaufen. Bitte versuchen Sie es später erneut.",noResultsMessage:"Keine Ergebnisse für Ihre Suche gefunden. Bitte versuchen Sie es mit einer anderen Anfrage.",ai_sommelier:"AI sommelier",consentText:"Der Weinassistent speichert eine anonyme Kennung auf diesem Gerät, um Ihren Geschmack kennenzulernen und Empfehlungen zu verbessern. Sie können ihn auch ohne Zustimmung nutzen.",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentPrivacy:"Datenschutzerklärung"},ukr:{lang:"ukr",welcomeMessage:"Що ви збираєтесь їсти? Опишіть свою страву, і я порекомендую вам ідеальне вино.",noResultsFound:"Результатів не знайдено.",somethingWentWrong:"Вибачте, щось пішло не так.",chatButton1:"Знайти ідеальне поєднання",chatButton2:"Підібрати вино",chatButton3:"Отримати пораду",chatTitle:"Сомельє-помічник 🍷",chatSubtitle:"Опишіть свою страву і отримайте рекомендацію за 30 секунд",inputPlaceholder:"наприклад, Тунець із салатом",sendButton:"Підібрати",poweredBy:"Розроблено на основі",price:"Ціна",region:"Регіон",type:"Тип",reason:"Рекомендація",moreInfo:"Докладніше",tryAgain:"Спробувати ще",similarWines:"Схожі вина",byTheGlass:"На келих",winePairingIntro:"До цього вина підходять такі страви:",askForDinner:"Що ви хочете на вечерю?",clearChatButton:"Очистити чат",widgetTitle:"ЗНАЙДІТЬ ІДЕАЛЬНЕ ВИНО",widgetSubtitle:"Поділіться тим, що у вас на думці—їжа, настрій, бюджет чи подія—і наш AI-сомельє порекомендує вам ідеальне вино за секунди",searchPlaceholder:"Введіть ключове слово або опис","wineDetails.reason":"Причина","wineDetails.price":"Ціна","wineDetails.region":"Регіон","wineDetails.type":"Тип","wineDetails.moreInfo":"Докладніше","wineDetails.code":"Код","wineDetails.buy":"Купити",searchButton:"Пошук",priceRange:"Діапазон цін",wineColor:"Колір вина",intensity:"Інтенсивність",red:"Червоне",white:"Біле",rose:"Рожеве",light:"Легке",medium:"Середнє",full:"Повне",barTitle:"Закуски до вина",barSubtitle:"Виберіть страви нижче та натисніть «Надіслати»",barSendButton:"Надіслати",barResetButton:"Скинути",barName:"Назва бару",barNotesPlaceholder:"Додайте ваші побажання тут...",placeholderSuggestions:["Вино до пасти","Ідеально до риби","Рекомендуємо для вечірки"],headerLine1:"Поділіться будь-якими вашими думками —",headerLine2:"— і отримайте рекомендації щодо ідеального вина за секунди",headerMeal:"страва",headerMood:"настрій",headerBudget:"бюджет",headerOccasion:"подія",headerOr:"або",errorMessage:"Щось пішло не так. Будь ласка, спробуйте пізніше.",noResultsMessage:"За вашим запитом не знайдено результатів. Спробуйте інший запит.",ai_sommelier:"AI sommelier",consentText:"Винний помічник зберігає на цьому пристрої анонімний ідентифікатор, щоб враховувати ваш смак і покращувати рекомендації. Користуватися можна й без згоди.",consentAccept:"Прийняти",consentDecline:"Відхилити",consentPrivacy:"Політика конфіденційності"},ru:{lang:"ru",welcomeMessage:"Что вы планируете поесть? Напишите ваше блюдо, и я подберу идеальное вино к нему.",noResultsFound:"Результаты не найдены.",somethingWentWrong:"Извините, что-то пошло не так.",chatButton1:"Найти сочетание",chatButton2:"Подобрать вино",chatButton3:"Получить совет",chatTitle:"Ассистент по подбору вина 🍷",chatSubtitle:"Опишите ваше блюдо и получите рекомендацию за 30 секунд",inputPlaceholder:"например, Тунец с салатом",sendButton:"Подобрать",poweredBy:"Powered by",price:"Цена",region:"Регион",type:"Тип",reason:"Рекомендация",moreInfo:"Подробнее",tryAgain:"Попробовать ещё",similarWines:"Похожие вина",byTheGlass:"По бокалам",winePairingIntro:"К этому вину подходят следующие блюда:",askForDinner:"Что бы вы хотели на ужин?",clearChatButton:"Очистить чат",widgetTitle:"НАЙДИТЬ ИДЕАЛЬНОЕ ВИНО",widgetSubtitle:"Поделитесь вашими предпочтениями — блюдом, настроением, бюджетом или случаем — и наш AI-сомелье подберёт идеальное вино за секунды",searchPlaceholder:"Введите ключевое слово или описание","wineDetails.price":"Цена","wineDetails.region":"Регион","wineDetails.type":"Тип","wineDetails.moreInfo":"Подробнее","wineDetails.reason":"Причина","wineDetails.code":"Код","wineDetails.buy":"Купить",searchButton:"Поиск",priceRange:"Диапазон цен",wineColor:"Цвет вина",intensity:"Интенсивность",red:"Красное",white:"Белое",rose:"Розовое",light:"Лёгкое",medium:"Среднее",full:"Полное",barTitle:"Закуски к вину",barSubtitle:"Выберите блюда ниже и нажмите 'Отправить'",barSendButton:"Отправить",barResetButton:"Сбросить",barName:"Название бара",barNotesPlaceholder:"Добавьте ваши пожелания здесь...",placeholderSuggestions:["Вино для пасты","Идеально к рыбе","Рекомендуем для вечеринки"],headerLine1:"Поделитесь любыми вашими мыслями —",headerLine2:"— и получите рекомендации по идеальному вину за считанные секунды",headerMeal:"блюдо",headerMood:"настроение",headerBudget:"бюджет",headerOccasion:"случай",headerOr:"или",errorMessage:"Что-то пошло не так. Пожалуйста, попробуйте позже.",noResultsMessage:"По вашему запросу не найдено результатов. Попробуйте другой запрос.",ai_sommelier:"AI sommelier",consentText:"Винный помощник сохраняет на этом устройстве анонимный идентификатор, чтобы учитывать ваш вкус и улучшать рекомендации. Пользоваться можно и без согласия.",consentAccept:"Принять",consentDecline:"Отклонить",consentPrivacy:"Политика конфиденциальности"},kk:{lang:"kk",welcomeMessage:"Сіз не жегіңіз келеді? Тағамыңызды сипаттаңыз, мен оған керемет шарап ұсынамын.",noResultsFound:"Нәтижелер табылмады.",somethingWentWrong:"Кешіріңіз, бірдеңе дұрыс болмады.",chatButton1:"Сәйкестік табу",chatButton2:"Шарап таңдау",chatButton3:"Кеңес алу",chatTitle:"Шарап таңдаушы көмекші 🍷",chatSubtitle:"Тағамыңызды сипаттаңыз — 30 секундта ұсыныс алыңыз",inputPlaceholder:"мысалы, тунец салатымен",sendButton:"Таңдау",poweredBy:"Powered by",price:"Бағасы",region:"Өңір",type:"Түрі",reason:"Ұсыныс",moreInfo:"Толығырақ",tryAgain:"Қайта көру",similarWines:"Ұқсас шараптар",byTheGlass:"Бокалмен",winePairingIntro:"Бұл шарапқа келесі тағамдар сәйкес келеді:",askForDinner:"Кешкі асқа не қалайсыз?",clearChatButton:"Чатты тазалау",widgetTitle:"КЕРЕМЕТ ШАРАПТЫ ТАБЫҢЫЗ",widgetSubtitle:"Таңдауларыңызды бөлісіңіз — тағам, көңіл-күй, бюджет немесе жағдай — және біздің AI-сомелье сізге бірнеше секундта шарап ұсынады",searchPlaceholder:"Кілт сөзді немесе сипаттаманы енгізіңіз","wineDetails.price":"Бағасы","wineDetails.region":"Өңір","wineDetails.type":"Түрі","wineDetails.moreInfo":"Толығырақ","wineDetails.reason":"Себебі","wineDetails.code":"Код","wineDetails.buy":"Сатып алу",searchButton:"Іздеу",priceRange:"Баға диапазоны",wineColor:"Шарап түсі",intensity:"Қанықтылық",red:"Қызыл",white:"Ақ",rose:"Розалық",light:"Жеңіл",medium:"Орташа",full:"Толық",barTitle:"Шарапқа арналған тіскебасарлар",barSubtitle:"Төмендегі тағамдарды таңдаңыз және 'Жіберу' батырмасын басыңыз",barSendButton:"Жіберу",barResetButton:"Қалпына келтіру",barName:"Бар атауы",barNotesPlaceholder:"Мұнда өз тілектеріңізді жазыңыз...",placeholderSuggestions:["Пастаға арналған шарап","Балыққа тамаша үйлеседі","Кешке ұсынуға болады"],headerLine1:"Ойларыңызбен бөлісіңіз —",headerLine2:"— және бірнеше секундта мінсіз шарап ұсынысын алыңыз",headerMeal:"тағам",headerMood:"көңіл-күй",headerBudget:"бюджет",headerOccasion:"жағдай",headerOr:"немесе",errorMessage:"Бірдеңе дұрыс болмады. Кейінірек қайта көріңіз.",noResultsMessage:"Іздеуіңізге сәйкес нәтиже табылмады. Басқа сұрау қолданып көріңіз.",ai_sommelier:"AI sommelier",consentText:"Шарап көмекшісі сіздің талғамыңызды ескеріп, ұсыныстарды жақсарту үшін осы құрылғыда анонимді идентификатор сақтайды. Келісімсіз де пайдалана аласыз.",consentAccept:"Қабылдау",consentDecline:"Бас тарту",consentPrivacy:"Құпиялылық саясаты"},pt:{lang:"pt",welcomeMessage:"O que você planeja comer? Descreva seu prato e eu recomendarei a harmonização perfeita.",noResultsFound:"Nenhum resultado encontrado.",somethingWentWrong:"Desculpe, algo deu errado.",chatButton1:"Encontre sua harmonização",chatButton2:"Harmonizar vinho agora",chatButton3:"Receber conselho de vinho",chatTitle:"Assistente de Harmonização de Vinhos 🍷",chatSubtitle:"Descreva sua refeição e receba uma recomendação em 30 segundos",inputPlaceholder:"ex., Salada de atum",sendButton:"Harmonizar",poweredBy:"Desenvolvido por",price:"Preço",region:"Região",type:"Tipo",reason:"Sugestão",moreInfo:"Mais informações",tryAgain:"Tentar de novo",similarWines:"Vinhos semelhantes",byTheGlass:"Por taça",winePairingIntro:"Para este vinho, aqui estão algumas sugestões de pratos:",askForDinner:"O que você gostaria de jantar?",clearChatButton:"Limpar chat",widgetTitle:"ENCONTRE SEU VINHO PERFEITO",widgetSubtitle:"Compartilhe o que tiver em mente — sua refeição, humor, orçamento ou ocasião — e nosso sommelier de IA recomendará o vinho perfeito em segundos",searchPlaceholder:"Digite uma palavra-chave ou descrição","wineDetails.reason":"Motivo","wineDetails.price":"Preço","wineDetails.region":"Região","wineDetails.type":"Tipo","wineDetails.moreInfo":"Mais informações","wineDetails.code":"Código","wineDetails.buy":"Comprar",searchButton:"Pesquisar",priceRange:"Faixa de preço",wineColor:"Cor do vinho",intensity:"Intensidade",red:"Tinto",white:"Branco",rose:"Rosé",light:"Leve",medium:"Médio",full:"Encorpado",barTitle:"Pratos do bar",barSubtitle:"Selecione os pratos abaixo e clique em 'Enviar'",barSendButton:"Enviar",barResetButton:"Resetar",barName:"Nome do bar",barNotesPlaceholder:"Adicione seus desejos aqui...",placeholderSuggestions:["Vinho para massa","Perfeito com peixe","Recomendado para uma festa"],headerLine1:"Compartilhe o que tiver em mente —",headerLine2:"— e receba recomendações do vinho perfeito em segundos",headerMeal:"refeição",headerMood:"humor",headerBudget:"orçamento",headerOccasion:"ocasião",headerOr:"ou",errorMessage:"Algo deu errado. Por favor, tente novamente mais tarde.",noResultsMessage:"Nenhum resultado encontrado para sua pesquisa. Por favor, tente uma consulta diferente.",ai_sommelier:"AI sommelier",consentText:"O assistente de vinhos guarda um identificador anónimo neste dispositivo para conhecer o seu gosto e melhorar as recomendações. Pode usá-lo sem aceitar.",consentAccept:"Aceitar",consentDecline:"Recusar",consentPrivacy:"Política de privacidade"}};function qs(e){return{id:String(e.id),lang:e.lang,available_languages:e.available_languages?e.available_languages:[e.lang],open_ai_key:e.open_ai_key??null,currency:e.currency,title:e.title,requires_cookie_consent:e.requires_cookie_consent===!0}}const Fs={0:{logoUrl:null,brandColor:"#7B2BEB"},29:{logoUrl:"https://czvgkhagwvmknscoerfy.supabase.co/storage/v1/object/public/static-media/plou_logo.jpg",brandColor:"#e6c6bb"},25:{logoUrl:null,brandColor:"#000000",wineaterColor:"#000000",buttonUppercase:!0,customCss:`
|
|
3
3
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');
|
|
4
4
|
:root { --wineater-font-primary: 'Roboto', sans-serif; }
|
package/package.json
CHANGED
|
@@ -41,7 +41,9 @@ export function setUniqueUserCookie(): string {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export function trackWidgetEvent(event_type: string, store_id, data = {}, meta = {}) {
|
|
44
|
-
|
|
44
|
+
// Тот же маршрут бэкенда, что и на admin-api.wineater.com (wineater-api выключен, домен admin-api
|
|
45
|
+
// смотрит на бэкенд ради уже опубликованных версий — его не снимать, пока они живы).
|
|
46
|
+
const endpoint = 'https://api.wineater.com/api/widget-events';
|
|
45
47
|
const event_time = new Date().toISOString();
|
|
46
48
|
const region = navigator.language.split('-')[1] || null;
|
|
47
49
|
const language = navigator.language.split('-')[0] || 'en';
|