@divkitframework/divkit
Version:
DivKit for the web
8 lines • 438 kB
JavaScript
/*!
DivKit v31.12.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/(function(){"use strict";var my=Object.defineProperty;var by=(I,Qn,xn)=>Qn in I?my(I,Qn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):I[Qn]=xn;var dr=(I,Qn,xn)=>by(I,typeof Qn!="symbol"?Qn+"":Qn,xn);function I(){}const Qn=t=>t;function xn(t,r){for(const e in r)t[e]=r[e];return t}function da(t){return t()}function ha(){return Object.create(null)}function Zr(t){t.forEach(da)}function Pr(t){return typeof t=="function"}function Md(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let Xo;function qn(t,r){return t===r?!0:(Xo||(Xo=document.createElement("a")),Xo.href=r,t===Xo.href)}function Dr(t,r){return t!=t?r==r:t!==r}function Nd(t){return Object.keys(t).length===0}function z(t,...r){if(t==null){for(const n of r)n(void 0);return I}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function Od(t){let r;return z(t,e=>r=e)(),r}function fn(t,r,e){t.$$.on_destroy.push(z(r,e))}function Zo(t,r,e,n){if(t){const i=_a(t,r,e,n);return t[0](i)}}function _a(t,r,e,n){return t[1]&&n?xn(e.ctx.slice(),t[1](n(r))):e.ctx}function Qo(t,r,e,n){if(t[2]&&n){const i=t[2](n(e));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 xo(t,r,e,n,i,o){if(i){const s=_a(r,e,n,o);t.p(s,i)}}function $o(t){if(t.ctx.length>32){const r=[],e=t.ctx.length/32;for(let n=0;n<e;n++)r[n]=-1;return r}return-1}function ol(t,r,e){return t.set(e),r}function es(t){return t&&Pr(t.destroy)?t.destroy:I}function ga(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}const pa=typeof window<"u";let sl=pa?()=>window.performance.now():()=>Date.now(),ll=pa?t=>requestAnimationFrame(t):I;const ho=new Set;function ma(t){ho.forEach(r=>{r.c(t)||(ho.delete(r),r.f())}),ho.size!==0&&ll(ma)}function al(t){let r;return ho.size===0&&ll(ma),{promise:new Promise(e=>{ho.add(r={c:t,f:e})}),abort(){ho.delete(r)}}}const Si=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let ts=!1;function zd(){ts=!0}function Ld(){ts=!1}function Rd(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function Bd(t){if(t.hydrate_init)return;t.hydrate_init=!0;let r=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let c=0;c<r.length;c++){const u=r[c];u.claim_order!==void 0&&l.push(u)}r=l}const e=new Int32Array(r.length+1),n=new Int32Array(r.length);e[0]=-1;let i=0;for(let l=0;l<r.length;l++){const c=r[l].claim_order,u=(i>0&&r[e[i]].claim_order<=c?i+1:Rd(1,i,h=>r[e[h]].claim_order,c))-1;n[l]=e[u]+1;const f=u+1;e[f]=l,i=Math.max(f,i)}const o=[],s=[];let a=r.length-1;for(let l=e[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,c)=>l.claim_order-c.claim_order);for(let l=0,c=0;l<s.length;l++){for(;c<o.length&&s[l].claim_order>=o[c].claim_order;)c++;const u=c<o.length?o[c]:null;t.insertBefore(s[l],u)}}function Hd(t,r){t.appendChild(r)}function ba(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function Wd(t){const r=Ve("style");return r.textContent="/* empty */",Ud(ba(t),r),r.sheet}function Ud(t,r){return Hd(t.head||t,r),r.sheet}function It(t,r){if(ts){for(Bd(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;r!==t.actual_end_child?(r.claim_order!==void 0||r.parentNode!==t)&&t.insertBefore(r,t.actual_end_child):t.actual_end_child=r.nextSibling}else(r.parentNode!==t||r.nextSibling!==null)&&t.appendChild(r)}function Gd(t,r,e){t.insertBefore(r,e||null)}function ee(t,r,e){ts&&!e?It(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function dn(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function Ve(t){return document.createElement(t)}function cn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Jn(t){return document.createTextNode(t)}function wr(){return Jn(" ")}function Le(){return Jn("")}function Ue(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function m(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const Yd=["width","height"];function oi(t,r){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in r)r[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=r[n]:n==="__value"?t.value=t[n]=r[n]:e[n]&&e[n].set&&Yd.indexOf(n)===-1?t[n]=r[n]:m(t,n,r[n])}function qd(t,r){Object.keys(r).forEach(e=>{Jd(t,e,r[e])})}function Jd(t,r,e){const n=r.toLowerCase();n in t?t[n]=typeof t[n]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:m(t,r,e)}function ya(t){return/-/.test(t)?qd:oi}function ye(t){return Array.from(t.childNodes)}function va(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function wa(t,r,e,n,i=!1){va(t);const o=(()=>{for(let s=t.claim_info.last_index;s<t.length;s++){const a=t[s];if(r(a)){const l=e(a);return l===void 0?t.splice(s,1):t[s]=l,i||(t.claim_info.last_index=s),a}}for(let s=t.claim_info.last_index-1;s>=0;s--){const a=t[s];if(r(a)){const l=e(a);return l===void 0?t.splice(s,1):t[s]=l,i?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,a}}return n()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function ka(t,r,e,n){return wa(t,i=>i.nodeName===r,i=>{const o=[];for(let s=0;s<i.attributes.length;s++){const a=i.attributes[s];e[a.name]||o.push(a.name)}o.forEach(s=>i.removeAttribute(s))},()=>n(r))}function Fe(t,r,e){return ka(t,r,e,Ve)}function bn(t,r,e){return ka(t,r,e,cn)}function si(t,r){return wa(t,e=>e.nodeType===3,e=>{const n=""+r;if(e.data.startsWith(n)){if(e.data.length!==n.length)return e.splitText(n.length)}else e.data=n},()=>Jn(r),!0)}function kr(t){return si(t," ")}function Ea(t,r,e){for(let n=e;n<t.length;n+=1){const i=t[n];if(i.nodeType===8&&i.textContent.trim()===r)return n}return-1}function cl(t,r){const e=Ea(t,"HTML_TAG_START",0),n=Ea(t,"HTML_TAG_END",e+1);if(e===-1||n===-1)return new _o(r);va(t);const i=t.splice(e,n-e+1);A(i[0]),A(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new _o(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new _o(r,o)}function Vi(t,r){r=""+r,t.data!==r&&(t.data=r)}function Aa(t,r){t.value=r==null?"":r}function G(t,r,e,n){e==null?t.style.removeProperty(r):t.style.setProperty(r,e,"")}function ja(t,r,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===r){i.selected=!0;return}}(!e||r!==void 0)&&(t.selectedIndex=-1)}function Kd(t){const r=t.querySelector(":checked");return r&&r.__value}function Ca(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class Xd{constructor(r=!1){dr(this,"is_svg",!1);dr(this,"e");dr(this,"n");dr(this,"t");dr(this,"a");this.is_svg=r,this.e=this.n=null}c(r){this.h(r)}m(r,e,n=null){this.e||(this.is_svg?this.e=cn(e.nodeName):this.e=Ve(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.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 e=0;e<this.n.length;e+=1)Gd(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(A)}}class _o extends Xd{constructor(e=!1,n){super(e);dr(this,"l");this.e=this.n=null,this.l=n}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)ee(this.t,this.n[n],e)}}function Sa(t,r){return new t(r)}const rs=new Map;let ns=0;function Zd(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function Qd(t,r){const e={stylesheet:Wd(r),rules:{}};return rs.set(t,e),e}function is(t,r,e,n,i,o,s,a=0){const l=16.666/n;let c=`{
`;for(let E=0;E<=1;E+=l){const w=r+(e-r)*o(E);c+=E*100+`%{${s(w,1-w)}}
`}const u=c+`100% {${s(e,1-e)}}
}`,f=`__svelte_${Zd(u)}_${a}`,h=ba(t),{stylesheet:b,rules:y}=rs.get(h)||Qd(h,t);y[f]||(y[f]=!0,b.insertRule(`@keyframes ${f} ${u}`,b.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${n}ms linear ${i}ms 1 both`,ns+=1,f}function os(t,r){const e=(t.style.animation||"").split(", "),n=e.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=e.length-n.length;i&&(t.style.animation=n.join(", "),ns-=i,ns||xd())}function xd(){ll(()=>{ns||(rs.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&A(r)}),rs.clear())})}let Mo;function No(t){Mo=t}function go(){if(!Mo)throw new Error("Function called outside component initialization");return Mo}function Bn(t){go().$$.on_mount.push(t)}function ss(t){go().$$.after_update.push(t)}function hn(t){go().$$.on_destroy.push(t)}function $d(){const t=go();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=Ca(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Ki(t,r){return go().$$.context.set(t,r),r}function Gr(t){return go().$$.context.get(t)}function Ii(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const po=[],Mr=[];let mo=[];const Va=[],Ia=Promise.resolve();let ul=!1;function Da(){ul||(ul=!0,Ia.then(Ta))}function An(){return Da(),Ia}function Hn(t){mo.push(t)}const fl=new Set;let bo=0;function Ta(){if(bo!==0)return;const t=Mo;do{try{for(;bo<po.length;){const r=po[bo];bo++,No(r),eh(r.$$)}}catch(r){throw po.length=0,bo=0,r}for(No(null),po.length=0,bo=0;Mr.length;)Mr.pop()();for(let r=0;r<mo.length;r+=1){const e=mo[r];fl.has(e)||(fl.add(e),e())}mo.length=0}while(po.length);for(;Va.length;)Va.pop()();ul=!1,fl.clear(),No(t)}function eh(t){if(t.fragment!==null){t.update(),Zr(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(Hn)}}function th(t){const r=[],e=[];mo.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),mo=r}let Oo;function dl(){return Oo||(Oo=Promise.resolve(),Oo.then(()=>{Oo=null})),Oo}function Xi(t,r,e){t.dispatchEvent(Ca(`${r?"intro":"outro"}${e}`))}const ls=new Set;let mi;function _r(){mi={r:0,c:[],p:mi}}function gr(){mi.r||Zr(mi.c),mi=mi.p}function Y(t,r){t&&t.i&&(ls.delete(t),t.i(r))}function se(t,r,e,n){if(t&&t.o){if(ls.has(t))return;ls.add(t),mi.c.push(()=>{ls.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const hl={duration:0};function as(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function c(){s&&os(t,s)}function u(){const{delay:h=0,duration:b=300,easing:y=Qn,tick:_=I,css:E}=i||hl;E&&(s=is(t,0,1,b,h,y,E,l++)),_(0,1);const w=sl()+h,N=w+b;a&&a.abort(),o=!0,Hn(()=>Xi(t,!0,"start")),a=al(K=>{if(o){if(K>=N)return _(1,0),Xi(t,!0,"end"),c(),o=!1;if(K>=w){const J=y((K-w)/b);_(J,1-J)}}return o})}let f=!1;return{start(){f||(f=!0,os(t),Pr(i)?(i=i(n),dl().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function Fa(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=mi;a.r+=1;let l;function c(){const{delay:u=0,duration:f=300,easing:h=Qn,tick:b=I,css:y}=i||hl;y&&(s=is(t,1,0,f,u,h,y));const _=sl()+u,E=_+f;Hn(()=>Xi(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),al(w=>{if(o){if(w>=E)return b(0,1),Xi(t,!1,"end"),--a.r||Zr(a.c),!1;if(w>=_){const N=h((w-_)/f);b(1-N,N)}}return o})}return Pr(i)?dl().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in t&&(t.inert=l),u&&i.tick&&i.tick(1,0),o&&(s&&os(t,s),o=!1)}}}function Pa(t,r,e,n){let o=r(t,e,{direction:"both"}),s=n?0:1,a=null,l=null,c=null,u;function f(){c&&os(t,c)}function h(y,_){const E=y.b-s;return _*=Math.abs(E),{a:s,b:y.b,d:E,duration:_,start:y.start,end:y.start+_,group:y.group}}function b(y){const{delay:_=0,duration:E=300,easing:w=Qn,tick:N=I,css:K}=o||hl,J={start:sl()+_,b:y};y||(J.group=mi,mi.r+=1),"inert"in t&&(y?u!==void 0&&(t.inert=u):(u=t.inert,t.inert=!0)),a||l?l=J:(K&&(f(),c=is(t,s,y,E,_,w,K)),y&&N(0,1),a=h(J,E),Hn(()=>Xi(t,y,"start")),al(Z=>{if(l&&Z>l.start&&(a=h(l,E),l=null,Xi(t,a.b,"start"),K&&(f(),c=is(t,s,a.b,a.duration,0,w,o.css))),a){if(Z>=a.end)N(s=a.b,1-s),Xi(t,a.b,"end"),l||(a.b?f():--a.group.r||Zr(a.group.c)),a=null;else if(Z>=a.start){const le=Z-a.start;s=a.a+a.d*w(le/a.duration),N(s,1-s)}}return!!(a||l)}))}return{run(y){Pr(o)?dl().then(()=>{o=o({direction:y?"in":"out"}),b(y)}):b(y)},end(){f(),a=l=null}}}function ur(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Ma(t,r){se(t,1,1,()=>{r.delete(t.key)})}function Na(t,r,e,n,i,o,s,a,l,c,u,f){let h=t.length,b=o.length,y=h;const _={};for(;y--;)_[t[y].key]=y;const E=[],w=new Map,N=new Map,K=[];for(y=b;y--;){const U=f(i,o,y),L=e(U);let H=s.get(L);H?K.push(()=>H.p(U,r)):(H=c(L,U),H.c()),w.set(L,E[y]=H),L in _&&N.set(L,Math.abs(y-_[L]))}const J=new Set,Z=new Set;function le(U){Y(U,1),U.m(a,u),s.set(U.key,U),u=U.first,b--}for(;h&&b;){const U=E[b-1],L=t[h-1],H=U.key,S=L.key;U===L?(u=U.first,h--,b--):w.has(S)?!s.has(H)||J.has(H)?le(U):Z.has(S)?h--:N.get(H)>N.get(S)?(Z.add(H),le(U)):(J.add(S),h--):(l(L,s),h--)}for(;h--;){const U=t[h];w.has(U.key)||l(U,s)}for(;b;)le(E[b-1]);return Zr(K),E}function yo(t,r){const e={},n={},i={$$scope:1};let o=t.length;for(;o--;){const s=t[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(e[l]=a[l],i[l]=1);t[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in e||(e[s]=void 0);return e}function $t(t){t&&t.c()}function nr(t,r){t&&t.l(r)}function Jt(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),Hn(()=>{const o=t.$$.on_mount.map(da).filter(Pr);t.$$.on_destroy?t.$$.on_destroy.push(...o):Zr(o),t.$$.on_mount=[]}),i.forEach(Hn)}function Kt(t,r){const e=t.$$;e.fragment!==null&&(th(e.after_update),Zr(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function rh(t,r){t.$$.dirty[0]===-1&&(po.push(t),Da(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Kr(t,r,e,n,i,o,s=null,a=[-1]){const l=Mo;No(t);const c=t.$$={fragment:null,ctx:[],props:o,update:I,not_equal:i,bound:ha(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:ha(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(c.root);let u=!1;if(c.ctx=e?e(t,r.props||{},(f,h,...b)=>{const y=b.length?b[0]:h;return c.ctx&&i(c.ctx[f],c.ctx[f]=y)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](y),u&&rh(t,f)),h}):[],c.update(),u=!0,Zr(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){zd();const f=ye(r.target);c.fragment&&c.fragment.l(f),f.forEach(A)}else c.fragment&&c.fragment.c();r.intro&&Y(t.$$.fragment),Jt(t,r.target,r.anchor),Ld(),Ta()}No(l)}class Xr{constructor(){dr(this,"$$");dr(this,"$$set")}$destroy(){Kt(this,1),this.$destroy=I}$on(r,e){if(!Pr(e))return I;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(e),()=>{const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!Nd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const nh="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(nh);const vo=[];function ih(t,r){return{subscribe:Di(t,r).subscribe}}function Di(t,r=I){let e;const n=new Set;function i(a){if(Md(t,a)&&(t=a,e)){const l=!vo.length;for(const c of n)c[1](),vo.push(c,t);if(l){for(let c=0;c<vo.length;c+=2)vo[c][0](vo[c+1]);vo.length=0}}}function o(a){i(a(t))}function s(a,l=I){const c=[a,l];return n.add(c),n.size===1&&(e=r(i,o)||I),a(t),()=>{n.delete(c),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function Zi(t,r,e){const n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return ih(e,(s,a)=>{let l=!1;const c=[];let u=0,f=I;const h=()=>{if(u)return;f();const y=r(n?c[0]:c,s,a);o?s(y):f=Pr(y)?y:I},b=i.map((y,_)=>z(y,E=>{c[_]=E,u&=~(1<<_),l&&h()},()=>{u|=1<<_}));return l=!0,h(),function(){Zr(b),f(),l=!1}})}const fr={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"},un=Symbol("root");function Q(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const cs={outer:"divkit-bf0ea",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_content:"divkit-05991",outer_height_content:"divkit-80cac","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 Ot(t){if(!t)return;let r="";for(const e in t)if(t.hasOwnProperty(e)){if(!t[e]&&t[e]!==0)continue;r&&(r+=";"),r+=e+":"+String(t[e])}return r||void 0}function Se(t){if(typeof t!="number"&&typeof t!="string"||!t)return"0";const r=Number(t);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function _n(t){let r=Se(t);return r==="0"&&(r+="em"),r}function Oa(t,r){for(;t.length<r;)t="0"+t;return t}function Tr(t,r=1,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=bi(t);return n?(n.a*=r,_l(n)):e}function oh(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=bi(t);return n?(n.a=r,_l(n)):e}function _l(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>Oa(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function bi(t){const r=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[c,u,f,h,b]=r,y=f.length===2?f:f+f,_=h.length===2?h:h+h,E=b.length===2?b:b+b,w=u.length===2?u:u+u;return{a:parseInt(w,16),r:parseInt(y,16),g:parseInt(_,16),b:parseInt(E,16)}}const[e,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(t){let r=String(t);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&")),r.indexOf("<")>-1&&(r=r.replace(/</g,"<")),r.indexOf(">")>-1&&(r=r.replace(/>/g,">")),r.indexOf('"')>-1&&(r=r.replace(/"/g,""")),r}const yi=Boolean;function us(t){if(t.length===1&&t[0].type==="solid")return lh({bg:t[0]});const r=t.map(e=>{if(e.type==="solid")return sh({bg:e});if(e.type==="gradient")return ah({bg:e});if(e.type==="image")return fh({bg:e});if(e.type==="radial_gradient")return uh({bg:e})}).filter(yi).reverse().reduce(function(e,n){return e.image.push(n.image),e.size.push(n.size||"auto"),e.position.push(n.pos||"50% 50%"),e},{image:[],size:[],position:[]});return{image:r.image.join(","),size:r.size.join(","),position:r.position.join(",")}}function sh(t){const r=Tr(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function lh(t){return{color:Tr(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function za(t){return t.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?t.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Tr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function ah(t){var n,i,o,s;if(!Array.isArray((n=t.bg)==null?void 0:n.colors)&&!Array.isArray((i=t.bg)==null?void 0:i.color_map))return;const r=(o=t.bg.colors)==null?void 0:o.filter(yi);if(!(r!=null&&r.length)&&!((s=t.bg)!=null&&s.color_map))return;let e;if(t.bg.color_map){const a=za(t.bg.color_map);if(!a)return;e="linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;e="linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+r.map(a=>Tr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:e}}const ch={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function La(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return _n(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function uh(t){var a,l,c,u;if(!Array.isArray((a=t.bg)==null?void 0:a.colors)&&!Array.isArray((l=t.bg)==null?void 0:l.color_map))return;const r=(c=t.bg.colors)==null?void 0:c.filter(yi);if(!(r!=null&&r.length)&&!((u=t.bg)!=null&&u.color_map))return;let e;if(t.bg.color_map?e=za(t.bg.color_map):r&&(e=r.map(f=>Tr(f)).join(",")),!e)return;const n=t.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=_n(n.value):n.type==="relative"&&(i=ch[n.value]));const o=La(t.bg.center_x),s=La(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+e+")"}}function fh(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:Ra(t.bg.scale),pos:Ba(t.bg),image:'url("'+gl(r)+'")'}}function Ra(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function Ba(t){let r,e;return t.content_alignment_horizontal==="left"?r="0%":t.content_alignment_horizontal==="right"?r="100%":r="50%",t.content_alignment_vertical==="top"?e="0%":t.content_alignment_vertical==="bottom"?e="100%":e="50%",r+" "+e}function rn(t,r){const e=Number(t);return Number.isNaN(e)||e<0?r:e}function Ha(t,r,e){return typeof r=="number"&&(t&&r>0&&r<=100||!t&&r>=0&&r<100)?r:e}function dh(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function hh(t,{visibilityActions:r,disappearActions:e,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(b=>{o.push({type:"visibility",index:o.length,action:b,visible:!1,count:0,finished:!1})}),e&&e.forEach(b=>{o.push({type:"disappear",index:o.length,action:b,visible:!1,count:0,finished:!1})});const s=o.map((b,y)=>{const _=b.type==="visibility";return i.getDerivedFromVars({index:y,visibility_percentage:b.action.visibility_percentage,visibility_duration:_?b.action.visibility_duration:b.action.disappear_duration,log_limit:b.action.log_limit,is_enabled:b.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(b=>{b.timer&&clearTimeout(b.timer)})},c=Zi(s,b=>b);let u;const f=b=>{const y=b.type==="visibility",_=i.getJsonWithVars(b.action);i.execAnyActions([_],{logType:y?"visible":"disappear",node:t,processUrls:!1})},h=c.subscribe(b=>{u=b.filter(dh);const y={};u.forEach(w=>{y[w.index]=w}),l();const _=[...new Set(u.map(w=>{const N=o[w.index].type==="visibility";return Ha(N,w.visibility_percentage,N?50:0)/100}))];if(!_.length)return;const E=w=>{w.forEach(N=>{u.forEach(K=>{const J=o[K.index],Z=J.type==="visibility",le=Ha(Z,K.visibility_percentage,Z?50:0);let U;le===0?U=N.intersectionRatio>=1e-12:U=N.intersectionRatio>=le/100,(Z?!J.visible&&U:J.visible&&!U)?J.finished||(J.timer=setTimeout(()=>{++J.count;const S=K.log_limit===0?1/0:K.log_limit||1;J.count>=S&&(J.finished=!0),f(J)},rn(K.visibility_duration,800))):(Z?!U:U)&&J.timer&&clearTimeout(J.timer),J.visible=U})})};a=new IntersectionObserver(E,{threshold:_}),a.observe(t)});return{destroy(){u==null||u.forEach(b=>{const y=o[b.index];!y||y.type!=="disappear"||!y.visible||y.finished||n.registerTimeout(window.setTimeout(()=>{f(y)},b.visibility_duration))}),l(),h()}}}function Wa(t,r){r&&t.push(r)}function mt(t,r,e){const n=[];Wa(n,r[t]);for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];if(o){const s=`${t}_${i}`+(typeof o=="string"?`_${o}`:"");Wa(n,r[s])}}return n.join(" ")}const pl=Symbol("state");function li(t,r){var s,a;const e=t.top||0,n=((s=r==="ltr"?t.end:t.start)!=null?s:t.right)||0,i=t.bottom||0,o=((a=r==="ltr"?t.start:t.end)!=null?a:t.left)||0;return e===0&&n===0&&i===0&&o===0?"":Se(e)+" "+Se(n)+" "+Se(i)+" "+Se(o)}function fs(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function Sn(t){return fs(t)&&t>=0}function ds(t,r,e){var i,o;if(!t)return e;const n=[t.top,(i=r==="ltr"?t.end:t.start)!=null?i:t.right,t.bottom,(o=r==="ltr"?t.start:t.end)!=null?o:t.left];for(let s=0;s<n.length;++s)if(n[s]&&!Sn(n[s]))return e;return li(t,r)}function _h(t,r){return!Sn(t)||t===void 0||t>1?r:Number(t)}const gh=Object.prototype.hasOwnProperty;function ml(t,r){if(Object.is(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return Object.is(t,r);const e=Object.keys(t),n=Object.keys(r);if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){const o=e[i];if(!gh.call(r,o)||!ml(t[o],r[o]))return!1}return!0}function Li(t,r){return ml(t,r)?r:t}function ph(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function Ua(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function wo(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function bl(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...bl(e))}):r.push(t),r}function ko(t,r){if(!t||typeof t!="object")return r;const e=["top","right","bottom","left"];for(let n=0;n<e.length;++n)if(t[e[n]]&&!Sn(t[e[n]]))return r;return t}function mh(t,r){if(!t&&!r)return{};if(!r)return t;if(!t)return r;const e={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=t[n];i&&(e[n]=i);const o=r[n];o&&(e[n]=(e[n]||0)+o)}),e}function bh(t,r){const e=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let n=0;n<e.length;++n)if(e[n]&&!Sn(e[n]))return r;return t}function hs(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>Se((n||r)/e*10)).join(" ")}function yh(t){var r,e,n,i,o,s;return Se(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+Se(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Se((o=t.blur)!=null?o:2)+" "+Tr(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function vh(t,r){var e,n,i,o,s,a;return"drop-shadow("+Tr(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+Se((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Se((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Se(((a=t.blur)!=null?a:2)*10/r)+")"}function Mn(t){return t.is_enabled!==0&&t.is_enabled!==!1}let yl;function _s(){return typeof matchMedia>"u"?!1:(yl||(yl=window.matchMedia("(prefers-reduced-motion)")),yl.matches)}const wh=8,kh=(t,r,e,n)=>{let i;return(e||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(c,u)=>{if(c){const f=r.getVariable(c,"integer");if(f){if(u=Math.round(u),s[c]||(s[c]=new Set),!s[c].has(u))return f.setValue(u),s[c].add(u),!0}else{const h=new Error("Missing variable");h.level="error",h.additional={variableName:c},r.logError(h)}}return!1},l=()=>{if(!t)return!1;const c=t.getBoundingClientRect(),u=a(e,c.width),f=a(n,c.height);return u||f};for(;l();){if(++o>wh){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:e,heightVariableName:n},r.logError(c);break}await An()}}),i.observe(t)),i},vl=Symbol("enabled");function Vn(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}function Eo(t){return[t.state_description,t.description,t.hint].filter(Boolean).join(", ")}const Ga={actionable__button:"divkit-ee5cc"};function Eh(){}const Qi=Symbol("action");function wl(t){if(t.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function kl(t,r){return r.has(t)}function Ah(t){var f;let r,e,n,i,o,s;const a=t[28].default,l=Zo(a,t,t[27],null);let c=[{class:e=t[1]+" "+((f=t[0])!=null&&f.length?fr["root_disabled-context-menu"]:"")+" "+(t[12]?fr["root__any-actions"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[13]},{"aria-hidden":n=t[10]||void 0},t[3]],u={};for(let h=0;h<c.length;h+=1)u=xn(u,c[h]);return{c(){r=Ve("span"),l&&l.c(),this.h()},l(h){r=Fe(h,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var b=ye(r);l&&l.l(b),b.forEach(A),this.h()},h(){oi(r,u)},m(h,b){ee(h,r,b),l&&l.m(r,null),t[40](r),i=!0,o||(s=[es(t[4].call(null,r)),Ue(r,"click",t[35]),Ue(r,"keydown",t[14]),Ue(r,"focus",t[36]),Ue(r,"blur",t[37])],o=!0)},p(h,b){var y;l&&l.p&&(!i||b[0]&134217728)&&xo(l,a,h,h[27],i?Qo(a,h[27],b,null):$o(h[27]),null),oi(r,u=yo(c,[(!i||b[0]&4099&&e!==(e=h[1]+" "+((y=h[0])!=null&&y.length?fr["root_disabled-context-menu"]:"")+" "+(h[12]?fr["root__any-actions"]:"")))&&{class:e},(!i||b[0]&4)&&{style:h[2]},(!i||b[0]&512)&&{role:h[9]},(!i||b[0]&8192)&&{"aria-checked":h[13]},(!i||b[0]&1024&&n!==(n=h[10]||void 0))&&{"aria-hidden":n},b[0]&8&&h[3]]))},i(h){i||(Y(l,h),i=!0)},o(h){se(l,h),i=!1},d(h){h&&A(r),l&&l.d(h),t[40](null),o=!1,Zr(s)}}}function jh(t){var u;let r,e,n,i,o;const s=t[28].default,a=Zo(s,t,t[27],null);let l=[{class:e=t[1]+" "+Ga.actionable__button+" "+fr["root__any-actions"]+` ${t[5]?fr.root__clickable:fr["root__clickable-no-transition"]} ${fr.root__unselectable} `+((u=t[0])!=null&&u.length?fr["root_disabled-context-menu"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[13]},{type:"button"},t[3]],c={};for(let f=0;f<l.length;f+=1)c=xn(c,l[f]);return{c(){r=Ve("button"),a&&a.c(),this.h()},l(f){r=Fe(f,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0});var h=ye(r);a&&a.l(h),h.forEach(A),this.h()},h(){oi(r,c)},m(f,h){ee(f,r,h),a&&a.m(r,null),r.autofocus&&r.focus(),t[39](r),n=!0,i||(o=[es(t[4].call(null,r)),Ue(r,"click",t[32]),Ue(r,"keydown",t[14]),Ue(r,"focus",t[33]),Ue(r,"blur",t[34])],i=!0)},p(f,h){var b;a&&a.p&&(!n||h[0]&134217728)&&xo(a,s,f,f[27],n?Qo(s,f[27],h,null):$o(f[27]),null),oi(r,c=yo(l,[(!n||h[0]&35&&e!==(e=f[1]+" "+Ga.actionable__button+" "+fr["root__any-actions"]+` ${f[5]?fr.root__clickable:fr["root__clickable-no-transition"]} ${fr.root__unselectable} `+((b=f[0])!=null&&b.length?fr["root_disabled-context-menu"]:"")))&&{class:e},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&8192)&&{"aria-checked":f[13]},{type:"button"},h[0]&8&&f[3]]))},i(f){n||(Y(a,f),n=!0)},o(f){se(a,f),n=!1},d(f){f&&A(r),a&&a.d(f),t[39](null),i=!1,Zr(o)}}}function Ch(t){var u;let r,e,n,i,o;const s=t[28].default,a=Zo(s,t,t[27],null);let l=[{href:t[7]},{target:t[11]},{style:t[2]},{role:t[9]},{"aria-checked":t[13]},{class:e=t[1]+" "+fr["root__any-actions"]+" "+(t[5]?fr.root__clickable:fr["root__clickable-no-transition"])+" "+((u=t[0])!=null&&u.length?fr["root_disabled-context-menu"]:"")},t[3]],c={};for(let f=0;f<l.length;f+=1)c=xn(c,l[f]);return{c(){r=Ve("a"),a&&a.c(),this.h()},l(f){r=Fe(f,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0});var h=ye(r);a&&a.l(h),h.forEach(A),this.h()},h(){oi(r,c)},m(f,h){ee(f,r,h),a&&a.m(r,null),t[38](r),n=!0,i||(o=[es(t[4].call(null,r)),Ue(r,"click",t[29]),Ue(r,"keydown",t[14]),Ue(r,"focus",t[30]),Ue(r,"blur",t[31])],i=!0)},p(f,h){var b;a&&a.p&&(!n||h[0]&134217728)&&xo(a,s,f,f[27],n?Qo(s,f[27],h,null):$o(f[27]),null),oi(r,c=yo(l,[(!n||h[0]&128)&&{href:f[7]},(!n||h[0]&2048)&&{target:f[11]},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&8192)&&{"aria-checked":f[13]},(!n||h[0]&35&&e!==(e=f[1]+" "+fr["root__any-actions"]+" "+(f[5]?fr.root__clickable:fr["root__clickable-no-transition"])+" "+((b=f[0])!=null&&b.length?fr["root_disabled-context-menu"]:"")))&&{class:e},h[0]&8&&f[3]]))},i(f){n||(Y(a,f),n=!0)},o(f){se(a,f),n=!1},d(f){f&&A(r),a&&a.d(f),t[38](null),i=!1,Zr(o)}}}function Sh(t){let r,e,n,i;const o=[Ch,jh,Ah],s=[];function a(l,c){return l[7]?0:l[8]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=Le()},l(l){e.l(l),n=Le()},m(l,c){s[r].m(l,c),ee(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?s[r].p(l,c):(_r(),se(s[u],1,1,()=>{s[u]=null}),gr(),e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),Y(e,1),e.m(n.parentNode,n))},i(l){i||(Y(e),i=!0)},o(l){se(e),i=!1},d(l){l&&A(n),s[r].d(l)}}}const Ya=8,qa=400,El=400,Vh=new Set(["button","image","checkbox","radio","header"]);function Ja(t){t.preventDefault()}function Ih(t,r,e){let{$$slots:n={},$$scope:i}=r,{componentContext:o}=r,{id:s=""}=r,{actions:a=void 0}=r,{doubleTapActions:l=void 0}=r,{longTapActions:c=void 0}=r,{pressStartActions:u=void 0}=r,{pressEndActions:f=void 0}=r,{hoverStartActions:h=void 0}=r,{hoverEndActions:b=void 0}=r,{cls:y=""}=r,{style:_=null}=r,{attrs:E=void 0}=r,{use:w=Eh}=r,{customAction:N=null}=r,{isNativeActionAnimation:K=!0}=r,{hasInnerFocusable:J=!1}=r,{customAccessibility:Z=void 0}=r,{captureFocusOnAction:le=!0}=r;const U=Gr(un),L=Gr(Qi);Ki(Qi,{hasAction(){return!!(L.hasAction()||a!=null&&a.length||(Z==null?void 0:Z.mode)==="exclude")}});let H,S="",D,T=-1,O=-1,Ee=null,Ge=!1,x=!1,Oe=!1,Ne,Je,He,St,ve=!1;function Ie(){return(a==null?void 0:a.some(j=>{if(j!=null&&j.typed)return!0;const he=j==null?void 0:j.url;if(!he)return!1;const X=wl(he);return X&&!kl(X,U.getBuiltinProtocols())}))||!1}async function ne(j,he){a&&(j&&Ie()&&j.preventDefault(),o.execAnyActions(a,{node:H,processUrls:he}))}async function We(j){if(L.hasAction()||j.button!==void 0&&j.button!==0)return;const he=Date.now();if(T>0&&he>T+qa){j.preventDefault();return}if(l!=null&&l.length&&O>0&&he-O<El){j.preventDefault(),o.execAnyActions(l,{processUrls:!0,node:H}),O=-1;return}if(O=he,l!=null&&l.length&&T>0&&he<T+El){j.preventDefault(),clearTimeout(Je),Je=window.setTimeout(()=>{ne(void 0,!0)},El);return}(N==null?void 0:N(j))===!1?j.preventDefault():ne(j,!1)}function pe(j){L.hasAction()||(Ee={x:j.clientX,y:j.clientY},Ge=!1,T=Date.now(),Ne&&clearTimeout(Ne),clearTimeout(Je),o.execAnyActions(u,{node:H}))}function we(j){Ee&&(Math.abs(Ee.x-j.clientX)>Ya||Math.abs(Ee.y-j.clientY)>Ya)&&(Ge=!0)}function De(j){L.hasAction()||!Ee||T<0||(!Ge&&Date.now()-T>=qa&&(j.stopImmediatePropagation(),o.execAnyActions(c,{processUrls:!0,node:H})),Ne&&clearTimeout(Ne),Ne=window.setTimeout(()=>{Ee=null,T=-1},100),o.execAnyActions(f,{node:H}))}function lt(){L.hasAction()||o.execAnyActions(h,{node:H})}function Mt(){L.hasAction()||o.execAnyActions(b,{node:H})}function ie(j){const he=j.target;he instanceof HTMLElement&&(he.tagName==="INPUT"||he.contentEditable==="true")||j.ctrlKey||j.metaKey||j.altKey||j.shiftKey||j.key==="Enter"&&Array.isArray(a)&&a.length&&(o.execAnyActions(a),j.preventDefault())}Bn(()=>{s&&!J&&U.registerFocusable(s,{focus(){H&&(S||x)&&H.focus()}})}),hn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",we),window.removeEventListener("pointerup",De),window.removeEventListener("pointercancel",De)),s&&!J&&U.unregisterFocusable(s),Ne&&clearTimeout(Ne),Je&&clearTimeout(Je)});function me(j){Ii.call(this,t,j)}function fe(j){Ii.call(this,t,j)}function re(j){Ii.call(this,t,j)}function it(j){Ii.call(this,t,j)}function at(j){Ii.call(this,t,j)}function Pe(j){Ii.call(this,t,j)}function rt(j){Ii.call(this,t,j)}function Vt(j){Ii.call(this,t,j)}function zt(j){Ii.call(this,t,j)}function $e(j){Mr[j?"unshift":"push"](()=>{H=j,e(6,H)})}function tt(j){Mr[j?"unshift":"push"](()=>{H=j,e(6,H)})}function dt(j){Mr[j?"unshift":"push"](()=>{H=j,e(6,H)})}return t.$$set=j=>{"componentContext"in j&&e(15,o=j.componentContext),"id"in j&&e(16,s=j.id),"actions"in j&&e(17,a=j.actions),"doubleTapActions"in j&&e(18,l=j.doubleTapActions),"longTapActions"in j&&e(0,c=j.longTapActions),"pressStartActions"in j&&e(19,u=j.pressStartActions),"pressEndActions"in j&&e(20,f=j.pressEndActions),"hoverStartActions"in j&&e(21,h=j.hoverStartActions),"hoverEndActions"in j&&e(22,b=j.hoverEndActions),"cls"in j&&e(1,y=j.cls),"style"in j&&e(2,_=j.style),"attrs"in j&&e(3,E=j.attrs),"use"in j&&e(4,w=j.use),"customAction"in j&&e(23,N=j.customAction),"isNativeActionAnimation"in j&&e(5,K=j.isNativeActionAnimation),"hasInnerFocusable"in j&&e(24,J=j.hasInnerFocusable),"customAccessibility"in j&&e(25,Z=j.customAccessibility),"captureFocusOnAction"in j&&e(26,le=j.captureFocusOnAction),"$$scope"in j&&e(27,i=j.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&33554432&&e(10,ve=(Z==null?void 0:Z.mode)==="exclude"),t.$$.dirty[0]&8553600){if(Array.isArray(a)&&(a!=null&&a.length))for(let j=0;j<a.length;++j){const he=a[j].url;if(he){e(7,S=he),e(11,D=a[j].target||void 0);break}}e(8,x=!!N),(S||Array.isArray(a)&&(a!=null&&a.length))&&(L.hasAction()||ve)?(e(7,S=""),o.logError(Q(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:a}}))):S&&!kl(wl(S),U.getBuiltinProtocols())?(e(7,S=""),e(8,x=!0)):!S&&Array.isArray(a)&&(a!=null&&a.length)&&(e(8,x=!0),a.some(j=>j.url||j.typed||j.menu_items)||o.logError(Q(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}t.$$.dirty[0]&33555328&&(Z!=null&&Z.type&&Vh.has(Z.type)?Z.type==="header"?e(9,He="heading"):e(9,He=Z.type):S?e(9,He=void 0):x&&e(9,He="button"),(He==="checkbox"||He==="radio")&&typeof(Z==null?void 0:Z.is_checked)=="boolean"?e(13,St=Z.is_checked):e(13,St=void 0)),t.$$.dirty[0]&75235777&&H&&(S||x||l!=null&&l.length?H.addEventListener("click",We):H.removeEventListener("click",We),l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length?(H.addEventListener("pointerdown",pe,{passive:!0}),window.addEventListener("pointermove",we,{passive:!0}),window.addEventListener("pointerup",De,{passive:!0}),window.addEventListener("pointercancel",De,{passive:!0})):(H.removeEventListener("pointerdown",pe),window.removeEventListener("pointerup",De),window.removeEventListener("pointermove",we),window.removeEventListener("pointercancel",De)),h!=null&&h.length?H.addEventListener("pointerenter",lt):H.removeEventListener("pointerenter",lt),b!=null&&b.length?H.addEventListener("pointerleave",Mt):H.removeEventListener("pointerleave",Mt),le===!1?H.addEventListener("mousedown",Ja):H.removeEventListener("mousedown",Ja),e(12,Oe=!!(S||x||l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length||h!=null&&h.length||b!=null&&b.length)))},[c,y,_,E,w,K,H,S,x,He,ve,D,Oe,St,ie,o,s,a,l,u,f,h,b,N,J,Z,le,i,n,me,fe,re,it,at,Pe,rt,Vt,zt,$e,tt,dt]}class gs extends Xr{constructor(r){super(),Kr(this,r,Ih,Sh,Dr,{componentContext:15,id:16,actions:17,doubleTapActions:18,longTapActions:0,pressStartActions:19,pressEndActions:20,hoverStartActions:21,hoverEndActions:22,cls:1,style:2,attrs:3,use:4,customAction:23,isNativeActionAnimation:5,hasInnerFocusable:24,customAccessibility:25,captureFocusOnAction:26},null,[-1,-1])}}const xi={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Nn(t){return fs(t)&&t>0}function Ka(t,r){return t.map(e=>{if(!e){r(Q(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(Nn(e.radius))return`blur(${_n(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r(Q(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function Xa(t,r,e){const n=t.slice();return n[6]=r[e],n}function Dh(t){let r,e;return{c(){r=Ve("span"),this.h()},l(n){r=Fe(n,"SPAN",{class:!0,style:!0}),ye(r).forEach(A),this.h()},h(){m(r,"class",xi["outer-background__item"]),m(r,"style",e=Ot(t[6].style))},m(n,i){ee(n,r,i)},p(n,i){i&2&&e!==(e=Ot(n[6].style))&&m(r,"style",e)},d(n){n&&A(r)}}}function Th(t){let r,e,n,i,o;return{c(){r=Ve("img"),this.h()},l(s){r=Fe(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){qn(r.src,e=t[6].image_url)||m(r,"src",e),m(r,"alt",""),m(r,"aria-hidden","true"),m(r,"loading","lazy"),m(r,"decoding","async"),m(r,"class",xi["outer-background__item"]),m(r,"style",n=Ot(t[6].style))},m(s,a){ee(s,r,a),i||(o=Ue(r,"error",t[2]),i=!0)},p(s,a){a&2&&!qn(r.src,e=s[6].image_url)&&m(r,"src",e),a&2&&n!==(n=Ot(s[6].style))&&m(r,"style",n)},d(s){s&&A(r),i=!1,o()}}}function Za(t){let r;function e(o,s){return o[6].image_url?Th:Dh}let n=e(t),i=n(t);return{c(){i.c(),r=Le()},l(o){i.l(o),r=Le()},m(o,s){i.m(o,s),ee(o,r,s)},p(o,s){n===(n=e(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&A(r),i.d(o)}}}function Fh(t){let r,e,n=ur(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Za(Xa(t,n,o));return{c(){r=Ve("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Fe(o,"SPAN",{class:!0});var s=ye(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(A),this.h()},h(){m(r,"class",e=xi["outer-background"]+(t[0]?" "+xi["outer-background_clip"]:"")),G(r,"border-radius",t[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=ur(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Xa(o,n,a);i[a]?i[a].p(l,s):(i[a]=Za(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&&e!==(e=xi["outer-background"]+(o[0]?" "+xi["outer-background_clip"]:""))&&m(r,"class",e),s&1&&G(r,"border-radius",o[0])},i:I,o:I,d(o){o&&A(r),dn(i,o)}}}function Ph(t,r,e){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(c){c.target&&"classList"in c.target&&c.target.classList.add(xi["outer-background__item_hidden"])}return t.$$set=c=>{"direction"in c&&e(3,i=c.direction),"componentContext"in c&&e(4,o=c.componentContext),"background"in c&&e(5,s=c.background),"radius"in c&&e(0,a=c.radius)},t.$$.update=()=>{t.$$.dirty&56&&e(1,n=s.map(c=>{const u={},f={style:u};if(c.type==="nine_patch_image"&&c.insets)u["border-image"]=`url("${c.image_url}") ${c.insets.top||0} ${c.insets.right||0} ${c.insets.bottom||0} ${c.insets.left||0} fill`,u["border-image-width"]="auto";else{const h=us([c]);c.type==="solid"&&(u["background-color"]=h.color),c.type==="gradient"&&(u["background-image"]=h.image),c.type==="image"&&(u.opacity=Number(c.alpha),f.image_url=c.image_url,u["object-fit"]=h.size,u["object-position"]=h.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=Ka(c.filters,o.logError),i==="rtl"&&c.filters.some(b=>b.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return f}))},[a,n,l,i,o,s]}class Mh extends Xr{constructor(r){super(),Kr(this,r,Ph,Fh,Dr,{direction:3,componentContext:4,background:5,radius:0})}}const Nh=t=>({hasCustomFocus:t[0]&4096}),Qa=t=>({focusHandler:t[51],blurHandler:t[52],hasCustomFocus:t[12]});function xa(t){let r,e;return r=new gs({props:{componentContext:t[0],id:t[0].json.id,use:t[50],cls:t[1]+" "+mt("outer",cs,t[24]),style:Ot(t[23]),actions:t[19],doubleTapActions:t[20],longTapActions:t[21],pressStartActions:t[7],pressEndActions:t[8],hoverStartActions:t[9],hoverEndActions:t[10],attrs:t[15],hasInnerFocusable:t[2],isNativeActionAnimation:!t[11].length||tc(t[11]),customAccessibility:t[13],captureFocusOnAction:t[22],$$slots:{default:[Oh]},$$scope:{ctx:t}}}),r.$on("focus",t[51]),r.$on("blur",t[52]),{c(){$t(r.$$.fragment)},l(n){nr(r.$$.fragment,n)},m(n,i){Jt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&16777218&&(o.cls=n[1]+" "+mt("outer",cs,n[24])),i[0]&8388608&&(o.style=Ot(n[23])),i[0]&524288&&(o.actions=n[19]),i[0]&1048576&&(o.doubleTapActions=n[20]),i[0]&2097152&&(o.longTapActions=n[21]),i[0]&128&&(o.pressStartActions=n[7]),i[0]&256&&(o.pressEndActions=n[8]),i[0]&512&&(o.hoverStartActions=n[9]),i[0]&1024&&(o.hoverEndActions=n[10]),i[0]&32768&&(o.attrs=n[15]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&2048&&(o.isNativeActionAnimation=!n[11].length||tc(n[11])),i[0]&8192&&(o.customAccessibility=n[13]),i[0]&4194304&&(o.captureFocusOnAction=n[22]),i[0]&86137|i[4]&8192&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(Y(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){Kt(r,n)}}}function $a(t){let r,e;return r=new Mh({props:{componentContext:t[0],direction:t[14],background:t[5],radius:t[4]}}),{c(){$t(r.$$.fragment)},l(n){nr(r.$$.fragment,n)},m(n,i){Jt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&16384&&(o.direction=n[14]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(Y(r.$$.fragment,n),e=!0)},o(n){se(r.$$.fragment,n),e=!1},d(n){Kt(r,n)}}}function ec(t){let r,e;return{c(){r=Ve("span"),this.h()},l(n){r=Fe(n,"SPAN",{class:!0,style:!0}),ye(r).forEach(A),this.h()},h(){m(r,"class",cs.outer__border),m(r,"style",e=Ot(t[3]))},m(n,i){ee(n,r,i)},p(n,i){i[0]&8&&e!==(e=Ot(n[3]))&&m(r,"style",e)},d(n){n&&A(r)}}}function Oh(t){let r,e,n,i=t[6]&&$a(t);const o=t[136].default,s=Zo(o,t,t[137],Qa);let a=t[16]&&ec(t);return{c(){i&&i.c(),r=Le(),s&&s.c(),a&&a.c(),e=Le()},l(l){i&&i.l(l),r=Le(),s&&s.l(l),a&&a.l(l),e=Le()},m(l,c){i&&i.m(l,c),ee(l,r,c),s&&s.m(l,c),a&&a.m(l,c),ee(l,e,c),n=!0},p(l,c){l[6]?i?(i.p(l,c),c[0]&64&&Y(i,1)):(i=$a(l),i.c(),Y(i,1),i.m(r.parentNode,r)):i&&(_r(),se(i,1,1,()=>{i=null}),gr()),s&&s.p&&(!n||c[0]&4096|c[4]&8192)&&xo(s,o,l,l[137],n?Qo(o,l[137],c,Nh):$o(l[137]),Qa),l[16]?a?a.p(l,c):(a=ec(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(Y(i),Y(s,l),n=!0)},o(l){se(i),se(s,l),n=!1},d(l){l&&(A(r),A(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function zh(t){let r,e,n=!t[17]&&!t[18]&&xa(t);return{c(){n&&n.c(),r=Le()},l(i){n&&n.l(i),r=Le()},m(i,o){n&&n.m(i,o),ee(i,r,o),e=!0},p(i,o){!i[17]&&!i[18]?n?(n.p(i,o),o[0]&393216&&Y(n,1)):(n=xa(i),n.c(),Y(n,1),n.m(r.parentNode,r)):n&&(_r(),se(n,1,1,()=>{n=null}),gr())},i(i){e||(Y(n),e=!0)},o(i){se(n),e=!1},d(i){i&&A(r),n&&n.d(i)}}}const Lh={left:"start",center:"center",right:"end",start:"start",end:"end"},Rh={left:"end",center:"center",right:"start",start:"start",end:"end"},Bh={top:"start",center:"center",bottom:"end",baseline:"baseline"},Al=t=>`The component id with the "${t}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function tc(t){return t.some(r=>r.name==="native")}function Hh(t,r,e){let n,i,o,s,a,l,c,u,f,h,b,y,_,E,w,N,K,J,Z,le,U,L,H,S,D,T,O,Ee,Ge,x,Oe,Ne=I,Je=()=>(Ne(),Ne=z(H,Ce=>e(113,Oe=Ce)),H),He,St=I,ve=()=>(St(),St=z(L,Ce=>e(114,He=Ce)),L),Ie,ne=I,We=()=>(ne(),ne=z(S,Ce=>e(115,Ie=Ce)),S),pe,we=I,De=()=>(we(),we=z(U,Ce=>e(116,pe=Ce)),U),lt,Mt=I,ie=()=>(Mt(),Mt=z(le,Ce=>e(117,lt=Ce)),le),me,fe=I,re=()=>(fe(),fe=z(Z,Ce=>e(118,me=Ce)),Z),it,at=I,Pe=()=>(at(),at=z(J,Ce=>e(119,it=Ce)),J),rt,Vt=I,zt=()=>(Vt(),Vt=z(K,Ce=>e(120,rt=Ce)),K),$e,tt=I,dt=()=>(tt(),tt=z(i,Ce=>e(121,$e=Ce)),i),j,he=I,X=()=>(he(),he=z(N,Ce=>e(122,j=Ce)),N),ut,Te=I,Tt=()=>(Te(),Te=z(w,Ce=>e(123,ut=Ce)),w),nt,Ct=I,Xt=()=>(Ct(),Ct=z(_,Ce=>e(124,nt=Ce)),_),vt,Nt=I,Wt=()=>(Nt(),Nt=z(E,Ce=>e(125,vt=Ce)),E),Gt,Et=I,qe=()=>(Et(),Et=z(y,Ce=>e(126,Gt=Ce)),y),ot,ze=I,ht=()=>(ze(),ze=z(b,Ce=>e(13,ot=Ce)),b),sr,Be=I,br=()=>(Be(),Be=z(h,Ce=>e(127,sr=Ce)),h),ir,vr=I,$=()=>(vr(),vr=z(f,Ce=>e(128,ir=Ce)),f),Qe,Zt=I,st=()=>(Zt(),Zt=z(u,Ce=>e(129,Qe=Ce)),u),ct,At=I,jt=()=>(At(),At=z(a,Ce=>e(130,ct=Ce)),a),Qt,de,et=I,Yt=()=>(et(),et=z(c,Ce=>e(131,de=Ce)),c),er,Lt=I,Cr=()=>(Lt(),Lt=z(l,Ce=>e(132,er=Ce)),l),Rt,or=I,lr=()=>(or(),or=z(s,Ce=>e(133,Rt=Ce)),s),_t,Sr=I,xe=()=>(Sr(),Sr=z(o,Ce=>e(134,_t=Ce)),o),tr;t.$$.on_destroy.push(()=>Ne()),t.$$.on_destroy.push(()=>St()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>we()),t.$$.on_destroy.push(()=>Mt()),t.$$.on_destroy.push(()=>fe()),t.$$.on_destroy.push(()=>at()),t.$$.on_destroy.push(()=>Vt()),t.$$.on_destroy.push(()=>tt()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>Ct()),t.$$.on_destroy.push(()=>Nt()),t.$$.on_destroy.push(()=>Et()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Be()),t.$$.on_destroy.push(()=>vr()),t.$$.on_destroy.push(()=>Zt()),t.$$.on_destroy.push(()=>At()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>Lt()),t.$$.on_destroy.push(()=>or()),t.$$.on_destroy.push(()=>Sr());let{$$slots:Er={},$$scope:Rr}=r,{componentContext:q}=r,{cls:Me=""}=r,{style:Or=void 0}=r,{layoutParams:ae={}}=r,{customDescription:Bt=!1}=r,{customPaddings:hr=!1}=r,{customActions:pr=""}=r,{additionalPaddings:Vr=null}=r,{heightByAspect:Ur=!1}=r,{parentOf:be=void 0}=r,{parentOfSimpleMode:Ke=void 0}=r,{replaceItems:ce=void 0}=r,{hasInnerFocusable:Ae=!1}=r;const Ht=Gr(un),d=Gr(pl),{isEnabled:wt}=Gr(vl);fn(t,wt,Ce=>e(135,tr=Ce));const xt=Ht.direction;fn(t,xt,Ce=>e(14,Qt=Ce));let W,bt,k=null,Ye=[],Ft={},yt={},rr=!1,mr=1,zr="transparent",Ir=0,xr={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},v="",g=null,F="",R={},B,ue,Re,Dt=0,ke=0,Xe=0,gt=!1,Pt=!1,yr={},qr,Br,yn,En=0,ni=0,On=0,fi=!1,di=!1,zn=1,Ci,ii,vn,Gi,hi=[],kt=!1,p=!1,C,M,V,oe=[],te=[],pt=[],ft=[],Jr=[],jr=[],Lr=[],_i=[],Zn=[],_e=[],qt="",$r,gi,Yi,mn,Ni=!1,Yn="visible",pi=0,Fo=0,rl,nl,uo,Po=!1,ua=!0,il,Ln,Yo,fo;function uy(){e(70,g=null),e(71,F=""),e(88,zn=1),e(100,Ni=!1),e(101,Yn="visible"),e(102,pi=0),e(103,Fo=0),e(104,rl=void 0),e(105,nl=void 0),e(22,ua=!0),hi=q.fakeElement?[]:q.json.transition_triggers||["state_change","visibility_change"],e(91,kt=hi.indexOf("state_change")!==-1),p=hi.indexOf("visibility_change")!==-1,W&&Pd(W),Ln==null||Ln(),tr&&e(107,Ln=Ht.processVariableTriggers(q,q.json.variable_triggers))}function fy(Ce,Hr){if(!Array.isArray(be)||!ce||Ke&&(Array.isArray(Hr)?Hr.length:0)!==1)return;const wn=be.findIndex(en=>(en==null?void 0:en.id)===Ce),Pn=be.slice();Pn.splice(wn,1,...(Hr||[]).map(en=>({json:en,id:en==null?void 0:en.id}))),e(53,be=Pn),ce(Pn.map(en=>en==null?void 0:en.json))}function dy(Ce){const Hr=wo(Ce.start_value,1),wn