UNPKG

@divkitframework/divkit

Version:
8 lines 476 kB
/*! DivKit v32.61.0 https://github.com/divkit/divkit @licence Apache-2.0 */(function(){"use strict";var Ry=Object.defineProperty;var By=(M,ui,ei)=>ui in M?Ry(M,ui,{enumerable:!0,configurable:!0,writable:!0,value:ei}):M[ui]=ei;var gr=(M,ui,ei)=>By(M,typeof ui!="symbol"?ui+"":ui,ei);function M(){}const ui=e=>e;function ei(e,r){for(const t in r)e[t]=r[t];return e}function _a(e){return e()}function ga(){return Object.create(null)}function nn(e){e.forEach(_a)}function Gr(e){return typeof e=="function"}function th(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}let Zo;function yi(e,r){return e===r?!0:(Zo||(Zo=document.createElement("a")),Zo.href=r,e===Zo.href)}function Hr(e,r){return e!=e?r==r:e!==r}function rh(e){return Object.keys(e).length===0}function U(e,...r){if(e==null){for(const n of r)n(void 0);return M}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function il(e){let r;return U(e,t=>r=t)(),r}function kn(e,r,t){e.$$.on_destroy.push(U(r,t))}function Qo(e,r,t,n){if(e){const i=pa(e,r,t,n);return e[0](i)}}function pa(e,r,t,n){return e[1]&&n?ei(t.ctx.slice(),e[1](n(r))):t.ctx}function xo(e,r,t,n){if(e[2]&&n){const i=e[2](n(t));if(r.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(r.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=r.dirty[a]|i[a];return o}return r.dirty|i}return r.dirty}function $o(e,r,t,n,i,o){if(i){const s=pa(r,t,n,o);e.p(s,i)}}function es(e){if(e.ctx.length>32){const r=[],t=e.ctx.length/32;for(let n=0;n<t;n++)r[n]=-1;return r}return-1}function ol(e,r,t){return e.set(t),r}function ts(e){return e&&Gr(e.destroy)?e.destroy:M}function ma(e){const r=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[e,"px"]}const ba=typeof window<"u";let sl=ba?()=>window.performance.now():()=>Date.now(),ll=ba?e=>requestAnimationFrame(e):M;const po=new Set;function ya(e){po.forEach(r=>{r.c(e)||(po.delete(r),r.f())}),po.size!==0&&ll(ya)}function al(e){let r;return po.size===0&&ll(ya),{promise:new Promise(t=>{po.add(r={c:e,f:t})}),abort(){po.delete(r)}}}const Ci=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let rs=!1;function nh(){rs=!0}function ih(){rs=!1}function oh(e,r,t,n){for(;e<r;){const i=e+(r-e>>1);t(i)<=n?e=i+1:r=i}return e}function sh(e){if(e.hydrate_init)return;e.hydrate_init=!0;let r=e.childNodes;if(e.nodeName==="HEAD"){const l=[];for(let u=0;u<r.length;u++){const c=r[u];c.claim_order!==void 0&&l.push(c)}r=l}const t=new Int32Array(r.length+1),n=new Int32Array(r.length);t[0]=-1;let i=0;for(let l=0;l<r.length;l++){const u=r[l].claim_order,c=(i>0&&r[t[i]].claim_order<=u?i+1:oh(1,i,_=>r[t[_]].claim_order,u))-1;n[l]=t[c]+1;const d=c+1;t[d]=l,i=Math.max(d,i)}const o=[],s=[];let a=r.length-1;for(let l=t[i]+1;l!=0;l=n[l-1]){for(o.push(r[l-1]);a>=l;a--)s.push(r[a]);a--}for(;a>=0;a--)s.push(r[a]);o.reverse(),s.sort((l,u)=>l.claim_order-u.claim_order);for(let l=0,u=0;l<s.length;l++){for(;u<o.length&&s[l].claim_order>=o[u].claim_order;)u++;const c=u<o.length?o[u]:null;e.insertBefore(s[l],c)}}function lh(e,r){e.appendChild(r)}function va(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function ah(e){const r=Pe("style");return r.textContent="/* empty */",uh(va(e),r),r.sheet}function uh(e,r){return lh(e.head||e,r),r.sheet}function zt(e,r){if(rs){for(sh(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;r!==e.actual_end_child?(r.claim_order!==void 0||r.parentNode!==e)&&e.insertBefore(r,e.actual_end_child):e.actual_end_child=r.nextSibling}else(r.parentNode!==e||r.nextSibling!==null)&&e.appendChild(r)}function ch(e,r,t){e.insertBefore(r,t||null)}function ee(e,r,t){rs&&!t?zt(e,r):(r.parentNode!==e||r.nextSibling!=t)&&e.insertBefore(r,t||null)}function E(e){e.parentNode&&e.parentNode.removeChild(e)}function Sn(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function Pe(e){return document.createElement(e)}function En(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function oi(e){return document.createTextNode(e)}function Ar(){return oi(" ")}function $e(){return oi("")}function Oe(e,r,t,n){return e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)}function y(e,r,t){t==null?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}const fh=["width","height"];function vi(e,r){const t=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in r)r[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=r[n]:n==="__value"?e.value=e[n]=r[n]:t[n]&&t[n].set&&fh.indexOf(n)===-1?e[n]=r[n]:y(e,n,r[n])}function dh(e,r){Object.keys(r).forEach(t=>{hh(e,t,r[t])})}function hh(e,r,t){const n=r.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&t===""?!0:t:r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:y(e,r,t)}function wa(e){return/-/.test(e)?dh:vi}function Ve(e){return Array.from(e.childNodes)}function ka(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function Ea(e,r,t,n,i=!1){ka(e);const o=(()=>{for(let s=e.claim_info.last_index;s<e.length;s++){const a=e[s];if(r(a)){const l=t(a);return l===void 0?e.splice(s,1):e[s]=l,i||(e.claim_info.last_index=s),a}}for(let s=e.claim_info.last_index-1;s>=0;s--){const a=e[s];if(r(a)){const l=t(a);return l===void 0?e.splice(s,1):e[s]=l,i?l===void 0&&e.claim_info.last_index--:e.claim_info.last_index=s,a}}return n()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function Aa(e,r,t,n){return Ea(e,i=>i.nodeName===r,i=>{const o=[];for(let s=0;s<i.attributes.length;s++){const a=i.attributes[s];t[a.name]||o.push(a.name)}o.forEach(s=>i.removeAttribute(s))},()=>n(r))}function Le(e,r,t){return Aa(e,r,t,Pe)}function Tn(e,r,t){return Aa(e,r,t,En)}function wi(e,r){return Ea(e,t=>t.nodeType===3,t=>{const n=""+r;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n},()=>oi(r),!0)}function Cr(e){return wi(e," ")}function Ca(e,r,t){for(let n=t;n<e.length;n+=1){const i=e[n];if(i.nodeType===8&&i.textContent.trim()===r)return n}return-1}function ul(e,r){const t=Ca(e,"HTML_TAG_START",0),n=Ca(e,"HTML_TAG_END",t+1);if(t===-1||n===-1)return new mo(r);ka(e);const i=e.splice(t,n-t+1);E(i[0]),E(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new mo(r);for(const s of o)s.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new mo(r,o)}function zi(e,r){r=""+r,e.data!==r&&(e.data=r)}function ja(e,r){e.value=r==null?"":r}function K(e,r,t,n){t==null?e.style.removeProperty(r):e.style.setProperty(r,t,"")}function Sa(e,r,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===r){i.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function _h(e){const r=e.querySelector(":checked");return r&&r.__value}function Va(e,r,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:r,bubbles:t,cancelable:n})}class gh{constructor(r=!1){gr(this,"is_svg",!1);gr(this,"e");gr(this,"n");gr(this,"t");gr(this,"a");this.is_svg=r,this.e=this.n=null}c(r){this.h(r)}m(r,t,n=null){this.e||(this.is_svg?this.e=En(t.nodeName):this.e=Pe(t.nodeType===11?"TEMPLATE":t.nodeName),this.t=t.tagName!=="TEMPLATE"?t:t.content,this.c(r)),this.i(n)}h(r){this.e.innerHTML=r,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(r){for(let t=0;t<this.n.length;t+=1)ch(this.t,this.n[t],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(E)}}class mo extends gh{constructor(t=!1,n){super(t);gr(this,"l");this.e=this.n=null,this.l=n}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let n=0;n<this.n.length;n+=1)ee(this.t,this.n[n],t)}}function Ia(e,r){return new e(r)}const ns=new Map;let is=0;function ph(e){let r=5381,t=e.length;for(;t--;)r=(r<<5)-r^e.charCodeAt(t);return r>>>0}function mh(e,r){const t={stylesheet:ah(r),rules:{}};return ns.set(e,t),t}function os(e,r,t,n,i,o,s,a=0){const l=16.666/n;let u=`{ `;for(let w=0;w<=1;w+=l){const A=r+(t-r)*o(w);u+=w*100+`%{${s(A,1-A)}} `}const c=u+`100% {${s(t,1-t)}} }`,d=`__svelte_${ph(c)}_${a}`,_=va(e),{stylesheet:g,rules:p}=ns.get(_)||mh(_,e);p[d]||(p[d]=!0,g.insertRule(`@keyframes ${d} ${c}`,g.cssRules.length));const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${d} ${n}ms linear ${i}ms 1 both`,is+=1,d}function ss(e,r){const t=(e.style.animation||"").split(", "),n=t.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=t.length-n.length;i&&(e.style.animation=n.join(", "),is-=i,is||bh())}function bh(){ll(()=>{is||(ns.forEach(e=>{const{ownerNode:r}=e.stylesheet;r&&E(r)}),ns.clear())})}let Oo;function Lo(e){Oo=e}function bo(){if(!Oo)throw new Error("Function called outside component initialization");return Oo}function si(e){bo().$$.on_mount.push(e)}function ls(e){bo().$$.after_update.push(e)}function Vn(e){bo().$$.on_destroy.push(e)}function yh(){const e=bo();return(r,t,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[r];if(i){const o=Va(r,t,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Oi(e,r){return bo().$$.context.set(e,r),r}function $r(e){return bo().$$.context.get(e)}function Bn(e,r){const t=e.$$.callbacks[r.type];t&&t.slice().forEach(n=>n.call(this,r))}const yo=[],Nr=[];let vo=[];const Da=[],Ta=Promise.resolve();let cl=!1;function Fa(){cl||(cl=!0,Ta.then(Ma))}function Mn(){return Fa(),Ta}function ti(e){vo.push(e)}const fl=new Set;let wo=0;function Ma(){if(wo!==0)return;const e=Oo;do{try{for(;wo<yo.length;){const r=yo[wo];wo++,Lo(r),vh(r.$$)}}catch(r){throw yo.length=0,wo=0,r}for(Lo(null),yo.length=0,wo=0;Nr.length;)Nr.pop()();for(let r=0;r<vo.length;r+=1){const t=vo[r];fl.has(t)||(fl.add(t),t())}vo.length=0}while(yo.length);for(;Da.length;)Da.pop()();cl=!1,fl.clear(),Lo(e)}function vh(e){if(e.fragment!==null){e.update(),nn(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(ti)}}function wh(e){const r=[],t=[];vo.forEach(n=>e.indexOf(n)===-1?r.push(n):t.push(n)),t.forEach(n=>n()),vo=r}let Ro;function dl(){return Ro||(Ro=Promise.resolve(),Ro.then(()=>{Ro=null})),Ro}function eo(e,r,t){e.dispatchEvent(Va(`${r?"intro":"outro"}${t}`))}const as=new Set;let ji;function jr(){ji={r:0,c:[],p:ji}}function Sr(){ji.r||nn(ji.c),ji=ji.p}function Q(e,r){e&&e.i&&(as.delete(e),e.i(r))}function ie(e,r,t,n){if(e&&e.o){if(as.has(e))return;as.add(e),ji.c.push(()=>{as.delete(e),n&&(t&&e.d(1),n())}),e.o(r)}else n&&n()}const hl={duration:0};function us(e,r,t){const n={direction:"in"};let i=r(e,t,n),o=!1,s,a,l=0;function u(){s&&ss(e,s)}function c(){const{delay:_=0,duration:g=300,easing:p=ui,tick:h=M,css:w}=i||hl;w&&(s=os(e,0,1,g,_,p,w,l++)),h(0,1);const A=sl()+_,Y=A+g;a&&a.abort(),o=!0,ti(()=>eo(e,!0,"start")),a=al(x=>{if(o){if(x>=Y)return h(1,0),eo(e,!0,"end"),u(),o=!1;if(x>=A){const J=p((x-A)/g);h(J,1-J)}}return o})}let d=!1;return{start(){d||(d=!0,ss(e),Gr(i)?(i=i(n),dl().then(c)):c())},invalidate(){d=!1},end(){o&&(u(),o=!1)}}}function Pa(e,r,t){const n={direction:"out"};let i=r(e,t,n),o=!0,s;const a=ji;a.r+=1;let l;function u(){const{delay:c=0,duration:d=300,easing:_=ui,tick:g=M,css:p}=i||hl;p&&(s=os(e,1,0,d,c,_,p));const h=sl()+c,w=h+d;ti(()=>eo(e,!1,"start")),"inert"in e&&(l=e.inert,e.inert=!0),al(A=>{if(o){if(A>=w)return g(0,1),eo(e,!1,"end"),--a.r||nn(a.c),!1;if(A>=h){const Y=_((A-h)/d);g(1-Y,Y)}}return o})}return Gr(i)?dl().then(()=>{i=i(n),u()}):u(),{end(c){c&&"inert"in e&&(e.inert=l),c&&i.tick&&i.tick(1,0),o&&(s&&ss(e,s),o=!1)}}}function Na(e,r,t,n){let o=r(e,t,{direction:"both"}),s=n?0:1,a=null,l=null,u=null,c;function d(){u&&ss(e,u)}function _(p,h){const w=p.b-s;return h*=Math.abs(w),{a:s,b:p.b,d:w,duration:h,start:p.start,end:p.start+h,group:p.group}}function g(p){const{delay:h=0,duration:w=300,easing:A=ui,tick:Y=M,css:x}=o||hl,J={start:sl()+h,b:p};p||(J.group=ji,ji.r+=1),"inert"in e&&(p?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),a||l?l=J:(x&&(d(),u=os(e,s,p,w,h,A,x)),p&&Y(0,1),a=_(J,w),ti(()=>eo(e,p,"start")),al(de=>{if(l&&de>l.start&&(a=_(l,w),l=null,eo(e,a.b,"start"),x&&(d(),u=os(e,s,a.b,a.duration,0,A,o.css))),a){if(de>=a.end)Y(s=a.b,1-s),eo(e,a.b,"end"),l||(a.b?d():--a.group.r||nn(a.group.c)),a=null;else if(de>=a.start){const oe=de-a.start;s=a.a+a.d*A(oe/a.duration),Y(s,1-s)}}return!!(a||l)}))}return{run(p){Gr(o)?dl().then(()=>{o=o({direction:p?"in":"out"}),g(p)}):g(p)},end(){d(),a=l=null}}}function yr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function za(e,r){ie(e,1,1,()=>{r.delete(e.key)})}function Oa(e,r,t,n,i,o,s,a,l,u,c,d){let _=e.length,g=o.length,p=_;const h={};for(;p--;)h[e[p].key]=p;const w=[],A=new Map,Y=new Map,x=[];for(p=g;p--;){const W=d(i,o,p),X=t(W);let se=s.get(X);se?x.push(()=>se.p(W,r)):(se=u(X,W),se.c()),A.set(X,w[p]=se),X in h&&Y.set(X,Math.abs(p-h[X]))}const J=new Set,de=new Set;function oe(W){Q(W,1),W.m(a,c),s.set(W.key,W),c=W.first,g--}for(;_&&g;){const W=w[g-1],X=e[_-1],se=W.key,L=X.key;W===X?(c=W.first,_--,g--):A.has(L)?!s.has(se)||J.has(se)?oe(W):de.has(L)?_--:Y.get(se)>Y.get(L)?(de.add(se),oe(W)):(J.add(L),_--):(l(X,s),_--)}for(;_--;){const W=e[_];A.has(W.key)||l(W,s)}for(;g;)oe(w[g-1]);return nn(x),w}function Wi(e,r){const t={},n={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);e[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in t||(t[s]=void 0);return t}function La(e){return typeof e=="object"&&e!==null?e:{}}function sr(e){e&&e.c()}function ur(e,r){e&&e.l(r)}function nr(e,r,t){const{fragment:n,after_update:i}=e.$$;n&&n.m(r,t),ti(()=>{const o=e.$$.on_mount.map(_a).filter(Gr);e.$$.on_destroy?e.$$.on_destroy.push(...o):nn(o),e.$$.on_mount=[]}),i.forEach(ti)}function ir(e,r){const t=e.$$;t.fragment!==null&&(wh(t.after_update),nn(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function kh(e,r){e.$$.dirty[0]===-1&&(yo.push(e),Fa(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function on(e,r,t,n,i,o,s=null,a=[-1]){const l=Oo;Lo(e);const u=e.$$={fragment:null,ctx:[],props:o,update:M,not_equal:i,bound:ga(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:ga(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(e,r.props||{},(d,_,...g)=>{const p=g.length?g[0]:_;return u.ctx&&i(u.ctx[d],u.ctx[d]=p)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](p),c&&kh(e,d)),_}):[],u.update(),c=!0,nn(u.before_update),u.fragment=n?n(u.ctx):!1,r.target){if(r.hydrate){nh();const d=Ve(r.target);u.fragment&&u.fragment.l(d),d.forEach(E)}else u.fragment&&u.fragment.c();r.intro&&Q(e.$$.fragment),nr(e,r.target,r.anchor),ih(),Ma()}Lo(l)}class sn{constructor(){gr(this,"$$");gr(this,"$$set")}$destroy(){ir(this,1),this.$destroy=M}$on(r,t){if(!Gr(t))return M;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(t),()=>{const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!rh(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Eh="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Eh);const ko=[];function Ah(e,r){return{subscribe:ki(e,r).subscribe}}function ki(e,r=M){let t;const n=new Set;function i(a){if(th(e,a)&&(e=a,t)){const l=!ko.length;for(const u of n)u[1](),ko.push(u,e);if(l){for(let u=0;u<ko.length;u+=2)ko[u][0](ko[u+1]);ko.length=0}}}function o(a){i(a(e))}function s(a,l=M){const u=[a,l];return n.add(u),n.size===1&&(t=r(i,o)||M),a(e),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function to(e,r,t){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return Ah(t,(s,a)=>{let l=!1;const u=[];let c=0,d=M;const _=()=>{if(c)return;d();const p=r(n?u[0]:u,s,a);o?s(p):d=Gr(p)?p:M},g=i.map((p,h)=>U(p,w=>{u[h]=w,c&=~(1<<h),l&&_()},()=>{c|=1<<h}));return l=!0,_(),function(){nn(g),d(),l=!1}})}const kr={root_platform_desktop:"divkit-6d515",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:"divkit-82db1",root__selectable:"divkit-be734",root__unselectable:"divkit-9a652","root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},An=Symbol("root");function H(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}const cs={outer:"divkit-bf0ea",outer_width_content:"divkit-bab07",outer_height_content:"divkit-07f20",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57","outer_hide-on-transition-in":"divkit-c5f24","outer_halign-self_start":"divkit-002ec","outer_halign-self_center":"divkit-204f8","outer_halign-self_end":"divkit-bd7ba","outer_halign-self_stretch":"divkit-02d12","outer_valign-self_start":"divkit-fd8aa","outer_valign-self_center":"divkit-62df2","outer_valign-self_end":"divkit-819a0","outer_valign-self_stretch":"divkit-8a331","outer_parent-flex_vertical":"divkit-46b27","outer_parent-flex_horizontal":"divkit-be075","outer_valign-self_baseline":"divkit-2b876","outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_start":"divkit-91fd4","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_end":"divkit-67470",outer__border:"divkit-90c49",outer_visibility_invisible:"divkit-b33bc",outer_visibility_gone:"divkit-f6ff9","outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Zt(e){if(!e)return;let r="";for(const t in e)if(e.hasOwnProperty(t)){if(!e[t]&&e[t]!==0)continue;r&&(r+=";"),r+=t+":"+String(e[t])}return r||void 0}function Be(e){if(typeof e!="number"&&typeof e!="string"||!e)return"0";const r=Number(e);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function rn(e){let r=Be(e);return r==="0"&&(r+="em"),r}function Ra(e,r){for(;e.length<r;)e="0"+e;return e}function Wr(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=ci(e);return n?(n.a*=r,_l(n)):t}function Ch(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=ci(e);return n?(n.a=r,_l(n)):t}function _l(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>Ra(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function ci(e){const r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[u,c,d,_,g]=r,p=d.length===2?d:d+d,h=_.length===2?_:_+_,w=g.length===2?g:g+g,A=c.length===2?c:c+c;return{a:parseInt(A,16),r:parseInt(p,16),g:parseInt(h,16),b:parseInt(w,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,a=i.length===2?i:i+i,l=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function gl(e){let r=String(e);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&amp;")),r.indexOf("<")>-1&&(r=r.replace(/</g,"&lt;")),r.indexOf(">")>-1&&(r=r.replace(/>/g,"&gt;")),r.indexOf('"')>-1&&(r=r.replace(/"/g,"&quot;")),r}const Si=Boolean;function fs(e,r){if(e.length===1&&e[0].type==="solid")return Sh({bg:e[0]});const t=e.map(n=>{if(n.type==="solid")return jh({bg:n});if(n.type==="gradient")return Vh({bg:n});if(n.type==="image")return Th({bg:n,direction:r});if(n.type==="radial_gradient")return Dh({bg:n})}).filter(Si).reverse().reduce(function(n,i){return n.image.push(i.image),n.size.push(i.size||"auto"),n.position.push(i.pos||"50% 50%"),n},{image:[],size:[],position:[]});return{image:t.image.join(","),size:t.size.join(","),position:t.position.join(",")}}function jh(e){const r=Wr(e.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function Sh(e){return{color:Wr(e.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Ba(e){return e.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?e.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Wr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function Vh(e){var n,i,o,s;if(!Array.isArray((n=e.bg)==null?void 0:n.colors)&&!Array.isArray((i=e.bg)==null?void 0:i.color_map))return;const r=(o=e.bg.colors)==null?void 0:o.filter(Si);if(!(r!=null&&r.length)&&!((s=e.bg)!=null&&s.color_map))return;let t;if(e.bg.color_map){const a=Ba(e.bg.color_map);if(!a)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+r.map(a=>Wr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:t}}const Ih={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ha(e){if(e&&typeof e=="object"&&"type"in e&&e.value!==void 0){if(e.type==="fixed")return rn(e.value);if(e.type==="relative")return`${Number(e.value)*100}%`}return"50%"}function Dh(e){var a,l,u,c;if(!Array.isArray((a=e.bg)==null?void 0:a.colors)&&!Array.isArray((l=e.bg)==null?void 0:l.color_map))return;const r=(u=e.bg.colors)==null?void 0:u.filter(Si);if(!(r!=null&&r.length)&&!((c=e.bg)!=null&&c.color_map))return;let t;if(e.bg.color_map?t=Ba(e.bg.color_map):r&&(t=r.map(d=>Wr(d)).join(",")),!t)return;const n=e.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=rn(n.value):n.type==="relative"&&(i=Ih[n.value]));const o=Ha(e.bg.center_x),s=Ha(e.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+t+")"}}function Th(e){var t;const r=(t=e.bg)==null?void 0:t.image_url;if(r)return{size:Wa(e.bg.scale),pos:Ua(e.bg,e.direction),image:'url("'+gl(r)+'")'}}function Wa(e){return e==="fit"?"contain":e==="stretch"?"fill":e==="no_scale"?"none":"cover"}function Fh(e){return e==="none"?"auto":e==="fill"?"100% 100%":e}function Ua(e,r){let t,n;return e.content_alignment_horizontal==="left"||r==="ltr"&&e.content_alignment_horizontal==="start"||r==="rtl"&&e.content_alignment_horizontal==="end"?t="0%":e.content_alignment_horizontal==="right"||r==="ltr"&&e.content_alignment_horizontal==="end"||r==="rtl"&&e.content_alignment_horizontal==="start"?t="100%":t="50%",e.content_alignment_vertical==="top"?n="0%":e.content_alignment_vertical==="bottom"?n="100%":n="50%",t+" "+n}function an(e,r){const t=Number(e);return Number.isNaN(t)||t<0?r:t}function Ga(e,r,t){return typeof r=="number"&&(e&&r>0&&r<=100||!e&&r>=0&&r<100)?r:t}function Mh(e){return e.is_enabled!==0&&e.is_enabled!==!1&&e.index!==void 0}function Ph(e,{visibilityActions:r,disappearActions:t,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(g=>{o.push({type:"visibility",index:o.length,action:g,visible:!1,count:0,finished:!1})}),t&&t.forEach(g=>{o.push({type:"disappear",index:o.length,action:g,visible:!1,count:0,finished:!1})});const s=o.map((g,p)=>{const h=g.type==="visibility";return i.getDerivedFromVars({index:p,visibility_percentage:g.action.visibility_percentage,visibility_duration:h?g.action.visibility_duration:g.action.disappear_duration,log_limit:g.action.log_limit,is_enabled:g.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(g=>{g.timer&&clearTimeout(g.timer)})},u=to(s,g=>g);let c;const d=g=>{const p=g.type==="visibility";i.execAnyActions([g.action],{logType:p?"visible":"disappear",node:e,processUrls:!1})},_=u.subscribe(g=>{c=g.filter(Mh);const p={};c.forEach(A=>{p[A.index]=A}),l();const h=[...new Set(c.map(A=>{const Y=o[A.index].type==="visibility";return Ga(Y,A.visibility_percentage,Y?50:0)/100}))];if(!h.length)return;const w=A=>{A.forEach(Y=>{c.forEach(x=>{const J=o[x.index],de=J.type==="visibility",oe=Ga(de,x.visibility_percentage,de?50:0);let W;oe===0?W=Y.intersectionRatio>=1e-12:W=Y.intersectionRatio>=oe/100,(de?!J.visible&&W:J.visible&&!W)?J.finished||(J.timer=setTimeout(()=>{++J.count;const L=x.log_limit===0?1/0:x.log_limit||1;J.count>=L&&(J.finished=!0),d(J)},an(x.visibility_duration,800))):(de?!W:W)&&J.timer&&clearTimeout(J.timer),J.visible=W})})};a=new IntersectionObserver(w,{threshold:h}),a.observe(e)});return{destroy(){c==null||c.forEach(g=>{const p=o[g.index];!p||p.type!=="disappear"||!p.visible||p.finished||n.registerTimeout(window.setTimeout(()=>{d(p)},g.visibility_duration))}),l(),_()}}}function Ya(e,r){r&&e.push(r)}function Vt(e,r,t){const n=[];Ya(n,r[e]);for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];if(o){const s=`${e}_${i}`+(typeof o=="string"?`_${o}`:"");Ya(n,r[s])}}return n.join(" ")}const pl=Symbol("state");function fi(e,r){var s,a;const t=e.top||0,n=((s=r==="ltr"?e.end:e.start)!=null?s:e.right)||0,i=e.bottom||0,o=((a=r==="ltr"?e.start:e.end)!=null?a:e.left)||0;return t===0&&n===0&&i===0&&o===0?"":Be(t)+" "+Be(n)+" "+Be(i)+" "+Be(o)}function Eo(e){if(typeof e!="number"&&typeof e!="string")return!1;const r=Number(e);return!Number.isNaN(r)}function Yn(e){return Eo(e)&&e>=0}function ds(e,r,t){var i,o;if(!e)return t;const n=[e.top,(i=r==="ltr"?e.end:e.start)!=null?i:e.right,e.bottom,(o=r==="ltr"?e.start:e.end)!=null?o:e.left];for(let s=0;s<n.length;++s)if(n[s]&&!Yn(n[s]))return t;return fi(e,r)}function Nh(e,r){return!Yn(e)||e===void 0||e>1?r:Number(e)}const zh=Object.prototype.hasOwnProperty;function Ao(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return Object.is(e,r);const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){const o=t[i];if(!zh.call(r,o)||!Ao(e[o],r[o]))return!1}return!0}function Ui(e,r){return Ao(e,r)?r:e}function Oh(e,r){return e==="visible"||e==="invisible"||e==="gone"?e:r}function qa(e,r){return e==="linear"||e==="ease"||e==="ease_in_out"||e==="ease_in"||e==="ease_out"?e:r}function hs(e,r){const t=Number(e);return Number.isNaN(t)?r:t}function Bo(e){const r=[];return e.name==="set"?(e.items||[]).forEach(t=>{r.push(...Bo(t))}):r.push(e),r}function ro(e,r){if(!e||typeof e!="object")return r;const t=["top","right","bottom","left"];for(let n=0;n<t.length;++n)if(e[t[n]]&&!Yn(e[t[n]]))return r;return e}function Lh(e,r){if(!e&&!r)return{};if(!r)return e;if(!e)return r;const t={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=e[n];i&&(t[n]=i);const o=r[n];o&&(t[n]=(t[n]||0)+o)}),t}function Rh(e,r){const t=[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]];for(let n=0;n<t.length;++n)if(t[n]&&!Yn(t[n]))return r;return e}function _s(e,r=0,t=10){return[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]].map(n=>Be((n||r)/t*10)).join(" ")}function Bh(e){var r,t,n,i,o,s;return Be(((t=(r=e.offset)==null?void 0:r.x)==null?void 0:t.value)||0)+" "+Be(((i=(n=e.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Be((o=e.blur)!=null?o:2)+" "+Wr(e.color||"#000000",(s=e.alpha)!=null?s:.19)}function Hh(e,r){var t,n,i,o,s,a;return"drop-shadow("+Wr(e.color||"#000000",(t=e.alpha)!=null?t:.19)+" "+Be((((i=(n=e.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Be((((s=(o=e.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Be(((a=e.blur)!=null?a:2)*10/r)+")"}let ml;function no(){return typeof matchMedia>"u"?!1:(ml||(ml=window.matchMedia("(prefers-reduced-motion)")),ml.matches)}const Wh=8,Uh=(e,r,t,n)=>{let i;return(t||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(u,c)=>{if(u){const d=r.getVariable(u,"integer");if(d){if(c=Math.round(c),s[u]||(s[u]=new Set),!s[u].has(c))return d.setValue(c),s[u].add(c),!0}else{const _=new Error("Missing variable");_.level="error",_.additional={variableName:u},r.logError(_)}}return!1},l=()=>{if(!e)return!1;const u=e.getBoundingClientRect(),c=a(t,u.width),d=a(n,u.height);return c||d};for(;l();){if(++o>Wh){const u=new Error("Recursive layout in size_provider");u.level="warn",u.additional={widthVariableName:t,heightVariableName:n},r.logError(u);break}await Mn()}}),i.observe(e)),i},bl=Symbol("enabled");function Hn(e,r){return e===1||e===0||e===!1||e===!0?!!e:r}function Co(e){return[e.state_description,e.description,e.hint].filter(Boolean).join(", ")}const Ka=1,Gi=2;function Ja(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="translation-fixed")return Be(e.value*r);if(e.type==="translation-percentage")return`${e.value*r}%`}}function gs(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="pivot-fixed")return Be(e.value*r);if(e.type==="pivot-percentage")return`${e.value*r}%`}}function Gh(e){return e.map(r=>{if(r.type==="rotation"){if(typeof r.angle=="number"){const t=gs(r.pivot_x)||"50%",n=gs(r.pivot_y)||"50%",i=gs(r.pivot_x,-1)||"-50%",o=gs(r.pivot_y,-1)||"-50%";return`translate(${t}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`}}else if(r.type==="translation"){const t=Ja(r.x)||0,n=Ja(r.y)||0;return`translate(${t}, ${n})`}}).filter(Boolean).join(" ")}const yl=Symbol("visibility"),Xa={actionable__button:"divkit-ee5cc"};function Yh(){}const io=Symbol("action");function vl(e){if(e.startsWith("tel:"))return"tel";if(e.startsWith("/"))return"https";const r=/^([^/]+):\/\//.exec(e);return r&&r[1]||""}function wl(e,r){return r.has(e)}function qh(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Qo(a,e,e[29],null);let u=[{class:t=e[2]+" "+((d=e[1])!=null&&d.length?kr["root_disabled-context-menu"]:"")+" "+(e[13]?kr["root__any-actions"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{"aria-hidden":n=e[11]||void 0},e[4]],c={};for(let _=0;_<u.length;_+=1)c=ei(c,u[_]);return{c(){r=Pe("span"),l&&l.c(),this.h()},l(_){r=Le(_,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var g=Ve(r);l&&l.l(g),g.forEach(E),this.h()},h(){vi(r,c)},m(_,g){ee(_,r,g),l&&l.m(r,null),e[48](r),i=!0,o||(s=[ts(e[5].call(null,r)),Oe(r,"click",e[41]),Oe(r,"keydown",e[16]),Oe(r,"focus",e[42]),Oe(r,"blur",e[43]),Oe(r,"pointerdown",e[44]),Oe(r,"wheel",e[45])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&$o(l,a,_,_[29],i?xo(a,_[29],g,null):es(_[29]),null),vi(r,c=Wi(u,[(!i||g[0]&8198&&t!==(t=_[2]+" "+((p=_[1])!=null&&p.length?kr["root_disabled-context-menu"]:"")+" "+(_[13]?kr["root__any-actions"]:"")))&&{class:t},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},(!i||g[0]&2048&&n!==(n=_[11]||void 0))&&{"aria-hidden":n},g[0]&16&&_[4]]))},i(_){i||(Q(l,_),i=!0)},o(_){ie(l,_),i=!1},d(_){_&&E(r),l&&l.d(_),e[48](null),o=!1,nn(s)}}}function Kh(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Qo(a,e,e[29],null);let u=[{class:t=e[2]+" "+Xa.actionable__button+" "+kr["root__any-actions"]+` ${e[6]?kr.root__clickable:kr["root__clickable-no-transition"]} ${kr.root__unselectable} `+((d=e[1])!=null&&d.length?kr["root_disabled-context-menu"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{type:"button"},{tabindex:n=e[0].fakeElement===Gi?-1:null},e[4]],c={};for(let _=0;_<u.length;_+=1)c=ei(c,u[_]);return{c(){r=Pe("button"),l&&l.c(),this.h()},l(_){r=Le(_,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0,tabindex:!0});var g=Ve(r);l&&l.l(g),g.forEach(E),this.h()},h(){vi(r,c)},m(_,g){ee(_,r,g),l&&l.m(r,null),r.autofocus&&r.focus(),e[47](r),i=!0,o||(s=[ts(e[5].call(null,r)),Oe(r,"click",e[36]),Oe(r,"keydown",e[16]),Oe(r,"focus",e[37]),Oe(r,"blur",e[38]),Oe(r,"pointerdown",e[39]),Oe(r,"wheel",e[40])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&$o(l,a,_,_[29],i?xo(a,_[29],g,null):es(_[29]),null),vi(r,c=Wi(u,[(!i||g[0]&70&&t!==(t=_[2]+" "+Xa.actionable__button+" "+kr["root__any-actions"]+` ${_[6]?kr.root__clickable:kr["root__clickable-no-transition"]} ${kr.root__unselectable} `+((p=_[1])!=null&&p.length?kr["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},{type:"button"},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Gi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(Q(l,_),i=!0)},o(_){ie(l,_),i=!1},d(_){_&&E(r),l&&l.d(_),e[47](null),o=!1,nn(s)}}}function Jh(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Qo(a,e,e[29],null);let u=[{href:e[8]},{target:e[12]},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{class:t=e[2]+" "+kr["root__any-actions"]+" "+(e[6]?kr.root__clickable:kr["root__clickable-no-transition"])+" "+((d=e[1])!=null&&d.length?kr["root_disabled-context-menu"]:"")},{tabindex:n=e[0].fakeElement===Gi?-1:null},e[4]],c={};for(let _=0;_<u.length;_+=1)c=ei(c,u[_]);return{c(){r=Pe("a"),l&&l.c(),this.h()},l(_){r=Le(_,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0,tabindex:!0});var g=Ve(r);l&&l.l(g),g.forEach(E),this.h()},h(){vi(r,c)},m(_,g){ee(_,r,g),l&&l.m(r,null),e[46](r),i=!0,o||(s=[ts(e[5].call(null,r)),Oe(r,"click",e[31]),Oe(r,"keydown",e[16]),Oe(r,"focus",e[32]),Oe(r,"blur",e[33]),Oe(r,"pointerdown",e[34]),Oe(r,"wheel",e[35])],o=!0)},p(_,g){var p;l&&l.p&&(!i||g[0]&536870912)&&$o(l,a,_,_[29],i?xo(a,_[29],g,null):es(_[29]),null),vi(r,c=Wi(u,[(!i||g[0]&256)&&{href:_[8]},(!i||g[0]&4096)&&{target:_[12]},(!i||g[0]&8)&&{style:_[3]},(!i||g[0]&1024)&&{role:_[10]},(!i||g[0]&16384)&&{"aria-checked":_[14]},(!i||g[0]&70&&t!==(t=_[2]+" "+kr["root__any-actions"]+" "+(_[6]?kr.root__clickable:kr["root__clickable-no-transition"])+" "+((p=_[1])!=null&&p.length?kr["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&1&&n!==(n=_[0].fakeElement===Gi?-1:null))&&{tabindex:n},g[0]&16&&_[4]]))},i(_){i||(Q(l,_),i=!0)},o(_){ie(l,_),i=!1},d(_){_&&E(r),l&&l.d(_),e[46](null),o=!1,nn(s)}}}function Xh(e){let r,t,n,i;const o=[Jh,Kh,qh],s=[];function a(l,u){return l[8]?0:l[9]?1:2}return r=a(e),t=s[r]=o[r](e),{c(){t.c(),n=$e()},l(l){t.l(l),n=$e()},m(l,u){s[r].m(l,u),ee(l,n,u),i=!0},p(l,u){let c=r;r=a(l),r===c?s[r].p(l,u):(jr(),ie(s[c],1,1,()=>{s[c]=null}),Sr(),t=s[r],t?t.p(l,u):(t=s[r]=o[r](l),t.c()),Q(t,1),t.m(n.parentNode,n))},i(l){i||(Q(t),i=!0)},o(l){ie(t),i=!1},d(l){l&&E(n),s[r].d(l)}}}const Za=8,Qa=400,kl=400,Zh=new Set(["button","image","checkbox","radio","header"]);function xa(e){e.preventDefault()}function Qh(e,r,t){let n,i,o=M,s=()=>(o(),o=U(n,R=>t(28,i=R)),n);e.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:u}=r,{id:c=""}=r,{actions:d=void 0}=r,{doubleTapActions:_=void 0}=r,{longTapActions:g=void 0}=r,{pressStartActions:p=void 0}=r,{pressEndActions:h=void 0}=r,{hoverStartActions:w=void 0}=r,{hoverEndActions:A=void 0}=r,{cls:Y=""}=r,{style:x=null}=r,{attrs:J=void 0}=r,{use:de=Yh}=r,{customAction:oe=null}=r,{isNativeActionAnimation:W=!0}=r,{hasInnerFocusable:X=!1}=r,{customAccessibility:se=void 0}=r,{captureFocusOnAction:L=!0}=r;const N=$r(An),F=$r(io);Oi(io,{hasAction(){return!!(F.hasAction()||d!=null&&d.length||(se==null?void 0:se.mode)==="exclude")}});let z,be="",Ye,ke=-1,qe=-1,ye=null,je=!1,Ue=!1,mt=!1,rt,ve,xe,Ot,ge=!1;function Re(){return(i==null?void 0:i.some(R=>{if(R!=null&&R.typed)return!0;const He=R==null?void 0:R.url;if(!He)return!1;const Et=vl(He);return Et&&!wl(Et,N.getBuiltinProtocols())}))||!1}async function Ee(R,He){d&&(R&&Re()&&R.preventDefault(),u.execAnyActions(d,{node:z,processUrls:He}))}async function te(R){if(F.hasAction()||R.button!==void 0&&R.button!==0)return;const He=Date.now();if(ke>0&&He>ke+Qa){R.preventDefault();return}if(_!=null&&_.length&&qe>0&&He-qe<kl){R.preventDefault(),u.execAnyActions(_,{processUrls:!0,node:z}),qe=-1;return}if(qe=He,_!=null&&_.length&&ke>0&&He<ke+kl){R.preventDefault(),clearTimeout(ve),ve=window.setTimeout(()=>{Ee(void 0,!0)},kl);return}(oe==null?void 0:oe(R))===!1?R.preventDefault():Ee(R,!1)}function Ke(R){F.hasAction()||(ye={x:R.clientX,y:R.clientY},je=!1,ke=Date.now(),rt&&clearTimeout(rt),clearTimeout(ve),u.execAnyActions(p,{node:z}))}function ut(R){ye&&(Math.abs(ye.x-R.clientX)>Za||Math.abs(ye.y-R.clientY)>Za)&&(je=!0)}function Ie(R){F.hasAction()||!ye||ke<0||(!je&&Date.now()-ke>=Qa&&(R.stopImmediatePropagation(),u.execAnyActions(g,{processUrls:!0,node:z})),rt&&clearTimeout(rt),rt=window.setTimeout(()=>{ye=null,ke=-1},100),u.execAnyActions(h,{node:z}))}function It(){F.hasAction()||u.execAnyActions(w,{node:z})}function lt(){F.hasAction()||u.execAnyActions(A,{node:z})}function q(R){const He=R.target;He instanceof HTMLElement&&(He.tagName==="INPUT"||He.contentEditable==="true")||R.ctrlKey||R.metaKey||R.altKey||R.shiftKey||R.key==="Enter"&&Array.isArray(d)&&d.length&&(u.execAnyActions(d),R.preventDefault())}si(()=>{c&&!X&&u.attachViewInfo("focus",()=>{z&&(be||Ue)&&z.focus()})}),Vn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",ut),window.removeEventListener("pointerup",Ie),window.removeEventListener("pointercancel",Ie)),c&&!X&&u.detachViewInfo("focus"),rt&&clearTimeout(rt),ve&&clearTimeout(ve)});function ft(R){Bn.call(this,e,R)}function Kt(R){Bn.call(this,e,R)}function Qe(R){Bn.call(this,e,R)}function De(R){Bn.call(this,e,R)}function Bt(R){Bn.call(this,e,R)}function ot(R){Bn.call(this,e,R)}function ht(R){Bn.call(this,e,R)}function Ir(R){Bn.call(this,e,R)}function Nt(R){Bn.call(this,e,R)}function qt(R){Bn.call(this,e,R)}function Ne(R){Bn.call(this,e,R)}function le(R){Bn.call(this,e,R)}function Se(R){Bn.call(this,e,R)}function Yt(R){Bn.call(this,e,R)}function at(R){Bn.call(this,e,R)}function Fe(R){Nr[R?"unshift":"push"](()=>{z=R,t(7,z)})}function hr(R){Nr[R?"unshift":"push"](()=>{z=R,t(7,z)})}function ze(R){Nr[R?"unshift":"push"](()=>{z=R,t(7,z)})}return e.$$set=R=>{"componentContext"in R&&t(0,u=R.componentContext),"id"in R&&t(17,c=R.id),"actions"in R&&t(18,d=R.actions),"doubleTapActions"in R&&t(19,_=R.doubleTapActions),"longTapActions"in R&&t(1,g=R.longTapActions),"pressStartActions"in R&&t(20,p=R.pressStartActions),"pressEndActions"in R&&t(21,h=R.pressEndActions),"hoverStartActions"in R&&t(22,w=R.hoverStartActions),"hoverEndActions"in R&&t(23,A=R.hoverEndActions),"cls"in R&&t(2,Y=R.cls),"style"in R&&t(3,x=R.style),"attrs"in R&&t(4,J=R.attrs),"use"in R&&t(5,de=R.use),"customAction"in R&&t(24,oe=R.customAction),"isNativeActionAnimation"in R&&t(6,W=R.isNativeActionAnimation),"hasInnerFocusable"in R&&t(25,X=R.hasInnerFocusable),"customAccessibility"in R&&t(26,se=R.customAccessibility),"captureFocusOnAction"in R&&t(27,L=R.captureFocusOnAction),"$$scope"in R&&t(29,l=R.$$scope)},e.$$.update=()=>{if(e.$$.dirty[0]&67108864&&t(11,ge=(se==null?void 0:se.mode)==="exclude"),e.$$.dirty[0]&262145&&s(t(15,n=u.getDerivedFromVars(d,void 0,!0))),e.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let R=0;R<i.length;++R){const He=i[R].url;if(He){t(8,be=He),t(12,Ye=i[R].target||void 0);break}}t(9,Ue=!!oe),(be||Array.isArray(i)&&(i!=null&&i.length))&&(F.hasAction()||ge)?(t(8,be=""),u.logError(H(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):be&&!wl(vl(be),N.getBuiltinProtocols())?(t(8,be=""),t(9,Ue=!0)):!be&&Array.isArray(i)&&(i!=null&&i.length)&&(t(9,Ue=!0),i.some(R=>R.url||R.typed||R.menu_items)||u.logError(H(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}e.$$.dirty[0]&67110656&&(se!=null&&se.type&&Zh.has(se.type)?se.type==="header"?t(10,xe="heading"):se.type==="image"?t(10,xe="img"):t(10,xe=se.type):be?t(10,xe=void 0):Ue&&t(10,xe="button"),(xe==="checkbox"||xe==="radio")&&typeof(se==null?void 0:se.is_checked)=="boolean"?t(14,Ot=se.is_checked):t(14,Ot=void 0)),e.$$.dirty[0]&150471554&&z&&(be||Ue||_!=null&&_.length?z.addEventListener("click",te):z.removeEventListener("click",te),_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length?(z.addEventListener("pointerdown",Ke,{passive:!0}),window.addEventListener("pointermove",ut,{passive:!0}),window.addEventListener("pointerup",Ie,{passive:!0}),window.addEventListener("pointercancel",Ie,{passive:!0})):(z.removeEventListener("pointerdown",Ke),window.removeEventListener("pointerup",Ie),window.removeEventListener("pointermove",ut),window.removeEventListener("pointercancel",Ie)),w!=null&&w.length?z.addEventListener("pointerenter",It):z.removeEventListener("pointerenter",It),A!=null&&A.length?z.addEventListener("pointerleave",lt):z.removeEventListener("pointerleave",lt),L===!1?z.addEventListener("mousedown",xa):z.removeEventListener("mousedown",xa),t(13,mt=!!(be||Ue||_!=null&&_.length||g!=null&&g.length||p!=null&&p.length||h!=null&&h.length||w!=null&&w.length||A!=null&&A.length)))},[u,g,Y,x,J,de,W,z,be,Ue,xe,ge,Ye,mt,Ot,n,q,c,d,_,p,h,w,A,oe,X,se,L,i,l,a,ft,Kt,Qe,De,Bt,ot,ht,Ir,Nt,qt,Ne,le,Se,Yt,at,Fe,hr,ze]}class ps extends sn{constructor(r){super(),on(this,r,Qh,Xh,Hr,{componentContext:0,id:17,actions:18,doubleTapActions:19,longTapActions:1,pressStartActions:20,pressEndActions:21,hoverStartActions:22,hoverEndActions:23,cls:2,style:3,attrs:4,use:5,customAction:24,isNativeActionAnimation:6,hasInnerFocusable:25,customAccessibility:26,captureFocusOnAction:27},null,[-1,-1,-1])}}const oo={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Xn(e){return Eo(e)&&e>0}function $a(e,r){return e.map(t=>{if(!t){r(H(new Error("Incorrect filter"),{level:"warn"}));return}if(t.type==="blur"){if(Xn(t.radius))return`blur(${rn(t.radius/2)})`}else{if(t.type==="rtl_mirror")return;r(H(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}}).filter(Boolean).join(" ")}function eu(e,r,t){const n=e.slice();return n[6]=r[t],n}function xh(e){let r,t;return{c(){r=Pe("span"),this.h()},l(n){r=Le(n,"SPAN",{class:!0,style:!0}),Ve(r).forEach(E),this.h()},h(){y(r,"class",oo["outer-background__item"]),y(r,"style",t=Zt(e[6].style))},m(n,i){ee(n,r,i)},p(n,i){i&2&&t!==(t=Zt(n[6].style))&&y(r,"style",t)},d(n){n&&E(r)}}}function $h(e){let r,t,n,i,o;return{c(){r=Pe("img"),this.h()},l(s){r=Le(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){yi(r.src,t=e[6].image_url)||y(r,"src",t),y(r,"alt",""),y(r,"aria-hidden","true"),y(r,"loading","lazy"),y(r,"decoding","async"),y(r,"class",oo["outer-background__item"]),y(r,"style",n=Zt(e[6].style))},m(s,a){ee(s,r,a),i||(o=Oe(r,"error",e[2]),i=!0)},p(s,a){a&2&&!yi(r.src,t=s[6].image_url)&&y(r,"src",t),a&2&&n!==(n=Zt(s[6].style))&&y(r,"style",n)},d(s){s&&E(r),i=!1,o()}}}function tu(e){let r;function t(o,s){return o[6].image_url?$h:xh}let n=t(e),i=n(e);return{c(){i.c(),r=$e()},l(o){i.l(o),r=$e()},m(o,s){i.m(o,s),ee(o,r,s)},p(o,s){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&E(r),i.d(o)}}}function e_(e){let r,t,n=yr(e[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=tu(eu(e,n,o));return{c(){r=Pe("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Le(o,"SPAN",{class:!0});var s=Ve(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(E),this.h()},h(){y(r,"class",t=oo["outer-background"]+(e[0]?" "+oo["outer-background_clip"]:"")),K(r,"border-radius",e[0])},m(o,s){ee(o,r,s);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(r,null)},p(o,[s]){if(s&6){n=yr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=eu(o,n,a);i[a]?i[a].p(l,s):(i[a]=tu(l),i[a].c(),i[a].m(r,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}s&1&&t!==(t=oo["outer-background"]+(o[0]?" "+oo["outer-background_clip"]:""))&&y(r,"class",t),s&1&&K(r,"border-radius",o[0])},i:M,o:M,d(o){o&&E(r),Sn(i,o)}}}function t_(e,r,t){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(u){u.target&&"classList"in u.target&&u.target.classList.add(oo["outer-background__item_hidden"])}return e.$$set=u=>{"direction"in u&&t(3,i=u.direction),"componentContext"in u&&t(4,o=u.componentContext),"background"in u&&t(5,s=u.background),"radius"in u&&t(0,a=u.radius)},e.$$.update=()=>{e.$$.dirty&56&&t(1,n=s.map(u=>{const c={},d={style:c};if(u.type==="nine_patch_image"&&u.insets)c["border-image"]=`url("${u.image_url}") ${u.insets.top||0} ${u.insets.right||0} ${u.insets.bottom||0} ${u.insets.left||0} fill`,c["border-image-width"]="auto";else{const _=fs([u],i);u.type==="solid"&&(c["background-color"]=_.color),u.type==="gradient"&&(c["background-image"]=_.image),u.type==="image"&&(c.opacity=Number(u.alpha),d.image_url=u.image_url,c["object-fit"]=_.size,c["object-position"]=_.position,Array.isArray(u.filters)&&u.filters.length&&(c.filter=$a(u.filters,o.logError),i==="rtl"&&u.filters.some(g=>g.type==="rtl_mirror")&&(c.transform="scale(-1,1)")))}return d}))},[a,n,l,i,o,s]}class r_ extends sn{constructor(r){super(),on(this,r,t_,e_,Hr,{direction:3,componentContext:4,background:5,radius:0})}}const n_=e=>({hasCustomFocus:e[0]&4096,widthMin:e[0]&32,widthMax:e[0]&64,heightMin:e[0]&128,heightMax:e[0]&256}),ru=e=>({focusHandler:e[50],blurHandler:e[51],hasCustomFocus:e[12],widthMin:e[5],widthMax:e[6],heightMin:e[7],heightMax:e[8]});function nu(e){let r,t;return r=new ps({props:{componentContext:e[0],id:e[0].json.id,use:e[49],cls:e[1]+" "+Vt("outer",cs,e[29]),style:Zt(e[28]),actions:e[20],doubleTapActions:e[21],longTapActions:e[22],pressStartActions:e[23],pressEndActions:e[24],hoverStartActions:e[25],hoverEndActions:e[26],attrs:e[15],hasInnerFocusable:e[2],isNativeActionAnimation:!e[11].length||su(e[11]),customAccessibility:e[14],captureFocusOnAction:e[27],$$slots:{default:[i_]},$$scope:{ctx:e}}}),r.$on("focus",e[50]),r.$on("blur",e[51]),r.$on("pointerdown",e[129]),r.$on("wheel",e[130]),{c(){sr(r.$$.fragment)},l(n){ur(r.$$.fragment,n)},m(n,i){nr(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&536870914&&(o.cls=n[1]+" "+Vt("outer",cs,n[29])),i[0]&268435456&&(o.style=Zt(n[28])),i[0]&1048576&&(o.actions=n[20]),i[0]&2097152&&(o.doubleTapActions=n[21]),i[0]&4194304&&(o.longTapActions=n[22]),i[0]&8388608&&(o.pressStartActions=n[23]),i[0]&16777216&&(o.pressEndActions=n[24]),i[0]&33554432&&(o.hoverStartActions=n[25]),i[0]&67108864&&(o.hoverEndActions=n[26]),i[0]&32768&&(o.attrs=n[15]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&2048&&(o.isNativeActionAnimation=!n[11].length||su(n[11])),i[0]&16384&&(o.customAccessibility=n[14]),i[0]&134217728&&(o.captureFocusOnAction=n[27]),i[0]&145401|i[4]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(Q(r.$$.fragment,n),t=!0)},o(n){ie(r.$$.fragment,n),t=!1},d(n){ir(r,n)}}}function iu(e){let r,t;return r=new r_({props:{componentContext:e[0],direction:e[13],background:e[9],radius:e[4]}}),{c(){sr(r.$$.fragment)},l(n){ur(r.$$.fragment,n)},m(n,i){nr(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&8192&&(o.direction=n[13]),i[0]&512&&(o.background=n[9]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){t||(Q(r.$$.fragment,n),t=!0)},o(n){ie(r.$$.fragment,n),t=!1},d(n){ir(r,n)}}}function ou(e){let r,t;return{c(){r=Pe("span"),this.h()},l(n){r=Le(n,"SPAN",{class:!0,style:!0}),Ve(r).forEach(E),this.h()},h(){y(r,"class",cs.outer__border),y(r,"style",t=Zt(e[3]))},m(n,i){ee(n,r,i)},p(n,i){i[0]&8&&t!==(t=Zt(n[3]))&&y(r,"style",t)},d(n){n&&E(r)}}}function i_(e){let r,t,n,i=e[10]&&iu(e);const o=e[128].default,s=Qo(o,e,e[131],ru);let a=e[17]&&ou(e);return{c(){i&&i.c(),r=$e(),s&&s.c(),a&&a.c(),t=$e()},l(l){i&&i.l(l),r=$e(),s&&s.l(l),a&&a.l(l),t=$e()},m(l,u){i&&i.m(l,u),ee(l,r,u),s&&s.m(l,u),a&&a.m(l,u),ee(l,t,u),n=!0},p(l,u){l[10]?i?(i.p(l,u),u[0]&1024&&Q(i,1)):(i=iu(l),i.c(),Q(i,1),i.m(r.parentNode,r)):i&&(jr(),ie(i,1,1,()=>{i=null}),Sr()),s&&s.p&&(!n||u[0]&4576|u[4]&128)&&$o(s,o,l,l[131],n?xo(o,l[131],u,n_):es(l[131]),ru),l[17]?a?a.p(l,u):(a=ou(l),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i(l){n||(Q(i),Q(s,l),n=!0)},o(l){ie(i),ie(s,l),n=!1},d(l){l&&(E(r),E(t)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function o_(e){let r,t,n=!e[18]&&!e[19]&&nu(e);return{c(){n&&n.c(),r=$e()},l(i){n&&n.l(i),r=$e()},m(i,o){n&&n.m(i,o),ee(i,r,o),t=!0},p(i,o){!i[18]&&!i[19]?n?(n.p(i,o),o[0]&786432&&Q(n,1)):(n=nu(i),n.c(),Q(n,1),n.m(r.parentNode,r)):n&&(jr(),ie(n,1,1,()=>{n=null}),Sr())},i(i){t||(Q(n),t=!0)},o(i){ie(n),t=!1},d(i){i&&E(r),n&&n.d(i)}}}const s_={left:"start",center:"center",right:"end",start:"start",end:"end"},l_={left:"end",center:"center",right:"start",start:"start",end:"end"},a_={top:"start",center:"center",bottom:"end",baseline:"baseline"},El=e=>`The component id with the "${e}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function su(e){return e.some(r=>r.name==="native")}function u_(e,r,t){let n,i,o,s,a,l,u,c,d,_,g,p,h,w,A,Y,x,J,de,oe,W,X,se,L,N,F,z=M,be=()=>(z(),z=U(A,We=>t(110,F=We)),A),Ye,ke=M,qe=()=>(ke(),ke=U(Y,We=>t(111,Ye=We)),Y),ye,je=M,Ue=()=>(je(),je=U(en,We=>t(112,ye=We)),en),mt,rt,ve=M,xe=()=>(ve(),ve=U(w,We=>t(114,rt=We)),w),Ot,ge=M,Re=()=>(ge(),ge=U(x,We=>t(115,Ot=We)),x),Ee,te=M,Ke=()=>(te(),te=U(h,We=>t(116,Ee=We)),h),ut,Ie,It=M,lt=()=>(It(),It=U(p,We=>t(117,Ie=We)),p),q,ft=M,Kt=()=>(ft(),ft=U(i,We=>t(118,q=We)),i),Qe,De=M,Bt=()=>(De(),De=U(g,We=>t(14,Qe=We)),g),ot,ht=M,Ir=()=>(ht(),ht=U(_,We=>t(119,ot=We)),_),Nt,qt=M,Ne=()=>(qt(),qt=U(d,We=>t(120,Nt=We)),d),le,Se=M,Yt=()=>(Se(),Se=U(c,We=>t(121,le=We)),c),at,Fe=M,hr=()=>(Fe(),Fe=U(a,We=>t(122,at=We)),a),ze,R=M,He=()=>(R(),R=U(u,We=>t(123,ze=We)),u),Et,_e=M,dt=()=>(_e(),_e=U(l,We=>t(124,Et=We)),l),bt,Pt=M,_t=()=>(Pt(),Pt=U(s,We=>t(125,bt=We)),s),Ae,St=M,At=()=>(St(),St=U(o,We=>t(126,Ae=We)),o),Lt;e.$$.on_destroy.push(()=>z()),e.$$.on_destroy.push(()=>ke()),e.$$.on_destroy.push(()=>je()),e.$$.on_destroy.push(()=>ve()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>It()),e.$$.on_destroy.push(()=>ft()),e.$$.on_destroy.push(()=>De()),e.$$.on_destroy.push(()=>ht()),e.$$.on_destroy.push(()=>qt()),e.$$.on_destroy.push(()=>Se()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>P