UNPKG

@divkitframework/divkit

Version:
8 lines 445 kB
"use strict";var md=Object.defineProperty;var bd=(t,r,e)=>r in t?md(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var sr=(t,r,e)=>bd(t,typeof r!="symbol"?r+"":r,e);/*! DivKit v32.6.0 https://github.com/divkit/divkit @licence Apache-2.0 */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function P(){}const Cs=t=>t;function xi(t,r){for(const e in r)t[e]=r[e];return t}function lf(t){return t()}function Zl(){return Object.create(null)}function Xr(t){t.forEach(lf)}function zr(t){return typeof t=="function"}function yd(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let No;function Zn(t,r){return t===r?!0:(No||(No=document.createElement("a")),No.href=r,t===No.href)}function Fr(t,r){return t!=t?r==r:t!==r}function vd(t){return Object.keys(t).length===0}function U(t,...r){if(t==null){for(const n of r)n(void 0);return P}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function wd(t){let r;return U(t,e=>r=e)(),r}function yn(t,r,e){t.$$.on_destroy.push(U(r,e))}function js(t,r,e,n){if(t){const i=af(t,r,e,n);return t[0](i)}}function af(t,r,e,n){return t[1]&&n?xi(e.ctx.slice(),t[1](n(r))):e.ctx}function Ss(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 Vs(t,r,e,n,i,o){if(i){const s=af(r,e,n,o);t.p(s,i)}}function Is(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 Us(t,r,e){return t.set(e),r}function Ds(t){return t&&zr(t.destroy)?t.destroy:P}function Ql(t){const r=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[t,"px"]}const cf=typeof window<"u";let Al=cf?()=>window.performance.now():()=>Date.now(),Cl=cf?t=>requestAnimationFrame(t):P;const ao=new Set;function uf(t){ao.forEach(r=>{r.c(t)||(ao.delete(r),r.f())}),ao.size!==0&&Cl(uf)}function jl(t){let r;return ao.size===0&&Cl(uf),{promise:new Promise(e=>{ao.add(r={c:t,f:e})}),abort(){ao.delete(r)}}}const wi=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Ts=!1;function kd(){Ts=!0}function Ed(){Ts=!1}function Ad(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function Cd(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:Ad(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 jd(t,r){t.appendChild(r)}function ff(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function Sd(t){const r=ze("style");return r.textContent="/* empty */",Vd(ff(t),r),r.sheet}function Vd(t,r){return jd(t.head||t,r),r.sheet}function Ft(t,r){if(Ts){for(Cd(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 Id(t,r,e){t.insertBefore(r,e||null)}function ee(t,r,e){Ts&&!e?Ft(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function w(t){t.parentNode&&t.parentNode.removeChild(t)}function bn(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function ze(t){return document.createElement(t)}function _n(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Qn(t){return document.createTextNode(t)}function Ar(){return Qn(" ")}function qe(){return Qn("")}function Ue(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function b(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const Dd=["width","height"];function si(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&&Dd.indexOf(n)===-1?t[n]=r[n]:b(t,n,r[n])}function Td(t,r){Object.keys(r).forEach(e=>{Md(t,e,r[e])})}function Md(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:b(t,r,e)}function xl(t){return/-/.test(t)?Td:si}function Ee(t){return Array.from(t.childNodes)}function df(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function hf(t,r,e,n,i=!1){df(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 _f(t,r,e,n){return hf(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 Be(t,r,e){return _f(t,r,e,ze)}function En(t,r,e){return _f(t,r,e,_n)}function ai(t,r){return hf(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},()=>Qn(r),!0)}function Cr(t){return ai(t," ")}function $l(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 Sl(t,r){const e=$l(t,"HTML_TAG_START",0),n=$l(t,"HTML_TAG_END",e+1);if(e===-1||n===-1)return new co(r);df(t);const i=t.splice(e,n-e+1);w(i[0]),w(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new co(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new co(r,o)}function Ti(t,r){r=""+r,t.data!==r&&(t.data=r)}function ea(t,r){t.value=r==null?"":r}function Y(t,r,e,n){e==null?t.style.removeProperty(r):t.style.setProperty(r,e,"")}function ta(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 Fd(t){const r=t.querySelector(":checked");return r&&r.__value}function gf(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class Pd{constructor(r=!1){sr(this,"is_svg",!1);sr(this,"e");sr(this,"n");sr(this,"t");sr(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=_n(e.nodeName):this.e=ze(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)Id(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(w)}}class co extends Pd{constructor(e=!1,n){super(e);sr(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 ra(t,r){return new t(r)}const ds=new Map;let hs=0;function Nd(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function zd(t,r){const e={stylesheet:Sd(r),rules:{}};return ds.set(t,e),e}function _s(t,r,e,n,i,o,s,a=0){const l=16.666/n;let c=`{ `;for(let v=0;v<=1;v+=l){const k=r+(e-r)*o(v);c+=v*100+`%{${s(k,1-k)}} `}const u=c+`100% {${s(e,1-e)}} }`,f=`__svelte_${Nd(u)}_${a}`,h=ff(t),{stylesheet:p,rules:y}=ds.get(h)||zd(h,t);y[f]||(y[f]=!0,p.insertRule(`@keyframes ${f} ${u}`,p.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${n}ms linear ${i}ms 1 both`,hs+=1,f}function gs(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(", "),hs-=i,hs||Od())}function Od(){Cl(()=>{hs||(ds.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&w(r)}),ds.clear())})}let Vo;function So(t){Vo=t}function po(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function Un(t){po().$$.on_mount.push(t)}function Ms(t){po().$$.after_update.push(t)}function vn(t){po().$$.on_destroy.push(t)}function Ld(){const t=po();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=gf(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Wi(t,r){return po().$$.context.set(t,r),r}function Jr(t){return po().$$.context.get(t)}function Sn(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const oo=[],Or=[];let uo=[];const na=[],pf=Promise.resolve();let tl=!1;function mf(){tl||(tl=!0,pf.then(bf))}function Cn(){return mf(),pf}function Hn(t){uo.push(t)}const Gs=new Set;let ro=0;function bf(){if(ro!==0)return;const t=Vo;do{try{for(;ro<oo.length;){const r=oo[ro];ro++,So(r),Rd(r.$$)}}catch(r){throw oo.length=0,ro=0,r}for(So(null),oo.length=0,ro=0;Or.length;)Or.pop()();for(let r=0;r<uo.length;r+=1){const e=uo[r];Gs.has(e)||(Gs.add(e),e())}uo.length=0}while(oo.length);for(;na.length;)na.pop()();tl=!1,Gs.clear(),So(t)}function Rd(t){if(t.fragment!==null){t.update(),Xr(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(Hn)}}function Bd(t){const r=[],e=[];uo.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),uo=r}let Ao;function Vl(){return Ao||(Ao=Promise.resolve(),Ao.then(()=>{Ao=null})),Ao}function Yi(t,r,e){t.dispatchEvent(gf(`${r?"intro":"outro"}${e}`))}const qo=new Set;let _i;function _r(){_i={r:0,c:[],p:_i}}function gr(){_i.r||Xr(_i.c),_i=_i.p}function X(t,r){t&&t.i&&(qo.delete(t),t.i(r))}function ue(t,r,e,n){if(t&&t.o){if(qo.has(t))return;qo.add(t),_i.c.push(()=>{qo.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const Il={duration:0};function Fs(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function c(){s&&gs(t,s)}function u(){const{delay:h=0,duration:p=300,easing:y=Cs,tick:_=P,css:v}=i||Il;v&&(s=_s(t,0,1,p,h,y,v,l++)),_(0,1);const k=Al()+h,x=k+p;a&&a.abort(),o=!0,Hn(()=>Yi(t,!0,"start")),a=jl(Z=>{if(o){if(Z>=x)return _(1,0),Yi(t,!0,"end"),c(),o=!1;if(Z>=k){const R=y((Z-k)/p);_(R,1-R)}}return o})}let f=!1;return{start(){f||(f=!0,gs(t),zr(i)?(i=i(n),Vl().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function yf(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=_i;a.r+=1;let l;function c(){const{delay:u=0,duration:f=300,easing:h=Cs,tick:p=P,css:y}=i||Il;y&&(s=_s(t,1,0,f,u,h,y));const _=Al()+u,v=_+f;Hn(()=>Yi(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),jl(k=>{if(o){if(k>=v)return p(0,1),Yi(t,!1,"end"),--a.r||Xr(a.c),!1;if(k>=_){const x=h((k-_)/f);p(1-x,x)}}return o})}return zr(i)?Vl().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in t&&(t.inert=l),u&&i.tick&&i.tick(1,0),o&&(s&&gs(t,s),o=!1)}}}function ia(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&&gs(t,c)}function h(y,_){const v=y.b-s;return _*=Math.abs(v),{a:s,b:y.b,d:v,duration:_,start:y.start,end:y.start+_,group:y.group}}function p(y){const{delay:_=0,duration:v=300,easing:k=Cs,tick:x=P,css:Z}=o||Il,R={start:Al()+_,b:y};y||(R.group=_i,_i.r+=1),"inert"in t&&(y?u!==void 0&&(t.inert=u):(u=t.inert,t.inert=!0)),a||l?l=R:(Z&&(f(),c=_s(t,s,y,v,_,k,Z)),y&&x(0,1),a=h(R,v),Hn(()=>Yi(t,y,"start")),jl(fe=>{if(l&&fe>l.start&&(a=h(l,v),l=null,Yi(t,a.b,"start"),Z&&(f(),c=_s(t,s,a.b,a.duration,0,k,o.css))),a){if(fe>=a.end)x(s=a.b,1-s),Yi(t,a.b,"end"),l||(a.b?f():--a.group.r||Xr(a.group.c)),a=null;else if(fe>=a.start){const ae=fe-a.start;s=a.a+a.d*k(ae/a.duration),x(s,1-s)}}return!!(a||l)}))}return{run(y){zr(o)?Vl().then(()=>{o=o({direction:y?"in":"out"}),p(y)}):p(y)},end(){f(),a=l=null}}}function cr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function vf(t,r){ue(t,1,1,()=>{r.delete(t.key)})}function wf(t,r,e,n,i,o,s,a,l,c,u,f){let h=t.length,p=o.length,y=h;const _={};for(;y--;)_[t[y].key]=y;const v=[],k=new Map,x=new Map,Z=[];for(y=p;y--;){const G=f(i,o,y),te=e(G);let q=s.get(te);q?Z.push(()=>q.p(G,r)):(q=c(te,G),q.c()),k.set(te,v[y]=q),te in _&&x.set(te,Math.abs(y-_[te]))}const R=new Set,fe=new Set;function ae(G){X(G,1),G.m(a,u),s.set(G.key,G),u=G.first,p--}for(;h&&p;){const G=v[p-1],te=t[h-1],q=G.key,I=te.key;G===te?(u=G.first,h--,p--):k.has(I)?!s.has(q)||R.has(q)?ae(G):fe.has(I)?h--:x.get(q)>x.get(I)?(fe.add(q),ae(G)):(R.add(I),h--):(l(te,s),h--)}for(;h--;){const G=t[h];k.has(G.key)||l(G,s)}for(;p;)ae(v[p-1]);return Xr(Z),v}function mo(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 Qt(t){t&&t.c()}function $t(t,r){t&&t.l(r)}function Kt(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),Hn(()=>{const o=t.$$.on_mount.map(lf).filter(zr);t.$$.on_destroy?t.$$.on_destroy.push(...o):Xr(o),t.$$.on_mount=[]}),i.forEach(Hn)}function Xt(t,r){const e=t.$$;e.fragment!==null&&(Bd(e.after_update),Xr(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function Hd(t,r){t.$$.dirty[0]===-1&&(oo.push(t),mf(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Zr(t,r,e,n,i,o,s=null,a=[-1]){const l=Vo;So(t);const c=t.$$={fragment:null,ctx:[],props:o,update:P,not_equal:i,bound:Zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:Zl(),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,...p)=>{const y=p.length?p[0]:h;return c.ctx&&i(c.ctx[f],c.ctx[f]=y)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](y),u&&Hd(t,f)),h}):[],c.update(),u=!0,Xr(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){kd();const f=Ee(r.target);c.fragment&&c.fragment.l(f),f.forEach(w)}else c.fragment&&c.fragment.c();r.intro&&X(t.$$.fragment),Kt(t,r.target,r.anchor),Ed(),bf()}So(l)}class Qr{constructor(){sr(this,"$$");sr(this,"$$set")}$destroy(){Xt(this,1),this.$destroy=P}$on(r,e){if(!zr(e))return P;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&&!vd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Wd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Wd);const no=[];function Ud(t,r){return{subscribe:gi(t,r).subscribe}}function gi(t,r=P){let e;const n=new Set;function i(a){if(yd(t,a)&&(t=a,e)){const l=!no.length;for(const c of n)c[1](),no.push(c,t);if(l){for(let c=0;c<no.length;c+=2)no[c][0](no[c+1]);no.length=0}}}function o(a){i(a(t))}function s(a,l=P){const c=[a,l];return n.add(c),n.size===1&&(e=r(i,o)||P),a(t),()=>{n.delete(c),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function bo(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 Ud(e,(s,a)=>{let l=!1;const c=[];let u=0,f=P;const h=()=>{if(u)return;f();const y=r(n?c[0]:c,s,a);o?s(y):f=zr(y)?y:P},p=i.map((y,_)=>U(y,v=>{c[_]=v,u&=~(1<<_),l&&h()},()=>{u|=1<<_}));return l=!0,h(),function(){Xr(p),f(),l=!1}})}const Gd="divkit-6d515",Yd="divkit-27458",qd="divkit-82db1",Jd="divkit-be734",Kd="divkit-9a652",dr={root_platform_desktop:Gd,root__clickable:Yd,"root__clickable-no-transition":"divkit-3bb57","root__any-actions":"divkit-ba614",root:qd,root__selectable:Jd,root__unselectable:Kd,"root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},gn=Symbol("root");function $(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const Xd="divkit-bf0ea",Zd="divkit-27458",Qd="divkit-05991",xd="divkit-80cac",$d="divkit-90c49",eh="divkit-b33bc",th="divkit-f6ff9",ps={outer:Xd,root__clickable:Zd,"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:Qd,outer_height_content:xd,"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:$d,outer_visibility_invisible:eh,outer_visibility_gone:th,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Bt(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 Re(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 hn(t){let r=Re(t);return r==="0"&&(r+="em"),r}function kf(t,r){for(;t.length<r;)t="0"+t;return t}function Mr(t,r=1,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=pi(t);return n?(n.a*=r,Dl(n)):e}function rh(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=pi(t);return n?(n.a=r,Dl(n)):e}function Dl(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>kf(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function pi(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,p]=r,y=f.length===2?f:f+f,_=h.length===2?h:h+h,v=p.length===2?p:p+p,k=u.length===2?u:u+u;return{a:parseInt(k,16),r:parseInt(y,16),g:parseInt(_,16),b:parseInt(v,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 rl(t){let r=String(t);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 ki=Boolean;function Ps(t,r){if(t.length===1&&t[0].type==="solid")return ih({bg:t[0]});const e=t.map(n=>{if(n.type==="solid")return nh({bg:n});if(n.type==="gradient")return oh({bg:n});if(n.type==="image")return ah({bg:n,direction:r});if(n.type==="radial_gradient")return lh({bg:n})}).filter(ki).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:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}function nh(t){const r=Mr(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function ih(t){return{color:Mr(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Ef(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=>`${Mr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function oh(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(ki);if(!(r!=null&&r.length)&&!((s=t.bg)!=null&&s.color_map))return;let e;if(t.bg.color_map){const a=Ef(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=>Mr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:e}}const sh={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function oa(t){if(t&&typeof t=="object"&&"type"in t&&t.value!==void 0){if(t.type==="fixed")return hn(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function lh(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(ki);if(!(r!=null&&r.length)&&!((u=t.bg)!=null&&u.color_map))return;let e;if(t.bg.color_map?e=Ef(t.bg.color_map):r&&(e=r.map(f=>Mr(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=hn(n.value):n.type==="relative"&&(i=sh[n.value]));const o=oa(t.bg.center_x),s=oa(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+e+")"}}function ah(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:Af(t.bg.scale),pos:Cf(t.bg,t.direction),image:'url("'+rl(r)+'")'}}function Af(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function Cf(t,r){let e,n;return t.content_alignment_horizontal==="left"||r==="ltr"&&t.content_alignment_horizontal==="start"||r==="rtl"&&t.content_alignment_horizontal==="end"?e="0%":t.content_alignment_horizontal==="right"||r==="ltr"&&t.content_alignment_horizontal==="end"||r==="rtl"&&t.content_alignment_horizontal==="start"?e="100%":e="50%",t.content_alignment_vertical==="top"?n="0%":t.content_alignment_vertical==="bottom"?n="100%":n="50%",e+" "+n}function on(t,r){const e=Number(t);return Number.isNaN(e)||e<0?r:e}function sa(t,r,e){return typeof r=="number"&&(t&&r>0&&r<=100||!t&&r>=0&&r<100)?r:e}function ch(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function uh(t,{visibilityActions:r,disappearActions:e,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(p=>{o.push({type:"visibility",index:o.length,action:p,visible:!1,count:0,finished:!1})}),e&&e.forEach(p=>{o.push({type:"disappear",index:o.length,action:p,visible:!1,count:0,finished:!1})});const s=o.map((p,y)=>{const _=p.type==="visibility";return i.getDerivedFromVars({index:y,visibility_percentage:p.action.visibility_percentage,visibility_duration:_?p.action.visibility_duration:p.action.disappear_duration,log_limit:p.action.log_limit,is_enabled:p.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(p=>{p.timer&&clearTimeout(p.timer)})},c=bo(s,p=>p);let u;const f=p=>{const y=p.type==="visibility";i.execAnyActions([p.action],{logType:y?"visible":"disappear",node:t,processUrls:!1})},h=c.subscribe(p=>{u=p.filter(ch);const y={};u.forEach(k=>{y[k.index]=k}),l();const _=[...new Set(u.map(k=>{const x=o[k.index].type==="visibility";return sa(x,k.visibility_percentage,x?50:0)/100}))];if(!_.length)return;const v=k=>{k.forEach(x=>{u.forEach(Z=>{const R=o[Z.index],fe=R.type==="visibility",ae=sa(fe,Z.visibility_percentage,fe?50:0);let G;ae===0?G=x.intersectionRatio>=1e-12:G=x.intersectionRatio>=ae/100,(fe?!R.visible&&G:R.visible&&!G)?R.finished||(R.timer=setTimeout(()=>{++R.count;const I=Z.log_limit===0?1/0:Z.log_limit||1;R.count>=I&&(R.finished=!0),f(R)},on(Z.visibility_duration,800))):(fe?!G:G)&&R.timer&&clearTimeout(R.timer),R.visible=G})})};a=new IntersectionObserver(v,{threshold:_}),a.observe(t)});return{destroy(){u==null||u.forEach(p=>{const y=o[p.index];!y||y.type!=="disappear"||!y.visible||y.finished||n.registerTimeout(window.setTimeout(()=>{f(y)},p.visibility_duration))}),l(),h()}}}function la(t,r){r&&t.push(r)}function kt(t,r,e){const n=[];la(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}`:"");la(n,r[s])}}return n.join(" ")}const Tl=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?"":Re(e)+" "+Re(n)+" "+Re(i)+" "+Re(o)}function Ns(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function Mn(t){return Ns(t)&&t>=0}function ms(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]&&!Mn(n[s]))return e;return li(t,r)}function fh(t,r){return!Mn(t)||t===void 0||t>1?r:Number(t)}const dh=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(!dh.call(r,o)||!Ml(t[o],r[o]))return!1}return!0}function Pi(t,r){return Ml(t,r)?r:t}function hh(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function jf(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function lo(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function Fl(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...Fl(e))}):r.push(t),r}function yo(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]]&&!Mn(t[e[n]]))return r;return t}function _h(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 gh(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]&&!Mn(e[n]))return r;return t}function Jo(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>Re((n||r)/e*10)).join(" ")}function ph(t){var r,e,n,i,o,s;return Re(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+Re(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Re((o=t.blur)!=null?o:2)+" "+Mr(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function mh(t,r){var e,n,i,o,s,a;return"drop-shadow("+Mr(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+Re((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Re((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Re(((a=t.blur)!=null?a:2)*10/r)+")"}function bs(t){return t.is_enabled!==0&&t.is_enabled!==!1}let Ys;function zs(){return typeof matchMedia>"u"?!1:(Ys||(Ys=window.matchMedia("(prefers-reduced-motion)")),Ys.matches)}const bh=8,yh=(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>bh){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:e,heightVariableName:n},r.logError(c);break}await Cn()}}),i.observe(t)),i},Pl=Symbol("enabled");function Vn(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}function ho(t){return[t.state_description,t.description,t.hint].filter(Boolean).join(", ")}const aa=1,Ni=2,vh="divkit-ee5cc",ca={actionable__button:vh};function wh(){}const Ji=Symbol("action");function nl(t){if(t.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function il(t,r){return r.has(t)}function kh(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=js(a,t,t[29],null);let c=[{class:e=t[2]+" "+((f=t[1])!=null&&f.length?dr["root_disabled-context-menu"]:"")+" "+(t[13]?dr["root__any-actions"]:"")},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{"aria-hidden":n=t[11]||void 0},t[4]],u={};for(let h=0;h<c.length;h+=1)u=xi(u,c[h]);return{c(){r=ze("span"),l&&l.c(),this.h()},l(h){r=Be(h,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0,"aria-hidden":!0});var p=Ee(r);l&&l.l(p),p.forEach(w),this.h()},h(){si(r,u)},m(h,p){ee(h,r,p),l&&l.m(r,null),t[48](r),i=!0,o||(s=[Ds(t[5].call(null,r)),Ue(r,"click",t[41]),Ue(r,"keydown",t[16]),Ue(r,"focus",t[42]),Ue(r,"blur",t[43]),Ue(r,"pointerdown",t[44]),Ue(r,"wheel",t[45])],o=!0)},p(h,p){var y;l&&l.p&&(!i||p[0]&536870912)&&Vs(l,a,h,h[29],i?Ss(a,h[29],p,null):Is(h[29]),null),si(r,u=mo(c,[(!i||p[0]&8198&&e!==(e=h[2]+" "+((y=h[1])!=null&&y.length?dr["root_disabled-context-menu"]:"")+" "+(h[13]?dr["root__any-actions"]:"")))&&{class:e},(!i||p[0]&8)&&{style:h[3]},(!i||p[0]&1024)&&{role:h[10]},(!i||p[0]&16384)&&{"aria-checked":h[14]},(!i||p[0]&2048&&n!==(n=h[11]||void 0))&&{"aria-hidden":n},p[0]&16&&h[4]]))},i(h){i||(X(l,h),i=!0)},o(h){ue(l,h),i=!1},d(h){h&&w(r),l&&l.d(h),t[48](null),o=!1,Xr(s)}}}function Eh(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=js(a,t,t[29],null);let c=[{class:e=t[2]+" "+ca.actionable__button+" "+dr["root__any-actions"]+` ${t[6]?dr.root__clickable:dr["root__clickable-no-transition"]} ${dr.root__unselectable} `+((f=t[1])!=null&&f.length?dr["root_disabled-context-menu"]:"")},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{type:"button"},{tabindex:n=t[0].fakeElement===Ni?-1:null},t[4]],u={};for(let h=0;h<c.length;h+=1)u=xi(u,c[h]);return{c(){r=ze("button"),l&&l.c(),this.h()},l(h){r=Be(h,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0,tabindex:!0});var p=Ee(r);l&&l.l(p),p.forEach(w),this.h()},h(){si(r,u)},m(h,p){ee(h,r,p),l&&l.m(r,null),r.autofocus&&r.focus(),t[47](r),i=!0,o||(s=[Ds(t[5].call(null,r)),Ue(r,"click",t[36]),Ue(r,"keydown",t[16]),Ue(r,"focus",t[37]),Ue(r,"blur",t[38]),Ue(r,"pointerdown",t[39]),Ue(r,"wheel",t[40])],o=!0)},p(h,p){var y;l&&l.p&&(!i||p[0]&536870912)&&Vs(l,a,h,h[29],i?Ss(a,h[29],p,null):Is(h[29]),null),si(r,u=mo(c,[(!i||p[0]&70&&e!==(e=h[2]+" "+ca.actionable__button+" "+dr["root__any-actions"]+` ${h[6]?dr.root__clickable:dr["root__clickable-no-transition"]} ${dr.root__unselectable} `+((y=h[1])!=null&&y.length?dr["root_disabled-context-menu"]:"")))&&{class:e},(!i||p[0]&8)&&{style:h[3]},(!i||p[0]&1024)&&{role:h[10]},(!i||p[0]&16384)&&{"aria-checked":h[14]},{type:"button"},(!i||p[0]&1&&n!==(n=h[0].fakeElement===Ni?-1:null))&&{tabindex:n},p[0]&16&&h[4]]))},i(h){i||(X(l,h),i=!0)},o(h){ue(l,h),i=!1},d(h){h&&w(r),l&&l.d(h),t[47](null),o=!1,Xr(s)}}}function Ah(t){var f;let r,e,n,i,o,s;const a=t[30].default,l=js(a,t,t[29],null);let c=[{href:t[8]},{target:t[12]},{style:t[3]},{role:t[10]},{"aria-checked":t[14]},{class:e=t[2]+" "+dr["root__any-actions"]+" "+(t[6]?dr.root__clickable:dr["root__clickable-no-transition"])+" "+((f=t[1])!=null&&f.length?dr["root_disabled-context-menu"]:"")},{tabindex:n=t[0].fakeElement===Ni?-1:null},t[4]],u={};for(let h=0;h<c.length;h+=1)u=xi(u,c[h]);return{c(){r=ze("a"),l&&l.c(),this.h()},l(h){r=Be(h,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0,tabindex:!0});var p=Ee(r);l&&l.l(p),p.forEach(w),this.h()},h(){si(r,u)},m(h,p){ee(h,r,p),l&&l.m(r,null),t[46](r),i=!0,o||(s=[Ds(t[5].call(null,r)),Ue(r,"click",t[31]),Ue(r,"keydown",t[16]),Ue(r,"focus",t[32]),Ue(r,"blur",t[33]),Ue(r,"pointerdown",t[34]),Ue(r,"wheel",t[35])],o=!0)},p(h,p){var y;l&&l.p&&(!i||p[0]&536870912)&&Vs(l,a,h,h[29],i?Ss(a,h[29],p,null):Is(h[29]),null),si(r,u=mo(c,[(!i||p[0]&256)&&{href:h[8]},(!i||p[0]&4096)&&{target:h[12]},(!i||p[0]&8)&&{style:h[3]},(!i||p[0]&1024)&&{role:h[10]},(!i||p[0]&16384)&&{"aria-checked":h[14]},(!i||p[0]&70&&e!==(e=h[2]+" "+dr["root__any-actions"]+" "+(h[6]?dr.root__clickable:dr["root__clickable-no-transition"])+" "+((y=h[1])!=null&&y.length?dr["root_disabled-context-menu"]:"")))&&{class:e},(!i||p[0]&1&&n!==(n=h[0].fakeElement===Ni?-1:null))&&{tabindex:n},p[0]&16&&h[4]]))},i(h){i||(X(l,h),i=!0)},o(h){ue(l,h),i=!1},d(h){h&&w(r),l&&l.d(h),t[46](null),o=!1,Xr(s)}}}function Ch(t){let r,e,n,i;const o=[Ah,Eh,kh],s=[];function a(l,c){return l[8]?0:l[9]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=qe()},l(l){e.l(l),n=qe()},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(),ue(s[u],1,1,()=>{s[u]=null}),gr(),e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),X(e,1),e.m(n.parentNode,n))},i(l){i||(X(e),i=!0)},o(l){ue(e),i=!1},d(l){l&&w(n),s[r].d(l)}}}const ua=8,fa=400,qs=400,jh=new Set(["button","image","checkbox","radio","header"]);function da(t){t.preventDefault()}function Sh(t,r,e){let n,i,o=P,s=()=>(o(),o=U(n,W=>e(28,i=W)),n);t.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:c}=r,{id:u=""}=r,{actions:f=void 0}=r,{doubleTapActions:h=void 0}=r,{longTapActions:p=void 0}=r,{pressStartActions:y=void 0}=r,{pressEndActions:_=void 0}=r,{hoverStartActions:v=void 0}=r,{hoverEndActions:k=void 0}=r,{cls:x=""}=r,{style:Z=null}=r,{attrs:R=void 0}=r,{use:fe=wh}=r,{customAction:ae=null}=r,{isNativeActionAnimation:G=!0}=r,{hasInnerFocusable:te=!1}=r,{customAccessibility:q=void 0}=r,{captureFocusOnAction:I=!0}=r;const F=Jr(gn),N=Jr(Ji);Wi(Ji,{hasAction(){return!!(N.hasAction()||f!=null&&f.length||(q==null?void 0:q.mode)==="exclude")}});let D,be="",$e,Q=-1,He=-1,Ce=null,Qe=!1,Xe=!1,St=!1,ye,Oe,re,We,we=!1;function je(){return(i==null?void 0:i.some(W=>{if(W!=null&&W.typed)return!0;const lt=W==null?void 0:W.url;if(!lt)return!1;const xt=nl(lt);return xt&&!il(xt,F.getBuiltinProtocols())}))||!1}async function Fe(W,lt){f&&(W&&je()&&W.preventDefault(),c.execAnyActions(f,{node:D,processUrls:lt}))}async function me(W){if(N.hasAction()||W.button!==void 0&&W.button!==0)return;const lt=Date.now();if(Q>0&&lt>Q+fa){W.preventDefault();return}if(h!=null&&h.length&&He>0&&lt-He<qs){W.preventDefault(),c.execAnyActions(h,{processUrls:!0,node:D}),He=-1;return}if(He=lt,h!=null&&h.length&&Q>0&&lt<Q+qs){W.preventDefault(),clearTimeout(Oe),Oe=window.setTimeout(()=>{Fe(void 0,!0)},qs);return}(ae==null?void 0:ae(W))===!1?W.preventDefault():Fe(W,!1)}function Pt(W){N.hasAction()||(Ce={x:W.clientX,y:W.clientY},Qe=!1,Q=Date.now(),ye&&clearTimeout(ye),clearTimeout(Oe),c.execAnyActions(y,{node:D}))}function se(W){Ce&&(Math.abs(Ce.x-W.clientX)>ua||Math.abs(Ce.y-W.clientY)>ua)&&(Qe=!0)}function gt(W){N.hasAction()||!Ce||Q<0||(!Qe&&Date.now()-Q>=fa&&(W.stopImmediatePropagation(),c.execAnyActions(p,{processUrls:!0,node:D})),ye&&clearTimeout(ye),ye=window.setTimeout(()=>{Ce=null,Q=-1},100),c.execAnyActions(_,{node:D}))}function Ve(){N.hasAction()||c.execAnyActions(v,{node:D})}function J(){N.hasAction()||c.execAnyActions(k,{node:D})}function at(W){const lt=W.target;lt instanceof HTMLElement&&(lt.tagName==="INPUT"||lt.contentEditable==="true")||W.ctrlKey||W.metaKey||W.altKey||W.shiftKey||W.key==="Enter"&&Array.isArray(f)&&f.length&&(c.execAnyActions(f),W.preventDefault())}Un(()=>{u&&!te&&F.registerFocusable(u,{focus(){D&&(be||Xe)&&D.focus()}})}),vn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",se),window.removeEventListener("pointerup",gt),window.removeEventListener("pointercancel",gt)),u&&!te&&F.unregisterFocusable(u),ye&&clearTimeout(ye),Oe&&clearTimeout(Oe)});function ge(W){Sn.call(this,t,W)}function dt(W){Sn.call(this,t,W)}function it(W){Sn.call(this,t,W)}function ct(W){Sn.call(this,t,W)}function xe(W){Sn.call(this,t,W)}function Dt(W){Sn.call(this,t,W)}function ht(W){Sn.call(this,t,W)}function Vt(W){Sn.call(this,t,W)}function oe(W){Sn.call(this,t,W)}function Ie(W){Sn.call(this,t,W)}function he(W){Sn.call(this,t,W)}function Ge(W){Sn.call(this,t,W)}function Se(W){Sn.call(this,t,W)}function Et(W){Sn.call(this,t,W)}function It(W){Sn.call(this,t,W)}function ft(W){Or[W?"unshift":"push"](()=>{D=W,e(7,D)})}function Ot(W){Or[W?"unshift":"push"](()=>{D=W,e(7,D)})}function Ye(W){Or[W?"unshift":"push"](()=>{D=W,e(7,D)})}return t.$$set=W=>{"componentContext"in W&&e(0,c=W.componentContext),"id"in W&&e(17,u=W.id),"actions"in W&&e(18,f=W.actions),"doubleTapActions"in W&&e(19,h=W.doubleTapActions),"longTapActions"in W&&e(1,p=W.longTapActions),"pressStartActions"in W&&e(20,y=W.pressStartActions),"pressEndActions"in W&&e(21,_=W.pressEndActions),"hoverStartActions"in W&&e(22,v=W.hoverStartActions),"hoverEndActions"in W&&e(23,k=W.hoverEndActions),"cls"in W&&e(2,x=W.cls),"style"in W&&e(3,Z=W.style),"attrs"in W&&e(4,R=W.attrs),"use"in W&&e(5,fe=W.use),"customAction"in W&&e(24,ae=W.customAction),"isNativeActionAnimation"in W&&e(6,G=W.isNativeActionAnimation),"hasInnerFocusable"in W&&e(25,te=W.hasInnerFocusable),"customAccessibility"in W&&e(26,q=W.customAccessibility),"captureFocusOnAction"in W&&e(27,I=W.captureFocusOnAction),"$$scope"in W&&e(29,l=W.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&67108864&&e(11,we=(q==null?void 0:q.mode)==="exclude"),t.$$.dirty[0]&262145&&s(e(15,n=c.getDerivedFromVars(f,void 0,!0))),t.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let W=0;W<i.length;++W){const lt=i[W].url;if(lt){e(8,be=lt),e(12,$e=i[W].target||void 0);break}}e(9,Xe=!!ae),(be||Array.isArray(i)&&(i!=null&&i.length))&&(N.hasAction()||we)?(e(8,be=""),c.logError($(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):be&&!il(nl(be),F.getBuiltinProtocols())?(e(8,be=""),e(9,Xe=!0)):!be&&Array.isArray(i)&&(i!=null&&i.length)&&(e(9,Xe=!0),i.some(W=>W.url||W.typed||W.menu_items)||c.logError($(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}t.$$.dirty[0]&67110656&&(q!=null&&q.type&&jh.has(q.type)?q.type==="header"?e(10,re="heading"):e(10,re=q.type):be?e(10,re=void 0):Xe&&e(10,re="button"),(re==="checkbox"||re==="radio")&&typeof(q==null?void 0:q.is_checked)=="boolean"?e(14,We=q.is_checked):e(14,We=void 0)),t.$$.dirty[0]&150471554&&D&&(be||Xe||h!=null&&h.length?D.addEventListener("click",me):D.removeEventListener("click",me),h!=null&&h.length||p!=null&&p.length||y!=null&&y.length||_!=null&&_.length?(D.addEventListener("pointerdown",Pt,{passive:!0}),window.addEventListener("pointermove",se,{passive:!0}),window.addEventListener("pointerup",gt,{passive:!0}),window.addEventListener("pointercancel",gt,{passive:!0})):(D.removeEventListener("pointerdown",Pt),window.removeEventListener("pointerup",gt),window.removeEventListener("pointermove",se),window.removeEventListener("pointercancel",gt)),v!=null&&v.length?D.addEventListener("pointerenter",Ve):D.removeEventListener("pointerenter",Ve),k!=null&&k.length?D.addEventListener("pointerleave",J):D.removeEventListener("pointerleave",J),I===!1?D.addEventListener("mousedown",da):D.removeEventListener("mousedown",da),e(13,St=!!(be||Xe||h!=null&&h.length||p!=null&&p.length||y!=null&&y.length||_!=null&&_.length||v!=null&&v.length||k!=null&&k.length)))},[c,p,x,Z,R,fe,G,D,be,Xe,re,we,$e,St,We,n,at,u,f,h,y,_,v,k,ae,te,q,I,i,l,a,ge,dt,it,ct,xe,Dt,ht,Vt,oe,Ie,he,Ge,Se,Et,It,ft,Ot,Ye]}class Os extends Qr{constructor(r){super(),Zr(this,r,Sh,Ch,Fr,{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 Ui={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function On(t){return Ns(t)&&t>0}function Sf(t,r){return t.map(e=>{if(!e){r($(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(On(e.radius))return`blur(${hn(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r($(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function ha(t,r,e){const n=t.slice();return n[6]=r[e],n}function Vh(t){let r,e;return{c(){r=ze("span"),this.h()},l(n){r=Be(n,"SPAN",{class:!0,style:!0}),Ee(r).forEach(w),this.h()},h(){b(r,"class",Ui["outer-background__item"]),b(r,"style",e=Bt(t[6].style))},m(n,i){ee(n,r,i)},p(n,i){i&2&&e!==(e=Bt(n[6].style))&&b(r,"style",e)},d(n){n&&w(r)}}}function Ih(t){let r,e,n,i,o;return{c(){r=ze("img"),this.h()},l(s){r=Be(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Zn(r.src,e=t[6].image_url)||b(r,"src",e),b(r,"alt",""),b(r,"aria-hidden","true"),b(r,"loading","lazy"),b(r,"decoding","async"),b(r,"class",Ui["outer-background__item"]),b(r,"style",n=Bt(t[6].style))},m(s,a){ee(s,r,a),i||(o=Ue(r,"error",t[2]),i=!0)},p(s,a){a&2&&!Zn(r.src,e=s[6].image_url)&&b(r,"src",e),a&2&&n!==(n=Bt(s[6].style))&&b(r,"style",n)},d(s){s&&w(r),i=!1,o()}}}function _a(t){let r;function e(o,s){return o[6].image_url?Ih:Vh}let n=e(t),i=n(t);return{c(){i.c(),r=qe()},l(o){i.l(o),r=qe()},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&&w(r),i.d(o)}}}function Dh(t){let r,e,n=cr(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=_a(ha(t,n,o));return{c(){r=ze("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Be(o,"SPAN",{class:!0});var s=Ee(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(w),this.h()},h(){b(r,"class",e=Ui["outer-background"]+(t[0]?" "+Ui["outer-background_clip"]:"")),Y(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=cr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=ha(o,n,a);i[a]?i[a].p(l,s):(i[a]=_a(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=Ui["outer-background"]+(o[0]?" "+Ui["outer-background_clip"]:""))&&b(r,"class",e),s&1&&Y(r,"border-radius",o[0])},i:P,o:P,d(o){o&&w(r),bn(i,o)}}}function Th(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(Ui["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=Ps([c],i);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=Sf(c.filters,o.logError),i==="rtl"&&c.filters.some(p=>p.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return f}))},[a,n,l,i,o,s]}class Mh extends Qr{constructor(r){super(),Zr(this,r,Th,Dh,Fr,{direction:3,componentContext:4,background:5,radius:0})}}const Fh=t=>({hasCustomFocus:t[0]&4096}),ga=t=>({focusHandler:t[43],blurHandler:t[44],hasCustomFocus:t[12]});function pa(t){let r,e;return r=new Os({props:{componentContext:t[0],id:t[0].json.id,use:t[42],cls:t[1]+" "+kt("outer",ps,t[24]),style:Bt(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||ya(t[11]),customAccessibility:t[14],captureFocusOnAction:t[22],$$slots:{default:[Ph]},$$scope:{ctx:t}}}),r.$on("focus",t[43]),r.$on("blur",t[44]),r.$on("pointerdown",t[122]),r.$on("wheel",t[123]),{c(){Qt(r.$$.fragment)},l(n){$t(r.$$.fragment,n)},m(n,i){Kt(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]+" "+kt("outer",ps,n[24])),i[0]&8388608&&(o.style=Bt(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||ya(n[11])),i[0]&16384&&(o.customAccessibility=n[14]),i[0]&4194304&&(o.captureFocusOnAction=n[22]),i[0]&77945|i[4]&1&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(X(r.$$.fragment,n),e=!0)},o(n){ue(r.$$.fragment,n),e=!1},d(n){Xt(r,n)}}}function ma(t){let r,e;return r=new Mh({props:{componentContext:t[0],direction:t[13],background:t[5],radius:t[4]}}),{c(){Qt(r.$$.fragment)},l(n){$t(r.$$.fragment,n)},m(n,i){Kt(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&8192&&(o.direction=n[13]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(X(r.$$.fragment,n),e=!0)},o(n){ue(r.$$.fragment,n),e=!1},d(n){Xt(r,n)}}}function ba(t){let r,e;return{c(){r=ze("span"),this.h()},l(n){r=Be(n,"SPAN",{class:!0,style:!0}),Ee(r).forEach(w),this.h()},h(){b(r,"class",ps.outer__border),b(r,"style",e=Bt(t[3]))},m(n,i){ee(n,r,i)},p(n,i){i[0]&8&&e!==(e=Bt(n[3]))&&b(r,"style",e)},d(n){n&&w(r)}}}function Ph(t){let r,e,n,i=t[6]&&ma(t);const o=t[121].default,s=js(o,t,t[124],ga);let a=t[16]&&ba(t);return{c(){i&&i.c(),r=qe(),s&&s.c(),a&&a.c(),e=qe()},l(l){i&&i.l(l),r=qe(),s&&s.l(l),a&&a.l(l),e=qe()},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&&X(i,1)):(i=ma(l),i.c(),X(i,1),i.m(r.parentNode,r)):i&&(_r(),ue(i,1,1,()=>{i=null}),gr()),s&&s.p&&(!n||c[0]&4096|c[4]&1)&&Vs(s,o,l,l[124],n?Ss(o,l[124],c,Fh):Is(l[124]),ga),l[16]?a?a.p(l,c):(a=ba(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(X(i),X(s,l),n=!0)},o(l){ue(i),ue(s,l),n=!1},d(l){l&&(w(r),w(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function Nh(t){let r,e,n=!t[17]&&!t[18]&&pa(t);return{c(){n&&n.c(),r=qe()},l(i){n&&n.l(i),r=qe()},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&&X(n,1)):(n=pa(i),n.c(),X(n,1),n.m(r.parentNode,r)):n&&(_r(),ue(n,1,1,()=>{n=null}),gr())},i(i){e||(X(n),e=!0)},o(i){ue(n),e=!1},d(i){i&&w(r),n&&n.d(i)}}}const zh={left:"start",center:"center",right:"end",start:"start",end:"end"},Oh={left:"end",center:"center",right:"start",start:"start",end:"end"},Lh={top:"start",center:"center",bottom:"end",baseline:"baseline"},Js=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 ya(t){return t.some(r=>r.name==="native")}function Rh(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,y,_,v,k,x,Z,R,fe,ae,G,te,q,I=P,F=()=>(I(),I=U(k,Ne=>e(106,q=Ne)),k),N,D=P,be=()=>(D(),D=U(v,Ne=>e(107,N=Ne)),v),$e,Q=P,He=()=>(Q(),Q=U(x,Ne=>e(108,$e=Ne)),x),Ce,Qe=P,Xe=()=>(Qe(),Qe=U(_,Ne=>e(109,Ce=Ne)),_),St,ye,Oe=P,re=()=>(Oe(),Oe=U(y,Ne=>e(110,ye=Ne)),y),We,we=P,je=()=>(we(),we=U(i,Ne=>e(111,We=Ne)),i),Fe,me=P,Pt=()=>(me(),me=U(p,Ne=>e(14,Fe=Ne)),p),se,gt=P,Ve=()=>(gt(),gt=U(h,Ne=>e(112,se=Ne)),h),J,at=P,ge=()=>(at(),at=U(f,Ne=>e(113,J=Ne)),f),dt,it=P,ct=()=>(it(),it=U(u,Ne=>e(114,dt=Ne)),u),xe,Dt=P,ht=()=>(Dt(),Dt=U(a,Ne=>e(115,xe=Ne)),a),Vt,oe=P,Ie=()=>(oe(),oe=U(c,Ne=>e(116,Vt=Ne)),c),he,Ge=P,Se=()=>(Ge(),Ge=U(l,Ne=>e(117,he=Ne)),l),Et,It=P,ft=()=>(It(),It=U(s,Ne=>e(118,Et=Ne)),s),Ot,Ye=P,W=()=>(Ye(),Ye=U(o,Ne=>e(119,Ot=Ne)),o),lt;t.$$.on_destroy.push(()=>I()),t.$$.on_destroy.push(()=>D()),t.$$.on_destroy.push(()=>Q()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>Oe()),t.$$.on_destroy.push(()=>we()),t.$$.on_destroy.push(()=>me()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>at()),t.$$.on_destroy.push(()=>it()),t.$$.on_destroy.push(()=>Dt()),t.$$.on_destroy.push(()=>oe()),t.$$.on_destroy.push(()=>Ge()),t.$$.on_destroy.push(()=>It()),t.$$.on_destroy.push(()=>Ye());let{$$slots:xt={},$$scope:Zt}=r,{componentContext:z}=r,{cls:ut=""}=r,{style:De=void 0}=r,{layoutParams:de={}}=r,{customDescription:Lt=!1}=r,{customPaddings:Te=!1}=r,{customActions:ir=""}=r,{additionalPaddings:Nt=null}=r,{heightByAspect:pr=!1}=r,{parentOf:ne=void 0}=r,{parentOfSimpleMode:Ze=void 0}=r,{replaceItems:er=void 0}=r,{hasInnerFocusable:pt=!1}=r,{alwaysCustomFocus:Tt=!1}=r;const ot=Jr(gn),yt=Jr(Tl),{isEnabled:Wt}=Jr(Pl);yn(t,Wt,Ne=>e(120,lt=Ne));const ur=ot.direction;yn(t,ur,Ne=>e(13,St=Ne));let Ut,Jt,br=null,tr=[],fr={},qt={},or=!1,rr=1,jr="transparent",yr=0,Ke={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},wr="",Wr=null,Ir="",nr={},Sr,fn,Pe,ke=0,At=0,Ht=0,mr=!1,Rr=!1,T={},S,M,H,Je=0,d=0,ve=0,rt=!1,tt=!1,Gt=1,E,Mt,Ct,bt,Yt=[],vr=!1,Ur=!1,Lr,tn,An,g=[],A=[],C=[],K=[],L=[],Le=[],_e=[],_t=[],st=[],Ae=[],Rt="",nt,hr,kr,xr,Pr=!1,an="visible",Gr=0,jn=0,Gn,Yn,Nn,qn=!1,ui=!0,Ei,dn,jt,m;function j(){e(63,Wr=null),e(64,Ir=""),e(81,Gt=1),e(93,Pr=!1),e(94,an="visible"),e(95,Gr=0),e(96,jn=0),e(97,Gn=void 0),e(98,Yn=void 0),e(22,ui=!0),Yt=z.fakeElement?[]:z.jso