@divkitframework/divkit
Version:
DivKit for the web
8 lines • 449 kB
JavaScript
/*!
DivKit v32.51.0
https://github.com/divkit/divkit
@licence Apache-2.0
*/(function(){"use strict";var _y=Object.defineProperty;var hy=(V,ti,Jn)=>ti in V?_y(V,ti,{enumerable:!0,configurable:!0,writable:!0,value:Jn}):V[ti]=Jn;var kr=(V,ti,Jn)=>hy(V,typeof ti!="symbol"?ti+"":ti,Jn);function V(){}const ti=e=>e;function Jn(e,r){for(const t in r)e[t]=r[t];return e}function $l(e){return e()}function ea(){return Object.create(null)}function xr(e){e.forEach($l)}function Hr(e){return typeof e=="function"}function Md(e,r){return e!=e?r==r:e!==r||e&&typeof e=="object"||typeof e=="function"}let Oo;function ci(e,r){return e===r?!0:(Oo||(Oo=document.createElement("a")),Oo.href=r,e===Oo.href)}function Or(e,r){return e!=e?r==r:e!==r}function Pd(e){return Object.keys(e).length===0}function B(e,...r){if(e==null){for(const n of r)n(void 0);return V}const t=e.subscribe(...r);return t.unsubscribe?()=>t.unsubscribe():t}function Us(e){let r;return B(e,t=>r=t)(),r}function dn(e,r,t){e.$$.on_destroy.push(B(r,t))}function Lo(e,r,t,n){if(e){const i=ta(e,r,t,n);return e[0](i)}}function ta(e,r,t,n){return e[1]&&n?Jn(t.ctx.slice(),e[1](n(r))):t.ctx}function Ro(e,r,t,n){if(e[2]&&n){const i=e[2](n(t));if(r.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(r.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=r.dirty[a]|i[a];return o}return r.dirty|i}return r.dirty}function Bo(e,r,t,n,i,o){if(i){const s=ta(r,t,n,o);e.p(s,i)}}function Ho(e){if(e.ctx.length>32){const r=[],t=e.ctx.length/32;for(let n=0;n<t;n++)r[n]=-1;return r}return-1}function Gs(e,r,t){return e.set(t),r}function Wo(e){return e&&Hr(e.destroy)?e.destroy:V}function ra(e){const r=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return r?[parseFloat(r[1]),r[2]||"px"]:[e,"px"]}const na=typeof window<"u";let Ys=na?()=>window.performance.now():()=>Date.now(),qs=na?e=>requestAnimationFrame(e):V;const io=new Set;function ia(e){io.forEach(r=>{r.c(e)||(io.delete(r),r.f())}),io.size!==0&&qs(ia)}function Ks(e){let r;return io.size===0&&qs(ia),{promise:new Promise(t=>{io.add(r={c:e,f:t})}),abort(){io.delete(r)}}}const bi=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Ot(e,r){e.appendChild(r)}function oa(e){if(!e)return document;const r=e.getRootNode?e.getRootNode():e.ownerDocument;return r&&r.host?r:e.ownerDocument}function Nd(e){const r=Te("style");return r.textContent="/* empty */",zd(oa(e),r),r.sheet}function zd(e,r){return Ot(e.head||e,r),r.sheet}function x(e,r,t){e.insertBefore(r,t||null)}function Q(e){e.parentNode&&e.parentNode.removeChild(e)}function gn(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function Te(e){return document.createElement(e)}function vn(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ri(e){return document.createTextNode(e)}function Er(){return ri(" ")}function dr(){return ri("")}function Ne(e,r,t,n){return e.addEventListener(r,t,n),()=>e.removeEventListener(r,t,n)}function b(e,r,t){t==null?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}const Od=["width","height"];function fi(e,r){const t=Object.getOwnPropertyDescriptors(e.__proto__);for(const n in r)r[n]==null?e.removeAttribute(n):n==="style"?e.style.cssText=r[n]:n==="__value"?e.value=e[n]=r[n]:t[n]&&t[n].set&&Od.indexOf(n)===-1?e[n]=r[n]:b(e,n,r[n])}function Ld(e,r){Object.keys(r).forEach(t=>{Rd(e,t,r[t])})}function Rd(e,r,t){const n=r.toLowerCase();n in e?e[n]=typeof e[n]=="boolean"&&t===""?!0:t:r in e?e[r]=typeof e[r]=="boolean"&&t===""?!0:t:b(e,r,t)}function sa(e){return/-/.test(e)?Ld:fi}function Bd(e){return Array.from(e.childNodes)}function Si(e,r){r=""+r,e.data!==r&&(e.data=r)}function la(e,r){e.value=r==null?"":r}function H(e,r,t,n){t==null?e.style.removeProperty(r):e.style.setProperty(r,t,"")}function aa(e,r,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===r){i.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function Hd(e){const r=e.querySelector(":checked");return r&&r.__value}function ua(e,r,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(e,{detail:r,bubbles:t,cancelable:n})}function ca(e,r){return new e(r)}const Uo=new Map;let Go=0;function Wd(e){let r=5381,t=e.length;for(;t--;)r=(r<<5)-r^e.charCodeAt(t);return r>>>0}function Ud(e,r){const t={stylesheet:Nd(r),rules:{}};return Uo.set(e,t),t}function Yo(e,r,t,n,i,o,s,a=0){const l=16.666/n;let u=`{
`;for(let w=0;w<=1;w+=l){const v=r+(t-r)*o(w);u+=w*100+`%{${s(v,1-v)}}
`}const c=u+`100% {${s(t,1-t)}}
}`,d=`__svelte_${Wd(c)}_${a}`,h=oa(e),{stylesheet:g,rules:m}=Uo.get(h)||Ud(h,e);m[d]||(m[d]=!0,g.insertRule(`@keyframes ${d} ${c}`,g.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${d} ${n}ms linear ${i}ms 1 both`,Go+=1,d}function qo(e,r){const t=(e.style.animation||"").split(", "),n=t.filter(r?o=>o.indexOf(r)<0:o=>o.indexOf("__svelte")===-1),i=t.length-n.length;i&&(e.style.animation=n.join(", "),Go-=i,Go||Gd())}function Gd(){qs(()=>{Go||(Uo.forEach(e=>{const{ownerNode:r}=e.stylesheet;r&&Q(r)}),Uo.clear())})}let jo;function So(e){jo=e}function oo(){if(!jo)throw new Error("Function called outside component initialization");return jo}function xn(e){oo().$$.on_mount.push(e)}function Ko(e){oo().$$.after_update.push(e)}function pn(e){oo().$$.on_destroy.push(e)}function Yd(){const e=oo();return(r,t,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[r];if(i){const o=ua(r,t,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Vi(e,r){return oo().$$.context.set(e,r),r}function Gr(e){return oo().$$.context.get(e)}function Mn(e,r){const t=e.$$.callbacks[r.type];t&&t.slice().forEach(n=>n.call(this,r))}const so=[],Fr=[];let lo=[];const fa=[],da=Promise.resolve();let Js=!1;function _a(){Js||(Js=!0,da.then(ha))}function En(){return _a(),da}function Xn(e){lo.push(e)}const Xs=new Set;let ao=0;function ha(){if(ao!==0)return;const e=jo;do{try{for(;ao<so.length;){const r=so[ao];ao++,So(r),qd(r.$$)}}catch(r){throw so.length=0,ao=0,r}for(So(null),so.length=0,ao=0;Fr.length;)Fr.pop()();for(let r=0;r<lo.length;r+=1){const t=lo[r];Xs.has(t)||(Xs.add(t),t())}lo.length=0}while(so.length);for(;fa.length;)fa.pop()();Js=!1,Xs.clear(),So(e)}function qd(e){if(e.fragment!==null){e.update(),xr(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(Xn)}}function Kd(e){const r=[],t=[];lo.forEach(n=>e.indexOf(n)===-1?r.push(n):t.push(n)),t.forEach(n=>n()),lo=r}let Vo;function Zs(){return Vo||(Vo=Promise.resolve(),Vo.then(()=>{Vo=null})),Vo}function qi(e,r,t){e.dispatchEvent(ua(`${r?"intro":"outro"}${t}`))}const Jo=new Set;let yi;function mr(){yi={r:0,c:[],p:yi}}function br(){yi.r||xr(yi.c),yi=yi.p}function q(e,r){e&&e.i&&(Jo.delete(e),e.i(r))}function oe(e,r,t,n){if(e&&e.o){if(Jo.has(e))return;Jo.add(e),yi.c.push(()=>{Jo.delete(e),n&&(t&&e.d(1),n())}),e.o(r)}else n&&n()}const Qs={duration:0};function Xo(e,r,t){const n={direction:"in"};let i=r(e,t,n),o=!1,s,a,l=0;function u(){s&&qo(e,s)}function c(){const{delay:h=0,duration:g=300,easing:m=ti,tick:_=V,css:w}=i||Qs;w&&(s=Yo(e,0,1,g,h,m,w,l++)),_(0,1);const v=Ys()+h,K=v+g;a&&a.abort(),o=!0,Xn(()=>qi(e,!0,"start")),a=Ks(X=>{if(o){if(X>=K)return _(1,0),qi(e,!0,"end"),u(),o=!1;if(X>=v){const R=m((X-v)/g);_(R,1-R)}}return o})}let d=!1;return{start(){d||(d=!0,qo(e),Hr(i)?(i=i(n),Zs().then(c)):c())},invalidate(){d=!1},end(){o&&(u(),o=!1)}}}function ga(e,r,t){const n={direction:"out"};let i=r(e,t,n),o=!0,s;const a=yi;a.r+=1;let l;function u(){const{delay:c=0,duration:d=300,easing:h=ti,tick:g=V,css:m}=i||Qs;m&&(s=Yo(e,1,0,d,c,h,m));const _=Ys()+c,w=_+d;Xn(()=>qi(e,!1,"start")),"inert"in e&&(l=e.inert,e.inert=!0),Ks(v=>{if(o){if(v>=w)return g(0,1),qi(e,!1,"end"),--a.r||xr(a.c),!1;if(v>=_){const K=h((v-_)/d);g(1-K,K)}}return o})}return Hr(i)?Zs().then(()=>{i=i(n),u()}):u(),{end(c){c&&"inert"in e&&(e.inert=l),c&&i.tick&&i.tick(1,0),o&&(s&&qo(e,s),o=!1)}}}function pa(e,r,t,n){let o=r(e,t,{direction:"both"}),s=n?0:1,a=null,l=null,u=null,c;function d(){u&&qo(e,u)}function h(m,_){const w=m.b-s;return _*=Math.abs(w),{a:s,b:m.b,d:w,duration:_,start:m.start,end:m.start+_,group:m.group}}function g(m){const{delay:_=0,duration:w=300,easing:v=ti,tick:K=V,css:X}=o||Qs,R={start:Ys()+_,b:m};m||(R.group=yi,yi.r+=1),"inert"in e&&(m?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),a||l?l=R:(X&&(d(),u=Yo(e,s,m,w,_,v,X)),m&&K(0,1),a=h(R,w),Xn(()=>qi(e,m,"start")),Ks(te=>{if(l&&te>l.start&&(a=h(l,w),l=null,qi(e,a.b,"start"),X&&(d(),u=Yo(e,s,a.b,a.duration,0,v,o.css))),a){if(te>=a.end)K(s=a.b,1-s),qi(e,a.b,"end"),l||(a.b?d():--a.group.r||xr(a.group.c)),a=null;else if(te>=a.start){const ge=te-a.start;s=a.a+a.d*v(ge/a.duration),K(s,1-s)}}return!!(a||l)}))}return{run(m){Hr(o)?Zs().then(()=>{o=o({direction:m?"in":"out"}),g(m)}):g(m)},end(){d(),a=l=null}}}function _r(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function ma(e,r){oe(e,1,1,()=>{r.delete(e.key)})}function ba(e,r,t,n,i,o,s,a,l,u,c,d){let h=e.length,g=o.length,m=h;const _={};for(;m--;)_[e[m].key]=m;const w=[],v=new Map,K=new Map,X=[];for(m=g;m--;){const G=d(i,o,m),Z=t(G);let se=s.get(Z);se?X.push(()=>se.p(G,r)):(se=u(Z,G),se.c()),v.set(Z,w[m]=se),Z in _&&K.set(Z,Math.abs(m-_[Z]))}const R=new Set,te=new Set;function ge(G){q(G,1),G.m(a,c),s.set(G.key,G),c=G.first,g--}for(;h&&g;){const G=w[g-1],Z=e[h-1],se=G.key,T=Z.key;G===Z?(c=G.first,h--,g--):v.has(T)?!s.has(se)||R.has(se)?ge(G):te.has(T)?h--:K.get(se)>K.get(T)?(te.add(se),ge(G)):(R.add(T),h--):(l(Z,s),h--)}for(;h--;){const G=e[h];v.has(G.key)||l(G,s)}for(;g;)ge(w[g-1]);return xr(X),w}function zi(e,r){const t={},n={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=r[o];if(a){for(const l in s)l in a||(n[l]=1);for(const l in a)i[l]||(t[l]=a[l],i[l]=1);e[o]=a}else for(const l in s)i[l]=1}for(const s in n)s in t||(t[s]=void 0);return t}function ya(e){return typeof e=="object"&&e!==null?e:{}}function or(e){e&&e.c()}function rr(e,r,t){const{fragment:n,after_update:i}=e.$$;n&&n.m(r,t),Xn(()=>{const o=e.$$.on_mount.map($l).filter(Hr);e.$$.on_destroy?e.$$.on_destroy.push(...o):xr(o),e.$$.on_mount=[]}),i.forEach(Xn)}function nr(e,r){const t=e.$$;t.fragment!==null&&(Kd(t.after_update),xr(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function Jd(e,r){e.$$.dirty[0]===-1&&(so.push(e),_a(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function $r(e,r,t,n,i,o,s=null,a=[-1]){const l=jo;So(e);const u=e.$$={fragment:null,ctx:[],props:o,update:V,not_equal:i,bound:ea(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(l?l.$$.context:[])),callbacks:ea(),dirty:a,skip_bound:!1,root:r.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(e,r.props||{},(d,h,...g)=>{const m=g.length?g[0]:h;return u.ctx&&i(u.ctx[d],u.ctx[d]=m)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](m),c&&Jd(e,d)),h}):[],u.update(),c=!0,xr(u.before_update),u.fragment=n?n(u.ctx):!1,r.target){if(r.hydrate){const d=Bd(r.target);u.fragment&&u.fragment.l(d),d.forEach(Q)}else u.fragment&&u.fragment.c();r.intro&&q(e.$$.fragment),rr(e,r.target,r.anchor),ha()}So(l)}class en{constructor(){kr(this,"$$");kr(this,"$$set")}$destroy(){nr(this,1),this.$destroy=V}$on(r,t){if(!Hr(t))return V;const n=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return n.push(t),()=>{const i=n.indexOf(t);i!==-1&&n.splice(i,1)}}$set(r){this.$$set&&!Pd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Xd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Xd);const uo=[];function Zd(e,r){return{subscribe:di(e,r).subscribe}}function di(e,r=V){let t;const n=new Set;function i(a){if(Md(e,a)&&(e=a,t)){const l=!uo.length;for(const u of n)u[1](),uo.push(u,e);if(l){for(let u=0;u<uo.length;u+=2)uo[u][0](uo[u+1]);uo.length=0}}}function o(a){i(a(e))}function s(a,l=V){const u=[a,l];return n.add(u),n.size===1&&(t=r(i,o)||V),a(e),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function co(e,r,t){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return Zd(t,(s,a)=>{let l=!1;const u=[];let c=0,d=V;const h=()=>{if(c)return;d();const m=r(n?u[0]:u,s,a);o?s(m):d=Hr(m)?m:V},g=i.map((m,_)=>B(m,w=>{u[_]=w,c&=~(1<<_),l&&h()},()=>{c|=1<<_}));return l=!0,h(),function(){xr(g),d(),l=!1}})}const hr={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"},_n=Symbol("root");function O(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}const Zo={outer:"divkit-bf0ea",outer_width_content:"divkit-bab07",outer_height_content:"divkit-07f20",root__clickable:"divkit-27458","root__clickable-no-transition":"divkit-3bb57","outer_hide-on-transition-in":"divkit-c5f24","outer_halign-self_start":"divkit-002ec","outer_halign-self_center":"divkit-204f8","outer_halign-self_end":"divkit-bd7ba","outer_halign-self_stretch":"divkit-02d12","outer_valign-self_start":"divkit-fd8aa","outer_valign-self_center":"divkit-62df2","outer_valign-self_end":"divkit-819a0","outer_valign-self_stretch":"divkit-8a331","outer_parent-flex_vertical":"divkit-46b27","outer_parent-flex_horizontal":"divkit-be075","outer_valign-self_baseline":"divkit-2b876","outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_start":"divkit-91fd4","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_end":"divkit-67470",outer__border:"divkit-90c49",outer_visibility_invisible:"divkit-b33bc",outer_visibility_gone:"divkit-f6ff9","outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Zt(e){if(!e)return;let r="";for(const t in e)if(e.hasOwnProperty(t)){if(!e[t]&&e[t]!==0)continue;r&&(r+=";"),r+=t+":"+String(e[t])}return r||void 0}function Be(e){if(typeof e!="number"&&typeof e!="string"||!e)return"0";const r=Number(e);return Number.isNaN(r)?"0":Math.ceil(r*1e3)/1e4+"em"}function un(e){let r=Be(e);return r==="0"&&(r+="em"),r}function wa(e,r){for(;e.length<r;)e="0"+e;return e}function Lr(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=ni(e);return n?(n.a*=r,xs(n)):t}function Qd(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=ni(e);return n?(n.a=r,xs(n)):t}function xs(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>wa(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function ni(e){const r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(r){if(r.length===5){const[u,c,d,h,g]=r,m=d.length===2?d:d+d,_=h.length===2?h:h+h,w=g.length===2?g:g+g,v=c.length===2?c:c+c;return{a:parseInt(v,16),r:parseInt(m,16),g:parseInt(_,16),b:parseInt(w,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,a=i.length===2?i:i+i,l=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function $s(e){let r=String(e);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 wi=Boolean;function Qo(e,r){if(e.length===1&&e[0].type==="solid")return $d({bg:e[0]});const t=e.map(n=>{if(n.type==="solid")return xd({bg:n});if(n.type==="gradient")return e_({bg:n});if(n.type==="image")return n_({bg:n,direction:r});if(n.type==="radial_gradient")return r_({bg:n})}).filter(wi).reverse().reduce(function(n,i){return n.image.push(i.image),n.size.push(i.size||"auto"),n.position.push(i.pos||"50% 50%"),n},{image:[],size:[],position:[]});return{image:t.image.join(","),size:t.size.join(","),position:t.position.join(",")}}function xd(e){const r=Lr(e.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function $d(e){return{color:Lr(e.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function va(e){return e.every(n=>n.color&&typeof n.position=="number"&&n.position>=0&&n.position<=1)?e.sort((n,i)=>Math.abs(n.position-i.position)<1e-6?0:n.position-i.position).map(n=>`${Lr(n.color)} ${(n.position*100).toFixed(2)}%`).join(","):void 0}function e_(e){var n,i,o,s;if(!Array.isArray((n=e.bg)==null?void 0:n.colors)&&!Array.isArray((i=e.bg)==null?void 0:i.color_map))return;const r=(o=e.bg.colors)==null?void 0:o.filter(wi);if(!(r!=null&&r.length)&&!((s=e.bg)!=null&&s.color_map))return;let t;if(e.bg.color_map){const a=va(e.bg.color_map);if(!a)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+a+")"}else{if(!r)return;t="linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+r.map(a=>Lr(a)).join(",")+")"}return{size:void 0,pos:void 0,image:t}}const t_={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function ka(e){if(e&&typeof e=="object"&&"type"in e&&e.value!==void 0){if(e.type==="fixed")return un(e.value);if(e.type==="relative")return`${Number(e.value)*100}%`}return"50%"}function r_(e){var a,l,u,c;if(!Array.isArray((a=e.bg)==null?void 0:a.colors)&&!Array.isArray((l=e.bg)==null?void 0:l.color_map))return;const r=(u=e.bg.colors)==null?void 0:u.filter(wi);if(!(r!=null&&r.length)&&!((c=e.bg)!=null&&c.color_map))return;let t;if(e.bg.color_map?t=va(e.bg.color_map):r&&(t=r.map(d=>Lr(d)).join(",")),!t)return;const n=e.bg.radius;let i;n&&typeof n=="object"&&"type"in n&&n.value!==void 0&&(n.type==="fixed"?i=un(n.value):n.type==="relative"&&(i=t_[n.value]));const o=ka(e.bg.center_x),s=ka(e.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${i||"farthest-corner"} at ${o} ${s},`+t+")"}}function n_(e){var t;const r=(t=e.bg)==null?void 0:t.image_url;if(r)return{size:Ea(e.bg.scale),pos:Aa(e.bg,e.direction),image:'url("'+$s(r)+'")'}}function Ea(e){return e==="fit"?"contain":e==="stretch"?"fill":e==="no_scale"?"none":"cover"}function i_(e){return e==="none"?"auto":e==="fill"?"100% 100%":e}function Aa(e,r){let t,n;return e.content_alignment_horizontal==="left"||r==="ltr"&&e.content_alignment_horizontal==="start"||r==="rtl"&&e.content_alignment_horizontal==="end"?t="0%":e.content_alignment_horizontal==="right"||r==="ltr"&&e.content_alignment_horizontal==="end"||r==="rtl"&&e.content_alignment_horizontal==="start"?t="100%":t="50%",e.content_alignment_vertical==="top"?n="0%":e.content_alignment_vertical==="bottom"?n="100%":n="50%",t+" "+n}function nn(e,r){const t=Number(e);return Number.isNaN(t)||t<0?r:t}function Ca(e,r,t){return typeof r=="number"&&(e&&r>0&&r<=100||!e&&r>=0&&r<100)?r:t}function o_(e){return e.is_enabled!==0&&e.is_enabled!==!1&&e.index!==void 0}function s_(e,{visibilityActions:r,disappearActions:t,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(g=>{o.push({type:"visibility",index:o.length,action:g,visible:!1,count:0,finished:!1})}),t&&t.forEach(g=>{o.push({type:"disappear",index:o.length,action:g,visible:!1,count:0,finished:!1})});const s=o.map((g,m)=>{const _=g.type==="visibility";return i.getDerivedFromVars({index:m,visibility_percentage:g.action.visibility_percentage,visibility_duration:_?g.action.visibility_duration:g.action.disappear_duration,log_limit:g.action.log_limit,is_enabled:g.action.is_enabled},void 0,!0)});let a;const l=()=>{a&&a.disconnect(),o.forEach(g=>{g.timer&&clearTimeout(g.timer)})},u=co(s,g=>g);let c;const d=g=>{const m=g.type==="visibility";i.execAnyActions([g.action],{logType:m?"visible":"disappear",node:e,processUrls:!1})},h=u.subscribe(g=>{c=g.filter(o_);const m={};c.forEach(v=>{m[v.index]=v}),l();const _=[...new Set(c.map(v=>{const K=o[v.index].type==="visibility";return Ca(K,v.visibility_percentage,K?50:0)/100}))];if(!_.length)return;const w=v=>{v.forEach(K=>{c.forEach(X=>{const R=o[X.index],te=R.type==="visibility",ge=Ca(te,X.visibility_percentage,te?50:0);let G;ge===0?G=K.intersectionRatio>=1e-12:G=K.intersectionRatio>=ge/100,(te?!R.visible&&G:R.visible&&!G)?R.finished||(R.timer=setTimeout(()=>{++R.count;const T=X.log_limit===0?1/0:X.log_limit||1;R.count>=T&&(R.finished=!0),d(R)},nn(X.visibility_duration,800))):(te?!G:G)&&R.timer&&clearTimeout(R.timer),R.visible=G})})};a=new IntersectionObserver(w,{threshold:_}),a.observe(e)});return{destroy(){c==null||c.forEach(g=>{const m=o[g.index];!m||m.type!=="disappear"||!m.visible||m.finished||n.registerTimeout(window.setTimeout(()=>{d(m)},g.visibility_duration))}),l(),h()}}}function ja(e,r){r&&e.push(r)}function Vt(e,r,t){const n=[];ja(n,r[e]);for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];if(o){const s=`${e}_${i}`+(typeof o=="string"?`_${o}`:"");ja(n,r[s])}}return n.join(" ")}const el=Symbol("state");function _i(e,r){var s,a;const t=e.top||0,n=((s=r==="ltr"?e.end:e.start)!=null?s:e.right)||0,i=e.bottom||0,o=((a=r==="ltr"?e.start:e.end)!=null?a:e.left)||0;return t===0&&n===0&&i===0&&o===0?"":Be(t)+" "+Be(n)+" "+Be(i)+" "+Be(o)}function fo(e){if(typeof e!="number"&&typeof e!="string")return!1;const r=Number(e);return!Number.isNaN(r)}function Ln(e){return fo(e)&&e>=0}function xo(e,r,t){var i,o;if(!e)return t;const n=[e.top,(i=r==="ltr"?e.end:e.start)!=null?i:e.right,e.bottom,(o=r==="ltr"?e.start:e.end)!=null?o:e.left];for(let s=0;s<n.length;++s)if(n[s]&&!Ln(n[s]))return t;return _i(e,r)}function l_(e,r){return!Ln(e)||e===void 0||e>1?r:Number(e)}const a_=Object.prototype.hasOwnProperty;function _o(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return Object.is(e,r);const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){const o=t[i];if(!a_.call(r,o)||!_o(e[o],r[o]))return!1}return!0}function Oi(e,r){return _o(e,r)?r:e}function u_(e,r){return e==="visible"||e==="invisible"||e==="gone"?e:r}function Sa(e,r){return e==="linear"||e==="ease"||e==="ease_in_out"||e==="ease_in"||e==="ease_out"?e:r}function $o(e,r){const t=Number(e);return Number.isNaN(t)?r:t}function Io(e){const r=[];return e.name==="set"?(e.items||[]).forEach(t=>{r.push(...Io(t))}):r.push(e),r}function ho(e,r){if(!e||typeof e!="object")return r;const t=["top","right","bottom","left"];for(let n=0;n<t.length;++n)if(e[t[n]]&&!Ln(e[t[n]]))return r;return e}function c_(e,r){if(!e&&!r)return{};if(!r)return e;if(!e)return r;const t={};return["top","right","bottom","left","start","end"].forEach(n=>{const i=e[n];i&&(t[n]=i);const o=r[n];o&&(t[n]=(t[n]||0)+o)}),t}function f_(e,r){const t=[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]];for(let n=0;n<t.length;++n)if(t[n]&&!Ln(t[n]))return r;return e}function es(e,r=0,t=10){return[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]].map(n=>Be((n||r)/t*10)).join(" ")}function d_(e){var r,t,n,i,o,s;return Be(((t=(r=e.offset)==null?void 0:r.x)==null?void 0:t.value)||0)+" "+Be(((i=(n=e.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+Be((o=e.blur)!=null?o:2)+" "+Lr(e.color||"#000000",(s=e.alpha)!=null?s:.19)}function __(e,r){var t,n,i,o,s,a;return"drop-shadow("+Lr(e.color||"#000000",(t=e.alpha)!=null?t:.19)+" "+Be((((i=(n=e.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+Be((((s=(o=e.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+Be(((a=e.blur)!=null?a:2)*10/r)+")"}let tl;function go(){return typeof matchMedia>"u"?!1:(tl||(tl=window.matchMedia("(prefers-reduced-motion)")),tl.matches)}const h_=8,g_=(e,r,t,n)=>{let i;return(t||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},a=(u,c)=>{if(u){const d=r.getVariable(u,"integer");if(d){if(c=Math.round(c),s[u]||(s[u]=new Set),!s[u].has(c))return d.setValue(c),s[u].add(c),!0}else{const h=new Error("Missing variable");h.level="error",h.additional={variableName:u},r.logError(h)}}return!1},l=()=>{if(!e)return!1;const u=e.getBoundingClientRect(),c=a(t,u.width),d=a(n,u.height);return c||d};for(;l();){if(++o>h_){const u=new Error("Recursive layout in size_provider");u.level="warn",u.additional={widthVariableName:t,heightVariableName:n},r.logError(u);break}await En()}}),i.observe(e)),i},rl=Symbol("enabled");function Pn(e,r){return e===1||e===0||e===!1||e===!0?!!e:r}function po(e){return[e.state_description,e.description,e.hint].filter(Boolean).join(", ")}const Va=1,Li=2;function Ia(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="translation-fixed")return Be(e.value*r);if(e.type==="translation-percentage")return`${e.value*r}%`}}function ts(e,r=1){if(!(!e||typeof e.value!="number")){if(e.type==="pivot-fixed")return Be(e.value*r);if(e.type==="pivot-percentage")return`${e.value*r}%`}}function p_(e){return e.map(r=>{if(r.type==="rotation"){if(typeof r.angle=="number"){const t=ts(r.pivot_x)||"50%",n=ts(r.pivot_y)||"50%",i=ts(r.pivot_x,-1)||"-50%",o=ts(r.pivot_y,-1)||"-50%";return`translate(${t}, ${n}) rotate(${r.angle}deg) translate(${i}, ${o})`}}else if(r.type==="translation"){const t=Ia(r.x)||0,n=Ia(r.y)||0;return`translate(${t}, ${n})`}}).filter(Boolean).join(" ")}const nl=Symbol("visibility"),Da={actionable__button:"divkit-ee5cc"};function m_(){}const Ki=Symbol("action");function il(e){if(e.startsWith("tel:"))return"tel";if(e.startsWith("/"))return"https";const r=/^([^/]+):\/\//.exec(e);return r&&r[1]||""}function ol(e,r){return r.has(e)}function b_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Lo(a,e,e[29],null);let u=[{class:t=e[2]+" "+((d=e[1])!=null&&d.length?hr["root_disabled-context-menu"]:"")+" "+(e[13]?hr["root__any-actions"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{"aria-hidden":n=e[11]||void 0},e[4]],c={};for(let h=0;h<u.length;h+=1)c=Jn(c,u[h]);return{c(){r=Te("span"),l&&l.c(),fi(r,c)},m(h,g){x(h,r,g),l&&l.m(r,null),e[48](r),i=!0,o||(s=[Wo(e[5].call(null,r)),Ne(r,"click",e[41]),Ne(r,"keydown",e[16]),Ne(r,"focus",e[42]),Ne(r,"blur",e[43]),Ne(r,"pointerdown",e[44]),Ne(r,"wheel",e[45])],o=!0)},p(h,g){var m;l&&l.p&&(!i||g[0]&536870912)&&Bo(l,a,h,h[29],i?Ro(a,h[29],g,null):Ho(h[29]),null),fi(r,c=zi(u,[(!i||g[0]&8198&&t!==(t=h[2]+" "+((m=h[1])!=null&&m.length?hr["root_disabled-context-menu"]:"")+" "+(h[13]?hr["root__any-actions"]:"")))&&{class:t},(!i||g[0]&8)&&{style:h[3]},(!i||g[0]&1024)&&{role:h[10]},(!i||g[0]&16384)&&{"aria-checked":h[14]},(!i||g[0]&2048&&n!==(n=h[11]||void 0))&&{"aria-hidden":n},g[0]&16&&h[4]]))},i(h){i||(q(l,h),i=!0)},o(h){oe(l,h),i=!1},d(h){h&&Q(r),l&&l.d(h),e[48](null),o=!1,xr(s)}}}function y_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Lo(a,e,e[29],null);let u=[{class:t=e[2]+" "+Da.actionable__button+" "+hr["root__any-actions"]+` ${e[6]?hr.root__clickable:hr["root__clickable-no-transition"]} ${hr.root__unselectable} `+((d=e[1])!=null&&d.length?hr["root_disabled-context-menu"]:"")},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{type:"button"},{tabindex:n=e[0].fakeElement===Li?-1:null},e[4]],c={};for(let h=0;h<u.length;h+=1)c=Jn(c,u[h]);return{c(){r=Te("button"),l&&l.c(),fi(r,c)},m(h,g){x(h,r,g),l&&l.m(r,null),r.autofocus&&r.focus(),e[47](r),i=!0,o||(s=[Wo(e[5].call(null,r)),Ne(r,"click",e[36]),Ne(r,"keydown",e[16]),Ne(r,"focus",e[37]),Ne(r,"blur",e[38]),Ne(r,"pointerdown",e[39]),Ne(r,"wheel",e[40])],o=!0)},p(h,g){var m;l&&l.p&&(!i||g[0]&536870912)&&Bo(l,a,h,h[29],i?Ro(a,h[29],g,null):Ho(h[29]),null),fi(r,c=zi(u,[(!i||g[0]&70&&t!==(t=h[2]+" "+Da.actionable__button+" "+hr["root__any-actions"]+` ${h[6]?hr.root__clickable:hr["root__clickable-no-transition"]} ${hr.root__unselectable} `+((m=h[1])!=null&&m.length?hr["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&8)&&{style:h[3]},(!i||g[0]&1024)&&{role:h[10]},(!i||g[0]&16384)&&{"aria-checked":h[14]},{type:"button"},(!i||g[0]&1&&n!==(n=h[0].fakeElement===Li?-1:null))&&{tabindex:n},g[0]&16&&h[4]]))},i(h){i||(q(l,h),i=!0)},o(h){oe(l,h),i=!1},d(h){h&&Q(r),l&&l.d(h),e[47](null),o=!1,xr(s)}}}function w_(e){var d;let r,t,n,i,o,s;const a=e[30].default,l=Lo(a,e,e[29],null);let u=[{href:e[8]},{target:e[12]},{style:e[3]},{role:e[10]},{"aria-checked":e[14]},{class:t=e[2]+" "+hr["root__any-actions"]+" "+(e[6]?hr.root__clickable:hr["root__clickable-no-transition"])+" "+((d=e[1])!=null&&d.length?hr["root_disabled-context-menu"]:"")},{tabindex:n=e[0].fakeElement===Li?-1:null},e[4]],c={};for(let h=0;h<u.length;h+=1)c=Jn(c,u[h]);return{c(){r=Te("a"),l&&l.c(),fi(r,c)},m(h,g){x(h,r,g),l&&l.m(r,null),e[46](r),i=!0,o||(s=[Wo(e[5].call(null,r)),Ne(r,"click",e[31]),Ne(r,"keydown",e[16]),Ne(r,"focus",e[32]),Ne(r,"blur",e[33]),Ne(r,"pointerdown",e[34]),Ne(r,"wheel",e[35])],o=!0)},p(h,g){var m;l&&l.p&&(!i||g[0]&536870912)&&Bo(l,a,h,h[29],i?Ro(a,h[29],g,null):Ho(h[29]),null),fi(r,c=zi(u,[(!i||g[0]&256)&&{href:h[8]},(!i||g[0]&4096)&&{target:h[12]},(!i||g[0]&8)&&{style:h[3]},(!i||g[0]&1024)&&{role:h[10]},(!i||g[0]&16384)&&{"aria-checked":h[14]},(!i||g[0]&70&&t!==(t=h[2]+" "+hr["root__any-actions"]+" "+(h[6]?hr.root__clickable:hr["root__clickable-no-transition"])+" "+((m=h[1])!=null&&m.length?hr["root_disabled-context-menu"]:"")))&&{class:t},(!i||g[0]&1&&n!==(n=h[0].fakeElement===Li?-1:null))&&{tabindex:n},g[0]&16&&h[4]]))},i(h){i||(q(l,h),i=!0)},o(h){oe(l,h),i=!1},d(h){h&&Q(r),l&&l.d(h),e[46](null),o=!1,xr(s)}}}function v_(e){let r,t,n,i;const o=[w_,y_,b_],s=[];function a(l,u){return l[8]?0:l[9]?1:2}return r=a(e),t=s[r]=o[r](e),{c(){t.c(),n=dr()},m(l,u){s[r].m(l,u),x(l,n,u),i=!0},p(l,u){let c=r;r=a(l),r===c?s[r].p(l,u):(mr(),oe(s[c],1,1,()=>{s[c]=null}),br(),t=s[r],t?t.p(l,u):(t=s[r]=o[r](l),t.c()),q(t,1),t.m(n.parentNode,n))},i(l){i||(q(t),i=!0)},o(l){oe(t),i=!1},d(l){l&&Q(n),s[r].d(l)}}}const Fa=8,Ta=400,sl=400,k_=new Set(["button","image","checkbox","radio","header"]);function Ma(e){e.preventDefault()}function E_(e,r,t){let n,i,o=V,s=()=>(o(),o=B(n,D=>t(28,i=D)),n);e.$$.on_destroy.push(()=>o());let{$$slots:a={},$$scope:l}=r,{componentContext:u}=r,{id:c=""}=r,{actions:d=void 0}=r,{doubleTapActions:h=void 0}=r,{longTapActions:g=void 0}=r,{pressStartActions:m=void 0}=r,{pressEndActions:_=void 0}=r,{hoverStartActions:w=void 0}=r,{hoverEndActions:v=void 0}=r,{cls:K=""}=r,{style:X=null}=r,{attrs:R=void 0}=r,{use:te=m_}=r,{customAction:ge=null}=r,{isNativeActionAnimation:G=!0}=r,{hasInnerFocusable:Z=!1}=r,{customAccessibility:se=void 0}=r,{captureFocusOnAction:T=!0}=r;const I=Gr(_n),P=Gr(Ki);Vi(Ki,{hasAction(){return!!(P.hasAction()||d!=null&&d.length||(se==null?void 0:se.mode)==="exclude")}});let L,we="",tt,qe=-1,Me=-1,le=null,Ye=!1,Oe=!1,gt=!1,Qe,ot,be,Mt,ke=!1;function Ve(){return(i==null?void 0:i.some(D=>{if(D!=null&&D.typed)return!0;const Ue=D==null?void 0:D.url;if(!Ue)return!1;const Kt=il(Ue);return Kt&&!ol(Kt,I.getBuiltinProtocols())}))||!1}async function ve(D,Ue){d&&(D&&Ve()&&D.preventDefault(),u.execAnyActions(d,{node:L,processUrls:Ue}))}async function re(D){if(P.hasAction()||D.button!==void 0&&D.button!==0)return;const Ue=Date.now();if(qe>0&&Ue>qe+Ta){D.preventDefault();return}if(h!=null&&h.length&&Me>0&&Ue-Me<sl){D.preventDefault(),u.execAnyActions(h,{processUrls:!0,node:L}),Me=-1;return}if(Me=Ue,h!=null&&h.length&&qe>0&&Ue<qe+sl){D.preventDefault(),clearTimeout(ot),ot=window.setTimeout(()=>{ve(void 0,!0)},sl);return}(ge==null?void 0:ge(D))===!1?D.preventDefault():ve(D,!1)}function Xe(D){P.hasAction()||(le={x:D.clientX,y:D.clientY},Ye=!1,qe=Date.now(),Qe&&clearTimeout(Qe),clearTimeout(ot),u.execAnyActions(m,{node:L}))}function et(D){le&&(Math.abs(le.x-D.clientX)>Fa||Math.abs(le.y-D.clientY)>Fa)&&(Ye=!0)}function Le(D){P.hasAction()||!le||qe<0||(!Ye&&Date.now()-qe>=Ta&&(D.stopImmediatePropagation(),u.execAnyActions(g,{processUrls:!0,node:L})),Qe&&clearTimeout(Qe),Qe=window.setTimeout(()=>{le=null,qe=-1},100),u.execAnyActions(_,{node:L}))}function Dt(){P.hasAction()||u.execAnyActions(w,{node:L})}function nt(){P.hasAction()||u.execAnyActions(v,{node:L})}function J(D){const Ue=D.target;Ue instanceof HTMLElement&&(Ue.tagName==="INPUT"||Ue.contentEditable==="true")||D.ctrlKey||D.metaKey||D.altKey||D.shiftKey||D.key==="Enter"&&Array.isArray(d)&&d.length&&(u.execAnyActions(d),D.preventDefault())}xn(()=>{c&&!Z&&I.registerFocusable(c,{focus(){L&&(we||Oe)&&L.focus()}})}),pn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",et),window.removeEventListener("pointerup",Le),window.removeEventListener("pointercancel",Le)),c&&!Z&&I.unregisterFocusable(c),Qe&&clearTimeout(Qe),ot&&clearTimeout(ot)});function st(D){Mn.call(this,e,D)}function Fe(D){Mn.call(this,e,D)}function ut(D){Mn.call(this,e,D)}function ct(D){Mn.call(this,e,D)}function er(D){Mn.call(this,e,D)}function ht(D){Mn.call(this,e,D)}function he(D){Mn.call(this,e,D)}function Ht(D){Mn.call(this,e,D)}function Ft(D){Mn.call(this,e,D)}function Gt(D){Mn.call(this,e,D)}function U(D){Mn.call(this,e,D)}function _t(D){Mn.call(this,e,D)}function Se(D){Mn.call(this,e,D)}function ce(D){Mn.call(this,e,D)}function mt(D){Mn.call(this,e,D)}function Lt(D){Fr[D?"unshift":"push"](()=>{L=D,t(7,L)})}function Ie(D){Fr[D?"unshift":"push"](()=>{L=D,t(7,L)})}function Pe(D){Fr[D?"unshift":"push"](()=>{L=D,t(7,L)})}return e.$$set=D=>{"componentContext"in D&&t(0,u=D.componentContext),"id"in D&&t(17,c=D.id),"actions"in D&&t(18,d=D.actions),"doubleTapActions"in D&&t(19,h=D.doubleTapActions),"longTapActions"in D&&t(1,g=D.longTapActions),"pressStartActions"in D&&t(20,m=D.pressStartActions),"pressEndActions"in D&&t(21,_=D.pressEndActions),"hoverStartActions"in D&&t(22,w=D.hoverStartActions),"hoverEndActions"in D&&t(23,v=D.hoverEndActions),"cls"in D&&t(2,K=D.cls),"style"in D&&t(3,X=D.style),"attrs"in D&&t(4,R=D.attrs),"use"in D&&t(5,te=D.use),"customAction"in D&&t(24,ge=D.customAction),"isNativeActionAnimation"in D&&t(6,G=D.isNativeActionAnimation),"hasInnerFocusable"in D&&t(25,Z=D.hasInnerFocusable),"customAccessibility"in D&&t(26,se=D.customAccessibility),"captureFocusOnAction"in D&&t(27,T=D.captureFocusOnAction),"$$scope"in D&&t(29,l=D.$$scope)},e.$$.update=()=>{if(e.$$.dirty[0]&67108864&&t(11,ke=(se==null?void 0:se.mode)==="exclude"),e.$$.dirty[0]&262145&&s(t(15,n=u.getDerivedFromVars(d,void 0,!0))),e.$$.dirty[0]&285214977){if(Array.isArray(i)&&(i!=null&&i.length))for(let D=0;D<i.length;++D){const Ue=i[D].url;if(Ue){t(8,we=Ue),t(12,tt=i[D].target||void 0);break}}t(9,Oe=!!ge),(we||Array.isArray(i)&&(i!=null&&i.length))&&(P.hasAction()||ke)?(t(8,we=""),u.logError(O(new Error("Actionable element is forbidden inside other actionable element or inside accessibility mode=exlucde"),{level:"warn",additional:{actions:i}}))):we&&!ol(il(we),I.getBuiltinProtocols())?(t(8,we=""),t(9,Oe=!0)):!we&&Array.isArray(i)&&(i!=null&&i.length)&&(t(9,Oe=!0),i.some(D=>D.url||D.typed||D.menu_items)||u.logError(O(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:i}})))}e.$$.dirty[0]&67110656&&(se!=null&&se.type&&k_.has(se.type)?se.type==="header"?t(10,be="heading"):se.type==="image"?t(10,be="img"):t(10,be=se.type):we?t(10,be=void 0):Oe&&t(10,be="button"),(be==="checkbox"||be==="radio")&&typeof(se==null?void 0:se.is_checked)=="boolean"?t(14,Mt=se.is_checked):t(14,Mt=void 0)),e.$$.dirty[0]&150471554&&L&&(we||Oe||h!=null&&h.length?L.addEventListener("click",re):L.removeEventListener("click",re),h!=null&&h.length||g!=null&&g.length||m!=null&&m.length||_!=null&&_.length?(L.addEventListener("pointerdown",Xe,{passive:!0}),window.addEventListener("pointermove",et,{passive:!0}),window.addEventListener("pointerup",Le,{passive:!0}),window.addEventListener("pointercancel",Le,{passive:!0})):(L.removeEventListener("pointerdown",Xe),window.removeEventListener("pointerup",Le),window.removeEventListener("pointermove",et),window.removeEventListener("pointercancel",Le)),w!=null&&w.length?L.addEventListener("pointerenter",Dt):L.removeEventListener("pointerenter",Dt),v!=null&&v.length?L.addEventListener("pointerleave",nt):L.removeEventListener("pointerleave",nt),T===!1?L.addEventListener("mousedown",Ma):L.removeEventListener("mousedown",Ma),t(13,gt=!!(we||Oe||h!=null&&h.length||g!=null&&g.length||m!=null&&m.length||_!=null&&_.length||w!=null&&w.length||v!=null&&v.length)))},[u,g,K,X,R,te,G,L,we,Oe,be,ke,tt,gt,Mt,n,J,c,d,h,m,_,w,v,ge,Z,se,T,i,l,a,st,Fe,ut,ct,er,ht,he,Ht,Ft,Gt,U,_t,Se,ce,mt,Lt,Ie,Pe]}class rs extends en{constructor(r){super(),$r(this,r,E_,v_,Or,{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 Ji={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function Un(e){return fo(e)&&e>0}function Pa(e,r){return e.map(t=>{if(!t){r(O(new Error("Incorrect filter"),{level:"warn"}));return}if(t.type==="blur"){if(Un(t.radius))return`blur(${un(t.radius/2)})`}else{if(t.type==="rtl_mirror")return;r(O(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}}).filter(Boolean).join(" ")}function Na(e,r,t){const n=e.slice();return n[6]=r[t],n}function A_(e){let r,t;return{c(){r=Te("span"),b(r,"class",Ji["outer-background__item"]),b(r,"style",t=Zt(e[6].style))},m(n,i){x(n,r,i)},p(n,i){i&2&&t!==(t=Zt(n[6].style))&&b(r,"style",t)},d(n){n&&Q(r)}}}function C_(e){let r,t,n,i,o;return{c(){r=Te("img"),ci(r.src,t=e[6].image_url)||b(r,"src",t),b(r,"alt",""),b(r,"aria-hidden","true"),b(r,"loading","lazy"),b(r,"decoding","async"),b(r,"class",Ji["outer-background__item"]),b(r,"style",n=Zt(e[6].style))},m(s,a){x(s,r,a),i||(o=Ne(r,"error",e[2]),i=!0)},p(s,a){a&2&&!ci(r.src,t=s[6].image_url)&&b(r,"src",t),a&2&&n!==(n=Zt(s[6].style))&&b(r,"style",n)},d(s){s&&Q(r),i=!1,o()}}}function za(e){let r;function t(o,s){return o[6].image_url?C_:A_}let n=t(e),i=n(e);return{c(){i.c(),r=dr()},m(o,s){i.m(o,s),x(o,r,s)},p(o,s){n===(n=t(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(r.parentNode,r)))},d(o){o&&Q(r),i.d(o)}}}function j_(e){let r,t,n=_r(e[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=za(Na(e,n,o));return{c(){r=Te("span");for(let o=0;o<i.length;o+=1)i[o].c();b(r,"class",t=Ji["outer-background"]+(e[0]?" "+Ji["outer-background_clip"]:"")),H(r,"border-radius",e[0])},m(o,s){x(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=_r(o[1]);let a;for(a=0;a<n.length;a+=1){const l=Na(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&&t!==(t=Ji["outer-background"]+(o[0]?" "+Ji["outer-background_clip"]:""))&&b(r,"class",t),s&1&&H(r,"border-radius",o[0])},i:V,o:V,d(o){o&&Q(r),gn(i,o)}}}function S_(e,r,t){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:a=""}=r;function l(u){u.target&&"classList"in u.target&&u.target.classList.add(Ji["outer-background__item_hidden"])}return e.$$set=u=>{"direction"in u&&t(3,i=u.direction),"componentContext"in u&&t(4,o=u.componentContext),"background"in u&&t(5,s=u.background),"radius"in u&&t(0,a=u.radius)},e.$$.update=()=>{e.$$.dirty&56&&t(1,n=s.map(u=>{const c={},d={style:c};if(u.type==="nine_patch_image"&&u.insets)c["border-image"]=`url("${u.image_url}") ${u.insets.top||0} ${u.insets.right||0} ${u.insets.bottom||0} ${u.insets.left||0} fill`,c["border-image-width"]="auto";else{const h=Qo([u],i);u.type==="solid"&&(c["background-color"]=h.color),u.type==="gradient"&&(c["background-image"]=h.image),u.type==="image"&&(c.opacity=Number(u.alpha),d.image_url=u.image_url,c["object-fit"]=h.size,c["object-position"]=h.position,Array.isArray(u.filters)&&u.filters.length&&(c.filter=Pa(u.filters,o.logError),i==="rtl"&&u.filters.some(g=>g.type==="rtl_mirror")&&(c.transform="scale(-1,1)")))}return d}))},[a,n,l,i,o,s]}class V_ extends en{constructor(r){super(),$r(this,r,S_,j_,Or,{direction:3,componentContext:4,background:5,radius:0})}}const I_=e=>({hasCustomFocus:e[0]&65536,widthMin:e[0]&32,widthMax:e[0]&64,heightMin:e[0]&128,heightMax:e[0]&256}),Oa=e=>({focusHandler:e[49],blurHandler:e[50],hasCustomFocus:e[16],widthMin:e[5],widthMax:e[6],heightMin:e[7],heightMax:e[8]});function La(e){let r,t;return r=new rs({props:{componentContext:e[0],id:e[0].json.id,use:e[48],cls:e[1]+" "+Vt("outer",Zo,e[28]),style:Zt(e[27]),actions:e[23],doubleTapActions:e[24],longTapActions:e[25],pressStartActions:e[11],pressEndActions:e[12],hoverStartActions:e[13],hoverEndActions:e[14],attrs:e[19],hasInnerFocusable:e[2],isNativeActionAnimation:!e[15].length||Ha(e[15]),customAccessibility:e[18],captureFocusOnAction:e[26],$$slots:{default:[D_]},$$scope:{ctx:e}}}),r.$on("focus",e[49]),r.$on("blur",e[50]),r.$on("pointerdown",e[126]),r.$on("wheel",e[127]),{c(){or(r.$$.fragment)},m(n,i){rr(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&1&&(o.id=n[0].json.id),i[0]&268435458&&(o.cls=n[1]+" "+Vt("outer",Zo,n[28])),i[0]&134217728&&(o.style=Zt(n[27])),i[0]&8388608&&(o.actions=n[23]),i[0]&16777216&&(o.doubleTapActions=n[24]),i[0]&33554432&&(o.longTapActions=n[25]),i[0]&2048&&(o.pressStartActions=n[11]),i[0]&4096&&(o.pressEndActions=n[12]),i[0]&8192&&(o.hoverStartActions=n[13]),i[0]&16384&&(o.hoverEndActions=n[14]),i[0]&524288&&(o.attrs=n[19]),i[0]&4&&(o.hasInnerFocusable=n[2]),i[0]&32768&&(o.isNativeActionAnimation=!n[15].length||Ha(n[15])),i[0]&262144&&(o.customAccessibility=n[18]),i[0]&67108864&&(o.captureFocusOnAction=n[26]),i[0]&1247225|i[4]&16&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(q(r.$$.fragment,n),t=!0)},o(n){oe(r.$$.fragment,n),t=!1},d(n){nr(r,n)}}}function Ra(e){let r,t;return r=new V_({props:{componentContext:e[0],direction:e[17],background:e[9],radius:e[4]}}),{c(){or(r.$$.fragment)},m(n,i){rr(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&131072&&(o.direction=n[17]),i[0]&512&&(o.background=n[9]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){t||(q(r.$$.fragment,n),t=!0)},o(n){oe(r.$$.fragment,n),t=!1},d(n){nr(r,n)}}}function Ba(e){let r,t;return{c(){r=Te("span"),b(r,"class",Zo.outer__border),b(r,"style",t=Zt(e[3]))},m(n,i){x(n,r,i)},p(n,i){i[0]&8&&t!==(t=Zt(n[3]))&&b(r,"style",t)},d(n){n&&Q(r)}}}function D_(e){let r,t,n,i=e[10]&&Ra(e);const o=e[125].default,s=Lo(o,e,e[128],Oa);let a=e[20]&&Ba(e);return{c(){i&&i.c(),r=dr(),s&&s.c(),a&&a.c(),t=dr()},m(l,u){i&&i.m(l,u),x(l,r,u),s&&s.m(l,u),a&&a.m(l,u),x(l,t,u),n=!0},p(l,u){l[10]?i?(i.p(l,u),u[0]&1024&&q(i,1)):(i=Ra(l),i.c(),q(i,1),i.m(r.parentNode,r)):i&&(mr(),oe(i,1,1,()=>{i=null}),br()),s&&s.p&&(!n||u[0]&66016|u[4]&16)&&Bo(s,o,l,l[128],n?Ro(o,l[128],u,I_):Ho(l[128]),Oa),l[20]?a?a.p(l,u):(a=Ba(l),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i(l){n||(q(i),q(s,l),n=!0)},o(l){oe(i),oe(s,l),n=!1},d(l){l&&(Q(r),Q(t)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function F_(e){let r,t,n=!e[21]&&!e[22]&&La(e);return{c(){n&&n.c(),r=dr()},m(i,o){n&&n.m(i,o),x(i,r,o),t=!0},p(i,o){!i[21]&&!i[22]?n?(n.p(i,o),o[0]&6291456&&q(n,1)):(n=La(i),n.c(),q(n,1),n.m(r.parentNode,r)):n&&(mr(),oe(n,1,1,()=>{n=null}),br())},i(i){t||(q(n),t=!0)},o(i){oe(n),t=!1},d(i){i&&Q(r),n&&n.d(i)}}}const T_={left:"start",center:"center",right:"end",start:"start",end:"end"},M_={left:"end",center:"center",right:"start",start:"start",end:"end"},P_={top:"start",center:"center",bottom:"end",baseline:"baseline"},ll=e=>`The component id with the "${e}" property for state change is missing. Either specify the id, or specify the "transition_trigger" property without "state_change" value.`;function Ha(e){return e.some(r=>r.name==="native")}function N_(e,r,t){let n,i,o,s,a,l,u,c,d,h,g,m,_,w,v,K,X,R,te,ge,G,Z,se,T,I,P=V,L=()=>(P(),P=B(v,De=>t(108,I=De)),v),we,tt=V,qe=()=>(tt(),tt=B(K,De=>t(109,we=De)),K),Me,le,Ye=V,Oe=()=>(Ye(),Ye=B(w,De=>t(111,le=De)),w),gt,Qe=V,ot=()=>(Qe(),Qe=B(X,De=>t(112,gt=De)),X),be,Mt=V,ke=()=>(Mt(),Mt=B(_,De=>t(113,be=De)),_),Ve,ve,re=V,Xe=()=>(re(),re=B(m,De=>t(114,ve=De)),m),et,Le=V,Dt=()=>(Le(),Le=B(i,De=>t(115,et=De)),i),nt,J=V,st=()=>(J(),J=B(g,De=>t(18,nt=De)),g),Fe,ut=V,ct=()=>(ut(),ut=B(h,De=>t(116,Fe=De)),h),er,ht=V,he=()=>(ht(),ht=B(d,De=>t(117,er=De)),d),Ht,Ft=V,Gt=()=>(Ft(),Ft=B(c,De=>t(118,Ht=De)),c),U,_t=V,Se=()=>(_t(),_t=B(a,De=>t(119,U=De)),a),ce,mt=V,Lt=()=>(mt(),mt=B(u,De=>t(120,ce=De)),u),Ie,Pe=V,D=()=>(Pe(),Pe=B(l,De=>t(121,Ie=De)),l),Ue,Kt=V,lt=()=>(Kt(),Kt=B(s,De=>t(122,Ue=De)),s),St,Yt=V,ye=()=>(Yt(),Yt=B(o,De=>t(123,St=De)),o),vt;e.$$.on_destroy.push(()=>P()),e.$$.on_destroy.push(()=>tt()),e.$$.on_destroy.push(()=>Ye()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>Mt()),e.$$.on_destroy.push(()=>re()),e.$$.on_destroy.push(()=>Le()),e.$$.on_destroy.push(()=>J()),e.$$.on_destroy.push(()=>ut()),e.$$.on_destroy.push(()=>ht()),e.$$.on_destroy.push(()=>Ft()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>mt()),e.$$.on_destroy.push(()=>Pe()),e.$$.on_destroy.push(()=>Kt()),e.$$.on_destroy.push(()=>Yt());let{$$slots:We={},$$scope:Ae}=r,{componentContext:Y}=r,{cls:yt=""}=r,{style:Jt=void 0}=r,{layoutParams:Re={}}=r,{customDescription:ur=!1}=r,{customPaddings:sr=!1}=r,{customActions:Wt=""}=r,{additionalPaddings:_e=null}=r,{heightByAspect:fe=!1}=r,{parentOf:at=void 0}=r,{parentOfSimpleMode:ir=void 0}=r,{replaceItems:cr=void 0}=r,{hasInnerFocusable:Qt=!1}=r,{alwaysCustomFocus:Ar=!1}=r,{devapi:wr=void 0}=r;const Et=Gr(_n),It=Gr(el),{isEnabled:Xt}=Gr(rl);dn(e,Xt,De=>t(124,vt=De));const Pt=Gr(nl),Rt=Et.direction;dn(e,Rt,De=>t(17,Ve=De));let At,vr,Ge=null,tr=[],Mr={},Br={},pe=!1,ft=1,jr="transparent",yr=0,ar={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Dr="",Ee=null,Ze="",Ct={},$,xe,gr,C=0,de=0,f=0,M=!1,rt=!1,$e={},lr,N,it,ze=0,Ce=0,Ke=0,kt=!1,pr=!1,Xr=1,jn,Nr,ne,Sn,bn=[],Vn=!1,On=!1,Ur,yn,y,k=[],E=[],W=[],F=[],He=[],ue=[],Bt=[],wt=[],Ut=[],Tt=[],Nt="",Sr,pt,Vr,qt,rn=!1,Zr="visible",on,bt,p=!1,A=!0,z,j,ie,ee,dt;function jt(){t(70,Ee=null),t(71,Ze=""),t(84,Xr=1),t(96,rn=!1),t(97,Zr="visible"),t(98,on=void 0),t(26,A=!0),bn=Y.fakeElement?[]:Y.json.transition_triggers||["state_change","visibility_change"],t(87,Vn=bn.indexOf("state_change")!==-1),On=bn.indexOf("visibility_change")!==-1,At&&Ws(At),j==null||j(),vt&&t(100,j=Et.processVariableTriggers(Y,Y.json.variable_triggers))}function Yr(De,Ir){if(!Array.isArray(at)||!cr||ir&&(Array.isArray(Ir)?Ir.length:0)!==1)return;const Cr=at.findIndex(Kr=>(Kr==null?void 0:Kr.id)===De),In=at.slice();In.splice(Cr,1,...(Ir||[]).map(Kr=>({json:Kr,id:Kr==null?void 0:Kr.id}))),t(51,at=In),cr(In.map(Kr=>Kr==null?void 0:Kr.json))}function Pr(De){const Ir=$o(De.start_value,1),Cr=$o(De.end_value,1),In=nn(De.start_delay,0),Kr=go()?0:nn(De.duration,300),Wn=Sa(De.interpolator,"ease_in_out").replace(/_/g,"-");switch(De.name){case"fade":return t(92,Sr=Ir),t(93,pt=Cr),`opacity ${Kr}ms ${Wn} ${In}ms`;case"scale":return t(94,Vr=Ir),t(95,qt=Cr),`transform ${Kr}ms ${Wn} ${In}ms`;case"native":case"no_animation":return"";default:return Y.logError(O(new Error("Unknown action_animation name"),{additional:{animation:De.name}})),""}}const qr=Pt.visible;dn(e,qr,De=>t(110,Me=De));const ji=di(G);Vi(nl,{visible:ji});async function ei(De){t(97,Zr=De);const Ir=De==="visible"?"in":"out",Cr=Ir==="in"?Y.json.transition_in:Y.json.transition_out;if(On&&Cr){let In;De==="gone"&&(In=At.getBoundingClientRect()),await En(),Ir==="in"&&t(89,yn=!0),It.runVisibilityTransition({...Y.json,visibility:"visible"},Y,Cr,At,Ir,In).then(()=>{Ir==="in"&&t(89,yn=!1)}).catch(Kr=>{throw Ir==="in"&&t(89,yn=!1),Kr})}}function Mi(){if(Ge&&At){const De=Et.getExtensionContext(Y);Ge.forEach(Ir=>{var Cr;(Cr=Ir.unmountView)==null||Cr.call(Ir,At,De)}),Ge=null}}function ui(){if(Ge!=null&&Ge.length){const De=Et.getExtensionContext(Y);Ge.forEach(Ir=>{var Cr;(Cr=Ir.updateView)==null||Cr.call(Ir,At,De)})}}function Ws(De){var Cr,In,Kr;ie==null||ie.destroy(),t(63,At=De),Vn&&Y.json.transition_in&&(Y.id?It.registerChildWithTransitionIn(Y.json,Y,Y.json.transition_in,De).then(()=>{t(88,Ur=!1)}).catch(Wn=>{throw t(88,Ur=!1),Wn}):Y.logError(O(new Error(ll("transition_in")),{level:"warn"}))),Vn&&Y.json.transition_out&&(Y.id?It.registerChildWithTransitionOut(Y.json,Y,Y.json.transition_out,De):Y.logError(O(new Error(ll("transition_out")),{level:"warn"}))),Y.fakeElement||(Y.json.transition_change&&!Y.id&&Y.logError(O(new Error(ll("transition_change")),{level:"warn"})),It.registerChildWithTransitionChange(Y.json,Y,Y.json.transition_change,De).then(()=>{t(90,y=!1)}).catch(Wn=>{throw t(90,y=!1),Wn}));const Ir=Y.id;return Ir&&(ee==null||ee(),ee=Et.registerId(Ir,{context:()=>Y,node:()=>At}),It.registerChild(Ir)),(Cr=Y.json.tooltips)==null||Cr.forEach(Wn=>{Et.registerTooltip(De,Wn)}),bt&&(bt.disconnect(),bt=void 0),bt=g_(At,Y,(In=Y.json.layout_provider)==null?void 0:In.width_variable_name,(Kr=Y.json.layout_provider)==null?void 0:Kr.height_variable_name),ie={destroy(){ee&&(ee(),ee=void 0),Ir&&It.unregisterChild(Ir),dt&&dt.destroy()}},ie}function Ql(){dt==null||dt.destroy();const De=!Y.fakeElement||Y.fakeElement===Li,Ir=De?Y.json.visibility_actions||Y.json.visibility_action&&[Y.json.visibility_action]:[],Cr=De?Y.json.disappear_actions:[];Array.isArray(Ir)&&Ir.length||Array.isArray(Cr)&&Cr.length?t(101,dt=s_(At,{visibilityActions:Ir,disappearActions:Cr,rootCtx:Et,componentContext:Y})):t(101,dt=void 0)}function xl(){Y.json.focus&&((Ar||!Us(Et.isPointerFocus))&&t(16,p=!0),Y.execAnyActions(F))}function je(){Y.json.focus&&(t(16,p=!1),Y.execAnyActions(He))}Ko(ui),pn(()=>{var De;tr.forEach(Ir=>{Et.unregisterParentOf(Ir)}),t(64,tr=[]),bt&&(bt.disconnect(),bt=void 0),(De=Y.json.tooltips)==null||De.forEach(Ir=>{Et.unregisterTooltip(Ir)}),j==null||j(),Mi()});function fr(De){Mn.call(this,e,De)}function sn(De){Mn.call(this,e,De)}return e.$$set=De=>{"componentContext"in De&&t(0,Y=De.componentContext),"cls"in De&&t(1,yt=De.cls)