@divkitframework/divkit 31.1.0 → 31.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-hydratable.js +12 -12
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-hydratable.js +13 -13
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-hydratable.mjs +12176 -10838
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
DivKit v31.
|
|
1
|
+
"use strict";var hd=Object.defineProperty;var _d=(t,r,e)=>r in t?hd(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var ur=(t,r,e)=>_d(t,typeof r!="symbol"?r+"":r,e);/*!
|
|
2
|
+
DivKit v31.2.0
|
|
3
3
|
https://github.com/divkit/divkit
|
|
4
4
|
@licence Apache-2.0
|
|
5
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
6
|
-
`;for(let
|
|
7
|
-
`}const u=c+`100% {${s(
|
|
8
|
-
}`,f=`__svelte_${_d(u)}_${l}`,_=Ju(e),{stylesheet:m,rules:y}=cs.get(_)||hd(_,e);y[f]||(y[f]=!0,m.insertRule(`@keyframes ${f} ${u}`,m.cssRules.length));const h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${f} ${n}ms linear ${i}ms 1 both`,us+=1,f}function ds(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(", "),us-=i,us||gd())}function gd(){ml(()=>{us||(cs.forEach(e=>{const{ownerNode:r}=e.stylesheet;r&&ne(r)}),cs.clear())})}let ko;function wo(e){ko=e}function uo(){if(!ko)throw new Error("Function called outside component initialization");return ko}function $n(e){uo().$$.on_mount.push(e)}function Es(e){uo().$$.after_update.push(e)}function sn(e){uo().$$.on_destroy.push(e)}function pd(){const e=uo();return(r,t,{cancelable:n=!1}={})=>{const i=e.$$.callbacks[r];if(i){const o=qu(r,t,{cancelable:n});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Li(e,r){return uo().$$.context.set(e,r),r}function Hr(e){return uo().$$.context.get(e)}function bi(e,r){const t=e.$$.callbacks[r.type];t&&t.slice().forEach(n=>n.call(this,r))}const ro=[],Fr=[];let so=[];const Kl=[],Ku=Promise.resolve();let Js=!1;function Xu(){Js||(Js=!0,Ku.then(Zu))}function wn(){return Xu(),Ku}function Rn(e){so.push(e)}const zs=new Set;let $i=0;function Zu(){if($i!==0)return;const e=ko;do{try{for(;$i<ro.length;){const r=ro[$i];$i++,wo(r),md(r.$$)}}catch(r){throw ro.length=0,$i=0,r}for(wo(null),ro.length=0,$i=0;Fr.length;)Fr.pop()();for(let r=0;r<so.length;r+=1){const t=so[r];zs.has(t)||(zs.add(t),t())}so.length=0}while(ro.length);for(;Kl.length;)Kl.pop()();Js=!1,zs.clear(),wo(e)}function md(e){if(e.fragment!==null){e.update(),Wr(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(Rn)}}function bd(e){const r=[],t=[];so.forEach(n=>e.indexOf(n)===-1?r.push(n):t.push(n)),t.forEach(n=>n()),so=r}let bo;function yl(){return bo||(bo=Promise.resolve(),bo.then(()=>{bo=null})),bo}function Wi(e,r,t){e.dispatchEvent(qu(`${r?"intro":"outro"}${t}`))}const Go=new Set;let li;function ir(){li={r:0,c:[],p:li}}function or(){li.r||Wr(li.c),li=li.p}function B(e,r){e&&e.i&&(Go.delete(e),e.i(r))}function ee(e,r,t,n){if(e&&e.o){if(Go.has(e))return;Go.add(e),li.c.push(()=>{Go.delete(e),n&&(t&&e.d(1),n())}),e.o(r)}else n&&n()}const wl={duration:0};function vl(e,r,t){const n={direction:"in"};let i=r(e,t,n),o=!1,s,l,a=0;function c(){s&&ds(e,s)}function u(){const{delay:_=0,duration:m=300,easing:y=ws,tick:h=E,css:w}=i||wl;w&&(s=fs(e,0,1,m,_,y,w,a++)),h(0,1);const v=pl()+_,R=v+m;l&&l.abort(),o=!0,Rn(()=>Wi(e,!0,"start")),l=bl(N=>{if(o){if(N>=R)return h(1,0),Wi(e,!0,"end"),c(),o=!1;if(N>=v){const V=y((N-v)/m);h(V,1-V)}}return o})}let f=!1;return{start(){f||(f=!0,ds(e),jr(i)?(i=i(n),yl().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function yd(e,r,t){const n={direction:"out"};let i=r(e,t,n),o=!0,s;const l=li;l.r+=1;let a;function c(){const{delay:u=0,duration:f=300,easing:_=ws,tick:m=E,css:y}=i||wl;y&&(s=fs(e,1,0,f,u,_,y));const h=pl()+u,w=h+f;Rn(()=>Wi(e,!1,"start")),"inert"in e&&(a=e.inert,e.inert=!0),bl(v=>{if(o){if(v>=w)return m(0,1),Wi(e,!1,"end"),--l.r||Wr(l.c),!1;if(v>=h){const R=_((v-h)/f);m(1-R,R)}}return o})}return jr(i)?yl().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in e&&(e.inert=a),u&&i.tick&&i.tick(1,0),o&&(s&&ds(e,s),o=!1)}}}function Xl(e,r,t,n){let o=r(e,t,{direction:"both"}),s=n?0:1,l=null,a=null,c=null,u;function f(){c&&ds(e,c)}function _(y,h){const w=y.b-s;return h*=Math.abs(w),{a:s,b:y.b,d:w,duration:h,start:y.start,end:y.start+h,group:y.group}}function m(y){const{delay:h=0,duration:w=300,easing:v=ws,tick:R=E,css:N}=o||wl,V={start:pl()+h,b:y};y||(V.group=li,li.r+=1),"inert"in e&&(y?u!==void 0&&(e.inert=u):(u=e.inert,e.inert=!0)),l||a?a=V:(N&&(f(),c=fs(e,s,y,w,h,v,N)),y&&R(0,1),l=_(V,w),Rn(()=>Wi(e,y,"start")),bl(D=>{if(a&&D>a.start&&(l=_(a,w),a=null,Wi(e,l.b,"start"),N&&(f(),c=fs(e,s,l.b,l.duration,0,v,o.css))),l){if(D>=l.end)R(s=l.b,1-s),Wi(e,l.b,"end"),a||(l.b?f():--l.group.r||Wr(l.group.c)),l=null;else if(D>=l.start){const te=D-l.start;s=l.a+l.d*v(te/l.duration),R(s,1-s)}}return!!(l||a)}))}return{run(y){jr(o)?yl().then(()=>{o=o({direction:y?"in":"out"}),m(y)}):m(y)},end(){f(),l=a=null}}}function nr(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Qu(e,r){ee(e,1,1,()=>{r.delete(e.key)})}function xu(e,r,t,n,i,o,s,l,a,c,u,f){let _=e.length,m=o.length,y=_;const h={};for(;y--;)h[e[y].key]=y;const w=[],v=new Map,R=new Map,N=[];for(y=m;y--;){const F=f(i,o,y),Y=t(F);let X=s.get(Y);X?N.push(()=>X.p(F,r)):(X=c(Y,F),X.c()),v.set(Y,w[y]=X),Y in h&&R.set(Y,Math.abs(y-h[Y]))}const V=new Set,D=new Set;function te(F){B(F,1),F.m(l,u),s.set(F.key,F),u=F.first,m--}for(;_&&m;){const F=w[m-1],Y=e[_-1],X=F.key,H=Y.key;F===Y?(u=F.first,_--,m--):v.has(H)?!s.has(X)||V.has(X)?te(F):D.has(H)?_--:R.get(X)>R.get(H)?(D.add(X),te(F)):(V.add(H),_--):(a(Y,s),_--)}for(;_--;){const F=e[_];v.has(F.key)||a(F,s)}for(;m;)te(w[m-1]);return Wr(N),w}function fo(e,r){const t={},n={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],l=r[o];if(l){for(const a in s)a in l||(n[a]=1);for(const a in l)i[a]||(t[a]=l[a],i[a]=1);e[o]=l}else for(const a in s)i[a]=1}for(const s in n)s in t||(t[s]=void 0);return t}function Wt(e){e&&e.c()}function Rt(e,r,t){const{fragment:n,after_update:i}=e.$$;n&&n.m(r,t),Rn(()=>{const o=e.$$.on_mount.map(Wu).filter(jr);e.$$.on_destroy?e.$$.on_destroy.push(...o):Wr(o),e.$$.on_mount=[]}),i.forEach(Rn)}function Lt(e,r){const t=e.$$;t.fragment!==null&&(bd(t.after_update),Wr(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function wd(e,r){e.$$.dirty[0]===-1&&(ro.push(e),Xu(),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function zr(e,r,t,n,i,o,s=null,l=[-1]){const a=ko;wo(e);const c=e.$$={fragment:null,ctx:[],props:o,update:E,not_equal:i,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r.context||(a?a.$$.context:[])),callbacks:Wl(),dirty:l,skip_bound:!1,root:r.target||a.$$.root};s&&s(c.root);let u=!1;if(c.ctx=t?t(e,r.props||{},(f,_,...m)=>{const y=m.length?m[0]:_;return c.ctx&&i(c.ctx[f],c.ctx[f]=y)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](y),u&&wd(e,f)),_}):[],c.update(),u=!0,Wr(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){const f=fd(r.target);c.fragment&&c.fragment.l(f),f.forEach(ne)}else c.fragment&&c.fragment.c();r.intro&&B(e.$$.fragment),Rt(e,r.target,r.anchor),Zu()}wo(a)}class Rr{constructor(){gr(this,"$$");gr(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=E}$on(r,t){if(!jr(t))return E;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&&!id(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const vd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(vd);const eo=[];function kd(e,r){return{subscribe:ai(e,r).subscribe}}function ai(e,r=E){let t;const n=new Set;function i(l){if(nd(e,l)&&(e=l,t)){const a=!eo.length;for(const c of n)c[1](),eo.push(c,e);if(a){for(let c=0;c<eo.length;c+=2)eo[c][0](eo[c+1]);eo.length=0}}}function o(l){i(l(e))}function s(l,a=E){const c=[l,a];return n.add(c),n.size===1&&(t=r(i,o)||E),l(e),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function Gi(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 kd(t,(s,l)=>{let a=!1;const c=[];let u=0,f=E;const _=()=>{if(u)return;f();const y=r(n?c[0]:c,s,l);o?s(y):f=jr(y)?y:E},m=i.map((y,h)=>M(y,w=>{c[h]=w,u&=~(1<<h),a&&_()},()=>{u|=1<<h}));return a=!0,_(),function(){Wr(m),f(),a=!1}})}const Ad="divkit-6d515",jd="divkit-27458",Cd="divkit-82db1",Ed="divkit-be734",Sd="divkit-9a652",er={root_platform_desktop:Ad,root__clickable:jd,"root__clickable-no-transition":"divkit-3bb57",root:Cd,"root__any-actions":"divkit-3b9c1",root__selectable:Ed,root__unselectable:Sd,"root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},Zr=Symbol("root");function x(e,r={}){const t=e;return t.level=r.level||"error",r.additional&&(t.additional=r.additional),t}const Vd="divkit-bf0ea",Id="divkit-27458",Td="divkit-05991",Dd="divkit-80cac",Fd="divkit-90c49",Md="divkit-b33bc",Pd="divkit-f6ff9",_s={outer:Vd,root__clickable:Id,"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:Td,outer_height_content:Dd,"outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_start":"divkit-91fd4",outer__border:Fd,outer_visibility_invisible:Md,outer_visibility_gone:Pd,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Ct(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 ve(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 yn(e){let r=ve(e);return r==="0"&&(r+="em"),r}function $u(e,r){for(;e.length<r;)e="0"+e;return e}function Ir(e,r=1,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=vi(e);return n?(n.a*=r,kl(n)):t}function Nd(e,r,t="transparent"){if(e=(typeof e=="string"&&e||"").toLowerCase(),e.charAt(0)!=="#")return t;const n=vi(e);return n?(n.a=r,kl(n)):t}function kl(e){return e.a===255?`#${[e.r,e.g,e.b].map(r=>$u(Math.round(r).toString(16),2)).join("")}`:`rgba(${e.r},${e.g},${e.b},${(e.a/255).toFixed(2)})`}function vi(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[c,u,f,_,m]=r,y=f.length===2?f:f+f,h=_.length===2?_:_+_,w=m.length===2?m:m+m,v=u.length===2?u:u+u;return{a:parseInt(v,16),r:parseInt(y,16),g:parseInt(h,16),b:parseInt(w,16)}}const[t,n,i,o]=r,s=n.length===2?n:n+n,l=i.length===2?i:i+i,a=o.length===2?o:o+o;return{a:255,r:parseInt(s,16),g:parseInt(l,16),b:parseInt(a,16)}}return null}function qs(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 ki=Boolean;function Ss(e){if(e.length===1&&e[0].type==="solid")return zd({bg:e[0]});const r=e.map(t=>{if(t.type==="solid")return Od({bg:t});if(t.type==="gradient")return Rd({bg:t});if(t.type==="image")return Hd({bg:t});if(t.type==="radial_gradient")return Bd({bg:t})}).filter(ki).reverse().reduce(function(t,n){return t.image.push(n.image),t.size.push(n.size||"auto"),t.position.push(n.pos||"50% 50%"),t},{image:[],size:[],position:[]});return{image:r.image.join(","),size:r.size.join(","),position:r.position.join(",")}}function Od(e){const r=Ir(e.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function zd(e){return{color:Ir(e.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function Rd(e){var t;if(!Array.isArray((t=e.bg)==null?void 0:t.colors))return;const r=e.bg.colors.filter(ki);if(r.length)return{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(e.bg.angle||0)+"deg")+","+r.map(n=>Ir(n)).join(",")+")"}}const Ld={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Zl(e){if(e&&typeof e=="object"&&"type"in e&&e.value!==void 0){if(e.type==="fixed")return yn(e.value);if(e.type==="relative")return`${Number(e.value)*100}%`}return"50%"}function Bd(e){var s;if(!Array.isArray((s=e.bg)==null?void 0:s.colors))return;const r=e.bg.colors.filter(ki);if(!r.length)return;const t=e.bg.radius;let n;t&&typeof t=="object"&&"type"in t&&t.value!==void 0&&(t.type==="fixed"?n=yn(t.value):t.type==="relative"&&(n=Ld[t.value]));const i=Zl(e.bg.center_x),o=Zl(e.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${n||"farthest-corner"} at ${i} ${o},`+r.map(l=>Ir(l)).join(",")+")"}}function Hd(e){var t;const r=(t=e.bg)==null?void 0:t.image_url;if(r)return{size:ef(e.bg.scale),pos:tf(e.bg),image:'url("'+qs(r)+'")'}}function ef(e){return e==="fit"?"contain":e==="stretch"?"fill":e==="no_scale"?"none":"cover"}function tf(e){let r,t;return e.content_alignment_horizontal==="left"?r="0%":e.content_alignment_horizontal==="right"?r="100%":r="50%",e.content_alignment_vertical==="top"?t="0%":e.content_alignment_vertical==="bottom"?t="100%":t="50%",r+" "+t}function Yr(e,r){const t=Number(e);return Number.isNaN(t)||t<0?r:t}function Ql(e,r,t){return typeof r=="number"&&(e&&r>0&&r<=100||!e&&r>=0&&r<100)?r:t}function Wd(e){return e.is_enabled!==0&&e.is_enabled!==!1&&e.index!==void 0}function Ud(e,{visibilityActions:r,disappearActions:t,rootCtx:n,componentContext:i}){const o=[];r&&r.forEach(m=>{o.push({type:"visibility",index:o.length,action:m,visible:!1,count:0,finished:!1})}),t&&t.forEach(m=>{o.push({type:"disappear",index:o.length,action:m,visible:!1,count:0,finished:!1})});const s=o.map((m,y)=>{const h=m.type==="visibility";return i.getDerivedFromVars({index:y,visibility_percentage:m.action.visibility_percentage,visibility_duration:h?m.action.visibility_duration:m.action.disappear_duration,log_limit:m.action.log_limit,is_enabled:m.action.is_enabled})});let l;const a=()=>{l&&l.disconnect(),o.forEach(m=>{m.timer&&clearTimeout(m.timer)})},c=Gi(s,m=>m);let u;const f=m=>{const y=m.type==="visibility",h=i.getJsonWithVars(m.action);i.execAnyActions([h],{logType:y?"visible":"disappear",node:e,processUrls:!1})},_=c.subscribe(m=>{u=m.filter(Wd);const y={};u.forEach(v=>{y[v.index]=v}),a();const h=[...new Set(u.map(v=>{const R=o[v.index].type==="visibility";return Ql(R,v.visibility_percentage,R?50:0)/100}))];if(!h.length)return;const w=v=>{v.forEach(R=>{u.forEach(N=>{const V=o[N.index],D=V.type==="visibility",te=Ql(D,N.visibility_percentage,D?50:0);let F;te===0?F=R.intersectionRatio>=1e-12:F=R.intersectionRatio>=te/100,(D?!V.visible&&F:V.visible&&!F)?V.finished||(V.timer=setTimeout(()=>{++V.count;const H=N.log_limit===0?1/0:N.log_limit||1;++V.count>=H&&(V.finished=!0),f(V)},Yr(N.visibility_duration,800))):(D?!F:F)&&V.timer&&clearTimeout(V.timer),V.visible=F})})};l=new IntersectionObserver(w,{threshold:h}),l.observe(e)});return{destroy(){u==null||u.forEach(m=>{const y=o[m.index];!y||y.type!=="disappear"||!y.visible||y.finished||n.registerTimeout(window.setTimeout(()=>{f(y)},m.visibility_duration))}),a(),_()}}}function xl(e,r){r&&e.push(r)}function gt(e,r,t){const n=[];xl(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}`:"");xl(n,r[s])}}return n.join(" ")}const Al=Symbol("state");function ci(e,r){var s,l;const t=e.top||0,n=((s=r==="ltr"?e.end:e.start)!=null?s:e.right)||0,i=e.bottom||0,o=((l=r==="ltr"?e.start:e.end)!=null?l:e.left)||0;return t===0&&n===0&&i===0&&o===0?"":ve(t)+" "+ve(n)+" "+ve(i)+" "+ve(o)}function Vs(e){if(typeof e!="number"&&typeof e!="string")return!1;const r=Number(e);return!Number.isNaN(r)}function Vn(e){return Vs(e)&&e>=0}function Ao(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]&&!Vn(n[s]))return t;return ci(e,r)}function Gd(e,r){return!Vn(e)||e===void 0||e>1?r:Number(e)}const Yd=Object.prototype.hasOwnProperty;function jl(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(!Yd.call(r,o)||!jl(e[o],r[o]))return!1}return!0}function Vi(e,r){return jl(e,r)?r:e}function Jd(e,r){return e==="visible"||e==="invisible"||e==="gone"?e:r}function rf(e,r){return e==="linear"||e==="ease"||e==="ease_in_out"||e==="ease_in"||e==="ease_out"?e:r}function io(e,r){const t=Number(e);return Number.isNaN(t)?r:t}function Cl(e){const r=[];return e.name==="set"?(e.items||[]).forEach(t=>{r.push(...Cl(t))}):r.push(e),r}function To(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]]&&!Vn(e[t[n]]))return r;return e}function qd(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 Kd(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]&&!Vn(t[n]))return r;return e}function Yo(e,r=0,t=10){return[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]].map(n=>ve((n||r)/t*10)).join(" ")}function Xd(e){var r,t,n,i,o,s;return ve(((t=(r=e.offset)==null?void 0:r.x)==null?void 0:t.value)||0)+" "+ve(((i=(n=e.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+ve((o=e.blur)!=null?o:2)+" "+Ir(e.color||"#000000",(s=e.alpha)!=null?s:.19)}function Zd(e,r){var t,n,i,o,s,l;return"drop-shadow("+Ir(e.color||"#000000",(t=e.alpha)!=null?t:.19)+" "+ve((((i=(n=e.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+ve((((s=(o=e.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+ve(((l=e.blur)!=null?l:2)*10/r)+")"}function En(e){return e.is_enabled!==0&&e.is_enabled!==!1}let Rs;function Is(){return typeof matchMedia>"u"?!1:(Rs||(Rs=window.matchMedia("(prefers-reduced-motion)")),Rs.matches)}const Qd=8,xd=(e,r,t,n)=>{let i;return(t||n)&&typeof ResizeObserver<"u"&&(i=new ResizeObserver(async()=>{let o=0;const s={},l=(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 _=new Error("Missing variable");_.level="error",_.additional={variableName:c},r.logError(_)}}return!1},a=()=>{if(!e)return!1;const c=e.getBoundingClientRect(),u=l(t,c.width),f=l(n,c.height);return u||f};for(;a();){if(++o>Qd){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:t,heightVariableName:n},r.logError(c);break}await wn()}}),i.observe(e)),i},El=Symbol("enabled");function Xn(e,r){return e===1||e===0||e===!1||e===!0?!!e:r}const $d="divkit-ee5cc",$l={actionable__button:$d};function e_(){}const hs=Symbol("action");function Ks(e){if(e.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(e);return r&&r[1]||""}function Xs(e,r){return r.has(e)}function t_(e){var u;let r,t,n,i,o;const s=e[26].default,l=vs(s,e,e[25],null);let a=[{class:t=e[1]+" "+((u=e[0])!=null&&u.length?er["root_disabled-context-menu"]:"")+" "+(e[11]?er["root__any-actions"]:"")},{style:e[2]},{role:e[9]},{"aria-checked":e[12]},e[3]],c={};for(let f=0;f<a.length;f+=1)c=Ki(c,a[f]);return{c(){r=Be("span"),l&&l.c(),Qn(r,c)},m(f,_){ie(f,r,_),l&&l.m(r,null),e[38](r),n=!0,i||(o=[Cs(e[4].call(null,r)),Ue(r,"click",e[33]),Ue(r,"keydown",e[13]),Ue(r,"focus",e[34]),Ue(r,"blur",e[35])],i=!0)},p(f,_){var m;l&&l.p&&(!n||_[0]&33554432)&&As(l,s,f,f[25],n?ks(s,f[25],_,null):js(f[25]),null),Qn(r,c=fo(a,[(!n||_[0]&2051&&t!==(t=f[1]+" "+((m=f[0])!=null&&m.length?er["root_disabled-context-menu"]:"")+" "+(f[11]?er["root__any-actions"]:"")))&&{class:t},(!n||_[0]&4)&&{style:f[2]},(!n||_[0]&512)&&{role:f[9]},(!n||_[0]&4096)&&{"aria-checked":f[12]},_[0]&8&&f[3]]))},i(f){n||(B(l,f),n=!0)},o(f){ee(l,f),n=!1},d(f){f&&ne(r),l&&l.d(f),e[38](null),i=!1,Wr(o)}}}function r_(e){var u;let r,t,n,i,o;const s=e[26].default,l=vs(s,e,e[25],null);let a=[{class:t=e[1]+" "+$l.actionable__button+" "+er["root__any-actions"]+` ${e[5]?er.root__clickable:er["root__clickable-no-transition"]} ${er.root__unselectable} `+((u=e[0])!=null&&u.length?er["root_disabled-context-menu"]:"")},{style:e[2]},{role:e[9]},{"aria-checked":e[12]},{type:"button"},e[3]],c={};for(let f=0;f<a.length;f+=1)c=Ki(c,a[f]);return{c(){r=Be("button"),l&&l.c(),Qn(r,c)},m(f,_){ie(f,r,_),l&&l.m(r,null),r.autofocus&&r.focus(),e[37](r),n=!0,i||(o=[Cs(e[4].call(null,r)),Ue(r,"click",e[30]),Ue(r,"keydown",e[13]),Ue(r,"focus",e[31]),Ue(r,"blur",e[32])],i=!0)},p(f,_){var m;l&&l.p&&(!n||_[0]&33554432)&&As(l,s,f,f[25],n?ks(s,f[25],_,null):js(f[25]),null),Qn(r,c=fo(a,[(!n||_[0]&35&&t!==(t=f[1]+" "+$l.actionable__button+" "+er["root__any-actions"]+` ${f[5]?er.root__clickable:er["root__clickable-no-transition"]} ${er.root__unselectable} `+((m=f[0])!=null&&m.length?er["root_disabled-context-menu"]:"")))&&{class:t},(!n||_[0]&4)&&{style:f[2]},(!n||_[0]&512)&&{role:f[9]},(!n||_[0]&4096)&&{"aria-checked":f[12]},{type:"button"},_[0]&8&&f[3]]))},i(f){n||(B(l,f),n=!0)},o(f){ee(l,f),n=!1},d(f){f&&ne(r),l&&l.d(f),e[37](null),i=!1,Wr(o)}}}function n_(e){var u;let r,t,n,i,o;const s=e[26].default,l=vs(s,e,e[25],null);let a=[{href:e[7]},{target:e[10]},{style:e[2]},{role:e[9]},{"aria-checked":e[12]},{class:t=e[1]+" "+er["root__any-actions"]+" "+(e[5]?er.root__clickable:er["root__clickable-no-transition"])+" "+((u=e[0])!=null&&u.length?er["root_disabled-context-menu"]:"")},e[3]],c={};for(let f=0;f<a.length;f+=1)c=Ki(c,a[f]);return{c(){r=Be("a"),l&&l.c(),Qn(r,c)},m(f,_){ie(f,r,_),l&&l.m(r,null),e[36](r),n=!0,i||(o=[Cs(e[4].call(null,r)),Ue(r,"click",e[27]),Ue(r,"keydown",e[13]),Ue(r,"focus",e[28]),Ue(r,"blur",e[29])],i=!0)},p(f,_){var m;l&&l.p&&(!n||_[0]&33554432)&&As(l,s,f,f[25],n?ks(s,f[25],_,null):js(f[25]),null),Qn(r,c=fo(a,[(!n||_[0]&128)&&{href:f[7]},(!n||_[0]&1024)&&{target:f[10]},(!n||_[0]&4)&&{style:f[2]},(!n||_[0]&512)&&{role:f[9]},(!n||_[0]&4096)&&{"aria-checked":f[12]},(!n||_[0]&35&&t!==(t=f[1]+" "+er["root__any-actions"]+" "+(f[5]?er.root__clickable:er["root__clickable-no-transition"])+" "+((m=f[0])!=null&&m.length?er["root_disabled-context-menu"]:"")))&&{class:t},_[0]&8&&f[3]]))},i(f){n||(B(l,f),n=!0)},o(f){ee(l,f),n=!1},d(f){f&&ne(r),l&&l.d(f),e[36](null),i=!1,Wr(o)}}}function i_(e){let r,t,n,i;const o=[n_,r_,t_],s=[];function l(a,c){return a[7]?0:a[8]?1:2}return r=l(e),t=s[r]=o[r](e),{c(){t.c(),n=Qt()},m(a,c){s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?s[r].p(a,c):(ir(),ee(s[u],1,1,()=>{s[u]=null}),or(),t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n))},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),s[r].d(a)}}}const ea=8,ta=400,Ls=400,o_=new Set(["button","image","checkbox","radio"]);function s_(e,r,t){let{$$slots:n={},$$scope:i}=r,{componentContext:o}=r,{id:s=""}=r,{actions:l=void 0}=r,{doubleTapActions:a=void 0}=r,{longTapActions:c=void 0}=r,{pressStartActions:u=void 0}=r,{pressEndActions:f=void 0}=r,{hoverStartActions:_=void 0}=r,{hoverEndActions:m=void 0}=r,{cls:y=""}=r,{style:h=null}=r,{attrs:w=void 0}=r,{use:v=e_}=r,{customAction:R=null}=r,{isNativeActionAnimation:N=!0}=r,{hasInnerFocusable:V=!1}=r,{customAccessibility:D=void 0}=r;const te=Hr(Zr),F=Hr(hs);Li(hs,{hasAction(){return!!(F.hasAction()||l!=null&&l.length)}});let Y,X="",H,W=-1,U=-1,he=null,Ie=!1,Te=!1,_e=!1,be,_t,He,ze;function Fe(){return(l==null?void 0:l.some(C=>{if(C!=null&&C.typed)return!0;const $e=C==null?void 0:C.url;if(!$e)return!1;const le=Ks($e);return le&&!Xs(le,te.getBuiltinProtocols())}))||!1}async function qe(C,$e){l&&(C&&Fe()&&C.preventDefault(),o.execAnyActions(l,{node:Y,processUrls:$e}))}async function Qe(C){if(F.hasAction()||C.button!==void 0&&C.button!==0)return;const $e=Date.now();if(W>0&&$e>W+ta){C.preventDefault();return}if(a!=null&&a.length&&U>0&&$e-U<Ls){C.preventDefault(),o.execAnyActions(a,{processUrls:!0,node:Y}),U=-1;return}if(U=$e,a!=null&&a.length&&W>0&&$e<W+Ls){C.preventDefault(),clearTimeout(_t),_t=window.setTimeout(()=>{qe(void 0,!0)},Ls);return}(R==null?void 0:R(C))===!1?C.preventDefault():qe(C,!1)}function Z(C){F.hasAction()||(he={x:C.clientX,y:C.clientY},Ie=!1,W=Date.now(),be&&clearTimeout(be),clearTimeout(_t),o.execAnyActions(u,{node:Y}))}function Ae(C){he&&(Math.abs(he.x-C.clientX)>ea||Math.abs(he.y-C.clientY)>ea)&&(Ie=!0)}function ge(C){F.hasAction()||!he||W<0||(!Ie&&Date.now()-W>=ta&&(C.stopImmediatePropagation(),o.execAnyActions(c,{processUrls:!0,node:Y})),be&&clearTimeout(be),be=window.setTimeout(()=>{he=null,W=-1},100),o.execAnyActions(f,{node:Y}))}function et(){F.hasAction()||o.execAnyActions(_,{node:Y})}function G(){F.hasAction()||o.execAnyActions(m,{node:Y})}function Ee(C){const $e=C.target;$e instanceof HTMLElement&&($e.tagName==="INPUT"||$e.contentEditable==="true")||C.ctrlKey||C.metaKey||C.altKey||C.shiftKey||C.key==="Enter"&&Array.isArray(l)&&l.length&&(o.execAnyActions(l),C.preventDefault())}$n(()=>{s&&!V&&te.registerFocusable(s,{focus(){Y&&(X||Te)&&Y.focus()}})}),sn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",Ae),window.removeEventListener("pointerup",ge),window.removeEventListener("pointercancel",ge)),s&&!V&&te.unregisterFocusable(s),be&&clearTimeout(be),_t&&clearTimeout(_t)});function We(C){bi.call(this,e,C)}function re(C){bi.call(this,e,C)}function it(C){bi.call(this,e,C)}function je(C){bi.call(this,e,C)}function Ve(C){bi.call(this,e,C)}function yt(C){bi.call(this,e,C)}function Vt(C){bi.call(this,e,C)}function $(C){bi.call(this,e,C)}function tt(C){bi.call(this,e,C)}function lt(C){Fr[C?"unshift":"push"](()=>{Y=C,t(6,Y)})}function dt(C){Fr[C?"unshift":"push"](()=>{Y=C,t(6,Y)})}function Ge(C){Fr[C?"unshift":"push"](()=>{Y=C,t(6,Y)})}return e.$$set=C=>{"componentContext"in C&&t(14,o=C.componentContext),"id"in C&&t(15,s=C.id),"actions"in C&&t(16,l=C.actions),"doubleTapActions"in C&&t(17,a=C.doubleTapActions),"longTapActions"in C&&t(0,c=C.longTapActions),"pressStartActions"in C&&t(18,u=C.pressStartActions),"pressEndActions"in C&&t(19,f=C.pressEndActions),"hoverStartActions"in C&&t(20,_=C.hoverStartActions),"hoverEndActions"in C&&t(21,m=C.hoverEndActions),"cls"in C&&t(1,y=C.cls),"style"in C&&t(2,h=C.style),"attrs"in C&&t(3,w=C.attrs),"use"in C&&t(4,v=C.use),"customAction"in C&&t(22,R=C.customAction),"isNativeActionAnimation"in C&&t(5,N=C.isNativeActionAnimation),"hasInnerFocusable"in C&&t(23,V=C.hasInnerFocusable),"customAccessibility"in C&&t(24,D=C.customAccessibility),"$$scope"in C&&t(25,i=C.$$scope)},e.$$.update=()=>{if(e.$$.dirty[0]&4276352){if(Array.isArray(l)&&(l!=null&&l.length))for(let C=0;C<l.length;++C){const $e=l[C].url;if($e){t(7,X=$e),t(10,H=l[C].target||void 0);break}}Array.isArray(l)&&(l!=null&&l.length)&&F.hasAction()&&(t(7,X=""),o.logError(x(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:l}}))),t(8,Te=!!R),X&&!Xs(Ks(X),te.getBuiltinProtocols())?(t(7,X=""),t(8,Te=!0)):!X&&Array.isArray(l)&&(l!=null&&l.length)&&(t(8,Te=!0),l.some(C=>C.url||C.typed||C.menu_items)||o.logError(x(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:l}})))}e.$$.dirty[0]&16778112&&(D!=null&&D.type&&o_.has(D.type)?t(9,He=D.type):X?t(9,He=void 0):Te&&t(9,He="button"),(He==="checkbox"||He==="radio")&&typeof(D==null?void 0:D.is_checked)=="boolean"?t(12,ze=D.is_checked):t(12,ze=void 0)),e.$$.dirty[0]&4063681&&Y&&(X||Te||a!=null&&a.length?Y.addEventListener("click",Qe):Y.removeEventListener("click",Qe),a!=null&&a.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length?(Y.addEventListener("pointerdown",Z,{passive:!0}),window.addEventListener("pointermove",Ae,{passive:!0}),window.addEventListener("pointerup",ge,{passive:!0}),window.addEventListener("pointercancel",ge,{passive:!0})):(Y.removeEventListener("pointerdown",Z),window.removeEventListener("pointerup",ge),window.removeEventListener("pointermove",Ae),window.removeEventListener("pointercancel",ge)),_!=null&&_.length?Y.addEventListener("pointerenter",et):Y.removeEventListener("pointerenter",et),m!=null&&m.length?Y.addEventListener("pointerleave",G):Y.removeEventListener("pointerleave",G),t(11,_e=!!(X||Te||a!=null&&a.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length||_!=null&&_.length||m!=null&&m.length)))},[c,y,h,w,v,N,Y,X,Te,He,H,_e,ze,Ee,o,s,l,a,u,f,_,m,R,V,D,i,n,We,re,it,je,Ve,yt,Vt,$,tt,lt,dt,Ge]}class Ts extends Rr{constructor(r){super(),zr(this,r,s_,i_,yr,{componentContext:14,id:15,actions:16,doubleTapActions:17,longTapActions:0,pressStartActions:18,pressEndActions:19,hoverStartActions:20,hoverEndActions:21,cls:1,style:2,attrs:3,use:4,customAction:22,isNativeActionAnimation:5,hasInnerFocusable:23,customAccessibility:24},null,[-1,-1])}}const Bi={"outer-background":"divkit-7b038","outer-background_clip":"divkit-8fdbd","outer-background__item":"divkit-f9881","outer-background__item_hidden":"divkit-ea047"};function In(e){return Vs(e)&&e>0}function nf(e,r){return e.map(t=>{if(!t){r(x(new Error("Incorrect filter"),{level:"warn"}));return}if(t.type==="blur"){if(In(t.radius))return`blur(${yn(t.radius/2)})`}else{if(t.type==="rtl_mirror")return;r(x(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}}).filter(Boolean).join(" ")}function ra(e,r,t){const n=e.slice();return n[6]=r[t],n}function l_(e){let r,t;return{c(){r=Be("span"),p(r,"class",Bi["outer-background__item"]),p(r,"style",t=Ct(e[6].style))},m(n,i){ie(n,r,i)},p(n,i){i&2&&t!==(t=Ct(n[6].style))&&p(r,"style",t)},d(n){n&&ne(r)}}}function a_(e){let r,t,n,i,o;return{c(){r=Be("img"),zn(r.src,t=e[6].image_url)||p(r,"src",t),p(r,"alt",""),p(r,"aria-hidden","true"),p(r,"loading","lazy"),p(r,"decoding","async"),p(r,"class",Bi["outer-background__item"]),p(r,"style",n=Ct(e[6].style))},m(s,l){ie(s,r,l),i||(o=Ue(r,"error",e[2]),i=!0)},p(s,l){l&2&&!zn(r.src,t=s[6].image_url)&&p(r,"src",t),l&2&&n!==(n=Ct(s[6].style))&&p(r,"style",n)},d(s){s&&ne(r),i=!1,o()}}}function na(e){let r;function t(o,s){return o[6].image_url?a_:l_}let n=t(e),i=n(e);return{c(){i.c(),r=Qt()},m(o,s){i.m(o,s),ie(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&&ne(r),i.d(o)}}}function c_(e){let r,t,n=nr(e[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=na(ra(e,n,o));return{c(){r=Be("span");for(let o=0;o<i.length;o+=1)i[o].c();p(r,"class",t=Bi["outer-background"]+(e[0]?" "+Bi["outer-background_clip"]:"")),z(r,"border-radius",e[0])},m(o,s){ie(o,r,s);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null)},p(o,[s]){if(s&6){n=nr(o[1]);let l;for(l=0;l<n.length;l+=1){const a=ra(o,n,l);i[l]?i[l].p(a,s):(i[l]=na(a),i[l].c(),i[l].m(r,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length}s&1&&t!==(t=Bi["outer-background"]+(o[0]?" "+Bi["outer-background_clip"]:""))&&p(r,"class",t),s&1&&z(r,"border-radius",o[0])},i:E,o:E,d(o){o&&ne(r),an(i,o)}}}function u_(e,r,t){let n,{direction:i}=r,{componentContext:o}=r,{background:s=[]}=r,{radius:l=""}=r;function a(c){c.target&&"classList"in c.target&&c.target.classList.add(Bi["outer-background__item_hidden"])}return e.$$set=c=>{"direction"in c&&t(3,i=c.direction),"componentContext"in c&&t(4,o=c.componentContext),"background"in c&&t(5,s=c.background),"radius"in c&&t(0,l=c.radius)},e.$$.update=()=>{e.$$.dirty&56&&t(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 _=Ss([c]);c.type==="solid"&&(u["background-color"]=_.color),c.type==="gradient"&&(u["background-image"]=_.image),c.type==="image"&&(u.opacity=Number(c.alpha),f.image_url=c.image_url,u["object-fit"]=_.size,u["object-position"]=_.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=nf(c.filters,o.logError),i==="rtl"&&c.filters.some(m=>m.type==="rtl_mirror")&&(u.transform="scale(-1,1)")))}return f}))},[l,n,a,i,o,s]}class f_ extends Rr{constructor(r){super(),zr(this,r,u_,c_,yr,{direction:3,componentContext:4,background:5,radius:0})}}const d_=e=>({hasCustomFocus:e[0]&4096}),ia=e=>({focusHandler:e[49],blurHandler:e[50],hasCustomFocus:e[12]});function oa(e){let r,t;return r=new Ts({props:{componentContext:e[0],id:e[0].json.id,use:e[48],cls:e[1]+" "+gt("outer",_s,e[23]),style:Ct(e[22]),actions:e[19],doubleTapActions:e[20],longTapActions:e[21],pressStartActions:e[7],pressEndActions:e[8],hoverStartActions:e[9],hoverEndActions:e[10],attrs:e[15],hasInnerFocusable:e[2],isNativeActionAnimation:!e[11].length||aa(e[11]),customAccessibility:e[13],$$slots:{default:[__]},$$scope:{ctx:e}}}),r.$on("focus",e[49]),r.$on("blur",e[50]),{c(){Wt(r.$$.fragment)},m(n,i){Rt(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]&8388610&&(o.cls=n[1]+" "+gt("outer",_s,n[23])),i[0]&4194304&&(o.style=Ct(n[22])),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||aa(n[11])),i[0]&8192&&(o.customAccessibility=n[13]),i[0]&86137|i[4]&1024&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function sa(e){let r,t;return r=new f_({props:{componentContext:e[0],direction:e[14],background:e[5],radius:e[4]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&16384&&(o.direction=n[14]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function la(e){let r,t;return{c(){r=Be("span"),p(r,"class",_s.outer__border),p(r,"style",t=Ct(e[3]))},m(n,i){ie(n,r,i)},p(n,i){i[0]&8&&t!==(t=Ct(n[3]))&&p(r,"style",t)},d(n){n&&ne(r)}}}function __(e){let r,t,n,i=e[6]&&sa(e);const o=e[133].default,s=vs(o,e,e[134],ia);let l=e[16]&&la(e);return{c(){i&&i.c(),r=Qt(),s&&s.c(),l&&l.c(),t=Qt()},m(a,c){i&&i.m(a,c),ie(a,r,c),s&&s.m(a,c),l&&l.m(a,c),ie(a,t,c),n=!0},p(a,c){a[6]?i?(i.p(a,c),c[0]&64&&B(i,1)):(i=sa(a),i.c(),B(i,1),i.m(r.parentNode,r)):i&&(ir(),ee(i,1,1,()=>{i=null}),or()),s&&s.p&&(!n||c[0]&4096|c[4]&1024)&&As(s,o,a,a[134],n?ks(o,a[134],c,d_):js(a[134]),ia),a[16]?l?l.p(a,c):(l=la(a),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},i(a){n||(B(i),B(s,a),n=!0)},o(a){ee(i),ee(s,a),n=!1},d(a){a&&(ne(r),ne(t)),i&&i.d(a),s&&s.d(a),l&&l.d(a)}}}function h_(e){let r,t,n=!e[17]&&!e[18]&&oa(e);return{c(){n&&n.c(),r=Qt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){!i[17]&&!i[18]?n?(n.p(i,o),o[0]&393216&&B(n,1)):(n=oa(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(ir(),ee(n,1,1,()=>{n=null}),or())},i(i){t||(B(n),t=!0)},o(i){ee(n),t=!1},d(i){i&&ne(r),n&&n.d(i)}}}const g_={left:"start",center:"center",right:"end",start:"start",end:"end"},p_={left:"end",center:"center",right:"start",start:"start",end:"end"},m_={top:"start",center:"center",bottom:"end",baseline:"baseline"};function aa(e){return e.some(r=>r.name==="native")}function b_(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he,Ie,Te,_e,be=E,_t=()=>(be(),be=M(X,ye=>t(111,_e=ye)),X),He,ze=E,Fe=()=>(ze(),ze=M(Y,ye=>t(112,He=ye)),Y),qe,Qe=E,Z=()=>(Qe(),Qe=M(F,ye=>t(113,qe=ye)),F),Ae,ge=E,et=()=>(ge(),ge=M(te,ye=>t(114,Ae=ye)),te),G,Ee=E,We=()=>(Ee(),Ee=M(D,ye=>t(115,G=ye)),D),re,it=E,je=()=>(it(),it=M(V,ye=>t(116,re=ye)),V),Ve,yt=E,Vt=()=>(yt(),yt=M(N,ye=>t(117,Ve=ye)),N),$,tt=E,lt=()=>(tt(),tt=M(i,ye=>t(118,$=ye)),i),dt,Ge=E,C=()=>(Ge(),Ge=M(R,ye=>t(119,dt=ye)),R),$e,le=E,Ke=()=>(le(),le=M(v,ye=>t(120,$e=ye)),v),wt,fe=E,pe=()=>(fe(),fe=M(h,ye=>t(121,wt=ye)),h),at,Ze=E,xt=()=>(Ze(),Ze=M(w,ye=>t(122,at=ye)),w),Mt,qt=E,Pe=()=>(qt(),qt=M(y,ye=>t(123,Mt=ye)),y),pt,Ut=E,Bt=()=>(Ut(),Ut=M(m,ye=>t(13,pt=ye)),m),Gt,L=E,ae=()=>(L(),L=M(_,ye=>t(124,Gt=ye)),_),ar,we=E,Et=()=>(we(),we=M(f,ye=>t(125,ar=ye)),f),Re,mt=E,Ne=()=>(mt(),mt=M(u,ye=>t(126,Re=ye)),u),ot,vt=E,De=()=>(vt(),vt=M(l,ye=>t(127,ot=ye)),l),ct,Yt,sr=E,dr=()=>(sr(),sr=M(c,ye=>t(128,Yt=ye)),c),Ht,ut=E,St=()=>(ut(),ut=M(a,ye=>t(129,Ht=ye)),a),Ft,$t=E,tr=()=>($t(),$t=M(s,ye=>t(130,Ft=ye)),s),wr,Mr=E,Ur=()=>(Mr(),Mr=M(o,ye=>t(131,wr=ye)),o),Je;e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt()),e.$$.on_destroy.push(()=>tt()),e.$$.on_destroy.push(()=>Ge()),e.$$.on_destroy.push(()=>le()),e.$$.on_destroy.push(()=>fe()),e.$$.on_destroy.push(()=>Ze()),e.$$.on_destroy.push(()=>qt()),e.$$.on_destroy.push(()=>Ut()),e.$$.on_destroy.push(()=>L()),e.$$.on_destroy.push(()=>we()),e.$$.on_destroy.push(()=>mt()),e.$$.on_destroy.push(()=>vt()),e.$$.on_destroy.push(()=>sr()),e.$$.on_destroy.push(()=>ut()),e.$$.on_destroy.push(()=>$t()),e.$$.on_destroy.push(()=>Mr());let{$$slots:cr={},$$scope:ke}=r,{componentContext:q}=r,{cls:vr=""}=r,{style:kr=void 0}=r,{layoutParams:Pt={}}=r,{customDescription:Xr=!1}=r,{customPaddings:Se=!1}=r,{customActions:Nt=""}=r,{additionalPaddings:ur=null}=r,{heightByAspect:Xe=!1}=r,{parentOf:It=void 0}=r,{parentOfSimpleMode:Oe=void 0}=r,{replaceItems:ht=void 0}=r,{hasInnerFocusable:st=!1}=r;const At=Hr(Zr),Jt=Hr(Al),{isEnabled:I}=Hr(El);on(e,I,ye=>t(132,Je=ye));const rt=At.direction;on(e,rt,ye=>t(14,ct=ye));let de,d,Me=null,kt=[],Tr={},lr={},O=!1,Cr=1,Qr="transparent",b=0,A={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},K="",oe=null,se="",Ce={},bt,P,Ye,Ot=0,Tt=0,zt=0,rr=!1,rn=!1,Pr={},fn,xr,Ln,gn=0,$r=0,dn=0,Bn=!1,Yn=!1,An=1,Hn,Jn,cn,ji,Ci=[],qn=!1,Ni=!1,ti,Dn,ft,g=[],k=[],T=[],j=[],Q=[],J=[],xe=[],nt=[],Er=[],_r=[],Ar="",ri,ce,Zt,hr,Fn=!1,Mn="visible",Gr=0,ni=0,ii,gi,Oi,xi=!1,Do,jn,po;function Kf(){t(68,oe=null),t(69,se=""),t(86,An=1),t(98,Fn=!1),t(99,Mn="visible"),t(100,Gr=0),t(101,ni=0),t(102,ii=void 0),t(103,gi=void 0),Ci=q.fakeElement?[]:q.json.transition_triggers||["state_change","visibility_change"],t(89,qn=!!(Ci.indexOf("state_change")!==-1&&q.id)),Ni=Ci.indexOf("visibility_change")!==-1,de&&Hl(de),jn==null||jn(),Je&&t(105,jn=At.processVariableTriggers(q,q.json.variable_triggers))}function Xf(ye,Sr){if(!Array.isArray(It)||!ht||Oe&&(Array.isArray(Sr)&&Sr.length||0)!==1)return;const ln=It.findIndex(Or=>(Or==null?void 0:Or.id)===ye),pn=It.slice();pn.splice(ln,1,...(Sr||[]).map(Or=>({json:Or,id:Or==null?void 0:Or.id}))),t(51,It=pn),ht(pn.map(Or=>Or==null?void 0:Or.json))}function Zf(ye){const Sr=io(ye.start_value,1),ln=io(ye.end_value,1),pn=Yr(ye.start_delay,0),Or=Is()?0:Yr(ye.duration,300),Ei=rf(ye.interpolator,"ease_in_out").replace(/_/g,"-");switch(ye.name){case"fade":return t(94,ri=Sr),t(95,ce=ln),`opacity ${Or}ms ${Ei} ${pn}ms`;case"scale":return t(96,Zt=Sr),t(97,hr=ln),`transform ${Or}ms ${Ei} ${pn}ms`;case"native":case"no_animation":return"";default:return q.logError(x(new Error("Unknown action_animation name"),{additional:{animation:ye.name}})),""}}async function Qf(ye){t(99,Mn=ye);const Sr=ye==="visible"?"in":"out",ln=Sr==="in"?q.json.transition_in:q.json.transition_out;if(Ni&&ln){let pn;ye==="gone"&&(pn=de.getBoundingClientRect()),await wn(),Sr==="in"&&t(91,Dn=!0),Jt.runVisibilityTransition({...q.json,visibility:"visible"},q,ln,de,Sr,pn).then(()=>{Sr==="in"&&t(91,Dn=!1)}).catch(Or=>{throw Sr==="in"&&t(91,Dn=!1),Or})}}function Bl(){if(Me&&de){const ye=At.getExtensionContext(q);Me.forEach(Sr=>{var ln;(ln=Sr.unmountView)==null||ln.call(Sr,de,ye)}),Me=null}}function xf(){if(Me!=null&&Me.length){const ye=At.getExtensionContext(q);Me.forEach(Sr=>{var ln;(ln=Sr.updateView)==null||ln.call(Sr,de,ye)})}}function Hl(ye){var Ei,Dt,mr;po==null||po.destroy(),t(61,de=ye),qn&&q.json.transition_in&&Jt.registerChildWithTransitionIn(q.json,q,q.json.transition_in,ye).then(()=>{t(90,ti=!1)}).catch(Vr=>{throw t(90,ti=!1),Vr}),qn&&q.json.transition_out&&Jt.registerChildWithTransitionOut(q.json,q,q.json.transition_out,ye),q.fakeElement||Jt.registerChildWithTransitionChange(q.json,q,q.json.transition_change,ye).then(()=>{t(92,ft=!1)}).catch(Vr=>{throw t(92,ft=!1),Vr});const Sr=q.fakeElement?[]:q.json.visibility_actions||q.json.visibility_action&&[q.json.visibility_action],ln=q.fakeElement?[]:q.json.disappear_actions;let pn;(Array.isArray(Sr)&&Sr.length||Array.isArray(ln)&&ln.length)&&(pn=Ud(ye,{visibilityActions:Sr,disappearActions:ln,rootCtx:At,componentContext:q}));const Or=q.id;return Or&&(At.registerId(Or,()=>de),Jt.registerChild(Or)),(Ei=q.json.tooltips)==null||Ei.forEach(Vr=>{At.registerTooltip(ye,Vr)}),Oi&&(Oi.disconnect(),Oi=void 0),Oi=xd(de,q,(Dt=q.json.layout_provider)==null?void 0:Dt.width_variable_name,(mr=q.json.layout_provider)==null?void 0:mr.height_variable_name),po={destroy(){Or&&(At.unregisterId(Or),Jt.unregisterChild(Or)),pn&&pn.destroy()}},po}function $f(){q.json.focus&&(od(At.isPointerFocus)||t(12,xi=!0),q.execAnyActions(j))}function ed(){q.json.focus&&(t(12,xi=!1),q.execAnyActions(Q))}return Es(xf),sn(()=>{var ye;kt.forEach(Sr=>{At.unregisterParentOf(Sr)}),t(62,kt=[]),Oi&&(Oi.disconnect(),Oi=void 0),(ye=q.json.tooltips)==null||ye.forEach(Sr=>{At.unregisterTooltip(Sr)}),jn==null||jn(),Bl()}),e.$$set=ye=>{"componentContext"in ye&&t(0,q=ye.componentContext),"cls"in ye&&t(1,vr=ye.cls),"style"in ye&&t(52,kr=ye.style),"layoutParams"in ye&&t(53,Pt=ye.layoutParams),"customDescription"in ye&&t(54,Xr=ye.customDescription),"customPaddings"in ye&&t(55,Se=ye.customPaddings),"customActions"in ye&&t(56,Nt=ye.customActions),"additionalPaddings"in ye&&t(57,ur=ye.additionalPaddings),"heightByAspect"in ye&&t(58,Xe=ye.heightByAspect),"parentOf"in ye&&t(51,It=ye.parentOf),"parentOfSimpleMode"in ye&&t(59,Oe=ye.parentOfSimpleMode),"replaceItems"in ye&&t(60,ht=ye.replaceItems),"hasInnerFocusable"in ye&&t(2,st=ye.hasInnerFocusable),"$$scope"in ye&&t(134,ke=ye.$$scope)},e.$$.update=()=>{var ye,Sr,ln,pn,Or,Ei;if(e.$$.dirty[0]&1&&t(110,n=q.origJson),e.$$.dirty[3]&131072&&n&&Kf(),e.$$.dirty[0]&1|e.$$.dirty[3]&4096|e.$$.dirty[4]&256&&(Je?(jn==null||jn(),t(105,jn=At.processVariableTriggers(q,q.json.variable_triggers))):jn==null||jn()),e.$$.dirty[0]&1&<(t(45,i=q.getDerivedFromVars(q.json.focus))),e.$$.dirty[0]&1&&Ur(t(44,o=q.getDerivedFromVars(q.json.border))),e.$$.dirty[0]&1&&tr(t(43,s=q.getDerivedFromVars(q.json.paddings))),e.$$.dirty[0]&1&&De(t(42,l=q.getDerivedFromVars(q.json.margins))),e.$$.dirty[0]&1&&St(t(41,a=q.getDerivedFromVars(q.json.width))),e.$$.dirty[0]&1&&dr(t(40,c=q.getDerivedFromVars(q.json.alignment_horizontal))),e.$$.dirty[0]&1&&Ne(t(39,u=q.getDerivedFromVars(q.json.height))),e.$$.dirty[0]&1&&Et(t(38,f=q.getDerivedFromVars(q.json.alignment_vertical))),e.$$.dirty[0]&1&&ae(t(37,_=q.getDerivedFromVars(q.json.alpha))),e.$$.dirty[0]&1&&Bt(t(36,m=q.getDerivedFromVars(q.json.accessibility))),e.$$.dirty[0]&1&&Pe(t(35,y=q.getDerivedFromVars(q.json.background))),e.$$.dirty[0]&1&&pe(t(34,h=q.getDerivedFromVars(q.json.action))),e.$$.dirty[0]&1&&xt(t(33,w=q.getDerivedFromVars(q.json.actions))),e.$$.dirty[0]&1&&Ke(t(32,v=q.getDerivedFromVars(q.json.doubletap_actions))),e.$$.dirty[0]&1&&C(t(31,R=q.getDerivedFromVars(q.json.longtap_actions))),e.$$.dirty[0]&1&&Vt(t(30,N=q.getDerivedFromVars(q.json.press_start_actions))),e.$$.dirty[0]&1&&je(t(29,V=q.getDerivedFromVars(q.json.press_end_actions))),e.$$.dirty[0]&1&&We(t(28,D=q.getDerivedFromVars(q.json.hover_start_actions))),e.$$.dirty[0]&1&&et(t(27,te=q.getDerivedFromVars(q.json.hover_end_actions))),e.$$.dirty[0]&1&&Z(t(26,F=q.getDerivedFromVars(q.json.action_animation))),e.$$.dirty[0]&1&&Fe(t(25,Y=q.getDerivedFromVars(q.json.visibility))),e.$$.dirty[0]&1&&_t(t(24,X=q.getDerivedFromVars(q.json.transform))),e.$$.dirty[1]&269484032|e.$$.dirty[2]&1&&(kt.forEach(Dt=>{At.unregisterParentOf(Dt)}),t(62,kt=[]),It&&It.forEach(Dt=>{Dt!=null&&Dt.id&&(kt.push(Dt.id),At.registerParentOf(Dt.id,{replaceWith:Xf,isSingleMode:!!Oe}))})),e.$$.dirty[0]&4104|e.$$.dirty[2]&62|e.$$.dirty[3]&33554432|e.$$.dirty[4]&128){const Dt=xi&&($!=null&&$.border)?$.border:wr;let mr={},Vr={},un=!1,Lr="";if(Dt){if(Xn(Dt.has_shadow,!1)){const en=Dt.shadow;en?mr["box-shadow"]=Xd(en):mr["box-shadow"]="0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(Dt.stroke&&(un=!0,t(64,Cr=Yr(Dt.stroke.width,Cr)),t(65,Qr=Ir(Dt.stroke.color,1,Qr)),Vr["--divkit-border"]=`${ve(Cr+1)} solid ${Qr}`),Dt.corners_radius&&typeof Dt.corners_radius=="object"){t(67,A=Kd(Dt.corners_radius,A)),mr["border-radius"]=Yo(A);const en={};["top-left","top-right","bottom-right","bottom-left"].forEach(Cn=>{en[Cn]=(A[Cn]||0)+1}),Vr["--divkit-border-radius"]=Yo(en)}else Dt.corner_radius&&(t(66,b=Yr(Dt.corner_radius,b)),t(67,A={"top-left":b,"top-right":b,"bottom-right":b,"bottom-left":b}),mr["border-radius"]=ve(b),Vr["--divkit-border-radius"]=ve(b+1));if(un&&Cr&&(Dt.corners_radius||Dt.corner_radius)){let en={...A};["top-left","top-right","bottom-right","bottom-left"].forEach(Cn=>{en[Cn]=(en[Cn]||0)+Cr/2}),Lr=Yo(en)}}t(63,Tr=Vi(mr,Tr)),t(3,lr=Vi(Vr,lr)),t(16,O=un),t(4,K=Lr)}if(e.$$.dirty[1]&16777216|e.$$.dirty[2]&64|e.$$.dirty[4]&64&&t(68,oe=To(Ft&&!Se?Ft:void 0,oe)),e.$$.dirty[0]&16384|e.$$.dirty[1]&67108864|e.$$.dirty[2]&64&&t(107,H=ci(qd(oe,ur),ct)),e.$$.dirty[0]&16384|e.$$.dirty[2]&128|e.$$.dirty[4]&8&&t(69,se=Ao(ot,ct,se)),e.$$.dirty[0]&16385|e.$$.dirty[1]&4194304|e.$$.dirty[2]&4352|e.$$.dirty[4]&56){let Dt,mr,Vr,un,Lr={},en=0,Cn=0,pi=!1,mi=!1;const _n=Ht==null?void 0:Ht.type;if(_n==="fixed")t(74,Ot=Yr(Ht==null?void 0:Ht.value,Ot)),mr=ve(Ot);else if(_n==="wrap_content"||(_n==="match_parent"||!_n)&&Pt.parentHorizontalWrapContent){if(Dt="content",(_n==="wrap_content"&&(Ht!=null&&Ht.constrained)||(_n==="match_parent"||!_n)&&Pt.parentHorizontalWrapContent)&&(Lr["width-constrained"]=!0,Pt.parentContainerOrientation==="horizontal"&&(Cn=1)),_n==="wrap_content"){const br=Ht;br.min_size&&Vn(br.min_size.value)&&(Vr=ve(br.min_size.value)),br.max_size&&Vn(br.max_size.value)&&(un=ve(br.max_size.value))}(_n==="match_parent"||!_n)&&q.logError(x(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}else if(Dt="parent",Pt.parentContainerOrientation==="vertical"&&Pt.parentContainerWrap&&(mi=!0,q.logError(x(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Pt.parentLayoutOrientation==="vertical"||Pt.stretchWidth){const br=(Sr=(ye=ct==="ltr"?ot==null?void 0:ot.start:ot==null?void 0:ot.end)!=null?ye:ot==null?void 0:ot.left)!=null?Sr:0,Os=(pn=(ln=ct==="ltr"?ot==null?void 0:ot.end:ot==null?void 0:ot.start)!=null?ln:ot==null?void 0:ot.right)!=null?pn:0,mo=`calc(100% - ${yn(br+Os)})`;Pt.stretchWidth?(mr="0",Vr=mo):mr=mo}else Pt.parentContainerOrientation==="horizontal"&&(en=Ht&&"weight"in Ht&&Ht.weight||1,Pt.parentContainerWrap&&(pi=!0));if(Dt==="parent")Lr["halign-self"]="stretch";else{const br=Yt;br==="left"||br==="center"||br==="right"||br==="start"||br==="end"?Lr["halign-self"]=(ct==="ltr"?g_:p_)[br]:Lr["halign-self"]=Pt.parentHAlign||"start"}Dt&&(Lr.width=Dt),t(71,bt=mr),t(72,P=Vr),t(73,Ye=un),t(75,Tt=en),t(76,zt=Cn),t(70,Ce=Vi(Lr,Ce)),t(77,rr=pi),t(17,rn=mi)}if(e.$$.dirty[0]&1|e.$$.dirty[1]&138412032|e.$$.dirty[2]&1114112|e.$$.dirty[4]&14){let Dt,mr,Vr,un,Lr={},en=0,Cn=0,pi=!1,mi=!1;const _n=Re==null?void 0:Re.type;if(!Xe)if(_n==="fixed")t(82,gn=Yr(Re==null?void 0:Re.value,gn)),mr=ve(gn);else if(_n==="match_parent"&&!Pt.parentVerticalWrapContent)if(Dt="parent",Pt.parentContainerOrientation==="horizontal"&&Pt.parentContainerWrap&&(mi=!0,q.logError(x(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),Pt.parentLayoutOrientation==="horizontal"||Pt.stretchHeight){const br=(Or=ot==null?void 0:ot.top)!=null?Or:0,Os=(Ei=ot==null?void 0:ot.bottom)!=null?Ei:0,mo=`calc(100% - ${yn(br+Os)})`;Pt.stretchHeight?(mr="0",Vr=mo):mr=mo}else Pt.parentContainerOrientation==="vertical"&&(en=(Re==null?void 0:Re.weight)||1,Pt.parentContainerWrap&&(pi=!0));else{if(Dt="content",(_n==="wrap_content"&&(Re!=null&&Re.constrained)||_n==="match_parent"&&Pt.parentVerticalWrapContent)&&(Lr["height-constrained"]=!0,Pt.parentContainerOrientation==="vertical"&&(Cn=1)),_n==="wrap_content"){const br=Re;br!=null&&br.min_size&&Vn(br.min_size.value)&&(Vr=ve(br.min_size.value)),br!=null&&br.max_size&&Vn(br.max_size.value)&&(un=ve(br.max_size.value))}_n==="match_parent"&&q.logError(x(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}if(Dt==="parent")Lr["valign-self"]="stretch";else{const br=ar;br==="top"||br==="center"||br==="bottom"||br==="baseline"&&Pt.parentContainerOrientation==="horizontal"?Lr["valign-self"]=m_[br]:Lr["valign-self"]=Pt.parentVAlign||"start"}Dt&&(Lr.height=Dt),t(79,fn=mr),t(80,xr=Vr),t(81,Ln=un),t(83,$r=en),t(84,dn=Cn),t(78,Pr=Vi(Lr,Pr)),t(85,Bn=pi),t(18,Yn=mi)}if(e.$$.dirty[1]&4194304&&t(109,W=Pt.overlapParent?!0:void 0),e.$$.dirty[1]&4194304&&t(108,U=Pt.gridArea?`${Pt.gridArea.y+1}/${Pt.gridArea.x+1}/span ${Pt.gridArea.rowSpan}/span ${Pt.gridArea.colSpan}`:void 0),e.$$.dirty[2]&16777216|e.$$.dirty[4]&1&&(t(86,An=Gd(Gt,An)),t(87,Hn=An===1?void 0:An)),e.$$.dirty[0]&8192|e.$$.dirty[1]&8388608&&(t(15,d=void 0),pt&&!Xr&&pt.description&&(t(15,d={}),t(15,d["aria-label"]=pt.description,d))),e.$$.dirty[0]&4208|e.$$.dirty[3]&1107296256&&(t(5,Jn=xi&&($!=null&&$.background)?$.background:Mt),t(88,cn={}),t(6,ji=!1),Array.isArray(Jn)&&(t(6,ji=Jn.some(Dt=>Dt.type==="image"||Dt.type==="nine_patch_image")||!!K),!ji))){const Dt=Ss(Jn);t(88,cn["background-color"]=Dt.color,cn),t(88,cn["background-image"]=Dt.image,cn),t(88,cn["background-size"]=Dt.size,cn),t(88,cn["background-position"]=Dt.position,cn),t(88,cn["background-repeat"]="no-repeat",cn)}if(e.$$.dirty[0]&1|e.$$.dirty[2]&134217728&&(t(90,ti=void 0),qn&&q.json.transition_in&&At.isRunning("stateChange")&&t(90,ti=!0)),e.$$.dirty[0]&1|e.$$.dirty[2]&134217728&&(t(92,ft=void 0),qn&&At.isRunning("stateChange")&&Jt.hasTransitionChange(q.id)&&t(92,ft=!0)),e.$$.dirty[0]&1921|e.$$.dirty[1]&33554432|e.$$.dirty[3]&1071644672){let Dt=at||wt&&[wt]||[],mr=$e||[],Vr=dt||[],un=($==null?void 0:$.on_focus)||[],Lr=($==null?void 0:$.on_blur)||[],en=Ve||[],Cn=re||[],pi=G||[],mi=Ae||[];q.fakeElement?(Dt=[],mr=[],Vr=[],un=[],Lr=[]):(Array.isArray(Dt)||(Dt=[],q.logError(x(new Error("Actions should be array")))),Array.isArray(mr)||(mr=[],q.logError(x(new Error("DoubleTapActions should be array")))),Array.isArray(Vr)||(Vr=[],q.logError(x(new Error("LongTapActions should be array")))),Array.isArray(un)||(un=[],q.logError(x(new Error("FocusActions should be array")))),Array.isArray(Lr)||(Lr=[],q.logError(x(new Error("BlurActions should be array")))),Array.isArray(en)||(en=[],q.logError(x(new Error("PressStartActions should be array")))),Array.isArray(Cn)||(Cn=[],q.logError(x(new Error("PressEndActions should be array")))),Array.isArray(pi)||(pi=[],q.logError(x(new Error("HoverStartActions should be array")))),Array.isArray(mi)||(mi=[],q.logError(x(new Error("HoverEndActions should be array"))))),(Dt.length||mr.length||Vr.length||J.length||xe.length||nt.length||Er.length)&&Nt&&(Dt=[],mr=[],Vr=[],t(7,J=[]),t(8,xe=[]),t(9,nt=[]),t(10,Er=[]),q.logError(x(new Error(`Cannot use action on component "${Nt}"`)))),t(19,g=Dt.filter(En)),t(20,k=mr.filter(En)),t(21,T=Vr.filter(En)),j=un.filter(En),Q=Lr.filter(En),t(7,J=en.filter(En)),t(8,xe=Cn.filter(En)),t(9,nt=pi.filter(En)),t(10,Er=mi.filter(En))}if(e.$$.dirty[0]&2048|e.$$.dirty[3]&1048576&&qe&&(t(11,_r=Cl(qe)),t(93,Ar=_r.map(Zf).filter(Boolean).join(", "))),e.$$.dirty[3]&524384){const Dt=Mn,mr=Jd(He,Mn);Dt!==mr&&(Fn&&(Mn==="visible"||mr==="visible")?Qf(mr):t(99,Mn=mr)),Fn||t(98,Fn=!0)}if(e.$$.dirty[0]&1|e.$$.dirty[1]&1073741824|e.$$.dirty[3]&2048&&q.json&&de&&!jl(q.json.extensions,Do)){let Dt=t(104,Do=q.json.extensions);wn().then(()=>{if(!(Dt!==Do||!de)&&(Bl(),Array.isArray(q.json.extensions))){const mr=At.getExtensionContext(q);Me=q.json.extensions.map(Vr=>{var en;const un=Vr.id;if(!un)return;const Lr=At.getExtension(un,Vr.params);return Lr&&((en=Lr.mountView)==null||en.call(Lr,de,mr)),Lr}).filter(ki)}})}if(e.$$.dirty[0]&4097|e.$$.dirty[1]&4194304|e.$$.dirty[2]&1879113984|e.$$.dirty[3]&65601&&t(23,he={...Ce,...Pr,"parent-overlap":W,"scroll-snap":Pt.scrollSnap,"hide-on-transition-in":ti||Dn||ft,visibility:Mn,"has-action-animation":!!Ar,"parent-flex":Pt.parentContainerOrientation||void 0,"parent-grid":!!Pt.gridArea||void 0,"has-custom-focus":!!(xi&&q.json.focus)}),e.$$.dirty[3]&262528&&_e&&_e.rotation!==void 0){const Dt=_e.pivot_x||{type:"pivot-percentage",value:50};t(100,Gr=io(Dt.value,Gr));const mr=Dt.type==="pivot-fixed"?ve(Gr):`${Gr}%`,Vr=_e.pivot_y||{type:"pivot-percentage",value:50};t(101,ni=io(Vr.value,ni));const un=Vr.type==="pivot-fixed"?ve(ni):`${ni}%`;t(102,ii=`${mr} ${un}`),t(103,gi=`rotate(${_e.rotation}deg)`)}e.$$.dirty[2]&10526720&&t(106,Ie=rr||Bn?"100%":Tt||$r?0:void 0),e.$$.dirty[1]&2097152|e.$$.dirty[2]&107900546|e.$$.dirty[3]&58911&&t(22,Te={...kr,...cn,...Tr,width:bt,"min-width":P,"max-width":Ye,height:fn,"min-height":xr,"max-height":Ln||(kr==null?void 0:kr["max-height"]),"grid-area":U,padding:H,margin:se,opacity:Hn,transition:Ar,"transform-origin":ii,transform:gi,"flex-grow":Tt||$r||void 0,"flex-shrink":zt||dn?1:void 0,"flex-basis":Ie,"--divkit-animation-opacity-start":ri,"--divkit-animation-opacity-end":ce,"--divkit-animation-scale-start":Zt,"--divkit-animation-scale-end":hr})},[q,vr,st,lr,K,Jn,ji,J,xe,nt,Er,_r,xi,pt,ct,d,O,rn,Yn,g,k,T,Te,he,X,Y,F,te,D,V,N,R,v,w,h,y,m,_,f,u,c,a,l,s,o,i,I,rt,Hl,$f,ed,It,kr,Pt,Xr,Se,Nt,ur,Xe,Oe,ht,de,kt,Tr,Cr,Qr,b,A,oe,se,Ce,bt,P,Ye,Ot,Tt,zt,rr,Pr,fn,xr,Ln,gn,$r,dn,Bn,An,Hn,cn,qn,ti,Dn,ft,Ar,ri,ce,Zt,hr,Fn,Mn,Gr,ni,ii,gi,Do,jn,Ie,H,U,W,n,_e,He,qe,Ae,G,re,Ve,$,dt,$e,wt,at,Mt,Gt,ar,Re,ot,Yt,Ht,Ft,wr,Je,cr,ke]}class vn extends Rr{constructor(r){super(),zr(this,r,b_,h_,yr,{componentContext:0,cls:1,style:52,layoutParams:53,customDescription:54,customPaddings:55,customActions:56,additionalPaddings:57,heightByAspect:58,parentOf:51,parentOfSimpleMode:59,replaceItems:60,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}}const y_="divkit-6d029",w_="divkit-d7771",v_="divkit-11aee",k_="divkit-a2b0d",A_="divkit-b93c2",j_="divkit-a5aa6",C_="divkit-02228",E_="divkit-c5739",S_="divkit-ccc67",V_="divkit-a6f25",I_="divkit-b9e37",T_="divkit-fa1ec",D_="divkit-3f0b7",F_="divkit-d491d",M_="divkit-f6859",Wn={"text-range":"divkit-251c6",text:y_,text_halign_start:w_,text_halign_center:v_,text_halign_end:k_,text_valign_start:A_,text_valign_center:j_,text_valign_end:C_,text_valign_baseline:E_,text__inner:S_,text_singleline:V_,text_multiline:I_,text_truncate_none:T_,"text__inner_has-cloud-bg":"divkit-e75f8","text__inner_cloud-bg":"divkit-ca4e7",text__inner_gradient:D_,"text__image-wrapper":"divkit-632c6","text__image-wrapper_crop":"divkit-9125a","text__image-wrapper_align_top":"divkit-6956e","text__image-wrapper_align_center":"divkit-2be31","text__image-wrapper_align_bottom":"divkit-1719d","text__image-wrapper_align_baseline":"divkit-a0e9f",text__image:F_,text__image_hidden:M_,"text_has-focus-color":"divkit-32858"},gs={"text-range":"divkit-251c6","text-range_cloud":"divkit-96ef6","text-range_singleline":"divkit-645b9","text-range__top-offset":"divkit-13a2b","text-range_decoration_both":"divkit-9d257","text-range_decoration_underline":"divkit-c65cf","text-range_decoration_strike":"divkit-d264e","text-range_decoration_none":"divkit-2cfc4","text-range_align_top":"divkit-cb312","text-range_align_center":"divkit-640d4","text-range_align_bottom":"divkit-069e7","text-range_align_baseline":"divkit-3f853","text-range__cloud-svg":"divkit-82b28","text-range_relative-vertical-align":"divkit-98760"};function Un(e,r){const t=Number(e);return Number.isNaN(t)||t<=0?r:t}function P_(e){if(e==="light"||e==="medium"||e==="bold"||e==="regular")return e==="medium"?500:e==="bold"?700:e==="light"?300:400}function ao(e,r,t){return typeof r=="number"&&r>0?r:P_(e)||t}function Zs(e,r){if(!e)return{};const t={};for(const n of["left","top","right","bottom","start","end"]){const i=e[n];i&&(t[n]=i*r)}return t}function ca(e){let r,t,n,i,o,s,l;return{c(){r=nn("svg"),t=nn("defs"),n=nn("filter"),i=nn("feGaussianBlur"),o=nn("feColorMatrix"),l=nn("feBlend"),p(i,"in","SourceGraphic"),p(i,"result","blurred"),p(i,"stdDeviation","3"),p(o,"in","blurred"),p(o,"result","withMatrix"),p(o,"type","matrix"),p(o,"values",s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*e[4]+" -"+e[4]),p(l,"in","SourceGraphic"),p(l,"in2","withMatrix"),p(n,"id",e[10]),p(r,"class",gs["text-range__cloud-svg"])},m(a,c){ie(a,r,c),jt(r,t),jt(t,n),jt(n,i),jt(n,o),jt(n,l)},p(a,c){c&16&&s!==(s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*a[4]+" -"+a[4])&&p(o,"values",s)},d(a){a&&ne(r)}}}function ua(e){let r;return{c(){r=Be("span"),p(r,"class",gs["text-range__top-offset"]),z(r,"margin-top",e[8])},m(t,n){ie(t,r,n)},p(t,n){n&256&&z(r,"margin-top",t[8])},d(t){t&&ne(r)}}}function N_(e){let r;return{c(){r=xn(e[1])},m(t,n){ie(t,r,n)},p(t,n){n&2&&Ti(r,t[1])},d(t){t&&ne(r)}}}function O_(e){let r,t,n,i,o=e[3]&&e[5]&&ca(e),s=e[8]&&ua(e);return n=new Ts({props:{componentContext:e[0],cls:gt("text-range",gs,e[7]),actions:e[2],style:Ct(e[6]),$$slots:{default:[N_]},$$scope:{ctx:e}}}),{c(){o&&o.c(),r=Qt(),s&&s.c(),t=Qt(),Wt(n.$$.fragment)},m(l,a){o&&o.m(l,a),ie(l,r,a),s&&s.m(l,a),ie(l,t,a),Rt(n,l,a),i=!0},p(l,[a]){l[3]&&l[5]?o?o.p(l,a):(o=ca(l),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),l[8]?s?s.p(l,a):(s=ua(l),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null);const c={};a&1&&(c.componentContext=l[0]),a&128&&(c.cls=gt("text-range",gs,l[7])),a&4&&(c.actions=l[2]),a&64&&(c.style=Ct(l[6])),a&1073741826&&(c.$$scope={dirty:a,ctx:l}),n.$set(c)},i(l){i||(B(n.$$.fragment,l),i=!0)},o(l){ee(n.$$.fragment,l),i=!1},d(l){l&&(ne(r),ne(t)),o&&o.d(l),s&&s.d(l),Lt(n,l)}}}function z_(e,r,t){let n,i,o,s,l,a,c,u,f,_,{componentContext:m}=r,{text:y}=r,{rootFontSize:h}=r,{textStyles:w={}}=r,{singleline:v=!1}=r,{actions:R=void 0}=r,{cloudBg:N=!1}=r,{customLineHeight:V=null}=r;const D=Hr(Zr),te=D.direction;on(e,te,be=>t(28,_=be));const F=N&&D.genId("text-range")||"";let Y="none",X=12,H=1.25,W="",U,he="",Ie="",Te=null,_e;return e.$$set=be=>{"componentContext"in be&&t(0,m=be.componentContext),"text"in be&&t(1,y=be.text),"rootFontSize"in be&&t(11,h=be.rootFontSize),"textStyles"in be&&t(12,w=be.textStyles),"singleline"in be&&t(13,v=be.singleline),"actions"in be&&t(2,R=be.actions),"cloudBg"in be&&t(3,N=be.cloudBg),"customLineHeight"in be&&t(14,V=be.customLineHeight)},e.$$.update=()=>{var be,_t,He,ze,Fe,qe,Qe;if(e.$$.dirty&1&&m.json&&(t(15,Y="none"),t(16,X=12),t(17,H=1.25),t(18,W=""),t(19,U=void 0),t(20,he=""),t(21,Ie=""),t(22,Te=null),t(23,_e=void 0)),e.$$.dirty&4096){let Z="none";(w.underline||w.strike)&&(w.underline==="single"&&w.strike==="single"?Z="both":w.underline==="single"?Z="underline":w.strike==="single"&&(Z="strike")),t(15,Y=Z)}e.$$.dirty&69632&&t(16,X=Un(w.font_size,X)),e.$$.dirty&69632&&In(w.line_height)&&t(17,H=Number(w.line_height)/X),e.$$.dirty&4096&&Vn(w.letter_spacing)&&t(18,W=ve(w.letter_spacing)),e.$$.dirty&528384&&(t(19,U=ao(w.font_weight,w.font_weight_value,U)),typeof w.font_family=="string"&&w.font_family?t(20,he=D.typefaceProvider(w.font_family,{fontWeight:U||400})):t(20,he="")),e.$$.dirty&2101256&&t(21,Ie=N?"transparent":Ir(w.text_color,1,Ie)),e.$$.dirty&4096&&t(8,n=w.top_offset?ve(w.top_offset):""),e.$$.dirty&4096&&t(5,i=((be=w.background)==null?void 0:be.type)==="cloud"),e.$$.dirty&4096&&t(26,o=((_t=w.background)==null?void 0:_t.type)==="cloud"?w.background.paddings:void 0),e.$$.dirty&4096&&t(24,s=((He=w.background)==null?void 0:He.type)==="solid"?Ss([w.background]):null),e.$$.dirty&4096&&((ze=w.border)!=null&&ze.stroke&&w.border.stroke.color&&Ir(w.border.stroke.color)!=="transparent"&&In(w.border.stroke.width)&&((Fe=w.background)==null?void 0:Fe.type)!=="cloud"?t(22,Te={color:w.border.stroke.color,width:w.border.stroke.width,corner_radius:w.border.corner_radius}):t(22,Te=null)),e.$$.dirty&4198440&&t(4,l=N?i&&w.background.corner_radius||0:Te?Un(Te.corner_radius,0):0),e.$$.dirty&69632&&t(25,a=w.text_shadow?Zd(w.text_shadow,X):void 0),e.$$.dirty&4096&&typeof w.baseline_offset=="number"&&t(23,_e=w.baseline_offset),e.$$.dirty&4096&&t(27,c=typeof w.baseline_offset=="number"?void 0:w.alignment_vertical),e.$$.dirty&142663712&&t(7,u={singleline:v,decoration:Y,align:c,cloud:i,"relative-vertical-align":!!(V&&_e)}),e.$$.dirty&536827960&&t(6,f={"font-size":ve(X*10/h),"line-height":c?"normal":H,"letter-spacing":W,"font-weight":U,"font-family":he,"vertical-align":V||_e===void 0?void 0:ve(_e*10/X),top:V&&_e!==void 0?ve(-_e*10/X):void 0,margin:o?ci(Zs(o,-10/X),_):void 0,padding:o?ci(Zs(o,10/X),_):void 0,filter:N&&i?`url(#${F})`:a,color:Ie,background:N?i?Nd(w.background.color,255,"transparent"):void 0:(s==null?void 0:s.color)||void 0,opacity:N&&i?((Qe=(qe=vi(w.background.color))==null?void 0:qe.a)!=null?Qe:255)/255:void 0,"box-shadow":Te?`inset 0 0 0 ${ve(Te.width*10/X)} ${Te.color}`:void 0,"border-radius":l?ve(l*10/X):void 0,"font-feature-settings":w.font_feature_settings||void 0})},[m,y,R,N,l,i,f,u,n,te,F,h,w,v,V,Y,X,H,W,U,he,Ie,Te,_e,s,a,o,c,_]}class Sl extends Rr{constructor(r){super(),zr(this,r,z_,O_,yr,{componentContext:0,text:1,rootFontSize:11,textStyles:12,singleline:13,actions:2,cloudBg:3,customLineHeight:14})}}function Vl(e,r,t){return e==="left"||e==="center"||e==="right"||e==="start"||e==="end"?e==="left"?r==="ltr"?"start":"end":e==="right"?r==="ltr"?"end":"start":e:t}function Il(e,r){return e==="top"||e==="center"||e==="bottom"||e==="baseline"?e==="top"?"start":e==="bottom"?"end":e:r}function R_(e){return String(e!=null?e:"")}function of(e,r){return e==="source_in"||e==="source_atop"||e==="darken"||e==="lighten"||e==="multiply"||e==="screen"?e:r}function Ds(e,r){let t;return function(...n){t!==null&&clearTimeout(t),t=setTimeout(()=>{e.apply(this,n),t=null},r)}}function L_(e,r){let t=null;const n=()=>{const l=getComputedStyle(e),a=parseFloat(l.lineHeight);e.style.webkitLineClamp="",e.style.maxHeight="";const c=e.offsetHeight,u=e.scrollHeight;let f=Math.max(1,Math.floor(c/a));r.maxLines&&r.maxLines<f&&(f=r.maxLines),u>f*a+1e-9&&(e.style.webkitLineClamp=String(f),e.style.maxHeight=a*f+"px")},i=Ds(n,50),o=()=>{t&&(t.disconnect(),t=null)},s=()=>{if(o(),r.enabled){if(n(),typeof ResizeObserver<"u"){t=new ResizeObserver(i);const l=e.parentElement;l&&t.observe(l)}}else e.style.webkitLineClamp=String(r.lineClamp||"")};return s(),{update(l){r=l,s()},destroy(){o()}}}const{Boolean:sf}=_i;function fa(e,r,t){const n=e.slice();return n[64]=r[t],n}function da(e,r,t){const n=e.slice();return n[64]=r[t],n}function _a(e){let r,t,n,i,o=nr(e[12]),s=[];for(let a=0;a<o.length;a+=1)s[a]=ga(da(e,o,a));const l=a=>ee(s[a],1,1,()=>{s[a]=null});return{c(){r=Be("span");for(let a=0;a<s.length;a+=1)s[a].c();p(r,"class",t=gt("text__inner",Wn,{...e[15],"cloud-bg":!0})),p(r,"style",n=Ct({...e[14],padding:e[13]}))},m(a,c){ie(a,r,c);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(r,null);i=!0},p(a,c){if(c[0]&5257){o=nr(a[12]);let u;for(u=0;u<o.length;u+=1){const f=da(a,o,u);s[u]?(s[u].p(f,c),B(s[u],1)):(s[u]=ga(f),s[u].c(),B(s[u],1),s[u].m(r,null))}for(ir(),u=o.length;u<s.length;u+=1)l(u);or()}(!i||c[0]&32768&&t!==(t=gt("text__inner",Wn,{...a[15],"cloud-bg":!0})))&&p(r,"class",t),(!i||c[0]&24576&&n!==(n=Ct({...a[14],padding:a[13]})))&&p(r,"style",n)},i(a){if(!i){for(let c=0;c<o.length;c+=1)B(s[c]);i=!0}},o(a){s=s.filter(sf);for(let c=0;c<s.length;c+=1)ee(s[c]);i=!1},d(a){a&&ne(r),an(s,a)}}}function B_(e){let r,t,n,i,o;return{c(){r=Be("span"),t=Be("span"),p(t,"class",n=gt("text__image-wrapper",Wn,{align:e[64].image.verticalAlign,crop:e[10]!==null})),p(t,"style",i=Ct({width:e[64].image.width,height:e[10]&&e[64].image.verticalAlign!=="baseline"?e[10]+"em":void 0})),p(r,"style",o=Ct(e[64].image.wrapperStyle))},m(s,l){ie(s,r,l),jt(r,t)},p(s,l){l[0]&5120&&n!==(n=gt("text__image-wrapper",Wn,{align:s[64].image.verticalAlign,crop:s[10]!==null}))&&p(t,"class",n),l[0]&5120&&i!==(i=Ct({width:s[64].image.width,height:s[10]&&s[64].image.verticalAlign!=="baseline"?s[10]+"em":void 0}))&&p(t,"style",i),l[0]&4096&&o!==(o=Ct(s[64].image.wrapperStyle))&&p(r,"style",o)},i:E,o:E,d(s){s&&ne(r)}}}function H_(e){let r,t,n=e[64].text&&ha(e);return{c(){n&&n.c(),r=Qt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&B(n,1)):(n=ha(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(ir(),ee(n,1,1,()=>{n=null}),or())},i(i){t||(B(n),t=!0)},o(i){ee(n),t=!1},d(i){i&&ne(r),n&&n.d(i)}}}function ha(e){let r,t;return r=new Sl({props:{componentContext:e[0],text:e[64].text,rootFontSize:e[3],textStyles:e[64].textStyles,singleline:e[7],cloudBg:!0}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function ga(e){let r,t,n,i;const o=[H_,B_],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function W_(e){let r,t;return r=new Sl({props:{componentContext:e[0],text:e[2],rootFontSize:e[3],textStyles:e[8],singleline:e[7],customLineHeight:e[10]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4&&(o.text=n[2]),i[0]&8&&(o.rootFontSize=n[3]),i[0]&256&&(o.textStyles=n[8]),i[0]&128&&(o.singleline=n[7]),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function U_(e){let r,t,n=nr(e[12]),i=[];for(let s=0;s<n.length;s+=1)i[s]=ma(fa(e,n,s));const o=s=>ee(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Qt()},m(s,l){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,l);ie(s,r,l),t=!0},p(s,l){if(l[0]&5257|l[1]&8){n=nr(s[12]);let a;for(a=0;a<n.length;a+=1){const c=fa(s,n,a);i[a]?(i[a].p(c,l),B(i[a],1)):(i[a]=ma(c),i[a].c(),B(i[a],1),i[a].m(r.parentNode,r))}for(ir(),a=n.length;a<i.length;a+=1)o(a);or()}},i(s){if(!t){for(let l=0;l<n.length;l+=1)B(i[l]);t=!0}},o(s){i=i.filter(sf);for(let l=0;l<i.length;l+=1)ee(i[l]);t=!1},d(s){s&&ne(r),an(i,s)}}}function G_(e){let r,t,n,i,o,s,l,a,c,u,f,_,m,y=[{class:i=Wn.text__image},{src:o=e[64].image.url},{loading:s=e[64].image.preloadRequired?"eager":"lazy"},{decoding:"async"},{alt:l=e[64].image.description},e[64].image.a11yAttrs,{style:a=Ct({height:e[64].image.height,filter:e[64].image.svgFilterId?`url(#${e[64].image.svgFilterId})`:void 0})}],h={};for(let w=0;w<y.length;w+=1)h=Ki(h,y[w]);return{c(){r=Be("span"),t=Be("span"),n=Be("img"),Qn(n,h),p(t,"class",c=gt("text__image-wrapper",Wn,{align:e[64].image.verticalAlign,crop:e[10]!==null})),p(t,"style",u=Ct({width:e[64].image.width,height:e[10]&&e[64].image.verticalAlign!=="baseline"?e[10]+"em":void 0})),p(r,"style",f=Ct(e[64].image.wrapperStyle))},m(w,v){ie(w,r,v),jt(r,t),jt(t,n),_||(m=Ue(n,"error",e[34]),_=!0)},p(w,v){Qn(n,h=fo(y,[{class:i},v[0]&4096&&!zn(n.src,o=w[64].image.url)&&{src:o},v[0]&4096&&s!==(s=w[64].image.preloadRequired?"eager":"lazy")&&{loading:s},{decoding:"async"},v[0]&4096&&l!==(l=w[64].image.description)&&{alt:l},v[0]&4096&&w[64].image.a11yAttrs,v[0]&4096&&a!==(a=Ct({height:w[64].image.height,filter:w[64].image.svgFilterId?`url(#${w[64].image.svgFilterId})`:void 0}))&&{style:a}])),v[0]&5120&&c!==(c=gt("text__image-wrapper",Wn,{align:w[64].image.verticalAlign,crop:w[10]!==null}))&&p(t,"class",c),v[0]&5120&&u!==(u=Ct({width:w[64].image.width,height:w[10]&&w[64].image.verticalAlign!=="baseline"?w[10]+"em":void 0}))&&p(t,"style",u),v[0]&4096&&f!==(f=Ct(w[64].image.wrapperStyle))&&p(r,"style",f)},i:E,o:E,d(w){w&&ne(r),_=!1,m()}}}function Y_(e){let r,t,n=e[64].text&&pa(e);return{c(){n&&n.c(),r=Qt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&B(n,1)):(n=pa(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(ir(),ee(n,1,1,()=>{n=null}),or())},i(i){t||(B(n),t=!0)},o(i){ee(n),t=!1},d(i){i&&ne(r),n&&n.d(i)}}}function pa(e){let r,t;return r=new Sl({props:{componentContext:e[0],text:e[64].text,rootFontSize:e[3],textStyles:e[64].textStyles,singleline:e[7],actions:e[64].actions,customLineHeight:e[10]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),i[0]&4096&&(o.actions=n[64].actions),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function ma(e){let r,t,n,i;const o=[Y_,G_],s=[];function l(a,c){return"text"in a[64]?0:a[64].image?1:-1}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function J_(e){let r,t,n,i,o,s,l,a,c,u,f=e[6]&&_a(e);const _=[U_,W_],m=[];function y(h,w){return h[12].length?0:1}return n=y(e),i=m[n]=_[n](e),{c(){f&&f.c(),r=pr(),t=Be("span"),i.c(),p(t,"class",o=gt("text__inner",Wn,e[15])),p(t,"style",s=Ct(e[14]))},m(h,w){f&&f.m(h,w),ie(h,r,w),ie(h,t,w),m[n].m(t,null),a=!0,c||(u=Cs(l=L_.call(null,t,{enabled:e[9],lineClamp:typeof e[4]=="number"?e[4]:void 0,maxLines:e[11]})),c=!0)},p(h,w){h[6]?f?(f.p(h,w),w[0]&64&&B(f,1)):(f=_a(h),f.c(),B(f,1),f.m(r.parentNode,r)):f&&(ir(),ee(f,1,1,()=>{f=null}),or());let v=n;n=y(h),n===v?m[n].p(h,w):(ir(),ee(m[v],1,1,()=>{m[v]=null}),or(),i=m[n],i?i.p(h,w):(i=m[n]=_[n](h),i.c()),B(i,1),i.m(t,null)),(!a||w[0]&32768&&o!==(o=gt("text__inner",Wn,h[15])))&&p(t,"class",o),(!a||w[0]&16384&&s!==(s=Ct(h[14])))&&p(t,"style",s),l&&jr(l.update)&&w[0]&2576&&l.update.call(null,{enabled:h[9],lineClamp:typeof h[4]=="number"?h[4]:void 0,maxLines:h[11]})},i(h){a||(B(f),B(i),a=!0)},o(h){ee(f),ee(i),a=!1},d(h){h&&(ne(r),ne(t)),f&&f.d(h),m[n].d(),c=!1,u()}}}function q_(e){let r,t;return r=new vn({props:{cls:gt("text",Wn,e[16])+" "+(e[5]?er.root__selectable:er.root__unselectable),componentContext:e[0],layoutParams:e[1],$$slots:{default:[J_]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&65568&&(o.cls=gt("text",Wn,n[16])+" "+(n[5]?er.root__selectable:er.root__unselectable)),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&65501|i[2]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function K_(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he=E,Ie=()=>(he(),he=M(R,Je=>t(47,U=Je)),R),Te,_e=E,be=()=>(_e(),_e=M(s,Je=>t(8,Te=Je)),s),_t,He=E,ze=()=>(He(),He=M(o,Je=>t(48,_t=Je)),o),Fe,qe=E,Qe=()=>(qe(),qe=M(i,Je=>t(49,Fe=Je)),i),Z,Ae=E,ge=()=>(Ae(),Ae=M(w,Je=>t(50,Z=Je)),w),et,G=E,Ee=()=>(G(),G=M(h,Je=>t(51,et=Je)),h),We,re=E,it=()=>(re(),re=M(y,Je=>t(52,We=Je)),y),je,Ve=E,yt=()=>(Ve(),Ve=M(m,Je=>t(53,je=Je)),m),Vt,$=E,tt=()=>($(),$=M(_,Je=>t(54,Vt=Je)),_),lt,dt=E,Ge=()=>(dt(),dt=M(c,Je=>t(55,lt=Je)),c),C,$e=E,le=()=>($e(),$e=M(f,Je=>t(56,C=Je)),f),Ke,wt=E,fe=()=>(wt(),wt=M(u,Je=>t(57,Ke=Je)),u),pe,at=E,Ze=()=>(at(),at=M(v,Je=>t(9,pe=Je)),v),xt,Mt=E,qt=()=>(Mt(),Mt=M(a,Je=>t(58,xt=Je)),a),Pe,pt=E,Ut=()=>(pt(),pt=M(l,Je=>t(59,Pe=Je)),l),Bt,Gt=E,L=()=>(Gt(),Gt=M(n,Je=>t(60,Bt=Je)),n);e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>He()),e.$$.on_destroy.push(()=>qe()),e.$$.on_destroy.push(()=>Ae()),e.$$.on_destroy.push(()=>G()),e.$$.on_destroy.push(()=>re()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>$()),e.$$.on_destroy.push(()=>dt()),e.$$.on_destroy.push(()=>$e()),e.$$.on_destroy.push(()=>wt()),e.$$.on_destroy.push(()=>at()),e.$$.on_destroy.push(()=>Mt()),e.$$.on_destroy.push(()=>pt()),e.$$.on_destroy.push(()=>Gt());let{componentContext:ae}=r,{layoutParams:ar=void 0}=r;const we=Hr(Zr),Et=we.direction;on(e,Et,Je=>t(46,W=Je));let Re="",mt=12,Ne=1.25,ot=null,vt="",De,ct="",Yt=!1,sr="start",dr="start",Ht="",ut="",St="",Ft=!1,$t=[],tr=!1,wr=[];function Mr(Je,cr,ke,q){let vr=[];if(wr.forEach(([Xe,It])=>{we.removeSvgFilter(Xe,It)}),wr=[],!(Array.isArray(cr)&&cr.length||Array.isArray(ke)&&ke.length&&Je)){t(12,$t=[]);return}const kr=Je;let Pt=cr||[{start:0,end:kr.length}],Xr=ke||[],Se=0,Nt=[],ur=[];Pt.forEach(Xe=>{const It=Xe.start||0,Oe=Xe.end||Je.length,ht={top_offset:0,...Xe,start:It,end:Oe};ur.push({index:It,range:ht,type:"rangeStart",isStart:!0}),ur.push({index:Oe,range:ht,type:"rangeEnd"})}),Xr.forEach((Xe,It)=>{Xe.start!==void 0&&Xe.url&&Xe.start<=kr.length&&ur.push({index:Xe.indexing_direction==="reversed"?Je.length-Xe.start:Xe.start,image:Xe,type:"image",arrayIndex:It})}),ur.sort((Xe,It)=>Xe.index===It.index?Xe.type!==It.type?Xe.type==="image"?-1:It.type==="image"?1:Xe.type<It.type?-1:1:Xe.type==="image"&&It.type==="image"?It.arrayIndex-Xe.arrayIndex:Xe.type==="rangeStart"&&It.type==="rangeStart"?Xe.range.end-It.range.end:Xe.type==="rangeStart"?1:It.type==="rangeStart"?-1:Xe.type!=="image"&&It.type!=="image"?Xe.range.start-It.range.start:0:Xe.index-It.index),ur.forEach(Xe=>{var ht,st,At,Jt;let It=Xe.type==="image"?null:Xe.range,Oe=Xe.index;if(Oe>Se){let I=Object.assign({...q},...Nt);Nt.length&&Nt[Nt.length-1].start!==Se&&(I.top_offset=0),vr.push({text:kr.substring(Se,Oe),textStyles:I,actions:Xe.type==="rangeEnd"&&((st=(ht=Xe.range)==null?void 0:ht.actions)==null?void 0:st.filter(En))||void 0})}if(Xe.type==="rangeStart"&&It)Nt.push(It);else if(Xe.type==="rangeEnd")Nt=Nt.filter(I=>I!==Xe.range);else if(Xe.type==="image"){let I=Object.assign({...q},...Nt),rt=ve((Xe.image.width&&Xe.image.width.value||20)*10/(I.font_size||12)),de=ve((Xe.image.height&&Xe.image.height.value||20)*10/(I.font_size||12));const d={"font-size":ve((Number(I.font_size)||12)*10/mt)};let Me="";const kt=Xe.image.tint_color,Tr=of(Xe.image.tint_mode,"source_in");if(kt){const Qr=Ir(Xe.image.tint_color);Me=we.addSvgFilter(Qr,Tr),wr.push([Qr,Tr])}const lr={},O=(At=Xe.image.accessibility)==null?void 0:At.type,Cr=((Jt=Xe.image.accessibility)==null?void 0:Jt.description)||"";(O==="button"||O==="image")&&Cr?lr.role=O:(!Cr||O==="none")&&(lr["aria-hidden"]="true"),vr.push({image:{url:Xe.image.url,width:rt,height:de,wrapperStyle:d,svgFilterId:Me,preloadRequired:!!Xe.image.preload_required,verticalAlign:Xe.image.alignment_vertical,description:Cr,a11yAttrs:lr}})}Se=Oe}),Se<kr.length&&vr.push({text:kr.substring(Se),textStyles:{...q}}),t(12,$t=vr),t(6,tr=vr.some(Xe=>{var It;return"text"in Xe&&((It=Xe.textStyles.background)==null?void 0:It.type)==="cloud"}))}function Ur(Je){Je.target&&"classList"in Je.target&&Je.target.classList.add(Wn.text__image_hidden)}return sn(()=>{wr.forEach(([Je,cr])=>{we.removeSvgFilter(Je,cr)})}),e.$$set=Je=>{"componentContext"in Je&&t(0,ae=Je.componentContext),"layoutParams"in Je&&t(1,ar=Je.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&ae.json&&(t(3,mt=12),t(35,Ne=1.25),t(10,ot=null),t(36,vt=""),t(11,De=void 0),t(4,ct=""),t(37,Yt=!1),t(38,sr="start"),t(39,dr="start"),t(40,Ht=""),t(42,St=""),t(5,Ft=!1)),e.$$.dirty[0]&1&&L(t(32,n=ae.getDerivedFromVars(ae.json.text))),e.$$.dirty[0]&1&&Qe(t(31,i=ae.getDerivedFromVars(ae.json.ranges))),e.$$.dirty[0]&1&&ze(t(30,o=ae.getDerivedFromVars(ae.json.images))),e.$$.dirty[0]&1&&be(t(29,s=ae.getDerivedFromVars({font_size:ae.json.font_size,letter_spacing:ae.json.letter_spacing,font_weight:ae.json.font_weight,font_weight_value:ae.json.font_weight_value,font_family:ae.json.font_family,text_color:ae.json.text_color,underline:ae.json.underline,strike:ae.json.strike,line_height:ae.json.line_height,text_shadow:ae.json.text_shadow,font_feature_settings:ae.json.font_feature_settings}))),e.$$.dirty[0]&1&&Ut(t(28,l=ae.getDerivedFromVars(ae.json.font_size))),e.$$.dirty[0]&1&&qt(t(27,a=ae.getDerivedFromVars(ae.json.line_height))),e.$$.dirty[0]&1&&Ge(t(26,c=ae.getDerivedFromVars(ae.json.max_lines))),e.$$.dirty[0]&1&&fe(t(25,u=ae.getDerivedFromVars(ae.json.text_alignment_horizontal))),e.$$.dirty[0]&1&&le(t(24,f=ae.getDerivedFromVars(ae.json.text_alignment_vertical))),e.$$.dirty[0]&1&&tt(t(23,_=ae.getDerivedFromVars(ae.json.text_color))),e.$$.dirty[0]&1&&yt(t(22,m=ae.getDerivedFromVars(ae.json.focused_text_color))),e.$$.dirty[0]&1&&it(t(21,y=ae.getDerivedFromVars(ae.json.truncate))),e.$$.dirty[0]&1&&Ee(t(20,h=ae.getDerivedFromVars(ae.json.text_gradient))),e.$$.dirty[0]&1&&ge(t(19,w=ae.getDerivedFromVars(ae.json.selectable))),e.$$.dirty[0]&1&&Ze(t(18,v=ae.getDerivedFromVars(ae.json.auto_ellipsize))),e.$$.dirty[0]&1&&Ie(t(17,R=ae.getDerivedFromVars(ae.json.paddings))),e.$$.dirty[0]&1|e.$$.dirty[1]&536870912&&(typeof ae.json.text=="string"?t(2,Re=R_(Bt)):(t(2,Re=""),ae.logError(x(new Error("Incorrect text value type"))))),e.$$.dirty[0]&8|e.$$.dirty[1]&268435456&&t(3,mt=Un(Pe,mt)),e.$$.dirty[0]&8|e.$$.dirty[1]&134217744){const Je=xt;In(Je)?(t(35,Ne=Number(Je)/mt),t(10,ot=Ne)):t(10,ot=null)}if(e.$$.dirty[1]&16777216&&t(7,N=lt===1),e.$$.dirty[0]&512|e.$$.dirty[1]&16777232){let Je="",cr,ke="",q=!1;if(lt&<>1){const vr=Number(lt);Je=vr*Ne+"em",cr=vr,ke=vr,q=!0}else pe&<!==1&&(q=!0);t(36,vt=Je),t(11,De=cr),t(4,ct=ke),t(37,Yt=q)}if(e.$$.dirty[1]&67141760&&t(38,sr=Vl(Ke,W,sr)),e.$$.dirty[1]&33554688&&t(39,dr=Il(C,dr)),e.$$.dirty[0]&4|e.$$.dirty[1]&262144&&t(45,V=!Fe||Re&&Fe.length===1&&Fe[0]&&(!Fe[0].start||Fe[0].start===0)&&(!Fe[0].end||typeof Fe[0].end=="number"&&Fe[0].end>=Re.length)),e.$$.dirty[1]&8650752&&t(44,D=!!Vt!=!!(Fe&&Fe[0]&&Fe[0].text_color)),e.$$.dirty[1]&25453056){let Je="";lt&&V&&D&&(Je=Ir(Vt||Fe&&Fe[0]&&Fe[0].text_color,1,Ht)),t(40,Ht=Je)}if(e.$$.dirty[1]&4195328&&t(41,ut=Ir(je,1,ut)),e.$$.dirty[1]&2097152&&t(43,te=We==="none"?"none":""),e.$$.dirty[1]&1048576){let Je="";if(et){const cr=Ss([et]);cr.image&&(Je=cr.image)}t(42,St=Je)}e.$$.dirty[0]&32|e.$$.dirty[1]&524288&&t(5,Ft=Xn(Z,Ft)),e.$$.dirty[0]&260|e.$$.dirty[1]&393216&&Mr(Re,Fe,_t,Te),e.$$.dirty[0]&128|e.$$.dirty[1]&5568&&t(16,F={singleline:N,multiline:Yt,halign:sr,valign:dr,truncate:te,"has-focus-color":!!ut}),e.$$.dirty[0]&64|e.$$.dirty[1]&2048&&t(15,Y={gradient:!!St,"has-cloud-bg":tr}),e.$$.dirty[0]&24|e.$$.dirty[1]&3632&&t(14,X={"font-size":ve(mt),"line-height":Ne,"max-height":vt,"-webkit-line-clamp":ct,color:Ht,"background-image":St,"--divkit-text-focus-color":ut}),e.$$.dirty[0]&8|e.$$.dirty[1]&98304&&t(13,H=ci(Zs(To(U,{})||{},10/mt),W))},[ae,ar,Re,mt,ct,Ft,tr,N,Te,pe,ot,De,$t,H,X,Y,F,R,v,w,h,y,m,_,f,u,c,a,l,s,o,i,n,Et,Ur,Ne,vt,Yt,sr,dr,Ht,ut,St,te,D,V,W,U,_t,Fe,Z,et,We,je,Vt,lt,C,Ke,xt,Pe,Bt]}class X_ extends Rr{constructor(r){super(),zr(this,r,K_,q_,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Z_="divkit-a6270",Q_="divkit-758dd",x_="divkit-34175",$_="divkit-5d3b3",eh="divkit-76f26",th="divkit-71fc3",rh="divkit-d66e1",nh="divkit-4d9fa",ih="divkit-f82bf",oh="divkit-221f7",sh="divkit-88fee",lh="divkit-825b7",ba={container:Z_,container_wrap:Q_,container_overflow_visible:x_,container_orientation_vertical:$_,container_valign_start:eh,container_valign_center:th,container_valign_end:rh,"container_valign_space-between":"divkit-4aa6d","container_valign_space-around":"divkit-846d1","container_valign_space-evenly":"divkit-e04b5",container_halign_start:nh,container_halign_center:ih,container_halign_end:oh,"container_halign_space-between":"divkit-2daed","container_halign_space-around":"divkit-359ca","container_halign_space-evenly":"divkit-82605",container_orientation_horizontal:sh,container_orientation_overlap:lh};function ya(e){return{top:Number(e==null?void 0:e.top)||0,right:Number(e==null?void 0:e.right)||0,bottom:Number(e==null?void 0:e.bottom)||0,left:Number(e==null?void 0:e.left)||0}}function wa(e,r,t){const n=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),i=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0);r!=null&&r.show_at_start&&(t?e.top=r.style.height+i:e.left=r.style.width+n),r!=null&&r.show_at_end&&(t?e.bottom=r.style.height+i:e.right=r.style.width+n)}function ah(e,r,t){const n={};return wa(n,r,e==="vertical"),wa(n,t,e==="horizontal"),n}function ch(e,r,t){let n;const i=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),o=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0),s=((t==null?void 0:t.margins.left)||0)+((t==null?void 0:t.margins.right)||0),l=((t==null?void 0:t.margins.top)||0)+((t==null?void 0:t.margins.bottom)||0);return e==="horizontal"?n=[t!=null&&t.show_between?t.style.height+l:0,r!=null&&r.show_between?r.style.width+i:0]:n=[r!=null&&r.show_between?r.style.height+o:0,t!=null&&t.show_between?t.style.width+s:0],n.map(ve).join(" ")}function uh(e){var t;const r=(t=e.width)==null?void 0:t.type;return r!=="wrap_content"&&r!=="fixed"}function fh(e){var t;return((t=e.height)==null?void 0:t.type)==="match_parent"}function dh(e,r){return e==="vertical"||e==="horizontal"||e==="overlap"?e:r}function _h(e){var r,t,n;return{width:Yr((r=e.item_width)==null?void 0:r.value,10),height:Yr((t=e.item_height)==null?void 0:t.value,10),radius:Yr((n=e.corner_radius)==null?void 0:n.value,5)}}function hh(e){var t;const r=Yr((t=e.radius)==null?void 0:t.value,10)*2;return{width:r,height:r,radius:r}}function gh(e,r,t){var a;const n={},i=r.stroke||(t==null?void 0:t.stroke),o=i!=null&&i.color?Ir(i.color):"",s=i!=null&&i.width?Number((a=i.width)!=null?a:1):"";n.width=e.width,n.height=e.height,n.borderRadius=e.radius;const l=r.background_color||(t==null?void 0:t.color);return n.background=Ir(l),o&&s&&(n.boxShadow=`inset 0 0 0 ${ve(s)} ${o}`),n}function Kn(e,r,t){if(!e||!e.shape||!e.shape.type||!r.includes(e.shape.type)||e.type!=="shape_drawable")return t;let n;if(e.shape.type==="rounded_rectangle")n=_h(e.shape);else if(e.shape.type==="circle")n=hh(e.shape);else return t;return gh(n,e.shape,{color:e.color,stroke:e.stroke})}let yo;function va(){if(typeof document>"u"&&(yo=!0),yo!==void 0)return yo;const e=document.createElement("div");return e.style.position="absolute",e.style.display="flex",e.style.flexDirection="column",e.style.gap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),yo=e.scrollHeight===1,document.body.removeChild(e),yo}function ph(e,r){return e==="top"||e==="center"||e==="bottom"||e==="baseline"||e==="space-between"||e==="space-around"||e==="space-evenly"?e==="top"?"start":e==="bottom"?"end":e:r}function mh(e,r,t){return e==="left"||e==="center"||e==="right"||e==="space-between"||e==="space-around"||e==="space-evenly"||e==="start"||e==="end"?e==="left"?r==="ltr"?"start":"end":e==="right"?r==="ltr"?"end":"start":e:t}function bh(){}function Hi(e){return{subscribe(r){return r(e),bh}}}function Tl(e,r,t,n){const i=[],o=n.prototypes;return o&&e.forEach((s,l)=>{if(s===null||typeof s!="object")return;const a=r.preparePrototypeVariables(n.data_element_name||"it",s,l);let c,u;for(let f=0;f<o.length;++f){const _=o[f];if(!_.div)continue;if(_.selector===void 0){c=_.div,u=t.getJsonWithVars(_.id,a);break}if(t.getJsonWithVars(_.selector,a)){c=_.div,u=t.getJsonWithVars(_.id,a);break}}c&&i.push({div:c,id:u,vars:a})}),i}const jo={"container-separator":"divkit-e4041","container-separator__item":"divkit-566e3","container-separator__shape":"divkit-4178a"};function yh(e,r){let t=0,n,i=!1;return function(){const o=Date.now();return!t||Math.abs(o-t)>r?(t=o,n=e.apply(this,arguments)):(i||(i=!0,setTimeout(()=>{i=!1,n=e.apply(this,arguments)},r)),n)}}function wh(e){const r=e.getBoundingClientRect(),t=getComputedStyle(e);return{top:r.top-parseFloat(t.marginTop),right:r.right+parseFloat(t.marginRight),bottom:r.bottom+parseFloat(t.marginBottom),left:r.left-parseFloat(t.marginLeft)}}const{window:vh}=_i;function ka(e,r,t){const n=e.slice();return n[16]=r[t],n}function Aa(e){let r,t,n=`${e[16].style.width}px`,i=`${e[16].style.height}px`,o=`${e[16].style.borderRadius}px`,s,l=`${e[16].left}px`,a=`${e[16].top}px`,c=`${e[16].width}px`,u=`${e[16].height}px`;return{c(){r=Be("div"),t=Be("div"),s=pr(),p(t,"class",jo["container-separator__shape"]),z(t,"width",n),z(t,"height",i),z(t,"border-radius",o),z(t,"background",e[16].style.background),z(t,"box-shadow",e[16].style.boxShadow),p(r,"class",jo["container-separator__item"]),z(r,"left",l),z(r,"top",a),z(r,"width",c),z(r,"height",u)},m(f,_){ie(f,r,_),jt(r,t),jt(r,s)},p(f,_){_&2&&n!==(n=`${f[16].style.width}px`)&&z(t,"width",n),_&2&&i!==(i=`${f[16].style.height}px`)&&z(t,"height",i),_&2&&o!==(o=`${f[16].style.borderRadius}px`)&&z(t,"border-radius",o),_&2&&z(t,"background",f[16].style.background),_&2&&z(t,"box-shadow",f[16].style.boxShadow),_&2&&l!==(l=`${f[16].left}px`)&&z(r,"left",l),_&2&&a!==(a=`${f[16].top}px`)&&z(r,"top",a),_&2&&c!==(c=`${f[16].width}px`)&&z(r,"width",c),_&2&&u!==(u=`${f[16].height}px`)&&z(r,"height",u)},d(f){f&&ne(r)}}}function kh(e){let r,t,n,i=nr(e[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Aa(ka(e,i,s));return{c(){r=Be("div");for(let s=0;s<o.length;s+=1)o[s].c();p(r,"class",jo["container-separator"])},m(s,l){ie(s,r,l);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(r,null);e[13](r),t||(n=Ue(vh,"resize",e[2]),t=!0)},p(s,[l]){if(l&2){i=nr(s[1]);let a;for(a=0;a<i.length;a+=1){const c=ka(s,i,a);o[a]?o[a].p(c,l):(o[a]=Aa(c),o[a].c(),o[a].m(r,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=i.length}},i:E,o:E,d(s){s&&ne(r),an(o,s),e[13](null),t=!1,n()}}}const Ah=10;function Bs(e,r,t,n,i,o){const s=r.margins.left,l=r.margins.right,a=r.margins.top,c=r.margins.bottom;o?e.push({top:t.bottom+a,left:i.left+s,width:Math.max(0,i.right-i.left-s-l),height:n.top-t.bottom-a-c,style:r.style}):e.push({top:i.top+a,left:t.right+s,width:n.left-t.right-s-l,height:Math.max(0,i.bottom-i.top-a-c),style:r.style})}function ja(e,r,t,n,i,o){const s={top:Math.min(...t.map(l=>l.top)),right:Math.max(...t.map(l=>l.right)),bottom:Math.max(...t.map(l=>l.bottom)),left:Math.min(...t.map(l=>l.left))};if(r!=null&&r.show_at_start){let l,a;i==="space-around"||i==="space-evenly"?(l=o.left-r.style.width,a=o.top-r.style.height):(l=t[0].left-r.style.width-r.margins.left-r.margins.right,a=t[0].top-r.style.height-r.margins.top-r.margins.bottom),Bs(e,r,{top:0,right:l,bottom:a,left:0},t[0],s,n)}if(r!=null&&r.show_between)for(let l=0;l<t.length-1;++l)Bs(e,r,t[l],t[l+1],s,n);if(r!=null&&r.show_at_end){const l=t[t.length-1];let a,c;i==="space-around"||i==="space-evenly"?(a=o.bottom+r.style.height,c=o.right+r.style.width):(a=l.bottom+r.style.height+r.margins.top+r.margins.bottom,c=l.right+r.style.width+r.margins.left+r.margins.right),Bs(e,r,l,{top:a,right:0,bottom:0,left:c},s,n)}}function jh(e,r,t){let n,{orientation:i}=r,{separator:o}=r,{lineSeparator:s}=r,{contentHAlign:l}=r,{contentVAlign:a}=r,{direction:c}=r;const u=yh(v,Ah);let f=[],_,m=!1,y=null,h=null;function w(N){N.some(V=>{var te;const D=(te=V.target)==null?void 0:te.classList;return!(D!=null&&D.contains(jo["container-separator__shape"]))&&!(D!=null&&D.contains(jo["container-separator"]))})&&u()}function v(){if(!n)return;const N=n.getBoundingClientRect(),V=window.getComputedStyle(n),D={top:N.top+parseFloat(V.paddingTop),right:N.right-parseFloat(V.paddingRight),bottom:N.bottom-parseFloat(V.paddingBottom),left:N.left+parseFloat(V.paddingLeft)};t(1,f=[]);let te=[...n.children].filter(X=>X!==_&&!X.classList.contains(_s.outer__border)),F=[];for(;te.length;){const X=[],H=te.shift();X.push(H);let W=H.getBoundingClientRect(),U=W.left,he=W.right,Ie=W.bottom;for(;te.length;){let Te=te[0],_e=Te.getBoundingClientRect();if(i==="vertical"){if(_e.top<Ie)break}else if(c==="ltr"?_e.left<he:_e.right>U)break;he=Math.max(he,_e.right),U=Math.min(U,_e.left),Ie=Math.max(Ie,_e.bottom),X.push(Te),te.shift()}F.push(X)}const Y=[];F.forEach(X=>{const H=X.map(U=>wh(U));c==="rtl"&&i==="horizontal"&&H.reverse(),o&&ja(f,o,H,i==="vertical",i==="vertical"?a:l,D);const W={top:Math.min(...H.map(U=>U.top)),right:Math.max(...H.map(U=>U.right)),bottom:Math.max(...H.map(U=>U.bottom)),left:Math.min(...H.map(U=>U.left))};Y.push(W)}),c==="rtl"&&i==="vertical"&&Y.reverse(),s&&ja(f,s,Y,i==="horizontal",i==="vertical"?l:a,D),f.forEach(X=>{X.top-=N.top,X.left-=N.left})}$n(()=>{t(9,m=!0)}),sn(()=>{t(9,m=!1)});function R(N){Fr[N?"unshift":"push"](()=>{_=N,t(0,_)})}return e.$$set=N=>{"orientation"in N&&t(3,i=N.orientation),"separator"in N&&t(4,o=N.separator),"lineSeparator"in N&&t(5,s=N.lineSeparator),"contentHAlign"in N&&t(6,l=N.contentHAlign),"contentVAlign"in N&&t(7,a=N.contentVAlign),"direction"in N&&t(8,c=N.direction)},e.$$.update=()=>{e.$$.dirty&1&&t(12,n=(_==null?void 0:_.parentElement)||null),e.$$.dirty&7680&&(m&&n||y||h)&&(y&&(y.disconnect(),t(10,y=null)),h&&(h.disconnect(),t(11,h=null)),m&&n&&(typeof MutationObserver<"u"&&(t(10,y=new MutationObserver(w)),y.observe(n,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),typeof ResizeObserver<"u"&&(t(11,h=new ResizeObserver(u)),h.observe(n)))),e.$$.dirty&4608&&m&&n&&u()},[_,f,u,i,o,s,l,a,c,m,y,h,n,R]}class Ch extends Rr{constructor(r){super(),zr(this,r,jh,kh,yr,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}}const{Boolean:Eh}=_i;function Ca(e,r,t){const n=e.slice();return n[49]=r[t],n}function Ea(e){let r,t;return r=new ei({props:{componentContext:e[49],layoutParams:e[8]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&512&&(o.componentContext=n[49]),i[0]&256&&(o.layoutParams=n[8]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Sa(e){let r,t;return r=new Ch({props:{direction:e[10],separator:e[5],lineSeparator:e[6],orientation:e[2],contentHAlign:e[4],contentVAlign:e[3]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1024&&(o.direction=n[10]),i[0]&32&&(o.separator=n[5]),i[0]&64&&(o.lineSeparator=n[6]),i[0]&4&&(o.orientation=n[2]),i[0]&16&&(o.contentHAlign=n[4]),i[0]&8&&(o.contentVAlign=n[3]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Sh(e){let r,t,n,i=nr(e[9]),o=[];for(let a=0;a<i.length;a+=1)o[a]=Ea(Ca(e,i,a));const s=a=>ee(o[a],1,1,()=>{o[a]=null});let l=(e[5]||e[6])&&Sa(e);return{c(){for(let a=0;a<o.length;a+=1)o[a].c();r=pr(),l&&l.c(),t=Qt()},m(a,c){for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(a,c);ie(a,r,c),l&&l.m(a,c),ie(a,t,c),n=!0},p(a,c){if(c[0]&768){i=nr(a[9]);let u;for(u=0;u<i.length;u+=1){const f=Ca(a,i,u);o[u]?(o[u].p(f,c),B(o[u],1)):(o[u]=Ea(f),o[u].c(),B(o[u],1),o[u].m(r.parentNode,r))}for(ir(),u=i.length;u<o.length;u+=1)s(u);or()}a[5]||a[6]?l?(l.p(a,c),c[0]&96&&B(l,1)):(l=Sa(a),l.c(),B(l,1),l.m(t.parentNode,t)):l&&(ir(),ee(l,1,1,()=>{l=null}),or())},i(a){if(!n){for(let c=0;c<i.length;c+=1)B(o[c]);B(l),n=!0}},o(a){o=o.filter(Eh);for(let c=0;c<o.length;c+=1)ee(o[c]);ee(l),n=!1},d(a){a&&(ne(r),ne(t)),an(o,a),l&&l.d(a)}}}function Vh(e){let r,t;return r=new vn({props:{cls:gt("container",ba,e[13]),componentContext:e[0],layoutParams:e[1],style:e[12],additionalPaddings:e[14],heightByAspect:!!e[7],parentOf:e[9],replaceItems:e[27],$$slots:{default:[Sh]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&8192&&(o.cls=gt("container",ba,n[13])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4096&&(o.style=n[12]),i[0]&16384&&(o.additionalPaddings=n[14]),i[0]&128&&(o.heightByAspect=!!n[7]),i[0]&512&&(o.parentOf=n[9]),i[0]&1916|i[1]&2097152&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}const Ih={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Th={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Va=["rounded_rectangle","circle"];function Dh(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X=E,H=()=>(X(),X=M(h,ae=>t(35,Y=ae)),h),W,U=E,he=()=>(U(),U=M(y,ae=>t(36,W=ae)),y),Ie,Te=E,_e=()=>(Te(),Te=M(m,ae=>t(37,Ie=ae)),m),be,_t=E,He=()=>(_t(),_t=M(_,ae=>t(38,be=ae)),_),ze,Fe=E,qe=()=>(Fe(),Fe=M(f,ae=>t(39,ze=ae)),f),Qe,Z=E,Ae=()=>(Z(),Z=M(u,ae=>t(40,Qe=ae)),u),ge,et,G=E,Ee=()=>(G(),G=M(c,ae=>t(41,et=ae)),c),We,re=E,it=()=>(re(),re=M(a,ae=>t(42,We=ae)),a),je,Ve=E,yt=()=>(Ve(),Ve=M(at,ae=>t(43,je=ae)),at),Vt,$=E,tt=()=>($(),$=M(l,ae=>t(44,Vt=ae)),l),lt,dt=E,Ge=()=>(dt(),dt=M(s,ae=>t(45,lt=ae)),s),C,$e=E,le=()=>($e(),$e=M(o,ae=>t(46,C=ae)),o);e.$$.on_destroy.push(()=>X()),e.$$.on_destroy.push(()=>U()),e.$$.on_destroy.push(()=>Te()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>Z()),e.$$.on_destroy.push(()=>G()),e.$$.on_destroy.push(()=>re()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>$()),e.$$.on_destroy.push(()=>dt()),e.$$.on_destroy.push(()=>$e());let{componentContext:Ke}=r,{layoutParams:wt=void 0}=r;const fe=Hr(Zr),pe=fe.direction;on(e,pe,ae=>t(10,ge=ae));let at,Ze="vertical",xt="start",Mt="start",qt=null,Pe=null,pt,Ut={};function Bt(){t(2,Ze="vertical"),t(3,xt="start"),t(4,Mt="start"),t(7,pt=void 0)}function Gt(ae){t(0,Ke={...Ke,json:{...Ke.json,items:ae.filter(ki)}})}let L=[];return sn(()=>{L.forEach(ae=>{ae.destroy()})}),e.$$set=ae=>{"componentContext"in ae&&t(0,Ke=ae.componentContext),"layoutParams"in ae&&t(1,wt=ae.layoutParams)},e.$$.update=()=>{var ae,ar,we,Et,Re,mt,Ne,ot,vt;if(e.$$.dirty[0]&1&&t(34,n=Ke.origJson),e.$$.dirty[1]&8&&n&&Bt(),e.$$.dirty[0]&1&&t(33,i=Ke.json.items),e.$$.dirty[0]&1&&le(t(25,o=typeof((ae=Ke.json.item_builder)==null?void 0:ae.data)=="string"?Ke.getDerivedFromVars((ar=Ke.json.item_builder)==null?void 0:ar.data,void 0,!0):(we=Ke.json.item_builder)!=null&&we.data?Hi(Ke.json.item_builder.data):void 0)),e.$$.dirty[0]&1&&Ge(t(24,s=Ke.getDerivedFromVars(Ke.json.orientation))),e.$$.dirty[0]&1&&tt(t(23,l=Ke.getDerivedFromVars(Ke.json.layout_mode))),e.$$.dirty[0]&1&&it(t(22,a=Ke.getDerivedFromVars(Ke.json.content_alignment_vertical))),e.$$.dirty[0]&1&&Ee(t(21,c=Ke.getDerivedFromVars(Ke.json.content_alignment_horizontal))),e.$$.dirty[0]&1&&Ae(t(20,u=Ke.getDerivedFromVars(Ke.json.separator))),e.$$.dirty[0]&1&&qe(t(19,f=Ke.getDerivedFromVars(Ke.json.line_separator))),e.$$.dirty[0]&1&&He(t(18,_=Ke.getDerivedFromVars(Ke.json.aspect))),e.$$.dirty[0]&1&&_e(t(17,m=Ke.getDerivedFromVars(Ke.json.width))),e.$$.dirty[0]&1&&he(t(16,y=Ke.getDerivedFromVars(Ke.json.height))),e.$$.dirty[0]&1&&H(t(15,h=Ke.getDerivedFromVars(Ke.json.clip_to_bounds))),e.$$.dirty[0]&513|e.$$.dirty[1]&32772){let De=[];if(Ke.json.item_builder&&Array.isArray(C)&&Array.isArray(Ke.json.item_builder.prototypes)){const ct=Ke.json.item_builder;De=Tl(C,fe,Ke,ct)}else De=(Array.isArray(i)&&i||[]).map(ct=>({div:ct}));L.forEach(ct=>{ct.destroy()}),t(9,L=De.map((ct,Yt)=>Ke.produceChildContext(ct.div,{path:Yt,variables:ct.vars,id:ct.id})))}if(e.$$.dirty[0]&513){let De=[];L.forEach(ct=>{De.push(Ke.getDerivedFromVars({width:ct.json.width,height:ct.json.height}))}),yt(t(11,at=Gi(De,ct=>[...ct])))}if(e.$$.dirty[0]&4|e.$$.dirty[1]&16384&&t(2,Ze=dh(lt,Ze)),e.$$.dirty[1]&8192&&t(28,w=Vt==="wrap"),e.$$.dirty[0]&268435460&&t(32,v=Ze!=="horizontal"&&!w),e.$$.dirty[0]&268435460&&t(31,R=Ze!=="vertical"&&!w),e.$$.dirty[0]&4|e.$$.dirty[1]&4096&&t(30,N=Ze==="overlap"&&!je.every(uh)),e.$$.dirty[0]&4|e.$$.dirty[1]&4096&&t(29,V=Ze==="overlap"&&!je.every(fh)),e.$$.dirty[0]&8|e.$$.dirty[1]&2048&&t(3,xt=ph(We,xt)),e.$$.dirty[0]&1040|e.$$.dirty[1]&1024&&t(4,Mt=mh(et,ge,Mt)),e.$$.dirty[0]&36|e.$$.dirty[1]&512)if(Qe!=null&&Qe.style&&Ze!=="overlap"&&va()){const De=Kn(Qe.style,Va,(qt==null?void 0:qt.style)||null);De?t(5,qt={show_at_start:!!((Et=Qe.show_at_start)!=null&&Et),show_at_end:!!((Re=Qe.show_at_end)!=null&&Re),show_between:!!((mt=Qe.show_between)==null||mt),style:De,margins:ya(Qe.margins)}):t(5,qt=null)}else t(5,qt=null);if(e.$$.dirty[0]&68|e.$$.dirty[1]&256)if(ze!=null&&ze.style&&Ze!=="overlap"&&va()){const De=Kn(ze.style,Va,(Pe==null?void 0:Pe.style)||null);De?t(6,Pe={show_at_start:!!((Ne=ze.show_at_start)!=null&&Ne),show_at_end:!!((ot=ze.show_at_end)!=null&&ot),show_between:!!((vt=ze.show_between)==null||vt),style:De,margins:ya(ze.margins)}):t(6,Pe=null)}else t(6,Pe=null);if(e.$$.dirty[0]&100&&t(14,D=qt||Pe?ah(Ze,qt,Pe):null),e.$$.dirty[1]&128){const De=be==null?void 0:be.ratio;De&&In(De)?t(7,pt=De):t(7,pt=void 0)}if(e.$$.dirty[0]&1879048606|e.$$.dirty[1]&99){let De={};Ze==="overlap"&&(De.overlapParent=!0),Ze!=="horizontal"&&(De.parentHAlign=w?"start":Ih[Mt]),Ze!=="vertical"&&(De.parentVAlign=w?"start":Th[xt]);const ct=(Ie==null?void 0:Ie.type)==="wrap_content"||(Ie==null?void 0:Ie.type)==="match_parent"&&(wt==null?void 0:wt.parentHorizontalWrapContent),Yt=!W||W.type==="wrap_content"||W.type==="match_parent"&&(wt==null?void 0:wt.parentVerticalWrapContent);!v&&ct&&(De.parentHorizontalWrapContent=!0),!pt&&!R&&Yt&&(De.parentVerticalWrapContent=!0),De.stretchWidth=N,De.stretchHeight=V,Ze==="horizontal"&&(De.parentContainerOrientation="horizontal"),Ze==="vertical"&&(De.parentContainerOrientation="vertical"),w&&(De.parentContainerWrap=!0),t(8,Ut=Vi(De,Ut))}e.$$.dirty[0]&268435484|e.$$.dirty[1]&16&&t(13,te={orientation:Ze,valign:xt,halign:Mt,wrap:w,overflow:Y===!1||Y===0?"visible":void 0}),e.$$.dirty[0]&228&&t(12,F={gap:qt||Pe?ch(Ze,qt,Pe):void 0,"aspect-ratio":pt})},[Ke,wt,Ze,xt,Mt,qt,Pe,pt,Ut,L,ge,at,F,te,D,h,y,m,_,f,u,c,a,l,s,o,pe,Gt,w,V,N,R,v,i,n,Y,W,Ie,be,ze,Qe,et,We,je,Vt,lt,C]}class Fh extends Rr{constructor(r){super(),zr(this,r,Dh,Vh,yr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Mh="divkit-5196a",Ph="divkit-8d569",Nh="divkit-f0c05",Oh="divkit-563bc",Qs={separator:Mh,separator_orientation_horizontal:Ph,separator_orientation_vertical:Nh,separator__inner:Oh};function Dl(e,r){return e==="vertical"||e==="horizontal"?e:r}function Ia(e){let r,t;return{c(){r=Be("span"),p(r,"class",Qs.separator__inner),p(r,"style",t=Ct(e[3]))},m(n,i){ie(n,r,i)},p(n,i){i&8&&t!==(t=Ct(n[3]))&&p(r,"style",t)},d(n){n&&ne(r)}}}function zh(e){let r,t=e[4]&&Ia(e);return{c(){t&&t.c(),r=Qt()},m(n,i){t&&t.m(n,i),ie(n,r,i)},p(n,i){n[4]?t?t.p(n,i):(t=Ia(n),t.c(),t.m(r.parentNode,r)):t&&(t.d(1),t=null)},d(n){n&&ne(r),t&&t.d(n)}}}function Rh(e){let r,t;return r=new vn({props:{cls:gt("separator",Qs,e[2]),componentContext:e[0],layoutParams:e[1],$$slots:{default:[zh]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,[i]){const o={};i&4&&(o.cls=gt("separator",Qs,n[2])),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&8216&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Lh(e,r,t){let n,i,o,s,l,a,c,u,f=E,_=()=>(f(),f=M(i,R=>t(11,u=R)),i);e.$$.on_destroy.push(()=>f());let{componentContext:m}=r,{layoutParams:y=void 0}=r,h="horizontal",w="rgba(0,0,0,0.08)";function v(){t(6,h="horizontal"),t(7,w="rgba(0,0,0,0.08)")}return e.$$set=R=>{"componentContext"in R&&t(0,m=R.componentContext),"layoutParams"in R&&t(1,y=R.layoutParams)},e.$$.update=()=>{e.$$.dirty&1&&t(10,n=m.origJson),e.$$.dirty&1024&&n&&v(),e.$$.dirty&1&&_(t(5,i=m.getDerivedFromVars(m.json.delimiter_style))),e.$$.dirty&2112&&t(6,h=Dl(u==null?void 0:u.orientation,h)),e.$$.dirty&2048&&t(4,o=!(u!=null&&u.color&&(u.color==="transparent"||u.color.length===9&&u.color.indexOf("#00")===0))),e.$$.dirty&2176&&t(7,w=Ir(u==null?void 0:u.color,1,w)),e.$$.dirty&64&&t(9,s=h==="horizontal"?"100%":ve(1)),e.$$.dirty&64&&t(8,l=h==="horizontal"?ve(1):"100%"),e.$$.dirty&896&&t(3,a={background:w,width:s,height:l}),e.$$.dirty&64&&t(2,c={orientation:h})},[m,y,c,a,o,i,h,w,l,s,n,u]}class Bh extends Rr{constructor(r){super(),zr(this,r,Lh,Rh,yr,{componentContext:0,layoutParams:1})}}const Hh="divkit-8ae57",Wh="divkit-4eb06",Uh="divkit-eba6b",Gh="divkit-37495",Yh="divkit-cdd4f",Co={image:Hh,"image_is-width-content":"divkit-0a28e","image_is-height-content":"divkit-f167b",image__image:Wh,image_error:Uh,"image_is-rtl-mirror":"divkit-1b179","image__aspect-wrapper":"divkit-1afad",image_aspect:Gh,image_loaded:Yh,"divkit-image-appearance":"divkit-e49b3","image_before-appearance":"divkit-8ea57"};function Jh(e,r,t){let n=e.content_alignment_horizontal;const i=e.content_alignment_vertical;return n==="start"?n=r==="ltr"?"left":"right":n==="end"&&(n=r==="ltr"?"right":"left"),n&&n!=="left"&&n!=="center"&&n!=="right"||i&&i!=="top"&&i!=="center"&&i!=="bottom"?t:tf({content_alignment_horizontal:n,content_alignment_vertical:i})}function lf(e){return e.startsWith("data:")?qs(e):`data:image/jpg;base64,${qs(e)}`}function qh(e,r,t){let{componentContext:n}=r;Hr(Zr);function i(){}return $n(()=>{}),Es(i),sn(()=>{}),e.$$set=o=>{"componentContext"in o&&t(0,n=o.componentContext)},[n]}class hi extends Rr{constructor(r){super(),zr(this,r,qh,null,yr,{componentContext:0})}}function Kh(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Xh(e){let r,t;return r=new vn({props:{cls:gt("image",Co,e[9]),componentContext:e[0],layoutParams:e[1],customDescription:!0,$$slots:{default:[xh]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&512&&(o.cls=gt("image",Co,n[9])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&67110780|i[2]&64&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Zh(e){let r,t,n,i,o,s,l;return{c(){r=Be("img"),p(r,"class",Co.image__image),zn(r.src,t=e[2]===Ui?Eo:e[3])||p(r,"src",t),p(r,"loading",n=e[26]?"eager":"lazy"),p(r,"decoding","async"),p(r,"style",i=Ct(e[8])),p(r,"alt",e[10]),p(r,"aria-hidden",o=e[10]?null:"true")},m(a,c){ie(a,r,c),e[63](r),s||(l=[Ue(r,"load",e[28]),Ue(r,"error",e[29])],s=!0)},p(a,c){c[0]&12&&!zn(r.src,t=a[2]===Ui?Eo:a[3])&&p(r,"src",t),c[0]&67108864&&n!==(n=a[26]?"eager":"lazy")&&p(r,"loading",n),c[0]&256&&i!==(i=Ct(a[8]))&&p(r,"style",i),c[0]&1024&&p(r,"alt",a[10]),c[0]&1024&&o!==(o=a[10]?null:"true")&&p(r,"aria-hidden",o)},d(a){a&&ne(r),e[63](null),s=!1,Wr(l)}}}function Qh(e){let r,t,n,i,o,s,l=`${e[4]}%`,a,c;return{c(){r=Be("span"),t=Be("img"),p(t,"class",Co.image__image),zn(t.src,n=e[2]===Ui?Eo:e[3])||p(t,"src",n),p(t,"loading",i=e[26]?"eager":"lazy"),p(t,"decoding","async"),p(t,"style",o=Ct(e[8])),p(t,"alt",e[10]),p(t,"aria-hidden",s=e[10]?null:"true"),p(r,"class",Co["image__aspect-wrapper"]),z(r,"padding-bottom",l)},m(u,f){ie(u,r,f),jt(r,t),e[62](t),a||(c=[Ue(t,"load",e[28]),Ue(t,"error",e[29])],a=!0)},p(u,f){f[0]&12&&!zn(t.src,n=u[2]===Ui?Eo:u[3])&&p(t,"src",n),f[0]&67108864&&i!==(i=u[26]?"eager":"lazy")&&p(t,"loading",i),f[0]&256&&o!==(o=Ct(u[8]))&&p(t,"style",o),f[0]&1024&&p(t,"alt",u[10]),f[0]&1024&&s!==(s=u[10]?null:"true")&&p(t,"aria-hidden",s),f[0]&16&&l!==(l=`${u[4]}%`)&&z(r,"padding-bottom",l)},d(u){u&&ne(r),e[62](null),a=!1,Wr(c)}}}function Ta(e){let r;function t(o,s){return o[9].aspect?Qh:Zh}let n=t(e),i=n(e);return{c(){i.c(),r=Qt()},m(o,s){i.m(o,s),ie(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&&ne(r),i.d(o)}}}function xh(e){let r=e[5],t,n=Ta(e);return{c(){n.c(),t=Qt()},m(i,o){n.m(i,o),ie(i,t,o)},p(i,o){o[0]&32&&yr(r,r=i[5])?(n.d(1),n=Ta(i),n.c(),n.m(t.parentNode,t)):n.p(i,o)},d(i){i&&ne(t),n.d(i)}}}function $h(e){let r,t,n,i;const o=[Xh,Kh],s=[];function l(a,c){return a[7]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}const Eo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",eg="empty://",tg="rgba(0,0,0,0.08)",zi=0,Hs=1,Ui=2;function rg(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X=E,H=()=>(X(),X=M(v,ke=>t(47,Y=ke)),v),W,U,he=E,Ie=()=>(he(),he=M(w,ke=>t(49,U=ke)),w),Te,_e=E,be=()=>(_e(),_e=M(h,ke=>t(50,Te=ke)),h),_t,He=E,ze=()=>(He(),He=M(y,ke=>t(51,_t=ke)),y),Fe,qe=E,Qe=()=>(qe(),qe=M(m,ke=>t(52,Fe=ke)),m),Z,Ae=E,ge=()=>(Ae(),Ae=M(_,ke=>t(53,Z=ke)),_),et,G=E,Ee=()=>(G(),G=M(f,ke=>t(54,et=ke)),f),We,re=E,it=()=>(re(),re=M(u,ke=>t(55,We=ke)),u),je,Ve=E,yt=()=>(Ve(),Ve=M(c,ke=>t(56,je=ke)),c),Vt,$=E,tt=()=>($(),$=M(a,ke=>t(57,Vt=ke)),a),lt,dt=E,Ge=()=>(dt(),dt=M(l,ke=>t(58,lt=ke)),l),C,$e=E,le=()=>($e(),$e=M(s,ke=>t(59,C=ke)),s),Ke,wt=E,fe=()=>(wt(),wt=M(i,ke=>t(60,Ke=ke)),i),pe,at=E,Ze=()=>(at(),at=M(o,ke=>t(61,pe=ke)),o),xt,Mt=E,qt=()=>(Mt(),Mt=M(R,ke=>t(26,xt=ke)),R);e.$$.on_destroy.push(()=>X()),e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>He()),e.$$.on_destroy.push(()=>qe()),e.$$.on_destroy.push(()=>Ae()),e.$$.on_destroy.push(()=>G()),e.$$.on_destroy.push(()=>re()),e.$$.on_destroy.push(()=>Ve()),e.$$.on_destroy.push(()=>$()),e.$$.on_destroy.push(()=>dt()),e.$$.on_destroy.push(()=>$e()),e.$$.on_destroy.push(()=>wt()),e.$$.on_destroy.push(()=>at()),e.$$.on_destroy.push(()=>Mt());let{componentContext:Pe}=r,{layoutParams:pt=void 0}=r;const Ut=Hr(Zr),Bt=Ut.direction;on(e,Bt,ke=>t(48,W=ke));let Gt,L=zi,ae=!1,ar=tg,we=!1,Et,Re="",mt="none",Ne="50% 50%",ot="0",vt,De="source_in",ct="",Yt="",sr=0,dr=0,Ht=0,ut="",St="",Ft=!1;function $t(){t(33,mt="none"),t(34,Ne="50% 50%"),t(36,De="source_in")}function tr(ke){t(2,L=zi)}function wr(ke){t(34,Ne=Jh(ke,W,Ne))}function Mr(){L===zi&&t(2,L=Hs)}function Ur(){L===zi&&t(2,L=Ui)}sn(()=>{Ut.removeSvgFilter(vt,De)});function Je(ke){Fr[ke?"unshift":"push"](()=>{Gt=ke,t(6,Gt)})}function cr(ke){Fr[ke?"unshift":"push"](()=>{Gt=ke,t(6,Gt)})}return e.$$set=ke=>{"componentContext"in ke&&t(0,Pe=ke.componentContext),"layoutParams"in ke&&t(1,pt=ke.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&t(46,n=Pe.origJson),e.$$.dirty[1]&32768&&n&&$t(),e.$$.dirty[0]&1&&fe(t(25,i=Pe.getDerivedFromVars(Pe.json.image_url))),e.$$.dirty[0]&1&&Ze(t(24,o=Pe.getDerivedFromVars(Pe.json.gif_url))),e.$$.dirty[0]&1&&le(t(23,s=Pe.getDerivedFromVars(Pe.json.width))),e.$$.dirty[0]&1&&Ge(t(22,l=Pe.getDerivedFromVars(Pe.json.height))),e.$$.dirty[0]&1&&tt(t(21,a=Pe.getDerivedFromVars(Pe.json.preview))),e.$$.dirty[0]&1&&yt(t(20,c=Pe.getDerivedFromVars(Pe.json.placeholder_color))),e.$$.dirty[0]&1&&it(t(19,u=Pe.getDerivedFromVars(Pe.json.scale))),e.$$.dirty[0]&1&&Ee(t(18,f=Pe.getDerivedFromVars({content_alignment_horizontal:Pe.json.content_alignment_horizontal,content_alignment_vertical:Pe.json.content_alignment_vertical}))),e.$$.dirty[0]&1&&ge(t(17,_=Pe.getDerivedFromVars(Pe.json.accessibility))),e.$$.dirty[0]&1&&Qe(t(16,m=Pe.getDerivedFromVars(Pe.json.aspect))),e.$$.dirty[0]&1&&ze(t(15,y=Pe.getDerivedFromVars(Pe.json.tint_color))),e.$$.dirty[0]&1&&be(t(14,h=Pe.getDerivedFromVars(Pe.json.tint_mode))),e.$$.dirty[0]&1&&Ie(t(13,w=Pe.getDerivedFromVars(Pe.json.appearance_animation))),e.$$.dirty[0]&1&&H(t(12,v=Pe.getDerivedFromVars(Pe.json.filters))),e.$$.dirty[0]&1&&qt(t(11,R=Pe.getDerivedFromVars(Pe.json.preload_required))),e.$$.dirty[0]&1073741825|e.$$.dirty[1]&1610612736){let ke=Pe.json.type==="gif"?pe:Ke;t(30,ae=ke===eg),ae&&(ke=Eo),t(3,Et=ke)}if(e.$$.dirty[0]&8&&tr(),e.$$.dirty[0]&9&&(Et?t(7,we=!1):(t(7,we=!0),Pe.logError(x(new Error(`Missing "${Pe.json.type==="gif"?"gif_url":"image_url"}" for "${Pe.json.type}"`))))),e.$$.dirty[1]&268435456&&t(45,N=(C==null?void 0:C.type)==="wrap_content"),e.$$.dirty[1]&134217728&&t(44,V=(lt==null?void 0:lt.type)==="wrap_content"),e.$$.dirty[0]&1073741828|e.$$.dirty[1]&67108864){const ke=Vt;(L===zi||L===Ui||ae)&&ke?t(32,Re=`url("${lf(ke)}")`):t(32,Re="")}if(e.$$.dirty[0]&1073741828|e.$$.dirty[1]&33554433&&(L===zi||L===Ui||ae?t(31,ar=Ir(je,1,ar)):t(31,ar="")),e.$$.dirty[1]&16777220&&t(33,mt=ef(We)||mt),e.$$.dirty[1]&8388608&&wr(et),e.$$.dirty[1]&4194304&&t(10,D=(Z==null?void 0:Z.description)||""),e.$$.dirty[1]&2097152){const ke=Fe==null?void 0:Fe.ratio;ke&&In(ke)?t(4,ot=(100/Number(ke)).toFixed(2)):t(4,ot="0")}if(e.$$.dirty[1]&1572912){const ke=_t,q=ke?Ir(ke):void 0,vr=of(Te,De);(q!==vt||vr!==De)&&(Ut.removeSvgFilter(vt,De),t(5,ct=q?Ut.addSvgFilter(q,vr):""),t(35,vt=q),t(36,De=vr))}if(e.$$.dirty[1]&262144&&U&&U.type==="fade"){const ke=U;t(37,Yt=rf(ke.interpolator,"ease_in_out").replace(/_/g,"-")),t(40,Ht=Yr(ke.duration,300)),t(39,dr=Yr(ke.start_delay,0)),t(38,sr=Yr(ke.alpha,0))}if(e.$$.dirty[0]&1|e.$$.dirty[1]&196608){let ke="",q="";Array.isArray(Y)&&Y.length&&(ke=nf(Y,Pe.logError)),ke&&(q="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),t(41,ut=ke),t(42,St=q),t(43,Ft=W==="rtl"&&Array.isArray(Y)&&Y.some(vr=>vr.type==="rtl_mirror"))}e.$$.dirty[0]&20|e.$$.dirty[1]&28736&&t(9,te={aspect:ot!=="0","is-width-content":N,"is-height-content":V,loaded:L===Hs,"before-appearance":!!Yt&&L===zi,"is-rtl-mirror":Ft}),e.$$.dirty[0]&36|e.$$.dirty[1]&4047&&t(8,F={"background-image":Re,"background-color":Re?void 0:ar,"background-size":mt,"clip-path":St||void 0,"object-fit":mt,"object-position":Ne,filter:[L===Hs&&ct?`url(#${ct})`:"",ut].filter(Boolean).join(" "),"--divkit-appearance-interpolator":Yt||void 0,"--divkit-appearance-fade-start":Yt?sr:void 0,"--divkit-appearance-delay":Yt?`${dr}ms`:void 0,"--divkit-appearance-duration":Yt?`${Ht}ms`:void 0})},[Pe,pt,L,Et,ot,ct,Gt,we,F,te,D,R,v,w,h,y,m,_,f,u,c,a,l,s,o,i,xt,Bt,Mr,Ur,ae,ar,Re,mt,Ne,vt,De,Yt,sr,dr,Ht,ut,St,Ft,V,N,n,Y,W,U,Te,_t,Fe,Z,et,We,je,Vt,lt,C,Ke,pe,Je,cr]}class Da extends Rr{constructor(r){super(),zr(this,r,rg,$h,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const ng="divkit-ec408",ig="divkit-fde92",og="divkit-800a9",sg="divkit-74c34",lg="divkit-82c25",ag="divkit-6ea46",cg="divkit-96d7e",Fa={grid:ng,grid_halign_start:ig,grid_halign_center:og,grid_halign_end:sg,grid_valign_start:lg,grid_valign_center:ag,grid_valign_end:cg};function Ma(e){return e>0&&e<1}function Pa(e){return String(Math.ceil(e*1e3)/1e3)}function Na(e,r,t){if(e.some(Ma)){const l=Math.max(...e.filter(Ma).map(a=>1/a));e=e.map(a=>a*l)}const n=e.every(Boolean);let i=0,o=0;const s=[];if(n){o=e.reduce((l,a)=>l+a,0);for(let l=0;l<t;++l){if(!r[l])continue;const a=r[l]/e[l]*o;a>i&&(i=a)}}for(let l=0;l<t;++l)i?s[l]=`minmax(${ve(i*e[l]/o)},${Pa(e[l])}fr)`:e[l]?s[l]=`${Pa(e[l])}fr`:s[l]="auto";return s.join(" ")}function Oa(e,r,t){const n=e.slice();return n[29]=r[t],n}function za(e){let r,t;return r=new ei({props:{componentContext:e[29].componentContext,layoutParams:e[29].layoutParams}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&16&&(o.componentContext=n[29].componentContext),i[0]&16&&(o.layoutParams=n[29].layoutParams),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function ug(e){let r,t,n=nr(e[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=za(Oa(e,n,s));const o=s=>ee(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Qt()},m(s,l){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,l);ie(s,r,l),t=!0},p(s,l){if(l[0]&16){n=nr(s[4]);let a;for(a=0;a<n.length;a+=1){const c=Oa(s,n,a);i[a]?(i[a].p(c,l),B(i[a],1)):(i[a]=za(c),i[a].c(),B(i[a],1),i[a].m(r.parentNode,r))}for(ir(),a=n.length;a<i.length;a+=1)o(a);or()}},i(s){if(!t){for(let l=0;l<n.length;l+=1)B(i[l]);t=!0}},o(s){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)ee(i[l]);t=!1},d(s){s&&ne(r),an(i,s)}}}function fg(e){let r,t;return r=new vn({props:{cls:gt("grid",Fa,e[6]),componentContext:e[0],style:e[5],layoutParams:e[1],parentOf:e[2],replaceItems:e[11],$$slots:{default:[ug]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&64&&(o.cls=gt("grid",Fa,n[6])),i[0]&1&&(o.componentContext=n[0]),i[0]&32&&(o.style=n[5]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4&&(o.parentOf=n[2]),i[0]&16|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function dg(e,r,t){let n,i,o,s,l,a,c,u,f,_=E,m=()=>(_(),_=M(l,Z=>t(23,f=Z)),l),y,h=E,w=()=>(h(),h=M(s,Z=>t(24,y=Z)),s),v,R=E,N=()=>(R(),R=M(U,Z=>t(25,v=Z)),U),V,D=E,te=()=>(D(),D=M(o,Z=>t(26,V=Z)),o);e.$$.on_destroy.push(()=>_()),e.$$.on_destroy.push(()=>h()),e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>D());let{componentContext:F}=r,{layoutParams:Y=void 0}=r;const H=Hr(Zr).direction;on(e,H,Z=>t(22,u=Z));let W=1,U,he,Ie=[],Te=[],_e=[],be=[],_t=0,He="start",ze="start",Fe=[];function qe(){t(12,W=1),t(18,He="start"),t(19,ze="start")}function Qe(Z){t(0,F={...F,json:{...F.json,items:Z.filter(ki)}})}return sn(()=>{Fe.forEach(Z=>{Z.destroy()})}),e.$$set=Z=>{"componentContext"in Z&&t(0,F=Z.componentContext),"layoutParams"in Z&&t(1,Y=Z.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&t(21,n=F.origJson),e.$$.dirty[0]&2097152&&n&&qe(),e.$$.dirty[0]&1&&t(20,i=Array.isArray(F.json.items)&&F.json.items||[]),e.$$.dirty[0]&1&&te(t(9,o=F.getDerivedFromVars(F.json.column_count))),e.$$.dirty[0]&1&&w(t(8,s=F.getDerivedFromVars(F.json.content_alignment_vertical))),e.$$.dirty[0]&1&&m(t(7,l=F.getDerivedFromVars(F.json.content_alignment_horizontal))),e.$$.dirty[0]&67112960&&t(12,W=Un(V,W)),e.$$.dirty[0]&1048581&&(Fe.forEach(Z=>{Z.destroy()}),t(2,Fe=i.map((Z,Ae)=>F.produceChildContext(Z,{path:Ae})))),e.$$.dirty[0]&5){let Z=[];Fe.forEach(Ae=>{Z.push(F.getDerivedFromVars({rowSpan:Ae.json.row_span,columnSpan:Ae.json.column_span,width:Ae.json.width,height:Ae.json.height}))}),N(t(3,U=Gi(Z,Ae=>[...Ae])))}if(e.$$.dirty[0]&33681412){const Z={};let Ae=0,ge=0;t(13,Ie=[]),t(14,Te=[]),t(15,_e=[]),t(16,be=[]),t(4,he=Fe.map((et,G)=>{var $,tt,lt,dt;const Ee=v[G],We=Math.min(W,Number(Ee.columnSpan)||1),re=Number(Ee.rowSpan)||1,it=(($=Ee.width)==null?void 0:$.type)==="match_parent"?Number(Ee.width.weight||1)/We:0,je=((tt=Ee.height)==null?void 0:tt.type)==="match_parent"?Number(Ee.height.weight||1)/re:0,Ve=We===1&&((lt=Ee.width)==null?void 0:lt.type)==="fixed"&&Ee.width.value?Number(Ee.width.value)/We:0,yt=re===1&&((dt=Ee.height)==null?void 0:dt.type)==="fixed"&&Ee.height.value?Number(Ee.height.value)/re:0;for(;;){let Ge=!0;e:for(let C=Ae;C<Ae+We;++C)for(let $e=ge;$e<ge+re;++$e)if(Z[C+"_"+$e]){Ge=!1;break e}if(Ge)break;++Ae,Ae>W-We&&(Ae=0,++ge)}const Vt={x:Ae,y:ge,colSpan:We,rowSpan:re};for(let Ge=Ae;Ge<Ae+We;++Ge)for(let C=ge;C<ge+re;++C)Z[Ge+"_"+C]=!0,(!Ie[Ge]||Ie[Ge]<it)&&t(13,Ie[Ge]=it,Ie),(!Te[C]||Te[C]<je)&&t(14,Te[C]=je,Te),(!_e[Ge]||_e[Ge]<Ve)&&t(15,_e[Ge]=Ve,_e),(!be[C]||be[C]<yt)&&t(16,be[C]=yt,be);return{componentContext:et,layoutParams:{gridArea:Vt}}})),t(17,_t=ge+1)}e.$$.dirty[0]&17039360&&t(18,He=Il(y,He)),e.$$.dirty[0]&13107200&&t(19,ze=Vl(f,u,ze)),e.$$.dirty[0]&786432&&t(6,a={valign:He,halign:ze}),e.$$.dirty[0]&258048&&t(5,c={"grid-template-columns":Na(Ie,_e,W),"grid-template-rows":Na(Te,be,_t)})},[F,Y,Fe,U,he,c,a,l,s,o,H,Qe,W,Ie,Te,_e,be,_t,He,ze,i,n,u,f,y,v,V]}class _g extends Rr{constructor(r){super(),zr(this,r,dg,fg,yr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const hg="divkit-0bfe5",gg="divkit-2b11a",pg="divkit-dbcd8",mg="divkit-6df4b",bg="divkit-47152",yg="divkit-23231",wg="divkit-b29e2",Zn={gallery:hg,gallery__scroller:gg,gallery_scrollbar_none:pg,gallery_orientation_horizontal:mg,gallery_orientation_vertical:bg,"gallery_scroll-snap":"divkit-e6acd","gallery__items-grid":"divkit-2d0b9",gallery__items:yg,gallery__arrow:wg,"gallery__arrow-icon-path":"divkit-9bb64"},vg="divkit-ff821",kg="divkit-baff3",Ag="divkit-70d07",jg="divkit-da11c",Gn={arrow:vg,arrow__icon:kg,arrow_left:Ag,arrow_right:jg};function Cg(e,r){return e==="start"||e==="center"||e==="end"?e:r}function Eg(e){const r=[];let t=e[0],n=1;for(let i=1;i<=e.length;i++)e[i]!==t?(r.push(n>1?`repeat(${n}, ${t})`:t),t=e[i],n=1):n++;return r.join(" ")}function Ii(e,r){let t=e%r;return t<0&&(t+=r),t}const{Boolean:af}=_i;function Ra(e,r,t){const n=e.slice();return n[80]=r[t],n[81]=r,n[82]=t,n}function La(e,r,t){const n=e.slice();return n[83]=r[t],n}function Ba(e){let r;return{c(){r=Be("div"),p(r,"class",Zn.gallery__gap),z(r,"width",e[4]==="horizontal"?e[12]:void 0),z(r,"height",e[4]!=="horizontal"?e[12]:void 0)},m(t,n){ie(t,r,n)},p(t,n){n[0]&4112&&z(r,"width",t[4]==="horizontal"?t[12]:void 0),n[0]&4112&&z(r,"height",t[4]!=="horizontal"?t[12]:void 0)},d(t){t&&ne(r)}}}function Ha(e){let r,t,n,i=e[83].hasGapBefore&&Ba(e);return t=new ei({props:{componentContext:e[83].componentContext,layoutParams:e[6]}}),{c(){i&&i.c(),r=pr(),Wt(t.$$.fragment)},m(o,s){i&&i.m(o,s),ie(o,r,s),Rt(t,o,s),n=!0},p(o,s){o[83].hasGapBefore?i?i.p(o,s):(i=Ba(o),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const l={};s[0]&262144&&(l.componentContext=o[83].componentContext),s[0]&64&&(l.layoutParams=o[6]),t.$set(l)},i(o){n||(B(t.$$.fragment,o),n=!0)},o(o){ee(t.$$.fragment,o),n=!1},d(o){o&&ne(r),i&&i.d(o),Lt(t,o)}}}function Wa(e){let r,t,n,i,o,s,l=e[82],a,c=nr(e[80]),u=[];for(let y=0;y<c.length;y+=1)u[y]=Ha(La(e,c,y));const f=y=>ee(u[y],1,1,()=>{u[y]=null}),_=()=>e[67](r,l),m=()=>e[67](null,l);return{c(){r=Be("div");for(let y=0;y<u.length;y+=1)u[y].c();t=pr(),n=Be("div"),o=pr(),p(n,"style",i=Ct(e[13])),p(r,"class",Zn.gallery__items),p(r,"style",s=Ct(e[16]))},m(y,h){ie(y,r,h);for(let w=0;w<u.length;w+=1)u[w]&&u[w].m(r,null);jt(r,t),jt(r,n),jt(r,o),_(),a=!0},p(y,h){if(e=y,h[0]&266320){c=nr(e[80]);let w;for(w=0;w<c.length;w+=1){const v=La(e,c,w);u[w]?(u[w].p(v,h),B(u[w],1)):(u[w]=Ha(v),u[w].c(),B(u[w],1),u[w].m(r,t))}for(ir(),w=c.length;w<u.length;w+=1)f(w);or()}(!a||h[0]&8192&&i!==(i=Ct(e[13])))&&p(n,"style",i),(!a||h[0]&65536&&s!==(s=Ct(e[16])))&&p(r,"style",s),l!==e[82]&&(m(),l=e[82],_())},i(y){if(!a){for(let h=0;h<c.length;h+=1)B(u[h]);a=!0}},o(y){u=u.filter(af);for(let h=0;h<u.length;h+=1)ee(u[h]);a=!1},d(y){y&&ne(r),an(u,y),m()}}}function Ua(e){let r,t,n=e[10]&&e[8]&&Ga(e),i=e[11]&&e[8]&&Ya(e);return{c(){n&&n.c(),r=pr(),i&&i.c(),t=Qt()},m(o,s){n&&n.m(o,s),ie(o,r,s),i&&i.m(o,s),ie(o,t,s)},p(o,s){o[10]&&o[8]?n?n.p(o,s):(n=Ga(o),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null),o[11]&&o[8]?i?i.p(o,s):(i=Ya(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(o){o&&(ne(r),ne(t)),n&&n.d(o),i&&i.d(o)}}}function Ga(e){let r,t,n,i=!e[32]&&Sg();return{c(){r=Be("div"),i&&i.c(),p(r,"class",e[32]||`${Zn.gallery__arrow} ${Gn.arrow} ${Gn.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=Ue(r,"click",e[70]),t=!0)},p:E,d(o){o&&ne(r),i&&i.d(),t=!1,n()}}}function Sg(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",Zn["gallery__arrow-icon-path"]),p(t,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),p(r,"class",Gn.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),jt(r,t)},d(n){n&&ne(r)}}}function Ya(e){let r,t,n,i=!e[33]&&Vg();return{c(){r=Be("div"),i&&i.c(),p(r,"class",e[33]||`${Zn.gallery__arrow} ${Gn.arrow} ${Gn.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=Ue(r,"click",e[71]),t=!0)},p:E,d(o){o&&ne(r),i&&i.d(),t=!1,n()}}}function Vg(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",Zn["gallery__arrow-icon-path"]),p(t,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),p(r,"class",Gn.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),jt(r,t)},d(n){n&&ne(r)}}}function Ig(e){let r,t,n,i,o,s,l,a,c,u,f=nr(e[18]),_=[];for(let h=0;h<f.length;h+=1)_[h]=Wa(Ra(e,f,h));const m=h=>ee(_[h],1,1,()=>{_[h]=null});let y=e[4]==="horizontal"&&Ua(e);return{c(){r=Be("div"),t=Be("div");for(let h=0;h<_.length;h+=1)_[h].c();s=pr(),y&&y.c(),l=Qt(),p(t,"class",Zn["gallery__items-grid"]),p(t,"style",n=Ct(e[17])),p(r,"class",i=Zn.gallery__scroller+" "+(e[30]?er["root_restrict-scroll"]:"")),p(r,"style",o=Ct(e[5]))},m(h,w){ie(h,r,w),jt(r,t);for(let v=0;v<_.length;v+=1)_[v]&&_[v].m(t,null);e[68](t),e[69](r),ie(h,s,w),y&&y.m(h,w),ie(h,l,w),a=!0,c||(u=Ue(r,"scroll",function(){jr(e[8]?e[36]:null)&&(e[8]?e[36]:null).apply(this,arguments)}),c=!0)},p(h,w){if(e=h,w[0]&340560){f=nr(e[18]);let v;for(v=0;v<f.length;v+=1){const R=Ra(e,f,v);_[v]?(_[v].p(R,w),B(_[v],1)):(_[v]=Wa(R),_[v].c(),B(_[v],1),_[v].m(t,null))}for(ir(),v=f.length;v<_.length;v+=1)m(v);or()}(!a||w[0]&131072&&n!==(n=Ct(e[17])))&&p(t,"style",n),(!a||w[0]&1073741824&&i!==(i=Zn.gallery__scroller+" "+(e[30]?er["root_restrict-scroll"]:"")))&&p(r,"class",i),(!a||w[0]&32&&o!==(o=Ct(e[5])))&&p(r,"style",o),e[4]==="horizontal"?y?y.p(e,w):(y=Ua(e),y.c(),y.m(l.parentNode,l)):y&&(y.d(1),y=null)},i(h){if(!a){for(let w=0;w<f.length;w+=1)B(_[w]);a=!0}},o(h){_=_.filter(af);for(let w=0;w<_.length;w+=1)ee(_[w]);a=!1},d(h){h&&(ne(r),ne(s),ne(l)),an(_,h),e[68](null),e[69](null),y&&y.d(h),c=!1,u()}}}function Tg(e){let r,t,n,i;return r=new vn({props:{cls:gt("gallery",Zn,e[15]),componentContext:e[0],layoutParams:e[1],customPaddings:!0,customActions:"gallery",parentOf:e[7],replaceItems:e[34],$$slots:{default:[Ig]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(o,s){Rt(r,o,s),t=!0,n||(i=Ue(window,"resize",function(){jr(e[8]?e[37]:null)&&(e[8]?e[37]:null).apply(this,arguments)}),n=!0)},p(o,s){e=o;const l={};s[0]&32768&&(l.cls=gt("gallery",Zn,e[15])),s[0]&1&&(l.componentContext=e[0]),s[0]&2&&(l.layoutParams=e[1]),s[0]&128&&(l.parentOf=e[7]),s[0]&1074216828|s[2]&16777216&&(l.$$scope={dirty:s,ctx:e}),r.$set(l)},i(o){t||(B(r.$$.fragment,o),t=!0)},o(o){ee(r.$$.fragment,o),t=!1},d(o){Lt(r,o),n=!1,i()}}}function Dg(e,r,t){let n=0,i=[],o=[];for(let s=0;s<e.length;++s)i[n]||(i[n]=[]),i[n].push({index:s,hasGapBefore:o[n]&&r[s].visibility!=="gone",componentContext:e[s]}),!o[n]&&r[s].visibility!=="gone"&&(o[n]=!0),++n>=t&&(n=0);return i}function Fg(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y=E,X=()=>(Y(),Y=M(h,Se=>t(55,F=Se)),h),H,W=E,U=()=>(W(),W=M(y,Se=>t(56,H=Se)),y),he,Ie=E,Te=()=>(Ie(),Ie=M(_,Se=>t(57,he=Se)),_),_e,be=E,_t=()=>(be(),be=M(vt,Se=>t(58,_e=Se)),vt),He,ze=E,Fe=()=>(ze(),ze=M(f,Se=>t(59,He=Se)),f),qe,Qe=E,Z=()=>(Qe(),Qe=M(u,Se=>t(60,qe=Se)),u),Ae,ge=E,et=()=>(ge(),ge=M(c,Se=>t(61,Ae=Se)),c),G,Ee=E,We=()=>(Ee(),Ee=M(a,Se=>t(62,G=Se)),a),re,it=E,je=()=>(it(),it=M(l,Se=>t(63,re=Se)),l),Ve,yt=E,Vt=()=>(yt(),yt=M(s,Se=>t(64,Ve=Se)),s),$,tt,lt=E,dt=()=>(lt(),lt=M(o,Se=>t(66,tt=Se)),o),Ge,C=E,$e=()=>(C(),C=M(m,Se=>t(30,Ge=Se)),m);e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt()),e.$$.on_destroy.push(()=>lt()),e.$$.on_destroy.push(()=>C());let{componentContext:le}=r,{layoutParams:Ke=void 0}=r;const wt=Hr(Zr),fe=wt.direction;on(e,fe,Se=>t(54,te=Se));let pe,at=[],Ze=!1,xt=!1,Mt=null,qt,Pe=!1;const pt=wt.getCustomization("galleryLeftClass"),Ut=wt.getCustomization("galleryRightClass");let Bt,Gt=1,L="horizontal",ae="start",ar,we=8,Et,Re,mt="",Ne,ot=[],vt,De={},ct=!1,Yt={},sr=0;function dr(){t(42,Gt=1),t(4,L="horizontal"),t(43,ae="start"),t(44,we=8),t(47,mt="")}function Ht(Se){t(0,le={...le,json:{...le.json,items:Se.filter(ki)}})}const ut=wt.isDesktop;on(e,ut,Se=>t(65,$=Se));let St=[];function Ft(){if(!pe)return;let Se=pe.scrollLeft;te==="rtl"&&(Se*=-1);const Nt=pe.scrollWidth,ur=pe.offsetWidth;te==="ltr"?(t(10,Ze=Se>2),t(11,xt=Se+ur<Nt-2)):(t(11,xt=Se>2),t(10,Ze=Se+ur<Nt-2))}const $t=Ds(Ft,50);function tr(Se){pe.scroll({left:pe.scrollLeft+pe.offsetWidth*.75*(Se==="right"?1:-1),behavior:"smooth"})}function wr(){let Se=[],Nt=at[0].children.length;for(let ur=0;ur<Nt;ur+=2)for(let Xe=0;Xe<Gt;++Xe){const It=at[Xe].children[ur];It&&Se.push(It)}return Se}function Mr(Se,Nt="smooth"){const Xe=L==="horizontal"?"left":"top";pe.scroll({[Xe]:Se,behavior:Nt})}function Ur(Se,Nt,ur="smooth"){const Xe=L==="horizontal",It=Xe?"offsetLeft":"offsetTop",Oe=Se[Nt];if(Oe){let ht;if(te==="ltr"||!Xe)ht=Oe[It]+.01-we/2;else{const st=pe.offsetWidth;ht=Oe[It]+Oe.offsetWidth+.01-we/2-st}Mr(ht,ur)}}function Je(Se,Nt){return L==="horizontal"?Nt.right>Se.left&&Se.right>Nt.left:Nt.bottom>Se.top&&Se.bottom>Nt.top}function cr(Se,Nt){return L==="horizontal"?Nt.left>=Se.left&&Nt.right<=Se.right:Nt.top>=Se.top&&Nt.bottom<=Se.bottom}function ke(Se){const Nt=wr(),ur=pe.getBoundingClientRect(),Xe=Nt.findIndex(ht=>cr(ur,ht.getBoundingClientRect()));if(Xe!==-1)return Xe;const It=Nt.map(ht=>Je(ur,ht.getBoundingClientRect())),Oe=It.findIndex(Boolean);return Oe!==-1?Se==="prev"&&It.filter(Boolean).length===2?Oe+1:Oe:Se==="prev"?1:Nt.length-2}$n(()=>{if(t(40,Pe=!0),Ft(),sr){const Se=wr();Ur(Se,sr,"auto")}}),sn(()=>{t(40,Pe=!1),St.forEach(Se=>{Se.destroy()}),Bt&&!le.fakeElement&&(wt.unregisterInstance(Bt),t(41,Bt=void 0))});function q(Se,Nt){Fr[Se?"unshift":"push"](()=>{at[Nt]=Se,t(9,at)})}function vr(Se){Fr[Se?"unshift":"push"](()=>{qt=Se,t(3,qt)})}function kr(Se){Fr[Se?"unshift":"push"](()=>{pe=Se,t(2,pe)})}const Pt=()=>tr("left"),Xr=()=>tr("right");return e.$$set=Se=>{"componentContext"in Se&&t(0,le=Se.componentContext),"layoutParams"in Se&&t(1,Ke=Se.layoutParams)},e.$$.update=()=>{var Se,Nt,ur,Xe,It,Oe;if(e.$$.dirty[0]&1&&t(53,n=le.origJson),e.$$.dirty[1]&4194304&&n&&dr(),e.$$.dirty[0]&1&&t(52,i=Array.isArray(le.json.items)&&le.json.items||[]),e.$$.dirty[0]&1&&dt(t(29,o=typeof((Se=le.json.item_builder)==null?void 0:Se.data)=="string"?le.getDerivedFromVars((Nt=le.json.item_builder)==null?void 0:Nt.data,void 0,!0):(ur=le.json.item_builder)!=null&&ur.data?Hi(le.json.item_builder.data):void 0)),e.$$.dirty[0]&1&&Vt(t(28,s=le.getDerivedFromVars(le.json.column_count))),e.$$.dirty[0]&1&&je(t(27,l=le.getDerivedFromVars(le.json.orientation))),e.$$.dirty[0]&1&&We(t(26,a=le.getDerivedFromVars(le.json.cross_content_alignment))),e.$$.dirty[0]&1&&et(t(25,c=le.getDerivedFromVars(le.json.item_spacing))),e.$$.dirty[0]&1&&Z(t(24,u=le.getDerivedFromVars(le.json.cross_spacing))),e.$$.dirty[0]&1&&Fe(t(23,f=le.getDerivedFromVars(le.json.paddings))),e.$$.dirty[0]&1&&Te(t(22,_=le.getDerivedFromVars(le.json.scroll_mode))),e.$$.dirty[0]&1&&$e(t(21,m=le.getDerivedFromVars(le.json.restrict_parent_scroll))),e.$$.dirty[0]&1&&U(t(20,y=le.getDerivedFromVars(le.json.scrollbar))),e.$$.dirty[0]&1&&X(t(19,h=le.getDerivedFromVars(le.json.default_item))),e.$$.dirty[0]&129|e.$$.dirty[1]&2097152|e.$$.dirty[2]&16){let ht=[];if(le.json.item_builder&&Array.isArray(tt)&&Array.isArray(le.json.item_builder.prototypes)){const st=le.json.item_builder;ht=Tl(tt,wt,le,st)}else ht=(Array.isArray(i)&&i||[]).map(st=>({div:st}));St.forEach(st=>{st.destroy()}),t(7,St=ht.map((st,At)=>le.produceChildContext(st.div,{path:At,variables:st.vars,id:st.id})))}if(e.$$.dirty[1]&512|e.$$.dirty[2]&8&&t(8,w=$&&Pe),e.$$.dirty[0]&264|e.$$.dirty[1]&256&&(w?typeof ResizeObserver<"u"&&(t(39,Mt=new ResizeObserver(()=>{$t()})),Mt.observe(qt)):Mt&&(Mt.disconnect(),t(39,Mt=null))),e.$$.dirty[1]&2048|e.$$.dirty[2]&4&&t(42,Gt=Un(Ve,Gt)),e.$$.dirty[0]&16|e.$$.dirty[2]&2&&t(4,L=Dl(re,L)),e.$$.dirty[1]&4096|e.$$.dirty[2]&1&&t(43,ae=Cg(G,ae)),e.$$.dirty[1]&1073750016&&(t(44,we=Yr(Ae,we)),t(12,ar=ve(we))),e.$$.dirty[1]&536911872&&(t(46,Re=Yr(qe,we)),t(45,Et=ve(Re))),e.$$.dirty[0]&16|e.$$.dirty[1]&276889600){t(47,mt=Ao(He,te,mt));const ht=L==="horizontal"?(It=(Xe=He==null?void 0:He.end)!=null?Xe:He==null?void 0:He[te==="ltr"?"right":"left"])!=null?It:0:(Oe=He==null?void 0:He.bottom)!=null?Oe:0,st=ve(ht);t(13,Ne={width:L==="horizontal"?st:"1px",height:L==="horizontal"?"1px":st,"margin-right":L==="horizontal"&&te==="ltr"?"-"+st:void 0,"margin-left":L==="horizontal"&&te==="rtl"?"-"+st:void 0,"margin-bottom":L==="vertical"?"-"+st:void 0})}if(e.$$.dirty[0]&16&&t(51,v=L==="horizontal"?"grid-template-columns":"grid-template-rows"),e.$$.dirty[0]&145){let ht=[];St.forEach(st=>{const At=L==="horizontal"?"width":"height";ht.push(le.getDerivedFromVars({size:st.json[At],visibility:st.json.visibility}))}),_t(t(14,vt=Gi(ht,st=>[...st])))}if(e.$$.dirty[0]&128|e.$$.dirty[1]&134219776&&t(18,R=Dg(St,_e,Gt)),e.$$.dirty[0]&16|e.$$.dirty[1]&134350848&&(t(48,ot=[]),Gt>1||_e.forEach((ht,st)=>{var At;ht.visibility!=="gone"&&(!ht.size&&L==="horizontal"||((At=ht.size)==null?void 0:At.type)==="match_parent"?ot.push("100%"):ot.push("max-content"),st+1<_e.length&&ot.push("auto"))}),ot.push("auto")),e.$$.dirty[0]&112|e.$$.dirty[1]&67123200){const ht={};let st={};if(t(49,ct=!1),L==="horizontal"?st.parentVAlign=ae:st.parentHAlign=ae,he==="paging"){t(49,ct=!0),st.scrollSnap="start";const At=L==="horizontal"?"scroll-padding-left":"scroll-padding-top";ht[At]=ve(we/2)}Gt===1&&(st.parentLayoutOrientation=L),t(5,De=Vi(ht,De)),t(6,Yt=Vi(st,Yt))}e.$$.dirty[1]&81920&&t(17,N={padding:mt,"grid-gap":Et}),e.$$.dirty[1]&1179648&&t(16,V={[v]:Eg(ot)}),e.$$.dirty[0]&16|e.$$.dirty[1]&33816576&&t(15,D={orientation:L,"scroll-snap":ct,scrollbar:H==="auto"?"auto":"none"}),e.$$.dirty[1]&17301504&&t(50,sr=Yr(F,sr)),e.$$.dirty[0]&1&&le.json&&$t(),e.$$.dirty[0]&21|e.$$.dirty[1]&8389632&&le.json&&(Bt&&(wt.unregisterInstance(Bt),t(41,Bt=void 0)),le.id&&!le.fakeElement&&(t(41,Bt=le.id),wt.registerInstance(Bt,{setCurrentItem(ht){const st=wr();if(ht<0||ht>st.length-1)throw new Error('Item is out of range in "set-current-item" action');Ur(st,ht)},setPreviousItem(ht,st){const At=ke("prev"),Jt=wr();let I=At-ht;I<0&&(I=st==="ring"?Ii(I,Jt.length):0),Ur(Jt,I)},setNextItem(ht,st){const At=L==="horizontal",Jt=te==="ltr"||!At?1:-1,I=At?pe.scrollLeft*Jt+pe.offsetWidth===pe.scrollWidth:pe.scrollTop+pe.offsetHeight===pe.scrollHeight,rt=wr();if(I&&st==="ring"){Ur(rt,0);return}let d=ke("next")+ht;d>rt.length-1&&(d=st==="ring"?Ii(d,rt.length):rt.length-1),Ur(rt,d)},scrollToStart(){Mr(0)},scrollToEnd(){Mr(te==="ltr"||L!=="horizontal"?1e6:-1e6)},scrollBackward(ht,st){const At=L==="horizontal",Jt=te==="ltr"||!At?1:-1,I=At?pe.scrollLeft:pe.scrollTop,rt=At?pe.scrollWidth-pe.offsetWidth:pe.scrollHeight-pe.offsetHeight;let de=I*Jt-ht;de<0&&(st==="clamp"?de=0:st==="ring"&&(de=Ii(de,rt))),Mr(de*Jt)},scrollForward(ht,st){const At=L==="horizontal",Jt=te==="ltr"||!At?1:-1,I=At?pe.scrollLeft:pe.scrollTop,rt=At?pe.scrollWidth-pe.offsetWidth:pe.scrollHeight-pe.offsetHeight;let de=I*Jt+ht;de>rt&&(st==="clamp"?de=rt:st==="ring"&&(de=Ii(de,rt))),Mr(de*Jt)},scrollToPosition(ht){Mr(te==="ltr"||L!=="horizontal"?ht:-ht)}})))},[le,Ke,pe,qt,L,De,Yt,St,w,at,Ze,xt,ar,Ne,vt,D,V,N,R,h,y,m,_,f,u,c,a,l,s,o,Ge,fe,pt,Ut,Ht,ut,Ft,$t,tr,Mt,Pe,Bt,Gt,ae,we,Et,Re,mt,ot,ct,sr,v,i,n,te,F,H,he,_e,He,qe,Ae,G,re,Ve,$,tt,q,vr,kr,Pt,Xr]}class Mg extends Rr{constructor(r){super(),zr(this,r,Fg,Tg,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Pg="divkit-bf0ea",Ng="divkit-8a75d",Og="divkit-26f55",zg="divkit-a22f9",Rg="divkit-4108d",Lg="divkit-4f7ae",Bg="divkit-daded",Hg="divkit-5c791",Wg="divkit-763f3",Ug="divkit-c3cc6",Gg="divkit-4ca7a",Yg="divkit-0c7b1",Jg="divkit-41351",qg="divkit-37bf2",Sn={outer:Pg,tabs:Ng,tabs__list:Og,tabs__item:zg,tabs__item_selected:Rg,tabs__item_actionable:Lg,tabs__panels:Bg,tabs__swiper:Hg,tabs__swiper_animated:Wg,tabs__swiper_inited:Ug,tabs__panel:Gg,tabs__panel_visible:Yg,"tabs_height-parent_yes":"divkit-ceaff",tabs__separator:Jg,tabs__delimitier:qg};function Kg(e,r){var n,i;if(!e||!e.image_url||typeof e.image_url!="string")return r;const t={url:e.image_url};return((n=e.width)==null?void 0:n.type)==="fixed"&&In(e.width.value)&&(t.width=e.width.value),((i=e.height)==null?void 0:i.type)==="fixed"&&In(e.height.value)&&(t.height=e.height.value),t}const cf=37,uf=39,ff=36,df=35;function Xg(e,r,t,n){const i=[e["top-left"],e["top-right"],e["bottom-right"],e["bottom-left"]];for(let o=0;o<i.length;++o)if(i[o]&&!Vn(i[o]))return n;return Yo(e,r,t)}function Ja(e){const r=e.touches[0],t=r.clientX||r.pageX,n=r.clientY||r.pageY;return{x:t,y:n}}function Zg(e){let r,t;return r=new ei({props:{componentContext:e[0],layoutParams:e[1]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,[i]){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Qg(e,r,t){let{componentContext:n}=r,{layoutParams:i=void 0}=r,{enabled:o}=r;const s=ai(o);return Li(El,{isEnabled:s}),e.$$set=l=>{"componentContext"in l&&t(0,n=l.componentContext),"layoutParams"in l&&t(1,i=l.layoutParams),"enabled"in l&&t(2,o=l.enabled)},e.$$.update=()=>{e.$$.dirty&4&&s.set(o)},[n,i,o]}class xg extends Rr{constructor(r){super(),zr(this,r,Qg,Zg,yr,{componentContext:0,layoutParams:1,enabled:2})}}const{Boolean:qa}=_i;function Ka(e,r,t){const n=e.slice();n[94]=r[t];const i=n[94].index;n[95]=i;const o=n[30][n[95]];return n[96]=o,n}function Xa(e,r,t){const n=e.slice();n[94]=r[t];const i=n[94].index;n[95]=i;const o=n[95]===n[16];return n[99]=o,n}function $g(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function ep(e){let r,t;return r=new vn({props:{cls:gt("tabs",Sn,e[23]),componentContext:e[0],layoutParams:e[1],customActions:"tabs",parentOf:e[44],parentOfSimpleMode:!0,replaceItems:e[49],$$slots:{default:[rp]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&8388608&&(o.cls=gt("tabs",Sn,n[23])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[1]&8192&&(o.parentOf=n[44]),i[0]&2139095033|i[1]&16391|i[3]&512&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Za(e){let r,t;return{c(){r=Be("img"),p(r,"class",Sn.tabs__delimitier),p(r,"alt",""),p(r,"loading","lazy"),p(r,"decoding","async"),zn(r.src,t=e[15].url)||p(r,"src",t),z(r,"width",e[15].width?ve(e[15].width):void 0),z(r,"height",e[15].height?ve(e[15].height):void 0)},m(n,i){ie(n,r,i)},p(n,i){i[0]&32768&&!zn(r.src,t=n[15].url)&&p(r,"src",t),i[0]&32768&&z(r,"width",n[15].width?ve(n[15].width):void 0),i[0]&32768&&z(r,"height",n[15].height?ve(n[15].height):void 0)},d(n){n&&ne(r)}}}function tp(e){let r=e[94].title+"",t;return{c(){t=xn(r)},m(n,i){ie(n,t,i)},p(n,i){i[0]&131072&&r!==(r=n[94].title+"")&&Ti(t,r)},d(n){n&&ne(t)}}}function Qa(e){let r,t,n,i=e[15]&&e[95]>0&&Za(e);function o(...s){return e[70](e[95],...s)}return t=new Ts({props:{componentContext:e[0],cls:gt("tabs__item",Sn,{selected:e[99],actionable:!!e[94].title_click_action}),actions:e[94].title_click_action&&!e[0].fakeElement?[e[94].title_click_action].filter(En):[],attrs:{id:`${e[47]}-tab-${e[95]}`,"aria-controls":`${e[47]}-panel-${e[95]}`,role:"tab",tabindex:e[99]&&!e[0].fakeElement?e[94].title_click_action?void 0:"0":"-1","aria-selected":e[99]?"true":"false"},customAction:e[0].fakeElement?null:o,$$slots:{default:[tp]},$$scope:{ctx:e}}}),{c(){i&&i.c(),r=pr(),Wt(t.$$.fragment)},m(s,l){i&&i.m(s,l),ie(s,r,l),Rt(t,s,l),n=!0},p(s,l){e=s,e[15]&&e[95]>0?i?i.p(e,l):(i=Za(e),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const a={};l[0]&1&&(a.componentContext=e[0]),l[0]&196608&&(a.cls=gt("tabs__item",Sn,{selected:e[99],actionable:!!e[94].title_click_action})),l[0]&131073&&(a.actions=e[94].title_click_action&&!e[0].fakeElement?[e[94].title_click_action].filter(En):[]),l[0]&196609&&(a.attrs={id:`${e[47]}-tab-${e[95]}`,"aria-controls":`${e[47]}-panel-${e[95]}`,role:"tab",tabindex:e[99]&&!e[0].fakeElement?e[94].title_click_action?void 0:"0":"-1","aria-selected":e[99]?"true":"false"}),l[0]&131073&&(a.customAction=e[0].fakeElement?null:o),l[0]&131072|l[3]&512&&(a.$$scope={dirty:l,ctx:e}),t.$set(a)},i(s){n||(B(t.$$.fragment,s),n=!0)},o(s){ee(t.$$.fragment,s),n=!1},d(s){s&&ne(r),i&&i.d(s),Lt(t,s)}}}function xa(e){let r,t;return{c(){r=Be("div"),p(r,"class",Sn.tabs__separator),p(r,"style",t=Ct(e[33]))},m(n,i){ie(n,r,i)},p(n,i){i[1]&4&&t!==(t=Ct(n[33]))&&p(r,"style",t)},d(n){n&&ne(r)}}}function $a(e){let r,t;return r=new xg({props:{componentContext:e[96],layoutParams:e[3],enabled:e[95]===e[16]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1073872896&&(o.componentContext=n[96]),i[0]&8&&(o.layoutParams=n[3]),i[0]&196608&&(o.enabled=n[95]===n[16]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function ec(e){let r,t,n,i,o,s,l=e[96]&&$a(e);return{c(){r=Be("div"),l&&l.c(),t=pr(),p(r,"class",n=gt("tabs__panel",Sn,{visible:e[31][e[95]]})),p(r,"role","tabpanel"),p(r,"id",i=e[47]+"-panel-"+e[95]),p(r,"aria-labelledby",o=e[47]+"-tab-"+e[95]),z(r,"left",e[95]*100+"%")},m(a,c){ie(a,r,c),l&&l.m(r,null),jt(r,t),s=!0},p(a,c){a[96]?l?(l.p(a,c),c[0]&1073872896&&B(l,1)):(l=$a(a),l.c(),B(l,1),l.m(r,t)):l&&(ir(),ee(l,1,1,()=>{l=null}),or()),(!s||c[0]&131072|c[1]&1&&n!==(n=gt("tabs__panel",Sn,{visible:a[31][a[95]]})))&&p(r,"class",n),(!s||c[0]&131072&&i!==(i=a[47]+"-panel-"+a[95]))&&p(r,"id",i),(!s||c[0]&131072&&o!==(o=a[47]+"-tab-"+a[95]))&&p(r,"aria-labelledby",o),(!s||c[0]&131072)&&z(r,"left",a[95]*100+"%")},i(a){s||(B(l),s=!0)},o(a){ee(l),s=!1},d(a){a&&ne(r),l&&l.d()}}}function rp(e){let r,t,n,i,o,s,l,a,c,u,f,_=nr(e[17]),m=[];for(let N=0;N<_.length;N+=1)m[N]=Qa(Xa(e,_,N));const y=N=>ee(m[N],1,1,()=>{m[N]=null});let h=e[19]&&xa(e),w=nr(e[17]),v=[];for(let N=0;N<w.length;N+=1)v[N]=ec(Ka(e,w,N));const R=N=>ee(v[N],1,1,()=>{v[N]=null});return{c(){r=Be("div");for(let N=0;N<m.length;N+=1)m[N].c();n=pr(),h&&h.c(),i=pr(),o=Be("div"),s=Be("div");for(let N=0;N<v.length;N+=1)v[N].c();p(r,"class",t=Sn.tabs__list+" "+(e[45]?er["root_restrict-scroll"]:"")),p(r,"role","tablist"),z(r,"--divkit-tabs-title-padding",e[14]?ci(e[14],e[18]):""),z(r,"--divkit-tabs-font-size",ve(e[4])),z(r,"--divkit-tabs-paddings",e[5]),z(r,"--divkit-tabs-line-height",e[24]),z(r,"--divkit-tabs-letter-spacing",e[25]),z(r,"--divkit-tabs-active-font-weight",e[7]||""),z(r,"--divkit-tabs-inactive-font-weight",e[8]||""),z(r,"--divkit-tabs-active-font-family",e[26]||""),z(r,"--divkit-tabs-inactive-font-family",e[27]||""),z(r,"--divkit-tabs-active-text-color",e[9]),z(r,"--divkit-tabs-inactive-text-color",e[10]),z(r,"--divkit-tabs-active-background-color",e[11]),z(r,"--divkit-tabs-inactive-background-color",e[12]),z(r,"--divkit-tabs-border-radius",e[6]),z(r,"--divkit-tabs-items-spacing",e[13]?yn(e[13]*10/e[4]):""),p(s,"class",l=gt("tabs__swiper",Sn,{inited:e[28],animated:e[29]})),p(o,"class",a=Sn.tabs__panels+" "+(e[45]?er["root_restrict-scroll"]:""))},m(N,V){ie(N,r,V);for(let D=0;D<m.length;D+=1)m[D]&&m[D].m(r,null);e[71](r),ie(N,n,V),h&&h.m(N,V),ie(N,i,V),ie(N,o,V),jt(o,s);for(let D=0;D<v.length;D+=1)v[D]&&v[D].m(s,null);e[72](s),e[73](o),c=!0,u||(f=[Ue(r,"keydown",e[51]),Ue(o,"touchstart",function(){jr(e[32]?e[52]:void 0)&&(e[32]?e[52]:void 0).apply(this,arguments)}),Ue(o,"touchmove",function(){jr(e[32]?e[53]:void 0)&&(e[32]?e[53]:void 0).apply(this,arguments)}),Ue(o,"touchend",function(){jr(e[32]?e[54]:void 0)&&(e[32]?e[54]:void 0).apply(this,arguments)}),Ue(o,"touchcancel",function(){jr(e[32]?e[54]:void 0)&&(e[32]?e[54]:void 0).apply(this,arguments)})],u=!0)},p(N,V){if(e=N,V[0]&229377|V[1]&589824){_=nr(e[17]);let D;for(D=0;D<_.length;D+=1){const te=Xa(e,_,D);m[D]?(m[D].p(te,V),B(m[D],1)):(m[D]=Qa(te),m[D].c(),B(m[D],1),m[D].m(r,null))}for(ir(),D=_.length;D<m.length;D+=1)y(D);or()}if((!c||V[1]&16384&&t!==(t=Sn.tabs__list+" "+(e[45]?er["root_restrict-scroll"]:"")))&&p(r,"class",t),V[0]&278528&&z(r,"--divkit-tabs-title-padding",e[14]?ci(e[14],e[18]):""),V[0]&16&&z(r,"--divkit-tabs-font-size",ve(e[4])),V[0]&32&&z(r,"--divkit-tabs-paddings",e[5]),V[0]&16777216&&z(r,"--divkit-tabs-line-height",e[24]),V[0]&33554432&&z(r,"--divkit-tabs-letter-spacing",e[25]),V[0]&128&&z(r,"--divkit-tabs-active-font-weight",e[7]||""),V[0]&256&&z(r,"--divkit-tabs-inactive-font-weight",e[8]||""),V[0]&67108864&&z(r,"--divkit-tabs-active-font-family",e[26]||""),V[0]&134217728&&z(r,"--divkit-tabs-inactive-font-family",e[27]||""),V[0]&512&&z(r,"--divkit-tabs-active-text-color",e[9]),V[0]&1024&&z(r,"--divkit-tabs-inactive-text-color",e[10]),V[0]&2048&&z(r,"--divkit-tabs-active-background-color",e[11]),V[0]&4096&&z(r,"--divkit-tabs-inactive-background-color",e[12]),V[0]&64&&z(r,"--divkit-tabs-border-radius",e[6]),V[0]&8208&&z(r,"--divkit-tabs-items-spacing",e[13]?yn(e[13]*10/e[4]):""),e[19]?h?h.p(e,V):(h=xa(e),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),V[0]&1073938440|V[1]&65537){w=nr(e[17]);let D;for(D=0;D<w.length;D+=1){const te=Ka(e,w,D);v[D]?(v[D].p(te,V),B(v[D],1)):(v[D]=ec(te),v[D].c(),B(v[D],1),v[D].m(s,null))}for(ir(),D=w.length;D<v.length;D+=1)R(D);or()}(!c||V[0]&805306368&&l!==(l=gt("tabs__swiper",Sn,{inited:e[28],animated:e[29]})))&&p(s,"class",l),(!c||V[1]&16384&&a!==(a=Sn.tabs__panels+" "+(e[45]?er["root_restrict-scroll"]:"")))&&p(o,"class",a)},i(N){if(!c){for(let V=0;V<_.length;V+=1)B(m[V]);for(let V=0;V<w.length;V+=1)B(v[V]);c=!0}},o(N){m=m.filter(qa);for(let V=0;V<m.length;V+=1)ee(m[V]);v=v.filter(qa);for(let V=0;V<v.length;V+=1)ee(v[V]);c=!1},d(N){N&&(ne(r),ne(n),ne(i),ne(o)),an(m,N),e[71](null),h&&h.d(N),an(v,N),e[72](null),e[73](null),u=!1,Wr(f)}}}function np(e){let r,t,n,i;const o=[ep,$g],s=[];function l(a,c){return a[2]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function ip(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te=E,F=()=>(te(),te=M(l,I=>t(62,D=I)),l),Y,X,H=E,W=()=>(H(),H=M(w,I=>t(63,X=I)),w),U,he=E,Ie=()=>(he(),he=M(h,I=>t(64,U=I)),h),Te,_e=E,be=()=>(_e(),_e=M(m,I=>t(65,Te=I)),m),_t,He,ze=E,Fe=()=>(ze(),ze=M(_,I=>t(66,He=I)),_),qe,Qe=E,Z=()=>(Qe(),Qe=M(f,I=>t(67,qe=I)),f),Ae,ge=E,et=()=>(ge(),ge=M(u,I=>t(19,Ae=I)),u),G,Ee=E,We=()=>(Ee(),Ee=M(c,I=>t(68,G=I)),c),re,it=E,je=()=>(it(),it=M(s,I=>t(69,re=I)),s),Ve,yt=E,Vt=()=>(yt(),yt=M(y,I=>t(45,Ve=I)),y);e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>H()),e.$$.on_destroy.push(()=>he()),e.$$.on_destroy.push(()=>_e()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt());let{componentContext:$}=r,{layoutParams:tt=void 0}=r;const lt=Hr(Zr),dt=lt.direction;on(e,dt,I=>t(18,_t=I));const Ge=lt.genId("tabs");let C,$e=!1,le=ai([]);on(e,le,I=>t(17,Y=I));let Ke={},wt,fe,pe,at={},Ze=12,xt="",Mt="",qt="",Pe="",pt,Ut="",Bt,Gt="",L="",ae="",ar="",we="",Et=0,Re="",mt="",Ne=null,ot=!1,vt=!1,De,ct=[],Yt=[],sr=null,dr=null,Ht=null,ut,St=!1,Ft=!1,$t,tr,wr;function Mr(){t(4,Ze=12),t(5,xt=""),t(6,Pe=""),t(7,pt=void 0),t(26,Ut=""),t(8,Bt=void 0),t(27,Gt=""),t(9,L=""),t(10,ae=""),t(11,ar=""),t(12,we=""),t(13,Et=0),t(56,Re=""),t(57,mt=""),t(14,Ne=null),t(15,wr=void 0)}function Ur(I){$.json.items&&t(0,$={...$,json:{...$.json,items:$.json.items.map((rt,de)=>({...rt,div:I[de]}))}})}function Je(I){$e||(ct.forEach(rt=>{rt==null||rt.destroy()}),t(30,ct=I.map((rt,de)=>{if(de===v&&(rt!=null&&rt.div))return $.produceChildContext(rt.div,{path:de})})),t(31,Yt=I.map((rt,de)=>de===v)))}async function cr(I,rt=!1){if(De=v,t(16,v=I),ur(),vr(),rt){await wn();const de=wt.querySelector(`.${Sn.tabs__item_selected}`);de&&de.focus()}}function ke(I,rt=!1){const de=Y==null?void 0:Y.length;if(!de)return;const d=Y.map(lr=>lr.index);let kt=d.indexOf(v)+I;kt>=de?kt=0:kt<0&&(kt=de-1);const Tr=d[kt];cr(Tr,rt)}function q(I,rt){return v!==rt?(cr(rt),!1):!0}function vr(){t(29,vt=!0),kr(-v*100),Pt(),Xr(),Se(),tr=-v*fe.clientWidth}async function kr(I){await wn(),t(22,pe.style.transform=`translate3d(${I}%,0,0)`,pe)}function Pt(I=!1){const rt=I?Math.max(0,v-1):Math.min(v,De!=null?De:v),de=I?Math.min(i.length-1,v+1):Math.max(v,De!=null?De:v);ct.forEach(d=>{d==null||d.destroy()}),t(30,ct=ct.map((d,Me)=>{var Tr;if(d)return d;const kt=(Tr=i[Me])==null?void 0:Tr.div;if(Me>=rt&&Me<=de&&kt)return $.produceChildContext(kt,{path:Me})})),t(31,Yt=Yt.map((d,Me)=>Me>=rt&&Me<=de))}async function Xr(){if((D==null?void 0:D.type)==="match_parent")return;await wn();const I=document.getElementById(`${Ge}-panel-${v}`);I&&t(21,fe.style.height=ve(I.offsetHeight),fe)}function Se(){sr&&clearTimeout(sr),sr=window.setTimeout(()=>{t(31,Yt=i.map((I,rt)=>rt===v))},400)}function Nt(I){if(!(I.ctrlKey||I.shiftKey||I.altKey||I.metaKey)&&i){if(I.which===cf)ke(-1,!0);else if(I.which===uf)ke(1,!0);else if(I.which===ff)cr(0,!0);else if(I.which===df)cr(i.length-1,!0);else return;I.preventDefault()}}function ur(){ot||(t(28,ot=!0),t(21,fe.style.height=ve(fe.clientHeight),fe),t(22,pe.style.transform=`translate3d(${-(De!=null?De:v)*100}%,0,0)`,pe))}function Xe(I){var d;const rt=I.target,de=(d=rt==null?void 0:rt.closest)==null?void 0:d.call(rt,`.${er["root_restrict-scroll"]}`);i.length<2||I.touches.length>1||de&&de!==fe||(St=!1,Ft=!1,dr=Ja(I),Ht=null,ut=Date.now(),$t=tr||-v*fe.clientWidth,t(29,vt=!1),sr&&clearTimeout(sr))}function It(I){const rt=Ja(I);if(!dr||Ht&&Ht.x===rt.x&&Ht.y===rt.y)return;Ht=rt;const de=fe.clientWidth;if(St){tr=rt.x-dr.x+$t;const d=de*i.length;if(tr>0)tr=tr*de/(tr+de*3);else if(-tr+de>d){let Me=-tr+de-d;Me=Me*de/(Me+de*3),tr=de-d-Me}kr(tr*100/de)}else Math.abs(rt.y-dr.y)>10?Ft=!0:!Ft&&Math.abs(rt.x-dr.x)>8&&(ur(),St=!0,dr=rt,kr(-v*100),Pt(!0));St&&I.cancelable&&I.preventDefault()}function Oe(){Ft=!1,dr=null;let I=v;if(!St)return;St=!1;const rt=Math.min(512,fe.clientWidth),de=Math.abs($t-tr),d=Math.min(1,(Date.now()-ut)/750);de>rt/4*d&&(I+=$t>tr?1:-1),I>=i.length?I=i.length-1:I<0&&(I=0),I===v?(t(29,vt=!0),tr=-I*rt,kr(-I*100),Se()):cr(I)}sn(()=>{ct.forEach(I=>{I==null||I.destroy()}),C&&(lt.unregisterInstance(C),t(55,C=void 0))});const ht=(I,rt)=>q(rt,I);function st(I){Fr[I?"unshift":"push"](()=>{wt=I,t(20,wt)})}function At(I){Fr[I?"unshift":"push"](()=>{pe=I,t(22,pe)})}function Jt(I){Fr[I?"unshift":"push"](()=>{fe=I,t(21,fe)})}return e.$$set=I=>{"componentContext"in I&&t(0,$=I.componentContext),"layoutParams"in I&&t(1,tt=I.layoutParams)},e.$$.update=()=>{var I,rt;if(e.$$.dirty[0]&1&&t(61,n=$.origJson),e.$$.dirty[1]&1073741824&&n&&Mr(),e.$$.dirty[0]&1&&t(58,i=Array.isArray($.json.items)&&$.json.items||[]),e.$$.dirty[1]&134217728&&t(44,o=i.map(de=>{var d;return{json:de.div,id:(d=de.div)==null?void 0:d.id}})),e.$$.dirty[0]&1&&je(t(43,s=$.getDerivedFromVars($.json.width))),e.$$.dirty[0]&1&&F(t(42,l=$.getDerivedFromVars($.json.height))),e.$$.dirty[0]&1&&t(60,a=$.getJsonWithVars($.json.selected_tab)),e.$$.dirty[0]&1&&We(t(41,c=$.getDerivedFromVars($.json.tab_title_style))),e.$$.dirty[0]&1&&et(t(40,u=$.getDerivedFromVars($.json.has_separator))),e.$$.dirty[0]&1&&Z(t(39,f=$.getDerivedFromVars($.json.separator_color))),e.$$.dirty[0]&1&&Fe(t(38,_=$.getDerivedFromVars($.json.separator_paddings))),e.$$.dirty[0]&1&&be(t(37,m=$.getDerivedFromVars($.json.switch_tabs_by_content_swipe_enabled))),e.$$.dirty[0]&1&&Vt(t(36,y=$.getDerivedFromVars($.json.restrict_parent_scroll))),e.$$.dirty[0]&1&&Ie(t(35,h=$.getDerivedFromVars($.json.title_paddings))),e.$$.dirty[0]&1&&W(t(34,w=$.getDerivedFromVars($.json.tab_title_delimiter))),e.$$.dirty[1]&536870912&&t(16,v=a&&Number(a)||0),e.$$.dirty[0]&1|e.$$.dirty[1]&134217728)if(Array.isArray(i)&&i.length){let de=[];i.forEach((d,Me)=>{const kt=$.getJsonWithVars({index:Me,title:d.title,title_click_action:d.title_click_action});kt.title&&typeof kt.title=="string"?de.push(kt):$.logError(x(new Error("Incorrect title for the tab"),{additional:{index:Me}}))}),le.set(de)}else le.set([]);if(e.$$.dirty[0]&131073&&(Y!=null&&Y.length?t(2,$e=!1):(t(2,$e=!0),$.logError(x(new Error('Incorrect or empty "items" prop for div "tabs"'))))),e.$$.dirty[0]&8|e.$$.dirty[2]&129){let de={parentContainerOrientation:"horizontal"};(re==null?void 0:re.type)==="wrap_content"&&(de.parentHorizontalWrapContent=!0),(!D||D.type==="wrap_content")&&(de.parentVerticalWrapContent=!0),t(3,Ke=Vi(de,Ke))}if(e.$$.dirty[0]&65541|e.$$.dirty[1]&134217728&&!$e&&(v<0||v>=i.length)&&($.logError(x(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:$.json.selected_tab,length:i.length}})),t(16,v=v<0?0:i.length-1)),e.$$.dirty[0]&196613&&!$e&&!Y.some(de=>v===de.index)&&($.logError(x(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:$.json.selected_tab}})),t(16,v=((I=Y[0])==null?void 0:I.index)||0)),e.$$.dirty[2]&64&&t(59,R=G||{}),e.$$.dirty[0]&16|e.$$.dirty[1]&268435456&&t(4,Ze=Un(R.font_size,Ze)),e.$$.dirty[0]&262192|e.$$.dirty[1]&268435456&&(R.font_size||R.paddings)){const de=R.paddings||{top:6,right:8,bottom:6,left:8},d={top:(Number(de.top)||0)/Ze*10,right:(Number(_t==="ltr"?de.end:de.start)||Number(de.right)||0)/Ze*10,bottom:(Number(de.bottom)||0)/Ze*10,left:(Number(_t==="ltr"?de.start:de.end)||Number(de.left)||0)/Ze*10};t(5,xt=Ao(d,_t,xt))}if(e.$$.dirty[0]&16|e.$$.dirty[1]&268435456){const de=R.line_height;de!==void 0&&In(de)&&t(24,Mt=ve(de/Ze*10))}if(e.$$.dirty[0]&16|e.$$.dirty[1]&268435456){const de=R.letter_spacing;de!==void 0&&Vn(de)&&t(25,qt=ve(de/Ze*10))}if(e.$$.dirty[0]&80|e.$$.dirty[1]&268435456&&(R.corner_radius||R.corners_radius||R.font_size)){const de=(rt=R.corner_radius)!=null?rt:1e3;R.corners_radius?t(6,Pe=Xg(R.corners_radius,de,Ze,Pe)):Vn(de)&&t(6,Pe=ve(de/Ze*10))}e.$$.dirty[0]&128|e.$$.dirty[1]&268435456&&(t(7,pt=ao(R.active_font_weight||R.font_weight,void 0,pt)),R.font_family&&typeof R.font_family=="string"?t(26,Ut=lt.typefaceProvider(R.font_family,{fontWeight:pt||400})):t(26,Ut="")),e.$$.dirty[0]&256|e.$$.dirty[1]&268435456&&(t(8,Bt=ao(R.inactive_font_weight||R.font_weight,void 0,Bt)),R.font_family&&typeof R.font_family=="string"?t(27,Gt=lt.typefaceProvider(R.font_family,{fontWeight:Bt||400})):t(27,Gt="")),e.$$.dirty[0]&512|e.$$.dirty[1]&268435456&&t(9,L=Ir(R.active_text_color,1,L)),e.$$.dirty[0]&1024|e.$$.dirty[1]&268435456&&t(10,ae=Ir(R.inactive_text_color,1,ae)),e.$$.dirty[0]&2048|e.$$.dirty[1]&268435456&&t(11,ar=Ir(R.active_background_color,1,ar)),e.$$.dirty[0]&4096|e.$$.dirty[1]&268435456&&t(12,we=Ir(R.inactive_background_color,1,we)),e.$$.dirty[0]&8192|e.$$.dirty[1]&268435456&&t(13,Et=Yr(R.item_spacing,Et)),e.$$.dirty[0]&786432|e.$$.dirty[1]&100663296|e.$$.dirty[2]&48&&Ae&&(qe&&t(56,Re=Ir(qe,1,Re)),He&&t(57,mt=Ao(He,_t,mt))),e.$$.dirty[1]&100663296&&t(33,N={background:Re,margin:mt}),e.$$.dirty[2]&8&&t(32,V=typeof Te>"u"?!0:!!Te),e.$$.dirty[0]&16384|e.$$.dirty[2]&4&&t(14,Ne=To(U||void 0,Ne)),e.$$.dirty[0]&32768|e.$$.dirty[2]&2&&t(15,wr=Kg(X,wr)),e.$$.dirty[1]&134217728&&Je(i),e.$$.dirty[0]&65541|e.$$.dirty[1]&150994944&&$.json&&(C&&(lt.unregisterInstance(C),t(55,C=void 0)),$.id&&!$e&&!$.fakeElement&&(t(55,C=$.id),lt.registerInstance(C,{setCurrentItem(de){if(de<0||de>i.length-1)throw new Error('Item is out of range in "set-current-item" action');cr(de)},setPreviousItem(de,d){let Me=v-de;Me<0&&(Me=d==="ring"?Ii(Me,i.length):0),cr(Me)},setNextItem(de,d){let Me=v+de;Me>i.length-1&&(Me=d==="ring"?Ii(Me,i.length):i.length-1),cr(Me)},scrollToStart(){cr(0)},scrollToEnd(){cr(i.length-1)}}))),e.$$.dirty[2]&1&&t(23,at={"height-parent":(D==null?void 0:D.type)==="match_parent"?"yes":""})},[$,tt,$e,Ke,Ze,xt,Pe,pt,Bt,L,ae,ar,we,Et,Ne,wr,v,Y,_t,Ae,wt,fe,pe,at,Mt,qt,Ut,Gt,ot,vt,ct,Yt,V,N,w,h,y,m,_,f,u,c,l,s,o,Ve,dt,Ge,le,Ur,q,Nt,Xe,It,Oe,C,Re,mt,i,R,a,n,D,X,U,Te,He,qe,G,re,ht,st,At,Jt]}class op extends Rr{constructor(r){super(),zr(this,r,ip,np,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const sp="divkit-31140",lp="divkit-bace1",ap="divkit-8524e",Yi={state:sp,state_overflow_visible:lp,state__animations:ap,"state__animation-child":"divkit-dcc79","state__animation-child-inner":"divkit-aa7dd"};function Fs(e){return e<.5?4*e*e*e:.5*Math.pow(2*e-2,3)+1}function cp(e){return e*e*e}function _f(e){const r=e-1;return r*r*r+1}function hf(e){return r=>{if(r<=0)return 0;if(r>=1)return 1;const t=r*e.length,n=Math.floor(t),i=e[n],o=e[n+1],s=t-n;return i*s+o*(1-s)}}const up=[.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1],fp=hf(up),dp=[5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1],_p=hf(dp),xs={linear:ws,ease:fp,ease_in:cp,ease_out:_f,ease_in_out:Fs,spring:_p};function Fl(e){return xs[e]}const gf=200,pf=0,hp=0,gp=0;function tc(e){return Math.max(...e.map(r=>(Number(r.duration)||gf)+(Number(r.start_delay)||pf)))}function pp(e,{transitions:r,elementBbox:t,rootBbox:n,direction:i,maxDuration:o,alpha:s}){const l=s!=null?s:1;return{duration:Is()?0:o,css:a=>{const c=a*o,u=r.map(v=>{var Y,X,H;const R=Number(v.start_delay)||pf,N=Number(v.duration)||gf,V=Math.max(0,Math.min(1,(c-R)/N)),D=i==="in"?1-V:V,F=(Fl(v.interpolator||"ease_in_out")||Fs)(D);if(v.type==="fade")return F>=1?{active:!1,opacity:0}:{active:F>0&&F<1,opacity:(1-F)*l+F*(v.alpha||hp)};if(v.type==="slide"){const W=v.edge==="top"||v.edge==="left"?-1:1,U=v.edge==="top"||v.edge==="bottom"||!v.edge?"translateY":"translateX";let he=(Y=v.distance)==null?void 0:Y.value;he===void 0&&(v.edge==="top"||v.edge==="bottom"||!v.edge?he=Math.abs(n[v.edge==="bottom"?"bottom":"top"]-t[v.edge==="bottom"?"top":"bottom"]):he=Math.abs(n[v.edge==="left"?"left":"right"]-t[v.edge==="left"?"right":"left"]));const Ie=he*F;return{active:F>0&&F<1,translate:`${U}(${Ie*W}px)`}}else if(v.type==="scale"){const W=1-F+F*(v.scale||gp),U=(X=v.pivot_x)!=null?X:.5,he=(H=v.pivot_y)!=null?H:.5,Ie=(1-W)*t.width*U,Te=(1-W)*t.height*he;return{active:F>0&&F<1,scale:`translate(${Ie}px, ${Te}px) scale(${W})`}}return{}}),f=u.map(v=>v.opacity).filter(v=>v!==void 0).reduce((v,R)=>v*R,1),_=u.map(v=>v.translate).filter(v=>v!==void 0).join(" "),m=u.map(v=>v.scale).filter(v=>v!==void 0).join(" "),y=u.filter(v=>v.active).map(v=>v.scale).filter(v=>v!==void 0),h=y.length?y[y.length-1]:m;return`transform:${[_,h].filter(Boolean).join(" ")||"none"};opacity:${f}`}}}function yi(e,r,t){return e*(1-t)+r*t}const mp=200,bp=0;function yp(e,{rootBbox:r,beforeBbox:t,afterBbox:n,transition:i}){var o,s;return{delay:(o=i.start_delay)!=null?o:bp,duration:Is()?0:(s=i.duration)!=null?s:mp,easing:i.interpolator&&i.interpolator in xs?xs[i.interpolator]:Fs,css:l=>[`top:${yi(t.top,n.top,l)-r.top}px`,`left:${yi(t.left,n.left,l)-r.left}px`,`width:${yi(t.width,n.width,l)}px`,`height:${yi(t.height,n.height,l)}px`].join(";")}}function mf(e){const r=[];return e.type==="set"?(e.items||[]).forEach(t=>{r.push(...mf(t))}):r.push(e),r}const{Map:wp}=_i;function rc(e,r,t){const n=e.slice();return n[35]=r[t],n}function vp(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function kp(e){let r,t;return r=new vn({props:{cls:gt("state",Yi,e[7]),componentContext:e[0],layoutParams:e[1],parentOf:e[8],parentOfSimpleMode:!0,replaceItems:e[10],$$slots:{default:[Cp]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&128&&(o.cls=gt("state",Yi,n[7])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&256&&(o.parentOf=n[8]),i[0]&120|i[1]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function nc(e){let r=e[5],t,n,i=ic(e);return{c(){i.c(),t=Qt()},m(o,s){i.m(o,s),ie(o,t,s),n=!0},p(o,s){s[0]&32&&yr(r,r=o[5])?(ir(),ee(i,1,1,E),or(),i=ic(o),i.c(),B(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){n||(B(i),n=!0)},o(o){ee(i),n=!1},d(o){o&&ne(t),i.d(o)}}}function ic(e){let r,t;return r=new ei({props:{componentContext:e[6]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&64&&(o.componentContext=n[6]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Ap(e){let r,t,n,i,o,s,l,a;n=new ei({props:{componentContext:e[35].componentContextCopy}});function c(){return e[20](e[35])}return{c(){r=Be("div"),t=Be("div"),Wt(n.$$.fragment),i=pr(),p(t,"class",Yi["state__animation-child-inner"]),p(r,"class",Yi["state__animation-child"])},m(u,f){ie(u,r,f),jt(r,t),Rt(n,t,null),jt(r,i),s=!0,l||(a=Ue(r,"introend",c),l=!0)},p(u,f){e=u;const _={};f[0]&16&&(_.componentContext=e[35].componentContextCopy),n.$set(_)},i(u){s||(B(n.$$.fragment,u),o||Rn(()=>{o=vl(r,yp,e[35]),o.start()}),s=!0)},o(u){ee(n.$$.fragment,u),s=!1},d(u){u&&ne(r),Lt(n),l=!1,a()}}}function jp(e){let r,t,n,i,o,s=`${e[35].offsetLeft}px`,l=`${e[35].offsetTop}px`,a=`${e[35].width}px`,c=`${e[35].height}px`,u,f,_;n=new ei({props:{componentContext:e[35].componentContextCopy}});function m(){return e[19](e[35])}return{c(){r=Be("div"),t=Be("div"),Wt(n.$$.fragment),i=pr(),p(t,"class",Yi["state__animation-child-inner"]),p(r,"class",Yi["state__animation-child"]),z(r,"left",s),z(r,"top",l),z(r,"width",a),z(r,"height",c)},m(y,h){ie(y,r,h),jt(r,t),Rt(n,t,null),jt(r,i),u=!0,f||(_=Ue(r,"introend",m),f=!0)},p(y,h){e=y;const w={};h[0]&16&&(w.componentContext=e[35].componentContextCopy),n.$set(w),h[0]&16&&s!==(s=`${e[35].offsetLeft}px`)&&z(r,"left",s),h[0]&16&&l!==(l=`${e[35].offsetTop}px`)&&z(r,"top",l),h[0]&16&&a!==(a=`${e[35].width}px`)&&z(r,"width",a),h[0]&16&&c!==(c=`${e[35].height}px`)&&z(r,"height",c)},i(y){u||(B(n.$$.fragment,y),o||Rn(()=>{o=vl(r,pp,e[35]),o.start()}),u=!0)},o(y){ee(n.$$.fragment,y),u=!1},d(y){y&&ne(r),Lt(n),f=!1,_()}}}function oc(e,r){let t,n,i,o,s;const l=[jp,Ap],a=[];function c(u,f){return"direction"in u[35]?0:1}return n=c(r),i=a[n]=l[n](r),{key:e,first:null,c(){t=Qt(),i.c(),o=Qt(),this.first=t},m(u,f){ie(u,t,f),a[n].m(u,f),ie(u,o,f),s=!0},p(u,f){r=u;let _=n;n=c(r),n===_?a[n].p(r,f):(ir(),ee(a[_],1,1,()=>{a[_]=null}),or(),i=a[n],i?i.p(r,f):(i=a[n]=l[n](r),i.c()),B(i,1),i.m(o.parentNode,o))},i(u){s||(B(i),s=!0)},o(u){ee(i),s=!1},d(u){u&&(ne(t),ne(o)),a[n].d(u)}}}function Cp(e){let r,t,n=[],i=new wp,o,s=e[6]&&nc(e),l=nr(e[4]);const a=c=>c[35];for(let c=0;c<l.length;c+=1){let u=rc(e,l,c),f=a(u);i.set(f,n[c]=oc(f,u))}return{c(){s&&s.c(),r=pr(),t=Be("div");for(let c=0;c<n.length;c+=1)n[c].c();p(t,"class",Yi.state__animations),p(t,"aria-hidden","true")},m(c,u){s&&s.m(c,u),ie(c,r,u),ie(c,t,u);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(t,null);e[21](t),o=!0},p(c,u){c[6]?s?(s.p(c,u),u[0]&64&&B(s,1)):(s=nc(c),s.c(),B(s,1),s.m(r.parentNode,r)):s&&(ir(),ee(s,1,1,()=>{s=null}),or()),u[0]&2064&&(l=nr(c[4]),ir(),n=xu(n,u,a,1,c,l,i,t,Qu,oc,null,rc),or())},i(c){if(!o){B(s);for(let u=0;u<l.length;u+=1)B(n[u]);o=!0}},o(c){ee(s);for(let u=0;u<n.length;u+=1)ee(n[u]);o=!1},d(c){c&&(ne(r),ne(t)),s&&s.d(c);for(let u=0;u<n.length;u+=1)n[u].d();e[21](null)}}}function Ep(e){let r,t,n,i;const o=[kp,vp],s=[];function l(a,c){return a[2]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function Sp(e){return e.some(r=>r.type==="fade")}function bf(e){return e.type==="change_bounds"?e:e.type==="set"?bf(e.items[0]):null}function Vp(e,r,t){let n,i,o,s,l,a,c,u,f,_,m=E,y=()=>(m(),m=M(o,Z=>t(18,_=Z)),o);e.$$.on_destroy.push(()=>m());let{componentContext:h}=r,{layoutParams:w=void 0}=r;const v=Hr(Zr);let R=!1,N,V=new Map,D=new Set,te=[],F=[],Y=[],X=[],H,W,U,he=!1;function Ie(){t(13,he=!1)}function Te(Z){U&&U.destroy(),t(6,U=Z!=null&&Z.div?h.produceChildContext(Z.div,{path:Z.state_id||"<unknown>"}):void 0)}function _e(Z){const Ae=h.json.states;Ae&&(t(14,c=Ae.map((ge,et)=>({...ge,div:Z[et]}))),t(0,h.json={...h.json,states:c},h),W&&Te(c.find(ge=>ge.state_id===W)||null))}function be(Z,Ae,ge){let{json:et,parentComponentContext:G,transitions:Ee,node:We}=Ae;et=h.getJsonWithVars(et),Ee=h.getJsonWithVars(Ee);const re=mf(Ee),it=Ae.bbox||We.getBoundingClientRect(),je={...et,margins:void 0,alpha:Sp(re)?void 0:et.alpha};return{id:G.id||"",json:je,componentContextCopy:G.produceChildContext(je,{fake:!0}),elementBbox:it,rootBbox:Z,transitions:re,alpha:et.alpha,width:it.width,height:it.height,offsetTop:it.top-Z.top,offsetLeft:it.left-Z.left,direction:ge,resolvePromise:Ae.resolvePromise,node:Ae.node}}async function _t(Z){if(W===Z)return h;v.setRunning("stateChange",!0);const Ae=new Set(D);te.forEach(je=>{je.resolvePromise&&je.resolvePromise()}),t(4,te=[]);let ge=[];if(N){const je=N.getBoundingClientRect();ge=Y.map(Ve=>be(je,Ve,"out"))}X.forEach(je=>{je.transitions&&V.set(je.id,{transitions:je.transitions,rect:je.node.getBoundingClientRect()})}),F=[],Y=[],X=[];const et=c.find(je=>je.state_id===Z)||null;if(et?(t(5,W=Z),l==null||l.setValue(W),Te(et)):h.logError(x(new Error("Cannot find state with id"),{additional:{stateId:Z}})),await wn(),!N)return;const G=N.getBoundingClientRect();let Ee=F.filter(je=>{var Ve;return je.parentComponentContext.id&&!Ae.has(je.parentComponentContext.id)?!0:((Ve=je.resolvePromise)==null||Ve.call(je),!1)}).map(je=>be(G,je,"in"));ge=ge.filter(je=>{var Ve;return je.id&&!D.has(je.id)?!0:((Ve=je.resolvePromise)==null||Ve.call(je),!1)});const We=ge.concat(Ee),re=We.reduce((je,Ve)=>Math.max(je,tc(Ve.transitions)),0),it=X.filter(je=>V.has(je.id)).map(je=>{const Ve={...je.json,margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}},yt=V.get(je.id);return{id:je.parentComponentContext.id||"",json:Ve,componentContextCopy:je.parentComponentContext.produceChildContext(Ve,{fake:!0}),rootBbox:G,beforeBbox:yt.rect,afterBbox:je.node.getBoundingClientRect(),node:je.node,transition:h.getJsonWithVars(bf(yt.transitions)),resolvePromise:je.resolvePromise}});return t(4,te=[...We.map(je=>({...je,maxDuration:re})),...it]),V.clear(),v.setRunning("stateChange",!1),h}Li(Al,{runVisibilityTransition(Z,Ae,ge,et,G,Ee){if(!N)return Promise.resolve();const We=N.getBoundingClientRect(),re=be(We,{json:Z,parentComponentContext:Ae,transitions:ge,node:et,bbox:Ee},G),it=tc(re.transitions),je={...re,maxDuration:it};return t(4,te=[...te.filter(Ve=>Ve.node!==re.node),je]),new Promise(Ve=>{je.resolvePromise=Ve})},registerChildWithTransitionIn(Z,Ae,ge,et){const G={json:Z,parentComponentContext:Ae,transitions:ge,node:et};return F.push(G),new Promise(Ee=>{G.resolvePromise=Ee})},registerChildWithTransitionOut(Z,Ae,ge,et){const G={json:Z,parentComponentContext:Ae,transitions:ge,node:et};return Y.push(G),new Promise(Ee=>{G.resolvePromise=Ee})},registerChildWithTransitionChange(Z,Ae,ge,et){const G=Ae.id;if(!G)return Promise.resolve();const Ee={id:G,json:Z,parentComponentContext:Ae,transitions:ge,node:et};return X.push(Ee),new Promise(We=>{Ee.resolvePromise=We})},hasTransitionChange(Z){return Z?V.has(Z):!1},registerChild(Z){D.add(Z)},unregisterChild(Z){D.delete(Z)}});function He(Z){if(!he&&(t(13,he=!0),Z.length)){const Ae=(l==null?void 0:l.getValue())||i;if(Ae){t(5,W=Ae);const ge=Z.find(et=>et.state_id===W)||null;Te(ge),ge||h.logError(x(new Error("Cannot find state for default_state_id"),{additional:{selectedId:W}}))}else{const ge=Z[0];t(5,W=ge.state_id),Te(ge)}l&&(l.setValue(W),l.subscribe(ge=>{_t(ge)}))}}function ze(Z){t(4,te=te.filter(Ae=>Ae!==Z)),Z.resolvePromise&&Z.resolvePromise()}sn(()=>{U&&U.destroy(),H&&h.unregisterState(H)});const Fe=Z=>ze(Z),qe=Z=>ze(Z);function Qe(Z){Fr[Z?"unshift":"push"](()=>{N=Z,t(3,N)})}return e.$$set=Z=>{"componentContext"in Z&&t(0,h=Z.componentContext),"layoutParams"in Z&&t(1,w=Z.layoutParams)},e.$$.update=()=>{e.$$.dirty[0]&1&&t(15,n=h.json.div_id||h.id),e.$$.dirty[0]&1&&(i=h.getJsonWithVars(h.json.default_state_id)),e.$$.dirty[0]&1&&y(t(9,o=h.getDerivedFromVars(h.json.clip_to_bounds))),e.$$.dirty[0]&1&&t(17,s=h.json.state_id_variable),e.$$.dirty[0]&131073&&(l=s?h.getVariable(s,"string"):null),e.$$.dirty[0]&1&&t(16,a=h.origJson),e.$$.dirty[0]&65536&&a&&Ie(),e.$$.dirty[0]&32769&&(n?t(2,R=!1):(t(2,R=!0),h.logError(x(new Error('Missing "id" prop for div "state"'))))),e.$$.dirty[0]&1&&h.json&&(D=new Set),e.$$.dirty[0]&1&&t(14,c=Array.isArray(h.json.states)&&h.json.states||[]),e.$$.dirty[0]&16384&&t(8,u=c.map(Z=>{var Ae;return{json:Z.div,id:(Ae=Z.div)==null?void 0:Ae.id}})),e.$$.dirty[0]&16385&&(c!=null&&c.length?t(2,R=!1):(t(2,R=!0),h.logError(x(new Error('Empty "states" prop for div "state"'))))),e.$$.dirty[0]&36865&&h.json&&(H&&(h.unregisterState(n),t(12,H=void 0)),n&&!(h!=null&&h.fakeElement)&&(t(12,H=n),h.registerState(n,_t))),e.$$.dirty[0]&24576&&!he&&He(c),e.$$.dirty[0]&262144&&t(7,f={overflow:_===!1||_===0?"visible":void 0})},[h,w,R,N,te,W,U,f,u,o,_e,ze,H,he,c,n,a,s,_,Fe,qe,Qe]}class Ip extends Rr{constructor(r){super(),zr(this,r,Vp,Ep,yr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Tp="divkit-4e617",Dp="divkit-2d4e4",Fp="divkit-834e0",Mp="divkit-9cc96",Pp="divkit-e886e",Np="divkit-e1525",Op="divkit-3af1f",zp="divkit-8d520",Rp="divkit-4e248",Lp="divkit-c6702",ui={pager:Tp,pager__items:Dp,pager__item:Fp,pager_orientation_horizontal:Mp,pager_orientation_vertical:Pp,pager__item_height_content:Np,pager__item_height_fixed:Op,"pager__item_height-constrained":"divkit-d5bd8",pager__item_width_content:zp,pager__item_width_fixed:Rp,"pager__item_width-constrained":"divkit-6a541",pager__arrow:Lp,"pager__arrow-icon-path":"divkit-97cb5"},{Boolean:Bp}=_i;function sc(e,r,t){const n=e.slice();return n[59]=r[t],n[61]=t,n}function Hp(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Wp(e){let r,t;return r=new vn({props:{cls:gt("pager",ui,e[12]),componentContext:e[0],layoutParams:e[1],customPaddings:!0,parentOf:e[3],replaceItems:e[27],$$slots:{default:[Yp]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&4096&&(o.cls=gt("pager",ui,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&8&&(o.parentOf=n[3]),i[0]&3157612|i[2]&1&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function lc(e){let r,t,n,i,o;return t=new ei({props:{componentContext:e[59]}}),{c(){r=Be("div"),Wt(t.$$.fragment),n=pr(),p(r,"class",i=gt("pager__item",ui,uc(e[2],e[21][e[61]])))},m(s,l){ie(s,r,l),Rt(t,r,null),jt(r,n),o=!0},p(s,l){const a={};l[0]&8&&(a.componentContext=s[59]),t.$set(a),(!o||l[0]&2097156&&i!==(i=gt("pager__item",ui,uc(s[2],s[21][s[61]]))))&&p(r,"class",i)},i(s){o||(B(t.$$.fragment,s),o=!0)},o(s){ee(t.$$.fragment,s),o=!1},d(s){s&&ne(r),Lt(t)}}}function ac(e){let r,t,n,i=!e[23]&&Up();return{c(){r=Be("div"),i&&i.c(),p(r,"class",e[23]||`${ui.pager__arrow} ${Gn.arrow} ${Gn.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=Ue(r,"click",e[46]),t=!0)},p:E,d(o){o&&ne(r),i&&i.d(),t=!1,n()}}}function Up(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",ui["pager__arrow-icon-path"]),p(t,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),p(r,"class",Gn.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),jt(r,t)},d(n){n&&ne(r)}}}function cc(e){let r,t,n,i=!e[24]&&Gp();return{c(){r=Be("div"),i&&i.c(),p(r,"class",e[24]||`${ui.pager__arrow} ${Gn.arrow} ${Gn.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),t||(n=Ue(r,"click",e[47]),t=!0)},p:E,d(o){o&&ne(r),i&&i.d(),t=!1,n()}}}function Gp(e){let r,t;return{c(){r=nn("svg"),t=nn("path"),p(t,"class",ui["pager__arrow-icon-path"]),p(t,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),p(r,"class",Gn.arrow__icon),p(r,"xmlns","http://www.w3.org/2000/svg"),p(r,"width","32"),p(r,"height","32"),p(r,"viewBox","0 0 32 32"),p(r,"fill","none")},m(n,i){ie(n,r,i),jt(r,t)},d(n){n&&ne(r)}}}function Yp(e){let r,t,n,i,o,s,l,a,c,u=nr(e[3]),f=[];for(let h=0;h<u.length;h+=1)f[h]=lc(sc(e,u,h));const _=h=>ee(f[h],1,1,()=>{f[h]=null});let m=e[10]&&e[11]&&ac(e),y=e[9]&&e[11]&&cc(e);return{c(){r=Be("div");for(let h=0;h<f.length;h+=1)f[h].c();i=pr(),m&&m.c(),o=pr(),y&&y.c(),s=Qt(),p(r,"class",t=ui.pager__items+" "+(e[20]?er["root_restrict-scroll"]:"")),p(r,"style",n=Ct(e[13]))},m(h,w){ie(h,r,w);for(let v=0;v<f.length;v+=1)f[v]&&f[v].m(r,null);e[45](r),ie(h,i,w),m&&m.m(h,w),ie(h,o,w),y&&y.m(h,w),ie(h,s,w),l=!0,a||(c=Ue(r,"scroll",e[26]),a=!0)},p(h,w){if(w[0]&2097164){u=nr(h[3]);let v;for(v=0;v<u.length;v+=1){const R=sc(h,u,v);f[v]?(f[v].p(R,w),B(f[v],1)):(f[v]=lc(R),f[v].c(),B(f[v],1),f[v].m(r,null))}for(ir(),v=u.length;v<f.length;v+=1)_(v);or()}(!l||w[0]&1048576&&t!==(t=ui.pager__items+" "+(h[20]?er["root_restrict-scroll"]:"")))&&p(r,"class",t),(!l||w[0]&8192&&n!==(n=Ct(h[13])))&&p(r,"style",n),h[10]&&h[11]?m?m.p(h,w):(m=ac(h),m.c(),m.m(o.parentNode,o)):m&&(m.d(1),m=null),h[9]&&h[11]?y?y.p(h,w):(y=cc(h),y.c(),y.m(s.parentNode,s)):y&&(y.d(1),y=null)},i(h){if(!l){for(let w=0;w<u.length;w+=1)B(f[w]);l=!0}},o(h){f=f.filter(Bp);for(let w=0;w<f.length;w+=1)ee(f[w]);l=!1},d(h){h&&(ne(r),ne(i),ne(o),ne(s)),an(f,h),e[45](null),m&&m.d(h),y&&y.d(h),a=!1,c()}}}function Jp(e){let r,t,n,i;const o=[Wp,Hp],s=[];function l(a,c){return a[4]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}const Mo={wrap_content:"content",fixed:"fixed",match_parent:"parent"};function uc(e,r){var n,i,o,s;if(e==="horizontal"){const l=((n=r.height)==null?void 0:n.type)||"";return{height:l in Mo?Mo[l]:"content","height-constrained":((i=r.height)==null?void 0:i.type)==="wrap_content"?Xn(r.height.constrained,!1):!1}}const t=((o=r.width)==null?void 0:o.type)||"";return{width:t in Mo?Mo[t]:"parent","width-constrained":((s=r.width)==null?void 0:s.type)==="wrap_content"?Xn(r.width.constrained,!1):!1}}function qp(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N=E,V=()=>(N(),N=M(v,we=>t(49,R=we)),v),D,te,F,Y=E,X=()=>(Y(),Y=M(o,we=>t(40,F=we)),o),H,W=E,U=()=>(W(),W=M(a,we=>t(41,H=we)),a),he,Ie=E,Te=()=>(Ie(),Ie=M(l,we=>t(42,he=we)),l),_e,be=E,_t=()=>(be(),be=M(s,we=>t(43,_e=we)),s),He,ze=E,Fe=()=>(ze(),ze=M(i,we=>t(44,He=we)),i),qe,Qe=E,Z=()=>(Qe(),Qe=M(c,we=>t(20,qe=we)),c),Ae,ge=E,et=()=>(ge(),ge=M(dt,we=>t(21,Ae=we)),dt);e.$$.on_destroy.push(()=>N()),e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge());let{componentContext:G}=r,{layoutParams:Ee=void 0}=r;const We=Hr(Zr),re=We.direction;on(e,re,we=>t(5,D=we));const it=We.genId("pager"),je=We.getCustomization("pagerLeftClass"),Ve=We.getCustomization("pagerRightClass"),yt=We.isDesktop;on(e,yt,we=>t(39,te=we));const Vt=Ds(qt,50);let $,tt,lt=!1,dt,Ge=0,C=0,$e=!1,le="horizontal",Ke="0em",wt="",fe="",pe=[];function at(){t(35,wt="")}function Ze(we){t(0,G={...G,json:{...G.json,items:we.filter(ki)}})}function xt(we,Et){return le==="horizontal"?Et.left>=we.left&&Et.right<=we.right:Et.top>=we.top&&Et.bottom<=we.bottom}function Mt(){const we=Array.from(tt.children),Et=tt.getBoundingClientRect(),Re=we.findIndex(mt=>xt(Et,mt.getBoundingClientRect()));return Re!==-1?Re:Ge}function qt(){if(!lt)return;const we=Mt();we!==Ge&&t(32,Ge=we)}function Pe(we,Et){const Re=G.id;if(Re){const mt=new Map(R);Uo(v,R=mt.set(Re,{instId:it,size:we,currentItem:Et,scrollToPagerItem:Ut}),R)}}function pt(we){var Re;if(we===C)return;C=we;const Et=G.getJsonWithVars((Re=pe[we].json)==null?void 0:Re.selected_actions);Et!=null&&Et.length&&G.execAnyActions(Et)}function Ut(we,Et="smooth"){const Re=le==="horizontal",mt=tt.children[we],Ne=Re?"offsetLeft":"offsetTop",ot=Re?"offsetWidth":"offsetHeight",vt=Re?"left":"top",De=mt[Ne]+mt[ot]/2-tt[ot]/2;tt.scroll({[vt]:De,behavior:Et}),t(32,Ge=we)}function Bt(we,Et){let Re=Ge-we;Re<0&&(Re=Et==="ring"?Ii(Re,pe.length):0),Ut(Re)}function Gt(we,Et){let Re=Ge+we;Re>pe.length-1&&(Re=Et==="ring"?Ii(Re,pe.length):pe.length-1),Ut(Re)}$n(()=>{if(t(31,lt=!0),!!document.getElementById(`${it}-tab-0`)){const Et=[...tt.children];for(const[Re,mt]of Et.entries())mt.setAttribute("role","tabpanel"),mt.setAttribute("id",`${it}-panel-${Re}`),mt.setAttribute("aria-labelledby",`${it}-tab-${Re}`)}Ge>0&&Ut(Ge,"instant")}),sn(()=>{t(31,lt=!1),pe.forEach(we=>{we.destroy()}),$&&(We.unregisterInstance($),t(30,$=void 0))});function L(we){Fr[we?"unshift":"push"](()=>{tt=we,t(6,tt)})}const ae=()=>(D==="ltr"?Bt:Gt)(1,"clamp"),ar=()=>(D==="ltr"?Gt:Bt)(1,"clamp");return e.$$set=we=>{"componentContext"in we&&t(0,G=we.componentContext),"layoutParams"in we&&t(1,Ee=we.layoutParams)},e.$$.update=()=>{var we,Et,Re,mt,Ne,ot,vt,De,ct,Yt,sr,dr,Ht;if(e.$$.dirty[0]&1&&t(38,n=G.origJson),e.$$.dirty[1]&128&&n&&at(),e.$$.dirty[0]&1&&Fe(t(19,i=typeof((we=G.json.item_builder)==null?void 0:we.data)=="string"?G.getDerivedFromVars((Et=G.json.item_builder)==null?void 0:Et.data,void 0,!0):(Re=G.json.item_builder)!=null&&Re.data?Hi(G.json.item_builder.data):void 0)),e.$$.dirty[0]&1&&X(t(18,o=G.getDerivedFromVars(G.json.layout_mode))),e.$$.dirty[0]&1&&_t(t(17,s=G.getDerivedFromVars(G.json.orientation))),e.$$.dirty[0]&1&&Te(t(16,l=G.getDerivedFromVars(G.json.item_spacing))),e.$$.dirty[0]&1&&U(t(15,a=G.getDerivedFromVars(G.json.paddings))),e.$$.dirty[0]&1&&Z(t(14,c=G.getDerivedFromVars(G.json.restrict_parent_scroll))),e.$$.dirty[0]&9|e.$$.dirty[1]&8192){let ut=[];if(G.json.item_builder&&Array.isArray(He)&&Array.isArray(G.json.item_builder.prototypes)){const St=G.json.item_builder;ut=Tl(He,We,G,St)}else ut=(Array.isArray(G.json.items)&&G.json.items||[]).map(St=>({div:St}));pe.forEach(St=>{St.destroy()}),t(3,pe=ut.map((St,Ft)=>G.produceChildContext(St.div,{path:Ft,variables:St.vars,id:St.id})))}if(e.$$.dirty[0]&9){let ut=[];pe.forEach(St=>{ut.push(G.getDerivedFromVars({width:St.json.width,height:St.json.height}))}),et(t(7,dt=Gi(ut,St=>[...St])))}if(e.$$.dirty[0]&1|e.$$.dirty[1]&512&&(F?F.type!=="percentage"&&F.type!=="fixed"?(t(33,$e=!0),G.logError(x(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):t(33,$e=!1):(t(33,$e=!0),G.logError(x(new Error('Empty "layout_mode" prop for div "pager"'))))),e.$$.dirty[0]&4|e.$$.dirty[1]&4096&&t(2,le=Dl(_e,le)),e.$$.dirty[1]&2048){const ut=he==null?void 0:he.value;ut&&Vn(ut)&&t(34,Ke=yn(ut||0))}if(e.$$.dirty[0]&32|e.$$.dirty[1]&1040&&t(35,wt=Ao(H,D,wt)),e.$$.dirty[0]&4&&t(37,u=le==="horizontal"?"grid-auto-columns":"grid-auto-rows"),e.$$.dirty[0]&37|e.$$.dirty[1]&520){if((F==null?void 0:F.type)==="fixed"){const ut=yn(le==="horizontal"?((D==="ltr"?(mt=G.json.paddings)==null?void 0:mt.start:(Ne=G.json.paddings)==null?void 0:Ne.end)||((ot=G.json.paddings)==null?void 0:ot.left)||0)+((D==="ltr"?(vt=G.json.paddings)==null?void 0:vt.end:(De=G.json.paddings)==null?void 0:De.start)||((ct=G.json.paddings)==null?void 0:ct.right)||0):(((Yt=G.json.paddings)==null?void 0:Yt.top)||0)+(((sr=G.json.paddings)==null?void 0:sr.bottom)||0)),St=(dr=F.neighbour_page_width)==null?void 0:dr.value;t(36,fe=St?`calc(100% + ${ut} - 2 * ${yn(St)} - 2 * ${Ke})`:"100%")}else if((F==null?void 0:F.type)==="percentage"){const ut=(Ht=F.page_width)==null?void 0:Ht.value;t(36,fe=`${Number(ut)}%`)}}if(e.$$.dirty[1]&120&&t(13,f={"grid-gap":Ke,padding:wt,[u]:fe}),e.$$.dirty[0]&4&&t(12,_={orientation:le}),e.$$.dirty[1]&4&&t(4,m=$e),e.$$.dirty[0]&16|e.$$.dirty[1]&257&&t(11,y=te&<&&!m),e.$$.dirty[0]&1073741833&&G.json){const ut=G.getJsonWithVars(G.json.default_item);typeof ut=="number"&&ut>=0&&ut<pe.length&&t(32,Ge=C=ut),$&&(We.unregisterInstance($),t(30,$=void 0)),G.id&&!G.fakeElement&&(t(30,$=G.id),We.registerInstance($,{setCurrentItem(St){if(St<0||St>pe.length-1)throw new Error('Item is out of range in "set-current-item" action');Ut(St)},setPreviousItem:Bt,setNextItem:Gt,scrollToStart(){Ut(0)},scrollToEnd(){Ut(pe.length-1)}}))}e.$$.dirty[0]&40|e.$$.dirty[1]&2&&t(10,h=D==="ltr"?Ge>0:Ge+1<pe.length),e.$$.dirty[0]&40|e.$$.dirty[1]&2&&t(9,w=D==="ltr"?Ge+1<pe.length:Ge>0),e.$$.dirty[0]&8|e.$$.dirty[1]&2&&Pe(pe.length,Ge),e.$$.dirty[1]&2&&pt(Ge)},V(t(8,v=We.getStore("pagers"))),[G,Ee,le,pe,m,D,tt,dt,v,w,h,y,_,f,c,a,l,s,o,i,qe,Ae,re,je,Ve,yt,Vt,Ze,Bt,Gt,$,lt,Ge,$e,Ke,wt,fe,u,n,te,F,H,he,_e,He,L,ae,ar]}class Kp extends Rr{constructor(r){super(),zr(this,r,qp,Jp,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const Xp="divkit-7560c",Zp="divkit-42240",Qp="divkit-49790",xp="divkit-2da15",$p="divkit-eb5df",e0="divkit-c146b",t0="divkit-bae27",r0="divkit-58b11",n0="divkit-b49a3",Ji={indicator:Xp,indicator__scroller:Zp,indicator__items:Qp,indicator__item:xp,indicator_placement_default:$p,indicator__item_active:e0,indicator_direction_ltr:t0,indicator_direction_rtl:r0,indicator_placement_stretch:n0};function fc(e,r,t){const n=e.slice();n[42]=r[t],n[45]=t;const i=n[45]===n[10].currentItem;return n[43]=i,n}function dc(e){let r,t=nr(Array(e[10].size)),n=[];for(let i=0;i<t.length;i+=1)n[i]=_c(fc(e,t,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();r=Qt()},m(i,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(i,o);ie(i,r,o)},p(i,o){if(o[0]&12583936){t=nr(Array(i[10].size));let s;for(s=0;s<t.length;s+=1){const l=fc(i,t,s);n[s]?n[s].p(l,o):(n[s]=_c(l),n[s].c(),n[s].m(r.parentNode,r))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(i){i&&ne(r),an(n,i)}}}function _c(e){let r,t,n,i,o,s,l,a;function c(){return e[35](e[45])}return{c(){r=Be("div"),p(r,"class",t=gt("indicator__item",Ji,{active:e[43]})+" "+er.root__clickable),p(r,"role","tab"),p(r,"id",n=e[10].instId+"-tab-"+e[45]),p(r,"aria-controls",i=e[10].instId+"-panel-"+e[45]),p(r,"aria-selected",o=e[43]?"true":"false"),p(r,"tabindex",s=e[43]?0:-1)},m(u,f){ie(u,r,f),l||(a=[Ue(r,"click",c),Ue(r,"keydown",e[23])],l=!0)},p(u,f){e=u,f[0]&1024&&t!==(t=gt("indicator__item",Ji,{active:e[43]})+" "+er.root__clickable)&&p(r,"class",t),f[0]&1024&&n!==(n=e[10].instId+"-tab-"+e[45])&&p(r,"id",n),f[0]&1024&&i!==(i=e[10].instId+"-panel-"+e[45])&&p(r,"aria-controls",i),f[0]&1024&&o!==(o=e[43]?"true":"false")&&p(r,"aria-selected",o),f[0]&1024&&s!==(s=e[43]?0:-1)&&p(r,"tabindex",s)},d(u){u&&ne(r),l=!1,Wr(a)}}}function i0(e){let r,t,n=e[10]&&dc(e);return{c(){r=Be("div"),t=Be("div"),n&&n.c(),p(t,"class",Ji.indicator__items),p(t,"role","tablist"),z(t,"margin",e[4]==="default"?`0 ${ve(Math.max(0,e[2].width-e[3].width)/2)}`:""),z(t,"--divkit-indicator-inactive-width",ve(e[3].width)),z(t,"--divkit-indicator-inactive-height",ve(e[3].height)),z(t,"--divkit-indicator-inactive-border-radius",ve(e[3].borderRadius)),z(t,"--divkit-indicator-inactive-background",e[3].background||""),z(t,"--divkit-indicator-inactive-box-shadow",e[3].boxShadow||""),z(t,"--divkit-indicator-active-width",ve(e[2].width)),z(t,"--divkit-indicator-active-height",ve(e[2].height)),z(t,"--divkit-indicator-active-border-radius",ve(e[2].borderRadius)),z(t,"--divkit-indicator-active-background",e[2].background||""),z(t,"--divkit-indicator-active-box-shadow",e[2].boxShadow||""),z(t,"--divkit-indicator-active-scale",e[2].width/e[3].width),z(t,"--divkit-indicator-default-margin",e[4]==="default"?`0 ${ve((e[5]-e[3].width)/2)}`:""),z(t,"--divkit-indicator-stretch-margin",e[4]==="stretch"?ve(e[7]):""),z(t,"--divkit-indicator-stretch-max-count",e[4]==="stretch"?e[6]:""),z(t,"--divkit-indicator-stretch-max-spacer",e[4]==="stretch"?ve((e[6]-1)*e[7]):""),p(r,"class",Ji.indicator__scroller)},m(i,o){ie(i,r,o),jt(r,t),n&&n.m(t,null),e[36](t),e[37](r)},p(i,o){i[10]?n?n.p(i,o):(n=dc(i),n.c(),n.m(t,null)):n&&(n.d(1),n=null),o[0]&28&&z(t,"margin",i[4]==="default"?`0 ${ve(Math.max(0,i[2].width-i[3].width)/2)}`:""),o[0]&8&&z(t,"--divkit-indicator-inactive-width",ve(i[3].width)),o[0]&8&&z(t,"--divkit-indicator-inactive-height",ve(i[3].height)),o[0]&8&&z(t,"--divkit-indicator-inactive-border-radius",ve(i[3].borderRadius)),o[0]&8&&z(t,"--divkit-indicator-inactive-background",i[3].background||""),o[0]&8&&z(t,"--divkit-indicator-inactive-box-shadow",i[3].boxShadow||""),o[0]&4&&z(t,"--divkit-indicator-active-width",ve(i[2].width)),o[0]&4&&z(t,"--divkit-indicator-active-height",ve(i[2].height)),o[0]&4&&z(t,"--divkit-indicator-active-border-radius",ve(i[2].borderRadius)),o[0]&4&&z(t,"--divkit-indicator-active-background",i[2].background||""),o[0]&4&&z(t,"--divkit-indicator-active-box-shadow",i[2].boxShadow||""),o[0]&12&&z(t,"--divkit-indicator-active-scale",i[2].width/i[3].width),o[0]&56&&z(t,"--divkit-indicator-default-margin",i[4]==="default"?`0 ${ve((i[5]-i[3].width)/2)}`:""),o[0]&144&&z(t,"--divkit-indicator-stretch-margin",i[4]==="stretch"?ve(i[7]):""),o[0]&80&&z(t,"--divkit-indicator-stretch-max-count",i[4]==="stretch"?i[6]:""),o[0]&208&&z(t,"--divkit-indicator-stretch-max-spacer",i[4]==="stretch"?ve((i[6]-1)*i[7]):"")},d(i){i&&ne(r),n&&n.d(),e[36](null),e[37](null)}}}function o0(e){let r,t;return r=new vn({props:{cls:gt("indicator",Ji,e[11]),componentContext:e[0],layoutParams:e[1],$$slots:{default:[i0]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&2048&&(o.cls=gt("indicator",Ji,n[11])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2044|i[1]&32768&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}const Ws=["rounded_rectangle","circle"];function s0(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w=E,v=()=>(w(),w=M(_,fe=>t(26,h=fe)),_),R,N=E,V=()=>(N(),N=M(u,fe=>t(27,R=fe)),u),D,te=E,F=()=>(te(),te=M(f,fe=>t(28,D=fe)),f),Y,X=E,H=()=>(X(),X=M(o,fe=>t(29,Y=fe)),o),W,U=E,he=()=>(U(),U=M(s,fe=>t(30,W=fe)),s),Ie,Te=E,_e=()=>(Te(),Te=M(i,fe=>t(31,Ie=fe)),i),be,_t=E,He=()=>(_t(),_t=M(l,fe=>t(32,be=fe)),l),ze,Fe=E,qe=()=>(Fe(),Fe=M(c,fe=>t(33,ze=fe)),c),Qe,Z=E,Ae=()=>(Z(),Z=M(a,fe=>t(34,Qe=fe)),a);e.$$.on_destroy.push(()=>w()),e.$$.on_destroy.push(()=>N()),e.$$.on_destroy.push(()=>te()),e.$$.on_destroy.push(()=>X()),e.$$.on_destroy.push(()=>U()),e.$$.on_destroy.push(()=>Te()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>Z());let{componentContext:ge}=r,{layoutParams:et=void 0}=r;const G=Hr(Zr),Ee=G.direction;on(e,Ee,fe=>t(25,y=fe));let We={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},re={width:10,height:10,borderRadius:5,background:"#33919cb5"},it="default",je=15,Ve=10,yt=5,Vt,$,tt;function lt(){t(4,it="default"),t(5,je=15),t(6,Ve=10),t(7,yt=5),t(2,We={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),t(3,re={width:10,height:10,borderRadius:5,background:"#33919cb5"})}async function dt(fe){if(ge.json.pager_id&&fe.has(ge.json.pager_id)&&(t(10,tt=fe.get(ge.json.pager_id)),await wn(),$)){const pe=$.children[tt.currentItem];if(pe){const at=pe.offsetLeft;Vt.scroll({left:at-Vt.clientWidth/2,behavior:"smooth"})}}}function Ge(fe){fe!==tt.currentItem&&tt.scrollToPagerItem(fe)}function C(fe){if(fe.ctrlKey||fe.shiftKey||fe.altKey||fe.metaKey)return;const{size:pe,currentItem:at}=tt;if(fe.which===cf){const Ze=at-1<0?at:at-1;$e(Ze)}else if(fe.which===uf){const Ze=at+1>=pe?at:at+1;$e(Ze)}else if(fe.which===ff)$e(0);else if(fe.which===df)$e(pe-1);else return;fe.preventDefault()}async function $e(fe){tt.scrollToPagerItem(fe),await wn();const pe=$.querySelector(`.${Ji.indicator__item_active}`);pe&&pe.focus()}const le=fe=>Ge(fe);function Ke(fe){Fr[fe?"unshift":"push"](()=>{$=fe,t(9,$)})}function wt(fe){Fr[fe?"unshift":"push"](()=>{Vt=fe,t(8,Vt)})}return e.$$set=fe=>{"componentContext"in fe&&t(0,ge=fe.componentContext),"layoutParams"in fe&&t(1,et=fe.layoutParams)},e.$$.update=()=>{var fe,pe;if(e.$$.dirty[0]&1&&t(24,n=ge.origJson),e.$$.dirty[0]&16777216&&n&<(),e.$$.dirty[0]&1&&_e(t(20,i=ge.getDerivedFromVars(ge.json.shape))),e.$$.dirty[0]&1&&H(t(19,o=ge.getDerivedFromVars(ge.json.active_item_color))),e.$$.dirty[0]&1&&he(t(18,s=ge.getDerivedFromVars(ge.json.inactive_item_color))),e.$$.dirty[0]&1&&He(t(17,l=ge.getDerivedFromVars(ge.json.active_item_size))),e.$$.dirty[0]&1&&Ae(t(16,a=ge.getDerivedFromVars(ge.json.active_shape))),e.$$.dirty[0]&1&&qe(t(15,c=ge.getDerivedFromVars(ge.json.inactive_shape))),e.$$.dirty[0]&1&&V(t(14,u=ge.getDerivedFromVars(ge.json.space_between_centers))),e.$$.dirty[0]&1&&F(t(13,f=ge.getDerivedFromVars(ge.json.items_placement))),e.$$.dirty[0]&1610612748|e.$$.dirty[1]&15&&(Qe&&t(2,We=Kn({type:"shape_drawable",shape:Qe},Ws,We)),ze&&t(3,re=Kn({type:"shape_drawable",shape:ze},Ws,re)),!Qe&&!ze&&Ie)){const at=Un(be,1.3);t(3,re=Kn({type:"shape_drawable",shape:Ie,color:re.background},Ws,re)),t(3,re.background=Ir(W,1,re.background),re),t(2,We={...re,width:re.width*at,height:re.height*at,borderRadius:re.borderRadius*at,background:We.background}),t(2,We.background=Ir(Y,1,We.background),We)}if(e.$$.dirty[0]&402653424)if(D&&(D.type==="default"||D.type==="stretch")){if(t(4,it=D.type),it==="default")t(5,je=Yr((fe=D.space_between_centers)==null?void 0:fe.value,je));else if(it==="stretch"){const at=D;t(6,Ve=Un(at.max_visible_items,Ve)),t(7,yt=Yr((pe=at.item_spacing)==null?void 0:pe.value,yt))}}else t(4,it="default"),R&&t(5,je=Yr(R.value,je));e.$$.dirty[0]&67108864&&dt(h),e.$$.dirty[0]&33554448&&t(11,m={placement:it,direction:y})},v(t(12,_=G.getStore("pagers"))),[ge,et,We,re,it,je,Ve,yt,Vt,$,tt,m,_,f,u,c,a,l,s,o,i,Ee,Ge,C,n,y,h,R,D,Y,W,Ie,be,ze,Qe,le,Ke,wt]}class l0 extends Rr{constructor(r){super(),zr(this,r,s0,o0,yr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const a0="divkit-99f56",c0="divkit-96503",u0="divkit-1ee78",f0="divkit-67789",d0="divkit-38304",_0="divkit-c5ec2",h0="divkit-5332e",g0="divkit-f188a",p0="divkit-cdb6d",m0="divkit-dbdf0",Dr={slider:a0,slider__input:c0,slider__input_secondary:u0,slider__thumb:f0,slider_direction_rtl:d0,slider__thumb_secondary:_0,"slider__tracks-wrapper":"divkit-d7767","slider__tracks-inner":"divkit-fd4b7",slider__track:h0,"slider__active-track":"divkit-5d67f","slider__thumb-text":"divkit-23468","slider__thumb-text_secondary":"divkit-f2ab9",slider__tick:g0,slider__tick_active:p0,slider__tick_inactive:m0};function hc(e,r){var o,s;if(!e||!e.font_size)return r;const t=e.offset,n=e.text_color&&Ir(e.text_color)||"#000",i=ao(e.font_weight,e.font_weight_value,void 0);if(In(e.font_size)&&n!=="transparent"){const l={fontSize:ve(e.font_size),fontWeight:i,textColor:n};return typeof((o=t==null?void 0:t.x)==null?void 0:o.value)=="number"&&typeof((s=t==null?void 0:t.y)==null?void 0:s.value)=="number"&&(l.offset={x:t.x.value,y:t.y.value}),l}}function wi(e,r,t){return Math.max(r,Math.min(t,Number(e)))}function Ml(e){return BigInt(e)}const So=Ml("9223372036854775807"),Vo=Ml("-9223372036854775808");function tn(e){const r=Ml(e);if(r>So||r<Vo)throw new Error("Integer overflow.");return r}const qi=tn(0);function yf(e){let r=e;return r<0&&(r=-r),r}function wf(e){let r=0;return e>0?r=1:e<0&&(r=-1),tn(r)}class Ai{constructor(r,t){gr(this,"name");gr(this,"value");gr(this,"store");const n=this.convertValue(t);this.name=r,this.value=n}getName(){return this.name}subscribe(r){return this.store||(this.store=ai(this.value)),this.store.subscribe(r)}set(r){const t=this.fromString(r);this.setValue(t)}setValue(r){const t=this.convertValue(r);this.value=t,this.store&&this.store.set(t)}getValue(){return this.value}}class vf extends Ai{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"string"}}class kf extends Ai{convertValue(r){if(typeof r!="bigint"&&typeof r!="number")throw new Error("Incorrect variable value");try{return tn(r)}catch{throw new Error("Incorrect variable value")}}fromString(r){try{return tn(r)}catch{throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Af extends Ai{convertValue(r){if(typeof r!="number"||Number.isNaN(r)||!isFinite(r))throw new Error("Incorrect variable value");return r}fromString(r){const t=Number(r);return this.convertValue(t)}getType(){return"number"}}class jf extends Ai{convertValue(r){if(r!==1&&r!==0&&r!==!0&&r!==!1)throw new Error("Incorrect variable value");return Number(r)}fromString(r){if(r==="1"||r==="true")return 1;if(r==="0"||r==="false")return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class Cf extends Ai{convertValue(r){if(typeof r!="string"||!vi(r))throw new Error("Incorrect variable value");return r}fromString(r){return this.convertValue(r)}getType(){return"color"}}class Ef extends Ai{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"url"}}class Sf extends Ai{convertValue(r){if(typeof r!="object"||!r)throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class Vf extends Ai{convertValue(r){if(!Array.isArray(r))throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const $s={string:vf,number:Af,integer:kf,boolean:jf,color:Cf,url:Ef,dict:Sf,array:Vf};function fi(e,r,t){if(!(r in $s))throw new Error("Unsupported variable type");return new $s[r](e,t)}function b0(){}function y0(e){return e(this.value),b0}function gc(){throw new Error("Cannot change the value of this type of variable")}class w0 extends vf{}class v0 extends Af{}class k0 extends kf{}class A0 extends jf{}class j0 extends Cf{}class C0 extends Ef{}class E0 extends Sf{}class S0 extends Vf{}class V0 extends Ai{convertValue(r){if(!(r instanceof Date))throw new Error("Incorrect variable value");return r}fromString(){throw new Error("Datetime variable does not support setter from string")}getType(){return"datetime"}}const ps={string:w0,number:v0,integer:k0,boolean:A0,color:j0,url:C0,dict:E0,array:S0,datetime:V0};for(const e in ps){const r=ps[e];r.prototype.subscribe=y0,r.prototype.set=gc,r.prototype.setValue=gc}function el(e,r,t){if(!(r in ps))throw new Error("Unsupported variable type");return new ps[r](e,t)}function I0(e){return{type:e.getType(),value:e.getValue()}}function pc(e,r,t){const n=e.slice();return n[81]=r[t],n}function mc(e,r,t){const n=e.slice();return n[81]=r[t],n}function T0(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function D0(e){let r,t;return r=new vn({props:{cls:gt("slider",Dr,e[25]),style:e[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[F0,({focusHandler:n,blurHandler:i})=>({79:n,80:i}),({focusHandler:n,blurHandler:i})=>[0,0,(n?131072:0)|(i?262144:0)]]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&33554432&&(o.cls=gt("slider",Dr,n[25])),i[0]&67108864&&(o.style=n[26]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&411037692|i[2]&17170432&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function bc(e){let r;return{c(){r=Be("div"),p(r,"class",Dr.slider__tick+" "+Dr.slider__tick_active),z(r,"--divkit-slider-tick",e[81])},m(t,n){ie(t,r,n)},p(t,n){n[0]&524288&&z(r,"--divkit-slider-tick",t[81])},d(t){t&&ne(r)}}}function yc(e){let r;return{c(){r=Be("div"),p(r,"class",Dr.slider__tick+" "+Dr.slider__tick_inactive),z(r,"--divkit-slider-tick",e[81])},m(t,n){ie(t,r,n)},p(t,n){n[0]&1048576&&z(r,"--divkit-slider-tick",t[81])},d(t){t&&ne(r)}}}function wc(e){let r,t,n;return{c(){var i,o,s;r=Be("div"),t=Be("div"),n=xn(e[13]),p(t,"class",Dr["slider__thumb-text-inner"]),z(t,"font-size",((i=e[9])==null?void 0:i.fontSize)||"1em"),z(t,"font-weight",((o=e[9])==null?void 0:o.fontWeight)||""),z(t,"color",((s=e[9])==null?void 0:s.textColor)||"#000"),p(r,"class",Dr["slider__thumb-text"])},m(i,o){ie(i,r,o),jt(r,t),jt(t,n)},p(i,o){var s,l,a;o[0]&8192&&Ti(n,i[13]),o[0]&512&&z(t,"font-size",((s=i[9])==null?void 0:s.fontSize)||"1em"),o[0]&512&&z(t,"font-weight",((l=i[9])==null?void 0:l.fontWeight)||""),o[0]&512&&z(t,"color",((a=i[9])==null?void 0:a.textColor)||"#000")},d(i){i&&ne(r)}}}function vc(e){let r,t=e[10]&&kc(e);return{c(){r=Be("div"),t&&t.c(),p(r,"class",Dr.slider__thumb+" "+Dr.slider__thumb_secondary),z(r,"border-radius",ve(e[6].borderRadius)),z(r,"background",e[6].background),z(r,"box-shadow",e[6].boxShadow||"")},m(n,i){ie(n,r,i),t&&t.m(r,null)},p(n,i){n[10]?t?t.p(n,i):(t=kc(n),t.c(),t.m(r,null)):t&&(t.d(1),t=null),i[0]&64&&z(r,"border-radius",ve(n[6].borderRadius)),i[0]&64&&z(r,"background",n[6].background),i[0]&64&&z(r,"box-shadow",n[6].boxShadow||"")},d(n){n&&ne(r),t&&t.d()}}}function kc(e){let r,t,n;return{c(){var i,o,s;r=Be("div"),t=Be("div"),n=xn(e[14]),p(t,"class",Dr["slider__thumb-text-inner"]),z(t,"font-size",((i=e[10])==null?void 0:i.fontSize)||"1em"),z(t,"font-weight",((o=e[10])==null?void 0:o.fontWeight)||""),z(t,"color",((s=e[10])==null?void 0:s.textColor)||"#000"),p(r,"class",Dr["slider__thumb-text"]+" "+Dr["slider__thumb-text_secondary"])},m(i,o){ie(i,r,o),jt(r,t),jt(t,n)},p(i,o){var s,l,a;o[0]&16384&&Ti(n,i[14]),o[0]&1024&&z(t,"font-size",((s=i[10])==null?void 0:s.fontSize)||"1em"),o[0]&1024&&z(t,"font-weight",((l=i[10])==null?void 0:l.fontWeight)||""),o[0]&1024&&z(t,"color",((a=i[10])==null?void 0:a.textColor)||"#000")},d(i){i&&ne(r)}}}function Ac(e){let r,t,n,i,o,s;return{c(){r=Be("input"),p(r,"type","range"),p(r,"class",t=e[18]?Dr.slider__input:`${Dr.slider__input} ${Dr.slider__input_secondary}`),p(r,"min",e[3]),p(r,"max",e[4]),p(r,"step","1"),r.value=n=e[18]?e[13]:e[14],r.disabled=i=!e[11],p(r,"aria-label",e[22])},m(l,a){ie(l,r,a),o||(s=[Ue(r,"input",e[72]),Ue(r,"mousedown",function(){jr(e[15]?e[43]:null)&&(e[15]?e[43]:null).apply(this,arguments)}),Ue(r,"touchstart",function(){jr(e[15]?e[43]:null)&&(e[15]?e[43]:null).apply(this,arguments)}),Ue(r,"focus",function(){jr(e[79])&&e[79].apply(this,arguments)}),Ue(r,"blur",function(){jr(e[80])&&e[80].apply(this,arguments)})],o=!0)},p(l,a){e=l,a[0]&262144&&t!==(t=e[18]?Dr.slider__input:`${Dr.slider__input} ${Dr.slider__input_secondary}`)&&p(r,"class",t),a[0]&8&&p(r,"min",e[3]),a[0]&16&&p(r,"max",e[4]),a[0]&286720&&n!==(n=e[18]?e[13]:e[14])&&(r.value=n),a[0]&2048&&i!==(i=!e[11])&&(r.disabled=i),a[0]&4194304&&p(r,"aria-label",e[22])},d(l){l&&ne(r),o=!1,Wr(s)}}}function F0(e){let r,t,n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N=nr(e[19]),V=[];for(let H=0;H<N.length;H+=1)V[H]=bc(mc(e,N,H));let D=nr(e[20]),te=[];for(let H=0;H<D.length;H+=1)te[H]=yc(pc(e,D,H));let F=e[9]&&wc(e),Y=e[15]&&vc(e),X=e[15]&&Ac(e);return{c(){r=Be("div"),t=Be("div"),n=Be("div"),i=pr(),o=Be("div"),s=pr();for(let H=0;H<V.length;H+=1)V[H].c();l=pr();for(let H=0;H<te.length;H+=1)te[H].c();a=pr(),c=Be("div"),F&&F.c(),u=pr(),Y&&Y.c(),f=pr(),_=Be("input"),w=pr(),X&&X.c(),p(n,"class",Dr.slider__track),z(n,"height",ve(e[7].height)),z(n,"border-radius",ve(e[7].borderRadius)),z(n,"background",e[7].background),z(n,"box-shadow",e[7].boxShadow||""),p(o,"class",Dr["slider__active-track"]),z(o,"left",e[16]==="ltr"?(e[27]*100).toFixed(2)+"%":void 0),z(o,"right",e[16]==="ltr"?void 0:(e[27]*100).toFixed(2)+"%"),z(o,"width",(e[28]*100).toFixed(2)+"%"),z(o,"height",ve(e[8].height)),z(o,"border-radius",ve(e[8].borderRadius)),z(o,"background",e[8].background),z(o,"box-shadow",e[8].boxShadow||""),p(c,"class",Dr.slider__thumb),z(c,"border-radius",ve(e[5].borderRadius)),z(c,"background",e[5].background),z(c,"box-shadow",e[5].boxShadow||""),p(_,"type","range"),p(_,"class",m=e[18]?`${Dr.slider__input} ${Dr.slider__input_secondary}`:Dr.slider__input),p(_,"min",e[3]),p(_,"max",e[4]),p(_,"step","1"),_.value=y=e[18]?e[14]:e[13],_.disabled=h=!e[11],p(_,"aria-label",e[21]),p(t,"class",Dr["slider__tracks-inner"]),p(r,"class",Dr["slider__tracks-wrapper"])},m(H,W){ie(H,r,W),jt(r,t),jt(t,n),jt(t,i),jt(t,o),jt(t,s);for(let U=0;U<V.length;U+=1)V[U]&&V[U].m(t,null);jt(t,l);for(let U=0;U<te.length;U+=1)te[U]&&te[U].m(t,null);jt(t,a),jt(t,c),F&&F.m(c,null),jt(t,u),Y&&Y.m(t,null),jt(t,f),jt(t,_),e[71](_),jt(t,w),X&&X.m(t,null),e[73](t),v||(R=[Ue(_,"input",e[70]),Ue(_,"focus",function(){jr(e[79])&&e[79].apply(this,arguments)}),Ue(_,"blur",function(){jr(e[80])&&e[80].apply(this,arguments)})],v=!0)},p(H,W){if(e=H,W[0]&128&&z(n,"height",ve(e[7].height)),W[0]&128&&z(n,"border-radius",ve(e[7].borderRadius)),W[0]&128&&z(n,"background",e[7].background),W[0]&128&&z(n,"box-shadow",e[7].boxShadow||""),W[0]&134283264&&z(o,"left",e[16]==="ltr"?(e[27]*100).toFixed(2)+"%":void 0),W[0]&134283264&&z(o,"right",e[16]==="ltr"?void 0:(e[27]*100).toFixed(2)+"%"),W[0]&268435456&&z(o,"width",(e[28]*100).toFixed(2)+"%"),W[0]&256&&z(o,"height",ve(e[8].height)),W[0]&256&&z(o,"border-radius",ve(e[8].borderRadius)),W[0]&256&&z(o,"background",e[8].background),W[0]&256&&z(o,"box-shadow",e[8].boxShadow||""),W[0]&524288){N=nr(e[19]);let U;for(U=0;U<N.length;U+=1){const he=mc(e,N,U);V[U]?V[U].p(he,W):(V[U]=bc(he),V[U].c(),V[U].m(t,l))}for(;U<V.length;U+=1)V[U].d(1);V.length=N.length}if(W[0]&1048576){D=nr(e[20]);let U;for(U=0;U<D.length;U+=1){const he=pc(e,D,U);te[U]?te[U].p(he,W):(te[U]=yc(he),te[U].c(),te[U].m(t,a))}for(;U<te.length;U+=1)te[U].d(1);te.length=D.length}e[9]?F?F.p(e,W):(F=wc(e),F.c(),F.m(c,null)):F&&(F.d(1),F=null),W[0]&32&&z(c,"border-radius",ve(e[5].borderRadius)),W[0]&32&&z(c,"background",e[5].background),W[0]&32&&z(c,"box-shadow",e[5].boxShadow||""),e[15]?Y?Y.p(e,W):(Y=vc(e),Y.c(),Y.m(t,f)):Y&&(Y.d(1),Y=null),W[0]&262144&&m!==(m=e[18]?`${Dr.slider__input} ${Dr.slider__input_secondary}`:Dr.slider__input)&&p(_,"class",m),W[0]&8&&p(_,"min",e[3]),W[0]&16&&p(_,"max",e[4]),W[0]&286720&&y!==(y=e[18]?e[14]:e[13])&&(_.value=y),W[0]&2048&&h!==(h=!e[11])&&(_.disabled=h),W[0]&2097152&&p(_,"aria-label",e[21]),e[15]?X?X.p(e,W):(X=Ac(e),X.c(),X.m(t,null)):X&&(X.d(1),X=null)},d(H){H&&ne(r),an(V,H),an(te,H),F&&F.d(),Y&&Y.d(),e[71](null),X&&X.d(),e[73](null),v=!1,Wr(R)}}}function M0(e){let r,t,n,i,o,s;const l=[D0,T0],a=[];function c(u,f){return u[12]?-1:0}return~(r=c(e))&&(t=a[r]=l[r](e)),{c(){t&&t.c(),n=Qt()},m(u,f){~r&&a[r].m(u,f),ie(u,n,f),i=!0,o||(s=Ue(window,"resize",e[45]),o=!0)},p(u,f){let _=r;r=c(u),r===_?~r&&a[r].p(u,f):(t&&(ir(),ee(a[_],1,1,()=>{a[_]=null}),or()),~r?(t=a[r],t?t.p(u,f):(t=a[r]=l[r](u),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(u){i||(B(t),i=!0)},o(u){ee(t),i=!1},d(u){u&&ne(n),~r&&a[r].d(u),o=!1,s()}}}const Pn={width:10,height:10,borderRadius:5,background:"#000"},Po=["rounded_rectangle","circle"],jc=["rounded_rectangle"];function No(e,r,t,n,i){let o=[];if(i)for(let s=e;s<r;++s)o.push((s-t)/(n-t));else{for(let s=t;s<e;++s)o.push((s-t)/(n-t));for(let s=r;s<n+1;++s)o.push((s-t)/(n-t))}return o}function P0(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he,Ie,Te=E,_e=()=>(Te(),Te=M(N,Oe=>t(55,Ie=Oe)),N),be,_t=E,He=()=>(_t(),_t=M(V,Oe=>t(56,be=Oe)),V),ze,Fe=E,qe=()=>(Fe(),Fe=M(R,Oe=>t(57,ze=Oe)),R),Qe,Z=E,Ae=()=>(Z(),Z=M(v,Oe=>t(58,Qe=Oe)),v),ge,et=E,G=()=>(et(),et=M(w,Oe=>t(59,ge=Oe)),w),Ee,We=E,re=()=>(We(),We=M(h,Oe=>t(60,Ee=Oe)),h),it,je=E,Ve=()=>(je(),je=M(y,Oe=>t(61,it=Oe)),y),yt,Vt=E,$=()=>(Vt(),Vt=M(m,Oe=>t(62,yt=Oe)),m),tt,lt=E,dt=()=>(lt(),lt=M(_,Oe=>t(63,tt=Oe)),_),Ge,C=E,$e=()=>(C(),C=M(f,Oe=>t(64,Ge=Oe)),f),le,Ke=E,wt=()=>(Ke(),Ke=M(u,Oe=>t(65,le=Oe)),u),fe,pe=E,at=()=>(pe(),pe=M(l,Oe=>t(66,fe=Oe)),l),Ze,xt=E,Mt=()=>(xt(),xt=M(s,Oe=>t(67,Ze=Oe)),s),qt,Pe=E,pt=()=>(Pe(),Pe=M(c,Oe=>t(68,qt=Oe)),c),Ut,Bt=E,Gt=()=>(Bt(),Bt=M(a,Oe=>t(69,Ut=Oe)),a);e.$$.on_destroy.push(()=>Te()),e.$$.on_destroy.push(()=>_t()),e.$$.on_destroy.push(()=>Fe()),e.$$.on_destroy.push(()=>Z()),e.$$.on_destroy.push(()=>et()),e.$$.on_destroy.push(()=>We()),e.$$.on_destroy.push(()=>je()),e.$$.on_destroy.push(()=>Vt()),e.$$.on_destroy.push(()=>lt()),e.$$.on_destroy.push(()=>C()),e.$$.on_destroy.push(()=>Ke()),e.$$.on_destroy.push(()=>pe()),e.$$.on_destroy.push(()=>xt()),e.$$.on_destroy.push(()=>Pe()),e.$$.on_destroy.push(()=>Bt());let{componentContext:L}=r,{layoutParams:ae=void 0}=r;const ar=Hr(Zr),we=Hr(hs),Et=ar.direction;on(e,Et,Oe=>t(16,he=Oe));let Re,mt,Ne,ot=!1,vt=0,De=100,ct=Pn,Yt=ct,sr=Pn,dr=Pn,Ht,ut=null,St,Ft=null,$t,tr=$t,wr="",Mr="",Ur=!0,Je=!1;function cr(){t(5,ct=Pn),t(6,Yt=ct),t(7,sr=Pn),t(8,dr=Pn),t(47,ut=null),t(48,Ft=null),t(9,$t=void 0),t(10,tr=void 0),t(21,wr=""),t(11,Ur=!0),t(22,Mr="")}let ke=wi(Ze||0,vt,De),q=wi(fe||0,vt,De);function vr(Oe){var de,d;if(!Ur)return;const ht="pageX"in Oe?Oe.pageX:(d=(de=Oe.changedTouches)==null?void 0:de[0])==null?void 0:d.pageX;if(ht===void 0)return;const st=Ne.getBoundingClientRect();let At=(ht-st.left)/st.width;he==="rtl"&&(At=1-At);const Jt=vt+(De-vt)*At,I=Math.round(wi(Jt,vt,De)),rt=(ke+q)/2;t(18,ot=I<rt==ke<q)}function kr(Oe,ht){const st=Number(Oe.target.value);ot===(ht==="first")?(t(14,q=st),l.setValue(st)):(t(13,ke=st),s.setValue(st))}let Pt=!1;function Xr(){if(!Ne)return;const Oe=De-vt,ht=(ut==null?void 0:ut.width)||0,st=(Ft==null?void 0:Ft.width)||0;Math.max(ht,st)*Oe>=(Ne==null?void 0:Ne.clientWidth)?Pt||(L.logError(x(new Error("Slider ticks overlap each other"),{level:"warn"})),Pt=!0):Pt=!1}const Se=Ds(Xr,50);$n(()=>{Xr()}),sn(()=>{Re&&(ar.unregisterFocusable(Re),t(46,Re=void 0))});const Nt=Oe=>kr(Oe,"first");function ur(Oe){Fr[Oe?"unshift":"push"](()=>{mt=Oe,t(2,mt)})}const Xe=Oe=>kr(Oe,"second");function It(Oe){Fr[Oe?"unshift":"push"](()=>{Ne=Oe,t(17,Ne)})}return e.$$set=Oe=>{"componentContext"in Oe&&t(0,L=Oe.componentContext),"layoutParams"in Oe&&t(1,ae=Oe.layoutParams)},e.$$.update=()=>{var Oe,ht,st,At;if(e.$$.dirty[0]&1&&t(54,n=L.origJson),e.$$.dirty[1]&8388608&&n&&cr(),e.$$.dirty[0]&1&&t(53,i=L.json.thumb_value_variable),e.$$.dirty[0]&1&&t(15,o=L.json.thumb_secondary_value_variable),e.$$.dirty[0]&1|e.$$.dirty[1]&4194304&&Mt(t(23,s=i&&L.getVariable(i,"integer")||fi("temp","integer",0))),e.$$.dirty[0]&32769&&at(t(24,l=o&&L.getVariable(o,"integer")||fi("temp","integer",0))),e.$$.dirty[0]&1&&Gt(t(41,a=L.getDerivedFromVars(L.json.min_value))),e.$$.dirty[0]&1&&pt(t(40,c=L.getDerivedFromVars(L.json.max_value))),e.$$.dirty[0]&1&&wt(t(39,u=L.getDerivedFromVars(L.json.thumb_style))),e.$$.dirty[0]&1&&$e(t(38,f=L.getDerivedFromVars(L.json.thumb_secondary_style))),e.$$.dirty[0]&1&&dt(t(37,_=L.getDerivedFromVars(L.json.track_inactive_style))),e.$$.dirty[0]&1&&$(t(36,m=L.getDerivedFromVars(L.json.track_active_style))),e.$$.dirty[0]&1&&Ve(t(35,y=L.getDerivedFromVars(L.json.tick_mark_active_style))),e.$$.dirty[0]&1&&re(t(34,h=L.getDerivedFromVars(L.json.tick_mark_inactive_style))),e.$$.dirty[0]&1&&G(t(33,w=L.getDerivedFromVars(L.json.thumb_text_style))),e.$$.dirty[0]&1&&Ae(t(32,v=L.getDerivedFromVars(L.json.thumb_secondary_text_style))),e.$$.dirty[0]&1&&qe(t(31,R=L.getDerivedFromVars(L.json.accessibility))),e.$$.dirty[0]&1&&_e(t(30,N=L.getDerivedFromVars(L.json.secondary_value_accessibility))),e.$$.dirty[0]&1&&He(t(29,V=L.getDerivedFromVars(L.json.is_enabled))),e.$$.dirty[0]&24|e.$$.dirty[2]&192&&(t(3,vt=io(Ut,vt)),t(4,De=io(qt,De)),Xr()),e.$$.dirty[0]&8216|e.$$.dirty[2]&32){const Jt=wi(Ze||0,vt,De);Jt!==ke&&t(13,ke=Jt)}if(e.$$.dirty[0]&16408|e.$$.dirty[2]&16){const Jt=wi(fe||0,vt,De);Jt!==q&&t(14,q=Jt)}if(e.$$.dirty[0]&32|e.$$.dirty[2]&8&&t(5,ct=Kn(le,Po,ct)),e.$$.dirty[0]&32|e.$$.dirty[2]&4&&t(6,Yt=Kn(Ge,Po,ct)),e.$$.dirty[0]&128|e.$$.dirty[2]&2&&t(7,sr=Kn(tt,jc,sr)),e.$$.dirty[0]&256|e.$$.dirty[2]&1&&t(8,dr=Kn(yt,jc,dr)),e.$$.dirty[1]&1073741824){let Jt=Kn(it,Po,Pn);Jt!==Pn&&t(47,ut=Jt)}if(e.$$.dirty[0]&57368|e.$$.dirty[1]&65536&&(ut?(t(19,Ht=o?No(Math.min(ke,q),Math.max(ke,q)+1,vt,De,!0):No(vt,ke,vt,De,!0)),Xr()):t(19,Ht=[])),e.$$.dirty[1]&536870912){let Jt=Kn(Ee,Po,Pn);Jt!==Pn&&t(48,Ft=Jt)}if(e.$$.dirty[0]&57368|e.$$.dirty[1]&131072&&(Ft?(t(20,St=o?No(Math.min(ke,q),Math.max(ke,q)+1,vt,De,!1):No(ke+1,De+1,vt,De,!0)),Xr()):t(20,St=[])),e.$$.dirty[0]&512|e.$$.dirty[1]&268435456&&t(9,$t=hc(ge,$t)),e.$$.dirty[0]&512|e.$$.dirty[1]&134217728&&t(10,tr=hc(Qe,$t)),e.$$.dirty[0]&1|e.$$.dirty[1]&67108864&&(ze!=null&&ze.description?t(21,wr=ze.description):L.logError(x(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),e.$$.dirty[0]&2048|e.$$.dirty[1]&33554432&&t(11,Ur=Xn(be,Ur)),e.$$.dirty[0]&32769|e.$$.dirty[1]&16777216&&(Ie!=null&&Ie.description?t(22,Mr=Ie.description):o&&L.logError(x(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),e.$$.dirty[0]&4513){let Jt=!1;we.hasAction()?(L.logError(x(new Error('Cannot show "slider" inside component with action'))),Jt=!0):ct===Pn?(L.logError(x(new Error('Missing "thumb_style" in slider'))),Jt=!0):dr===Pn?(L.logError(x(new Error('Missing "track_active_style" in slider'))),Jt=!0):sr===Pn&&(L.logError(x(new Error('Missing "track_inactive_style" in slider'))),Jt=!0),Jt!==Je&&t(12,Je=Jt)}e.$$.dirty[0]&96&&t(52,D=ve(Math.max(...[ct.width,Yt.width,0].filter(Vn)))),e.$$.dirty[0]&96&&t(51,te=ve(Math.max(...[ct.height,Yt.height,0].filter(Vn)))),e.$$.dirty[0]&8216&&t(50,F=(ke-vt)/(De-vt)),e.$$.dirty[0]&49176&&t(49,Y=o?(q-vt)/(De-vt):void 0),e.$$.dirty[1]&786432&&t(28,X=Y!==void 0?Math.abs(Y-F):F),e.$$.dirty[1]&786432&&t(27,H=Y!==void 0?Math.min(Y,F):0),e.$$.dirty[0]&1632|e.$$.dirty[1]&4128768&&t(26,W={"--divkit-slider-thumb-width":ve(ct.width),"--divkit-slider-thumb-height":ve(ct.height),"--divkit-slider-thumb-secondary-width":ve(Yt.width),"--divkit-slider-thumb-secondary-height":ve(Yt.height),"--divkit-slider-text-offset-x":(Oe=$t==null?void 0:$t.offset)!=null&&Oe.x?yn($t.offset.x):void 0,"--divkit-slider-text-offset-y":(ht=$t==null?void 0:$t.offset)!=null&&ht.y?yn($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(st=tr==null?void 0:tr.offset)!=null&&st.x?yn(tr.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(At=tr==null?void 0:tr.offset)!=null&&At.y?yn(tr.offset.y):void 0,"--divkit-slider-tick-active-width":ut?ve(ut.width):void 0,"--divkit-slider-tick-active-height":ut?ve(ut.height):void 0,"--divkit-slider-tick-active-border-radius":ut?ve(ut.borderRadius):void 0,"--divkit-slider-tick-active-background":(ut==null?void 0:ut.background)||void 0,"--divkit-slider-tick-active-box-shadow":(ut==null?void 0:ut.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Ft?ve(Ft.width):void 0,"--divkit-slider-tick-inactive-height":Ft?ve(Ft.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ft?ve(Ft.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(Ft==null?void 0:Ft.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(Ft==null?void 0:Ft.boxShadow)||void 0,"--divkit-slider-max-thumb-width":D,"--divkit-slider-max-thumb-height":te,"--divkit-slider-track-part":F,"--divkit-slider-track-secondary-part":Y}),e.$$.dirty[0]&65536&&t(25,U={direction:he}),e.$$.dirty[0]&5|e.$$.dirty[1]&32768&&L.json&&mt&&(Re&&(ar.unregisterFocusable(Re),t(46,Re=void 0)),L.id&&!L.fakeElement&&(t(46,Re=L.id),ar.registerFocusable(Re,{focus(){mt&&mt.focus()}})))},[L,ae,mt,vt,De,ct,Yt,sr,dr,$t,tr,Ur,Je,ke,q,o,he,Ne,ot,Ht,St,wr,Mr,s,l,U,W,H,X,V,N,R,v,w,h,y,m,_,f,u,c,a,Et,vr,kr,Se,Re,ut,Ft,Y,F,te,D,i,n,Ie,be,ze,Qe,ge,Ee,it,yt,tt,Ge,le,fe,Ze,qt,Ut,Nt,ur,Xe,It]}class N0 extends Rr{constructor(r){super(),zr(this,r,P0,M0,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const O0="divkit-49edd",z0="divkit-cadcd",R0="divkit-0dfa7",L0="divkit-88914",B0="divkit-e1c57",H0="divkit-11674",di={input:O0,"input_alignment-horizontal_center":"divkit-e82eb","input_alignment-horizontal_end":"divkit-cfa85",input__aligner:z0,input__input:R0,input__placeholder:L0,"input_alignment-vertical_start":"divkit-492f7","input_alignment-vertical_end":"divkit-4c2c2","input_alignment-vertical_baseline":"divkit-3545c","input_highlight-color":"divkit-2db43",input__input_singleline:B0,"input__scroll-wrapper":"divkit-20542",input__input_multiline:H0,"input__input_has-custom-focus":"divkit-26a87"};function Pl(e,r){if(e===r)return{start:e.length,added:0,removed:0};if(e.length>r.length){const o=Pl(r,e);return{start:o.start,added:o.removed,removed:o.added}}let t=0,n=r.length-1;const i=r.length-e.length;for(;t<n&&t<e.length&&e[t]===r[t];)++t;for(;n-i>=t&&e[n-i]===r[n];)--n;return++n,{start:t,added:n-t,removed:n-t-i}}class Cc{constructor(r){this.char=r}}class oi{constructor(r,t,n){this.char=r,this.filter=t,this.placeholder=n}}class If{constructor(r){gr(this,"maskData");gr(this,"filters",new Map);gr(this,"destructedValue",[]);gr(this,"cursorPos",0);this.maskData=r,this.updateMaskData(r)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let r="";for(let t=0;t<this.destructedValue.length;++t){const n=this.destructedValue[t];if(n instanceof Cc)r+=n.char;else if(n instanceof oi)if(n.char)r+=n.char;else if(this.maskData.alwaysVisible)r+=n.placeholder;else break}return r}firstEmptyHolderIndex(){const r=this.destructedValue.findIndex(t=>t instanceof oi&&!t.char);return r!==-1?r:this.destructedValue.length}updateMaskData(r,t=!0){const n=this.maskData!==r&&t?this.rawValue:null;this.filters=new Map,this.maskData=r,this.maskData.decoding.forEach(i=>{if(i.filter)try{const o=new RegExp(i.filter);this.filters.set(i.key,o)}catch(o){this.onException(x(o,{level:"error",additional:{key:i.key}}))}}),this.destructedValue=this.maskData.pattern.split("").map(i=>{const o=this.maskData.decoding.find(s=>s.key===i);return o?new oi(null,this.filters.get(o.key),o.placeholder):new Cc(i)}),n!==null&&this.overrideRawValue(n)}overrideRawValue(r){this.clearRange(0,this.destructedValue.length),this.replaceChars(r,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(r,t){const n=Pl(this.value,r);t!==void 0&&(n.start=Math.max(0,t-n.added));const i=this.buildBodySubstring(n,r),o=this.buildTailSubstring(n);this.cleanup(n);const s=this.firstEmptyHolderIndex(),l=o?this.calculateMaxShift(o,s):void 0;this.replaceChars(i,s,l);const a=this.firstEmptyHolderIndex();this.replaceChars(o,a),this.calculateCursorPosition(n,a)}buildBodySubstring(r,t){return t.substring(r.start,r.start+r.added)}buildTailSubstring(r){return this.collectValueRange(r.start+r.removed,this.destructedValue.length-1)}calculateMaxShift(r,t){if(this.filters.size<=1){let o=0,s=t;for(;s<this.destructedValue.length;)this.destructedValue[s]instanceof oi&&++o,++s;return Math.max(0,o-r.length)}const n=this.calculateInsertableSubstring(r,t);let i=0;for(;i<this.destructedValue.length&&n===this.calculateInsertableSubstring(r,t+i);)++i;return Math.max(0,i-1)}cleanup(r){if(r.added===0&&r.removed===1){let t=r.start;for(;t>=0;){const n=this.destructedValue[t];if(n instanceof oi&&n.char!==null){n.char=null;break}else--t}}this.clearRange(r.start,this.destructedValue.length)}clearRange(r,t){let n=r;for(;n<t&&n<this.destructedValue.length;){const i=this.destructedValue[n];i instanceof oi&&(i.char=null),++n}}calculateCursorPosition(r,t){const n=this.firstEmptyHolderIndex();let i;r.start<n?i=Math.min(this.firstHolderAfter(t),this.value.length):i=n,this.cursorPos=i}calculateInsertableSubstring(r,t){let n="",i=t;const o=()=>{var s;for(;i<this.destructedValue.length&&!(this.destructedValue[i]instanceof oi);)++i;return(s=this.destructedValue[i])==null?void 0:s.filter};return r.split("").forEach(s=>{const l=o();l!=null&&l.test(s)&&(n+=s,++i)}),n}collectValueRange(r,t){let n="",i=r;for(;i<=t;){const o=this.destructedValue[i];o instanceof oi&&o.char!==null&&(n+=o.char),++i}return n}replaceChars(r,t,n){let i=this.calculateInsertableSubstring(r,t);n!==void 0&&(i=i.substring(0,n));let o=t,s=0;for(;o<this.destructedValue.length&&s<i.length;){const l=this.destructedValue[o],a=i[s];l instanceof oi&&(l.char=a,++s),++o}}firstHolderAfter(r){let t=r;for(;t<this.destructedValue.length&&!(this.destructedValue[t]instanceof oi);)++t;return t}}class W0 extends If{constructor(r,t){super(r),this.logError=t}onException(r){this.logError(r)}}function U0(e,r,t){if(typeof e.pattern=="string"&&Array.isArray(e.pattern_elements)&&e.pattern_elements.every(n=>n.key&&typeof n.key=="string")){const n={pattern:e.pattern,alwaysVisible:!!e.always_visible,decoding:e.pattern_elements.map(i=>({key:i.key,filter:i.regex&&typeof i.regex=="string"?i.regex:void 0,placeholder:i.placeholder&&typeof i.placeholder=="string"?i.placeholder:"_"}))};return t?(t.updateMaskData(n),t):new W0(n,r)}return t||null}class G0 extends If{constructor(t=void 0,n){super({pattern:"",decoding:[],alwaysVisible:!1});gr(this,"currencyFormatter",new Intl.NumberFormat);gr(this,"decimalSeparator",".");gr(this,"localeDigits",{});gr(this,"trimZeroRegExp",new RegExp(""));this.logError=n,this.initFormatter(t)}updateCurrencyParams(t){const n=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const i=n.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(i)}initFormatter(t){try{this.currencyFormatter=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce((n,i,o)=>(n[o]=this.currencyFormatter.format(o)[0],n),{}),this.trimZeroRegExp=new RegExp(`^${this.localeDigits[0]}+`)}catch(n){this.onException(x(n,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const n=this.currencyFormatter.format(t),i=this.formatPattern(n),o=[{key:"#",filter:`[${[...Object.values(this.localeDigits)].join("")}]`,placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:`[${this.decimalSeparator}]`,placeholder:this.decimalSeparator}];this.updateMaskData({pattern:i,decoding:o,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const n=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(n),super.overrideRawValue(t)}applyChangeFrom(t,n){const i=Pl(this.value,t),o=this.value.lastIndexOf(this.decimalSeparator),s=t.lastIndexOf(this.decimalSeparator),l=o!==s||o===-1&&s===-1,a=this.validFormat(t,i);this.cleanup(i);const c=this.parseFormat(a)||0;l&&this.invalidateMaskDataForFormatted(c),this.replaceChars(a,0),this.value.length>i.start&&!this.isDigit(this.value[i.start])?this.cursorPos=n!=null?n:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(n!=null?n:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,n=>{const i=this.localeDigits[n];return i||(n===this.decimalSeparator?".":"")}))}formatPattern(t){let n="";for(const i of t)n+=this.isDigit(i)?"#":i;return n}validFormat(t,n){if(!t)return"";let i=-1,o=0;for(;o<t.length;){if(t[o]===this.decimalSeparator&&!this.inDiff(n,o)){i=o;break}o++}let s=-1;n.added===1&&n.removed===0&&[",","."].includes(t[n.start])&&(s=n.start);const l=this.currencyFormatter.resolvedOptions().maximumFractionDigits||0;let a=l;if(i!==-1)for(o=i;o<t.length;)this.isDigit(t[o])&&!this.inDiff(n,o)&&a--,o++;else{let _=!1;for(let m=0;m<t.length;m++){const y=t[m];y===this.decimalSeparator?_=!0:!this.inDiff(n,m)&&_&&this.isDigit(y)&&a--}}const c=t.includes(this.decimalSeparator)||s!==-1,u=[];o=t.length-1;let f=!1;for(;o>=0;){const _=t[o],m=u.length<=l;this.isDigit(_)?this.inDiff(n,o)&&!f&&c?a>0&&(u.push(_),a--):u.push(_):m&&i===-1&&o===s?(u.push(this.decimalSeparator),f=!0):m&&_===this.decimalSeparator&&(i===o||i===-1)&&(u.push(this.decimalSeparator),f=!0,i=o),o--}return u.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,n){return t.start<=n&&n<t.start+t.added}isDigit(t){return!!this.localeDigits[t]}onException(t){this.logError(t)}}function Y0(e,r,t){return t?(t.updateCurrencyParams(e.locale),t):new G0(e.locale,r)}const Tf=3;function tl(e){const r=e.textContent;let t=0;return typeof r=="string"&&(t+=r.length,e instanceof HTMLElement&&(e.tagName==="DIV"||e.tagName==="BR")&&++t),t}function Ec(e,r){var t;try{let n=0;const i=window.getSelection();if(!i)return 0;const o=i.getRangeAt(0);let s;if(o&&(n+=r==="end"?o.endOffset:o.startOffset,s=r==="end"?o.endContainer:o.startContainer),s instanceof HTMLElement){let l=0;for(let a=0,c=Math.min(n,s.childNodes.length);a<c;++a)l+=tl(s.childNodes[a]);n=l}for(;s&&s!==e;){const l=s.parentNode;if(!l)return 0;const a=Array.from(l.childNodes).indexOf(s);for(let c=0;c<a;++c){const u=l.childNodes[c];n+=tl(u)}s instanceof HTMLElement&&(s.tagName==="DIV"&&((t=l.childNodes[a-1])==null?void 0:t.nodeType)===Tf||s.tagName==="BR")&&++n,s=l}return n}catch{return 0}}function rl(e,r,t,n){if(e.nodeType===Tf){try{t==="start"?r.setStart(e,n):r.setEnd(e,n)}catch{}return}if(e instanceof HTMLElement&&e.tagName==="BR"){try{const i=window.getSelection();if(i){i.removeAllRanges();const o=document.createRange(),s=e.parentNode,l=Array.from(s.childNodes).indexOf(e)+1;o.setStart(s,l),o.setEnd(s,l),i.addRange(o)}}catch{}return}for(let i=0,o=e.childNodes.length;i<o;++i){const s=e.childNodes[i],l=tl(s);if(n<=l){rl(s,r,t,n);return}n-=l}}function J0(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function q0(e){let r,t;return r=new vn({props:{cls:gt("input",di,e[20]),style:e[19],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[x0,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({119:n,120:i,121:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>[0,0,0,(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1048576&&(o.cls=gt("input",di,n[20])),i[0]&524288&&(o.style=n[19]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2555324|i[1]&32768|i[3]&1006632960&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function K0(e){let r,t,n,i,o,s,l,a,c;return{c(){r=Be("input"),p(r,"type",e[10]),p(r,"inputmode",e[11]),p(r,"class",t=gt("input__input",di,{"has-custom-focus":e[121],singleline:!0})),p(r,"autocomplete","off"),p(r,"autocapitalize",e[13]),p(r,"aria-label",e[12]),p(r,"aria-describedby",n=e[15]||void 0),p(r,"style",i=Ct(e[18])),r.disabled=o=!e[4],p(r,"maxlength",s=e[5]===1/0?void 0:e[5]),p(r,"placeholder",e[21]),r.value=e[3],p(r,"enterkeyhint",l=e[14]==="default"?void 0:e[14])},m(u,f){ie(u,r,f),e[103](r),a||(c=[Ue(r,"input",e[48]),Ue(r,"keydown",e[50]),Ue(r,"mousedown",function(){jr(e[46]?e[51]:void 0)&&(e[46]?e[51]:void 0).apply(this,arguments)}),Ue(r,"click",function(){jr(e[46]?e[52]:void 0)&&(e[46]?e[52]:void 0).apply(this,arguments)}),Ue(r,"focus",function(){jr(e[119])&&e[119].apply(this,arguments)}),Ue(r,"blur",function(){jr(e[120])&&e[120].apply(this,arguments)})],a=!0)},p(u,f){e=u,f[0]&1024&&p(r,"type",e[10]),f[0]&2048&&p(r,"inputmode",e[11]),f[3]&268435456&&t!==(t=gt("input__input",di,{"has-custom-focus":e[121],singleline:!0}))&&p(r,"class",t),f[0]&8192&&p(r,"autocapitalize",e[13]),f[0]&4096&&p(r,"aria-label",e[12]),f[0]&32768&&n!==(n=e[15]||void 0)&&p(r,"aria-describedby",n),f[0]&262144&&i!==(i=Ct(e[18]))&&p(r,"style",i),f[0]&16&&o!==(o=!e[4])&&(r.disabled=o),f[0]&32&&s!==(s=e[5]===1/0?void 0:e[5])&&p(r,"maxlength",s),f[0]&2097152&&p(r,"placeholder",e[21]),f[0]&8&&r.value!==e[3]&&(r.value=e[3]),f[0]&16384&&l!==(l=e[14]==="default"?void 0:e[14])&&p(r,"enterkeyhint",l)},d(u){u&&ne(r),e[103](null),a=!1,Wr(c)}}}function X0(e){let r,t,n,i,o,s,l=!e[8]&&e[21]&&Sc(e);function a(f,_){return f[4]?Q0:Z0}let c=a(e),u=c(e);return{c(){r=Be("span"),l&&l.c(),t=pr(),n=Be("span"),i=xn(""),s=pr(),u.c(),p(n,"class",di.input__aligner),p(n,"aria-hidden","true"),p(n,"style",o=Ct(e[17])),p(r,"class",di["input__scroll-wrapper"])},m(f,_){ie(f,r,_),l&&l.m(r,null),jt(r,t),jt(r,n),jt(n,i),jt(r,s),u.m(r,null)},p(f,_){!f[8]&&f[21]?l?l.p(f,_):(l=Sc(f),l.c(),l.m(r,t)):l&&(l.d(1),l=null),_[0]&131072&&o!==(o=Ct(f[17]))&&p(n,"style",o),c===(c=a(f))&&u?u.p(f,_):(u.d(1),u=c(f),u&&(u.c(),u.m(r,null)))},d(f){f&&ne(r),l&&l.d(),u.d()}}}function Sc(e){let r,t,n;return{c(){r=Be("div"),t=xn(e[21]),p(r,"class",di.input__placeholder),p(r,"aria-hidden","true"),p(r,"style",n=Ct(e[18]))},m(i,o){ie(i,r,o),jt(r,t)},p(i,o){o[0]&2097152&&Ti(t,i[21]),o[0]&262144&&n!==(n=Ct(i[18]))&&p(r,"style",n)},d(i){i&&ne(r)}}}function Z0(e){let r,t,n,i,o;return{c(){r=Be("span"),p(r,"class",gt("input__input",di,{multiline:!0})),p(r,"autocapitalize",e[13]),p(r,"contenteditable","false"),p(r,"role","textbox"),p(r,"aria-label",e[12]),p(r,"aria-disabled","true"),p(r,"aria-multiline","true"),p(r,"aria-describedby",t=e[15]||void 0),p(r,"style",n=Ct(e[18])),e[8]===void 0&&Rn(()=>e[102].call(r))},m(s,l){ie(s,r,l),e[101](r),e[8]!==void 0&&(r.innerText=e[8]),i||(o=Ue(r,"input",e[102]),i=!0)},p(s,l){l[0]&8192&&p(r,"autocapitalize",s[13]),l[0]&4096&&p(r,"aria-label",s[12]),l[0]&32768&&t!==(t=s[15]||void 0)&&p(r,"aria-describedby",t),l[0]&262144&&n!==(n=Ct(s[18]))&&p(r,"style",n),l[0]&256&&s[8]!==r.innerText&&(r.innerText=s[8])},d(s){s&&ne(r),e[101](null),i=!1,o()}}}function Q0(e){let r,t,n,i,o,s,l;return{c(){r=Be("span"),p(r,"class",t=gt("input__input",di,{"has-custom-focus":e[121],multiline:!0})),p(r,"autocapitalize",e[13]),p(r,"contenteditable","true"),p(r,"role","textbox"),p(r,"tabindex","0"),p(r,"aria-label",e[12]),p(r,"aria-multiline","true"),p(r,"enterkeyhint",n=e[14]==="default"?void 0:e[14]),p(r,"aria-describedby",i=e[15]||void 0),p(r,"style",o=Ct(e[18])),e[8]===void 0&&Rn(()=>e[100].call(r))},m(a,c){ie(a,r,c),e[99](r),e[8]!==void 0&&(r.innerText=e[8]),s||(l=[Ue(r,"input",e[100]),Ue(r,"input",e[48]),Ue(r,"keydown",e[49]),Ue(r,"keydown",e[50]),Ue(r,"paste",rm),Ue(r,"mousedown",function(){jr(e[46]?e[51]:void 0)&&(e[46]?e[51]:void 0).apply(this,arguments)}),Ue(r,"click",function(){jr(e[46]?e[52]:void 0)&&(e[46]?e[52]:void 0).apply(this,arguments)}),Ue(r,"focus",function(){jr(e[119])&&e[119].apply(this,arguments)}),Ue(r,"blur",function(){jr(e[120])&&e[120].apply(this,arguments)})],s=!0)},p(a,c){e=a,c[3]&268435456&&t!==(t=gt("input__input",di,{"has-custom-focus":e[121],multiline:!0}))&&p(r,"class",t),c[0]&8192&&p(r,"autocapitalize",e[13]),c[0]&4096&&p(r,"aria-label",e[12]),c[0]&16384&&n!==(n=e[14]==="default"?void 0:e[14])&&p(r,"enterkeyhint",n),c[0]&32768&&i!==(i=e[15]||void 0)&&p(r,"aria-describedby",i),c[0]&262144&&o!==(o=Ct(e[18]))&&p(r,"style",o),c[0]&256&&e[8]!==r.innerText&&(r.innerText=e[8])},d(a){a&&ne(r),e[99](null),s=!1,Wr(l)}}}function x0(e){let r;function t(o,s){return o[7]?X0:K0}let n=t(e),i=n(e);return{c(){i.c(),r=Qt()},m(o,s){i.m(o,s),ie(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&&ne(r),i.d(o)}}}function $0(e){let r,t,n,i;const o=[q0,J0],s=[];function l(a,c){return a[9]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}const em=typeof document<"u"&&"inputMode"in document.createElement("input"),Vc={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"},tm=new Set(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Shift","Alt","Command","Meta","Escape"]);function rm(e){if(e.preventDefault(),e.clipboardData){let r=e.clipboardData.getData("text/plain");r=r.trim(),document.execCommand("inserttext",!1,r)}}function nm(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,W,U,he,Ie,Te,_e,be,_t,He,ze,Fe,qe,Qe=E,Z=()=>(Qe(),Qe=M(s,ce=>t(74,qe=ce)),s),Ae,ge=E,et=()=>(ge(),ge=M(l,ce=>t(75,Ae=ce)),l),G,Ee=E,We=()=>(Ee(),Ee=M(Te,ce=>t(108,G=ce)),Te),re,it=E,je=()=>(it(),it=M(he,ce=>t(76,re=ce)),he),Ve,yt=E,Vt=()=>(yt(),yt=M(Y,ce=>t(77,Ve=ce)),Y),$,tt=E,lt=()=>(tt(),tt=M(U,ce=>t(78,$=ce)),U),dt,Ge,C=E,$e=()=>(C(),C=M(F,ce=>t(80,Ge=ce)),F),le,Ke=E,wt=()=>(Ke(),Ke=M(te,ce=>t(81,le=ce)),te),fe,pe=E,at=()=>(pe(),pe=M(D,ce=>t(82,fe=ce)),D),Ze,xt=E,Mt=()=>(xt(),xt=M(V,ce=>t(83,Ze=ce)),V),qt,Pe=E,pt=()=>(Pe(),Pe=M(W,ce=>t(84,qt=ce)),W),Ut,Bt=E,Gt=()=>(Bt(),Bt=M(H,ce=>t(85,Ut=ce)),H),L,ae=E,ar=()=>(ae(),ae=M(N,ce=>t(86,L=ce)),N),we,Et=E,Re=()=>(Et(),Et=M(R,ce=>t(87,we=ce)),R),mt,Ne=E,ot=()=>(Ne(),Ne=M(v,ce=>t(88,mt=ce)),v),vt,De=E,ct=()=>(De(),De=M(w,ce=>t(89,vt=ce)),w),Yt,sr=E,dr=()=>(sr(),sr=M(h,ce=>t(90,Yt=ce)),h),Ht,ut=E,St=()=>(ut(),ut=M(y,ce=>t(91,Ht=ce)),y),Ft,$t=E,tr=()=>($t(),$t=M(m,ce=>t(92,Ft=ce)),m),wr,Mr=E,Ur=()=>(Mr(),Mr=M(_,ce=>t(93,wr=ce)),_),Je,cr=E,ke=()=>(cr(),cr=M(f,ce=>t(94,Je=ce)),f),q,vr=E,kr=()=>(vr(),vr=M(u,ce=>t(95,q=ce)),u),Pt,Xr=E,Se=()=>(Xr(),Xr=M(c,ce=>t(96,Pt=ce)),c),Nt,ur=E,Xe=()=>(ur(),ur=M(a,ce=>t(97,Nt=ce)),a),It,Oe=E,ht=()=>(Oe(),Oe=M(Ie,ce=>t(98,It=ce)),Ie),st,At=E,Jt=()=>(At(),At=M(X,ce=>t(46,st=ce)),X);e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>yt()),e.$$.on_destroy.push(()=>tt()),e.$$.on_destroy.push(()=>C()),e.$$.on_destroy.push(()=>Ke()),e.$$.on_destroy.push(()=>pe()),e.$$.on_destroy.push(()=>xt()),e.$$.on_destroy.push(()=>Pe()),e.$$.on_destroy.push(()=>Bt()),e.$$.on_destroy.push(()=>ae()),e.$$.on_destroy.push(()=>Et()),e.$$.on_destroy.push(()=>Ne()),e.$$.on_destroy.push(()=>De()),e.$$.on_destroy.push(()=>sr()),e.$$.on_destroy.push(()=>ut()),e.$$.on_destroy.push(()=>$t()),e.$$.on_destroy.push(()=>Mr()),e.$$.on_destroy.push(()=>cr()),e.$$.on_destroy.push(()=>vr()),e.$$.on_destroy.push(()=>Xr()),e.$$.on_destroy.push(()=>ur()),e.$$.on_destroy.push(()=>Oe()),e.$$.on_destroy.push(()=>At());let{componentContext:I}=r,{layoutParams:rt=void 0}=r;const de=Hr(Zr),d=de.direction;on(e,d,ce=>t(79,dt=ce));let Me,kt,Tr=!1,lr=null,O="",Cr="",Qr=!1,b="",A=12,K,oe="",se,Ce="",bt="#000",P="",Ye="start",Ot="center",Tt="multi_line_text",zt="text",rr,rn="",Pr=null,fn="",xr="",Ln="",gn=!0,$r=1/0,dn="off",Bn="default",Yn="",An=!1,Hn=!0,Jn=0,cn=0;function ji(){t(55,b=""),t(56,A=12),t(57,K=void 0),t(58,oe=""),t(59,se=void 0),t(61,bt="#000"),t(62,P=""),t(63,Ye="left"),t(64,Ot="center"),t(65,Tt="multi_line_text"),t(10,zt="text"),t(11,rr=void 0),t(4,gn=!0),t(5,$r=1/0),t(13,dn="off"),t(14,Bn="default"),t(15,Yn=""),Jn=0,cn=0}function Ci(ce){(ce==null?void 0:ce.type)==="fixed_length"?t(54,lr=U0(ce,I.logError,lr)):(ce==null?void 0:ce.type)==="currency"&&t(54,lr=Y0(ce,I.logError,lr)),lr&&J()}function qn(ce){if(!Array.isArray(G)||!ce)return!0;for(const Zt of G)if(Zt){if(Zt.type==="regex")try{if(!new RegExp("^"+(Zt.pattern||"")+"$").test(ce))return!1}catch(hr){return I.logError(x(new Error("Failed to create a regex"),{additional:{originalError:String(hr)}})),!0}else if(Zt.type==="expression"&&!Zt.condition)return!1}return!0}function Ni(ce){const Zt=ce.target;let hr=(be?Zt.innerText:Zt.value)||"";hr===`
|
|
9
|
-
`&&(hr=""),hr.length>$r&&(hr=t(8,Cr=O),Zt instanceof HTMLInputElement&&(Zt.value=hr)),O!==hr&&(qn(hr)?(t(3,O=t(8,Cr=hr)),s.setValue(hr),lr&&Q(),xe()):(t(3,O=t(8,Cr=hr)),Zt instanceof HTMLInputElement&&(Zt.value=hr),wn().then(()=>{j(Jn,cn)})))}function ti(ce){O.length>=$r&&!tm.has(ce.key)&&!(ce.ctrlKey||ce.altKey||ce.metaKey)&&ce.preventDefault()}function Dn(ce){if(Jn=k()||0,cn=T()||0,ce.ctrlKey||ce.metaKey||ce.altKey||ce.shiftKey)return;const Zt=I.json.enter_key_actions;if(ce.key==="Enter"&&Array.isArray(Zt)&&Zt.length){const Fn=I.getJsonWithVars(Zt).filter(Mn=>Mn.log_id).filter(En);ce.preventDefault(),I.execAnyActions(Fn)}}function ft(){Tr=!1,setTimeout(()=>{Tr=!0},250)}function g(){if(!Tr)if(kt instanceof HTMLInputElement)kt.select();else{const ce=window.getSelection(),Zt=document.createRange();Zt.selectNodeContents(kt),ce&&(ce.removeAllRanges(),ce.addRange(Zt))}}function k(){return kt instanceof HTMLInputElement?kt.selectionStart===null?void 0:kt.selectionStart:Ec(kt,"start")}function T(){return kt instanceof HTMLInputElement?kt.selectionEnd===null?void 0:kt.selectionEnd:Ec(kt,"end")}function j(ce,Zt){if(kt instanceof HTMLInputElement)t(2,kt.selectionStart=ce,kt),t(2,kt.selectionEnd=Zt,kt);else{const hr=window.getSelection();if(hr){hr.removeAllRanges();const Fn=document.createRange();rl(kt,Fn,"start",ce),rl(kt,Fn,"end",Zt),hr.addRange(Fn)}}}async function Q(){if(!kt||!lr)return;const ce=k()||0,Zt=T()||0;lr.applyChangeFrom(O,Zt===ce?Zt:0),l.set(lr.rawValue),Uo(s,qe=t(3,O=t(8,Cr=lr.value)),qe);const hr=lr.cursorPosition;await wn(),document.activeElement===kt&&j(hr,hr)}async function J(){if(!kt||!lr)return;lr.overrideRawValue(Ae),l.set(lr.rawValue),Uo(s,qe=t(3,O=t(8,Cr=lr.value)),qe);const ce=lr.cursorPosition;await wn(),document.activeElement===kt&&j(ce,ce)}function xe(){const ce=Hn;Hn=!1;const Zt=I.json.validators;if(!Array.isArray(Zt)||!Zt.length)return;const Fn=I.getJsonWithVars(Zt).filter(Gr=>(Gr.type==="regex"||Gr.type==="expression")&&Gr.label_id&&Gr.variable),Mn=[];Fn.forEach(Gr=>{const ni=I.getVariable(Gr.variable);if(!ni)return;if(ni.getType()!=="boolean"){ce&&I.logError(x(new Error("Incorrect variable type for the validator"),{additional:{variable:Gr.variable}}));return}let ii=!1;if(O===""&&(Gr.allow_empty===!0||Gr.allow_empty===1))ii=!0;else if(Gr.type==="regex"){if(!Gr.pattern||typeof Gr.pattern!="string")return;try{ii=new RegExp("^"+Gr.pattern+"$").test(O)}catch{ce&&I.logError(x(new Error("Failed to create a regular expression using the validator pattern"),{additional:{pattern:Gr.pattern}}));return}}else if(Gr.type==="expression")ii=Gr.condition===!0||Gr.condition===1;else return;if(ni.setValue(ii),!ii){const gi=de.getComponentId(Gr.label_id);gi&&Mn.push(gi)}}),t(15,Yn=Mn.join(" "))}$n(()=>{t(70,An=!0),kt&&lr&&Ae&&(lr.overrideRawValue(Ae),Uo(s,qe=t(3,O=t(8,Cr=lr.value)),qe))}),sn(()=>{t(70,An=!1),Me&&(de.unregisterFocusable(Me),t(53,Me=void 0))});function nt(ce){Fr[ce?"unshift":"push"](()=>{kt=ce,t(2,kt)})}function Er(){Cr=this.innerText,t(8,Cr),t(54,lr),t(3,O),t(74,qe),t(5,$r),t(6,s),t(84,qt),t(71,i),t(0,I)}function _r(ce){Fr[ce?"unshift":"push"](()=>{kt=ce,t(2,kt)})}function Ar(){Cr=this.innerText,t(8,Cr),t(54,lr),t(3,O),t(74,qe),t(5,$r),t(6,s),t(84,qt),t(71,i),t(0,I)}function ri(ce){Fr[ce?"unshift":"push"](()=>{kt=ce,t(2,kt)})}return e.$$set=ce=>{"componentContext"in ce&&t(0,I=ce.componentContext),"layoutParams"in ce&&t(1,rt=ce.layoutParams)},e.$$.update=()=>{var ce;if(e.$$.dirty[0]&1&&t(73,n=I.origJson),e.$$.dirty[2]&2048&&n&&ji(),e.$$.dirty[0]&1&&t(71,i=I.json.text_variable),e.$$.dirty[0]&1&&t(72,o=(ce=I.json.mask)==null?void 0:ce.raw_text_variable),e.$$.dirty[0]&1|e.$$.dirty[2]&512&&Z(t(6,s=i&&I.getVariable(i,"string")||fi("temp","string",""))),e.$$.dirty[0]&1|e.$$.dirty[2]&1024&&et(t(16,l=o&&I.getVariable(o,"string")||fi("temp","string",""))),e.$$.dirty[0]&1&&Xe(t(45,a=I.getDerivedFromVars(I.json.hint_text))),e.$$.dirty[0]&1&&Se(t(44,c=I.getDerivedFromVars(I.json.hint_color))),e.$$.dirty[0]&1&&kr(t(43,u=I.getDerivedFromVars(I.json.font_size))),e.$$.dirty[0]&1&&ke(t(42,f=I.getDerivedFromVars(I.json.font_weight))),e.$$.dirty[0]&1&&Ur(t(41,_=I.getDerivedFromVars(I.json.font_weight_value))),e.$$.dirty[0]&1&&tr(t(40,m=I.getDerivedFromVars(I.json.font_family))),e.$$.dirty[0]&1&&St(t(39,y=I.getDerivedFromVars(I.json.line_height))),e.$$.dirty[0]&1&&dr(t(38,h=I.getDerivedFromVars(I.json.letter_spacing))),e.$$.dirty[0]&1&&ct(t(37,w=I.getDerivedFromVars(I.json.text_color))),e.$$.dirty[0]&1&&ot(t(36,v=I.getDerivedFromVars(I.json.highlight_color))),e.$$.dirty[0]&1&&Re(t(35,R=I.getDerivedFromVars(I.json.text_alignment_horizontal))),e.$$.dirty[0]&1&&ar(t(34,N=I.getDerivedFromVars(I.json.text_alignment_vertical))),e.$$.dirty[0]&1&&Mt(t(33,V=I.getDerivedFromVars(I.json.keyboard_type))),e.$$.dirty[0]&1&&at(t(32,D=I.getDerivedFromVars(I.json.mask))),e.$$.dirty[0]&1&&wt(t(31,te=I.getDerivedFromVars(I.json.max_visible_lines))),e.$$.dirty[0]&1&&$e(t(30,F=I.getDerivedFromVars(I.json.paddings))),e.$$.dirty[0]&1&&Vt(t(29,Y=I.getDerivedFromVars(I.json.accessibility))),e.$$.dirty[0]&1&&Jt(t(28,X=I.getDerivedFromVars(I.json.select_all_on_focus))),e.$$.dirty[0]&1&&Gt(t(27,H=I.getDerivedFromVars(I.json.is_enabled))),e.$$.dirty[0]&1&&pt(t(26,W=I.getDerivedFromVars(I.json.max_length))),e.$$.dirty[0]&1&<(t(25,U=I.getDerivedFromVars(I.json.autocapitalization))),e.$$.dirty[0]&1&&je(t(24,he=I.getDerivedFromVars(I.json.enter_key_type))),e.$$.dirty[0]&1&&ht(t(23,Ie=I.getDerivedFromVars(I.json.validators))),e.$$.dirty[0]&1&&We(t(22,Te=I.getDerivedFromVars(I.json.filters))),e.$$.dirty[0]&1|e.$$.dirty[2]&512&&(i?t(9,Qr=!1):(t(9,Qr=!0),I.logError(x(new Error('Missing "text_variable" in "input"'))))),e.$$.dirty[2]&1048576&&Ci(fe),e.$$.dirty[0]&32|e.$$.dirty[2]&4194304&&t(5,$r=Un(qt,$r)),e.$$.dirty[0]&104|e.$$.dirty[1]&8388608|e.$$.dirty[2]&4096&&!lr&&O!==qe){let Zt=qe;Zt.length>$r&&(Zt=Zt.slice(0,$r),s.setValue(Zt)),t(3,O=t(8,Cr=Zt)),xe()}if(e.$$.dirty[1]&8388608|e.$$.dirty[2]&8192&&lr&&lr.rawValue!==Ae&&(J(),xe()),e.$$.dirty[2]&256|e.$$.dirty[3]&32&&It&&An&&xe(),e.$$.dirty[3]&16&&t(21,_e=Nt),e.$$.dirty[1]&16777216|e.$$.dirty[3]&8&&t(55,b=Ir(Pt,1,b)),e.$$.dirty[1]&33554432|e.$$.dirty[3]&4&&t(56,A=Un(q,A)),e.$$.dirty[1]&67108864|e.$$.dirty[2]&1073741824|e.$$.dirty[3]&3&&(t(57,K=ao(Je,wr,K)),Ft&&typeof Ft=="string"?t(58,oe=de.typefaceProvider(Ft,{fontWeight:K||400})):t(58,oe="")),e.$$.dirty[1]&33554432|e.$$.dirty[2]&536870912){const Zt=Ht;In(Zt)&&t(59,se=Zt/A)}e.$$.dirty[2]&268435456&&Vs(Yt)&&t(60,Ce=ve(Yt)),e.$$.dirty[1]&1073741824|e.$$.dirty[2]&134217728&&t(61,bt=Ir(vt,1,bt)),e.$$.dirty[2]&67108865&&t(62,P=Ir(mt,1,P)),e.$$.dirty[2]&33685506&&t(63,Ye=Vl(we,dt,Ye)),e.$$.dirty[2]&16777220&&t(64,Ot=Il(L,Ot)),e.$$.dirty[0]&16|e.$$.dirty[2]&8388608&&t(4,gn=Xn(Ut,gn)),e.$$.dirty[2]&3145728&&(Ze&&Ze in Vc&&(t(10,zt=Vc[Ze]),t(65,Tt=Ze)),(fe==null?void 0:fe.type)==="currency"&&(t(10,zt=em?"text":"tel"),t(11,rr="decimal"))),e.$$.dirty[2]&8&&t(7,be=Tt==="multi_line_text"),e.$$.dirty[1]&301989888|e.$$.dirty[2]&917536&&(In(le)?t(66,rn=`calc(${le*(se||1.25)*(A/10)+"em"} + ${yn(Yr(Ge==null?void 0:Ge.top,0)+Yr(Ge==null?void 0:Ge.bottom,0))})`):t(66,rn=""),t(67,Pr=To(Ge||void 0,Pr)),t(68,fn=Pr?ci({top:(Number(Pr.top)||0)/A*10,right:(Number(dt==="ltr"?Pr.end:Pr.start)||Number(Pr.right)||0)/A*10,bottom:(Number(Pr.bottom)||0)/A*10,left:(Number(dt==="ltr"?Pr.start:Pr.end)||Number(Pr.left)||0)/A*10},dt):""),t(69,xr=Pr?ci({top:(Number(Pr.top)||0)/A*10,bottom:(Number(Pr.bottom)||0)/A*10},dt):"")),e.$$.dirty[2]&65536&&($==="all_characters"?t(13,dn="characters"):$==="sentences"?t(13,dn="sentences"):$==="words"?t(13,dn="words"):($==="none"||$==="auto")&&t(13,dn="off")),e.$$.dirty[0]&1|e.$$.dirty[2]&32768&&(Ve!=null&&Ve.description?t(12,Ln=Ve.description):I.logError(x(new Error('Missing accessibility "description" for input'),{level:"warn"}))),e.$$.dirty[2]&16384&&(re==="default"||re==="done"||re==="go"||re==="search"||re==="send")&&t(14,Bn=re),e.$$.dirty[0]&128|e.$$.dirty[2]&7&&t(20,_t={"highlight-color":!!P,multiline:be,"alignment-horizontal":Ye,"alignment-vertical":Ot}),e.$$.dirty[1]&2097152e3|e.$$.dirty[2]&17&&t(19,He={"--divkit-input-hint-color":b,"--divkit-input-highlight-color":P,"--divkit-input-line-height":se,"font-weight":K,"font-family":oe,"letter-spacing":Ce,color:bt,"max-height":rn}),e.$$.dirty[1]&33554432|e.$$.dirty[2]&64&&t(18,ze={"font-size":ve(A),padding:fn}),e.$$.dirty[1]&33554432|e.$$.dirty[2]&128&&t(17,Fe={"font-size":ve(A),padding:xr}),e.$$.dirty[0]&13|e.$$.dirty[1]&4194304&&kt&&I.json&&(Me&&(de.unregisterFocusable(Me),t(53,Me=void 0)),I.id&&!I.fakeElement&&(t(53,Me=I.id),de.registerFocusable(Me,{focus(){kt&&(kt.focus(),j(O.length,O.length))}})))},[I,rt,kt,O,gn,$r,s,be,Cr,Qr,zt,rr,Ln,dn,Bn,Yn,l,Fe,ze,He,_t,_e,Te,Ie,he,U,W,H,X,Y,F,te,D,V,N,R,v,w,h,y,m,_,f,u,c,a,st,d,Ni,ti,Dn,ft,g,Me,lr,b,A,K,oe,se,Ce,bt,P,Ye,Ot,Tt,rn,Pr,fn,xr,An,i,o,n,qe,Ae,re,Ve,$,dt,Ge,le,fe,Ze,qt,Ut,L,we,mt,vt,Yt,Ht,Ft,wr,Je,q,Pt,Nt,It,nt,Er,_r,Ar,ri]}class im extends Rr{constructor(r){super(),zr(this,r,nm,$0,yr,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const om="divkit-ae558",sm="divkit-f3d02",lm="divkit-e7d17",am="divkit-72083",lo={select:om,"select__select-text":"divkit-c1610",select_hint:sm,select__select:lm,"select__select_has-custom-focused":"divkit-2e9c1","has-custom-focused":"divkit-d2243",select__option:am};function Ic(e,r,t){const n=e.slice();return n[58]=r[t],n}function cm(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function um(e){let r,t;return r=new vn({props:{cls:gt("select",lo,e[11]),style:e[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[fm,({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>({55:n,56:i,57:o}),({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>[0,(n?16777216:0)|(i?33554432:0)|(o?67108864:0)]]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&2048&&(o.cls=gt("select",lo,n[11])),i[0]&1024&&(o.style=n[10]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&16778172|i[1]&1191182336&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Tc(e){let r,t=(e[58].text||e[58].value)+"",n,i;return{c(){r=Be("option"),n=xn(t),p(r,"class",lo.select__option),r.__value=i=e[58].value,Yl(r,r.__value)},m(o,s){ie(o,r,s),jt(r,n)},p(o,s){s[0]&16&&t!==(t=(o[58].text||o[58].value)+"")&&Ti(n,t),s[0]&16&&i!==(i=o[58].value)&&(r.__value=i,Yl(r,r.__value))},d(o){o&&ne(r)}}}function fm(e){let r,t=(e[3]||e[24]||"")+"",n,i,o,s,l,a,c,u,f=nr(e[4]),_=[];for(let m=0;m<f.length;m+=1)_[m]=Tc(Ic(e,f,m));return{c(){r=Be("span"),n=xn(t),o=pr(),s=Be("select");for(let m=0;m<_.length;m+=1)_[m].c();p(r,"class",lo["select__select-text"]),p(r,"style",i=Ct(e[9])),p(r,"aria-hidden","true"),p(s,"class",l=gt("select__select",lo,{"has-custom-focus":e[55]})),p(s,"aria-label",e[7]),p(s,"style",a=Ct(e[8])),e[5]===void 0&&Rn(()=>e[52].call(s))},m(m,y){ie(m,r,y),jt(r,n),ie(m,o,y),ie(m,s,y);for(let h=0;h<_.length;h+=1)_[h]&&_[h].m(s,null);e[51](s),Jl(s,e[5],!0),c||(u=[Ue(s,"change",e[52]),Ue(s,"focus",function(){jr(e[56])&&e[56].apply(this,arguments)}),Ue(s,"blur",function(){jr(e[57])&&e[57].apply(this,arguments)})],c=!0)},p(m,y){if(e=m,y[0]&16777224&&t!==(t=(e[3]||e[24]||"")+"")&&Ti(n,t),y[0]&512&&i!==(i=Ct(e[9]))&&p(r,"style",i),y[0]&16){f=nr(e[4]);let h;for(h=0;h<f.length;h+=1){const w=Ic(e,f,h);_[h]?_[h].p(w,y):(_[h]=Tc(w),_[h].c(),_[h].m(s,null))}for(;h<_.length;h+=1)_[h].d(1);_.length=f.length}y[1]&16777216&&l!==(l=gt("select__select",lo,{"has-custom-focus":e[55]}))&&p(s,"class",l),y[0]&128&&p(s,"aria-label",e[7]),y[0]&256&&a!==(a=Ct(e[8]))&&p(s,"style",a),y[0]&48&&Jl(s,e[5])},d(m){m&&(ne(r),ne(o),ne(s)),an(_,m),e[51](null),c=!1,Wr(u)}}}function dm(e){let r,t,n,i;const o=[um,cm],s=[];function l(a,c){return a[6]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function _m(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R,N,V,D,te,F,Y=E,X=()=>(Y(),Y=M(R,Ne=>t(40,F=Ne)),R),H,W=E,U=()=>(W(),W=M(v,Ne=>t(41,H=Ne)),v),he,Ie=E,Te=()=>(Ie(),Ie=M(w,Ne=>t(42,he=Ne)),w),_e,be=E,_t=()=>(be(),be=M(h,Ne=>t(43,_e=Ne)),h),He,ze=E,Fe=()=>(ze(),ze=M(y,Ne=>t(44,He=Ne)),y),qe,Qe=E,Z=()=>(Qe(),Qe=M(m,Ne=>t(45,qe=Ne)),m),Ae,ge=E,et=()=>(ge(),ge=M(_,Ne=>t(46,Ae=Ne)),_),G,Ee=E,We=()=>(Ee(),Ee=M(f,Ne=>t(47,G=Ne)),f),re,it=E,je=()=>(it(),it=M(u,Ne=>t(48,re=Ne)),u),Ve,yt,Vt=E,$=()=>(Vt(),Vt=M(a,Ne=>t(50,yt=Ne)),a),tt,lt=E,dt=()=>(lt(),lt=M(l,Ne=>t(5,tt=Ne)),l),Ge,C=E,$e=()=>(C(),C=M(c,Ne=>t(24,Ge=Ne)),c);e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee()),e.$$.on_destroy.push(()=>it()),e.$$.on_destroy.push(()=>Vt()),e.$$.on_destroy.push(()=>lt()),e.$$.on_destroy.push(()=>C());let{componentContext:le}=r,{layoutParams:Ke=void 0}=r;const wt=Hr(Zr),fe=wt.direction;on(e,fe,Ne=>t(49,Ve=Ne));let pe,at,Ze=!1,xt="",Mt=null,qt="",Pe="rgba(0,0,0,.45)",pt=12,Ut,Bt="",Gt,L="",ae="#000",ar="",we;function Et(){t(27,Mt=null),t(29,Pe="rgba(0,0,0,.45)"),t(30,pt=12),t(31,Ut=void 0),t(32,Bt=""),t(33,Gt=void 0),t(34,L=""),t(35,ae="#000"),t(7,ar="")}sn(()=>{pe&&(wt.unregisterFocusable(pe),t(26,pe=void 0))});function Re(Ne){Fr[Ne?"unshift":"push"](()=>{at=Ne,t(2,at)})}function mt(){tt=dd(this),l.set(tt),t(4,s),t(38,o),t(0,le)}return e.$$set=Ne=>{"componentContext"in Ne&&t(0,le=Ne.componentContext),"layoutParams"in Ne&&t(1,Ke=Ne.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&t(39,n=le.origJson),e.$$.dirty[1]&256&&n&&Et(),e.$$.dirty[0]&1&&t(37,i=le.json.value_variable),e.$$.dirty[0]&1&&t(38,o=le.json.options),e.$$.dirty[1]&128&&t(4,s=Array.isArray(o)&&o.filter(Ne=>typeof Ne.value=="string")||[]),e.$$.dirty[0]&1|e.$$.dirty[1]&64&&dt(t(23,l=i&&le.getVariable(i,"string")||fi("temp","string",""))),e.$$.dirty[0]&1&&$(t(22,a=le.getDerivedFromVars(le.json.paddings))),e.$$.dirty[0]&1&&$e(t(21,c=le.getDerivedFromVars(le.json.hint_text))),e.$$.dirty[0]&1&&je(t(20,u=le.getDerivedFromVars(le.json.hint_color))),e.$$.dirty[0]&1&&We(t(19,f=le.getDerivedFromVars(le.json.font_size))),e.$$.dirty[0]&1&&et(t(18,_=le.getDerivedFromVars(le.json.font_weight))),e.$$.dirty[0]&1&&Z(t(17,m=le.getDerivedFromVars(le.json.font_weight_value))),e.$$.dirty[0]&1&&Fe(t(16,y=le.getDerivedFromVars(le.json.font_family))),e.$$.dirty[0]&1&&_t(t(15,h=le.getDerivedFromVars(le.json.line_height))),e.$$.dirty[0]&1&&Te(t(14,w=le.getDerivedFromVars(le.json.letter_spacing))),e.$$.dirty[0]&1&&U(t(13,v=le.getDerivedFromVars(le.json.text_color))),e.$$.dirty[0]&1&&X(t(12,R=le.getDerivedFromVars(le.json.accessibility))),e.$$.dirty[0]&17&&(Array.isArray(s)&&s.length||le.logError(x(new Error('Empty selection "items" in "select"')))),e.$$.dirty[0]&1|e.$$.dirty[1]&64&&(i?t(6,Ze=!1):(t(6,Ze=!0),le.logError(x(new Error('Missing "value_variable" in "select"'))))),e.$$.dirty[0]&49|e.$$.dirty[1]&32){const Ne=s.find(ot=>ot.value===tt);Ne?t(3,xt=(typeof Ne.text=="string"?Ne.text:Ne.value)||""):(t(3,xt=""),tt&&we!==tt&&(t(36,we=tt),le.logError(x(new Error('Value from the variable was not found in the selection items for "select"')))))}if(e.$$.dirty[0]&1073741824|e.$$.dirty[1]&65536&&t(30,pt=Un(G,pt)),e.$$.dirty[0]&1207959552|e.$$.dirty[1]&786432&&(t(27,Mt=To(yt||void 0,Mt)),t(28,qt=Mt?ci({top:(Number(Mt.top)||0)/pt*10,right:(Number(Ve==="ltr"?Mt.end:Mt.start)||Number(Mt.right)||0)/pt*10,bottom:(Number(Mt.bottom)||0)/pt*10,left:(Number(Ve==="ltr"?Mt.start:Mt.end)||Number(Mt.left)||0)/pt*10},Ve):"")),e.$$.dirty[0]&536870912|e.$$.dirty[1]&131072&&t(29,Pe=Ir(re,1,Pe)),e.$$.dirty[1]&57345&&(t(31,Ut=ao(Ae,qe,Ut)),He&&typeof He=="string"?t(32,Bt=wt.typefaceProvider(He,{fontWeight:Ut||400})):t(32,Bt="")),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&4096){const Ne=_e;In(Ne)&&t(33,Gt=Ne/pt)}e.$$.dirty[0]&1073741824|e.$$.dirty[1]&2048&&Vs(he)&&t(34,L=ve(he/pt*10)),e.$$.dirty[1]&1040&&t(35,ae=Ir(H,1,ae)),e.$$.dirty[0]&1|e.$$.dirty[1]&512&&(F!=null&&F.description?t(7,ar=F.description):le.logError(x(new Error('Missing accessibility "description" for select'),{level:"warn"}))),e.$$.dirty[0]&8&&t(11,N={hint:!xt}),e.$$.dirty[0]&536870912|e.$$.dirty[1]&19&&t(10,V={"--divkit-input-hint-color":Pe,"font-weight":Ut,"font-family":Bt,color:ae}),e.$$.dirty[0]&1342177280|e.$$.dirty[1]&12&&t(9,D={padding:qt,"font-size":ve(pt),"line-height":Gt,"letter-spacing":L}),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&12&&t(8,te={"font-size":ve(pt),"line-height":Gt,"letter-spacing":L}),e.$$.dirty[0]&67108869&&le.json&&at&&(pe&&(wt.unregisterFocusable(pe),t(26,pe=void 0)),le.id&&!le.fakeElement&&(t(26,pe=le.id),wt.registerFocusable(pe,{focus(){at&&at.focus()}})))},[le,Ke,at,xt,s,tt,Ze,ar,te,D,V,N,R,v,w,h,y,m,_,f,u,c,a,l,Ge,fe,pe,Mt,qt,Pe,pt,Ut,Bt,Gt,L,ae,we,i,o,n,F,H,he,_e,He,qe,Ae,G,re,Ve,yt,Re,mt]}class hm extends Rr{constructor(r){super(),zr(this,r,_m,dm,yr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const gm="divkit-b382f",pm="divkit-2205d",Io={video__video:gm,"video__aspect-wrapper":"divkit-04542",video_absolute:pm};function mm(e,r){return Array.isArray(e)&&e.length?e.filter(t=>(t==null?void 0:t.type)==="video_source"&&typeof t.url=="string"&&typeof t.mime_type=="string").map(t=>{const n={src:t.url};return t.mime_type&&(n.type=t.mime_type),n}):r}function bm(e){return e==="fill"?"cover":e==="no_scale"?"none":"contain"}function Dc(e,r,t){const n=e.slice();return n[52]=r[t],n}function Fc(e,r,t){const n=e.slice();return n[52]=r[t],n}function ym(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function wm(e){let r,t;return r=new vn({props:{cls:gt("video",Io,e[12]),customActions:"video",componentContext:e[0],layoutParams:e[1],heightByAspect:e[10]!=="0",$$slots:{default:[Am]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&4096&&(o.cls=gt("video",Io,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&1024&&(o.heightByAspect=n[10]!=="0"),i[0]&4088|i[1]&67108864&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function vm(e){let r,t,n,i,o,s=nr(e[4]),l=[];for(let a=0;a<s.length;a+=1)l[a]=Pc(Dc(e,s,a));return{c(){r=Be("video");for(let a=0;a<l.length;a+=1)l[a].c();p(r,"class",Io.video__video),p(r,"style",t=Ct(e[11])),r.playsInline=!0,r.loop=e[5],r.autoplay=e[6],r.muted=e[7],p(r,"poster",e[9]),p(r,"preload",n=e[8]?"metadata":"auto")},m(a,c){ie(a,r,c);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(r,null);e[46](r),i||(o=[Ue(r,"timeupdate",e[23]),Ue(r,"ended",e[24]),Ue(r,"playing",e[25]),Ue(r,"pause",e[26]),Ue(r,"waiting",e[27]),Ue(r,"error",e[28])],i=!0)},p(a,c){if(c[0]&268435472){s=nr(a[4]);let u;for(u=0;u<s.length;u+=1){const f=Dc(a,s,u);l[u]?l[u].p(f,c):(l[u]=Pc(f),l[u].c(),l[u].m(r,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=s.length}c[0]&2048&&t!==(t=Ct(a[11]))&&p(r,"style",t),c[0]&32&&(r.loop=a[5]),c[0]&64&&(r.autoplay=a[6]),c[0]&128&&(r.muted=a[7]),c[0]&512&&p(r,"poster",a[9]),c[0]&256&&n!==(n=a[8]?"metadata":"auto")&&p(r,"preload",n)},d(a){a&&ne(r),an(l,a),e[46](null),i=!1,Wr(o)}}}function km(e){let r,t,n,i,o=`${e[10]}%`,s,l,a=nr(e[4]),c=[];for(let u=0;u<a.length;u+=1)c[u]=Oc(Fc(e,a,u));return{c(){r=Be("div"),t=Be("video");for(let u=0;u<c.length;u+=1)c[u].c();p(t,"class",Io.video__video),p(t,"style",n=Ct(e[11])),t.playsInline=!0,t.loop=e[5],t.autoplay=e[6],t.muted=e[7],p(t,"poster",e[9]),p(t,"preload",i=e[8]?"metadata":"auto"),p(r,"class",Io["video__aspect-wrapper"]),z(r,"padding-bottom",o)},m(u,f){ie(u,r,f),jt(r,t);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(t,null);e[45](t),s||(l=[Ue(t,"timeupdate",e[23]),Ue(t,"ended",e[24]),Ue(t,"playing",e[25]),Ue(t,"pause",e[26]),Ue(t,"waiting",e[27]),Ue(t,"error",e[28])],s=!0)},p(u,f){if(f[0]&268435472){a=nr(u[4]);let _;for(_=0;_<a.length;_+=1){const m=Fc(u,a,_);c[_]?c[_].p(m,f):(c[_]=Oc(m),c[_].c(),c[_].m(t,null))}for(;_<c.length;_+=1)c[_].d(1);c.length=a.length}f[0]&2048&&n!==(n=Ct(u[11]))&&p(t,"style",n),f[0]&32&&(t.loop=u[5]),f[0]&64&&(t.autoplay=u[6]),f[0]&128&&(t.muted=u[7]),f[0]&512&&p(t,"poster",u[9]),f[0]&256&&i!==(i=u[8]?"metadata":"auto")&&p(t,"preload",i),f[0]&1024&&o!==(o=`${u[10]}%`)&&z(r,"padding-bottom",o)},d(u){u&&ne(r),an(c,u),e[45](null),s=!1,Wr(l)}}}function Mc(e){let r,t,n,i,o;return{c(){r=Be("source"),zn(r.src,t=e[52].src)||p(r,"src",t),p(r,"type",n=e[52].type)},m(s,l){ie(s,r,l),i||(o=Ue(r,"error",e[28]),i=!0)},p(s,l){l[0]&16&&!zn(r.src,t=s[52].src)&&p(r,"src",t),l[0]&16&&n!==(n=s[52].type)&&p(r,"type",n)},d(s){s&&ne(r),i=!1,o()}}}function Pc(e){let r=e[52],t,n=Mc(e);return{c(){n.c(),t=Qt()},m(i,o){n.m(i,o),ie(i,t,o)},p(i,o){o[0]&16&&yr(r,r=i[52])?(n.d(1),n=Mc(i),n.c(),n.m(t.parentNode,t)):n.p(i,o)},d(i){i&&ne(t),n.d(i)}}}function Nc(e){let r,t,n,i,o;return{c(){r=Be("source"),zn(r.src,t=e[52].src)||p(r,"src",t),p(r,"type",n=e[52].type)},m(s,l){ie(s,r,l),i||(o=Ue(r,"error",e[28]),i=!0)},p(s,l){l[0]&16&&!zn(r.src,t=s[52].src)&&p(r,"src",t),l[0]&16&&n!==(n=s[52].type)&&p(r,"type",n)},d(s){s&&ne(r),i=!1,o()}}}function Oc(e){let r=e[52],t,n=Nc(e);return{c(){n.c(),t=Qt()},m(i,o){n.m(i,o),ie(i,t,o)},p(i,o){o[0]&16&&yr(r,r=i[52])?(n.d(1),n=Nc(i),n.c(),n.m(t.parentNode,t)):n.p(i,o)},d(i){i&&ne(t),n.d(i)}}}function Am(e){let r;function t(o,s){return o[10]!=="0"?km:vm}let n=t(e),i=n(e);return{c(){i.c(),r=Qt()},m(o,s){i.m(o,s),ie(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&&ne(r),i.d(o)}}}function jm(e){let r,t,n,i;const o=[wm,ym],s=[];function l(a,c){return a[2]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,c){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function Cm(e,r,t){let n,i,o,s,l,a,c,u,f,_,m,y,h,w,v,R=E,N=()=>(R(),R=M(l,L=>t(35,v=L)),l),V,D=E,te=()=>(D(),D=M(y,L=>t(36,V=L)),y),F,Y=E,X=()=>(Y(),Y=M(m,L=>t(37,F=L)),m),H,W=E,U=()=>(W(),W=M(_,L=>t(38,H=L)),_),he,Ie=E,Te=()=>(Ie(),Ie=M(f,L=>t(39,he=L)),f),_e,be=E,_t=()=>(be(),be=M(u,L=>t(40,_e=L)),u),He,ze=E,Fe=()=>(ze(),ze=M(c,L=>t(41,He=L)),c),qe,Qe=E,Z=()=>(Qe(),Qe=M(a,L=>t(42,qe=L)),a),Ae,ge=E,et=()=>(ge(),ge=M(s,L=>t(43,Ae=L)),s),G,Ee=E,We=()=>(Ee(),Ee=M(o,L=>t(44,G=L)),o);e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>D()),e.$$.on_destroy.push(()=>Y()),e.$$.on_destroy.push(()=>W()),e.$$.on_destroy.push(()=>Ie()),e.$$.on_destroy.push(()=>be()),e.$$.on_destroy.push(()=>ze()),e.$$.on_destroy.push(()=>Qe()),e.$$.on_destroy.push(()=>ge()),e.$$.on_destroy.push(()=>Ee());let{componentContext:re}=r,{layoutParams:it=void 0}=r;const je=Hr(Zr);let Ve,yt=!1,Vt=!1,$,tt=[],lt=!1,dt=!1,Ge=!1,C=!1,$e,le="fit",Ke="0",wt=!1,fe;function pe(L){if(Vt){Vt=!1;return}$&&t(3,$.currentTime=Number(L)/1e3,$)}function at(){$==null||$.pause()}function Ze(){const L=$==null?void 0:$.play();L&&L.catch(ae=>{re.logError(x(new Error("Video playing error"),{level:"error",additional:{originalText:String(ae)}}))})}function xt(){$&&(Vt=!0,i.setValue(Math.floor($.currentTime*1e3)))}function Mt(){const L=re.getJsonWithVars(re.json.end_actions);re.execAnyActions(L)}function qt(){const L=re.getJsonWithVars(re.json.resume_actions);re.execAnyActions(L)}function Pe(){const L=re.getJsonWithVars(re.json.pause_actions);re.execAnyActions(L)}function pt(){const L=re.getJsonWithVars(re.json.buffering_actions);re.execAnyActions(L)}function Ut(){const L=re.getJsonWithVars(re.json.fatal_actions);re.execAnyActions(L)}sn(()=>{Ve&&(je.unregisterInstance(Ve),t(29,Ve=void 0)),fe&&(fe(),t(32,fe=void 0))});function Bt(L){Fr[L?"unshift":"push"](()=>{$=L,t(3,$)})}function Gt(L){Fr[L?"unshift":"push"](()=>{$=L,t(3,$)})}return e.$$set=L=>{"componentContext"in L&&t(0,re=L.componentContext),"layoutParams"in L&&t(1,it=L.layoutParams)},e.$$.update=()=>{if(e.$$.dirty[0]&1&&re.json&&(t(5,lt=!1),t(6,dt=!1),t(7,Ge=!1),t(8,C=!1),t(9,$e=void 0),t(30,le="fit"),t(31,wt=!1)),e.$$.dirty[0]&1&&t(34,n=re.json.elapsed_time_variable),e.$$.dirty[0]&1|e.$$.dirty[1]&8&&t(33,i=n&&re.getVariable(n,"integer")||fi("temp","integer",0)),e.$$.dirty[1]&6&&i&&(fe&&fe(),t(32,fe=i.subscribe(pe))),e.$$.dirty[0]&1&&We(t(22,o=re.getDerivedFromVars(re.json.video_sources))),e.$$.dirty[0]&1&&et(t(21,s=re.getDerivedFromVars(re.json.repeatable))),e.$$.dirty[0]&1&&N(t(20,l=re.getDerivedFromVars(re.json.autostart))),e.$$.dirty[0]&1&&Z(t(19,a=re.getDerivedFromVars(re.json.muted))),e.$$.dirty[0]&1&&Fe(t(18,c=re.getDerivedFromVars(re.json.preload_required))),e.$$.dirty[0]&1&&_t(t(17,u=re.getDerivedFromVars(re.json.preview))),e.$$.dirty[0]&1&&Te(t(16,f=re.getDerivedFromVars(re.json.scale))),e.$$.dirty[0]&1&&U(t(15,_=re.getDerivedFromVars(re.json.aspect))),e.$$.dirty[0]&1&&X(t(14,m=re.getDerivedFromVars(re.json.width))),e.$$.dirty[0]&1&&te(t(13,y=re.getDerivedFromVars(re.json.height))),e.$$.dirty[0]&17|e.$$.dirty[1]&8192&&(t(4,tt=mm(G,tt)),tt.length?t(2,yt=!1):(t(2,yt=!0),re.logError(x(new Error('Missing "video_sources" in "video"'))))),e.$$.dirty[0]&32|e.$$.dirty[1]&4096&&t(5,lt=Xn(Ae,lt)),e.$$.dirty[0]&64|e.$$.dirty[1]&16&&t(6,dt=Xn(v,dt)),e.$$.dirty[0]&128|e.$$.dirty[1]&2048&&t(7,Ge=Xn(qe,Ge)),e.$$.dirty[0]&256|e.$$.dirty[1]&1024&&t(8,C=Xn(He,C)),e.$$.dirty[0]&512|e.$$.dirty[1]&512&&t(9,$e=typeof _e=="string"?lf(_e):$e),e.$$.dirty[0]&1073741824|e.$$.dirty[1]&256&&t(30,le=bm(he)||le),e.$$.dirty[1]&224){const L=H==null?void 0:H.ratio;L&&In(L)?(t(10,Ke=(100/Number(L)).toFixed(2)),t(31,wt=!0)):(t(10,Ke="0"),t(31,wt=(!F||F.type==="match_parent")&&(V==null?void 0:V.type)==="match_parent"))}e.$$.dirty[0]&536870917&&re.json&&(Ve&&(je.unregisterInstance(Ve),t(29,Ve=void 0)),re.id&&!yt&&!re.fakeElement&&(t(29,Ve=re.id),je.registerInstance(Ve,{pause:at,start:Ze}))),e.$$.dirty[0]&9|e.$$.dirty[1]&16&&re.json&&v&&$&&Ze(),e.$$.dirty[1]&1&&t(12,h={absolute:wt}),e.$$.dirty[0]&1073741824&&t(11,w={"object-fit":le})},[re,it,yt,$,tt,lt,dt,Ge,C,$e,Ke,w,h,y,m,_,f,u,c,a,l,s,o,xt,Mt,qt,Pe,pt,Ut,Ve,le,wt,fe,i,n,v,V,F,H,he,_e,He,qe,Ae,G,Bt,Gt]}class Em extends Rr{constructor(r){super(),zr(this,r,Cm,jm,yr,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Sm="divkit-adc72",Vm="divkit-385c4",Im="divkit-3c049",Tm="divkit-ed159",Dm="divkit-f630c",Ri={switch:"divkit-03a3a",switch__tumbler:Sm,switch__tumbler_checked:Vm,switch_disabled:Im,switch__thumb:Tm,switch__input:Dm};function Us(e){return e===!0||e===1}function Fm(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Mm(e){let r,t;return r=new vn({props:{cls:gt("switch",Ri,e[9]),style:e[8],customDescription:!0,customActions:"switch",hasInnerFocusable:!0,componentContext:e[0],layoutParams:e[1],$$slots:{default:[Pm,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({26:n,27:i,28:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i&512&&(o.cls=gt("switch",Ri,n[9])),i&256&&(o.style=n[8]),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&1006633052&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Pm(e){let r,t,n,i,o,s,l,a,c;return{c(){r=Be("div"),t=Be("div"),i=pr(),o=Be("input"),p(t,"class",Ri.switch__thumb),p(r,"class",n=gt("switch__tumbler",Ri,{checked:e[3]})),p(o,"type","checkbox"),p(o,"class",s=gt("switch__input",Ri,{"has-custom-focus":e[28]})),p(o,"autocomplete","off"),p(o,"aria-label",e[6]),o.disabled=l=!e[4],o.checked=e[3]},m(u,f){ie(u,r,f),jt(r,t),ie(u,i,f),ie(u,o,f),e[23](o),a||(c=[Ue(o,"input",e[13]),Ue(o,"focus",function(){jr(e[26])&&e[26].apply(this,arguments)}),Ue(o,"blur",function(){jr(e[27])&&e[27].apply(this,arguments)})],a=!0)},p(u,f){e=u,f&8&&n!==(n=gt("switch__tumbler",Ri,{checked:e[3]}))&&p(r,"class",n),f&268435456&&s!==(s=gt("switch__input",Ri,{"has-custom-focus":e[28]}))&&p(o,"class",s),f&64&&p(o,"aria-label",e[6]),f&16&&l!==(l=!e[4])&&(o.disabled=l),f&8&&(o.checked=e[3])},d(u){u&&(ne(r),ne(i),ne(o)),e[23](null),a=!1,Wr(c)}}}function Nm(e){let r,t,n,i;const o=[Mm,Fm],s=[];function l(a,c){return a[5]?-1:0}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,[c]){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function Om(e,r,t){let n,i,o,s,l,a,c,u,f,_=E,m=()=>(_(),_=M(s,Fe=>t(19,f=Fe)),s),y,h=E,w=()=>(h(),h=M(a,Fe=>t(20,y=Fe)),a),v,R=E,N=()=>(R(),R=M(l,Fe=>t(21,v=Fe)),l),V,D=E,te=()=>(D(),D=M(o,Fe=>t(22,V=Fe)),o);e.$$.on_destroy.push(()=>_()),e.$$.on_destroy.push(()=>h()),e.$$.on_destroy.push(()=>R()),e.$$.on_destroy.push(()=>D());let{componentContext:F}=r,{layoutParams:Y=void 0}=r;const X=Hr(Zr);let H,W,U=!1,he=!1,Ie="",Te=!0,_e="#129386",be="#1293864c";function _t(){t(4,Te=!0),t(15,_e="#129386"),t(16,be="#1293864c")}function He(Fe){t(3,U=Fe.target.checked),o.setValue(U)}sn(()=>{H&&(X.unregisterFocusable(H),t(14,H=void 0))});function ze(Fe){Fr[Fe?"unshift":"push"](()=>{W=Fe,t(2,W)})}return e.$$set=Fe=>{"componentContext"in Fe&&t(0,F=Fe.componentContext),"layoutParams"in Fe&&t(1,Y=Fe.layoutParams)},e.$$.update=()=>{if(e.$$.dirty&1&&t(18,n=F.origJson),e.$$.dirty&262144&&n&&_t(),e.$$.dirty&1&&t(17,i=F.json.is_on_variable),e.$$.dirty&131073&&te(t(7,o=i&&F.getVariable(i,"boolean")||fi("temp","boolean",!1))),e.$$.dirty&1&&m(t(12,s=F.getDerivedFromVars(F.json.accessibility))),e.$$.dirty&1&&N(t(11,l=F.getDerivedFromVars(F.json.is_enabled))),e.$$.dirty&1&&w(t(10,a=F.getDerivedFromVars(F.json.on_color))),e.$$.dirty&131073&&(i?t(5,he=!1):(t(5,he=!0),F.logError(x(new Error('Missing "is_on_variable" in "switch"'))))),e.$$.dirty&4194312&&Us(U)!==Us(V)&&t(3,U=Us(V)),e.$$.dirty&2097168&&t(4,Te=Xn(v,Te)),e.$$.dirty&1081344&&(t(15,_e=Ir(y,1,_e)),typeof y=="string")){const Fe=vi(y);Fe&&(Fe.a*=.3,t(16,be=kl(Fe)))}e.$$.dirty&524289&&(f!=null&&f.description?t(6,Ie=f.description):F.logError(x(new Error('Missing accessibility "description" for switch'),{level:"warn"}))),e.$$.dirty&16&&t(9,c={disabled:!Te}),e.$$.dirty&98304&&t(8,u={"--divkit-switch-on-color":_e,"--divkit-switch-on-sub-color":be}),e.$$.dirty&16389&&W&&F.json&&(H&&(X.unregisterFocusable(H),t(14,H=void 0)),F.id&&!F.fakeElement&&(t(14,H=F.id),X.registerFocusable(H,{focus(){W&&W.focus()}})))},[F,Y,W,U,Te,he,Ie,o,u,c,a,l,s,He,H,_e,be,i,n,f,y,v,V,ze]}class zm extends Rr{constructor(r){super(),zr(this,r,Om,Nm,yr,{componentContext:0,layoutParams:1})}}function zc(e,r,t){const n=e.slice();return n[11]=r[t],n}function Rm(e){let r,t;return r=new hi({props:{componentContext:e[0]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Lm(e){let r,t;return r=new vn({props:{componentContext:e[0],layoutParams:e[1],$$slots:{default:[Bm]},$$scope:{ctx:e}}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&16893&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Rc(e){let r,t=[e[8]],n={};for(let i=0;i<t.length;i+=1)n=Ki(n,t[i]);return{c(){r=Be("template"),Qn(r,n)},m(i,o){ie(i,r,o),r.content.innerHTML=e[7]},p(i,o){o&128&&(r.content.innerHTML=i[7]),Qn(r,n=fo(t,[o&256&&i[8]]))},d(i){i&&ne(r)}}}function Lc(e){let r=e[5],t,n,i=Hc(e);return{c(){i.c(),t=Qt()},m(o,s){i.m(o,s),ie(o,t,s),n=!0},p(o,s){s&32&&yr(r,r=o[5])?(ir(),ee(i,1,1,E),or(),i=Hc(o),i.c(),B(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){n||(B(i),n=!0)},o(o){ee(i),n=!1},d(o){o&&ne(t),i.d(o)}}}function Bc(e){let r,t;return r=new ei({props:{componentContext:e[11]}}),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i&8&&(o.componentContext=n[11]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Hc(e){let r,t,n=nr(e[3]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Bc(zc(e,n,s));const o=s=>ee(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Qt()},m(s,l){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(s,l);ie(s,r,l),t=!0},p(s,l){if(l&8){n=nr(s[3]);let a;for(a=0;a<n.length;a+=1){const c=zc(s,n,a);i[a]?(i[a].p(c,l),B(i[a],1)):(i[a]=Bc(c),i[a].c(),B(i[a],1),i[a].m(r.parentNode,r))}for(ir(),a=n.length;a<i.length;a+=1)o(a);or()}},i(s){if(!t){for(let l=0;l<n.length;l+=1)B(i[l]);t=!0}},o(s){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)ee(i[l]);t=!1},d(s){s&&ne(r),an(i,s)}}}function Gs(e){let r,t,n,i=e[7]&&Rc(e),o=!e[4]&&e[5]&&Lc(e),s=[e[0].json.custom_props||{}],l={};for(let a=0;a<s.length;a+=1)l=Ki(l,s[a]);return{c(){r=Be(e[2].element),i&&i.c(),t=pr(),o&&o.c(),Gl(e[2].element)(r,l)},m(a,c){ie(a,r,c),i&&i.m(r,null),jt(r,t),o&&o.m(r,null),e[9](r),n=!0},p(a,c){a[7]?i?i.p(a,c):(i=Rc(a),i.c(),i.m(r,t)):i&&(i.d(1),i=null),!a[4]&&a[5]?o?(o.p(a,c),c&48&&B(o,1)):(o=Lc(a),o.c(),B(o,1),o.m(r,null)):o&&(ir(),ee(o,1,1,()=>{o=null}),or()),Gl(a[2].element)(r,l=fo(s,[c&1&&(a[0].json.custom_props||{})]))},i(a){n||(B(o),n=!0)},o(a){ee(o),n=!1},d(a){a&&ne(r),i&&i.d(),o&&o.d(),e[9](null)}}}function Bm(e){let r=e[2].element,t,n=e[2].element&&Gs(e);return{c(){n&&n.c(),t=Qt()},m(i,o){n&&n.m(i,o),ie(i,t,o)},p(i,o){i[2].element?r?yr(r,i[2].element)?(n.d(1),n=Gs(i),r=i[2].element,n.c(),n.m(t.parentNode,t)):n.p(i,o):(n=Gs(i),r=i[2].element,n.c(),n.m(t.parentNode,t)):r&&(n.d(1),n=null,r=i[2].element)},i:E,o(i){ee(n,i)},d(i){i&&ne(t),n&&n.d(i)}}}function Hm(e){let r,t,n,i;const o=[Lm,Rm],s=[];function l(a,c){return a[2]?0:-1}return~(r=l(e))&&(t=s[r]=o[r](e)),{c(){t&&t.c(),n=Qt()},m(a,c){~r&&s[r].m(a,c),ie(a,n,c),i=!0},p(a,[c]){let u=r;r=l(a),r===u?~r&&s[r].p(a,c):(t&&(ir(),ee(s[u],1,1,()=>{s[u]=null}),or()),~r?(t=s[r],t?t.p(a,c):(t=s[r]=o[r](a),t.c()),B(t,1),t.m(n.parentNode,n)):t=null)},i(a){i||(B(t),i=!0)},o(a){ee(t),i=!1},d(a){a&&ne(n),~r&&s[r].d(a)}}}function Wm(e,r,t){let n,{componentContext:i}=r,{layoutParams:o=void 0}=r;const s=Hr(Zr);let l,a=null,c="",u={},f=[],_=!1;$n(()=>{if(l&&"divKitApiCallback"in l&&typeof l.divKitApiCallback=="function"){const y=s.getExtensionContext(i);l.divKitApiCallback(y)}}),sn(()=>{f.forEach(y=>{y.destroy()})});function m(y){Fr[y?"unshift":"push"](()=>{l=y,t(6,l)})}return e.$$set=y=>{"componentContext"in y&&t(0,i=y.componentContext),"layoutParams"in y&&t(1,o=y.layoutParams)},e.$$.update=()=>{var y;if(e.$$.dirty&5)if(typeof i.json.custom_type=="string"&&i.json.custom_type&&((y=s.customComponents)!=null&&y.has(i.json.custom_type))){if(t(2,a=s.customComponents.get(i.json.custom_type)),typeof a.template=="function"){const h=s.getExtensionContext(i),w=new Map;for(const[v,R]of h.variables)w.set(v,R.getValue());t(7,c=a.template({props:i.json.custom_props,variables:w}))}else a.template&&typeof a.template=="string"?t(7,c=a.template):t(7,c="");t(8,u={shadowrootmode:a.shadowRootMode||"open"})}else t(2,a=null),t(7,c=";"),i.logError(x(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));e.$$.dirty&1&&t(5,n=i.json.items),e.$$.dirty&33&&(n!==void 0&&!Array.isArray(n)?(t(4,_=!0),i.logError(x(new Error('Incorrect "items" prop for div "custom"')))):t(4,_=!1)),e.$$.dirty&57&&(f.forEach(h=>{h.destroy()}),t(3,f=(!_&&n||[]).map((h,w)=>i.produceChildContext(h,{path:w}))))},[i,o,a,f,_,n,l,c,u,m]}class Um extends Rr{constructor(r){super(),zr(this,r,Wm,Hm,yr,{componentContext:0,layoutParams:1})}}const Df={text:X_,container:Fh,separator:Bh,image:Da,gif:Da,grid:_g,gallery:Mg,tabs:op,state:Ip,pager:Kp,indicator:l0,slider:N0,input:im,select:hm,video:Em,switch:zm,custom:Um};function Wc(e){let r,t,n;var i=e[2];function o(s,l){return{props:{componentContext:s[0],layoutParams:s[1]}}}return i&&(r=ql(i,o(e))),{c(){r&&Wt(r.$$.fragment),t=Qt()},m(s,l){r&&Rt(r,s,l),ie(s,t,l),n=!0},p(s,l){if(l&4&&i!==(i=s[2])){if(r){ir();const a=r;ee(a.$$.fragment,1,0,()=>{Lt(a,1)}),or()}i?(r=ql(i,o(s)),Wt(r.$$.fragment),B(r.$$.fragment,1),Rt(r,t.parentNode,t)):r=null}else if(i){const a={};l&1&&(a.componentContext=s[0]),l&2&&(a.layoutParams=s[1]),r.$set(a)}},i(s){n||(r&&B(r.$$.fragment,s),n=!0)},o(s){r&&ee(r.$$.fragment,s),n=!1},d(s){s&&ne(t),r&&Lt(r,s)}}}function Gm(e){let r,t,n=e[2]&&Wc(e);return{c(){n&&n.c(),r=Qt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,[o]){i[2]?n?(n.p(i,o),o&4&&B(n,1)):(n=Wc(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(ir(),ee(n,1,1,()=>{n=null}),or())},i(i){t||(B(n),t=!0)},o(i){ee(n),t=!1},d(i){i&&ne(r),n&&n.d(i)}}}function Ym(e,r,t){let{componentContext:n}=r,{layoutParams:i=void 0}=r;const o=Hr(Zr);let s;return e.$$set=l=>{"componentContext"in l&&t(0,n=l.componentContext),"layoutParams"in l&&t(1,i=l.layoutParams)},e.$$.update=()=>{if(e.$$.dirty&5){const l=n.json;if(t(2,s=(l==null?void 0:l.type)&&Df[l.type]||void 0),!s){let a;l!=null&&l.type&&o.hasTemplate(l.type)?a="Recursive template":a="Unknown component",n.logError(x(new Error(a),{additional:{component:(l==null?void 0:l.type)||"<missing>"}}))}}},[n,i,s]}class ei extends Rr{constructor(r){super(),zr(this,r,Ym,Gm,yr,{componentContext:0,layoutParams:1})}}const Jm={"root-svg-filters":"divkit-44365"};function Uc(e,r,t){const n=e.slice();n[1]=r[t];const i=n[1].split(":");return n[2]=i[0],n[3]=i[1],n}function Gc(e){let r,t,n=nr([...Object.keys(e[0])]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Yc(Uc(e,n,o));return{c(){r=nn("svg"),t=nn("defs");for(let o=0;o<i.length;o+=1)i[o].c();p(r,"class",Jm["root-svg-filters"]),p(r,"aria-hidden","true")},m(o,s){ie(o,r,s),jt(r,t);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(t,null)},p(o,s){if(s&1){n=nr([...Object.keys(o[0])]);let l;for(l=0;l<n.length;l+=1){const a=Uc(o,n,l);i[l]?i[l].p(a,s):(i[l]=Yc(a),i[l].c(),i[l].m(t,null))}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length}},d(o){o&&ne(r),an(i,o)}}}function qm(e){let r,t;return{c(){r=nn("feBlend"),p(r,"in2","SourceGraphic"),p(r,"mode",t=e[3])},m(n,i){ie(n,r,i)},p(n,i){i&1&&t!==(t=n[3])&&p(r,"mode",t)},d(n){n&&ne(r)}}}function Km(e){let r;return{c(){r=nn("feComposite"),p(r,"in2","SourceGraphic"),p(r,"operator","arithmetic"),p(r,"k1","1"),p(r,"k2","0"),p(r,"k3","0"),p(r,"k4","0")},m(t,n){ie(t,r,n)},p:E,d(t){t&&ne(r)}}}function Xm(e){let r,t;return{c(){r=nn("feComposite"),p(r,"in2","SourceGraphic"),p(r,"operator",t=e[3].split("_")[1])},m(n,i){ie(n,r,i)},p(n,i){i&1&&t!==(t=n[3].split("_")[1])&&p(r,"operator",t)},d(n){n&&ne(r)}}}function Yc(e){let r,t,n,i;function o(a,c){return a[3]==="source_in"||a[3]==="source_atop"?Xm:a[3]==="multiply"?Km:qm}let s=o(e),l=s(e);return{c(){r=nn("filter"),t=nn("feFlood"),l.c(),p(t,"flood-color",n=e[2]),p(r,"id",i=e[0][e[1]])},m(a,c){ie(a,r,c),jt(r,t),l.m(r,null)},p(a,c){c&1&&n!==(n=a[2])&&p(t,"flood-color",n),s===(s=o(a))&&l?l.p(a,c):(l.d(1),l=s(a),l&&(l.c(),l.m(r,null))),c&1&&i!==(i=a[0][a[1]])&&p(r,"id",i)},d(a){a&&ne(r),l.d()}}}function Zm(e){let r=Object.keys(e[0]).length,t,n=r&&Gc(e);return{c(){n&&n.c(),t=Qt()},m(i,o){n&&n.m(i,o),ie(i,t,o)},p(i,[o]){o&1&&(r=Object.keys(i[0]).length),r?n?n.p(i,o):(n=Gc(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:E,o:E,d(i){i&&ne(t),n&&n.d(i)}}}function Qm(e,r,t){let{svgFiltersMap:n}=r;return e.$$set=i=>{"svgFiltersMap"in i&&t(0,n=i.svgFiltersMap)},[n]}class xm extends Rr{constructor(r){super(),zr(this,r,Qm,Zm,yr,{svgFiltersMap:0})}}function $m(e,r,t,n){const i=t[e.type];if(!i)return n(x(new Error("No such template"),{additional:{template:e.type}})),{json:e,templateContext:r};let o;const s={};for(o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);for(o in e)o==="type"||o==="__proto__"||e.hasOwnProperty(o)&&(s[o]=e[o]);function l(c,u){const f=Object.keys(u).filter(y=>y!=="__proto__"),_=f.filter(y=>y.charAt(0)!=="$"),m=f.filter(y=>y.charAt(0)==="$");return _.forEach(y=>{const h=u[y];typeof h=="object"&&h!==null?(c[y]=Array.isArray(h)?[]:{},l(c[y],h)):c[y]=h}),m.forEach(y=>{const h=u[y],w=s[h];if(w!==void 0){const v=y.substring(1);c[v]=w}}),c}const a=l({},i);for(o in e)o==="type"||o==="__proto__"||e.hasOwnProperty(o)&&(a[o]=e[o]);return{json:a,templateContext:s}}const e1=2147483647,t1=-2147483648,r1=Number.MAX_VALUE,n1=Number.MIN_VALUE,me="string",ue="integer",Le="number",Nr="boolean",Kr="color",On="url",fr="datetime",Kt="dict",Xt="array";function Nn(e,r){var t;switch((t=r[e.type])==null||t.call(r,e),e.type){case"TemplateLiteral":e.expressions.forEach(n=>{Nn(n,r)});break;case"BinaryExpression":case"LogicalExpression":Nn(e.left,r),Nn(e.right,r);break;case"UnaryExpression":Nn(e.argument,r);break;case"ConditionalExpression":Nn(e.test,r),Nn(e.consequent,r),Nn(e.alternate,r);break;case"TryExpression":Nn(e.test,r),Nn(e.alternate,r);break;case"CallExpression":e.arguments.forEach(n=>{Nn(n,r)});break;case"MethodExpression":Nn(e.object,r),e.arguments.forEach(n=>{Nn(n,r)});break}}function ms(e){return e.type==="url"||e.type==="color"?{type:"string",value:e.value}:e}function Ff(e){return e.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Xi(e){if(e.type==="string")return e.value;if(e.type==="integer")return String(e.value);if(e.type==="number"){let r=String(e.value);return r.includes(".")||(r.includes("e")?r=r.replace("e",".0e"):r+=".0"),r=r.replace(/e\+?/i,"E"),r}else{if(e.type==="boolean")return e.value?"true":"false";if(e.type==="datetime")return Ff(e.value);if(e.type==="color")return Qi(Ms(e.value));if(e.type==="url")return e.value;if(e.type==="dict")return"<dict>";if(e.type==="array")return"<array>"}throw new Error(`Unexpected type ${e.type}`)}function Jr(e){let r=Xi(e);return e.type==="string"&&(r="'"+r.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),r}function Tn(e){return e==="datetime"?"DateTime":e.charAt(0).toUpperCase()+e.substring(1)}function Zi(e,r){return tn(r)}function kn(e,r){if(r<Vo||r>So)throw new Error("Integer overflow.")}function Mf(e){const r=new Set;return Nn(e,{Variable(t){r.add(t.id.name)}}),[...r]}function qr(e,r){throw new Error(`Failed to evaluate [${e}]. ${r}`)}function Ms(e){const r=vi(e);if(r)return r;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Qi(e){return`#${[e.a,e.r,e.g,e.b].map(r=>{if(r<0||r>255)throw new Error("Value out of range 0..1.");return $u(Math.round(r).toString(16),2)}).join("").toUpperCase()}`}function _o(e){return Qi(Ms(e))}function nl(e){return{type:Le,value:Number(e.value)}}const i1={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function Pf(e,r,t){const n=i1[t];let i=typeof r;if(n==="array"&&!Array.isArray(r)||n!=="array"&&i!==n||i==="object"&&r===null)throw i==="object"&&(Array.isArray(r)?i="array":r===null?i="null":i="dict"),new Error(`Incorrect value type: expected ${Tn(t)}, got ${Tn(i)}.`);if(n==="number"&&t==="integer"){kn(e,r);try{r=tn(r)}catch{throw new Error("Cannot convert value to integer.")}}return n==="string"&&t==="color"&&(r=_o(r)),{type:t,value:r}}const vo=new Map,il=new Map,Jo=new Map,ol=new Map;function S(e,r,t){const n={args:r,cb:t},i=vo.get(e)||[];vo.has(e)||vo.set(e,i),i.push(n);const o=e+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");il.set(o,n)}function Br(e,r,t){const n={args:r,cb:t},i=Jo.get(e)||[];Jo.has(e)||Jo.set(e,i),i.push(n);const o=e+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");ol.set(o,n)}function o1(e,r){const t=e.args.length;let n=e.args.length,i=0;const o=e.args[e.args.length-1];if(typeof o=="object"&&o.isVararg&&(n=1/0),r.length<t)return{type:"few",expected:t,found:r.length};if(r.length>n)return{type:"many",expected:n,found:r.length};for(let s=0;s<r.length;++s){let l=s>=e.args.length?e.args[e.args.length-1]:e.args[s];if(typeof l!="object"&&(l={type:l}),l.type===Le&&r[s].type===ue){++i;continue}if(l.type!==r[s].type)return{type:"mismatch",expected:l.type,found:r[s].type}}return{type:"match",conversions:i}}function sl(e,r,t){const n=e.get(r);if(!n)return{type:"missing"};let i=null,o=null;for(let s=0;s<n.length;++s){const l=o1(n[s],t);if(l.type==="match"){(!o||o.conversions>l.conversions)&&(o={func:n[s],conversions:l.conversions});continue}i||(i=l)}if(!o){if(i)return i;throw new Error("Missing function")}return o}function Nf(e,r){return r.map((t,n)=>{let i=n>=e.args.length?e.args[e.args.length-1]:e.args[n];return typeof i!="object"&&(i={type:i}),i.type===Le&&t.type===ue?nl(t):t})}function Jc(e,r){return e+":"+r.args.map(t=>typeof t=="string"?t:t.type).join("#")}function mn(e,r){return r.type===Xt||r.type===Kt?{type:me,value:JSON.stringify(r.value)}:{type:me,value:Xi(r)}}function qc(e,r){const t=Number(r.value);if(Number.isNaN(t)||!Number.isFinite(t))throw new Error("Unable to convert value to Number.");if(r.value==="")throw new Error("Unable to convert value to Number.");return{type:Le,value:t}}function s1(e,r){if(r.value>So||r.value<Vo)throw new Error("Unable to convert value to Integer.");const t=r.value-r.value%1;return{type:ue,value:tn(t)}}function l1(e,r){let t;try{t=tn(r.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:ue,value:t}}function a1(e,r){return{type:ue,value:tn(r.value?1:0)}}function c1(e,r){const t=Number(r.value);if(t!==1&&t!==0)throw new Error("Unable to convert value to Boolean.");return{type:Nr,value:t}}function u1(e,r){if(r.value!=="true"&&r.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:Nr,value:r.value==="true"?1:0}}function f1(e,r){return{type:Kr,value:_o(r.value)}}function d1(e,r){return{type:On,value:r.value}}function _1(e,r){try{return{type:me,value:encodeURIComponent(r.value)}}catch{throw new Error("Unable to encodeUri string.")}}function h1(e,r){try{return{type:me,value:decodeURIComponent(r.value)}}catch{throw new Error("Unable to decodeUri string.")}}function Nl(e,r,t,n){const i=e.variables.get(r.value);let o;return i&&i.getType()===n?o=i.getValue():o=t.value,n==="color"&&(o=_o(o)),{type:n,value:o}}function Oo(e,r,t){return Nl(e,r,t,t.type)}function Kc(e,r,t){return Nl(e,r,t,"color")}function Xc(e,r,t){return Nl(e,r,t,"url")}function g1(){S("toString",[ue],mn),S("toString",[Le],mn),S("toString",[Nr],mn),S("toString",[Kr],mn),S("toString",[On],mn),S("toString",[me],mn),S("toString",[Xt],mn),S("toString",[Kt],mn),S("toNumber",[ue],qc),S("toNumber",[me],qc),S("toInteger",[Le],s1),S("toInteger",[me],l1),S("toInteger",[Nr],a1),S("toBoolean",[ue],c1),S("toBoolean",[me],u1),S("toColor",[me],f1),S("toUrl",[me],d1),S("encodeUri",[me],_1),S("decodeUri",[me],h1),S("getIntegerValue",[me,ue],Oo),S("getNumberValue",[me,Le],Oo),S("getBooleanValue",[me,Nr],Oo),S("getStringValue",[me,me],Oo),S("getColorValue",[me,Kr],Kc),S("getColorValue",[me,me],Kc),S("getUrlValue",[me,On],Xc),S("getUrlValue",[me,me],Xc),Br("toString",[ue],mn),Br("toString",[Le],mn),Br("toString",[Nr],mn),Br("toString",[Kr],mn),Br("toString",[On],mn),Br("toString",[me],mn),Br("toString",[Xt],mn),Br("toString",[Kt],mn)}function bn(e,r){return!e||!r?e:e.padStart(r,"0")}const ll={G(e,r){let t;return e<4?t="short":e===5?t="narrow":t="long",r({era:t},"era")},d(e,r){return bn(r({day:"numeric"},"day"),e>1?e:0)},D(e,r){return bn(r({},"dayofyear"),e>1?e:0)},F(e,r){return bn(r({},"dayofweekinmonth"),e>1?e:0)},M(e,r){let t;return e===1?t="numeric":e===2?t="2-digit":e===3?t="short":e===5?t="narrow":t="long",r({month:t,day:"numeric"},"month")},y(e,r){return bn(r({year:e===2?"2-digit":"numeric"},"year"),e>2?e:void 0)},Y(e,r){return bn(r({year:e===2?"2-digit":"numeric"},"weekyear"),e>2?e:void 0)},u(e,r){return bn(r({year:"numeric"},"extendedyear"),e>1?e:void 0)},E(e,r){let t;return e<=3?t="short":e===5?t="narrow":t="long",r({weekday:t},"weekday")},e(e,r){return e>2?ll.E(e,r):bn(r({},"weekdaynumeric"),e>1?e:void 0)},w(e,r){return bn(r({},"week"),e>1?e:void 0)},W(e,r){return bn(r({},"weekofmonth"),e>1?e:void 0)},H(e,r){const t=r({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!t)return;const n=String(Number(t)%24);return bn(n,e>1?e:void 0)},h(e,r){return bn(r({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),e>1?e:void 0)},K(e,r){const t=r({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!t)return;const n=String(Number(t)%12);return bn(n,e>1?e:void 0)},k(e,r){return bn(r({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),e>2?e:void 0)},a(e,r){return r({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(e,r){return bn(r({minute:"numeric"},"minute"),e>1?e:void 0)},s(e,r){return bn(r({second:"numeric"},"second"),e>1?e:void 0)},S(e,r){const t=r({fractionalSecondDigits:Math.min(3,e)},"fractionalSecond");return t&&e>3?t.padEnd(e,"0"):t},z(e,r){return r({timeZoneName:e===4?"long":"short"},"timeZoneName")},Z(e,r){const t=-Number(r({},"timezoneoffset")),n=Math.abs(t/60),i=Math.floor(n)*100+(n-Math.floor(n))*60;return(t>=0?"+":"-")+bn(String(i),4)}},p1=/(\w)\1*|''|'(''|[^'])+('|$)|./g,m1=/^'([^]*?)'?$/,b1=/''/g,y1=/[a-zA-Z]/,Ol=1e3*60*60*24;function w1(e){const r=e.match(m1);return r?r[1].replace(b1,"'"):e}function al(e,r,t){const n=e[r?"getUTCDay":"getDay"](),i=n<t?t-n-7:t-n;return new Date(e.getTime()+Ol*i)}function Zc(e,r,t){const n=new Date(e);return n[r?"setUTCDate":"setDate"](1),n[r?"setUTCMonth":"setMonth"](0),al(n,r,t)}function Qc(e,r){return Math.round((e.getTime()-r.getTime())/Ol)}function xc(e,r,t){let n=0;const i=Zc(e,r||!1,t),o=new Date(e);o[r?"setUTCFullYear":"setFullYear"](e[r?"getUTCFullYear":"getFullYear"]()+1);const s=Zc(o,r||!1,t),l=e.getTime()<i.getTime(),a=e.getTime()>=s.getTime();let c=e[r?"getUTCFullYear":"getFullYear"]();if(l){--c,i[r?"setUTCFullYear":"setFullYear"](i[r?"getUTCFullYear":"getFullYear"]()-1);const u=Qc(al(e,r,t),i);n=Math.round(u/7)+1}else if(a)++c,n=1;else{const u=Qc(al(e,r,t),i);n=Math.round(u/7)+1}return{week:n,year:c}}function v1(e,r,{locale:t,isUTC:n,weekStartDay:i=0}={}){const o=(s,l)=>{if(l==="week"){const{week:u}=xc(e,n||!1,i);return String(u)}if(l==="weekofmonth"){const u=e[n?"getUTCDay":"getDay"](),f=new Date(e);f[n?"setUTCDate":"setDate"](1);const _=f[n?"getUTCDay":"getDay"](),m=e[n?"getUTCDate":"getDate"]();return String(Math.ceil(m/7)+(u<_?1:0))}if(l==="dayofweekinmonth"){const u=e[n?"getUTCDate":"getDate"]();return String(Math.ceil(u/7))}if(l==="weekdaynumeric"){let u=e[n?"getUTCDay":"getDay"]();return u<i&&(u+=7),String(u-i+1)}if(l==="dayofyear"){const u=new Date(e);u[n?"setUTCMonth":"setMonth"](0),u[n?"setUTCDate":"setDate"](1),u[n?"setUTCHours":"setHours"](1),u[n?"setUTCMinutes":"setMinutes"](1),u[n?"setUTCSeconds":"setSeconds"](1);const f=Math.ceil((e.getTime()-u.getTime())/Ol);return String(f)}if(l==="weekyear"){let{year:u}=xc(e,n||!1,i);return u<1&&(u=1-u),s.year==="2-digit"?String(u%100):String(u)}if(l==="extendedyear"){const u=e[n?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(u%100):String(u)}if(l==="timezoneoffset")return n?"0":String(e.getTimezoneOffset());n&&(s.timeZone="UTC");const c=new Intl.DateTimeFormat(t,s).formatToParts(e);for(let u=0;u<c.length;++u)if(c[u].type===l)return c[u].value};return(r.match(p1)||[]).map(s=>{if(s==="''")return"'";const l=s[0];if(l==="'")return w1(s);if(ll[l])return ll[l](s.length,o);if(l.match(y1))throw new Error(`Format string contains an unescaped latin alphabet character "${l}"`);return s}).join("")}function k1(e){const r=new Date(e);return r.setUTCMonth(r.getUTCMonth()+1),r.setUTCDate(0),r.getUTCDate()}function A1(e,r){return{type:fr,value:new Date(Number(r.value)*1e3)}}function j1(e,r){const t=new Date(Number(r.value)*1e3),n=t.getTimezoneOffset();return t.setMinutes(t.getMinutes()-n),{type:fr,value:t}}function C1(){return{type:fr,value:new Date}}function E1(e,r,t){return{type:fr,value:new Date(r.value.getTime()+Number(t.value))}}function S1(e,r,t){const n=new Date(r.value);return n.setUTCFullYear(Number(t.value)),{type:fr,value:n}}function V1(e,r,t){const n=Number(t.value);if(n<1||n>12)throw new Error(`Expecting month in [1..12], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMonth(n-1),{type:fr,value:i}}function I1(e,r,t){const n=new Date(r.value),i=Number(t.value);if(i<=0&&i!==-1||i>k1(n))throw new Error(`Unable to set day ${i} for date ${Xi(r)}.`);return n.setUTCDate(i===-1?0:i),{type:fr,value:n}}function T1(e,r,t){const n=Number(t.value);if(n<0||n>23)throw new Error(`Expecting hours in [0..23], instead got ${n}.`);const i=new Date(r.value);return i.setUTCHours(n),{type:fr,value:i}}function D1(e,r,t){const n=Number(t.value);if(n<0||n>59)throw new Error(`Expecting minutes in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMinutes(n),{type:fr,value:i}}function F1(e,r,t){const n=Number(t.value);if(n<0||n>59)throw new Error(`Expecting seconds in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCSeconds(n),{type:fr,value:i}}function M1(e,r,t){const n=Number(t.value);if(n<0||n>999)throw new Error(`Expecting millis in [0..999], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMilliseconds(n),{type:fr,value:i}}const Di=e=>(r,t)=>{let i=new Date(t.value.getTime())[e]();return e==="getUTCMonth"?++i:e==="getUTCDay"&&i===0&&(i=7),{type:ue,value:tn(i)}};function Of(e){return(r,t,n,i)=>({type:me,value:v1(t.value,n.value,{locale:i==null?void 0:i.value,isUTC:e,weekStartDay:r.weekStartDay})})}const P1=Di("getUTCFullYear"),N1=Di("getUTCMonth"),O1=Di("getUTCDate"),z1=Di("getUTCDay"),R1=Di("getUTCHours"),L1=Di("getUTCMinutes"),B1=Di("getUTCSeconds"),H1=Di("getUTCMilliseconds"),$c=Of(!1),eu=Of(!0);function W1(){S("parseUnixTime",[ue],A1),S("parseUnixTimeAsLocal",[ue],j1),S("nowLocal",[],C1),S("addMillis",[fr,ue],E1),S("setYear",[fr,ue],S1),S("setMonth",[fr,ue],V1),S("setDay",[fr,ue],I1),S("setHours",[fr,ue],T1),S("setMinutes",[fr,ue],D1),S("setSeconds",[fr,ue],F1),S("setMillis",[fr,ue],M1),S("getYear",[fr],P1),S("getMonth",[fr],N1),S("getDay",[fr],O1),S("getDayOfWeek",[fr],z1),S("getHours",[fr],R1),S("getMinutes",[fr],L1),S("getSeconds",[fr],B1),S("getMillis",[fr],H1),S("formatDateAsLocal",[fr,me],$c),S("formatDateAsUTC",[fr,me],eu),S("formatDateAsLocalWithLocale",[fr,me,me],$c),S("formatDateAsUTCWithLocale",[fr,me,me],eu)}function U1(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function G1(e,r){return{type:ue,value:tn(r.value.length)}}function Y1(e,r,t){return{type:Nr,value:r.value.includes(t.value)?1:0}}function J1(e,r,t,n){if(n.value<t.value)throw new Error("Indexes should be in ascending order.");if(t.value<0||t.value>r.value.length||n.value<0||n.value>r.value.length)throw new Error("Indexes are out of bounds.");return{type:me,value:r.value.substring(Number(t.value),Number(n.value))}}function q1(e,r,t,n){let i;return t.value?i=r.value.replace(new RegExp(U1(t.value),"g"),n.value):i=r.value,{type:me,value:i}}function K1(e,r,t){return{type:ue,value:tn(r.value.indexOf(t.value))}}function X1(e,r,t){return{type:ue,value:tn(r.value.lastIndexOf(t.value))}}function Z1(e,r){return{type:me,value:r.value.trim()}}function Q1(e,r){return{type:me,value:r.value.replace(/^\s+/,"")}}function x1(e,r){return{type:me,value:r.value.replace(/\s+$/,"")}}function $1(e,r){return{type:me,value:r.value.toUpperCase()}}function eb(e,r){return{type:me,value:r.value.toLowerCase()}}function zf(e,r,t,n){if(!n.value.length)return e.warnings.push(x(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=r.type===me?r.value:Xi(r);for(;i.length+o.length<t.value;)i+=n.value;return i.length>0&&i.length+o.length>t.value&&(i=i.substring(0,Number(t.value)-Number(o.length))),i}function tu(e,r,t,n){const i=zf(e,r,t,n);return{type:me,value:i+Xi(r)}}function ru(e,r,t,n){const i=zf(e,r,t,n);return{type:me,value:Xi(r)+i}}function tb(e,r,t){let n;try{n=new RegExp(t.value)}catch{throw new Error("Invalid regular expression.")}return{type:Nr,value:n.test(r.value)?1:0}}function rb(e,r){return{type:me,value:r.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function nb(){S("len",[me],G1),S("contains",[me,me],Y1),S("substring",[me,ue,ue],J1),S("replaceAll",[me,me,me],q1),S("index",[me,me],K1),S("lastIndex",[me,me],X1),S("trim",[me],Z1),S("trimLeft",[me],Q1),S("trimRight",[me],x1),S("toUpperCase",[me],$1),S("toLowerCase",[me],eb),S("padStart",[me,ue,me],tu),S("padStart",[ue,ue,me],tu),S("padEnd",[me,ue,me],ru),S("padEnd",[ue,ue,me],ru),S("testRegex",[me,me],tb),S("encodeRegex",[me],rb)}function ib(e,r,t){if(t.value===qi)throw new Error("Division by zero is not supported.");let n=r.value/t.value;return n=Zi(e,n),kn(e,n),{type:ue,value:n}}function ob(e,r,t){if(t.value===0)throw new Error("Division by zero is not supported.");const n=r.value/t.value;return{type:Le,value:n}}function sb(e,r,t){if(t.value===qi)throw new Error("Division by zero is not supported.");let n=r.value%t.value;return n=Zi(e,n),kn(e,n),{type:ue,value:n}}function lb(e,r,t){if(t.value===0)throw new Error("Division by zero is not supported.");const n=r.value%t.value;return{type:Le,value:n}}function ab(e,...r){let t=r.length?r[0].value:qi;for(let n=1;n<r.length;++n)t*=r[n].value,t=Zi(e,t),kn(e,t);return{type:ue,value:t}}function cb(e,...r){let t=r.length?r[0].value:0;for(let n=1;n<r.length;++n)t*=r[n].value;return{type:Le,value:t}}function ub(e,...r){let t=r.length?r[0].value:qi;for(let n=1;n<r.length;++n)t-=r[n].value,t=Zi(e,t),kn(e,t);return{type:ue,value:t}}function fb(e,...r){let t=r.length?r[0].value:0;for(let n=1;n<r.length;++n)t-=r[n].value;return{type:Le,value:t}}function db(e,...r){let t=qi;for(let n=0;n<r.length;++n)t+=r[n].value,t=Zi(e,t),kn(e,t);return{type:ue,value:t}}function _b(e,...r){let t=0;for(let n=0;n<r.length;++n)t+=r[n].value;return{type:Le,value:t}}function hb(e,r){const t=yf(r.value);return kn(e,t),{type:r.type,value:t}}function gb(e,r){const t=Math.abs(r.value);return{type:Le,value:t}}function pb(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let t=r[0].value;for(let n=1;n<r.length;++n)r[n].value>t&&(t=r[n].value);return{type:ue,value:t}}function mb(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:Le,value:Math.max(...r.map(t=>t.value))}}function bb(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let t=r[0].value;for(let n=1;n<r.length;++n)r[n].value<t&&(t=r[n].value);return{type:ue,value:t}}function yb(e,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:Le,value:Math.min(...r.map(t=>t.value))}}function wb(){return{type:Le,value:r1}}function vb(){return{type:Le,value:n1}}function kb(e){return kn(e,So),{type:ue,value:So}}function Ab(e){return kn(e,Vo),{type:ue,value:Vo}}function jb(e,r){const t=Math.sign(r.value);return{type:Le,value:t*Math.round(Math.abs(r.value))}}function Cb(e,r){return{type:Le,value:Math.floor(r.value)}}function Eb(e,r){return{type:Le,value:Math.ceil(r.value)}}function Sb(e,r){return{type:ue,value:wf(r.value)}}function Vb(e,r){return{type:Le,value:Math.sign(r.value)}}function Ib(e,r,t){let n;if(t.value===qi)n=r.value;else if(r.value===qi)n=tn(0);else{const i=wf(t.value);n=yf(r.value)*i}return kn(e,n),{type:ue,value:n}}function Tb(e,r,t){let n=Math.sign(t.value);n===0&&(n=Object.is(n,0)?1:-1);const i=Math.abs(r.value)*n;return{type:Le,value:i}}function Db(){S("div",[ue,ue],ib),S("div",[Le,Le],ob),S("mod",[ue,ue],sb),S("mod",[Le,Le],lb),S("mul",[{type:ue,isVararg:!0}],ab),S("mul",[{type:Le,isVararg:!0}],cb),S("sub",[{type:ue,isVararg:!0}],ub),S("sub",[{type:Le,isVararg:!0}],fb),S("sum",[{type:ue,isVararg:!0}],db),S("sum",[{type:Le,isVararg:!0}],_b),S("abs",[ue],hb),S("abs",[Le],gb),S("max",[{type:ue,isVararg:!0}],pb),S("max",[{type:Le,isVararg:!0}],mb),S("min",[{type:ue,isVararg:!0}],bb),S("min",[{type:Le,isVararg:!0}],yb),S("maxNumber",[],wb),S("minNumber",[],vb),S("maxInteger",[],kb),S("minInteger",[],Ab),S("round",[Le],jb),S("floor",[Le],Cb),S("ceil",[Le],Eb),S("signum",[ue],Sb),S("signum",[Le],Vb),S("copySign",[ue,ue],Ib),S("copySign",[Le,Le],Tb)}function Ps(e){return(r,t)=>{const n=Ms(t.value);return{type:Le,value:n[e]/255}}}function Ns(e){return(r,t,n)=>{const i=Ms(t.value);return i[e]=n.value*255,{type:Kr,value:Qi(i)}}}const nu=Ps("a"),iu=Ps("r"),ou=Ps("g"),su=Ps("b"),lu=Ns("a"),au=Ns("r"),cu=Ns("g"),uu=Ns("b");function Fb(e,r,t,n){const i={a:255,r:r.value*255,g:t.value*255,b:n.value*255};return{type:Kr,value:Qi(i)}}function Mb(e,r,t,n,i){const o={a:r.value*255,r:t.value*255,g:n.value*255,b:i.value*255};return{type:Kr,value:Qi(o)}}function Pb(){S("getColorAlpha",[me],nu),S("getColorAlpha",[Kr],nu),S("getColorRed",[me],iu),S("getColorRed",[Kr],iu),S("getColorGreen",[me],ou),S("getColorGreen",[Kr],ou),S("getColorBlue",[me],su),S("getColorBlue",[Kr],su),S("setColorAlpha",[me,Le],lu),S("setColorAlpha",[Kr,Le],lu),S("setColorRed",[me,Le],au),S("setColorRed",[Kr,Le],au),S("setColorGreen",[me,Le],cu),S("setColorGreen",[Kr,Le],cu),S("setColorBlue",[me,Le],uu),S("setColorBlue",[Kr,Le],uu),S("rgb",[Le,Le,Le],Fb),S("argb",[Le,Le,Le,Le],Mb)}function Fi(e,r,t,n){if(r.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=tn(r.value)/tn(t);return kn(e,i),n&&(i=tn(i)%tn(n)),{type:ue,value:i}}const Rf=1e3,Nb=60,Lf=1e3*60,Ob=60,Bf=1e3*60*60,zb=24,Rb=1e3*60*60*24,Lb=1e3*60*60*24*7;function Bb(e,r){return Fi(e,r,Rf,Nb)}function Hb(e,r){return Fi(e,r,Rf)}function Wb(e,r){return Fi(e,r,Lf,Ob)}function Ub(e,r){return Fi(e,r,Lf)}function Gb(e,r){return Fi(e,r,Bf,zb)}function Yb(e,r){return Fi(e,r,Bf)}function Jb(e,r){return Fi(e,r,Rb)}function qb(e,r){return Fi(e,r,Lb)}function Kb(){S("getIntervalSeconds",[ue],Bb),S("getIntervalTotalSeconds",[ue],Hb),S("getIntervalMinutes",[ue],Wb),S("getIntervalTotalMinutes",[ue],Ub),S("getIntervalHours",[ue],Gb),S("getIntervalTotalHours",[ue],Yb),S("getIntervalTotalDays",[ue],Jb),S("getIntervalTotalWeeks",[ue],qb)}function Xb(e,r){let t=e;for(let n=0;n<r.length;++n){if(!t)throw new Error(`Missing property "${r[n]}" in the dict.`);const i=t[r[n]];if(i===void 0)throw new Error(`Missing property "${r[n]}" in the dict.`);t=i}return t}function Mi(e){return(r,t,...n)=>{if(n.length===0)throw new Error("Non empty argument list is required.");const i=Xb(t.value,n.map(o=>o.value));return Pf(r,i,e)}}function ho(e,r){return(t,n,i,...o)=>{try{return e(t,i,...o)}catch{let l=n.value;return r==="color"&&(l=_o(l)),{type:r,value:l}}}}const qo=Mi(me),Ko=Mi(Le),Xo=Mi(ue),Zo=Mi(Nr),Qo=Mi(Kr),xo=Mi(On),cl=Mi(Xt),ul=Mi(Kt),fu=ho(qo,me),du=ho(Ko,Le),_u=ho(Xo,ue),hu=ho(Zo,Nr),zo=ho(Qo,Kr),Ro=ho(xo,On);function Zb(e,r,...t){try{return cl(e,r,...t)}catch{return{type:Xt,value:[]}}}function Qb(e,r,...t){try{return ul(e,r,...t)}catch{return{type:Kt,value:{}}}}function xb(e,r,t){return{type:Nr,value:t.value in r.value?1:0}}function $b(e,r){return{type:Nr,value:Object.keys(r.value).length?0:1}}function ey(){const e={type:me,isVararg:!0};S("getDictString",[Kt,e],qo),S("getStringFromDict",[Kt,e],qo),S("getDictNumber",[Kt,e],Ko),S("getNumberFromDict",[Kt,e],Ko),S("getDictInteger",[Kt,e],Xo),S("getIntegerFromDict",[Kt,e],Xo),S("getDictBoolean",[Kt,e],Zo),S("getBooleanFromDict",[Kt,e],Zo),S("getDictColor",[Kt,e],Qo),S("getColorFromDict",[Kt,e],Qo),S("getDictUrl",[Kt,e],xo),S("getUrlFromDict",[Kt,e],xo),S("getDictOptString",[me,Kt,e],fu),S("getOptStringFromDict",[me,Kt,e],fu),S("getDictOptNumber",[Le,Kt,e],du),S("getOptNumberFromDict",[Le,Kt,e],du),S("getDictOptInteger",[ue,Kt,e],_u),S("getOptIntegerFromDict",[ue,Kt,e],_u),S("getDictOptBoolean",[Nr,Kt,e],hu),S("getOptBooleanFromDict",[Nr,Kt,e],hu),S("getDictOptColor",[Kr,Kt,e],zo),S("getOptColorFromDict",[Kr,Kt,e],zo),S("getDictOptColor",[me,Kt,e],zo),S("getOptColorFromDict",[me,Kt,e],zo),S("getDictOptUrl",[me,Kt,e],Ro),S("getOptUrlFromDict",[me,Kt,e],Ro),S("getDictOptUrl",[On,Kt,e],Ro),S("getOptUrlFromDict",[On,Kt,e],Ro),S("getDictFromDict",[Kt,e],ul),S("getArrayFromDict",[Kt,e],cl),S("getOptArrayFromDict",[Kt,e],Zb),S("getOptDictFromDict",[Kt,e],Qb),Br("getString",[Kt,e],qo),Br("getBoolean",[Kt,e],Zo),Br("getInteger",[Kt,e],Xo),Br("getNumber",[Kt,e],Ko),Br("getUrl",[Kt,e],xo),Br("getColor",[Kt,e],Qo),Br("getArray",[Kt,e],cl),Br("getDict",[Kt,e],ul),Br("containsKey",[Kt,me],xb),Br("isEmpty",[Kt],$b)}function Pi(e,r){return(t,n,i)=>{if(i.value<0||i.value>=n.value.length)throw new Error(`Requested index (${i.value}) out of bounds array size (${n.value.length}).`);let o=n.value[Number(i.value)],s=typeof o;if(e==="array"&&!Array.isArray(o)||e!=="array"&&s!==e||s==="object"&&o===null)throw s==="object"&&(Array.isArray(o)?s="Array":o===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Tn(r)}, got ${Tn(s)}.`);if(e==="number"&&r==="integer"){kn(t,o);try{o=tn(o)}catch{throw new Error("Cannot convert value to integer.")}}return e==="string"&&r==="color"&&(o=_o(o)),{type:r,value:o}}}function go(e,r){return(t,n,i,o)=>{try{return e(t,n,i)}catch{let l=o.value;return r==="color"&&(l=_o(l)),{type:r,value:l}}}}const $o=Pi("string","string"),es=Pi("number","number"),ts=Pi("number","integer"),rs=Pi("boolean","boolean"),ns=Pi("string","color"),is=Pi("string","url"),fl=Pi("array","array"),dl=Pi("object","dict"),gu=go($o,"string"),pu=go(es,"number"),mu=go(ts,"integer"),bu=go(rs,"boolean"),Lo=go(ns,"color"),Bo=go(is,"url");function ty(e,r,t){try{return fl(e,r,t)}catch{return{type:Xt,value:[]}}}function ry(e,r,t){try{return dl(e,r,t)}catch{return{type:Kt,value:{}}}}function ny(e,r){return{type:ue,value:tn(r.value.length)}}function iy(e,r){return{type:Nr,value:r.value.length===0?1:0}}function oy(){S("getArrayString",[Xt,ue],$o),S("getStringFromArray",[Xt,ue],$o),S("getArrayNumber",[Xt,ue],es),S("getNumberFromArray",[Xt,ue],es),S("getArrayInteger",[Xt,ue],ts),S("getIntegerFromArray",[Xt,ue],ts),S("getArrayBoolean",[Xt,ue],rs),S("getBooleanFromArray",[Xt,ue],rs),S("getArrayColor",[Xt,ue],ns),S("getColorFromArray",[Xt,ue],ns),S("getArrayUrl",[Xt,ue],is),S("getUrlFromArray",[Xt,ue],is),S("getArrayFromArray",[Xt,ue],fl),S("getDictFromArray",[Xt,ue],dl),S("getArrayOptString",[Xt,ue,me],gu),S("getOptStringFromArray",[Xt,ue,me],gu),S("getArrayOptNumber",[Xt,ue,Le],pu),S("getOptNumberFromArray",[Xt,ue,Le],pu),S("getArrayOptInteger",[Xt,ue,ue],mu),S("getOptIntegerFromArray",[Xt,ue,ue],mu),S("getArrayOptBoolean",[Xt,ue,Nr],bu),S("getOptBooleanFromArray",[Xt,ue,Nr],bu),S("getArrayOptColor",[Xt,ue,Kr],Lo),S("getOptColorFromArray",[Xt,ue,Kr],Lo),S("getArrayOptColor",[Xt,ue,me],Lo),S("getOptColorFromArray",[Xt,ue,me],Lo),S("getArrayOptUrl",[Xt,ue,On],Bo),S("getOptUrlFromArray",[Xt,ue,On],Bo),S("getArrayOptUrl",[Xt,ue,me],Bo),S("getOptUrlFromArray",[Xt,ue,me],Bo),S("getOptArrayFromArray",[Xt,ue],ty),S("getOptDictFromArray",[Xt,ue],ry),S("len",[Xt],ny),Br("getString",[Xt,ue],$o),Br("getInteger",[Xt,ue],ts),Br("getNumber",[Xt,ue],es),Br("getBoolean",[Xt,ue],rs),Br("getUrl",[Xt,ue],is),Br("getColor",[Xt,ue],ns),Br("getArray",[Xt,ue],fl),Br("getDict",[Xt,ue],dl),Br("isEmpty",[Xt],iy)}function si(e){return(r,t,n)=>{if(!r.store){if(!n)throw new Error("Missing value.");return{type:e,value:n.value}}let i;e==="boolean"?i="boolean":e==="number"||e==="integer"?i="number":i="string";let o;if(r.store.get?o=r.store.get(t.value,e):r.store.getValue&&(o=r.store.getValue(t.value,i)),o===void 0){if(!n)throw new Error("Missing value.");return{type:e,value:n.value}}return Pf(r,o,e)}}function sy(){S("getStoredIntegerValue",[me,ue],si(ue)),S("getStoredNumberValue",[me,Le],si(Le)),S("getStoredStringValue",[me,me],si(me)),S("getStoredUrlValue",[me,On],si(On)),S("getStoredUrlValue",[me,me],si(On)),S("getStoredColorValue",[me,Kr],si(Kr)),S("getStoredColorValue",[me,me],si(Kr)),S("getStoredBooleanValue",[me,Nr],si(Nr)),S("getStoredArrayValue",[me],si(Xt)),S("getStoredDictValue",[me],si(Kt))}function ly(){return{type:Le,value:Math.PI}}function ay(e,r){return{type:Le,value:r.value/180*Math.PI}}function cy(e,r){return{type:Le,value:r.value/Math.PI*180}}function uy(e,r){return{type:Le,value:Math.sin(r.value)}}function fy(e,r){return{type:Le,value:Math.cos(r.value)}}function dy(e,r){return{type:Le,value:Math.tan(r.value)}}function _y(e,r){return{type:Le,value:Math.atan(r.value)}}function hy(e,r){if(r.value>1||r.value<-1)throw new Error("Arcsine is undefined for the given value.");return{type:Le,value:Math.asin(r.value)}}function gy(e,r){if(r.value>1||r.value<-1)throw new Error("Arccosine is undefined for the given value.");return{type:Le,value:Math.acos(r.value)}}function py(){S("pi",[],ly),S("toRadians",[Le],ay),S("toDegrees",[Le],cy),S("sin",[Le],uy),S("cos",[Le],fy),S("tan",[Le],dy),S("atan",[Le],_y),S("asin",[Le],hy),S("acos",[Le],gy)}function my(){g1(),W1(),Kb(),nb(),Db(),Pb(),ey(),oy(),sy(),py()}my();function by(e,r){return{type:me,value:r.value}}function yy(e,r){return{type:Le,value:r.value}}function wy(e,r){return kn(e,r.value),{type:ue,value:r.value}}function vy(e,r){return{type:Nr,value:r.value?1:0}}function ky(e,r){const t=ms(hn(e,r.argument));switch(r.operator){case"!":if(t.type===Nr)return{type:Nr,value:t.value?0:1};qr(`${r.operator}${Jr(t)}`,"A Boolean is expected after a unary not.");case"+":case"-":const n=r.operator==="+"?1:-1;if(t.type===ue){const i=t.value*tn(n);return kn(e,i),{type:ue,value:i}}else{if(t.type===Le)return{type:Le,value:t.value*n};qr(`${r.operator}${Jr(t)}`,`A Number is expected after a unary ${r.operator==="+"?"plus":"minus"}.`)}}}function Ay(e,r){const t=ms(hn(e,r.test));if(t.type===Nr)return t.value?hn(e,r.consequent):hn(e,r.alternate);qr(`${Jr(t)} ? ${Jr(hn(e,r.consequent))} : ${Jr(hn(e,r.alternate))}`,"Ternary must be called with a Boolean value as a condition.")}function jy(e,r){try{return hn(e,r.test)}catch{return hn(e,r.alternate)}}function Cy(e,r){let t="";if(r.quasis.length===2&&r.quasis[0].value===""&&r.quasis[1].value==="")return hn(e,r.expressions[0]);for(let n=0;n<r.expressions.length;++n)t+=r.quasis[n].value,t+=Xi(hn(e,r.expressions[n]));return t+=r.quasis[r.quasis.length-1].value,{type:me,value:t}}function Ey(e,r){const t=ms(hn(e,r.left));if(t.type!==Nr&&qr(`${Jr(t)} ${r.operator} ...`,`'${r.operator}' must be called with boolean operands.`),r.operator==="||"&&t.value)return t;if(r.operator==="&&"&&!t.value)return{type:Nr,value:0};const n=ms(hn(e,r.right));return n.type!==Nr&&qr(`${Jr(t)} ${r.operator} ${Jr(n)}`,`Operator '${r.operator}' cannot be applied to different types: Boolean and ${Tn(n.type)}.`),{type:Nr,value:n.value}}function Sy(e,r,t){let n;return r.type===fr&&t.type===fr?n=r.value.getTime()===t.value.getTime():n=r.value===t.value,e==="!="&&(n=!n),{type:Nr,value:n?1:0}}function Vy(e,r,t){(r.type!==Le&&r.type!==ue&&r.type!==fr||t.type!==Le&&t.type!==ue&&t.type!==fr)&&qr(`${Jr(r)} ${e} ${Jr(t)}`,`Operator '${e}' cannot be applied to ${Tn(r.type)} type.`);let n;const i=r.type===fr?r.value.getTime():r.value,o=t.type===fr?t.value.getTime():t.value;return e===">"?n=i>o:e===">="?n=i>=o:e==="<"?n=i<o:n=i<=o,{type:Nr,value:n?1:0}}function Iy(e,r,t,n){if(t.type!==me&&t.type!==Le&&t.type!==ue&&qr(`${Jr(t)} ${r} ${Jr(n)}`,`Operator '${r}' cannot be applied to ${Tn(t.type)} type.`),t.type===me)return r==="-"&&qr(`${Jr(t)} - ${Jr(n)}`,`Operator '${r}' cannot be applied to ${Tn(t.type)} type.`),{type:me,value:t.value+n.value};let i=r==="+"?t.value+n.value:t.value-n.value;if(t.type===ue)try{i=Zi(e,i),kn(e,i)}catch(o){qr(`${Jr(t)} ${r} ${Jr(n)}`,o.message)}return{type:t.type,value:i}}function Ty(e,r,t,n){t.type!==ue&&t.type!==Le&&qr(`${Jr(t)} ${r} ${Jr(n)}`,`Operator '${r}' cannot be applied to ${Tn(t.type)} type.`);let i;if(r==="*")i=t.value*n.value;else if(r==="/"||r==="%")Number(n.value)===0&&qr(`${Jr(t)} ${r} ${Jr(n)}`,"Division by zero is not supported."),r==="/"?i=t.value/n.value:i=t.value%n.value;else throw new Error(`Unsupported operation ${r}`);if(t.type===ue)try{i=Zi(e,i),kn(e,i)}catch(o){qr(`${Jr(t)} ${r} ${Jr(n)}`,o.message)}return{type:t.type,value:i}}function Dy(e,r){const t=r.operator;let n=hn(e,r.left),i=hn(e,r.right);if((n.type==="number"&&i.type==="integer"||n.type==="integer"&&i.type==="number")&&(n.type==="integer"?n=nl(n):i.type==="integer"&&(i=nl(i))),n.type!==i.type&&qr(`${Jr(n)} ${r.operator} ${Jr(i)}`,`Operator '${t}' cannot be applied to different types: ${Tn(n.type)} and ${Tn(i.type)}.`),t==="=="||t==="!=")return Sy(t,n,i);if(t===">"||t===">="||t==="<"||t==="<=")return Vy(t,n,i);if(t==="+"||t==="-")return Iy(e,t,n,i);if(t==="/"||t==="*"||t==="%")return Ty(e,t,n,i);throw new Error(`Unsupported operation ${t}`)}function bs(e){return e.map(Jr).join(", ")}function Fy(e,r){const t=r.callee.name;let n,i=r.arguments.map(l=>hn(e,l));const o=t+":"+i.map(l=>l.type).join("#");let s;if(e.customFunctions&&(s=sl(e.customFunctions,t,i)),!s||!("func"in s))if(il.has(o))s={func:il.get(o),conversions:0};else{const l=sl(vo,t,i);("func"in l||!s)&&(s=l)}if(s&&(("expected"in s||"type"in s&&s.type==="missing")&&My(t,i,s),n=s.func,s.conversions&&(i=Nf(n,i))),!n)throw new Error("Function not found");try{return n.cb(e,...i)}catch(l){const a=`${t}(${bs(i)})`;qr(a,l.message)}}function My(e,r,t){const n=r.map(a=>Tn(a.type)).join(", "),i=`${e}(${bs(r)})`,o=vo.get(e)||[],s=o[0],l=o.length>1;if(t.type==="few"&&r.length===0&&l)qr(i,"Function requires non empty argument list.");else if(s&&(t.type==="many"||t.type==="few"||t.type==="mismatch"))if(l)qr(i,`Function has no matching overload for given argument types: ${n}.`);else if(t.type==="many"||t.type==="few")s.args.some(a=>typeof a=="object"&&a.isVararg)?qr(i,`At least ${s.args.length} argument(s) expected.`):qr(i,`Exactly ${s.args.length} argument(s) expected.`);else{const a=s.args.map(c=>Tn(typeof c=="string"?c:c.type)).join(", ");qr(i,`Invalid argument type: expected ${a}, got ${n}.`)}else qr(i,`Unknown function name: ${e}.`)}function Py(e,r){const t=r.method.name;let n,i=[r.object,...r.arguments].map(s=>hn(e,s));const o=t+":"+i.map(s=>s.type).join("#");if(ol.has(o))n=ol.get(o);else{const s=sl(Jo,t,i);if("expected"in s||"type"in s&&s.type==="missing"){const l=i.slice(1).map(c=>Tn(c.type)).join(", "),a=`${t}(${bs(i.slice(1))})`;s.type==="few"&&i.length===1?qr(a,"Method requires non empty argument list."):s.type==="many"?qr(a,`Method has no matching overload for given argument types: ${l}.`):s.type==="few"||s.type==="mismatch"?qr(a,`Method has no matching overload for given argument types: ${l}.`):qr(a,`Unknown method name: ${t}.`)}n=s.func,s.conversions&&(i=Nf(n,i))}if(!n)throw new Error("Method not found");try{return n.cb(e,...i)}catch(s){const l=`${t}(${bs(i.slice(1))})`;qr(l,s.message)}}function Ny(e,r){const t=r.id.name,n=e.variables.get(t);if(n)return I0(n);throw new Error(`Variable '${t}' is missing.`)}const yu={StringLiteral:by,NumberLiteral:yy,IntegerLiteral:wy,BooleanLiteral:vy,UnaryExpression:ky,ConditionalExpression:Ay,TryExpression:jy,TemplateLiteral:Cy,LogicalExpression:Ey,BinaryExpression:Dy,CallExpression:Fy,MethodExpression:Py,Variable:Ny};function hn(e,r){if(r.type in yu)return yu[r.type](e,r);throw new Error("Unsupported expression")}function ys(e,r,t,n,i){try{const o={variables:e,customFunctions:r,warnings:[],store:t,weekStartDay:(i==null?void 0:i.weekStartDay)||0};return{result:hn(o,n),warnings:o.warnings}}catch(o){return{result:{type:"error",value:o.message},warnings:[]}}}function Oy(e,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:e,consequent:r[3],alternate:r[7]}:e}function zy(e,r){return r&&r[3]?{type:"TryExpression",test:e,alternate:r[3]}:e}function Ho(e,r){return r.length?r.reduce((t,n)=>({type:"BinaryExpression",operator:n[1],left:t,right:n[3]}),e):e}function wu(e,r){return r.length?r.reduce((t,n)=>({type:"LogicalExpression",operator:n[1],left:t,right:n[3]}),e):e}function Ry(e,r){return r.length?r.reduce((t,n)=>{if(!n[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:t,method:n[3],arguments:n[5][2]}},e):e}function Ly(e){return e==="true"||e==="false"?{type:"BooleanLiteral",value:e==="true"}:{type:"Variable",id:{type:"Identifier",name:e}}}function vu(e){if(e.every(t=>typeof t=="string"))return{type:"StringLiteral",value:e.join("")};let r=e.reduce((t,n)=>(typeof n=="string"&&typeof t[t.length-1]=="string"?t[t.length-1]+=n:t.push(n),t),[]).reduce((t,n)=>(typeof n=="string"?t.quasis.push({type:"StringLiteral",value:n}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(n)),t),{type:"TemplateLiteral",quasis:[],expressions:[]});return r.quasis.length===r.expressions.length&&r.quasis.push({type:"StringLiteral",value:""}),r}function By(e){try{return tn(e)}catch{throw new Error(`Value ${e} can't be converted to Integer type.`)}}function ku(e){if(e==="'"||e==="\\")return e;throw new Error("Incorrect string escape")}function Hy(e,r){function t(){this.constructor=e}t.prototype=r.prototype,e.prototype=new t}function co(e,r,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,co.prototype),i.expected=r,i.found=t,i.location=n,i.name="SyntaxError",i}Hy(co,Error);function Ys(e,r,t){return t=t||" ",e.length>r?e:(r-=e.length,t+=t.repeat(r),e+t.slice(0,r))}co.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var t=null,n;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){t=e[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(t){var l=this.location.end,a=Ys("",o.line.toString().length," "),c=t[i.line-1],u=i.line===l.line?l.column:c.length+1,f=u-i.column||1;r+=`
|
|
5
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function S(){}const Ss=t=>t;function eo(t,r){for(const e in r)t[e]=r[e];return t}function Qu(t){return t()}function Zl(){return Object.create(null)}function Jr(t){t.forEach(Qu)}function Vr(t){return typeof t=="function"}function gd(t,r){return t!=t?r==r:t!==r||t&&typeof t=="object"||typeof t=="function"}let Lo;function Wn(t,r){return t===r?!0:(Lo||(Lo=document.createElement("a")),Lo.href=r,t===Lo.href)}function Ar(t,r){return t!=t?r==r:t!==r}function pd(t){return Object.keys(t).length===0}function N(t,...r){if(t==null){for(const n of r)n(void 0);return S}const e=t.subscribe(...r);return e.unsubscribe?()=>e.unsubscribe():e}function md(t){let r;return N(t,e=>r=e)(),r}function un(t,r,e){t.$$.on_destroy.push(N(r,e))}function Vs(t,r,e,n){if(t){const i=xu(t,r,e,n);return t[0](i)}}function xu(t,r,e,n){return t[1]&&n?eo(e.ctx.slice(),t[1](n(r))):e.ctx}function Is(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 Ds(t,r,e,n,i,o){if(i){const s=xu(r,e,n,o);t.p(s,i)}}function Ts(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 Xo(t,r,e){return t.set(e),r}function Fs(t){return t&&Vr(t.destroy)?t.destroy:S}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 $u=typeof window<"u";let El=$u?()=>window.performance.now():()=>Date.now(),jl=$u?t=>requestAnimationFrame(t):S;const fo=new Set;function ef(t){fo.forEach(r=>{r.c(t)||(fo.delete(r),r.f())}),fo.size!==0&&jl(ef)}function Cl(t){let r;return fo.size===0&&jl(ef),{promise:new Promise(e=>{fo.add(r={c:t,f:e})}),abort(){fo.delete(r)}}}const bi=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;let Ms=!1;function bd(){Ms=!0}function yd(){Ms=!1}function vd(t,r,e,n){for(;t<r;){const i=t+(r-t>>1);e(i)<=n?t=i+1:r=i}return t}function wd(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:vd(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 kd(t,r){t.appendChild(r)}function tf(t){if(!t)return document;const r=t.getRootNode?t.getRootNode():t.ownerDocument;return r&&r.host?r:t.ownerDocument}function Ad(t){const r=He("style");return r.textContent="/* empty */",Ed(tf(t),r),r.sheet}function Ed(t,r){return kd(t.head||t,r),r.sheet}function St(t,r){if(Ms){for(wd(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 jd(t,r,e){t.insertBefore(r,e||null)}function ie(t,r,e){Ms&&!e?St(t,r):(r.parentNode!==t||r.nextSibling!=e)&&t.insertBefore(r,e||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function hn(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function He(t){return document.createElement(t)}function en(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Zn(t){return document.createTextNode(t)}function yr(){return Zn(" ")}function Ne(){return Zn("")}function Ye(t,r,e,n){return t.addEventListener(r,e,n),()=>t.removeEventListener(r,e,n)}function m(t,r,e){e==null?t.removeAttribute(r):t.getAttribute(r)!==e&&t.setAttribute(r,e)}const Cd=["width","height"];function ni(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&&Cd.indexOf(n)===-1?t[n]=r[n]:m(t,n,r[n])}function Sd(t,r){Object.keys(r).forEach(e=>{Vd(t,e,r[e])})}function Vd(t,r,e){const n=r.toLowerCase();n in t?t[n]=typeof t[n]=="boolean"&&e===""?!0:e:r in t?t[r]=typeof t[r]=="boolean"&&e===""?!0:e:m(t,r,e)}function xl(t){return/-/.test(t)?Sd:ni}function De(t){return Array.from(t.childNodes)}function rf(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function nf(t,r,e,n,i=!1){rf(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 of(t,r,e,n){return nf(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 Je(t,r,e){return of(t,r,e,He)}function cn(t,r,e){return of(t,r,e,en)}function yi(t,r){return nf(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},()=>Zn(r),!0)}function vr(t){return yi(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 Id(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 Zo(r);rf(t);const i=t.splice(e,n-e+1);E(i[0]),E(i[i.length-1]);const o=i.slice(1,i.length-1);if(o.length===0)return new Zo(r);for(const s of o)s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new Zo(r,o)}function Oi(t,r){r=""+r,t.data!==r&&(t.data=r)}function ea(t,r){t.value=r==null?"":r}function B(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 Dd(t){const r=t.querySelector(":checked");return r&&r.__value}function sf(t,r,{bubbles:e=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:r,bubbles:e,cancelable:n})}class Td{constructor(r=!1){ur(this,"is_svg",!1);ur(this,"e");ur(this,"n");ur(this,"t");ur(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=en(e.nodeName):this.e=He(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)jd(this.t,this.n[e],r)}p(r){this.d(),this.h(r),this.i(this.a)}d(){this.n.forEach(E)}}class Zo extends Td{constructor(e=!1,n){super(e);ur(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)ie(this.t,this.n[n],e)}}function ra(t,r){return new t(r)}const ps=new Map;let ms=0;function Fd(t){let r=5381,e=t.length;for(;e--;)r=(r<<5)-r^t.charCodeAt(e);return r>>>0}function Md(t,r){const e={stylesheet:Ad(r),rules:{}};return ps.set(t,e),e}function bs(t,r,e,n,i,o,s,a=0){const l=16.666/n;let c=`{
|
|
6
|
+
`;for(let v=0;v<=1;v+=l){const w=r+(e-r)*o(v);c+=v*100+`%{${s(w,1-w)}}
|
|
7
|
+
`}const u=c+`100% {${s(e,1-e)}}
|
|
8
|
+
}`,f=`__svelte_${Fd(u)}_${a}`,h=tf(t),{stylesheet:p,rules:b}=ps.get(h)||Md(h,t);b[f]||(b[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`,ms+=1,f}function ys(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(", "),ms-=i,ms||Pd())}function Pd(){jl(()=>{ms||(ps.forEach(t=>{const{ownerNode:r}=t.stylesheet;r&&E(r)}),ps.clear())})}let Vo;function Co(t){Vo=t}function mo(){if(!Vo)throw new Error("Function called outside component initialization");return Vo}function ii(t){mo().$$.on_mount.push(t)}function Ps(t){mo().$$.after_update.push(t)}function fn(t){mo().$$.on_destroy.push(t)}function Nd(){const t=mo();return(r,e,{cancelable:n=!1}={})=>{const i=t.$$.callbacks[r];if(i){const o=sf(r,e,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}function Yi(t,r){return mo().$$.context.set(t,r),r}function Yr(t){return mo().$$.context.get(t)}function Ei(t,r){const e=t.$$.callbacks[r.type];e&&e.slice().forEach(n=>n.call(this,r))}const ao=[],Or=[];let ho=[];const na=[],lf=Promise.resolve();let el=!1;function af(){el||(el=!0,lf.then(cf))}function jn(){return af(),lf}function Un(t){ho.push(t)}const Ys=new Set;let oo=0;function cf(){if(oo!==0)return;const t=Vo;do{try{for(;oo<ao.length;){const r=ao[oo];oo++,Co(r),Od(r.$$)}}catch(r){throw ao.length=0,oo=0,r}for(Co(null),ao.length=0,oo=0;Or.length;)Or.pop()();for(let r=0;r<ho.length;r+=1){const e=ho[r];Ys.has(e)||(Ys.add(e),e())}ho.length=0}while(ao.length);for(;na.length;)na.pop()();el=!1,Ys.clear(),Co(t)}function Od(t){if(t.fragment!==null){t.update(),Jr(t.before_update);const r=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,r),t.after_update.forEach(Un)}}function zd(t){const r=[],e=[];ho.forEach(n=>t.indexOf(n)===-1?r.push(n):e.push(n)),e.forEach(n=>n()),ho=r}let Eo;function Sl(){return Eo||(Eo=Promise.resolve(),Eo.then(()=>{Eo=null})),Eo}function Ki(t,r,e){t.dispatchEvent(sf(`${r?"intro":"outro"}${e}`))}const Qo=new Set;let di;function lr(){di={r:0,c:[],p:di}}function ar(){di.r||Jr(di.c),di=di.p}function U(t,r){t&&t.i&&(Qo.delete(t),t.i(r))}function re(t,r,e,n){if(t&&t.o){if(Qo.has(t))return;Qo.add(t),di.c.push(()=>{Qo.delete(t),n&&(e&&t.d(1),n())}),t.o(r)}else n&&n()}const Vl={duration:0};function Il(t,r,e){const n={direction:"in"};let i=r(t,e,n),o=!1,s,a,l=0;function c(){s&&ys(t,s)}function u(){const{delay:h=0,duration:p=300,easing:b=Ss,tick:_=S,css:v}=i||Vl;v&&(s=bs(t,0,1,p,h,b,v,l++)),_(0,1);const w=El()+h,L=w+p;a&&a.abort(),o=!0,Un(()=>Ki(t,!0,"start")),a=Cl(P=>{if(o){if(P>=L)return _(1,0),Ki(t,!0,"end"),c(),o=!1;if(P>=w){const V=b((P-w)/p);_(V,1-V)}}return o})}let f=!1;return{start(){f||(f=!0,ys(t),Vr(i)?(i=i(n),Sl().then(u)):u())},invalidate(){f=!1},end(){o&&(c(),o=!1)}}}function Ld(t,r,e){const n={direction:"out"};let i=r(t,e,n),o=!0,s;const a=di;a.r+=1;let l;function c(){const{delay:u=0,duration:f=300,easing:h=Ss,tick:p=S,css:b}=i||Vl;b&&(s=bs(t,1,0,f,u,h,b));const _=El()+u,v=_+f;Un(()=>Ki(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),Cl(w=>{if(o){if(w>=v)return p(0,1),Ki(t,!1,"end"),--a.r||Jr(a.c),!1;if(w>=_){const L=h((w-_)/f);p(1-L,L)}}return o})}return Vr(i)?Sl().then(()=>{i=i(n),c()}):c(),{end(u){u&&"inert"in t&&(t.inert=l),u&&i.tick&&i.tick(1,0),o&&(s&&ys(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&&ys(t,c)}function h(b,_){const v=b.b-s;return _*=Math.abs(v),{a:s,b:b.b,d:v,duration:_,start:b.start,end:b.start+_,group:b.group}}function p(b){const{delay:_=0,duration:v=300,easing:w=Ss,tick:L=S,css:P}=o||Vl,V={start:El()+_,b};b||(V.group=di,di.r+=1),"inert"in t&&(b?u!==void 0&&(t.inert=u):(u=t.inert,t.inert=!0)),a||l?l=V:(P&&(f(),c=bs(t,s,b,v,_,w,P)),b&&L(0,1),a=h(V,v),Un(()=>Ki(t,b,"start")),Cl(F=>{if(l&&F>l.start&&(a=h(l,v),l=null,Ki(t,a.b,"start"),P&&(f(),c=bs(t,s,a.b,a.duration,0,w,o.css))),a){if(F>=a.end)L(s=a.b,1-s),Ki(t,a.b,"end"),l||(a.b?f():--a.group.r||Jr(a.group.c)),a=null;else if(F>=a.start){const x=F-a.start;s=a.a+a.d*w(x/a.duration),L(s,1-s)}}return!!(a||l)}))}return{run(b){Vr(o)?Sl().then(()=>{o=o({direction:b?"in":"out"}),p(b)}):p(b)},end(){f(),a=l=null}}}function sr(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function uf(t,r){re(t,1,1,()=>{r.delete(t.key)})}function ff(t,r,e,n,i,o,s,a,l,c,u,f){let h=t.length,p=o.length,b=h;const _={};for(;b--;)_[t[b].key]=b;const v=[],w=new Map,L=new Map,P=[];for(b=p;b--;){const D=f(i,o,b),J=e(D);let Z=s.get(J);Z?P.push(()=>Z.p(D,r)):(Z=c(J,D),Z.c()),w.set(J,v[b]=Z),J in _&&L.set(J,Math.abs(b-_[J]))}const V=new Set,F=new Set;function x(D){U(D,1),D.m(a,u),s.set(D.key,D),u=D.first,p--}for(;h&&p;){const D=v[p-1],J=t[h-1],Z=D.key,W=J.key;D===J?(u=D.first,h--,p--):w.has(W)?!s.has(Z)||V.has(Z)?x(D):F.has(W)?h--:L.get(Z)>L.get(W)?(F.add(Z),x(D)):(V.add(W),h--):(l(J,s),h--)}for(;h--;){const D=t[h];w.has(D.key)||l(D,s)}for(;p;)x(v[p-1]);return Jr(P),v}function bo(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 Yt(t){t&&t.c()}function Zt(t,r){t&&t.l(r)}function Ht(t,r,e){const{fragment:n,after_update:i}=t.$$;n&&n.m(r,e),Un(()=>{const o=t.$$.on_mount.map(Qu).filter(Vr);t.$$.on_destroy?t.$$.on_destroy.push(...o):Jr(o),t.$$.on_mount=[]}),i.forEach(Un)}function Wt(t,r){const e=t.$$;e.fragment!==null&&(zd(e.after_update),Jr(e.on_destroy),e.fragment&&e.fragment.d(r),e.on_destroy=e.fragment=null,e.ctx=[])}function Rd(t,r){t.$$.dirty[0]===-1&&(ao.push(t),af(),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31}function Hr(t,r,e,n,i,o,s=null,a=[-1]){const l=Vo;Co(t);const c=t.$$={fragment:null,ctx:[],props:o,update:S,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 b=p.length?p[0]:h;return c.ctx&&i(c.ctx[f],c.ctx[f]=b)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](b),u&&Rd(t,f)),h}):[],c.update(),u=!0,Jr(c.before_update),c.fragment=n?n(c.ctx):!1,r.target){if(r.hydrate){bd();const f=De(r.target);c.fragment&&c.fragment.l(f),f.forEach(E)}else c.fragment&&c.fragment.c();r.intro&&U(t.$$.fragment),Ht(t,r.target,r.anchor),yd(),cf()}Co(l)}class Wr{constructor(){ur(this,"$$");ur(this,"$$set")}$destroy(){Wt(this,1),this.$destroy=S}$on(r,e){if(!Vr(e))return S;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&&!pd(r)&&(this.$$.skip_bound=!0,this.$$set(r),this.$$.skip_bound=!1)}}const Bd="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Bd);const so=[];function Hd(t,r){return{subscribe:hi(t,r).subscribe}}function hi(t,r=S){let e;const n=new Set;function i(a){if(gd(t,a)&&(t=a,e)){const l=!so.length;for(const c of n)c[1](),so.push(c,t);if(l){for(let c=0;c<so.length;c+=2)so[c][0](so[c+1]);so.length=0}}}function o(a){i(a(t))}function s(a,l=S){const c=[a,l];return n.add(c),n.size===1&&(e=r(i,o)||S),a(t),()=>{n.delete(c),n.size===0&&e&&(e(),e=null)}}return{set:i,update:o,subscribe:s}}function Zi(t,r,e){const n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=r.length<2;return Hd(e,(s,a)=>{let l=!1;const c=[];let u=0,f=S;const h=()=>{if(u)return;f();const b=r(n?c[0]:c,s,a);o?s(b):f=Vr(b)?b:S},p=i.map((b,_)=>N(b,v=>{c[_]=v,u&=~(1<<_),l&&h()},()=>{u|=1<<_}));return l=!0,h(),function(){Jr(p),f(),l=!1}})}const Wd="divkit-6d515",Ud="divkit-27458",Gd="divkit-82db1",Yd="divkit-be734",Jd="divkit-9a652",nr={root_platform_desktop:Wd,root__clickable:Ud,"root__clickable-no-transition":"divkit-3bb57",root:Gd,"root__any-actions":"divkit-3b9c1",root__selectable:Yd,root__unselectable:Jd,"root__only-desktop":"divkit-316e7","root_restrict-scroll":"divkit-0a135","root_disabled-context-menu":"divkit-f5cb3"},tn=Symbol("root");function ee(t,r={}){const e=t;return e.level=r.level||"error",r.additional&&(e.additional=r.additional),e}const qd="divkit-bf0ea",Kd="divkit-27458",Xd="divkit-05991",Zd="divkit-80cac",Qd="divkit-90c49",xd="divkit-b33bc",$d="divkit-f6ff9",vs={outer:qd,root__clickable:Kd,"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:Xd,outer_height_content:Zd,"outer_width-constrained":"divkit-5bdb7","outer_parent-grid":"divkit-47ef2","outer_height-constrained":"divkit-351c8","outer_parent-overlap":"divkit-747b0","outer_scroll-snap_center":"divkit-c525d","outer_scroll-snap_start":"divkit-91fd4",outer__border:Qd,outer_visibility_invisible:xd,outer_visibility_gone:$d,"outer_has-action-animation":"divkit-4d4f3","outer_has-custom-focus":"divkit-b630e"};function Vt(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 ke(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 En(t){let r=ke(t);return r==="0"&&(r+="em"),r}function df(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=Si(t);return n?(n.a*=r,Dl(n)):e}function eh(t,r,e="transparent"){if(t=(typeof t=="string"&&t||"").toLowerCase(),t.charAt(0)!=="#")return e;const n=Si(t);return n?(n.a=r,Dl(n)):e}function Dl(t){return t.a===255?`#${[t.r,t.g,t.b].map(r=>df(Math.round(r).toString(16),2)).join("")}`:`rgba(${t.r},${t.g},${t.b},${(t.a/255).toFixed(2)})`}function Si(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,b=f.length===2?f:f+f,_=h.length===2?h:h+h,v=p.length===2?p:p+p,w=u.length===2?u:u+u;return{a:parseInt(w,16),r:parseInt(b,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 tl(t){let r=String(t);return r.indexOf("&")>-1&&(r=r.replace(/&/g,"&")),r.indexOf("<")>-1&&(r=r.replace(/</g,"<")),r.indexOf(">")>-1&&(r=r.replace(/>/g,">")),r.indexOf('"')>-1&&(r=r.replace(/"/g,""")),r}const Vi=Boolean;function Ns(t){if(t.length===1&&t[0].type==="solid")return rh({bg:t[0]});const r=t.map(e=>{if(e.type==="solid")return th({bg:e});if(e.type==="gradient")return nh({bg:e});if(e.type==="image")return sh({bg:e});if(e.type==="radial_gradient")return oh({bg:e})}).filter(Vi).reverse().reduce(function(e,n){return e.image.push(n.image),e.size.push(n.size||"auto"),e.position.push(n.pos||"50% 50%"),e},{image:[],size:[],position:[]});return{image:r.image.join(","),size:r.size.join(","),position:r.position.join(",")}}function th(t){const r=Mr(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:`linear-gradient(to bottom,${r},${r})`}}function rh(t){return{color:Mr(t.bg.color||"transparent"),size:"auto",position:"50% 50%"}}function nh(t){var e;if(!Array.isArray((e=t.bg)==null?void 0:e.colors))return;const r=t.bg.colors.filter(Vi);if(r.length)return{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0)+"deg")+","+r.map(n=>Mr(n)).join(",")+")"}}const ih={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 En(t.value);if(t.type==="relative")return`${Number(t.value)*100}%`}return"50%"}function oh(t){var s;if(!Array.isArray((s=t.bg)==null?void 0:s.colors))return;const r=t.bg.colors.filter(Vi);if(!r.length)return;const e=t.bg.radius;let n;e&&typeof e=="object"&&"type"in e&&e.value!==void 0&&(e.type==="fixed"?n=En(e.value):e.type==="relative"&&(n=ih[e.value]));const i=oa(t.bg.center_x),o=oa(t.bg.center_y);return{size:void 0,pos:void 0,image:`radial-gradient(circle ${n||"farthest-corner"} at ${i} ${o},`+r.map(a=>Mr(a)).join(",")+")"}}function sh(t){var e;const r=(e=t.bg)==null?void 0:e.image_url;if(r)return{size:hf(t.bg.scale),pos:_f(t.bg),image:'url("'+tl(r)+'")'}}function hf(t){return t==="fit"?"contain":t==="stretch"?"fill":t==="no_scale"?"none":"cover"}function _f(t){let r,e;return t.content_alignment_horizontal==="left"?r="0%":t.content_alignment_horizontal==="right"?r="100%":r="50%",t.content_alignment_vertical==="top"?e="0%":t.content_alignment_vertical==="bottom"?e="100%":e="50%",r+" "+e}function Xr(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 lh(t){return t.is_enabled!==0&&t.is_enabled!==!1&&t.index!==void 0}function ah(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,b)=>{const _=p.type==="visibility";return i.getDerivedFromVars({index:b,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})});let a;const l=()=>{a&&a.disconnect(),o.forEach(p=>{p.timer&&clearTimeout(p.timer)})},c=Zi(s,p=>p);let u;const f=p=>{const b=p.type==="visibility",_=i.getJsonWithVars(p.action);i.execAnyActions([_],{logType:b?"visible":"disappear",node:t,processUrls:!1})},h=c.subscribe(p=>{u=p.filter(lh);const b={};u.forEach(w=>{b[w.index]=w}),l();const _=[...new Set(u.map(w=>{const L=o[w.index].type==="visibility";return sa(L,w.visibility_percentage,L?50:0)/100}))];if(!_.length)return;const v=w=>{w.forEach(L=>{u.forEach(P=>{const V=o[P.index],F=V.type==="visibility",x=sa(F,P.visibility_percentage,F?50:0);let D;x===0?D=L.intersectionRatio>=1e-12:D=L.intersectionRatio>=x/100,(F?!V.visible&&D:V.visible&&!D)?V.finished||(V.timer=setTimeout(()=>{++V.count;const W=P.log_limit===0?1/0:P.log_limit||1;++V.count>=W&&(V.finished=!0),f(V)},Xr(P.visibility_duration,800))):(F?!D:D)&&V.timer&&clearTimeout(V.timer),V.visible=D})})};a=new IntersectionObserver(v,{threshold:_}),a.observe(t)});return{destroy(){u==null||u.forEach(p=>{const b=o[p.index];!b||b.type!=="disappear"||!b.visible||b.finished||n.registerTimeout(window.setTimeout(()=>{f(b)},p.visibility_duration))}),l(),h()}}}function la(t,r){r&&t.push(r)}function bt(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 _i(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?"":ke(e)+" "+ke(n)+" "+ke(i)+" "+ke(o)}function Os(t){if(typeof t!="number"&&typeof t!="string")return!1;const r=Number(t);return!Number.isNaN(r)}function Mn(t){return Os(t)&&t>=0}function Io(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 _i(t,r)}function ch(t,r){return!Mn(t)||t===void 0||t>1?r:Number(t)}const uh=Object.prototype.hasOwnProperty;function Fl(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(!uh.call(r,o)||!Fl(t[o],r[o]))return!1}return!0}function Pi(t,r){return Fl(t,r)?r:t}function fh(t,r){return t==="visible"||t==="invisible"||t==="gone"?t:r}function gf(t,r){return t==="linear"||t==="ease"||t==="ease_in_out"||t==="ease_in"||t==="ease_out"?t:r}function uo(t,r){const e=Number(t);return Number.isNaN(e)?r:e}function Ml(t){const r=[];return t.name==="set"?(t.items||[]).forEach(e=>{r.push(...Ml(e))}):r.push(t),r}function Oo(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 dh(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 hh(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 xo(t,r=0,e=10){return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map(n=>ke((n||r)/e*10)).join(" ")}function _h(t){var r,e,n,i,o,s;return ke(((e=(r=t.offset)==null?void 0:r.x)==null?void 0:e.value)||0)+" "+ke(((i=(n=t.offset)==null?void 0:n.y)==null?void 0:i.value)||0)+" "+ke((o=t.blur)!=null?o:2)+" "+Mr(t.color||"#000000",(s=t.alpha)!=null?s:.19)}function gh(t,r){var e,n,i,o,s,a;return"drop-shadow("+Mr(t.color||"#000000",(e=t.alpha)!=null?e:.19)+" "+ke((((i=(n=t.offset)==null?void 0:n.x)==null?void 0:i.value)||0)*10/r)+" "+ke((((s=(o=t.offset)==null?void 0:o.y)==null?void 0:s.value)||0)*10/r)+" "+ke(((a=t.blur)!=null?a:2)*10/r)+")"}function Tn(t){return t.is_enabled!==0&&t.is_enabled!==!1}let Js;function zs(){return typeof matchMedia>"u"?!1:(Js||(Js=window.matchMedia("(prefers-reduced-motion)")),Js.matches)}const ph=8,mh=(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>ph){const c=new Error("Recursive layout in size_provider");c.level="warn",c.additional={widthVariableName:e,heightVariableName:n},r.logError(c);break}await jn()}}),i.observe(t)),i},Pl=Symbol("enabled");function ti(t,r){return t===1||t===0||t===!1||t===!0?!!t:r}const bh="divkit-ee5cc",aa={actionable__button:bh};function yh(){}const ws=Symbol("action");function rl(t){if(t.startsWith("tel:"))return"tel";const r=/^([^/]+):\/\//.exec(t);return r&&r[1]||""}function nl(t,r){return r.has(t)}function vh(t){var u;let r,e,n,i,o;const s=t[26].default,a=Vs(s,t,t[25],null);let l=[{class:e=t[1]+" "+((u=t[0])!=null&&u.length?nr["root_disabled-context-menu"]:"")+" "+(t[11]?nr["root__any-actions"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},t[3]],c={};for(let f=0;f<l.length;f+=1)c=eo(c,l[f]);return{c(){r=He("span"),a&&a.c(),this.h()},l(f){r=Je(f,"SPAN",{class:!0,style:!0,role:!0,"aria-checked":!0});var h=De(r);a&&a.l(h),h.forEach(E),this.h()},h(){ni(r,c)},m(f,h){ie(f,r,h),a&&a.m(r,null),t[38](r),n=!0,i||(o=[Fs(t[4].call(null,r)),Ye(r,"click",t[33]),Ye(r,"keydown",t[13]),Ye(r,"focus",t[34]),Ye(r,"blur",t[35])],i=!0)},p(f,h){var p;a&&a.p&&(!n||h[0]&33554432)&&Ds(a,s,f,f[25],n?Is(s,f[25],h,null):Ts(f[25]),null),ni(r,c=bo(l,[(!n||h[0]&2051&&e!==(e=f[1]+" "+((p=f[0])!=null&&p.length?nr["root_disabled-context-menu"]:"")+" "+(f[11]?nr["root__any-actions"]:"")))&&{class:e},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&4096)&&{"aria-checked":f[12]},h[0]&8&&f[3]]))},i(f){n||(U(a,f),n=!0)},o(f){re(a,f),n=!1},d(f){f&&E(r),a&&a.d(f),t[38](null),i=!1,Jr(o)}}}function wh(t){var u;let r,e,n,i,o;const s=t[26].default,a=Vs(s,t,t[25],null);let l=[{class:e=t[1]+" "+aa.actionable__button+" "+nr["root__any-actions"]+` ${t[5]?nr.root__clickable:nr["root__clickable-no-transition"]} ${nr.root__unselectable} `+((u=t[0])!=null&&u.length?nr["root_disabled-context-menu"]:"")},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{type:"button"},t[3]],c={};for(let f=0;f<l.length;f+=1)c=eo(c,l[f]);return{c(){r=He("button"),a&&a.c(),this.h()},l(f){r=Je(f,"BUTTON",{class:!0,style:!0,role:!0,"aria-checked":!0,type:!0});var h=De(r);a&&a.l(h),h.forEach(E),this.h()},h(){ni(r,c)},m(f,h){ie(f,r,h),a&&a.m(r,null),r.autofocus&&r.focus(),t[37](r),n=!0,i||(o=[Fs(t[4].call(null,r)),Ye(r,"click",t[30]),Ye(r,"keydown",t[13]),Ye(r,"focus",t[31]),Ye(r,"blur",t[32])],i=!0)},p(f,h){var p;a&&a.p&&(!n||h[0]&33554432)&&Ds(a,s,f,f[25],n?Is(s,f[25],h,null):Ts(f[25]),null),ni(r,c=bo(l,[(!n||h[0]&35&&e!==(e=f[1]+" "+aa.actionable__button+" "+nr["root__any-actions"]+` ${f[5]?nr.root__clickable:nr["root__clickable-no-transition"]} ${nr.root__unselectable} `+((p=f[0])!=null&&p.length?nr["root_disabled-context-menu"]:"")))&&{class:e},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&4096)&&{"aria-checked":f[12]},{type:"button"},h[0]&8&&f[3]]))},i(f){n||(U(a,f),n=!0)},o(f){re(a,f),n=!1},d(f){f&&E(r),a&&a.d(f),t[37](null),i=!1,Jr(o)}}}function kh(t){var u;let r,e,n,i,o;const s=t[26].default,a=Vs(s,t,t[25],null);let l=[{href:t[7]},{target:t[10]},{style:t[2]},{role:t[9]},{"aria-checked":t[12]},{class:e=t[1]+" "+nr["root__any-actions"]+" "+(t[5]?nr.root__clickable:nr["root__clickable-no-transition"])+" "+((u=t[0])!=null&&u.length?nr["root_disabled-context-menu"]:"")},t[3]],c={};for(let f=0;f<l.length;f+=1)c=eo(c,l[f]);return{c(){r=He("a"),a&&a.c(),this.h()},l(f){r=Je(f,"A",{href:!0,target:!0,style:!0,role:!0,"aria-checked":!0,class:!0});var h=De(r);a&&a.l(h),h.forEach(E),this.h()},h(){ni(r,c)},m(f,h){ie(f,r,h),a&&a.m(r,null),t[36](r),n=!0,i||(o=[Fs(t[4].call(null,r)),Ye(r,"click",t[27]),Ye(r,"keydown",t[13]),Ye(r,"focus",t[28]),Ye(r,"blur",t[29])],i=!0)},p(f,h){var p;a&&a.p&&(!n||h[0]&33554432)&&Ds(a,s,f,f[25],n?Is(s,f[25],h,null):Ts(f[25]),null),ni(r,c=bo(l,[(!n||h[0]&128)&&{href:f[7]},(!n||h[0]&1024)&&{target:f[10]},(!n||h[0]&4)&&{style:f[2]},(!n||h[0]&512)&&{role:f[9]},(!n||h[0]&4096)&&{"aria-checked":f[12]},(!n||h[0]&35&&e!==(e=f[1]+" "+nr["root__any-actions"]+" "+(f[5]?nr.root__clickable:nr["root__clickable-no-transition"])+" "+((p=f[0])!=null&&p.length?nr["root_disabled-context-menu"]:"")))&&{class:e},h[0]&8&&f[3]]))},i(f){n||(U(a,f),n=!0)},o(f){re(a,f),n=!1},d(f){f&&E(r),a&&a.d(f),t[36](null),i=!1,Jr(o)}}}function Ah(t){let r,e,n,i;const o=[kh,wh,vh],s=[];function a(l,c){return l[7]?0:l[8]?1:2}return r=a(t),e=s[r]=o[r](t),{c(){e.c(),n=Ne()},l(l){e.l(l),n=Ne()},m(l,c){s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?s[r].p(l,c):(lr(),re(s[u],1,1,()=>{s[u]=null}),ar(),e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n))},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),s[r].d(l)}}}const ca=8,ua=400,qs=400,Eh=new Set(["button","image","checkbox","radio"]);function jh(t,r,e){let{$$slots:n={},$$scope:i}=r,{componentContext:o}=r,{id:s=""}=r,{actions:a=void 0}=r,{doubleTapActions:l=void 0}=r,{longTapActions:c=void 0}=r,{pressStartActions:u=void 0}=r,{pressEndActions:f=void 0}=r,{hoverStartActions:h=void 0}=r,{hoverEndActions:p=void 0}=r,{cls:b=""}=r,{style:_=null}=r,{attrs:v=void 0}=r,{use:w=yh}=r,{customAction:L=null}=r,{isNativeActionAnimation:P=!0}=r,{hasInnerFocusable:V=!1}=r,{customAccessibility:F=void 0}=r;const x=Yr(tn),D=Yr(ws);Yi(ws,{hasAction(){return!!(D.hasAction()||a!=null&&a.length)}});let J,Z="",W,G=-1,z=-1,he=null,ye=!1,Te=!1,_e=!1,be,pt,Ue,Re;function Me(){return(a==null?void 0:a.some(C=>{if(C!=null&&C.typed)return!0;const rt=C==null?void 0:C.url;if(!rt)return!1;const le=rl(rt);return le&&!nl(le,x.getBuiltinProtocols())}))||!1}async function Ze(C,rt){a&&(C&&Me()&&C.preventDefault(),o.execAnyActions(a,{node:J,processUrls:rt}))}async function et(C){if(D.hasAction()||C.button!==void 0&&C.button!==0)return;const rt=Date.now();if(G>0&&rt>G+ua){C.preventDefault();return}if(l!=null&&l.length&&z>0&&rt-z<qs){C.preventDefault(),o.execAnyActions(l,{processUrls:!0,node:J}),z=-1;return}if(z=rt,l!=null&&l.length&&G>0&&rt<G+qs){C.preventDefault(),clearTimeout(pt),pt=window.setTimeout(()=>{Ze(void 0,!0)},qs);return}(L==null?void 0:L(C))===!1?C.preventDefault():Ze(C,!1)}function Q(C){D.hasAction()||(he={x:C.clientX,y:C.clientY},ye=!1,G=Date.now(),be&&clearTimeout(be),clearTimeout(pt),o.execAnyActions(u,{node:J}))}function Ee(C){he&&(Math.abs(he.x-C.clientX)>ca||Math.abs(he.y-C.clientY)>ca)&&(ye=!0)}function ge(C){D.hasAction()||!he||G<0||(!ye&&Date.now()-G>=ua&&(C.stopImmediatePropagation(),o.execAnyActions(c,{processUrls:!0,node:J})),be&&clearTimeout(be),be=window.setTimeout(()=>{he=null,G=-1},100),o.execAnyActions(f,{node:J}))}function nt(){D.hasAction()||o.execAnyActions(h,{node:J})}function Y(){D.hasAction()||o.execAnyActions(p,{node:J})}function Se(C){const rt=C.target;rt instanceof HTMLElement&&(rt.tagName==="INPUT"||rt.contentEditable==="true")||C.ctrlKey||C.metaKey||C.altKey||C.shiftKey||C.key==="Enter"&&Array.isArray(a)&&a.length&&(o.execAnyActions(a),C.preventDefault())}ii(()=>{s&&!V&&x.registerFocusable(s,{focus(){J&&(Z||Te)&&J.focus()}})}),fn(()=>{typeof window<"u"&&(window.removeEventListener("pointermove",Ee),window.removeEventListener("pointerup",ge),window.removeEventListener("pointercancel",ge)),s&&!V&&x.unregisterFocusable(s),be&&clearTimeout(be),pt&&clearTimeout(pt)});function Ge(C){Ei.call(this,t,C)}function ne(C){Ei.call(this,t,C)}function lt(C){Ei.call(this,t,C)}function je(C){Ei.call(this,t,C)}function Ie(C){Ei.call(this,t,C)}function kt(C){Ei.call(this,t,C)}function Tt(C){Ei.call(this,t,C)}function te(C){Ei.call(this,t,C)}function it(C){Ei.call(this,t,C)}function ut(C){Or[C?"unshift":"push"](()=>{J=C,e(6,J)})}function gt(C){Or[C?"unshift":"push"](()=>{J=C,e(6,J)})}function qe(C){Or[C?"unshift":"push"](()=>{J=C,e(6,J)})}return t.$$set=C=>{"componentContext"in C&&e(14,o=C.componentContext),"id"in C&&e(15,s=C.id),"actions"in C&&e(16,a=C.actions),"doubleTapActions"in C&&e(17,l=C.doubleTapActions),"longTapActions"in C&&e(0,c=C.longTapActions),"pressStartActions"in C&&e(18,u=C.pressStartActions),"pressEndActions"in C&&e(19,f=C.pressEndActions),"hoverStartActions"in C&&e(20,h=C.hoverStartActions),"hoverEndActions"in C&&e(21,p=C.hoverEndActions),"cls"in C&&e(1,b=C.cls),"style"in C&&e(2,_=C.style),"attrs"in C&&e(3,v=C.attrs),"use"in C&&e(4,w=C.use),"customAction"in C&&e(22,L=C.customAction),"isNativeActionAnimation"in C&&e(5,P=C.isNativeActionAnimation),"hasInnerFocusable"in C&&e(23,V=C.hasInnerFocusable),"customAccessibility"in C&&e(24,F=C.customAccessibility),"$$scope"in C&&e(25,i=C.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&4276352){if(Array.isArray(a)&&(a!=null&&a.length))for(let C=0;C<a.length;++C){const rt=a[C].url;if(rt){e(7,Z=rt),e(10,W=a[C].target||void 0);break}}Array.isArray(a)&&(a!=null&&a.length)&&D.hasAction()&&(e(7,Z=""),o.logError(ee(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),e(8,Te=!!L),Z&&!nl(rl(Z),x.getBuiltinProtocols())?(e(7,Z=""),e(8,Te=!0)):!Z&&Array.isArray(a)&&(a!=null&&a.length)&&(e(8,Te=!0),a.some(C=>C.url||C.typed||C.menu_items)||o.logError(ee(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}t.$$.dirty[0]&16778112&&(F!=null&&F.type&&Eh.has(F.type)?e(9,Ue=F.type):Z?e(9,Ue=void 0):Te&&e(9,Ue="button"),(Ue==="checkbox"||Ue==="radio")&&typeof(F==null?void 0:F.is_checked)=="boolean"?e(12,Re=F.is_checked):e(12,Re=void 0)),t.$$.dirty[0]&4063681&&J&&(Z||Te||l!=null&&l.length?J.addEventListener("click",et):J.removeEventListener("click",et),l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length?(J.addEventListener("pointerdown",Q,{passive:!0}),window.addEventListener("pointermove",Ee,{passive:!0}),window.addEventListener("pointerup",ge,{passive:!0}),window.addEventListener("pointercancel",ge,{passive:!0})):(J.removeEventListener("pointerdown",Q),window.removeEventListener("pointerup",ge),window.removeEventListener("pointermove",Ee),window.removeEventListener("pointercancel",ge)),h!=null&&h.length?J.addEventListener("pointerenter",nt):J.removeEventListener("pointerenter",nt),p!=null&&p.length?J.addEventListener("pointerleave",Y):J.removeEventListener("pointerleave",Y),e(11,_e=!!(Z||Te||l!=null&&l.length||c!=null&&c.length||u!=null&&u.length||f!=null&&f.length||h!=null&&h.length||p!=null&&p.length)))},[c,b,_,v,w,P,J,Z,Te,Ue,W,_e,Re,Se,o,s,a,l,u,f,h,p,L,V,F,i,n,Ge,ne,lt,je,Ie,kt,Tt,te,it,ut,gt,qe]}class Ls extends Wr{constructor(r){super(),Hr(this,r,jh,Ah,Ar,{componentContext:14,id:15,actions:16,doubleTapActions:17,longTapActions:0,pressStartActions:18,pressEndActions:19,hoverStartActions:20,hoverEndActions:21,cls:1,style:2,attrs:3,use:4,customAction:22,isNativeActionAnimation:5,hasInnerFocusable:23,customAccessibility:24},null,[-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 Pn(t){return Os(t)&&t>0}function pf(t,r){return t.map(e=>{if(!e){r(ee(new Error("Incorrect filter"),{level:"warn"}));return}if(e.type==="blur"){if(Pn(e.radius))return`blur(${En(e.radius/2)})`}else{if(e.type==="rtl_mirror")return;r(ee(new Error("Unknown filter"),{level:"warn",additional:{filter:e.type}}))}}).filter(Boolean).join(" ")}function fa(t,r,e){const n=t.slice();return n[6]=r[e],n}function Ch(t){let r,e;return{c(){r=He("span"),this.h()},l(n){r=Je(n,"SPAN",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Ji["outer-background__item"]),m(r,"style",e=Vt(t[6].style))},m(n,i){ie(n,r,i)},p(n,i){i&2&&e!==(e=Vt(n[6].style))&&m(r,"style",e)},d(n){n&&E(r)}}}function Sh(t){let r,e,n,i,o;return{c(){r=He("img"),this.h()},l(s){r=Je(s,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Wn(r.src,e=t[6].image_url)||m(r,"src",e),m(r,"alt",""),m(r,"aria-hidden","true"),m(r,"loading","lazy"),m(r,"decoding","async"),m(r,"class",Ji["outer-background__item"]),m(r,"style",n=Vt(t[6].style))},m(s,a){ie(s,r,a),i||(o=Ye(r,"error",t[2]),i=!0)},p(s,a){a&2&&!Wn(r.src,e=s[6].image_url)&&m(r,"src",e),a&2&&n!==(n=Vt(s[6].style))&&m(r,"style",n)},d(s){s&&E(r),i=!1,o()}}}function da(t){let r;function e(o,s){return o[6].image_url?Sh:Ch}let n=e(t),i=n(t);return{c(){i.c(),r=Ne()},l(o){i.l(o),r=Ne()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function Vh(t){let r,e,n=sr(t[1]),i=[];for(let o=0;o<n.length;o+=1)i[o]=da(fa(t,n,o));return{c(){r=He("span");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=Je(o,"SPAN",{class:!0});var s=De(r);for(let a=0;a<i.length;a+=1)i[a].l(s);s.forEach(E),this.h()},h(){m(r,"class",e=Ji["outer-background"]+(t[0]?" "+Ji["outer-background_clip"]:"")),B(r,"border-radius",t[0])},m(o,s){ie(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=sr(o[1]);let a;for(a=0;a<n.length;a+=1){const l=fa(o,n,a);i[a]?i[a].p(l,s):(i[a]=da(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=Ji["outer-background"]+(o[0]?" "+Ji["outer-background_clip"]:""))&&m(r,"class",e),s&1&&B(r,"border-radius",o[0])},i:S,o:S,d(o){o&&E(r),hn(i,o)}}}function Ih(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(Ji["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=Ns([c]);c.type==="solid"&&(u["background-color"]=h.color),c.type==="gradient"&&(u["background-image"]=h.image),c.type==="image"&&(u.opacity=Number(c.alpha),f.image_url=c.image_url,u["object-fit"]=h.size,u["object-position"]=h.position,Array.isArray(c.filters)&&c.filters.length&&(u.filter=pf(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 Dh extends Wr{constructor(r){super(),Hr(this,r,Ih,Vh,Ar,{direction:3,componentContext:4,background:5,radius:0})}}const Th=t=>({hasCustomFocus:t[0]&4096}),ha=t=>({focusHandler:t[49],blurHandler:t[50],hasCustomFocus:t[12]});function _a(t){let r,e;return r=new Ls({props:{componentContext:t[0],id:t[0].json.id,use:t[48],cls:t[1]+" "+bt("outer",vs,t[23]),style:Vt(t[22]),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||ma(t[11]),customAccessibility:t[13],$$slots:{default:[Fh]},$$scope:{ctx:t}}}),r.$on("focus",t[49]),r.$on("blur",t[50]),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(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]&8388610&&(o.cls=n[1]+" "+bt("outer",vs,n[23])),i[0]&4194304&&(o.style=Vt(n[22])),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||ma(n[11])),i[0]&8192&&(o.customAccessibility=n[13]),i[0]&86137|i[4]&1024&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function ga(t){let r,e;return r=new Dh({props:{componentContext:t[0],direction:t[14],background:t[5],radius:t[4]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&16384&&(o.direction=n[14]),i[0]&32&&(o.background=n[5]),i[0]&16&&(o.radius=n[4]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function pa(t){let r,e;return{c(){r=He("span"),this.h()},l(n){r=Je(n,"SPAN",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",vs.outer__border),m(r,"style",e=Vt(t[3]))},m(n,i){ie(n,r,i)},p(n,i){i[0]&8&&e!==(e=Vt(n[3]))&&m(r,"style",e)},d(n){n&&E(r)}}}function Fh(t){let r,e,n,i=t[6]&&ga(t);const o=t[133].default,s=Vs(o,t,t[134],ha);let a=t[16]&&pa(t);return{c(){i&&i.c(),r=Ne(),s&&s.c(),a&&a.c(),e=Ne()},l(l){i&&i.l(l),r=Ne(),s&&s.l(l),a&&a.l(l),e=Ne()},m(l,c){i&&i.m(l,c),ie(l,r,c),s&&s.m(l,c),a&&a.m(l,c),ie(l,e,c),n=!0},p(l,c){l[6]?i?(i.p(l,c),c[0]&64&&U(i,1)):(i=ga(l),i.c(),U(i,1),i.m(r.parentNode,r)):i&&(lr(),re(i,1,1,()=>{i=null}),ar()),s&&s.p&&(!n||c[0]&4096|c[4]&1024)&&Ds(s,o,l,l[134],n?Is(o,l[134],c,Th):Ts(l[134]),ha),l[16]?a?a.p(l,c):(a=pa(l),a.c(),a.m(e.parentNode,e)):a&&(a.d(1),a=null)},i(l){n||(U(i),U(s,l),n=!0)},o(l){re(i),re(s,l),n=!1},d(l){l&&(E(r),E(e)),i&&i.d(l),s&&s.d(l),a&&a.d(l)}}}function Mh(t){let r,e,n=!t[17]&&!t[18]&&_a(t);return{c(){n&&n.c(),r=Ne()},l(i){n&&n.l(i),r=Ne()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){!i[17]&&!i[18]?n?(n.p(i,o),o[0]&393216&&U(n,1)):(n=_a(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(lr(),re(n,1,1,()=>{n=null}),ar())},i(i){e||(U(n),e=!0)},o(i){re(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}const Ph={left:"start",center:"center",right:"end",start:"start",end:"end"},Nh={left:"end",center:"center",right:"start",start:"start",end:"end"},Oh={top:"start",center:"center",bottom:"end",baseline:"baseline"};function ma(t){return t.some(r=>r.name==="native")}function zh(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J,Z,W,G,z,he,ye,Te,_e,be=S,pt=()=>(be(),be=N(Z,ve=>e(111,_e=ve)),Z),Ue,Re=S,Me=()=>(Re(),Re=N(J,ve=>e(112,Ue=ve)),J),Ze,et=S,Q=()=>(et(),et=N(D,ve=>e(113,Ze=ve)),D),Ee,ge=S,nt=()=>(ge(),ge=N(x,ve=>e(114,Ee=ve)),x),Y,Se=S,Ge=()=>(Se(),Se=N(F,ve=>e(115,Y=ve)),F),ne,lt=S,je=()=>(lt(),lt=N(V,ve=>e(116,ne=ve)),V),Ie,kt=S,Tt=()=>(kt(),kt=N(P,ve=>e(117,Ie=ve)),P),te,it=S,ut=()=>(it(),it=N(i,ve=>e(118,te=ve)),i),gt,qe=S,C=()=>(qe(),qe=N(L,ve=>e(119,gt=ve)),L),rt,le=S,Qe=()=>(le(),le=N(w,ve=>e(120,rt=ve)),w),At,fe=S,pe=()=>(fe(),fe=N(_,ve=>e(121,At=ve)),_),ft,$e=S,tr=()=>($e(),$e=N(v,ve=>e(122,ft=ve)),v),Ot,Qt=S,Oe=()=>(Qt(),Qt=N(b,ve=>e(123,Ot=ve)),b),yt,Jt=S,Ut=()=>(Jt(),Jt=N(p,ve=>e(13,yt=ve)),p),qt,H=S,ae=()=>(H(),H=N(h,ve=>e(124,qt=ve)),h),dr,we=S,It=()=>(we(),we=N(f,ve=>e(125,dr=ve)),f),Be,vt=S,ze=()=>(vt(),vt=N(u,ve=>e(126,Be=ve)),u),at,Et=S,Fe=()=>(Et(),Et=N(a,ve=>e(127,at=ve)),a),dt,Kt,cr=S,pr=()=>(cr(),cr=N(c,ve=>e(128,Kt=ve)),c),Gt,ht=S,Dt=()=>(ht(),ht=N(l,ve=>e(129,Gt=ve)),l),Nt,rr=S,ir=()=>(rr(),rr=N(s,ve=>e(130,Nt=ve)),s),Er,zr=S,qr=()=>(zr(),zr=N(o,ve=>e(131,Er=ve)),o),Xe;t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>it()),t.$$.on_destroy.push(()=>qe()),t.$$.on_destroy.push(()=>le()),t.$$.on_destroy.push(()=>fe()),t.$$.on_destroy.push(()=>$e()),t.$$.on_destroy.push(()=>Qt()),t.$$.on_destroy.push(()=>Jt()),t.$$.on_destroy.push(()=>H()),t.$$.on_destroy.push(()=>we()),t.$$.on_destroy.push(()=>vt()),t.$$.on_destroy.push(()=>Et()),t.$$.on_destroy.push(()=>cr()),t.$$.on_destroy.push(()=>ht()),t.$$.on_destroy.push(()=>rr()),t.$$.on_destroy.push(()=>zr());let{$$slots:hr={},$$scope:Ae}=r,{componentContext:K}=r,{cls:jr=""}=r,{style:Cr=void 0}=r,{layoutParams:zt={}}=r,{customDescription:$r=!1}=r,{customPaddings:Ve=!1}=r,{customActions:Lt=""}=r,{additionalPaddings:_r=null}=r,{heightByAspect:xe=!1}=r,{parentOf:Ft=void 0}=r,{parentOfSimpleMode:Le=void 0}=r,{replaceItems:mt=void 0}=r,{hasInnerFocusable:ct=!1}=r;const Ct=Yr(tn),Xt=Yr(Tl),{isEnabled:T}=Yr(Pl);un(t,T,ve=>e(132,Xe=ve));const ot=Ct.direction;un(t,ot,ve=>e(14,dt=ve));let de,d,Pe=null,jt=[],Pr={},fr={},R=!1,Ir=1,rn="transparent",y=0,A={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},X="",oe=null,se="",Ce={},wt,O,Ke,Rt=0,Mt=0,Bt=0,or=!1,an=!1,Lr={},pn,nn,Gn,vn=0,on=0,mn=0,Yn=!1,Qn=!1,Vn=1,Jn,xn,_n,Di,Ti=[],$n=!1,Hi=!1,si,On,_t,g=[],k=[],M=[],j=[],$=[],q=[],tt=[],st=[],Dr=[],mr=[],Sr="",li,ce,er,br,zn=!1,Ln="visible",Kr=0,ai=0,ci,wi,Wi,io=!1,zo,In,ko;function sd(){e(68,oe=null),e(69,se=""),e(86,Vn=1),e(98,zn=!1),e(99,Ln="visible"),e(100,Kr=0),e(101,ai=0),e(102,ci=void 0),e(103,wi=void 0),Ti=K.fakeElement?[]:K.json.transition_triggers||["state_change","visibility_change"],e(89,$n=!!(Ti.indexOf("state_change")!==-1&&K.id)),Hi=Ti.indexOf("visibility_change")!==-1,de&&Xl(de),In==null||In(),Xe&&e(105,In=Ct.processVariableTriggers(K,K.json.variable_triggers))}function ld(ve,Tr){if(!Array.isArray(Ft)||!mt||Le&&(Array.isArray(Tr)&&Tr.length||0)!==1)return;const dn=Ft.findIndex(Br=>(Br==null?void 0:Br.id)===ve),wn=Ft.slice();wn.splice(dn,1,...(Tr||[]).map(Br=>({json:Br,id:Br==null?void 0:Br.id}))),e(51,Ft=wn),mt(wn.map(Br=>Br==null?void 0:Br.json))}function ad(ve){const Tr=uo(ve.start_value,1),dn=uo(ve.end_value,1),wn=Xr(ve.start_delay,0),Br=zs()?0:Xr(ve.duration,300),Fi=gf(ve.interpolator,"ease_in_out").replace(/_/g,"-");switch(ve.name){case"fade":return e(94,li=Tr),e(95,ce=dn),`opacity ${Br}ms ${Fi} ${wn}ms`;case"scale":return e(96,er=Tr),e(97,br=dn),`transform ${Br}ms ${Fi} ${wn}ms`;case"native":case"no_animation":return"";default:return K.logError(ee(new Error("Unknown action_animation name"),{additional:{animation:ve.name}})),""}}async function cd(ve){e(99,Ln=ve);const Tr=ve==="visible"?"in":"out",dn=Tr==="in"?K.json.transition_in:K.json.transition_out;if(Hi&&dn){let wn;ve==="gone"&&(wn=de.getBoundingClientRect()),await jn(),Tr==="in"&&e(91,On=!0),Xt.runVisibilityTransition({...K.json,visibility:"visible"},K,dn,de,Tr,wn).then(()=>{Tr==="in"&&e(91,On=!1)}).catch(Br=>{throw Tr==="in"&&e(91,On=!1),Br})}}function Kl(){if(Pe&&de){const ve=Ct.getExtensionContext(K);Pe.forEach(Tr=>{var dn;(dn=Tr.unmountView)==null||dn.call(Tr,de,ve)}),Pe=null}}function ud(){if(Pe!=null&&Pe.length){const ve=Ct.getExtensionContext(K);Pe.forEach(Tr=>{var dn;(dn=Tr.updateView)==null||dn.call(Tr,de,ve)})}}function Xl(ve){var Fi,Pt,wr;ko==null||ko.destroy(),e(61,de=ve),$n&&K.json.transition_in&&Xt.registerChildWithTransitionIn(K.json,K,K.json.transition_in,ve).then(()=>{e(90,si=!1)}).catch(Fr=>{throw e(90,si=!1),Fr}),$n&&K.json.transition_out&&Xt.registerChildWithTransitionOut(K.json,K,K.json.transition_out,ve),K.fakeElement||Xt.registerChildWithTransitionChange(K.json,K,K.json.transition_change,ve).then(()=>{e(92,_t=!1)}).catch(Fr=>{throw e(92,_t=!1),Fr});const Tr=K.fakeElement?[]:K.json.visibility_actions||K.json.visibility_action&&[K.json.visibility_action],dn=K.fakeElement?[]:K.json.disappear_actions;let wn;(Array.isArray(Tr)&&Tr.length||Array.isArray(dn)&&dn.length)&&(wn=ah(ve,{visibilityActions:Tr,disappearActions:dn,rootCtx:Ct,componentContext:K}));const Br=K.id;return Br&&(Ct.registerId(Br,()=>de),Xt.registerChild(Br)),(Fi=K.json.tooltips)==null||Fi.forEach(Fr=>{Ct.registerTooltip(ve,Fr)}),Wi&&(Wi.disconnect(),Wi=void 0),Wi=mh(de,K,(Pt=K.json.layout_provider)==null?void 0:Pt.width_variable_name,(wr=K.json.layout_provider)==null?void 0:wr.height_variable_name),ko={destroy(){Br&&(Ct.unregisterId(Br),Xt.unregisterChild(Br)),wn&&wn.destroy()}},ko}function fd(){K.json.focus&&(md(Ct.isPointerFocus)||e(12,io=!0),K.execAnyActions(j))}function dd(){K.json.focus&&(e(12,io=!1),K.execAnyActions($))}return Ps(ud),fn(()=>{var ve;jt.forEach(Tr=>{Ct.unregisterParentOf(Tr)}),e(62,jt=[]),Wi&&(Wi.disconnect(),Wi=void 0),(ve=K.json.tooltips)==null||ve.forEach(Tr=>{Ct.unregisterTooltip(Tr)}),In==null||In(),Kl()}),t.$$set=ve=>{"componentContext"in ve&&e(0,K=ve.componentContext),"cls"in ve&&e(1,jr=ve.cls),"style"in ve&&e(52,Cr=ve.style),"layoutParams"in ve&&e(53,zt=ve.layoutParams),"customDescription"in ve&&e(54,$r=ve.customDescription),"customPaddings"in ve&&e(55,Ve=ve.customPaddings),"customActions"in ve&&e(56,Lt=ve.customActions),"additionalPaddings"in ve&&e(57,_r=ve.additionalPaddings),"heightByAspect"in ve&&e(58,xe=ve.heightByAspect),"parentOf"in ve&&e(51,Ft=ve.parentOf),"parentOfSimpleMode"in ve&&e(59,Le=ve.parentOfSimpleMode),"replaceItems"in ve&&e(60,mt=ve.replaceItems),"hasInnerFocusable"in ve&&e(2,ct=ve.hasInnerFocusable),"$$scope"in ve&&e(134,Ae=ve.$$scope)},t.$$.update=()=>{var ve,Tr,dn,wn,Br,Fi;if(t.$$.dirty[0]&1&&e(110,n=K.origJson),t.$$.dirty[3]&131072&&n&&sd(),t.$$.dirty[0]&1|t.$$.dirty[3]&4096|t.$$.dirty[4]&256&&(Xe?(In==null||In(),e(105,In=Ct.processVariableTriggers(K,K.json.variable_triggers))):In==null||In()),t.$$.dirty[0]&1&&ut(e(45,i=K.getDerivedFromVars(K.json.focus))),t.$$.dirty[0]&1&&qr(e(44,o=K.getDerivedFromVars(K.json.border))),t.$$.dirty[0]&1&&ir(e(43,s=K.getDerivedFromVars(K.json.paddings))),t.$$.dirty[0]&1&&Fe(e(42,a=K.getDerivedFromVars(K.json.margins))),t.$$.dirty[0]&1&&Dt(e(41,l=K.getDerivedFromVars(K.json.width))),t.$$.dirty[0]&1&&pr(e(40,c=K.getDerivedFromVars(K.json.alignment_horizontal))),t.$$.dirty[0]&1&&ze(e(39,u=K.getDerivedFromVars(K.json.height))),t.$$.dirty[0]&1&&It(e(38,f=K.getDerivedFromVars(K.json.alignment_vertical))),t.$$.dirty[0]&1&&ae(e(37,h=K.getDerivedFromVars(K.json.alpha))),t.$$.dirty[0]&1&&Ut(e(36,p=K.getDerivedFromVars(K.json.accessibility))),t.$$.dirty[0]&1&&Oe(e(35,b=K.getDerivedFromVars(K.json.background))),t.$$.dirty[0]&1&&pe(e(34,_=K.getDerivedFromVars(K.json.action))),t.$$.dirty[0]&1&&tr(e(33,v=K.getDerivedFromVars(K.json.actions))),t.$$.dirty[0]&1&&Qe(e(32,w=K.getDerivedFromVars(K.json.doubletap_actions))),t.$$.dirty[0]&1&&C(e(31,L=K.getDerivedFromVars(K.json.longtap_actions))),t.$$.dirty[0]&1&&Tt(e(30,P=K.getDerivedFromVars(K.json.press_start_actions))),t.$$.dirty[0]&1&&je(e(29,V=K.getDerivedFromVars(K.json.press_end_actions))),t.$$.dirty[0]&1&&Ge(e(28,F=K.getDerivedFromVars(K.json.hover_start_actions))),t.$$.dirty[0]&1&&nt(e(27,x=K.getDerivedFromVars(K.json.hover_end_actions))),t.$$.dirty[0]&1&&Q(e(26,D=K.getDerivedFromVars(K.json.action_animation))),t.$$.dirty[0]&1&&Me(e(25,J=K.getDerivedFromVars(K.json.visibility))),t.$$.dirty[0]&1&&pt(e(24,Z=K.getDerivedFromVars(K.json.transform))),t.$$.dirty[1]&269484032|t.$$.dirty[2]&1&&(jt.forEach(Pt=>{Ct.unregisterParentOf(Pt)}),e(62,jt=[]),Ft&&Ft.forEach(Pt=>{Pt!=null&&Pt.id&&(jt.push(Pt.id),Ct.registerParentOf(Pt.id,{replaceWith:ld,isSingleMode:!!Le}))})),t.$$.dirty[0]&4104|t.$$.dirty[2]&62|t.$$.dirty[3]&33554432|t.$$.dirty[4]&128){const Pt=io&&(te!=null&&te.border)?te.border:Er;let wr={},Fr={},gn=!1,Ur="";if(Pt){if(ti(Pt.has_shadow,!1)){const sn=Pt.shadow;sn?wr["box-shadow"]=_h(sn):wr["box-shadow"]="0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(Pt.stroke&&(gn=!0,e(64,Ir=Xr(Pt.stroke.width,Ir)),e(65,rn=Mr(Pt.stroke.color,1,rn)),Fr["--divkit-border"]=`${ke(Ir+1)} solid ${rn}`),Pt.corners_radius&&typeof Pt.corners_radius=="object"){e(67,A=hh(Pt.corners_radius,A)),wr["border-radius"]=xo(A);const sn={};["top-left","top-right","bottom-right","bottom-left"].forEach(Dn=>{sn[Dn]=(A[Dn]||0)+1}),Fr["--divkit-border-radius"]=xo(sn)}else Pt.corner_radius&&(e(66,y=Xr(Pt.corner_radius,y)),e(67,A={"top-left":y,"top-right":y,"bottom-right":y,"bottom-left":y}),wr["border-radius"]=ke(y),Fr["--divkit-border-radius"]=ke(y+1));if(gn&&Ir&&(Pt.corners_radius||Pt.corner_radius)){let sn={...A};["top-left","top-right","bottom-right","bottom-left"].forEach(Dn=>{sn[Dn]=(sn[Dn]||0)+Ir/2}),Ur=xo(sn)}}e(63,Pr=Pi(wr,Pr)),e(3,fr=Pi(Fr,fr)),e(16,R=gn),e(4,X=Ur)}if(t.$$.dirty[1]&16777216|t.$$.dirty[2]&64|t.$$.dirty[4]&64&&e(68,oe=Oo(Nt&&!Ve?Nt:void 0,oe)),t.$$.dirty[0]&16384|t.$$.dirty[1]&67108864|t.$$.dirty[2]&64&&e(107,W=_i(dh(oe,_r),dt)),t.$$.dirty[0]&16384|t.$$.dirty[2]&128|t.$$.dirty[4]&8&&e(69,se=Io(at,dt,se)),t.$$.dirty[0]&16385|t.$$.dirty[1]&4194304|t.$$.dirty[2]&4352|t.$$.dirty[4]&56){let Pt,wr,Fr,gn,Ur={},sn=0,Dn=0,ki=!1,Ai=!1;const bn=Gt==null?void 0:Gt.type;if(bn==="fixed")e(74,Rt=Xr(Gt==null?void 0:Gt.value,Rt)),wr=ke(Rt);else if(bn==="wrap_content"||(bn==="match_parent"||!bn)&&zt.parentHorizontalWrapContent){if(Pt="content",(bn==="wrap_content"&&(Gt!=null&&Gt.constrained)||(bn==="match_parent"||!bn)&&zt.parentHorizontalWrapContent)&&(Ur["width-constrained"]=!0,zt.parentContainerOrientation==="horizontal"&&(Dn=1)),bn==="wrap_content"){const kr=Gt;kr.min_size&&Mn(kr.min_size.value)&&(Fr=ke(kr.min_size.value)),kr.max_size&&Mn(kr.max_size.value)&&(gn=ke(kr.max_size.value))}(bn==="match_parent"||!bn)&&K.logError(ee(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}else if(Pt="parent",zt.parentContainerOrientation==="vertical"&&zt.parentContainerWrap&&(Ai=!0,K.logError(ee(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),zt.parentLayoutOrientation==="vertical"||zt.stretchWidth){const kr=(Tr=(ve=dt==="ltr"?at==null?void 0:at.start:at==null?void 0:at.end)!=null?ve:at==null?void 0:at.left)!=null?Tr:0,Gs=(wn=(dn=dt==="ltr"?at==null?void 0:at.end:at==null?void 0:at.start)!=null?dn:at==null?void 0:at.right)!=null?wn:0,Ao=`calc(100% - ${En(kr+Gs)})`;zt.stretchWidth?(wr="0",Fr=Ao):wr=Ao}else zt.parentContainerOrientation==="horizontal"&&(sn=Gt&&"weight"in Gt&&Gt.weight||1,zt.parentContainerWrap&&(ki=!0));if(Pt==="parent")Ur["halign-self"]="stretch";else{const kr=Kt;kr==="left"||kr==="center"||kr==="right"||kr==="start"||kr==="end"?Ur["halign-self"]=(dt==="ltr"?Ph:Nh)[kr]:Ur["halign-self"]=zt.parentHAlign||"start"}Pt&&(Ur.width=Pt),e(71,wt=wr),e(72,O=Fr),e(73,Ke=gn),e(75,Mt=sn),e(76,Bt=Dn),e(70,Ce=Pi(Ur,Ce)),e(77,or=ki),e(17,an=Ai)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&138412032|t.$$.dirty[2]&1114112|t.$$.dirty[4]&14){let Pt,wr,Fr,gn,Ur={},sn=0,Dn=0,ki=!1,Ai=!1;const bn=Be==null?void 0:Be.type;if(!xe)if(bn==="fixed")e(82,vn=Xr(Be==null?void 0:Be.value,vn)),wr=ke(vn);else if(bn==="match_parent"&&!zt.parentVerticalWrapContent)if(Pt="parent",zt.parentContainerOrientation==="horizontal"&&zt.parentContainerWrap&&(Ai=!0,K.logError(ee(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),zt.parentLayoutOrientation==="horizontal"||zt.stretchHeight){const kr=(Br=at==null?void 0:at.top)!=null?Br:0,Gs=(Fi=at==null?void 0:at.bottom)!=null?Fi:0,Ao=`calc(100% - ${En(kr+Gs)})`;zt.stretchHeight?(wr="0",Fr=Ao):wr=Ao}else zt.parentContainerOrientation==="vertical"&&(sn=(Be==null?void 0:Be.weight)||1,zt.parentContainerWrap&&(ki=!0));else{if(Pt="content",(bn==="wrap_content"&&(Be!=null&&Be.constrained)||bn==="match_parent"&&zt.parentVerticalWrapContent)&&(Ur["height-constrained"]=!0,zt.parentContainerOrientation==="vertical"&&(Dn=1)),bn==="wrap_content"){const kr=Be;kr!=null&&kr.min_size&&Mn(kr.min_size.value)&&(Fr=ke(kr.min_size.value)),kr!=null&&kr.max_size&&Mn(kr.max_size.value)&&(gn=ke(kr.max_size.value))}bn==="match_parent"&&K.logError(ee(new Error("Incorrect child size. Container with wrap_content size contains child with match_parent size along the main axis"),{level:"warn"}))}if(Pt==="parent")Ur["valign-self"]="stretch";else{const kr=dr;kr==="top"||kr==="center"||kr==="bottom"||kr==="baseline"&&zt.parentContainerOrientation==="horizontal"?Ur["valign-self"]=Oh[kr]:Ur["valign-self"]=zt.parentVAlign||"start"}Pt&&(Ur.height=Pt),e(79,pn=wr),e(80,nn=Fr),e(81,Gn=gn),e(83,on=sn),e(84,mn=Dn),e(78,Lr=Pi(Ur,Lr)),e(85,Yn=ki),e(18,Qn=Ai)}if(t.$$.dirty[1]&4194304&&e(109,G=zt.overlapParent?!0:void 0),t.$$.dirty[1]&4194304&&e(108,z=zt.gridArea?`${zt.gridArea.y+1}/${zt.gridArea.x+1}/span ${zt.gridArea.rowSpan}/span ${zt.gridArea.colSpan}`:void 0),t.$$.dirty[2]&16777216|t.$$.dirty[4]&1&&(e(86,Vn=ch(qt,Vn)),e(87,Jn=Vn===1?void 0:Vn)),t.$$.dirty[0]&8192|t.$$.dirty[1]&8388608&&(e(15,d=void 0),yt&&!$r&&yt.description&&(e(15,d={}),e(15,d["aria-label"]=yt.description,d))),t.$$.dirty[0]&4208|t.$$.dirty[3]&1107296256&&(e(5,xn=io&&(te!=null&&te.background)?te.background:Ot),e(88,_n={}),e(6,Di=!1),Array.isArray(xn)&&(e(6,Di=xn.some(Pt=>Pt.type==="image"||Pt.type==="nine_patch_image")||!!X),!Di))){const Pt=Ns(xn);e(88,_n["background-color"]=Pt.color,_n),e(88,_n["background-image"]=Pt.image,_n),e(88,_n["background-size"]=Pt.size,_n),e(88,_n["background-position"]=Pt.position,_n),e(88,_n["background-repeat"]="no-repeat",_n)}if(t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(e(90,si=void 0),$n&&K.json.transition_in&&Ct.isRunning("stateChange")&&e(90,si=!0)),t.$$.dirty[0]&1|t.$$.dirty[2]&134217728&&(e(92,_t=void 0),$n&&Ct.isRunning("stateChange")&&Xt.hasTransitionChange(K.id)&&e(92,_t=!0)),t.$$.dirty[0]&1921|t.$$.dirty[1]&33554432|t.$$.dirty[3]&1071644672){let Pt=ft||At&&[At]||[],wr=rt||[],Fr=gt||[],gn=(te==null?void 0:te.on_focus)||[],Ur=(te==null?void 0:te.on_blur)||[],sn=Ie||[],Dn=ne||[],ki=Y||[],Ai=Ee||[];K.fakeElement?(Pt=[],wr=[],Fr=[],gn=[],Ur=[]):(Array.isArray(Pt)||(Pt=[],K.logError(ee(new Error("Actions should be array")))),Array.isArray(wr)||(wr=[],K.logError(ee(new Error("DoubleTapActions should be array")))),Array.isArray(Fr)||(Fr=[],K.logError(ee(new Error("LongTapActions should be array")))),Array.isArray(gn)||(gn=[],K.logError(ee(new Error("FocusActions should be array")))),Array.isArray(Ur)||(Ur=[],K.logError(ee(new Error("BlurActions should be array")))),Array.isArray(sn)||(sn=[],K.logError(ee(new Error("PressStartActions should be array")))),Array.isArray(Dn)||(Dn=[],K.logError(ee(new Error("PressEndActions should be array")))),Array.isArray(ki)||(ki=[],K.logError(ee(new Error("HoverStartActions should be array")))),Array.isArray(Ai)||(Ai=[],K.logError(ee(new Error("HoverEndActions should be array"))))),(Pt.length||wr.length||Fr.length||q.length||tt.length||st.length||Dr.length)&&Lt&&(Pt=[],wr=[],Fr=[],e(7,q=[]),e(8,tt=[]),e(9,st=[]),e(10,Dr=[]),K.logError(ee(new Error(`Cannot use action on component "${Lt}"`)))),e(19,g=Pt.filter(Tn)),e(20,k=wr.filter(Tn)),e(21,M=Fr.filter(Tn)),j=gn.filter(Tn),$=Ur.filter(Tn),e(7,q=sn.filter(Tn)),e(8,tt=Dn.filter(Tn)),e(9,st=ki.filter(Tn)),e(10,Dr=Ai.filter(Tn))}if(t.$$.dirty[0]&2048|t.$$.dirty[3]&1048576&&Ze&&(e(11,mr=Ml(Ze)),e(93,Sr=mr.map(ad).filter(Boolean).join(", "))),t.$$.dirty[3]&524384){const Pt=Ln,wr=fh(Ue,Ln);Pt!==wr&&(zn&&(Ln==="visible"||wr==="visible")?cd(wr):e(99,Ln=wr)),zn||e(98,zn=!0)}if(t.$$.dirty[0]&1|t.$$.dirty[1]&1073741824|t.$$.dirty[3]&2048&&K.json&&de&&!Fl(K.json.extensions,zo)){let Pt=e(104,zo=K.json.extensions);jn().then(()=>{if(!(Pt!==zo||!de)&&(Kl(),Array.isArray(K.json.extensions))){const wr=Ct.getExtensionContext(K);Pe=K.json.extensions.map(Fr=>{var sn;const gn=Fr.id;if(!gn)return;const Ur=Ct.getExtension(gn,Fr.params);return Ur&&((sn=Ur.mountView)==null||sn.call(Ur,de,wr)),Ur}).filter(Vi)}})}if(t.$$.dirty[0]&4097|t.$$.dirty[1]&4194304|t.$$.dirty[2]&1879113984|t.$$.dirty[3]&65601&&e(23,he={...Ce,...Lr,"parent-overlap":G,"scroll-snap":zt.scrollSnap,"hide-on-transition-in":si||On||_t,visibility:Ln,"has-action-animation":!!Sr,"parent-flex":zt.parentContainerOrientation||void 0,"parent-grid":!!zt.gridArea||void 0,"has-custom-focus":!!(io&&K.json.focus)}),t.$$.dirty[3]&262528&&_e&&_e.rotation!==void 0){const Pt=_e.pivot_x||{type:"pivot-percentage",value:50};e(100,Kr=uo(Pt.value,Kr));const wr=Pt.type==="pivot-fixed"?ke(Kr):`${Kr}%`,Fr=_e.pivot_y||{type:"pivot-percentage",value:50};e(101,ai=uo(Fr.value,ai));const gn=Fr.type==="pivot-fixed"?ke(ai):`${ai}%`;e(102,ci=`${wr} ${gn}`),e(103,wi=`rotate(${_e.rotation}deg)`)}t.$$.dirty[2]&10526720&&e(106,ye=or||Yn?"100%":Mt||on?0:void 0),t.$$.dirty[1]&2097152|t.$$.dirty[2]&107900546|t.$$.dirty[3]&58911&&e(22,Te={...Cr,..._n,...Pr,width:wt,"min-width":O,"max-width":Ke,height:pn,"min-height":nn,"max-height":Gn||(Cr==null?void 0:Cr["max-height"]),"grid-area":z,padding:W,margin:se,opacity:Jn,transition:Sr,"transform-origin":ci,transform:wi,"flex-grow":Mt||on||void 0,"flex-shrink":Bt||mn?1:void 0,"flex-basis":ye,"--divkit-animation-opacity-start":li,"--divkit-animation-opacity-end":ce,"--divkit-animation-scale-start":er,"--divkit-animation-scale-end":br})},[K,jr,ct,fr,X,xn,Di,q,tt,st,Dr,mr,io,yt,dt,d,R,an,Qn,g,k,M,Te,he,Z,J,D,x,F,V,P,L,w,v,_,b,p,h,f,u,c,l,a,s,o,i,T,ot,Xl,fd,dd,Ft,Cr,zt,$r,Ve,Lt,_r,xe,Le,mt,de,jt,Pr,Ir,rn,y,A,oe,se,Ce,wt,O,Ke,Rt,Mt,Bt,or,Lr,pn,nn,Gn,vn,on,mn,Yn,Vn,Jn,_n,$n,si,On,_t,Sr,li,ce,er,br,zn,Ln,Kr,ai,ci,wi,zo,In,ye,W,z,G,n,_e,Ue,Ze,Ee,Y,ne,Ie,te,gt,rt,At,ft,Ot,qt,dr,Be,at,Kt,Gt,Nt,Er,Xe,hr,Ae]}class Cn extends Wr{constructor(r){super(),Hr(this,r,zh,Mh,Ar,{componentContext:0,cls:1,style:52,layoutParams:53,customDescription:54,customPaddings:55,customActions:56,additionalPaddings:57,heightByAspect:58,parentOf:51,parentOfSimpleMode:59,replaceItems:60,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}}const Lh="divkit-6d029",Rh="divkit-d7771",Bh="divkit-11aee",Hh="divkit-a2b0d",Wh="divkit-b93c2",Uh="divkit-a5aa6",Gh="divkit-02228",Yh="divkit-c5739",Jh="divkit-ccc67",qh="divkit-a6f25",Kh="divkit-b9e37",Xh="divkit-fa1ec",Zh="divkit-3f0b7",Qh="divkit-d491d",xh="divkit-f6859",qn={"text-range":"divkit-251c6",text:Lh,text_halign_start:Rh,text_halign_center:Bh,text_halign_end:Hh,text_valign_start:Wh,text_valign_center:Uh,text_valign_end:Gh,text_valign_baseline:Yh,text__inner:Jh,text_singleline:qh,text_multiline:Kh,text_truncate_none:Xh,"text__inner_has-cloud-bg":"divkit-e75f8","text__inner_cloud-bg":"divkit-ca4e7",text__inner_gradient:Zh,"text__image-wrapper":"divkit-632c6","text__image-wrapper_crop":"divkit-9125a","text__image-wrapper_align_top":"divkit-6956e","text__image-wrapper_align_center":"divkit-2be31","text__image-wrapper_align_bottom":"divkit-1719d","text__image-wrapper_align_baseline":"divkit-a0e9f",text__image:Qh,text__image_hidden:xh,"text_has-focus-color":"divkit-32858"},ks={"text-range":"divkit-251c6","text-range_cloud":"divkit-96ef6","text-range_singleline":"divkit-645b9","text-range__top-offset":"divkit-13a2b","text-range_decoration_both":"divkit-9d257","text-range_decoration_underline":"divkit-c65cf","text-range_decoration_strike":"divkit-d264e","text-range_decoration_none":"divkit-2cfc4","text-range_align_top":"divkit-cb312","text-range_align_center":"divkit-640d4","text-range_align_bottom":"divkit-069e7","text-range_align_baseline":"divkit-3f853","text-range__cloud-svg":"divkit-82b28","text-range_relative-vertical-align":"divkit-98760"};function Kn(t,r){const e=Number(t);return Number.isNaN(e)||e<=0?r:e}function $h(t){if(t==="light"||t==="medium"||t==="bold"||t==="regular")return t==="medium"?500:t==="bold"?700:t==="light"?300:400}function go(t,r,e){return typeof r=="number"&&r>0?r:$h(t)||e}function il(t,r){if(!t)return{};const e={};for(const n of["left","top","right","bottom","start","end"]){const i=t[n];i&&(e[n]=i*r)}return e}function ba(t){let r,e,n,i,o,s,a;return{c(){r=en("svg"),e=en("defs"),n=en("filter"),i=en("feGaussianBlur"),o=en("feColorMatrix"),a=en("feBlend"),this.h()},l(l){r=cn(l,"svg",{class:!0});var c=De(r);e=cn(c,"defs",{});var u=De(e);n=cn(u,"filter",{id:!0});var f=De(n);i=cn(f,"feGaussianBlur",{in:!0,result:!0,stdDeviation:!0}),De(i).forEach(E),o=cn(f,"feColorMatrix",{in:!0,result:!0,type:!0,values:!0}),De(o).forEach(E),a=cn(f,"feBlend",{in:!0,in2:!0}),De(a).forEach(E),f.forEach(E),u.forEach(E),c.forEach(E),this.h()},h(){m(i,"in","SourceGraphic"),m(i,"result","blurred"),m(i,"stdDeviation","3"),m(o,"in","blurred"),m(o,"result","withMatrix"),m(o,"type","matrix"),m(o,"values",s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*t[4]+" -"+t[4]),m(a,"in","SourceGraphic"),m(a,"in2","withMatrix"),m(n,"id",t[10]),m(r,"class",ks["text-range__cloud-svg"])},m(l,c){ie(l,r,c),St(r,e),St(e,n),St(n,i),St(n,o),St(n,a)},p(l,c){c&16&&s!==(s="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 "+2*l[4]+" -"+l[4])&&m(o,"values",s)},d(l){l&&E(r)}}}function ya(t){let r;return{c(){r=He("span"),this.h()},l(e){r=Je(e,"SPAN",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",ks["text-range__top-offset"]),B(r,"margin-top",t[8])},m(e,n){ie(e,r,n)},p(e,n){n&256&&B(r,"margin-top",e[8])},d(e){e&&E(r)}}}function e_(t){let r;return{c(){r=Zn(t[1])},l(e){r=yi(e,t[1])},m(e,n){ie(e,r,n)},p(e,n){n&2&&Oi(r,e[1])},d(e){e&&E(r)}}}function t_(t){let r,e,n,i,o=t[3]&&t[5]&&ba(t),s=t[8]&&ya(t);return n=new Ls({props:{componentContext:t[0],cls:bt("text-range",ks,t[7]),actions:t[2],style:Vt(t[6]),$$slots:{default:[e_]},$$scope:{ctx:t}}}),{c(){o&&o.c(),r=Ne(),s&&s.c(),e=Ne(),Yt(n.$$.fragment)},l(a){o&&o.l(a),r=Ne(),s&&s.l(a),e=Ne(),Zt(n.$$.fragment,a)},m(a,l){o&&o.m(a,l),ie(a,r,l),s&&s.m(a,l),ie(a,e,l),Ht(n,a,l),i=!0},p(a,[l]){a[3]&&a[5]?o?o.p(a,l):(o=ba(a),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null),a[8]?s?s.p(a,l):(s=ya(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null);const c={};l&1&&(c.componentContext=a[0]),l&128&&(c.cls=bt("text-range",ks,a[7])),l&4&&(c.actions=a[2]),l&64&&(c.style=Vt(a[6])),l&1073741826&&(c.$$scope={dirty:l,ctx:a}),n.$set(c)},i(a){i||(U(n.$$.fragment,a),i=!0)},o(a){re(n.$$.fragment,a),i=!1},d(a){a&&(E(r),E(e)),o&&o.d(a),s&&s.d(a),Wt(n,a)}}}function r_(t,r,e){let n,i,o,s,a,l,c,u,f,h,{componentContext:p}=r,{text:b}=r,{rootFontSize:_}=r,{textStyles:v={}}=r,{singleline:w=!1}=r,{actions:L=void 0}=r,{cloudBg:P=!1}=r,{customLineHeight:V=null}=r;const F=Yr(tn),x=F.direction;un(t,x,be=>e(28,h=be));const D=P&&F.genId("text-range")||"";let J="none",Z=12,W=1.25,G="",z,he="",ye="",Te=null,_e;return t.$$set=be=>{"componentContext"in be&&e(0,p=be.componentContext),"text"in be&&e(1,b=be.text),"rootFontSize"in be&&e(11,_=be.rootFontSize),"textStyles"in be&&e(12,v=be.textStyles),"singleline"in be&&e(13,w=be.singleline),"actions"in be&&e(2,L=be.actions),"cloudBg"in be&&e(3,P=be.cloudBg),"customLineHeight"in be&&e(14,V=be.customLineHeight)},t.$$.update=()=>{var be,pt,Ue,Re,Me,Ze,et;if(t.$$.dirty&1&&p.json&&(e(15,J="none"),e(16,Z=12),e(17,W=1.25),e(18,G=""),e(19,z=void 0),e(20,he=""),e(21,ye=""),e(22,Te=null),e(23,_e=void 0)),t.$$.dirty&4096){let Q="none";(v.underline||v.strike)&&(v.underline==="single"&&v.strike==="single"?Q="both":v.underline==="single"?Q="underline":v.strike==="single"&&(Q="strike")),e(15,J=Q)}t.$$.dirty&69632&&e(16,Z=Kn(v.font_size,Z)),t.$$.dirty&69632&&Pn(v.line_height)&&e(17,W=Number(v.line_height)/Z),t.$$.dirty&4096&&Mn(v.letter_spacing)&&e(18,G=ke(v.letter_spacing)),t.$$.dirty&528384&&(e(19,z=go(v.font_weight,v.font_weight_value,z)),typeof v.font_family=="string"&&v.font_family?e(20,he=F.typefaceProvider(v.font_family,{fontWeight:z||400})):e(20,he="")),t.$$.dirty&2101256&&e(21,ye=P?"transparent":Mr(v.text_color,1,ye)),t.$$.dirty&4096&&e(8,n=v.top_offset?ke(v.top_offset):""),t.$$.dirty&4096&&e(5,i=((be=v.background)==null?void 0:be.type)==="cloud"),t.$$.dirty&4096&&e(26,o=((pt=v.background)==null?void 0:pt.type)==="cloud"?v.background.paddings:void 0),t.$$.dirty&4096&&e(24,s=((Ue=v.background)==null?void 0:Ue.type)==="solid"?Ns([v.background]):null),t.$$.dirty&4096&&((Re=v.border)!=null&&Re.stroke&&v.border.stroke.color&&Mr(v.border.stroke.color)!=="transparent"&&Pn(v.border.stroke.width)&&((Me=v.background)==null?void 0:Me.type)!=="cloud"?e(22,Te={color:v.border.stroke.color,width:v.border.stroke.width,corner_radius:v.border.corner_radius}):e(22,Te=null)),t.$$.dirty&4198440&&e(4,a=P?i&&v.background.corner_radius||0:Te?Kn(Te.corner_radius,0):0),t.$$.dirty&69632&&e(25,l=v.text_shadow?gh(v.text_shadow,Z):void 0),t.$$.dirty&4096&&typeof v.baseline_offset=="number"&&e(23,_e=v.baseline_offset),t.$$.dirty&4096&&e(27,c=typeof v.baseline_offset=="number"?void 0:v.alignment_vertical),t.$$.dirty&142663712&&e(7,u={singleline:w,decoration:J,align:c,cloud:i,"relative-vertical-align":!!(V&&_e)}),t.$$.dirty&536827960&&e(6,f={"font-size":ke(Z*10/_),"line-height":c?"normal":W,"letter-spacing":G,"font-weight":z,"font-family":he,"vertical-align":V||_e===void 0?void 0:ke(_e*10/Z),top:V&&_e!==void 0?ke(-_e*10/Z):void 0,margin:o?_i(il(o,-10/Z),h):void 0,padding:o?_i(il(o,10/Z),h):void 0,filter:P&&i?`url(#${D})`:l,color:ye,background:P?i?eh(v.background.color,255,"transparent"):void 0:(s==null?void 0:s.color)||void 0,opacity:P&&i?((et=(Ze=Si(v.background.color))==null?void 0:Ze.a)!=null?et:255)/255:void 0,"box-shadow":Te?`inset 0 0 0 ${ke(Te.width*10/Z)} ${Te.color}`:void 0,"border-radius":a?ke(a*10/Z):void 0,"font-feature-settings":v.font_feature_settings||void 0})},[p,b,L,P,a,i,f,u,n,x,D,_,v,w,V,J,Z,W,G,z,he,ye,Te,_e,s,l,o,c,h]}class Nl extends Wr{constructor(r){super(),Hr(this,r,r_,t_,Ar,{componentContext:0,text:1,rootFontSize:11,textStyles:12,singleline:13,actions:2,cloudBg:3,customLineHeight:14})}}function Ol(t,r,e){return t==="left"||t==="center"||t==="right"||t==="start"||t==="end"?t==="left"?r==="ltr"?"start":"end":t==="right"?r==="ltr"?"end":"start":t:e}function zl(t,r){return t==="top"||t==="center"||t==="bottom"||t==="baseline"?t==="top"?"start":t==="bottom"?"end":t:r}function n_(t){return String(t!=null?t:"")}function mf(t,r){return t==="source_in"||t==="source_atop"||t==="darken"||t==="lighten"||t==="multiply"||t==="screen"?t:r}function Rs(t,r){let e;return function(...n){e!==null&&clearTimeout(e),e=setTimeout(()=>{t.apply(this,n),e=null},r)}}function i_(t,r){let e=null;const n=()=>{const a=getComputedStyle(t),l=parseFloat(a.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const c=t.offsetHeight,u=t.scrollHeight;let f=Math.max(1,Math.floor(c/l));r.maxLines&&r.maxLines<f&&(f=r.maxLines),u>f*l+1e-9&&(t.style.webkitLineClamp=String(f),t.style.maxHeight=l*f+"px")},i=Rs(n,50),o=()=>{e&&(e.disconnect(),e=null)},s=()=>{if(o(),r.enabled){if(n(),typeof ResizeObserver<"u"){e=new ResizeObserver(i);const a=t.parentElement;a&&e.observe(a)}}else t.style.webkitLineClamp=String(r.lineClamp||"")};return s(),{update(a){r=a,s()},destroy(){o()}}}const{Boolean:bf}=bi;function va(t,r,e){const n=t.slice();return n[64]=r[e],n}function wa(t,r,e){const n=t.slice();return n[64]=r[e],n}function ka(t){let r,e,n,i,o=sr(t[12]),s=[];for(let l=0;l<o.length;l+=1)s[l]=Ea(wa(t,o,l));const a=l=>re(s[l],1,1,()=>{s[l]=null});return{c(){r=He("span");for(let l=0;l<s.length;l+=1)s[l].c();this.h()},l(l){r=Je(l,"SPAN",{class:!0,style:!0});var c=De(r);for(let u=0;u<s.length;u+=1)s[u].l(c);c.forEach(E),this.h()},h(){m(r,"class",e=bt("text__inner",qn,{...t[15],"cloud-bg":!0})),m(r,"style",n=Vt({...t[14],padding:t[13]}))},m(l,c){ie(l,r,c);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(r,null);i=!0},p(l,c){if(c[0]&5257){o=sr(l[12]);let u;for(u=0;u<o.length;u+=1){const f=wa(l,o,u);s[u]?(s[u].p(f,c),U(s[u],1)):(s[u]=Ea(f),s[u].c(),U(s[u],1),s[u].m(r,null))}for(lr(),u=o.length;u<s.length;u+=1)a(u);ar()}(!i||c[0]&32768&&e!==(e=bt("text__inner",qn,{...l[15],"cloud-bg":!0})))&&m(r,"class",e),(!i||c[0]&24576&&n!==(n=Vt({...l[14],padding:l[13]})))&&m(r,"style",n)},i(l){if(!i){for(let c=0;c<o.length;c+=1)U(s[c]);i=!0}},o(l){s=s.filter(bf);for(let c=0;c<s.length;c+=1)re(s[c]);i=!1},d(l){l&&E(r),hn(s,l)}}}function o_(t){let r,e,n,i,o;return{c(){r=He("span"),e=He("span"),this.h()},l(s){r=Je(s,"SPAN",{style:!0});var a=De(r);e=Je(a,"SPAN",{class:!0,style:!0}),De(e).forEach(E),a.forEach(E),this.h()},h(){m(e,"class",n=bt("text__image-wrapper",qn,{align:t[64].image.verticalAlign,crop:t[10]!==null})),m(e,"style",i=Vt({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),m(r,"style",o=Vt(t[64].image.wrapperStyle))},m(s,a){ie(s,r,a),St(r,e)},p(s,a){a[0]&5120&&n!==(n=bt("text__image-wrapper",qn,{align:s[64].image.verticalAlign,crop:s[10]!==null}))&&m(e,"class",n),a[0]&5120&&i!==(i=Vt({width:s[64].image.width,height:s[10]&&s[64].image.verticalAlign!=="baseline"?s[10]+"em":void 0}))&&m(e,"style",i),a[0]&4096&&o!==(o=Vt(s[64].image.wrapperStyle))&&m(r,"style",o)},i:S,o:S,d(s){s&&E(r)}}}function s_(t){let r,e,n=t[64].text&&Aa(t);return{c(){n&&n.c(),r=Ne()},l(i){n&&n.l(i),r=Ne()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&U(n,1)):(n=Aa(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(lr(),re(n,1,1,()=>{n=null}),ar())},i(i){e||(U(n),e=!0)},o(i){re(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}function Aa(t){let r,e;return r=new Nl({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],cloudBg:!0}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Ea(t){let r,e,n,i;const o=[s_,o_],s=[];function a(l,c){return"text"in l[64]?0:l[64].image?1:-1}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function l_(t){let r,e;return r=new Nl({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[8],singleline:t[7],customLineHeight:t[10]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4&&(o.text=n[2]),i[0]&8&&(o.rootFontSize=n[3]),i[0]&256&&(o.textStyles=n[8]),i[0]&128&&(o.singleline=n[7]),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function a_(t){let r,e,n=sr(t[12]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Ca(va(t,n,s));const o=s=>re(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Ne()},l(s){for(let a=0;a<i.length;a+=1)i[a].l(s);r=Ne()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);ie(s,r,a),e=!0},p(s,a){if(a[0]&5257|a[1]&8){n=sr(s[12]);let l;for(l=0;l<n.length;l+=1){const c=va(s,n,l);i[l]?(i[l].p(c,a),U(i[l],1)):(i[l]=Ca(c),i[l].c(),U(i[l],1),i[l].m(r.parentNode,r))}for(lr(),l=n.length;l<i.length;l+=1)o(l);ar()}},i(s){if(!e){for(let a=0;a<n.length;a+=1)U(i[a]);e=!0}},o(s){i=i.filter(bf);for(let a=0;a<i.length;a+=1)re(i[a]);e=!1},d(s){s&&E(r),hn(i,s)}}}function c_(t){let r,e,n,i,o,s,a,l,c,u,f,h,p,b=[{class:i=qn.text__image},{src:o=t[64].image.url},{loading:s=t[64].image.preloadRequired?"eager":"lazy"},{decoding:"async"},{alt:a=t[64].image.description},t[64].image.a11yAttrs,{style:l=Vt({height:t[64].image.height,filter:t[64].image.svgFilterId?`url(#${t[64].image.svgFilterId})`:void 0})}],_={};for(let v=0;v<b.length;v+=1)_=eo(_,b[v]);return{c(){r=He("span"),e=He("span"),n=He("img"),this.h()},l(v){r=Je(v,"SPAN",{style:!0});var w=De(r);e=Je(w,"SPAN",{class:!0,style:!0});var L=De(e);n=Je(L,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,alt:!0,style:!0}),L.forEach(E),w.forEach(E),this.h()},h(){ni(n,_),m(e,"class",c=bt("text__image-wrapper",qn,{align:t[64].image.verticalAlign,crop:t[10]!==null})),m(e,"style",u=Vt({width:t[64].image.width,height:t[10]&&t[64].image.verticalAlign!=="baseline"?t[10]+"em":void 0})),m(r,"style",f=Vt(t[64].image.wrapperStyle))},m(v,w){ie(v,r,w),St(r,e),St(e,n),h||(p=Ye(n,"error",t[34]),h=!0)},p(v,w){ni(n,_=bo(b,[{class:i},w[0]&4096&&!Wn(n.src,o=v[64].image.url)&&{src:o},w[0]&4096&&s!==(s=v[64].image.preloadRequired?"eager":"lazy")&&{loading:s},{decoding:"async"},w[0]&4096&&a!==(a=v[64].image.description)&&{alt:a},w[0]&4096&&v[64].image.a11yAttrs,w[0]&4096&&l!==(l=Vt({height:v[64].image.height,filter:v[64].image.svgFilterId?`url(#${v[64].image.svgFilterId})`:void 0}))&&{style:l}])),w[0]&5120&&c!==(c=bt("text__image-wrapper",qn,{align:v[64].image.verticalAlign,crop:v[10]!==null}))&&m(e,"class",c),w[0]&5120&&u!==(u=Vt({width:v[64].image.width,height:v[10]&&v[64].image.verticalAlign!=="baseline"?v[10]+"em":void 0}))&&m(e,"style",u),w[0]&4096&&f!==(f=Vt(v[64].image.wrapperStyle))&&m(r,"style",f)},i:S,o:S,d(v){v&&E(r),h=!1,p()}}}function u_(t){let r,e,n=t[64].text&&ja(t);return{c(){n&&n.c(),r=Ne()},l(i){n&&n.l(i),r=Ne()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){i[64].text?n?(n.p(i,o),o[0]&4096&&U(n,1)):(n=ja(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(lr(),re(n,1,1,()=>{n=null}),ar())},i(i){e||(U(n),e=!0)},o(i){re(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}function ja(t){let r,e;return r=new Nl({props:{componentContext:t[0],text:t[64].text,rootFontSize:t[3],textStyles:t[64].textStyles,singleline:t[7],actions:t[64].actions,customLineHeight:t[10]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),i[0]&4096&&(o.text=n[64].text),i[0]&8&&(o.rootFontSize=n[3]),i[0]&4096&&(o.textStyles=n[64].textStyles),i[0]&128&&(o.singleline=n[7]),i[0]&4096&&(o.actions=n[64].actions),i[0]&1024&&(o.customLineHeight=n[10]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Ca(t){let r,e,n,i;const o=[u_,c_],s=[];function a(l,c){return"text"in l[64]?0:l[64].image?1:-1}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function f_(t){let r,e,n,i,o,s,a,l,c,u,f=t[6]&&ka(t);const h=[a_,l_],p=[];function b(_,v){return _[12].length?0:1}return n=b(t),i=p[n]=h[n](t),{c(){f&&f.c(),r=yr(),e=He("span"),i.c(),this.h()},l(_){f&&f.l(_),r=vr(_),e=Je(_,"SPAN",{class:!0,style:!0});var v=De(e);i.l(v),v.forEach(E),this.h()},h(){m(e,"class",o=bt("text__inner",qn,t[15])),m(e,"style",s=Vt(t[14]))},m(_,v){f&&f.m(_,v),ie(_,r,v),ie(_,e,v),p[n].m(e,null),l=!0,c||(u=Fs(a=i_.call(null,e,{enabled:t[9],lineClamp:typeof t[4]=="number"?t[4]:void 0,maxLines:t[11]})),c=!0)},p(_,v){_[6]?f?(f.p(_,v),v[0]&64&&U(f,1)):(f=ka(_),f.c(),U(f,1),f.m(r.parentNode,r)):f&&(lr(),re(f,1,1,()=>{f=null}),ar());let w=n;n=b(_),n===w?p[n].p(_,v):(lr(),re(p[w],1,1,()=>{p[w]=null}),ar(),i=p[n],i?i.p(_,v):(i=p[n]=h[n](_),i.c()),U(i,1),i.m(e,null)),(!l||v[0]&32768&&o!==(o=bt("text__inner",qn,_[15])))&&m(e,"class",o),(!l||v[0]&16384&&s!==(s=Vt(_[14])))&&m(e,"style",s),a&&Vr(a.update)&&v[0]&2576&&a.update.call(null,{enabled:_[9],lineClamp:typeof _[4]=="number"?_[4]:void 0,maxLines:_[11]})},i(_){l||(U(f),U(i),l=!0)},o(_){re(f),re(i),l=!1},d(_){_&&(E(r),E(e)),f&&f.d(_),p[n].d(),c=!1,u()}}}function d_(t){let r,e;return r=new Cn({props:{cls:bt("text",qn,t[16])+" "+(t[5]?nr.root__selectable:nr.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[f_]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&65568&&(o.cls=bt("text",qn,n[16])+" "+(n[5]?nr.root__selectable:nr.root__unselectable)),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&65501|i[2]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function h_(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J,Z,W,G,z,he=S,ye=()=>(he(),he=N(L,Xe=>e(47,z=Xe)),L),Te,_e=S,be=()=>(_e(),_e=N(s,Xe=>e(8,Te=Xe)),s),pt,Ue=S,Re=()=>(Ue(),Ue=N(o,Xe=>e(48,pt=Xe)),o),Me,Ze=S,et=()=>(Ze(),Ze=N(i,Xe=>e(49,Me=Xe)),i),Q,Ee=S,ge=()=>(Ee(),Ee=N(v,Xe=>e(50,Q=Xe)),v),nt,Y=S,Se=()=>(Y(),Y=N(_,Xe=>e(51,nt=Xe)),_),Ge,ne=S,lt=()=>(ne(),ne=N(b,Xe=>e(52,Ge=Xe)),b),je,Ie=S,kt=()=>(Ie(),Ie=N(p,Xe=>e(53,je=Xe)),p),Tt,te=S,it=()=>(te(),te=N(h,Xe=>e(54,Tt=Xe)),h),ut,gt=S,qe=()=>(gt(),gt=N(c,Xe=>e(55,ut=Xe)),c),C,rt=S,le=()=>(rt(),rt=N(f,Xe=>e(56,C=Xe)),f),Qe,At=S,fe=()=>(At(),At=N(u,Xe=>e(57,Qe=Xe)),u),pe,ft=S,$e=()=>(ft(),ft=N(w,Xe=>e(9,pe=Xe)),w),tr,Ot=S,Qt=()=>(Ot(),Ot=N(l,Xe=>e(58,tr=Xe)),l),Oe,yt=S,Jt=()=>(yt(),yt=N(a,Xe=>e(59,Oe=Xe)),a),Ut,qt=S,H=()=>(qt(),qt=N(n,Xe=>e(60,Ut=Xe)),n);t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Ue()),t.$$.on_destroy.push(()=>Ze()),t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>Y()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>te()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>rt()),t.$$.on_destroy.push(()=>At()),t.$$.on_destroy.push(()=>ft()),t.$$.on_destroy.push(()=>Ot()),t.$$.on_destroy.push(()=>yt()),t.$$.on_destroy.push(()=>qt());let{componentContext:ae}=r,{layoutParams:dr=void 0}=r;const we=Yr(tn),It=we.direction;un(t,It,Xe=>e(46,G=Xe));let Be="",vt=12,ze=1.25,at=null,Et="",Fe,dt="",Kt=!1,cr="start",pr="start",Gt="",ht="",Dt="",Nt=!1,rr=[],ir=!1,Er=[];function zr(Xe,hr,Ae,K){let jr=[];if(Er.forEach(([xe,Ft])=>{we.removeSvgFilter(xe,Ft)}),Er=[],!(Array.isArray(hr)&&hr.length||Array.isArray(Ae)&&Ae.length&&Xe)){e(12,rr=[]);return}const Cr=Xe;let zt=hr||[{start:0,end:Cr.length}],$r=Ae||[],Ve=0,Lt=[],_r=[];zt.forEach(xe=>{const Ft=xe.start||0,Le=xe.end||Xe.length,mt={top_offset:0,...xe,start:Ft,end:Le};_r.push({index:Ft,range:mt,type:"rangeStart",isStart:!0}),_r.push({index:Le,range:mt,type:"rangeEnd"})}),$r.forEach((xe,Ft)=>{xe.start!==void 0&&xe.url&&xe.start<=Cr.length&&_r.push({index:xe.indexing_direction==="reversed"?Xe.length-xe.start:xe.start,image:xe,type:"image",arrayIndex:Ft})}),_r.sort((xe,Ft)=>xe.index===Ft.index?xe.type!==Ft.type?xe.type==="image"?-1:Ft.type==="image"?1:xe.type<Ft.type?-1:1:xe.type==="image"&&Ft.type==="image"?Ft.arrayIndex-xe.arrayIndex:xe.type==="rangeStart"&&Ft.type==="rangeStart"?xe.range.end-Ft.range.end:xe.type==="rangeStart"?1:Ft.type==="rangeStart"?-1:xe.type!=="image"&&Ft.type!=="image"?xe.range.start-Ft.range.start:0:xe.index-Ft.index),_r.forEach(xe=>{var mt,ct,Ct,Xt;let Ft=xe.type==="image"?null:xe.range,Le=xe.index;if(Le>Ve){let T=Object.assign({...K},...Lt);Lt.length&&Lt[Lt.length-1].start!==Ve&&(T.top_offset=0),jr.push({text:Cr.substring(Ve,Le),textStyles:T,actions:xe.type==="rangeEnd"&&((ct=(mt=xe.range)==null?void 0:mt.actions)==null?void 0:ct.filter(Tn))||void 0})}if(xe.type==="rangeStart"&&Ft)Lt.push(Ft);else if(xe.type==="rangeEnd")Lt=Lt.filter(T=>T!==xe.range);else if(xe.type==="image"){let T=Object.assign({...K},...Lt),ot=ke((xe.image.width&&xe.image.width.value||20)*10/(T.font_size||12)),de=ke((xe.image.height&&xe.image.height.value||20)*10/(T.font_size||12));const d={"font-size":ke((Number(T.font_size)||12)*10/vt)};let Pe="";const jt=xe.image.tint_color,Pr=mf(xe.image.tint_mode,"source_in");if(jt){const rn=Mr(xe.image.tint_color);Pe=we.addSvgFilter(rn,Pr),Er.push([rn,Pr])}const fr={},R=(Ct=xe.image.accessibility)==null?void 0:Ct.type,Ir=((Xt=xe.image.accessibility)==null?void 0:Xt.description)||"";(R==="button"||R==="image")&&Ir?fr.role=R:(!Ir||R==="none")&&(fr["aria-hidden"]="true"),jr.push({image:{url:xe.image.url,width:ot,height:de,wrapperStyle:d,svgFilterId:Pe,preloadRequired:!!xe.image.preload_required,verticalAlign:xe.image.alignment_vertical,description:Ir,a11yAttrs:fr}})}Ve=Le}),Ve<Cr.length&&jr.push({text:Cr.substring(Ve),textStyles:{...K}}),e(12,rr=jr),e(6,ir=jr.some(xe=>{var Ft;return"text"in xe&&((Ft=xe.textStyles.background)==null?void 0:Ft.type)==="cloud"}))}function qr(Xe){Xe.target&&"classList"in Xe.target&&Xe.target.classList.add(qn.text__image_hidden)}return fn(()=>{Er.forEach(([Xe,hr])=>{we.removeSvgFilter(Xe,hr)})}),t.$$set=Xe=>{"componentContext"in Xe&&e(0,ae=Xe.componentContext),"layoutParams"in Xe&&e(1,dr=Xe.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&ae.json&&(e(3,vt=12),e(35,ze=1.25),e(10,at=null),e(36,Et=""),e(11,Fe=void 0),e(4,dt=""),e(37,Kt=!1),e(38,cr="start"),e(39,pr="start"),e(40,Gt=""),e(42,Dt=""),e(5,Nt=!1)),t.$$.dirty[0]&1&&H(e(32,n=ae.getDerivedFromVars(ae.json.text))),t.$$.dirty[0]&1&&et(e(31,i=ae.getDerivedFromVars(ae.json.ranges))),t.$$.dirty[0]&1&&Re(e(30,o=ae.getDerivedFromVars(ae.json.images))),t.$$.dirty[0]&1&&be(e(29,s=ae.getDerivedFromVars({font_size:ae.json.font_size,letter_spacing:ae.json.letter_spacing,font_weight:ae.json.font_weight,font_weight_value:ae.json.font_weight_value,font_family:ae.json.font_family,text_color:ae.json.text_color,underline:ae.json.underline,strike:ae.json.strike,line_height:ae.json.line_height,text_shadow:ae.json.text_shadow,font_feature_settings:ae.json.font_feature_settings}))),t.$$.dirty[0]&1&&Jt(e(28,a=ae.getDerivedFromVars(ae.json.font_size))),t.$$.dirty[0]&1&&Qt(e(27,l=ae.getDerivedFromVars(ae.json.line_height))),t.$$.dirty[0]&1&&qe(e(26,c=ae.getDerivedFromVars(ae.json.max_lines))),t.$$.dirty[0]&1&&fe(e(25,u=ae.getDerivedFromVars(ae.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&le(e(24,f=ae.getDerivedFromVars(ae.json.text_alignment_vertical))),t.$$.dirty[0]&1&&it(e(23,h=ae.getDerivedFromVars(ae.json.text_color))),t.$$.dirty[0]&1&&kt(e(22,p=ae.getDerivedFromVars(ae.json.focused_text_color))),t.$$.dirty[0]&1&<(e(21,b=ae.getDerivedFromVars(ae.json.truncate))),t.$$.dirty[0]&1&&Se(e(20,_=ae.getDerivedFromVars(ae.json.text_gradient))),t.$$.dirty[0]&1&&ge(e(19,v=ae.getDerivedFromVars(ae.json.selectable))),t.$$.dirty[0]&1&&$e(e(18,w=ae.getDerivedFromVars(ae.json.auto_ellipsize))),t.$$.dirty[0]&1&&ye(e(17,L=ae.getDerivedFromVars(ae.json.paddings))),t.$$.dirty[0]&1|t.$$.dirty[1]&536870912&&(typeof ae.json.text=="string"?e(2,Be=n_(Ut)):(e(2,Be=""),ae.logError(ee(new Error("Incorrect text value type"))))),t.$$.dirty[0]&8|t.$$.dirty[1]&268435456&&e(3,vt=Kn(Oe,vt)),t.$$.dirty[0]&8|t.$$.dirty[1]&134217744){const Xe=tr;Pn(Xe)?(e(35,ze=Number(Xe)/vt),e(10,at=ze)):e(10,at=null)}if(t.$$.dirty[1]&16777216&&e(7,P=ut===1),t.$$.dirty[0]&512|t.$$.dirty[1]&16777232){let Xe="",hr,Ae="",K=!1;if(ut&&ut>1){const jr=Number(ut);Xe=jr*ze+"em",hr=jr,Ae=jr,K=!0}else pe&&ut!==1&&(K=!0);e(36,Et=Xe),e(11,Fe=hr),e(4,dt=Ae),e(37,Kt=K)}if(t.$$.dirty[1]&67141760&&e(38,cr=Ol(Qe,G,cr)),t.$$.dirty[1]&33554688&&e(39,pr=zl(C,pr)),t.$$.dirty[0]&4|t.$$.dirty[1]&262144&&e(45,V=!Me||Be&&Me.length===1&&Me[0]&&(!Me[0].start||Me[0].start===0)&&(!Me[0].end||typeof Me[0].end=="number"&&Me[0].end>=Be.length)),t.$$.dirty[1]&8650752&&e(44,F=!!Tt!=!!(Me&&Me[0]&&Me[0].text_color)),t.$$.dirty[1]&25453056){let Xe="";ut&&V&&F&&(Xe=Mr(Tt||Me&&Me[0]&&Me[0].text_color,1,Gt)),e(40,Gt=Xe)}if(t.$$.dirty[1]&4195328&&e(41,ht=Mr(je,1,ht)),t.$$.dirty[1]&2097152&&e(43,x=Ge==="none"?"none":""),t.$$.dirty[1]&1048576){let Xe="";if(nt){const hr=Ns([nt]);hr.image&&(Xe=hr.image)}e(42,Dt=Xe)}t.$$.dirty[0]&32|t.$$.dirty[1]&524288&&e(5,Nt=ti(Q,Nt)),t.$$.dirty[0]&260|t.$$.dirty[1]&393216&&zr(Be,Me,pt,Te),t.$$.dirty[0]&128|t.$$.dirty[1]&5568&&e(16,D={singleline:P,multiline:Kt,halign:cr,valign:pr,truncate:x,"has-focus-color":!!ht}),t.$$.dirty[0]&64|t.$$.dirty[1]&2048&&e(15,J={gradient:!!Dt,"has-cloud-bg":ir}),t.$$.dirty[0]&24|t.$$.dirty[1]&3632&&e(14,Z={"font-size":ke(vt),"line-height":ze,"max-height":Et,"-webkit-line-clamp":dt,color:Gt,"background-image":Dt,"--divkit-text-focus-color":ht}),t.$$.dirty[0]&8|t.$$.dirty[1]&98304&&e(13,W=_i(il(Oo(z,{})||{},10/vt),G))},[ae,dr,Be,vt,dt,Nt,ir,P,Te,pe,at,Fe,rr,W,Z,J,D,L,w,v,_,b,p,h,f,u,c,l,a,s,o,i,n,It,qr,ze,Et,Kt,cr,pr,Gt,ht,Dt,x,F,V,G,z,pt,Me,Q,nt,Ge,je,Tt,ut,C,Qe,tr,Oe,Ut]}class __ extends Wr{constructor(r){super(),Hr(this,r,h_,d_,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const g_="divkit-a6270",p_="divkit-758dd",m_="divkit-34175",b_="divkit-5d3b3",y_="divkit-76f26",v_="divkit-71fc3",w_="divkit-d66e1",k_="divkit-4d9fa",A_="divkit-f82bf",E_="divkit-221f7",j_="divkit-88fee",C_="divkit-825b7",Sa={container:g_,container_wrap:p_,container_overflow_visible:m_,container_orientation_vertical:b_,container_valign_start:y_,container_valign_center:v_,container_valign_end:w_,"container_valign_space-between":"divkit-4aa6d","container_valign_space-around":"divkit-846d1","container_valign_space-evenly":"divkit-e04b5",container_halign_start:k_,container_halign_center:A_,container_halign_end:E_,"container_halign_space-between":"divkit-2daed","container_halign_space-around":"divkit-359ca","container_halign_space-evenly":"divkit-82605",container_orientation_horizontal:j_,container_orientation_overlap:C_};function Va(t){return{top:Number(t==null?void 0:t.top)||0,right:Number(t==null?void 0:t.right)||0,bottom:Number(t==null?void 0:t.bottom)||0,left:Number(t==null?void 0:t.left)||0}}function Ia(t,r,e){const n=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),i=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0);r!=null&&r.show_at_start&&(e?t.top=r.style.height+i:t.left=r.style.width+n),r!=null&&r.show_at_end&&(e?t.bottom=r.style.height+i:t.right=r.style.width+n)}function S_(t,r,e){const n={};return Ia(n,r,t==="vertical"),Ia(n,e,t==="horizontal"),n}function V_(t,r,e){let n;const i=((r==null?void 0:r.margins.left)||0)+((r==null?void 0:r.margins.right)||0),o=((r==null?void 0:r.margins.top)||0)+((r==null?void 0:r.margins.bottom)||0),s=((e==null?void 0:e.margins.left)||0)+((e==null?void 0:e.margins.right)||0),a=((e==null?void 0:e.margins.top)||0)+((e==null?void 0:e.margins.bottom)||0);return t==="horizontal"?n=[e!=null&&e.show_between?e.style.height+a:0,r!=null&&r.show_between?r.style.width+i:0]:n=[r!=null&&r.show_between?r.style.height+o:0,e!=null&&e.show_between?e.style.width+s:0],n.map(ke).join(" ")}function I_(t){var e;const r=(e=t.width)==null?void 0:e.type;return r!=="wrap_content"&&r!=="fixed"}function D_(t){var e;return((e=t.height)==null?void 0:e.type)==="match_parent"}function T_(t,r){return t==="vertical"||t==="horizontal"||t==="overlap"?t:r}function F_(t){var r,e,n;return{width:Xr((r=t.item_width)==null?void 0:r.value,10),height:Xr((e=t.item_height)==null?void 0:e.value,10),radius:Xr((n=t.corner_radius)==null?void 0:n.value,5)}}function M_(t){var e;const r=Xr((e=t.radius)==null?void 0:e.value,10)*2;return{width:r,height:r,radius:r}}function P_(t,r,e){var l;const n={},i=r.stroke||(e==null?void 0:e.stroke),o=i!=null&&i.color?Mr(i.color):"",s=i!=null&&i.width?Number((l=i.width)!=null?l:1):"";n.width=t.width,n.height=t.height,n.borderRadius=t.radius;const a=r.background_color||(e==null?void 0:e.color);return n.background=Mr(a),o&&s&&(n.boxShadow=`inset 0 0 0 ${ke(s)} ${o}`),n}function ei(t,r,e){if(!t||!t.shape||!t.shape.type||!r.includes(t.shape.type)||t.type!=="shape_drawable")return e;let n;if(t.shape.type==="rounded_rectangle")n=F_(t.shape);else if(t.shape.type==="circle")n=M_(t.shape);else return e;return P_(n,t.shape,{color:t.color,stroke:t.stroke})}let jo;function Da(){if(typeof document>"u"&&(jo=!0),jo!==void 0)return jo;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),jo=t.scrollHeight===1,document.body.removeChild(t),jo}function N_(t,r){return t==="top"||t==="center"||t==="bottom"||t==="baseline"||t==="space-between"||t==="space-around"||t==="space-evenly"?t==="top"?"start":t==="bottom"?"end":t:r}function O_(t,r,e){return t==="left"||t==="center"||t==="right"||t==="space-between"||t==="space-around"||t==="space-evenly"||t==="start"||t==="end"?t==="left"?r==="ltr"?"start":"end":t==="right"?r==="ltr"?"end":"start":t:e}function z_(){}function qi(t){return{subscribe(r){return r(t),z_}}}function Ll(t,r,e,n){const i=[],o=n.prototypes;return o&&t.forEach((s,a)=>{if(s===null||typeof s!="object")return;const l=r.preparePrototypeVariables(n.data_element_name||"it",s,a);let c,u;for(let f=0;f<o.length;++f){const h=o[f];if(!h.div)continue;if(h.selector===void 0){c=h.div,u=e.getJsonWithVars(h.id,l);break}if(e.getJsonWithVars(h.selector,l)){c=h.div,u=e.getJsonWithVars(h.id,l);break}}c&&i.push({div:c,id:u,vars:l})}),i}const Do={"container-separator":"divkit-e4041","container-separator__item":"divkit-566e3","container-separator__shape":"divkit-4178a"};function L_(t,r){let e=0,n,i=!1;return function(){const o=Date.now();return!e||Math.abs(o-e)>r?(e=o,n=t.apply(this,arguments)):(i||(i=!0,setTimeout(()=>{i=!1,n=t.apply(this,arguments)},r)),n)}}function R_(t){const r=t.getBoundingClientRect(),e=getComputedStyle(t);return{top:r.top-parseFloat(e.marginTop),right:r.right+parseFloat(e.marginRight),bottom:r.bottom+parseFloat(e.marginBottom),left:r.left-parseFloat(e.marginLeft)}}const{window:B_}=bi;function Ta(t,r,e){const n=t.slice();return n[16]=r[e],n}function Fa(t){let r,e,n=`${t[16].style.width}px`,i=`${t[16].style.height}px`,o=`${t[16].style.borderRadius}px`,s,a=`${t[16].left}px`,l=`${t[16].top}px`,c=`${t[16].width}px`,u=`${t[16].height}px`;return{c(){r=He("div"),e=He("div"),s=yr(),this.h()},l(f){r=Je(f,"DIV",{class:!0});var h=De(r);e=Je(h,"DIV",{class:!0}),De(e).forEach(E),s=vr(h),h.forEach(E),this.h()},h(){m(e,"class",Do["container-separator__shape"]),B(e,"width",n),B(e,"height",i),B(e,"border-radius",o),B(e,"background",t[16].style.background),B(e,"box-shadow",t[16].style.boxShadow),m(r,"class",Do["container-separator__item"]),B(r,"left",a),B(r,"top",l),B(r,"width",c),B(r,"height",u)},m(f,h){ie(f,r,h),St(r,e),St(r,s)},p(f,h){h&2&&n!==(n=`${f[16].style.width}px`)&&B(e,"width",n),h&2&&i!==(i=`${f[16].style.height}px`)&&B(e,"height",i),h&2&&o!==(o=`${f[16].style.borderRadius}px`)&&B(e,"border-radius",o),h&2&&B(e,"background",f[16].style.background),h&2&&B(e,"box-shadow",f[16].style.boxShadow),h&2&&a!==(a=`${f[16].left}px`)&&B(r,"left",a),h&2&&l!==(l=`${f[16].top}px`)&&B(r,"top",l),h&2&&c!==(c=`${f[16].width}px`)&&B(r,"width",c),h&2&&u!==(u=`${f[16].height}px`)&&B(r,"height",u)},d(f){f&&E(r)}}}function H_(t){let r,e,n,i=sr(t[1]),o=[];for(let s=0;s<i.length;s+=1)o[s]=Fa(Ta(t,i,s));return{c(){r=He("div");for(let s=0;s<o.length;s+=1)o[s].c();this.h()},l(s){r=Je(s,"DIV",{class:!0});var a=De(r);for(let l=0;l<o.length;l+=1)o[l].l(a);a.forEach(E),this.h()},h(){m(r,"class",Do["container-separator"])},m(s,a){ie(s,r,a);for(let l=0;l<o.length;l+=1)o[l]&&o[l].m(r,null);t[13](r),e||(n=Ye(B_,"resize",t[2]),e=!0)},p(s,[a]){if(a&2){i=sr(s[1]);let l;for(l=0;l<i.length;l+=1){const c=Ta(s,i,l);o[l]?o[l].p(c,a):(o[l]=Fa(c),o[l].c(),o[l].m(r,null))}for(;l<o.length;l+=1)o[l].d(1);o.length=i.length}},i:S,o:S,d(s){s&&E(r),hn(o,s),t[13](null),e=!1,n()}}}const W_=10;function Ks(t,r,e,n,i,o){const s=r.margins.left,a=r.margins.right,l=r.margins.top,c=r.margins.bottom;o?t.push({top:e.bottom+l,left:i.left+s,width:Math.max(0,i.right-i.left-s-a),height:n.top-e.bottom-l-c,style:r.style}):t.push({top:i.top+l,left:e.right+s,width:n.left-e.right-s-a,height:Math.max(0,i.bottom-i.top-l-c),style:r.style})}function Ma(t,r,e,n,i,o){const s={top:Math.min(...e.map(a=>a.top)),right:Math.max(...e.map(a=>a.right)),bottom:Math.max(...e.map(a=>a.bottom)),left:Math.min(...e.map(a=>a.left))};if(r!=null&&r.show_at_start){let a,l;i==="space-around"||i==="space-evenly"?(a=o.left-r.style.width,l=o.top-r.style.height):(a=e[0].left-r.style.width-r.margins.left-r.margins.right,l=e[0].top-r.style.height-r.margins.top-r.margins.bottom),Ks(t,r,{top:0,right:a,bottom:l,left:0},e[0],s,n)}if(r!=null&&r.show_between)for(let a=0;a<e.length-1;++a)Ks(t,r,e[a],e[a+1],s,n);if(r!=null&&r.show_at_end){const a=e[e.length-1];let l,c;i==="space-around"||i==="space-evenly"?(l=o.bottom+r.style.height,c=o.right+r.style.width):(l=a.bottom+r.style.height+r.margins.top+r.margins.bottom,c=a.right+r.style.width+r.margins.left+r.margins.right),Ks(t,r,a,{top:l,right:0,bottom:0,left:c},s,n)}}function U_(t,r,e){let n,{orientation:i}=r,{separator:o}=r,{lineSeparator:s}=r,{contentHAlign:a}=r,{contentVAlign:l}=r,{direction:c}=r;const u=L_(w,W_);let f=[],h,p=!1,b=null,_=null;function v(P){P.some(V=>{var x;const F=(x=V.target)==null?void 0:x.classList;return!(F!=null&&F.contains(Do["container-separator__shape"]))&&!(F!=null&&F.contains(Do["container-separator"]))})&&u()}function w(){if(!n)return;const P=n.getBoundingClientRect(),V=window.getComputedStyle(n),F={top:P.top+parseFloat(V.paddingTop),right:P.right-parseFloat(V.paddingRight),bottom:P.bottom-parseFloat(V.paddingBottom),left:P.left+parseFloat(V.paddingLeft)};e(1,f=[]);let x=[...n.children].filter(Z=>Z!==h&&!Z.classList.contains(vs.outer__border)),D=[];for(;x.length;){const Z=[],W=x.shift();Z.push(W);let G=W.getBoundingClientRect(),z=G.left,he=G.right,ye=G.bottom;for(;x.length;){let Te=x[0],_e=Te.getBoundingClientRect();if(i==="vertical"){if(_e.top<ye)break}else if(c==="ltr"?_e.left<he:_e.right>z)break;he=Math.max(he,_e.right),z=Math.min(z,_e.left),ye=Math.max(ye,_e.bottom),Z.push(Te),x.shift()}D.push(Z)}const J=[];D.forEach(Z=>{const W=Z.map(z=>R_(z));c==="rtl"&&i==="horizontal"&&W.reverse(),o&&Ma(f,o,W,i==="vertical",i==="vertical"?l:a,F);const G={top:Math.min(...W.map(z=>z.top)),right:Math.max(...W.map(z=>z.right)),bottom:Math.max(...W.map(z=>z.bottom)),left:Math.min(...W.map(z=>z.left))};J.push(G)}),c==="rtl"&&i==="vertical"&&J.reverse(),s&&Ma(f,s,J,i==="horizontal",i==="vertical"?a:l,F),f.forEach(Z=>{Z.top-=P.top,Z.left-=P.left})}ii(()=>{e(9,p=!0)}),fn(()=>{e(9,p=!1)});function L(P){Or[P?"unshift":"push"](()=>{h=P,e(0,h)})}return t.$$set=P=>{"orientation"in P&&e(3,i=P.orientation),"separator"in P&&e(4,o=P.separator),"lineSeparator"in P&&e(5,s=P.lineSeparator),"contentHAlign"in P&&e(6,a=P.contentHAlign),"contentVAlign"in P&&e(7,l=P.contentVAlign),"direction"in P&&e(8,c=P.direction)},t.$$.update=()=>{t.$$.dirty&1&&e(12,n=(h==null?void 0:h.parentElement)||null),t.$$.dirty&7680&&(p&&n||b||_)&&(b&&(b.disconnect(),e(10,b=null)),_&&(_.disconnect(),e(11,_=null)),p&&n&&(typeof MutationObserver<"u"&&(e(10,b=new MutationObserver(v)),b.observe(n,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),typeof ResizeObserver<"u"&&(e(11,_=new ResizeObserver(u)),_.observe(n)))),t.$$.dirty&4608&&p&&n&&u()},[h,f,u,i,o,s,a,l,c,p,b,_,n,L]}class G_ extends Wr{constructor(r){super(),Hr(this,r,U_,H_,Ar,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}}const{Boolean:Y_}=bi;function Pa(t,r,e){const n=t.slice();return n[49]=r[e],n}function Na(t){let r,e;return r=new oi({props:{componentContext:t[49],layoutParams:t[8]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&512&&(o.componentContext=n[49]),i[0]&256&&(o.layoutParams=n[8]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Oa(t){let r,e;return r=new G_({props:{direction:t[10],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1024&&(o.direction=n[10]),i[0]&32&&(o.separator=n[5]),i[0]&64&&(o.lineSeparator=n[6]),i[0]&4&&(o.orientation=n[2]),i[0]&16&&(o.contentHAlign=n[4]),i[0]&8&&(o.contentVAlign=n[3]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function J_(t){let r,e,n,i=sr(t[9]),o=[];for(let l=0;l<i.length;l+=1)o[l]=Na(Pa(t,i,l));const s=l=>re(o[l],1,1,()=>{o[l]=null});let a=(t[5]||t[6])&&Oa(t);return{c(){for(let l=0;l<o.length;l+=1)o[l].c();r=yr(),a&&a.c(),e=Ne()},l(l){for(let c=0;c<o.length;c+=1)o[c].l(l);r=vr(l),a&&a.l(l),e=Ne()},m(l,c){for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(l,c);ie(l,r,c),a&&a.m(l,c),ie(l,e,c),n=!0},p(l,c){if(c[0]&768){i=sr(l[9]);let u;for(u=0;u<i.length;u+=1){const f=Pa(l,i,u);o[u]?(o[u].p(f,c),U(o[u],1)):(o[u]=Na(f),o[u].c(),U(o[u],1),o[u].m(r.parentNode,r))}for(lr(),u=i.length;u<o.length;u+=1)s(u);ar()}l[5]||l[6]?a?(a.p(l,c),c[0]&96&&U(a,1)):(a=Oa(l),a.c(),U(a,1),a.m(e.parentNode,e)):a&&(lr(),re(a,1,1,()=>{a=null}),ar())},i(l){if(!n){for(let c=0;c<i.length;c+=1)U(o[c]);U(a),n=!0}},o(l){o=o.filter(Y_);for(let c=0;c<o.length;c+=1)re(o[c]);re(a),n=!1},d(l){l&&(E(r),E(e)),hn(o,l),a&&a.d(l)}}}function q_(t){let r,e;return r=new Cn({props:{cls:bt("container",Sa,t[13]),componentContext:t[0],layoutParams:t[1],style:t[12],additionalPaddings:t[14],heightByAspect:!!t[7],parentOf:t[9],replaceItems:t[27],$$slots:{default:[J_]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&8192&&(o.cls=bt("container",Sa,n[13])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4096&&(o.style=n[12]),i[0]&16384&&(o.additionalPaddings=n[14]),i[0]&128&&(o.heightByAspect=!!n[7]),i[0]&512&&(o.parentOf=n[9]),i[0]&1916|i[1]&2097152&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}const K_={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},X_={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},za=["rounded_rectangle","circle"];function Z_(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J,Z=S,W=()=>(Z(),Z=N(_,ae=>e(35,J=ae)),_),G,z=S,he=()=>(z(),z=N(b,ae=>e(36,G=ae)),b),ye,Te=S,_e=()=>(Te(),Te=N(p,ae=>e(37,ye=ae)),p),be,pt=S,Ue=()=>(pt(),pt=N(h,ae=>e(38,be=ae)),h),Re,Me=S,Ze=()=>(Me(),Me=N(f,ae=>e(39,Re=ae)),f),et,Q=S,Ee=()=>(Q(),Q=N(u,ae=>e(40,et=ae)),u),ge,nt,Y=S,Se=()=>(Y(),Y=N(c,ae=>e(41,nt=ae)),c),Ge,ne=S,lt=()=>(ne(),ne=N(l,ae=>e(42,Ge=ae)),l),je,Ie=S,kt=()=>(Ie(),Ie=N(ft,ae=>e(43,je=ae)),ft),Tt,te=S,it=()=>(te(),te=N(a,ae=>e(44,Tt=ae)),a),ut,gt=S,qe=()=>(gt(),gt=N(s,ae=>e(45,ut=ae)),s),C,rt=S,le=()=>(rt(),rt=N(o,ae=>e(46,C=ae)),o);t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>z()),t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>Q()),t.$$.on_destroy.push(()=>Y()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>te()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>rt());let{componentContext:Qe}=r,{layoutParams:At=void 0}=r;const fe=Yr(tn),pe=fe.direction;un(t,pe,ae=>e(10,ge=ae));let ft,$e="vertical",tr="start",Ot="start",Qt=null,Oe=null,yt,Jt={};function Ut(){e(2,$e="vertical"),e(3,tr="start"),e(4,Ot="start"),e(7,yt=void 0)}function qt(ae){e(0,Qe={...Qe,json:{...Qe.json,items:ae.filter(Vi)}})}let H=[];return fn(()=>{H.forEach(ae=>{ae.destroy()})}),t.$$set=ae=>{"componentContext"in ae&&e(0,Qe=ae.componentContext),"layoutParams"in ae&&e(1,At=ae.layoutParams)},t.$$.update=()=>{var ae,dr,we,It,Be,vt,ze,at,Et;if(t.$$.dirty[0]&1&&e(34,n=Qe.origJson),t.$$.dirty[1]&8&&n&&Ut(),t.$$.dirty[0]&1&&e(33,i=Qe.json.items),t.$$.dirty[0]&1&&le(e(25,o=typeof((ae=Qe.json.item_builder)==null?void 0:ae.data)=="string"?Qe.getDerivedFromVars((dr=Qe.json.item_builder)==null?void 0:dr.data,void 0,!0):(we=Qe.json.item_builder)!=null&&we.data?qi(Qe.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&qe(e(24,s=Qe.getDerivedFromVars(Qe.json.orientation))),t.$$.dirty[0]&1&&it(e(23,a=Qe.getDerivedFromVars(Qe.json.layout_mode))),t.$$.dirty[0]&1&<(e(22,l=Qe.getDerivedFromVars(Qe.json.content_alignment_vertical))),t.$$.dirty[0]&1&&Se(e(21,c=Qe.getDerivedFromVars(Qe.json.content_alignment_horizontal))),t.$$.dirty[0]&1&&Ee(e(20,u=Qe.getDerivedFromVars(Qe.json.separator))),t.$$.dirty[0]&1&&Ze(e(19,f=Qe.getDerivedFromVars(Qe.json.line_separator))),t.$$.dirty[0]&1&&Ue(e(18,h=Qe.getDerivedFromVars(Qe.json.aspect))),t.$$.dirty[0]&1&&_e(e(17,p=Qe.getDerivedFromVars(Qe.json.width))),t.$$.dirty[0]&1&&he(e(16,b=Qe.getDerivedFromVars(Qe.json.height))),t.$$.dirty[0]&1&&W(e(15,_=Qe.getDerivedFromVars(Qe.json.clip_to_bounds))),t.$$.dirty[0]&513|t.$$.dirty[1]&32772){let Fe=[];if(Qe.json.item_builder&&Array.isArray(C)&&Array.isArray(Qe.json.item_builder.prototypes)){const dt=Qe.json.item_builder;Fe=Ll(C,fe,Qe,dt)}else Fe=(Array.isArray(i)&&i||[]).map(dt=>({div:dt}));H.forEach(dt=>{dt.destroy()}),e(9,H=Fe.map((dt,Kt)=>Qe.produceChildContext(dt.div,{path:Kt,variables:dt.vars,id:dt.id})))}if(t.$$.dirty[0]&513){let Fe=[];H.forEach(dt=>{Fe.push(Qe.getDerivedFromVars({width:dt.json.width,height:dt.json.height}))}),kt(e(11,ft=Zi(Fe,dt=>[...dt])))}if(t.$$.dirty[0]&4|t.$$.dirty[1]&16384&&e(2,$e=T_(ut,$e)),t.$$.dirty[1]&8192&&e(28,v=Tt==="wrap"),t.$$.dirty[0]&268435460&&e(32,w=$e!=="horizontal"&&!v),t.$$.dirty[0]&268435460&&e(31,L=$e!=="vertical"&&!v),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&e(30,P=$e==="overlap"&&!je.every(I_)),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&e(29,V=$e==="overlap"&&!je.every(D_)),t.$$.dirty[0]&8|t.$$.dirty[1]&2048&&e(3,tr=N_(Ge,tr)),t.$$.dirty[0]&1040|t.$$.dirty[1]&1024&&e(4,Ot=O_(nt,ge,Ot)),t.$$.dirty[0]&36|t.$$.dirty[1]&512)if(et!=null&&et.style&&$e!=="overlap"&&Da()){const Fe=ei(et.style,za,(Qt==null?void 0:Qt.style)||null);Fe?e(5,Qt={show_at_start:!!((It=et.show_at_start)!=null&&It),show_at_end:!!((Be=et.show_at_end)!=null&&Be),show_between:!!((vt=et.show_between)==null||vt),style:Fe,margins:Va(et.margins)}):e(5,Qt=null)}else e(5,Qt=null);if(t.$$.dirty[0]&68|t.$$.dirty[1]&256)if(Re!=null&&Re.style&&$e!=="overlap"&&Da()){const Fe=ei(Re.style,za,(Oe==null?void 0:Oe.style)||null);Fe?e(6,Oe={show_at_start:!!((ze=Re.show_at_start)!=null&&ze),show_at_end:!!((at=Re.show_at_end)!=null&&at),show_between:!!((Et=Re.show_between)==null||Et),style:Fe,margins:Va(Re.margins)}):e(6,Oe=null)}else e(6,Oe=null);if(t.$$.dirty[0]&100&&e(14,F=Qt||Oe?S_($e,Qt,Oe):null),t.$$.dirty[1]&128){const Fe=be==null?void 0:be.ratio;Fe&&Pn(Fe)?e(7,yt=Fe):e(7,yt=void 0)}if(t.$$.dirty[0]&1879048606|t.$$.dirty[1]&99){let Fe={};$e==="overlap"&&(Fe.overlapParent=!0),$e!=="horizontal"&&(Fe.parentHAlign=v?"start":K_[Ot]),$e!=="vertical"&&(Fe.parentVAlign=v?"start":X_[tr]);const dt=(ye==null?void 0:ye.type)==="wrap_content"||(ye==null?void 0:ye.type)==="match_parent"&&(At==null?void 0:At.parentHorizontalWrapContent),Kt=!G||G.type==="wrap_content"||G.type==="match_parent"&&(At==null?void 0:At.parentVerticalWrapContent);!w&&dt&&(Fe.parentHorizontalWrapContent=!0),!yt&&!L&&Kt&&(Fe.parentVerticalWrapContent=!0),Fe.stretchWidth=P,Fe.stretchHeight=V,$e==="horizontal"&&(Fe.parentContainerOrientation="horizontal"),$e==="vertical"&&(Fe.parentContainerOrientation="vertical"),v&&(Fe.parentContainerWrap=!0),e(8,Jt=Pi(Fe,Jt))}t.$$.dirty[0]&268435484|t.$$.dirty[1]&16&&e(13,x={orientation:$e,valign:tr,halign:Ot,wrap:v,overflow:J===!1||J===0?"visible":void 0}),t.$$.dirty[0]&228&&e(12,D={gap:Qt||Oe?V_($e,Qt,Oe):void 0,"aspect-ratio":yt})},[Qe,At,$e,tr,Ot,Qt,Oe,yt,Jt,H,ge,ft,D,x,F,_,b,p,h,f,u,c,l,a,s,o,pe,qt,v,V,P,L,w,i,n,J,G,ye,be,Re,et,nt,Ge,je,Tt,ut,C]}class Q_ extends Wr{constructor(r){super(),Hr(this,r,Z_,q_,Ar,{componentContext:0,layoutParams:1},null,[-1,-1])}}const x_="divkit-5196a",$_="divkit-8d569",eg="divkit-f0c05",tg="divkit-563bc",ol={separator:x_,separator_orientation_horizontal:$_,separator_orientation_vertical:eg,separator__inner:tg};function Rl(t,r){return t==="vertical"||t==="horizontal"?t:r}function La(t){let r,e;return{c(){r=He("span"),this.h()},l(n){r=Je(n,"SPAN",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",ol.separator__inner),m(r,"style",e=Vt(t[3]))},m(n,i){ie(n,r,i)},p(n,i){i&8&&e!==(e=Vt(n[3]))&&m(r,"style",e)},d(n){n&&E(r)}}}function rg(t){let r,e=t[4]&&La(t);return{c(){e&&e.c(),r=Ne()},l(n){e&&e.l(n),r=Ne()},m(n,i){e&&e.m(n,i),ie(n,r,i)},p(n,i){n[4]?e?e.p(n,i):(e=La(n),e.c(),e.m(r.parentNode,r)):e&&(e.d(1),e=null)},d(n){n&&E(r),e&&e.d(n)}}}function ng(t){let r,e;return r=new Cn({props:{cls:bt("separator",ol,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[rg]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,[i]){const o={};i&4&&(o.cls=bt("separator",ol,n[2])),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&8216&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function ig(t,r,e){let n,i,o,s,a,l,c,u,f=S,h=()=>(f(),f=N(i,L=>e(11,u=L)),i);t.$$.on_destroy.push(()=>f());let{componentContext:p}=r,{layoutParams:b=void 0}=r,_="horizontal",v="rgba(0,0,0,0.08)";function w(){e(6,_="horizontal"),e(7,v="rgba(0,0,0,0.08)")}return t.$$set=L=>{"componentContext"in L&&e(0,p=L.componentContext),"layoutParams"in L&&e(1,b=L.layoutParams)},t.$$.update=()=>{t.$$.dirty&1&&e(10,n=p.origJson),t.$$.dirty&1024&&n&&w(),t.$$.dirty&1&&h(e(5,i=p.getDerivedFromVars(p.json.delimiter_style))),t.$$.dirty&2112&&e(6,_=Rl(u==null?void 0:u.orientation,_)),t.$$.dirty&2048&&e(4,o=!(u!=null&&u.color&&(u.color==="transparent"||u.color.length===9&&u.color.indexOf("#00")===0))),t.$$.dirty&2176&&e(7,v=Mr(u==null?void 0:u.color,1,v)),t.$$.dirty&64&&e(9,s=_==="horizontal"?"100%":ke(1)),t.$$.dirty&64&&e(8,a=_==="horizontal"?ke(1):"100%"),t.$$.dirty&896&&e(3,l={background:v,width:s,height:a}),t.$$.dirty&64&&e(2,c={orientation:_})},[p,b,c,l,o,i,_,v,a,s,n,u]}class og extends Wr{constructor(r){super(),Hr(this,r,ig,ng,Ar,{componentContext:0,layoutParams:1})}}const sg="divkit-8ae57",lg="divkit-4eb06",ag="divkit-eba6b",cg="divkit-37495",ug="divkit-cdd4f",To={image:sg,"image_is-width-content":"divkit-0a28e","image_is-height-content":"divkit-f167b",image__image:lg,image_error:ag,"image_is-rtl-mirror":"divkit-1b179","image__aspect-wrapper":"divkit-1afad",image_aspect:cg,image_loaded:ug,"divkit-image-appearance":"divkit-e49b3","image_before-appearance":"divkit-8ea57"};function fg(t,r,e){let n=t.content_alignment_horizontal;const i=t.content_alignment_vertical;return n==="start"?n=r==="ltr"?"left":"right":n==="end"&&(n=r==="ltr"?"right":"left"),n&&n!=="left"&&n!=="center"&&n!=="right"||i&&i!=="top"&&i!=="center"&&i!=="bottom"?e:_f({content_alignment_horizontal:n,content_alignment_vertical:i})}function yf(t){return t.startsWith("data:")?tl(t):`data:image/jpg;base64,${tl(t)}`}function dg(t,r,e){let{componentContext:n}=r;Yr(tn);function i(){}return ii(()=>{}),Ps(i),fn(()=>{}),t.$$set=o=>{"componentContext"in o&&e(0,n=o.componentContext)},[n]}class vi extends Wr{constructor(r){super(),Hr(this,r,dg,null,Ar,{componentContext:0})}}function hg(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function _g(t){let r,e;return r=new Cn({props:{cls:bt("image",To,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[mg]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&512&&(o.cls=bt("image",To,n[9])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&67110780|i[2]&64&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function gg(t){let r,e,n,i,o,s,a;return{c(){r=He("img"),this.h()},l(l){r=Je(l,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){m(r,"class",To.image__image),Wn(r.src,e=t[2]===Xi?Fo:t[3])||m(r,"src",e),m(r,"loading",n=t[26]?"eager":"lazy"),m(r,"decoding","async"),m(r,"style",i=Vt(t[8])),m(r,"alt",t[10]),m(r,"aria-hidden",o=t[10]?null:"true")},m(l,c){ie(l,r,c),t[63](r),s||(a=[Ye(r,"load",t[28]),Ye(r,"error",t[29])],s=!0)},p(l,c){c[0]&12&&!Wn(r.src,e=l[2]===Xi?Fo:l[3])&&m(r,"src",e),c[0]&67108864&&n!==(n=l[26]?"eager":"lazy")&&m(r,"loading",n),c[0]&256&&i!==(i=Vt(l[8]))&&m(r,"style",i),c[0]&1024&&m(r,"alt",l[10]),c[0]&1024&&o!==(o=l[10]?null:"true")&&m(r,"aria-hidden",o)},d(l){l&&E(r),t[63](null),s=!1,Jr(a)}}}function pg(t){let r,e,n,i,o,s,a=`${t[4]}%`,l,c;return{c(){r=He("span"),e=He("img"),this.h()},l(u){r=Je(u,"SPAN",{class:!0});var f=De(r);e=Je(f,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),f.forEach(E),this.h()},h(){m(e,"class",To.image__image),Wn(e.src,n=t[2]===Xi?Fo:t[3])||m(e,"src",n),m(e,"loading",i=t[26]?"eager":"lazy"),m(e,"decoding","async"),m(e,"style",o=Vt(t[8])),m(e,"alt",t[10]),m(e,"aria-hidden",s=t[10]?null:"true"),m(r,"class",To["image__aspect-wrapper"]),B(r,"padding-bottom",a)},m(u,f){ie(u,r,f),St(r,e),t[62](e),l||(c=[Ye(e,"load",t[28]),Ye(e,"error",t[29])],l=!0)},p(u,f){f[0]&12&&!Wn(e.src,n=u[2]===Xi?Fo:u[3])&&m(e,"src",n),f[0]&67108864&&i!==(i=u[26]?"eager":"lazy")&&m(e,"loading",i),f[0]&256&&o!==(o=Vt(u[8]))&&m(e,"style",o),f[0]&1024&&m(e,"alt",u[10]),f[0]&1024&&s!==(s=u[10]?null:"true")&&m(e,"aria-hidden",s),f[0]&16&&a!==(a=`${u[4]}%`)&&B(r,"padding-bottom",a)},d(u){u&&E(r),t[62](null),l=!1,Jr(c)}}}function Ra(t){let r;function e(o,s){return o[9].aspect?pg:gg}let n=e(t),i=n(t);return{c(){i.c(),r=Ne()},l(o){i.l(o),r=Ne()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function mg(t){let r=t[5],e,n=Ra(t);return{c(){n.c(),e=Ne()},l(i){n.l(i),e=Ne()},m(i,o){n.m(i,o),ie(i,e,o)},p(i,o){o[0]&32&&Ar(r,r=i[5])?(n.d(1),n=Ra(i),n.c(),n.m(e.parentNode,e)):n.p(i,o)},d(i){i&&E(e),n.d(i)}}}function bg(t){let r,e,n,i;const o=[_g,hg],s=[];function a(l,c){return l[7]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}const Fo="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",yg="empty://",vg="rgba(0,0,0,0.08)",Ui=0,Xs=1,Xi=2;function wg(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J,Z=S,W=()=>(Z(),Z=N(w,Ae=>e(47,J=Ae)),w),G,z,he=S,ye=()=>(he(),he=N(v,Ae=>e(49,z=Ae)),v),Te,_e=S,be=()=>(_e(),_e=N(_,Ae=>e(50,Te=Ae)),_),pt,Ue=S,Re=()=>(Ue(),Ue=N(b,Ae=>e(51,pt=Ae)),b),Me,Ze=S,et=()=>(Ze(),Ze=N(p,Ae=>e(52,Me=Ae)),p),Q,Ee=S,ge=()=>(Ee(),Ee=N(h,Ae=>e(53,Q=Ae)),h),nt,Y=S,Se=()=>(Y(),Y=N(f,Ae=>e(54,nt=Ae)),f),Ge,ne=S,lt=()=>(ne(),ne=N(u,Ae=>e(55,Ge=Ae)),u),je,Ie=S,kt=()=>(Ie(),Ie=N(c,Ae=>e(56,je=Ae)),c),Tt,te=S,it=()=>(te(),te=N(l,Ae=>e(57,Tt=Ae)),l),ut,gt=S,qe=()=>(gt(),gt=N(a,Ae=>e(58,ut=Ae)),a),C,rt=S,le=()=>(rt(),rt=N(s,Ae=>e(59,C=Ae)),s),Qe,At=S,fe=()=>(At(),At=N(i,Ae=>e(60,Qe=Ae)),i),pe,ft=S,$e=()=>(ft(),ft=N(o,Ae=>e(61,pe=Ae)),o),tr,Ot=S,Qt=()=>(Ot(),Ot=N(L,Ae=>e(26,tr=Ae)),L);t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Ue()),t.$$.on_destroy.push(()=>Ze()),t.$$.on_destroy.push(()=>Ee()),t.$$.on_destroy.push(()=>Y()),t.$$.on_destroy.push(()=>ne()),t.$$.on_destroy.push(()=>Ie()),t.$$.on_destroy.push(()=>te()),t.$$.on_destroy.push(()=>gt()),t.$$.on_destroy.push(()=>rt()),t.$$.on_destroy.push(()=>At()),t.$$.on_destroy.push(()=>ft()),t.$$.on_destroy.push(()=>Ot());let{componentContext:Oe}=r,{layoutParams:yt=void 0}=r;const Jt=Yr(tn),Ut=Jt.direction;un(t,Ut,Ae=>e(48,G=Ae));let qt,H=Ui,ae=!1,dr=vg,we=!1,It,Be="",vt="none",ze="50% 50%",at="0",Et,Fe="source_in",dt="",Kt="",cr=0,pr=0,Gt=0,ht="",Dt="",Nt=!1;function rr(){e(33,vt="none"),e(34,ze="50% 50%"),e(36,Fe="source_in")}function ir(Ae){e(2,H=Ui)}function Er(Ae){e(34,ze=fg(Ae,G,ze))}function zr(){H===Ui&&e(2,H=Xs)}function qr(){H===Ui&&e(2,H=Xi)}fn(()=>{Jt.removeSvgFilter(Et,Fe)});function Xe(Ae){Or[Ae?"unshift":"push"](()=>{qt=Ae,e(6,qt)})}function hr(Ae){Or[Ae?"unshift":"push"](()=>{qt=Ae,e(6,qt)})}return t.$$set=Ae=>{"componentContext"in Ae&&e(0,Oe=Ae.componentContext),"layoutParams"in Ae&&e(1,yt=Ae.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&e(46,n=Oe.origJson),t.$$.dirty[1]&32768&&n&&rr(),t.$$.dirty[0]&1&&fe(e(25,i=Oe.getDerivedFromVars(Oe.json.image_url))),t.$$.dirty[0]&1&&$e(e(24,o=Oe.getDerivedFromVars(Oe.json.gif_url))),t.$$.dirty[0]&1&&le(e(23,s=Oe.getDerivedFromVars(Oe.json.width))),t.$$.dirty[0]&1&&qe(e(22,a=Oe.getDerivedFromVars(Oe.json.height))),t.$$.dirty[0]&1&&it(e(21,l=Oe.getDerivedFromVars(Oe.json.preview))),t.$$.dirty[0]&1&&kt(e(20,c=Oe.getDerivedFromVars(Oe.json.placeholder_color))),t.$$.dirty[0]&1&<(e(19,u=Oe.getDerivedFromVars(Oe.json.scale))),t.$$.dirty[0]&1&&Se(e(18,f=Oe.getDerivedFromVars({content_alignment_horizontal:Oe.json.content_alignment_horizontal,content_alignment_vertical:Oe.json.content_alignment_vertical}))),t.$$.dirty[0]&1&&ge(e(17,h=Oe.getDerivedFromVars(Oe.json.accessibility))),t.$$.dirty[0]&1&&et(e(16,p=Oe.getDerivedFromVars(Oe.json.aspect))),t.$$.dirty[0]&1&&Re(e(15,b=Oe.getDerivedFromVars(Oe.json.tint_color))),t.$$.dirty[0]&1&&be(e(14,_=Oe.getDerivedFromVars(Oe.json.tint_mode))),t.$$.dirty[0]&1&&ye(e(13,v=Oe.getDerivedFromVars(Oe.json.appearance_animation))),t.$$.dirty[0]&1&&W(e(12,w=Oe.getDerivedFromVars(Oe.json.filters))),t.$$.dirty[0]&1&&Qt(e(11,L=Oe.getDerivedFromVars(Oe.json.preload_required))),t.$$.dirty[0]&1073741825|t.$$.dirty[1]&1610612736){let Ae=Oe.json.type==="gif"?pe:Qe;e(30,ae=Ae===yg),ae&&(Ae=Fo),e(3,It=Ae)}if(t.$$.dirty[0]&8&&ir(),t.$$.dirty[0]&9&&(It?e(7,we=!1):(e(7,we=!0),Oe.logError(ee(new Error(`Missing "${Oe.json.type==="gif"?"gif_url":"image_url"}" for "${Oe.json.type}"`))))),t.$$.dirty[1]&268435456&&e(45,P=(C==null?void 0:C.type)==="wrap_content"),t.$$.dirty[1]&134217728&&e(44,V=(ut==null?void 0:ut.type)==="wrap_content"),t.$$.dirty[0]&1073741828|t.$$.dirty[1]&67108864){const Ae=Tt;(H===Ui||H===Xi||ae)&&Ae?e(32,Be=`url("${yf(Ae)}")`):e(32,Be="")}if(t.$$.dirty[0]&1073741828|t.$$.dirty[1]&33554433&&(H===Ui||H===Xi||ae?e(31,dr=Mr(je,1,dr)):e(31,dr="")),t.$$.dirty[1]&16777220&&e(33,vt=hf(Ge)||vt),t.$$.dirty[1]&8388608&&Er(nt),t.$$.dirty[1]&4194304&&e(10,F=(Q==null?void 0:Q.description)||""),t.$$.dirty[1]&2097152){const Ae=Me==null?void 0:Me.ratio;Ae&&Pn(Ae)?e(4,at=(100/Number(Ae)).toFixed(2)):e(4,at="0")}if(t.$$.dirty[1]&1572912){const Ae=pt,K=Ae?Mr(Ae):void 0,jr=mf(Te,Fe);(K!==Et||jr!==Fe)&&(Jt.removeSvgFilter(Et,Fe),e(5,dt=K?Jt.addSvgFilter(K,jr):""),e(35,Et=K),e(36,Fe=jr))}if(t.$$.dirty[1]&262144&&z&&z.type==="fade"){const Ae=z;e(37,Kt=gf(Ae.interpolator,"ease_in_out").replace(/_/g,"-")),e(40,Gt=Xr(Ae.duration,300)),e(39,pr=Xr(Ae.start_delay,0)),e(38,cr=Xr(Ae.alpha,0))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&196608){let Ae="",K="";Array.isArray(J)&&J.length&&(Ae=pf(J,Oe.logError)),Ae&&(K="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),e(41,ht=Ae),e(42,Dt=K),e(43,Nt=G==="rtl"&&Array.isArray(J)&&J.some(jr=>jr.type==="rtl_mirror"))}t.$$.dirty[0]&20|t.$$.dirty[1]&28736&&e(9,x={aspect:at!=="0","is-width-content":P,"is-height-content":V,loaded:H===Xs,"before-appearance":!!Kt&&H===Ui,"is-rtl-mirror":Nt}),t.$$.dirty[0]&36|t.$$.dirty[1]&4047&&e(8,D={"background-image":Be,"background-color":Be?void 0:dr,"background-size":vt,"clip-path":Dt||void 0,"object-fit":vt,"object-position":ze,filter:[H===Xs&&dt?`url(#${dt})`:"",ht].filter(Boolean).join(" "),"--divkit-appearance-interpolator":Kt||void 0,"--divkit-appearance-fade-start":Kt?cr:void 0,"--divkit-appearance-delay":Kt?`${pr}ms`:void 0,"--divkit-appearance-duration":Kt?`${Gt}ms`:void 0})},[Oe,yt,H,It,at,dt,qt,we,D,x,F,L,w,v,_,b,p,h,f,u,c,l,a,s,o,i,tr,Ut,zr,qr,ae,dr,Be,vt,ze,Et,Fe,Kt,cr,pr,Gt,ht,Dt,Nt,V,P,n,J,G,z,Te,pt,Me,Q,nt,Ge,je,Tt,ut,C,Qe,pe,Xe,hr]}class Ba extends Wr{constructor(r){super(),Hr(this,r,wg,bg,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const kg="divkit-ec408",Ag="divkit-fde92",Eg="divkit-800a9",jg="divkit-74c34",Cg="divkit-82c25",Sg="divkit-6ea46",Vg="divkit-96d7e",Ha={grid:kg,grid_halign_start:Ag,grid_halign_center:Eg,grid_halign_end:jg,grid_valign_start:Cg,grid_valign_center:Sg,grid_valign_end:Vg};function Wa(t){return t>0&&t<1}function Ua(t){return String(Math.ceil(t*1e3)/1e3)}function Ga(t,r,e){if(t.some(Wa)){const a=Math.max(...t.filter(Wa).map(l=>1/l));t=t.map(l=>l*a)}const n=t.every(Boolean);let i=0,o=0;const s=[];if(n){o=t.reduce((a,l)=>a+l,0);for(let a=0;a<e;++a){if(!r[a])continue;const l=r[a]/t[a]*o;l>i&&(i=l)}}for(let a=0;a<e;++a)i?s[a]=`minmax(${ke(i*t[a]/o)},${Ua(t[a])}fr)`:t[a]?s[a]=`${Ua(t[a])}fr`:s[a]="auto";return s.join(" ")}function Ya(t,r,e){const n=t.slice();return n[29]=r[e],n}function Ja(t){let r,e;return r=new oi({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&16&&(o.componentContext=n[29].componentContext),i[0]&16&&(o.layoutParams=n[29].layoutParams),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Ig(t){let r,e,n=sr(t[4]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Ja(Ya(t,n,s));const o=s=>re(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Ne()},l(s){for(let a=0;a<i.length;a+=1)i[a].l(s);r=Ne()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);ie(s,r,a),e=!0},p(s,a){if(a[0]&16){n=sr(s[4]);let l;for(l=0;l<n.length;l+=1){const c=Ya(s,n,l);i[l]?(i[l].p(c,a),U(i[l],1)):(i[l]=Ja(c),i[l].c(),U(i[l],1),i[l].m(r.parentNode,r))}for(lr(),l=n.length;l<i.length;l+=1)o(l);ar()}},i(s){if(!e){for(let a=0;a<n.length;a+=1)U(i[a]);e=!0}},o(s){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)re(i[a]);e=!1},d(s){s&&E(r),hn(i,s)}}}function Dg(t){let r,e;return r=new Cn({props:{cls:bt("grid",Ha,t[6]),componentContext:t[0],style:t[5],layoutParams:t[1],parentOf:t[2],replaceItems:t[11],$$slots:{default:[Ig]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&64&&(o.cls=bt("grid",Ha,n[6])),i[0]&1&&(o.componentContext=n[0]),i[0]&32&&(o.style=n[5]),i[0]&2&&(o.layoutParams=n[1]),i[0]&4&&(o.parentOf=n[2]),i[0]&16|i[1]&2&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Tg(t,r,e){let n,i,o,s,a,l,c,u,f,h=S,p=()=>(h(),h=N(a,Q=>e(23,f=Q)),a),b,_=S,v=()=>(_(),_=N(s,Q=>e(24,b=Q)),s),w,L=S,P=()=>(L(),L=N(z,Q=>e(25,w=Q)),z),V,F=S,x=()=>(F(),F=N(o,Q=>e(26,V=Q)),o);t.$$.on_destroy.push(()=>h()),t.$$.on_destroy.push(()=>_()),t.$$.on_destroy.push(()=>L()),t.$$.on_destroy.push(()=>F());let{componentContext:D}=r,{layoutParams:J=void 0}=r;const W=Yr(tn).direction;un(t,W,Q=>e(22,u=Q));let G=1,z,he,ye=[],Te=[],_e=[],be=[],pt=0,Ue="start",Re="start",Me=[];function Ze(){e(12,G=1),e(18,Ue="start"),e(19,Re="start")}function et(Q){e(0,D={...D,json:{...D.json,items:Q.filter(Vi)}})}return fn(()=>{Me.forEach(Q=>{Q.destroy()})}),t.$$set=Q=>{"componentContext"in Q&&e(0,D=Q.componentContext),"layoutParams"in Q&&e(1,J=Q.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&e(21,n=D.origJson),t.$$.dirty[0]&2097152&&n&&Ze(),t.$$.dirty[0]&1&&e(20,i=Array.isArray(D.json.items)&&D.json.items||[]),t.$$.dirty[0]&1&&x(e(9,o=D.getDerivedFromVars(D.json.column_count))),t.$$.dirty[0]&1&&v(e(8,s=D.getDerivedFromVars(D.json.content_alignment_vertical))),t.$$.dirty[0]&1&&p(e(7,a=D.getDerivedFromVars(D.json.content_alignment_horizontal))),t.$$.dirty[0]&67112960&&e(12,G=Kn(V,G)),t.$$.dirty[0]&1048581&&(Me.forEach(Q=>{Q.destroy()}),e(2,Me=i.map((Q,Ee)=>D.produceChildContext(Q,{path:Ee})))),t.$$.dirty[0]&5){let Q=[];Me.forEach(Ee=>{Q.push(D.getDerivedFromVars({rowSpan:Ee.json.row_span,columnSpan:Ee.json.column_span,width:Ee.json.width,height:Ee.json.height}))}),P(e(3,z=Zi(Q,Ee=>[...Ee])))}if(t.$$.dirty[0]&33681412){const Q={};let Ee=0,ge=0;e(13,ye=[]),e(14,Te=[]),e(15,_e=[]),e(16,be=[]),e(4,he=Me.map((nt,Y)=>{var te,it,ut,gt;const Se=w[Y],Ge=Math.min(G,Number(Se.columnSpan)||1),ne=Number(Se.rowSpan)||1,lt=((te=Se.width)==null?void 0:te.type)==="match_parent"?Number(Se.width.weight||1)/Ge:0,je=((it=Se.height)==null?void 0:it.type)==="match_parent"?Number(Se.height.weight||1)/ne:0,Ie=Ge===1&&((ut=Se.width)==null?void 0:ut.type)==="fixed"&&Se.width.value?Number(Se.width.value)/Ge:0,kt=ne===1&&((gt=Se.height)==null?void 0:gt.type)==="fixed"&&Se.height.value?Number(Se.height.value)/ne:0;for(;;){let qe=!0;e:for(let C=Ee;C<Ee+Ge;++C)for(let rt=ge;rt<ge+ne;++rt)if(Q[C+"_"+rt]){qe=!1;break e}if(qe)break;++Ee,Ee>G-Ge&&(Ee=0,++ge)}const Tt={x:Ee,y:ge,colSpan:Ge,rowSpan:ne};for(let qe=Ee;qe<Ee+Ge;++qe)for(let C=ge;C<ge+ne;++C)Q[qe+"_"+C]=!0,(!ye[qe]||ye[qe]<lt)&&e(13,ye[qe]=lt,ye),(!Te[C]||Te[C]<je)&&e(14,Te[C]=je,Te),(!_e[qe]||_e[qe]<Ie)&&e(15,_e[qe]=Ie,_e),(!be[C]||be[C]<kt)&&e(16,be[C]=kt,be);return{componentContext:nt,layoutParams:{gridArea:Tt}}})),e(17,pt=ge+1)}t.$$.dirty[0]&17039360&&e(18,Ue=zl(b,Ue)),t.$$.dirty[0]&13107200&&e(19,Re=Ol(f,u,Re)),t.$$.dirty[0]&786432&&e(6,l={valign:Ue,halign:Re}),t.$$.dirty[0]&258048&&e(5,c={"grid-template-columns":Ga(ye,_e,G),"grid-template-rows":Ga(Te,be,pt)})},[D,J,Me,z,he,c,l,a,s,o,W,et,G,ye,Te,_e,be,pt,Ue,Re,i,n,u,f,b,w,V]}class Fg extends Wr{constructor(r){super(),Hr(this,r,Tg,Dg,Ar,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Mg="divkit-0bfe5",Pg="divkit-2b11a",Ng="divkit-dbcd8",Og="divkit-6df4b",zg="divkit-47152",Lg="divkit-23231",Rg="divkit-b29e2",ri={gallery:Mg,gallery__scroller:Pg,gallery_scrollbar_none:Ng,gallery_orientation_horizontal:Og,gallery_orientation_vertical:zg,"gallery_scroll-snap":"divkit-e6acd","gallery__items-grid":"divkit-2d0b9",gallery__items:Lg,gallery__arrow:Rg,"gallery__arrow-icon-path":"divkit-9bb64"},Bg="divkit-ff821",Hg="divkit-baff3",Wg="divkit-70d07",Ug="divkit-da11c",Xn={arrow:Bg,arrow__icon:Hg,arrow_left:Wg,arrow_right:Ug};function Gg(t,r){return t==="start"||t==="center"||t==="end"?t:r}function Yg(t){const r=[];let e=t[0],n=1;for(let i=1;i<=t.length;i++)t[i]!==e?(r.push(n>1?`repeat(${n}, ${e})`:e),e=t[i],n=1):n++;return r.join(" ")}function Ni(t,r){let e=t%r;return e<0&&(e+=r),e}const{Boolean:vf}=bi;function qa(t,r,e){const n=t.slice();return n[80]=r[e],n[81]=r,n[82]=e,n}function Ka(t,r,e){const n=t.slice();return n[83]=r[e],n}function Xa(t){let r;return{c(){r=He("div"),this.h()},l(e){r=Je(e,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",ri.gallery__gap),B(r,"width",t[4]==="horizontal"?t[12]:void 0),B(r,"height",t[4]!=="horizontal"?t[12]:void 0)},m(e,n){ie(e,r,n)},p(e,n){n[0]&4112&&B(r,"width",e[4]==="horizontal"?e[12]:void 0),n[0]&4112&&B(r,"height",e[4]!=="horizontal"?e[12]:void 0)},d(e){e&&E(r)}}}function Za(t){let r,e,n,i=t[83].hasGapBefore&&Xa(t);return e=new oi({props:{componentContext:t[83].componentContext,layoutParams:t[6]}}),{c(){i&&i.c(),r=yr(),Yt(e.$$.fragment)},l(o){i&&i.l(o),r=vr(o),Zt(e.$$.fragment,o)},m(o,s){i&&i.m(o,s),ie(o,r,s),Ht(e,o,s),n=!0},p(o,s){o[83].hasGapBefore?i?i.p(o,s):(i=Xa(o),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const a={};s[0]&262144&&(a.componentContext=o[83].componentContext),s[0]&64&&(a.layoutParams=o[6]),e.$set(a)},i(o){n||(U(e.$$.fragment,o),n=!0)},o(o){re(e.$$.fragment,o),n=!1},d(o){o&&E(r),i&&i.d(o),Wt(e,o)}}}function Qa(t){let r,e,n,i,o,s,a=t[82],l,c=sr(t[80]),u=[];for(let b=0;b<c.length;b+=1)u[b]=Za(Ka(t,c,b));const f=b=>re(u[b],1,1,()=>{u[b]=null}),h=()=>t[67](r,a),p=()=>t[67](null,a);return{c(){r=He("div");for(let b=0;b<u.length;b+=1)u[b].c();e=yr(),n=He("div"),o=yr(),this.h()},l(b){r=Je(b,"DIV",{class:!0,style:!0});var _=De(r);for(let v=0;v<u.length;v+=1)u[v].l(_);e=vr(_),n=Je(_,"DIV",{style:!0}),De(n).forEach(E),o=vr(_),_.forEach(E),this.h()},h(){m(n,"style",i=Vt(t[13])),m(r,"class",ri.gallery__items),m(r,"style",s=Vt(t[16]))},m(b,_){ie(b,r,_);for(let v=0;v<u.length;v+=1)u[v]&&u[v].m(r,null);St(r,e),St(r,n),St(r,o),h(),l=!0},p(b,_){if(t=b,_[0]&266320){c=sr(t[80]);let v;for(v=0;v<c.length;v+=1){const w=Ka(t,c,v);u[v]?(u[v].p(w,_),U(u[v],1)):(u[v]=Za(w),u[v].c(),U(u[v],1),u[v].m(r,e))}for(lr(),v=c.length;v<u.length;v+=1)f(v);ar()}(!l||_[0]&8192&&i!==(i=Vt(t[13])))&&m(n,"style",i),(!l||_[0]&65536&&s!==(s=Vt(t[16])))&&m(r,"style",s),a!==t[82]&&(p(),a=t[82],h())},i(b){if(!l){for(let _=0;_<c.length;_+=1)U(u[_]);l=!0}},o(b){u=u.filter(vf);for(let _=0;_<u.length;_+=1)re(u[_]);l=!1},d(b){b&&E(r),hn(u,b),p()}}}function xa(t){let r,e,n=t[10]&&t[8]&&$a(t),i=t[11]&&t[8]&&ec(t);return{c(){n&&n.c(),r=yr(),i&&i.c(),e=Ne()},l(o){n&&n.l(o),r=vr(o),i&&i.l(o),e=Ne()},m(o,s){n&&n.m(o,s),ie(o,r,s),i&&i.m(o,s),ie(o,e,s)},p(o,s){o[10]&&o[8]?n?n.p(o,s):(n=$a(o),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null),o[11]&&o[8]?i?i.p(o,s):(i=ec(o),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(o){o&&(E(r),E(e)),n&&n.d(o),i&&i.d(o)}}}function $a(t){let r,e,n,i=!t[32]&&Jg();return{c(){r=He("div"),i&&i.c(),this.h()},l(o){r=Je(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[32]||`${ri.gallery__arrow} ${Xn.arrow} ${Xn.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ye(r,"click",t[70]),e=!0)},p:S,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function Jg(t){let r,e;return{c(){r=en("svg"),e=en("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",ri["gallery__arrow-icon-path"]),m(e,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),St(r,e)},d(n){n&&E(r)}}}function ec(t){let r,e,n,i=!t[33]&&qg();return{c(){r=He("div"),i&&i.c(),this.h()},l(o){r=Je(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[33]||`${ri.gallery__arrow} ${Xn.arrow} ${Xn.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ye(r,"click",t[71]),e=!0)},p:S,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function qg(t){let r,e;return{c(){r=en("svg"),e=en("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",ri["gallery__arrow-icon-path"]),m(e,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),St(r,e)},d(n){n&&E(r)}}}function Kg(t){let r,e,n,i,o,s,a,l,c,u,f=sr(t[18]),h=[];for(let _=0;_<f.length;_+=1)h[_]=Qa(qa(t,f,_));const p=_=>re(h[_],1,1,()=>{h[_]=null});let b=t[4]==="horizontal"&&xa(t);return{c(){r=He("div"),e=He("div");for(let _=0;_<h.length;_+=1)h[_].c();s=yr(),b&&b.c(),a=Ne(),this.h()},l(_){r=Je(_,"DIV",{class:!0,style:!0});var v=De(r);e=Je(v,"DIV",{class:!0,style:!0});var w=De(e);for(let L=0;L<h.length;L+=1)h[L].l(w);w.forEach(E),v.forEach(E),s=vr(_),b&&b.l(_),a=Ne(),this.h()},h(){m(e,"class",ri["gallery__items-grid"]),m(e,"style",n=Vt(t[17])),m(r,"class",i=ri.gallery__scroller+" "+(t[30]?nr["root_restrict-scroll"]:"")),m(r,"style",o=Vt(t[5]))},m(_,v){ie(_,r,v),St(r,e);for(let w=0;w<h.length;w+=1)h[w]&&h[w].m(e,null);t[68](e),t[69](r),ie(_,s,v),b&&b.m(_,v),ie(_,a,v),l=!0,c||(u=Ye(r,"scroll",function(){Vr(t[8]?t[36]:null)&&(t[8]?t[36]:null).apply(this,arguments)}),c=!0)},p(_,v){if(t=_,v[0]&340560){f=sr(t[18]);let w;for(w=0;w<f.length;w+=1){const L=qa(t,f,w);h[w]?(h[w].p(L,v),U(h[w],1)):(h[w]=Qa(L),h[w].c(),U(h[w],1),h[w].m(e,null))}for(lr(),w=f.length;w<h.length;w+=1)p(w);ar()}(!l||v[0]&131072&&n!==(n=Vt(t[17])))&&m(e,"style",n),(!l||v[0]&1073741824&&i!==(i=ri.gallery__scroller+" "+(t[30]?nr["root_restrict-scroll"]:"")))&&m(r,"class",i),(!l||v[0]&32&&o!==(o=Vt(t[5])))&&m(r,"style",o),t[4]==="horizontal"?b?b.p(t,v):(b=xa(t),b.c(),b.m(a.parentNode,a)):b&&(b.d(1),b=null)},i(_){if(!l){for(let v=0;v<f.length;v+=1)U(h[v]);l=!0}},o(_){h=h.filter(vf);for(let v=0;v<h.length;v+=1)re(h[v]);l=!1},d(_){_&&(E(r),E(s),E(a)),hn(h,_),t[68](null),t[69](null),b&&b.d(_),c=!1,u()}}}function Xg(t){let r,e,n,i;return r=new Cn({props:{cls:bt("gallery",ri,t[15]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[7],replaceItems:t[34],$$slots:{default:[Kg]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(o){Zt(r.$$.fragment,o)},m(o,s){Ht(r,o,s),e=!0,n||(i=Ye(window,"resize",function(){Vr(t[8]?t[37]:null)&&(t[8]?t[37]:null).apply(this,arguments)}),n=!0)},p(o,s){t=o;const a={};s[0]&32768&&(a.cls=bt("gallery",ri,t[15])),s[0]&1&&(a.componentContext=t[0]),s[0]&2&&(a.layoutParams=t[1]),s[0]&128&&(a.parentOf=t[7]),s[0]&1074216828|s[2]&16777216&&(a.$$scope={dirty:s,ctx:t}),r.$set(a)},i(o){e||(U(r.$$.fragment,o),e=!0)},o(o){re(r.$$.fragment,o),e=!1},d(o){Wt(r,o),n=!1,i()}}}function Zg(t,r,e){let n=0,i=[],o=[];for(let s=0;s<t.length;++s)i[n]||(i[n]=[]),i[n].push({index:s,hasGapBefore:o[n]&&r[s].visibility!=="gone",componentContext:t[s]}),!o[n]&&r[s].visibility!=="gone"&&(o[n]=!0),++n>=e&&(n=0);return i}function Qg(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J=S,Z=()=>(J(),J=N(_,Ve=>e(55,D=Ve)),_),W,G=S,z=()=>(G(),G=N(b,Ve=>e(56,W=Ve)),b),he,ye=S,Te=()=>(ye(),ye=N(h,Ve=>e(57,he=Ve)),h),_e,be=S,pt=()=>(be(),be=N(Et,Ve=>e(58,_e=Ve)),Et),Ue,Re=S,Me=()=>(Re(),Re=N(f,Ve=>e(59,Ue=Ve)),f),Ze,et=S,Q=()=>(et(),et=N(u,Ve=>e(60,Ze=Ve)),u),Ee,ge=S,nt=()=>(ge(),ge=N(c,Ve=>e(61,Ee=Ve)),c),Y,Se=S,Ge=()=>(Se(),Se=N(l,Ve=>e(62,Y=Ve)),l),ne,lt=S,je=()=>(lt(),lt=N(a,Ve=>e(63,ne=Ve)),a),Ie,kt=S,Tt=()=>(kt(),kt=N(s,Ve=>e(64,Ie=Ve)),s),te,it,ut=S,gt=()=>(ut(),ut=N(o,Ve=>e(66,it=Ve)),o),qe,C=S,rt=()=>(C(),C=N(p,Ve=>e(30,qe=Ve)),p);t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>C());let{componentContext:le}=r,{layoutParams:Qe=void 0}=r;const At=Yr(tn),fe=At.direction;un(t,fe,Ve=>e(54,x=Ve));let pe,ft=[],$e=!1,tr=!1,Ot=null,Qt,Oe=!1;const yt=At.getCustomization("galleryLeftClass"),Jt=At.getCustomization("galleryRightClass");let Ut,qt=1,H="horizontal",ae="start",dr,we=8,It,Be,vt="",ze,at=[],Et,Fe={},dt=!1,Kt={},cr=0;function pr(){e(42,qt=1),e(4,H="horizontal"),e(43,ae="start"),e(44,we=8),e(47,vt="")}function Gt(Ve){e(0,le={...le,json:{...le.json,items:Ve.filter(Vi)}})}const ht=At.isDesktop;un(t,ht,Ve=>e(65,te=Ve));let Dt=[];function Nt(){if(!pe)return;let Ve=pe.scrollLeft;x==="rtl"&&(Ve*=-1);const Lt=pe.scrollWidth,_r=pe.offsetWidth;x==="ltr"?(e(10,$e=Ve>2),e(11,tr=Ve+_r<Lt-2)):(e(11,tr=Ve>2),e(10,$e=Ve+_r<Lt-2))}const rr=Rs(Nt,50);function ir(Ve){pe.scroll({left:pe.scrollLeft+pe.offsetWidth*.75*(Ve==="right"?1:-1),behavior:"smooth"})}function Er(){let Ve=[],Lt=ft[0].children.length;for(let _r=0;_r<Lt;_r+=2)for(let xe=0;xe<qt;++xe){const Ft=ft[xe].children[_r];Ft&&Ve.push(Ft)}return Ve}function zr(Ve,Lt="smooth"){const xe=H==="horizontal"?"left":"top";pe.scroll({[xe]:Ve,behavior:Lt})}function qr(Ve,Lt,_r="smooth"){const xe=H==="horizontal",Ft=xe?"offsetLeft":"offsetTop",Le=Ve[Lt];if(Le){let mt;if(x==="ltr"||!xe)mt=Le[Ft]+.01-we/2;else{const ct=pe.offsetWidth;mt=Le[Ft]+Le.offsetWidth+.01-we/2-ct}zr(mt,_r)}}function Xe(Ve,Lt){return H==="horizontal"?Lt.right>Ve.left&&Ve.right>Lt.left:Lt.bottom>Ve.top&&Ve.bottom>Lt.top}function hr(Ve,Lt){return H==="horizontal"?Lt.left>=Ve.left&&Lt.right<=Ve.right:Lt.top>=Ve.top&&Lt.bottom<=Ve.bottom}function Ae(Ve){const Lt=Er(),_r=pe.getBoundingClientRect(),xe=Lt.findIndex(mt=>hr(_r,mt.getBoundingClientRect()));if(xe!==-1)return xe;const Ft=Lt.map(mt=>Xe(_r,mt.getBoundingClientRect())),Le=Ft.findIndex(Boolean);return Le!==-1?Ve==="prev"&&Ft.filter(Boolean).length===2?Le+1:Le:Ve==="prev"?1:Lt.length-2}ii(()=>{if(e(40,Oe=!0),Nt(),cr){const Ve=Er();qr(Ve,cr,"auto")}}),fn(()=>{e(40,Oe=!1),Dt.forEach(Ve=>{Ve.destroy()}),Ut&&!le.fakeElement&&(At.unregisterInstance(Ut),e(41,Ut=void 0))});function K(Ve,Lt){Or[Ve?"unshift":"push"](()=>{ft[Lt]=Ve,e(9,ft)})}function jr(Ve){Or[Ve?"unshift":"push"](()=>{Qt=Ve,e(3,Qt)})}function Cr(Ve){Or[Ve?"unshift":"push"](()=>{pe=Ve,e(2,pe)})}const zt=()=>ir("left"),$r=()=>ir("right");return t.$$set=Ve=>{"componentContext"in Ve&&e(0,le=Ve.componentContext),"layoutParams"in Ve&&e(1,Qe=Ve.layoutParams)},t.$$.update=()=>{var Ve,Lt,_r,xe,Ft,Le;if(t.$$.dirty[0]&1&&e(53,n=le.origJson),t.$$.dirty[1]&4194304&&n&&pr(),t.$$.dirty[0]&1&&e(52,i=Array.isArray(le.json.items)&&le.json.items||[]),t.$$.dirty[0]&1&>(e(29,o=typeof((Ve=le.json.item_builder)==null?void 0:Ve.data)=="string"?le.getDerivedFromVars((Lt=le.json.item_builder)==null?void 0:Lt.data,void 0,!0):(_r=le.json.item_builder)!=null&&_r.data?qi(le.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&Tt(e(28,s=le.getDerivedFromVars(le.json.column_count))),t.$$.dirty[0]&1&&je(e(27,a=le.getDerivedFromVars(le.json.orientation))),t.$$.dirty[0]&1&&Ge(e(26,l=le.getDerivedFromVars(le.json.cross_content_alignment))),t.$$.dirty[0]&1&&nt(e(25,c=le.getDerivedFromVars(le.json.item_spacing))),t.$$.dirty[0]&1&&Q(e(24,u=le.getDerivedFromVars(le.json.cross_spacing))),t.$$.dirty[0]&1&&Me(e(23,f=le.getDerivedFromVars(le.json.paddings))),t.$$.dirty[0]&1&&Te(e(22,h=le.getDerivedFromVars(le.json.scroll_mode))),t.$$.dirty[0]&1&&rt(e(21,p=le.getDerivedFromVars(le.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&z(e(20,b=le.getDerivedFromVars(le.json.scrollbar))),t.$$.dirty[0]&1&&Z(e(19,_=le.getDerivedFromVars(le.json.default_item))),t.$$.dirty[0]&129|t.$$.dirty[1]&2097152|t.$$.dirty[2]&16){let mt=[];if(le.json.item_builder&&Array.isArray(it)&&Array.isArray(le.json.item_builder.prototypes)){const ct=le.json.item_builder;mt=Ll(it,At,le,ct)}else mt=(Array.isArray(i)&&i||[]).map(ct=>({div:ct}));Dt.forEach(ct=>{ct.destroy()}),e(7,Dt=mt.map((ct,Ct)=>le.produceChildContext(ct.div,{path:Ct,variables:ct.vars,id:ct.id})))}if(t.$$.dirty[1]&512|t.$$.dirty[2]&8&&e(8,v=te&&Oe),t.$$.dirty[0]&264|t.$$.dirty[1]&256&&(v?typeof ResizeObserver<"u"&&(e(39,Ot=new ResizeObserver(()=>{rr()})),Ot.observe(Qt)):Ot&&(Ot.disconnect(),e(39,Ot=null))),t.$$.dirty[1]&2048|t.$$.dirty[2]&4&&e(42,qt=Kn(Ie,qt)),t.$$.dirty[0]&16|t.$$.dirty[2]&2&&e(4,H=Rl(ne,H)),t.$$.dirty[1]&4096|t.$$.dirty[2]&1&&e(43,ae=Gg(Y,ae)),t.$$.dirty[1]&1073750016&&(e(44,we=Xr(Ee,we)),e(12,dr=ke(we))),t.$$.dirty[1]&536911872&&(e(46,Be=Xr(Ze,we)),e(45,It=ke(Be))),t.$$.dirty[0]&16|t.$$.dirty[1]&276889600){e(47,vt=Io(Ue,x,vt));const mt=H==="horizontal"?(Ft=(xe=Ue==null?void 0:Ue.end)!=null?xe:Ue==null?void 0:Ue[x==="ltr"?"right":"left"])!=null?Ft:0:(Le=Ue==null?void 0:Ue.bottom)!=null?Le:0,ct=ke(mt);e(13,ze={width:H==="horizontal"?ct:"1px",height:H==="horizontal"?"1px":ct,"margin-right":H==="horizontal"&&x==="ltr"?"-"+ct:void 0,"margin-left":H==="horizontal"&&x==="rtl"?"-"+ct:void 0,"margin-bottom":H==="vertical"?"-"+ct:void 0})}if(t.$$.dirty[0]&16&&e(51,w=H==="horizontal"?"grid-template-columns":"grid-template-rows"),t.$$.dirty[0]&145){let mt=[];Dt.forEach(ct=>{const Ct=H==="horizontal"?"width":"height";mt.push(le.getDerivedFromVars({size:ct.json[Ct],visibility:ct.json.visibility}))}),pt(e(14,Et=Zi(mt,ct=>[...ct])))}if(t.$$.dirty[0]&128|t.$$.dirty[1]&134219776&&e(18,L=Zg(Dt,_e,qt)),t.$$.dirty[0]&16|t.$$.dirty[1]&134350848&&(e(48,at=[]),qt>1||_e.forEach((mt,ct)=>{var Ct;mt.visibility!=="gone"&&(!mt.size&&H==="horizontal"||((Ct=mt.size)==null?void 0:Ct.type)==="match_parent"?at.push("100%"):at.push("max-content"),ct+1<_e.length&&at.push("auto"))}),at.push("auto")),t.$$.dirty[0]&112|t.$$.dirty[1]&67123200){const mt={};let ct={};if(e(49,dt=!1),H==="horizontal"?ct.parentVAlign=ae:ct.parentHAlign=ae,he==="paging"){e(49,dt=!0),ct.scrollSnap="start";const Ct=H==="horizontal"?"scroll-padding-left":"scroll-padding-top";mt[Ct]=ke(we/2)}qt===1&&(ct.parentLayoutOrientation=H),e(5,Fe=Pi(mt,Fe)),e(6,Kt=Pi(ct,Kt))}t.$$.dirty[1]&81920&&e(17,P={padding:vt,"grid-gap":It}),t.$$.dirty[1]&1179648&&e(16,V={[w]:Yg(at)}),t.$$.dirty[0]&16|t.$$.dirty[1]&33816576&&e(15,F={orientation:H,"scroll-snap":dt,scrollbar:W==="auto"?"auto":"none"}),t.$$.dirty[1]&17301504&&e(50,cr=Xr(D,cr)),t.$$.dirty[0]&1&&le.json&&rr(),t.$$.dirty[0]&21|t.$$.dirty[1]&8389632&&le.json&&(Ut&&(At.unregisterInstance(Ut),e(41,Ut=void 0)),le.id&&!le.fakeElement&&(e(41,Ut=le.id),At.registerInstance(Ut,{setCurrentItem(mt){const ct=Er();if(mt<0||mt>ct.length-1)throw new Error('Item is out of range in "set-current-item" action');qr(ct,mt)},setPreviousItem(mt,ct){const Ct=Ae("prev"),Xt=Er();let T=Ct-mt;T<0&&(T=ct==="ring"?Ni(T,Xt.length):0),qr(Xt,T)},setNextItem(mt,ct){const Ct=H==="horizontal",Xt=x==="ltr"||!Ct?1:-1,T=Ct?pe.scrollLeft*Xt+pe.offsetWidth===pe.scrollWidth:pe.scrollTop+pe.offsetHeight===pe.scrollHeight,ot=Er();if(T&&ct==="ring"){qr(ot,0);return}let d=Ae("next")+mt;d>ot.length-1&&(d=ct==="ring"?Ni(d,ot.length):ot.length-1),qr(ot,d)},scrollToStart(){zr(0)},scrollToEnd(){zr(x==="ltr"||H!=="horizontal"?1e6:-1e6)},scrollBackward(mt,ct){const Ct=H==="horizontal",Xt=x==="ltr"||!Ct?1:-1,T=Ct?pe.scrollLeft:pe.scrollTop,ot=Ct?pe.scrollWidth-pe.offsetWidth:pe.scrollHeight-pe.offsetHeight;let de=T*Xt-mt;de<0&&(ct==="clamp"?de=0:ct==="ring"&&(de=Ni(de,ot))),zr(de*Xt)},scrollForward(mt,ct){const Ct=H==="horizontal",Xt=x==="ltr"||!Ct?1:-1,T=Ct?pe.scrollLeft:pe.scrollTop,ot=Ct?pe.scrollWidth-pe.offsetWidth:pe.scrollHeight-pe.offsetHeight;let de=T*Xt+mt;de>ot&&(ct==="clamp"?de=ot:ct==="ring"&&(de=Ni(de,ot))),zr(de*Xt)},scrollToPosition(mt){zr(x==="ltr"||H!=="horizontal"?mt:-mt)}})))},[le,Qe,pe,Qt,H,Fe,Kt,Dt,v,ft,$e,tr,dr,ze,Et,F,V,P,L,_,b,p,h,f,u,c,l,a,s,o,qe,fe,yt,Jt,Gt,ht,Nt,rr,ir,Ot,Oe,Ut,qt,ae,we,It,Be,vt,at,dt,cr,w,i,n,x,D,W,he,_e,Ue,Ze,Ee,Y,ne,Ie,te,it,K,jr,Cr,zt,$r]}class xg extends Wr{constructor(r){super(),Hr(this,r,Qg,Xg,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const $g="divkit-bf0ea",ep="divkit-8a75d",tp="divkit-26f55",rp="divkit-a22f9",np="divkit-4108d",ip="divkit-4f7ae",op="divkit-daded",sp="divkit-5c791",lp="divkit-763f3",ap="divkit-c3cc6",cp="divkit-4ca7a",up="divkit-0c7b1",fp="divkit-41351",dp="divkit-37bf2",Fn={outer:$g,tabs:ep,tabs__list:tp,tabs__item:rp,tabs__item_selected:np,tabs__item_actionable:ip,tabs__panels:op,tabs__swiper:sp,tabs__swiper_animated:lp,tabs__swiper_inited:ap,tabs__panel:cp,tabs__panel_visible:up,"tabs_height-parent_yes":"divkit-ceaff",tabs__separator:fp,tabs__delimitier:dp};function hp(t,r){var n,i;if(!t||!t.image_url||typeof t.image_url!="string")return r;const e={url:t.image_url};return((n=t.width)==null?void 0:n.type)==="fixed"&&Pn(t.width.value)&&(e.width=t.width.value),((i=t.height)==null?void 0:i.type)==="fixed"&&Pn(t.height.value)&&(e.height=t.height.value),e}const wf=37,kf=39,Af=36,Ef=35;function _p(t,r,e,n){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let o=0;o<i.length;++o)if(i[o]&&!Mn(i[o]))return n;return xo(t,r,e)}function tc(t){const r=t.touches[0],e=r.clientX||r.pageX,n=r.clientY||r.pageY;return{x:e,y:n}}function gp(t){let r,e;return r=new oi({props:{componentContext:t[0],layoutParams:t[1]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,[i]){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function pp(t,r,e){let{componentContext:n}=r,{layoutParams:i=void 0}=r,{enabled:o}=r;const s=hi(o);return Yi(Pl,{isEnabled:s}),t.$$set=a=>{"componentContext"in a&&e(0,n=a.componentContext),"layoutParams"in a&&e(1,i=a.layoutParams),"enabled"in a&&e(2,o=a.enabled)},t.$$.update=()=>{t.$$.dirty&4&&s.set(o)},[n,i,o]}class mp extends Wr{constructor(r){super(),Hr(this,r,pp,gp,Ar,{componentContext:0,layoutParams:1,enabled:2})}}const{Boolean:rc}=bi;function nc(t,r,e){const n=t.slice();n[94]=r[e];const i=n[94].index;n[95]=i;const o=n[30][n[95]];return n[96]=o,n}function ic(t,r,e){const n=t.slice();n[94]=r[e];const i=n[94].index;n[95]=i;const o=n[95]===n[16];return n[99]=o,n}function bp(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function yp(t){let r,e;return r=new Cn({props:{cls:bt("tabs",Fn,t[23]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[44],parentOfSimpleMode:!0,replaceItems:t[49],$$slots:{default:[wp]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&8388608&&(o.cls=bt("tabs",Fn,n[23])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[1]&8192&&(o.parentOf=n[44]),i[0]&2139095033|i[1]&16391|i[3]&512&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function oc(t){let r,e;return{c(){r=He("img"),this.h()},l(n){r=Je(n,"IMG",{class:!0,alt:!0,loading:!0,decoding:!0,src:!0}),this.h()},h(){m(r,"class",Fn.tabs__delimitier),m(r,"alt",""),m(r,"loading","lazy"),m(r,"decoding","async"),Wn(r.src,e=t[15].url)||m(r,"src",e),B(r,"width",t[15].width?ke(t[15].width):void 0),B(r,"height",t[15].height?ke(t[15].height):void 0)},m(n,i){ie(n,r,i)},p(n,i){i[0]&32768&&!Wn(r.src,e=n[15].url)&&m(r,"src",e),i[0]&32768&&B(r,"width",n[15].width?ke(n[15].width):void 0),i[0]&32768&&B(r,"height",n[15].height?ke(n[15].height):void 0)},d(n){n&&E(r)}}}function vp(t){let r=t[94].title+"",e;return{c(){e=Zn(r)},l(n){e=yi(n,r)},m(n,i){ie(n,e,i)},p(n,i){i[0]&131072&&r!==(r=n[94].title+"")&&Oi(e,r)},d(n){n&&E(e)}}}function sc(t){let r,e,n,i=t[15]&&t[95]>0&&oc(t);function o(...s){return t[70](t[95],...s)}return e=new Ls({props:{componentContext:t[0],cls:bt("tabs__item",Fn,{selected:t[99],actionable:!!t[94].title_click_action}),actions:t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(Tn):[],attrs:{id:`${t[47]}-tab-${t[95]}`,"aria-controls":`${t[47]}-panel-${t[95]}`,role:"tab",tabindex:t[99]&&!t[0].fakeElement?t[94].title_click_action?void 0:"0":"-1","aria-selected":t[99]?"true":"false"},customAction:t[0].fakeElement?null:o,$$slots:{default:[vp]},$$scope:{ctx:t}}}),{c(){i&&i.c(),r=yr(),Yt(e.$$.fragment)},l(s){i&&i.l(s),r=vr(s),Zt(e.$$.fragment,s)},m(s,a){i&&i.m(s,a),ie(s,r,a),Ht(e,s,a),n=!0},p(s,a){t=s,t[15]&&t[95]>0?i?i.p(t,a):(i=oc(t),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null);const l={};a[0]&1&&(l.componentContext=t[0]),a[0]&196608&&(l.cls=bt("tabs__item",Fn,{selected:t[99],actionable:!!t[94].title_click_action})),a[0]&131073&&(l.actions=t[94].title_click_action&&!t[0].fakeElement?[t[94].title_click_action].filter(Tn):[]),a[0]&196609&&(l.attrs={id:`${t[47]}-tab-${t[95]}`,"aria-controls":`${t[47]}-panel-${t[95]}`,role:"tab",tabindex:t[99]&&!t[0].fakeElement?t[94].title_click_action?void 0:"0":"-1","aria-selected":t[99]?"true":"false"}),a[0]&131073&&(l.customAction=t[0].fakeElement?null:o),a[0]&131072|a[3]&512&&(l.$$scope={dirty:a,ctx:t}),e.$set(l)},i(s){n||(U(e.$$.fragment,s),n=!0)},o(s){re(e.$$.fragment,s),n=!1},d(s){s&&E(r),i&&i.d(s),Wt(e,s)}}}function lc(t){let r,e;return{c(){r=He("div"),this.h()},l(n){r=Je(n,"DIV",{class:!0,style:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Fn.tabs__separator),m(r,"style",e=Vt(t[33]))},m(n,i){ie(n,r,i)},p(n,i){i[1]&4&&e!==(e=Vt(n[33]))&&m(r,"style",e)},d(n){n&&E(r)}}}function ac(t){let r,e;return r=new mp({props:{componentContext:t[96],layoutParams:t[3],enabled:t[95]===t[16]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1073872896&&(o.componentContext=n[96]),i[0]&8&&(o.layoutParams=n[3]),i[0]&196608&&(o.enabled=n[95]===n[16]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function cc(t){let r,e,n,i,o,s,a=t[96]&&ac(t);return{c(){r=He("div"),a&&a.c(),e=yr(),this.h()},l(l){r=Je(l,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var c=De(r);a&&a.l(c),e=vr(c),c.forEach(E),this.h()},h(){m(r,"class",n=bt("tabs__panel",Fn,{visible:t[31][t[95]]})),m(r,"role","tabpanel"),m(r,"id",i=t[47]+"-panel-"+t[95]),m(r,"aria-labelledby",o=t[47]+"-tab-"+t[95]),B(r,"left",t[95]*100+"%")},m(l,c){ie(l,r,c),a&&a.m(r,null),St(r,e),s=!0},p(l,c){l[96]?a?(a.p(l,c),c[0]&1073872896&&U(a,1)):(a=ac(l),a.c(),U(a,1),a.m(r,e)):a&&(lr(),re(a,1,1,()=>{a=null}),ar()),(!s||c[0]&131072|c[1]&1&&n!==(n=bt("tabs__panel",Fn,{visible:l[31][l[95]]})))&&m(r,"class",n),(!s||c[0]&131072&&i!==(i=l[47]+"-panel-"+l[95]))&&m(r,"id",i),(!s||c[0]&131072&&o!==(o=l[47]+"-tab-"+l[95]))&&m(r,"aria-labelledby",o),(!s||c[0]&131072)&&B(r,"left",l[95]*100+"%")},i(l){s||(U(a),s=!0)},o(l){re(a),s=!1},d(l){l&&E(r),a&&a.d()}}}function wp(t){let r,e,n,i,o,s,a,l,c,u,f,h=sr(t[17]),p=[];for(let P=0;P<h.length;P+=1)p[P]=sc(ic(t,h,P));const b=P=>re(p[P],1,1,()=>{p[P]=null});let _=t[19]&&lc(t),v=sr(t[17]),w=[];for(let P=0;P<v.length;P+=1)w[P]=cc(nc(t,v,P));const L=P=>re(w[P],1,1,()=>{w[P]=null});return{c(){r=He("div");for(let P=0;P<p.length;P+=1)p[P].c();n=yr(),_&&_.c(),i=yr(),o=He("div"),s=He("div");for(let P=0;P<w.length;P+=1)w[P].c();this.h()},l(P){r=Je(P,"DIV",{class:!0,role:!0});var V=De(r);for(let D=0;D<p.length;D+=1)p[D].l(V);V.forEach(E),n=vr(P),_&&_.l(P),i=vr(P),o=Je(P,"DIV",{class:!0});var F=De(o);s=Je(F,"DIV",{class:!0});var x=De(s);for(let D=0;D<w.length;D+=1)w[D].l(x);x.forEach(E),F.forEach(E),this.h()},h(){m(r,"class",e=Fn.tabs__list+" "+(t[45]?nr["root_restrict-scroll"]:"")),m(r,"role","tablist"),B(r,"--divkit-tabs-title-padding",t[14]?_i(t[14],t[18]):""),B(r,"--divkit-tabs-font-size",ke(t[4])),B(r,"--divkit-tabs-paddings",t[5]),B(r,"--divkit-tabs-line-height",t[24]),B(r,"--divkit-tabs-letter-spacing",t[25]),B(r,"--divkit-tabs-active-font-weight",t[7]||""),B(r,"--divkit-tabs-inactive-font-weight",t[8]||""),B(r,"--divkit-tabs-active-font-family",t[26]||""),B(r,"--divkit-tabs-inactive-font-family",t[27]||""),B(r,"--divkit-tabs-active-text-color",t[9]),B(r,"--divkit-tabs-inactive-text-color",t[10]),B(r,"--divkit-tabs-active-background-color",t[11]),B(r,"--divkit-tabs-inactive-background-color",t[12]),B(r,"--divkit-tabs-border-radius",t[6]),B(r,"--divkit-tabs-items-spacing",t[13]?En(t[13]*10/t[4]):""),m(s,"class",a=bt("tabs__swiper",Fn,{inited:t[28],animated:t[29]})),m(o,"class",l=Fn.tabs__panels+" "+(t[45]?nr["root_restrict-scroll"]:""))},m(P,V){ie(P,r,V);for(let F=0;F<p.length;F+=1)p[F]&&p[F].m(r,null);t[71](r),ie(P,n,V),_&&_.m(P,V),ie(P,i,V),ie(P,o,V),St(o,s);for(let F=0;F<w.length;F+=1)w[F]&&w[F].m(s,null);t[72](s),t[73](o),c=!0,u||(f=[Ye(r,"keydown",t[51]),Ye(o,"touchstart",function(){Vr(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)}),Ye(o,"touchmove",function(){Vr(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)}),Ye(o,"touchend",function(){Vr(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)}),Ye(o,"touchcancel",function(){Vr(t[32]?t[54]:void 0)&&(t[32]?t[54]:void 0).apply(this,arguments)})],u=!0)},p(P,V){if(t=P,V[0]&229377|V[1]&589824){h=sr(t[17]);let F;for(F=0;F<h.length;F+=1){const x=ic(t,h,F);p[F]?(p[F].p(x,V),U(p[F],1)):(p[F]=sc(x),p[F].c(),U(p[F],1),p[F].m(r,null))}for(lr(),F=h.length;F<p.length;F+=1)b(F);ar()}if((!c||V[1]&16384&&e!==(e=Fn.tabs__list+" "+(t[45]?nr["root_restrict-scroll"]:"")))&&m(r,"class",e),V[0]&278528&&B(r,"--divkit-tabs-title-padding",t[14]?_i(t[14],t[18]):""),V[0]&16&&B(r,"--divkit-tabs-font-size",ke(t[4])),V[0]&32&&B(r,"--divkit-tabs-paddings",t[5]),V[0]&16777216&&B(r,"--divkit-tabs-line-height",t[24]),V[0]&33554432&&B(r,"--divkit-tabs-letter-spacing",t[25]),V[0]&128&&B(r,"--divkit-tabs-active-font-weight",t[7]||""),V[0]&256&&B(r,"--divkit-tabs-inactive-font-weight",t[8]||""),V[0]&67108864&&B(r,"--divkit-tabs-active-font-family",t[26]||""),V[0]&134217728&&B(r,"--divkit-tabs-inactive-font-family",t[27]||""),V[0]&512&&B(r,"--divkit-tabs-active-text-color",t[9]),V[0]&1024&&B(r,"--divkit-tabs-inactive-text-color",t[10]),V[0]&2048&&B(r,"--divkit-tabs-active-background-color",t[11]),V[0]&4096&&B(r,"--divkit-tabs-inactive-background-color",t[12]),V[0]&64&&B(r,"--divkit-tabs-border-radius",t[6]),V[0]&8208&&B(r,"--divkit-tabs-items-spacing",t[13]?En(t[13]*10/t[4]):""),t[19]?_?_.p(t,V):(_=lc(t),_.c(),_.m(i.parentNode,i)):_&&(_.d(1),_=null),V[0]&1073938440|V[1]&65537){v=sr(t[17]);let F;for(F=0;F<v.length;F+=1){const x=nc(t,v,F);w[F]?(w[F].p(x,V),U(w[F],1)):(w[F]=cc(x),w[F].c(),U(w[F],1),w[F].m(s,null))}for(lr(),F=v.length;F<w.length;F+=1)L(F);ar()}(!c||V[0]&805306368&&a!==(a=bt("tabs__swiper",Fn,{inited:t[28],animated:t[29]})))&&m(s,"class",a),(!c||V[1]&16384&&l!==(l=Fn.tabs__panels+" "+(t[45]?nr["root_restrict-scroll"]:"")))&&m(o,"class",l)},i(P){if(!c){for(let V=0;V<h.length;V+=1)U(p[V]);for(let V=0;V<v.length;V+=1)U(w[V]);c=!0}},o(P){p=p.filter(rc);for(let V=0;V<p.length;V+=1)re(p[V]);w=w.filter(rc);for(let V=0;V<w.length;V+=1)re(w[V]);c=!1},d(P){P&&(E(r),E(n),E(i),E(o)),hn(p,P),t[71](null),_&&_.d(P),hn(w,P),t[72](null),t[73](null),u=!1,Jr(f)}}}function kp(t){let r,e,n,i;const o=[yp,bp],s=[];function a(l,c){return l[2]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function Ap(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x=S,D=()=>(x(),x=N(a,T=>e(62,F=T)),a),J,Z,W=S,G=()=>(W(),W=N(v,T=>e(63,Z=T)),v),z,he=S,ye=()=>(he(),he=N(_,T=>e(64,z=T)),_),Te,_e=S,be=()=>(_e(),_e=N(p,T=>e(65,Te=T)),p),pt,Ue,Re=S,Me=()=>(Re(),Re=N(h,T=>e(66,Ue=T)),h),Ze,et=S,Q=()=>(et(),et=N(f,T=>e(67,Ze=T)),f),Ee,ge=S,nt=()=>(ge(),ge=N(u,T=>e(19,Ee=T)),u),Y,Se=S,Ge=()=>(Se(),Se=N(c,T=>e(68,Y=T)),c),ne,lt=S,je=()=>(lt(),lt=N(s,T=>e(69,ne=T)),s),Ie,kt=S,Tt=()=>(kt(),kt=N(b,T=>e(45,Ie=T)),b);t.$$.on_destroy.push(()=>x()),t.$$.on_destroy.push(()=>W()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt());let{componentContext:te}=r,{layoutParams:it=void 0}=r;const ut=Yr(tn),gt=ut.direction;un(t,gt,T=>e(18,pt=T));const qe=ut.genId("tabs");let C,rt=!1,le=hi([]);un(t,le,T=>e(17,J=T));let Qe={},At,fe,pe,ft={},$e=12,tr="",Ot="",Qt="",Oe="",yt,Jt="",Ut,qt="",H="",ae="",dr="",we="",It=0,Be="",vt="",ze=null,at=!1,Et=!1,Fe,dt=[],Kt=[],cr=null,pr=null,Gt=null,ht,Dt=!1,Nt=!1,rr,ir,Er;function zr(){e(4,$e=12),e(5,tr=""),e(6,Oe=""),e(7,yt=void 0),e(26,Jt=""),e(8,Ut=void 0),e(27,qt=""),e(9,H=""),e(10,ae=""),e(11,dr=""),e(12,we=""),e(13,It=0),e(56,Be=""),e(57,vt=""),e(14,ze=null),e(15,Er=void 0)}function qr(T){te.json.items&&e(0,te={...te,json:{...te.json,items:te.json.items.map((ot,de)=>({...ot,div:T[de]}))}})}function Xe(T){rt||(dt.forEach(ot=>{ot==null||ot.destroy()}),e(30,dt=T.map((ot,de)=>{if(de===w&&(ot!=null&&ot.div))return te.produceChildContext(ot.div,{path:de})})),e(31,Kt=T.map((ot,de)=>de===w)))}async function hr(T,ot=!1){if(Fe=w,e(16,w=T),_r(),jr(),ot){await jn();const de=At.querySelector(`.${Fn.tabs__item_selected}`);de&&de.focus()}}function Ae(T,ot=!1){const de=J==null?void 0:J.length;if(!de)return;const d=J.map(fr=>fr.index);let jt=d.indexOf(w)+T;jt>=de?jt=0:jt<0&&(jt=de-1);const Pr=d[jt];hr(Pr,ot)}function K(T,ot){return w!==ot?(hr(ot),!1):!0}function jr(){e(29,Et=!0),Cr(-w*100),zt(),$r(),Ve(),ir=-w*fe.clientWidth}async function Cr(T){await jn(),e(22,pe.style.transform=`translate3d(${T}%,0,0)`,pe)}function zt(T=!1){const ot=T?Math.max(0,w-1):Math.min(w,Fe!=null?Fe:w),de=T?Math.min(i.length-1,w+1):Math.max(w,Fe!=null?Fe:w);dt.forEach(d=>{d==null||d.destroy()}),e(30,dt=dt.map((d,Pe)=>{var Pr;if(d)return d;const jt=(Pr=i[Pe])==null?void 0:Pr.div;if(Pe>=ot&&Pe<=de&&jt)return te.produceChildContext(jt,{path:Pe})})),e(31,Kt=Kt.map((d,Pe)=>Pe>=ot&&Pe<=de))}async function $r(){if((F==null?void 0:F.type)==="match_parent")return;await jn();const T=document.getElementById(`${qe}-panel-${w}`);T&&e(21,fe.style.height=ke(T.offsetHeight),fe)}function Ve(){cr&&clearTimeout(cr),cr=window.setTimeout(()=>{e(31,Kt=i.map((T,ot)=>ot===w))},400)}function Lt(T){if(!(T.ctrlKey||T.shiftKey||T.altKey||T.metaKey)&&i){if(T.which===wf)Ae(-1,!0);else if(T.which===kf)Ae(1,!0);else if(T.which===Af)hr(0,!0);else if(T.which===Ef)hr(i.length-1,!0);else return;T.preventDefault()}}function _r(){at||(e(28,at=!0),e(21,fe.style.height=ke(fe.clientHeight),fe),e(22,pe.style.transform=`translate3d(${-(Fe!=null?Fe:w)*100}%,0,0)`,pe))}function xe(T){var d;const ot=T.target,de=(d=ot==null?void 0:ot.closest)==null?void 0:d.call(ot,`.${nr["root_restrict-scroll"]}`);i.length<2||T.touches.length>1||de&&de!==fe||(Dt=!1,Nt=!1,pr=tc(T),Gt=null,ht=Date.now(),rr=ir||-w*fe.clientWidth,e(29,Et=!1),cr&&clearTimeout(cr))}function Ft(T){const ot=tc(T);if(!pr||Gt&&Gt.x===ot.x&&Gt.y===ot.y)return;Gt=ot;const de=fe.clientWidth;if(Dt){ir=ot.x-pr.x+rr;const d=de*i.length;if(ir>0)ir=ir*de/(ir+de*3);else if(-ir+de>d){let Pe=-ir+de-d;Pe=Pe*de/(Pe+de*3),ir=de-d-Pe}Cr(ir*100/de)}else Math.abs(ot.y-pr.y)>10?Nt=!0:!Nt&&Math.abs(ot.x-pr.x)>8&&(_r(),Dt=!0,pr=ot,Cr(-w*100),zt(!0));Dt&&T.cancelable&&T.preventDefault()}function Le(){Nt=!1,pr=null;let T=w;if(!Dt)return;Dt=!1;const ot=Math.min(512,fe.clientWidth),de=Math.abs(rr-ir),d=Math.min(1,(Date.now()-ht)/750);de>ot/4*d&&(T+=rr>ir?1:-1),T>=i.length?T=i.length-1:T<0&&(T=0),T===w?(e(29,Et=!0),ir=-T*ot,Cr(-T*100),Ve()):hr(T)}fn(()=>{dt.forEach(T=>{T==null||T.destroy()}),C&&(ut.unregisterInstance(C),e(55,C=void 0))});const mt=(T,ot)=>K(ot,T);function ct(T){Or[T?"unshift":"push"](()=>{At=T,e(20,At)})}function Ct(T){Or[T?"unshift":"push"](()=>{pe=T,e(22,pe)})}function Xt(T){Or[T?"unshift":"push"](()=>{fe=T,e(21,fe)})}return t.$$set=T=>{"componentContext"in T&&e(0,te=T.componentContext),"layoutParams"in T&&e(1,it=T.layoutParams)},t.$$.update=()=>{var T,ot;if(t.$$.dirty[0]&1&&e(61,n=te.origJson),t.$$.dirty[1]&1073741824&&n&&zr(),t.$$.dirty[0]&1&&e(58,i=Array.isArray(te.json.items)&&te.json.items||[]),t.$$.dirty[1]&134217728&&e(44,o=i.map(de=>{var d;return{json:de.div,id:(d=de.div)==null?void 0:d.id}})),t.$$.dirty[0]&1&&je(e(43,s=te.getDerivedFromVars(te.json.width))),t.$$.dirty[0]&1&&D(e(42,a=te.getDerivedFromVars(te.json.height))),t.$$.dirty[0]&1&&e(60,l=te.getJsonWithVars(te.json.selected_tab)),t.$$.dirty[0]&1&&Ge(e(41,c=te.getDerivedFromVars(te.json.tab_title_style))),t.$$.dirty[0]&1&&nt(e(40,u=te.getDerivedFromVars(te.json.has_separator))),t.$$.dirty[0]&1&&Q(e(39,f=te.getDerivedFromVars(te.json.separator_color))),t.$$.dirty[0]&1&&Me(e(38,h=te.getDerivedFromVars(te.json.separator_paddings))),t.$$.dirty[0]&1&&be(e(37,p=te.getDerivedFromVars(te.json.switch_tabs_by_content_swipe_enabled))),t.$$.dirty[0]&1&&Tt(e(36,b=te.getDerivedFromVars(te.json.restrict_parent_scroll))),t.$$.dirty[0]&1&&ye(e(35,_=te.getDerivedFromVars(te.json.title_paddings))),t.$$.dirty[0]&1&&G(e(34,v=te.getDerivedFromVars(te.json.tab_title_delimiter))),t.$$.dirty[1]&536870912&&e(16,w=l&&Number(l)||0),t.$$.dirty[0]&1|t.$$.dirty[1]&134217728)if(Array.isArray(i)&&i.length){let de=[];i.forEach((d,Pe)=>{const jt=te.getJsonWithVars({index:Pe,title:d.title,title_click_action:d.title_click_action});jt.title&&typeof jt.title=="string"?de.push(jt):te.logError(ee(new Error("Incorrect title for the tab"),{additional:{index:Pe}}))}),le.set(de)}else le.set([]);if(t.$$.dirty[0]&131073&&(J!=null&&J.length?e(2,rt=!1):(e(2,rt=!0),te.logError(ee(new Error('Incorrect or empty "items" prop for div "tabs"'))))),t.$$.dirty[0]&8|t.$$.dirty[2]&129){let de={parentContainerOrientation:"horizontal"};(ne==null?void 0:ne.type)==="wrap_content"&&(de.parentHorizontalWrapContent=!0),(!F||F.type==="wrap_content")&&(de.parentVerticalWrapContent=!0),e(3,Qe=Pi(de,Qe))}if(t.$$.dirty[0]&65541|t.$$.dirty[1]&134217728&&!rt&&(w<0||w>=i.length)&&(te.logError(ee(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:te.json.selected_tab,length:i.length}})),e(16,w=w<0?0:i.length-1)),t.$$.dirty[0]&196613&&!rt&&!J.some(de=>w===de.index)&&(te.logError(ee(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:te.json.selected_tab}})),e(16,w=((T=J[0])==null?void 0:T.index)||0)),t.$$.dirty[2]&64&&e(59,L=Y||{}),t.$$.dirty[0]&16|t.$$.dirty[1]&268435456&&e(4,$e=Kn(L.font_size,$e)),t.$$.dirty[0]&262192|t.$$.dirty[1]&268435456&&(L.font_size||L.paddings)){const de=L.paddings||{top:6,right:8,bottom:6,left:8},d={top:(Number(de.top)||0)/$e*10,right:(Number(pt==="ltr"?de.end:de.start)||Number(de.right)||0)/$e*10,bottom:(Number(de.bottom)||0)/$e*10,left:(Number(pt==="ltr"?de.start:de.end)||Number(de.left)||0)/$e*10};e(5,tr=Io(d,pt,tr))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const de=L.line_height;de!==void 0&&Pn(de)&&e(24,Ot=ke(de/$e*10))}if(t.$$.dirty[0]&16|t.$$.dirty[1]&268435456){const de=L.letter_spacing;de!==void 0&&Mn(de)&&e(25,Qt=ke(de/$e*10))}if(t.$$.dirty[0]&80|t.$$.dirty[1]&268435456&&(L.corner_radius||L.corners_radius||L.font_size)){const de=(ot=L.corner_radius)!=null?ot:1e3;L.corners_radius?e(6,Oe=_p(L.corners_radius,de,$e,Oe)):Mn(de)&&e(6,Oe=ke(de/$e*10))}t.$$.dirty[0]&128|t.$$.dirty[1]&268435456&&(e(7,yt=go(L.active_font_weight||L.font_weight,void 0,yt)),L.font_family&&typeof L.font_family=="string"?e(26,Jt=ut.typefaceProvider(L.font_family,{fontWeight:yt||400})):e(26,Jt="")),t.$$.dirty[0]&256|t.$$.dirty[1]&268435456&&(e(8,Ut=go(L.inactive_font_weight||L.font_weight,void 0,Ut)),L.font_family&&typeof L.font_family=="string"?e(27,qt=ut.typefaceProvider(L.font_family,{fontWeight:Ut||400})):e(27,qt="")),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&e(9,H=Mr(L.active_text_color,1,H)),t.$$.dirty[0]&1024|t.$$.dirty[1]&268435456&&e(10,ae=Mr(L.inactive_text_color,1,ae)),t.$$.dirty[0]&2048|t.$$.dirty[1]&268435456&&e(11,dr=Mr(L.active_background_color,1,dr)),t.$$.dirty[0]&4096|t.$$.dirty[1]&268435456&&e(12,we=Mr(L.inactive_background_color,1,we)),t.$$.dirty[0]&8192|t.$$.dirty[1]&268435456&&e(13,It=Xr(L.item_spacing,It)),t.$$.dirty[0]&786432|t.$$.dirty[1]&100663296|t.$$.dirty[2]&48&&Ee&&(Ze&&e(56,Be=Mr(Ze,1,Be)),Ue&&e(57,vt=Io(Ue,pt,vt))),t.$$.dirty[1]&100663296&&e(33,P={background:Be,margin:vt}),t.$$.dirty[2]&8&&e(32,V=typeof Te>"u"?!0:!!Te),t.$$.dirty[0]&16384|t.$$.dirty[2]&4&&e(14,ze=Oo(z||void 0,ze)),t.$$.dirty[0]&32768|t.$$.dirty[2]&2&&e(15,Er=hp(Z,Er)),t.$$.dirty[1]&134217728&&Xe(i),t.$$.dirty[0]&65541|t.$$.dirty[1]&150994944&&te.json&&(C&&(ut.unregisterInstance(C),e(55,C=void 0)),te.id&&!rt&&!te.fakeElement&&(e(55,C=te.id),ut.registerInstance(C,{setCurrentItem(de){if(de<0||de>i.length-1)throw new Error('Item is out of range in "set-current-item" action');hr(de)},setPreviousItem(de,d){let Pe=w-de;Pe<0&&(Pe=d==="ring"?Ni(Pe,i.length):0),hr(Pe)},setNextItem(de,d){let Pe=w+de;Pe>i.length-1&&(Pe=d==="ring"?Ni(Pe,i.length):i.length-1),hr(Pe)},scrollToStart(){hr(0)},scrollToEnd(){hr(i.length-1)}}))),t.$$.dirty[2]&1&&e(23,ft={"height-parent":(F==null?void 0:F.type)==="match_parent"?"yes":""})},[te,it,rt,Qe,$e,tr,Oe,yt,Ut,H,ae,dr,we,It,ze,Er,w,J,pt,Ee,At,fe,pe,ft,Ot,Qt,Jt,qt,at,Et,dt,Kt,V,P,v,_,b,p,h,f,u,c,a,s,o,Ie,gt,qe,le,qr,K,Lt,xe,Ft,Le,C,Be,vt,i,L,l,n,F,Z,z,Te,Ue,Ze,Y,ne,mt,ct,Ct,Xt]}class Ep extends Wr{constructor(r){super(),Hr(this,r,Ap,kp,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const jp="divkit-31140",Cp="divkit-bace1",Sp="divkit-8524e",Qi={state:jp,state_overflow_visible:Cp,state__animations:Sp,"state__animation-child":"divkit-dcc79","state__animation-child-inner":"divkit-aa7dd"};function Bs(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Vp(t){return t*t*t}function jf(t){const r=t-1;return r*r*r+1}function Cf(t){return r=>{if(r<=0)return 0;if(r>=1)return 1;const e=r*t.length,n=Math.floor(e),i=t[n],o=t[n+1],s=e-n;return i*s+o*(1-s)}}const Ip=[.0021,.0045,.0071,.01,.0131,.0165,.0202,.0242,.0284,.033,.0378,.0429,.0483,.054,.0601,.0664,.0731,.08,.0872,.0948,.1026,.1108,.1192,.1279,.1369,.1461,.1556,.1653,.1753,.1855,.1958,.2064,.2171,.2279,.2389,.25,.2612,.2725,.2839,.2952,.3067,.3181,.3295,.341,.3524,.3637,.375,.3863,.3974,.4085,.4195,.4304,.4412,.4519,.4624,.4729,.4832,.4934,.5034,.5133,.5231,.5327,.5422,.5516,.5608,.5699,.5788,.5876,.5963,.6048,.6132,.6214,.6295,.6375,.6453,.653,.6606,.668,.6754,.6825,.6896,.6965,.7034,.7101,.7166,.7231,.7295,.7357,.7418,.7479,.7538,.7596,.7653,.7709,.7764,.7818,.7871,.7923,.7974,.8024,.8073,.8122,.8169,.8216,.8261,.8306,.835,.8394,.8436,.8478,.8518,.8558,.8598,.8636,.8674,.8711,.8747,.8783,.8818,.8852,.8886,.8919,.8951,.8983,.9014,.9044,.9074,.9103,.9131,.9159,.9187,.9213,.924,.9265,.929,.9315,.9339,.9362,.9385,.9408,.943,.9451,.9472,.9492,.9512,.9532,.9551,.9569,.9587,.9605,.9622,.9638,.9655,.967,.9686,.9701,.9715,.9729,.9743,.9756,.9769,.9782,.9794,.9805,.9817,.9828,.9838,.9848,.9858,.9868,.9877,.9886,.9894,.9902,.991,.9917,.9924,.9931,.9937,.9943,.9949,.9954,.9959,.9964,.9969,.9973,.9977,.998,.9983,.9986,.9989,.9991,.9993,.9995,.9997,.9998,.9999,.9999,1,1],Dp=Cf(Ip),Tp=[5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1],Fp=Cf(Tp),sl={linear:Ss,ease:Dp,ease_in:Vp,ease_out:jf,ease_in_out:Bs,spring:Fp};function Bl(t){return sl[t]}const Sf=200,Vf=0,Mp=0,Pp=0;function uc(t){return Math.max(...t.map(r=>(Number(r.duration)||Sf)+(Number(r.start_delay)||Vf)))}function Np(t,{transitions:r,elementBbox:e,rootBbox:n,direction:i,maxDuration:o,alpha:s}){const a=s!=null?s:1;return{duration:zs()?0:o,css:l=>{const c=l*o,u=r.map(w=>{var J,Z,W;const L=Number(w.start_delay)||Vf,P=Number(w.duration)||Sf,V=Math.max(0,Math.min(1,(c-L)/P)),F=i==="in"?1-V:V,D=(Bl(w.interpolator||"ease_in_out")||Bs)(F);if(w.type==="fade")return D>=1?{active:!1,opacity:0}:{active:D>0&&D<1,opacity:(1-D)*a+D*(w.alpha||Mp)};if(w.type==="slide"){const G=w.edge==="top"||w.edge==="left"?-1:1,z=w.edge==="top"||w.edge==="bottom"||!w.edge?"translateY":"translateX";let he=(J=w.distance)==null?void 0:J.value;he===void 0&&(w.edge==="top"||w.edge==="bottom"||!w.edge?he=Math.abs(n[w.edge==="bottom"?"bottom":"top"]-e[w.edge==="bottom"?"top":"bottom"]):he=Math.abs(n[w.edge==="left"?"left":"right"]-e[w.edge==="left"?"right":"left"]));const ye=he*D;return{active:D>0&&D<1,translate:`${z}(${ye*G}px)`}}else if(w.type==="scale"){const G=1-D+D*(w.scale||Pp),z=(Z=w.pivot_x)!=null?Z:.5,he=(W=w.pivot_y)!=null?W:.5,ye=(1-G)*e.width*z,Te=(1-G)*e.height*he;return{active:D>0&&D<1,scale:`translate(${ye}px, ${Te}px) scale(${G})`}}return{}}),f=u.map(w=>w.opacity).filter(w=>w!==void 0).reduce((w,L)=>w*L,1),h=u.map(w=>w.translate).filter(w=>w!==void 0).join(" "),p=u.map(w=>w.scale).filter(w=>w!==void 0).join(" "),b=u.filter(w=>w.active).map(w=>w.scale).filter(w=>w!==void 0),_=b.length?b[b.length-1]:p;return`transform:${[h,_].filter(Boolean).join(" ")||"none"};opacity:${f}`}}}function ji(t,r,e){return t*(1-e)+r*e}const Op=200,zp=0;function Lp(t,{rootBbox:r,beforeBbox:e,afterBbox:n,transition:i}){var o,s;return{delay:(o=i.start_delay)!=null?o:zp,duration:zs()?0:(s=i.duration)!=null?s:Op,easing:i.interpolator&&i.interpolator in sl?sl[i.interpolator]:Bs,css:a=>[`top:${ji(e.top,n.top,a)-r.top}px`,`left:${ji(e.left,n.left,a)-r.left}px`,`width:${ji(e.width,n.width,a)}px`,`height:${ji(e.height,n.height,a)}px`].join(";")}}function If(t){const r=[];return t.type==="set"?(t.items||[]).forEach(e=>{r.push(...If(e))}):r.push(t),r}const{Map:Rp}=bi;function fc(t,r,e){const n=t.slice();return n[35]=r[e],n}function Bp(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Hp(t){let r,e;return r=new Cn({props:{cls:bt("state",Qi,t[7]),componentContext:t[0],layoutParams:t[1],parentOf:t[8],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[Gp]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&128&&(o.cls=bt("state",Qi,n[7])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&256&&(o.parentOf=n[8]),i[0]&120|i[1]&128&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function dc(t){let r=t[5],e,n,i=hc(t);return{c(){i.c(),e=Ne()},l(o){i.l(o),e=Ne()},m(o,s){i.m(o,s),ie(o,e,s),n=!0},p(o,s){s[0]&32&&Ar(r,r=o[5])?(lr(),re(i,1,1,S),ar(),i=hc(o),i.c(),U(i,1),i.m(e.parentNode,e)):i.p(o,s)},i(o){n||(U(i),n=!0)},o(o){re(i),n=!1},d(o){o&&E(e),i.d(o)}}}function hc(t){let r,e;return r=new oi({props:{componentContext:t[6]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&64&&(o.componentContext=n[6]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Wp(t){let r,e,n,i,o,s,a,l;n=new oi({props:{componentContext:t[35].componentContextCopy}});function c(){return t[20](t[35])}return{c(){r=He("div"),e=He("div"),Yt(n.$$.fragment),i=yr(),this.h()},l(u){r=Je(u,"DIV",{class:!0});var f=De(r);e=Je(f,"DIV",{class:!0});var h=De(e);Zt(n.$$.fragment,h),h.forEach(E),i=vr(f),f.forEach(E),this.h()},h(){m(e,"class",Qi["state__animation-child-inner"]),m(r,"class",Qi["state__animation-child"])},m(u,f){ie(u,r,f),St(r,e),Ht(n,e,null),St(r,i),s=!0,a||(l=Ye(r,"introend",c),a=!0)},p(u,f){t=u;const h={};f[0]&16&&(h.componentContext=t[35].componentContextCopy),n.$set(h)},i(u){s||(U(n.$$.fragment,u),o||Un(()=>{o=Il(r,Lp,t[35]),o.start()}),s=!0)},o(u){re(n.$$.fragment,u),s=!1},d(u){u&&E(r),Wt(n),a=!1,l()}}}function Up(t){let r,e,n,i,o,s=`${t[35].offsetLeft}px`,a=`${t[35].offsetTop}px`,l=`${t[35].width}px`,c=`${t[35].height}px`,u,f,h;n=new oi({props:{componentContext:t[35].componentContextCopy}});function p(){return t[19](t[35])}return{c(){r=He("div"),e=He("div"),Yt(n.$$.fragment),i=yr(),this.h()},l(b){r=Je(b,"DIV",{class:!0});var _=De(r);e=Je(_,"DIV",{class:!0});var v=De(e);Zt(n.$$.fragment,v),v.forEach(E),i=vr(_),_.forEach(E),this.h()},h(){m(e,"class",Qi["state__animation-child-inner"]),m(r,"class",Qi["state__animation-child"]),B(r,"left",s),B(r,"top",a),B(r,"width",l),B(r,"height",c)},m(b,_){ie(b,r,_),St(r,e),Ht(n,e,null),St(r,i),u=!0,f||(h=Ye(r,"introend",p),f=!0)},p(b,_){t=b;const v={};_[0]&16&&(v.componentContext=t[35].componentContextCopy),n.$set(v),_[0]&16&&s!==(s=`${t[35].offsetLeft}px`)&&B(r,"left",s),_[0]&16&&a!==(a=`${t[35].offsetTop}px`)&&B(r,"top",a),_[0]&16&&l!==(l=`${t[35].width}px`)&&B(r,"width",l),_[0]&16&&c!==(c=`${t[35].height}px`)&&B(r,"height",c)},i(b){u||(U(n.$$.fragment,b),o||Un(()=>{o=Il(r,Np,t[35]),o.start()}),u=!0)},o(b){re(n.$$.fragment,b),u=!1},d(b){b&&E(r),Wt(n),f=!1,h()}}}function _c(t,r){let e,n,i,o,s;const a=[Up,Wp],l=[];function c(u,f){return"direction"in u[35]?0:1}return n=c(r),i=l[n]=a[n](r),{key:t,first:null,c(){e=Ne(),i.c(),o=Ne(),this.h()},l(u){e=Ne(),i.l(u),o=Ne(),this.h()},h(){this.first=e},m(u,f){ie(u,e,f),l[n].m(u,f),ie(u,o,f),s=!0},p(u,f){r=u;let h=n;n=c(r),n===h?l[n].p(r,f):(lr(),re(l[h],1,1,()=>{l[h]=null}),ar(),i=l[n],i?i.p(r,f):(i=l[n]=a[n](r),i.c()),U(i,1),i.m(o.parentNode,o))},i(u){s||(U(i),s=!0)},o(u){re(i),s=!1},d(u){u&&(E(e),E(o)),l[n].d(u)}}}function Gp(t){let r,e,n=[],i=new Rp,o,s=t[6]&&dc(t),a=sr(t[4]);const l=c=>c[35];for(let c=0;c<a.length;c+=1){let u=fc(t,a,c),f=l(u);i.set(f,n[c]=_c(f,u))}return{c(){s&&s.c(),r=yr(),e=He("div");for(let c=0;c<n.length;c+=1)n[c].c();this.h()},l(c){s&&s.l(c),r=vr(c),e=Je(c,"DIV",{class:!0,"aria-hidden":!0});var u=De(e);for(let f=0;f<n.length;f+=1)n[f].l(u);u.forEach(E),this.h()},h(){m(e,"class",Qi.state__animations),m(e,"aria-hidden","true")},m(c,u){s&&s.m(c,u),ie(c,r,u),ie(c,e,u);for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(e,null);t[21](e),o=!0},p(c,u){c[6]?s?(s.p(c,u),u[0]&64&&U(s,1)):(s=dc(c),s.c(),U(s,1),s.m(r.parentNode,r)):s&&(lr(),re(s,1,1,()=>{s=null}),ar()),u[0]&2064&&(a=sr(c[4]),lr(),n=ff(n,u,l,1,c,a,i,e,uf,_c,null,fc),ar())},i(c){if(!o){U(s);for(let u=0;u<a.length;u+=1)U(n[u]);o=!0}},o(c){re(s);for(let u=0;u<n.length;u+=1)re(n[u]);o=!1},d(c){c&&(E(r),E(e)),s&&s.d(c);for(let u=0;u<n.length;u+=1)n[u].d();t[21](null)}}}function Yp(t){let r,e,n,i;const o=[Hp,Bp],s=[];function a(l,c){return l[2]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function Jp(t){return t.some(r=>r.type==="fade")}function Df(t){return t.type==="change_bounds"?t:t.type==="set"?Df(t.items[0]):null}function qp(t,r,e){let n,i,o,s,a,l,c,u,f,h,p=S,b=()=>(p(),p=N(o,Q=>e(18,h=Q)),o);t.$$.on_destroy.push(()=>p());let{componentContext:_}=r,{layoutParams:v=void 0}=r;const w=Yr(tn);let L=!1,P,V=new Map,F=new Set,x=[],D=[],J=[],Z=[],W,G,z,he=!1;function ye(){e(13,he=!1)}function Te(Q){z&&z.destroy(),e(6,z=Q!=null&&Q.div?_.produceChildContext(Q.div,{path:Q.state_id||"<unknown>"}):void 0)}function _e(Q){const Ee=_.json.states;Ee&&(e(14,c=Ee.map((ge,nt)=>({...ge,div:Q[nt]}))),e(0,_.json={..._.json,states:c},_),G&&Te(c.find(ge=>ge.state_id===G)||null))}function be(Q,Ee,ge){let{json:nt,parentComponentContext:Y,transitions:Se,node:Ge}=Ee;nt=_.getJsonWithVars(nt),Se=_.getJsonWithVars(Se);const ne=If(Se),lt=Ee.bbox||Ge.getBoundingClientRect(),je={...nt,margins:void 0,alpha:Jp(ne)?void 0:nt.alpha};return{id:Y.id||"",json:je,componentContextCopy:Y.produceChildContext(je,{fake:!0}),elementBbox:lt,rootBbox:Q,transitions:ne,alpha:nt.alpha,width:lt.width,height:lt.height,offsetTop:lt.top-Q.top,offsetLeft:lt.left-Q.left,direction:ge,resolvePromise:Ee.resolvePromise,node:Ee.node}}async function pt(Q){if(G===Q)return _;w.setRunning("stateChange",!0);const Ee=new Set(F);x.forEach(je=>{je.resolvePromise&&je.resolvePromise()}),e(4,x=[]);let ge=[];if(P){const je=P.getBoundingClientRect();ge=J.map(Ie=>be(je,Ie,"out"))}Z.forEach(je=>{je.transitions&&V.set(je.id,{transitions:je.transitions,rect:je.node.getBoundingClientRect()})}),D=[],J=[],Z=[];const nt=c.find(je=>je.state_id===Q)||null;if(nt?(e(5,G=Q),a==null||a.setValue(G),Te(nt)):_.logError(ee(new Error("Cannot find state with id"),{additional:{stateId:Q}})),await jn(),!P)return;const Y=P.getBoundingClientRect();let Se=D.filter(je=>{var Ie;return je.parentComponentContext.id&&!Ee.has(je.parentComponentContext.id)?!0:((Ie=je.resolvePromise)==null||Ie.call(je),!1)}).map(je=>be(Y,je,"in"));ge=ge.filter(je=>{var Ie;return je.id&&!F.has(je.id)?!0:((Ie=je.resolvePromise)==null||Ie.call(je),!1)});const Ge=ge.concat(Se),ne=Ge.reduce((je,Ie)=>Math.max(je,uc(Ie.transitions)),0),lt=Z.filter(je=>V.has(je.id)).map(je=>{const Ie={...je.json,margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}},kt=V.get(je.id);return{id:je.parentComponentContext.id||"",json:Ie,componentContextCopy:je.parentComponentContext.produceChildContext(Ie,{fake:!0}),rootBbox:Y,beforeBbox:kt.rect,afterBbox:je.node.getBoundingClientRect(),node:je.node,transition:_.getJsonWithVars(Df(kt.transitions)),resolvePromise:je.resolvePromise}});return e(4,x=[...Ge.map(je=>({...je,maxDuration:ne})),...lt]),V.clear(),w.setRunning("stateChange",!1),_}Yi(Tl,{runVisibilityTransition(Q,Ee,ge,nt,Y,Se){if(!P)return Promise.resolve();const Ge=P.getBoundingClientRect(),ne=be(Ge,{json:Q,parentComponentContext:Ee,transitions:ge,node:nt,bbox:Se},Y),lt=uc(ne.transitions),je={...ne,maxDuration:lt};return e(4,x=[...x.filter(Ie=>Ie.node!==ne.node),je]),new Promise(Ie=>{je.resolvePromise=Ie})},registerChildWithTransitionIn(Q,Ee,ge,nt){const Y={json:Q,parentComponentContext:Ee,transitions:ge,node:nt};return D.push(Y),new Promise(Se=>{Y.resolvePromise=Se})},registerChildWithTransitionOut(Q,Ee,ge,nt){const Y={json:Q,parentComponentContext:Ee,transitions:ge,node:nt};return J.push(Y),new Promise(Se=>{Y.resolvePromise=Se})},registerChildWithTransitionChange(Q,Ee,ge,nt){const Y=Ee.id;if(!Y)return Promise.resolve();const Se={id:Y,json:Q,parentComponentContext:Ee,transitions:ge,node:nt};return Z.push(Se),new Promise(Ge=>{Se.resolvePromise=Ge})},hasTransitionChange(Q){return Q?V.has(Q):!1},registerChild(Q){F.add(Q)},unregisterChild(Q){F.delete(Q)}});function Ue(Q){if(!he&&(e(13,he=!0),Q.length)){const Ee=(a==null?void 0:a.getValue())||i;if(Ee){e(5,G=Ee);const ge=Q.find(nt=>nt.state_id===G)||null;Te(ge),ge||_.logError(ee(new Error("Cannot find state for default_state_id"),{additional:{selectedId:G}}))}else{const ge=Q[0];e(5,G=ge.state_id),Te(ge)}a&&(a.setValue(G),a.subscribe(ge=>{pt(ge)}))}}function Re(Q){e(4,x=x.filter(Ee=>Ee!==Q)),Q.resolvePromise&&Q.resolvePromise()}fn(()=>{z&&z.destroy(),W&&_.unregisterState(W)});const Me=Q=>Re(Q),Ze=Q=>Re(Q);function et(Q){Or[Q?"unshift":"push"](()=>{P=Q,e(3,P)})}return t.$$set=Q=>{"componentContext"in Q&&e(0,_=Q.componentContext),"layoutParams"in Q&&e(1,v=Q.layoutParams)},t.$$.update=()=>{t.$$.dirty[0]&1&&e(15,n=_.json.div_id||_.id),t.$$.dirty[0]&1&&(i=_.getJsonWithVars(_.json.default_state_id)),t.$$.dirty[0]&1&&b(e(9,o=_.getDerivedFromVars(_.json.clip_to_bounds))),t.$$.dirty[0]&1&&e(17,s=_.json.state_id_variable),t.$$.dirty[0]&131073&&(a=s?_.getVariable(s,"string"):null),t.$$.dirty[0]&1&&e(16,l=_.origJson),t.$$.dirty[0]&65536&&l&&ye(),t.$$.dirty[0]&32769&&(n?e(2,L=!1):(e(2,L=!0),_.logError(ee(new Error('Missing "id" prop for div "state"'))))),t.$$.dirty[0]&1&&_.json&&(F=new Set),t.$$.dirty[0]&1&&e(14,c=Array.isArray(_.json.states)&&_.json.states||[]),t.$$.dirty[0]&16384&&e(8,u=c.map(Q=>{var Ee;return{json:Q.div,id:(Ee=Q.div)==null?void 0:Ee.id}})),t.$$.dirty[0]&16385&&(c!=null&&c.length?e(2,L=!1):(e(2,L=!0),_.logError(ee(new Error('Empty "states" prop for div "state"'))))),t.$$.dirty[0]&36865&&_.json&&(W&&(_.unregisterState(n),e(12,W=void 0)),n&&!(_!=null&&_.fakeElement)&&(e(12,W=n),_.registerState(n,pt))),t.$$.dirty[0]&24576&&!he&&Ue(c),t.$$.dirty[0]&262144&&e(7,f={overflow:h===!1||h===0?"visible":void 0})},[_,v,L,P,x,G,z,f,u,o,_e,Re,W,he,c,n,l,s,h,Me,Ze,et]}class Kp extends Wr{constructor(r){super(),Hr(this,r,qp,Yp,Ar,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Xp="divkit-4e617",Zp="divkit-2d4e4",Qp="divkit-834e0",xp="divkit-9cc96",$p="divkit-e886e",em="divkit-e1525",tm="divkit-3af1f",rm="divkit-8d520",nm="divkit-4e248",im="divkit-c6702",gi={pager:Xp,pager__items:Zp,pager__item:Qp,pager_orientation_horizontal:xp,pager_orientation_vertical:$p,pager__item_height_content:em,pager__item_height_fixed:tm,"pager__item_height-constrained":"divkit-d5bd8",pager__item_width_content:rm,pager__item_width_fixed:nm,"pager__item_width-constrained":"divkit-6a541",pager__arrow:im,"pager__arrow-icon-path":"divkit-97cb5"},{Boolean:om}=bi;function gc(t,r,e){const n=t.slice();return n[59]=r[e],n[61]=e,n}function sm(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function lm(t){let r,e;return r=new Cn({props:{cls:bt("pager",gi,t[12]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[3],replaceItems:t[27],$$slots:{default:[um]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&4096&&(o.cls=bt("pager",gi,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&8&&(o.parentOf=n[3]),i[0]&3157612|i[2]&1&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function pc(t){let r,e,n,i,o;return e=new oi({props:{componentContext:t[59]}}),{c(){r=He("div"),Yt(e.$$.fragment),n=yr(),this.h()},l(s){r=Je(s,"DIV",{class:!0});var a=De(r);Zt(e.$$.fragment,a),n=vr(a),a.forEach(E),this.h()},h(){m(r,"class",i=bt("pager__item",gi,yc(t[2],t[21][t[61]])))},m(s,a){ie(s,r,a),Ht(e,r,null),St(r,n),o=!0},p(s,a){const l={};a[0]&8&&(l.componentContext=s[59]),e.$set(l),(!o||a[0]&2097156&&i!==(i=bt("pager__item",gi,yc(s[2],s[21][s[61]]))))&&m(r,"class",i)},i(s){o||(U(e.$$.fragment,s),o=!0)},o(s){re(e.$$.fragment,s),o=!1},d(s){s&&E(r),Wt(e)}}}function mc(t){let r,e,n,i=!t[23]&&am();return{c(){r=He("div"),i&&i.c(),this.h()},l(o){r=Je(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[23]||`${gi.pager__arrow} ${Xn.arrow} ${Xn.arrow_left}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ye(r,"click",t[46]),e=!0)},p:S,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function am(t){let r,e;return{c(){r=en("svg"),e=en("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",gi["pager__arrow-icon-path"]),m(e,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),St(r,e)},d(n){n&&E(r)}}}function bc(t){let r,e,n,i=!t[24]&&cm();return{c(){r=He("div"),i&&i.c(),this.h()},l(o){r=Je(o,"DIV",{class:!0});var s=De(r);i&&i.l(s),s.forEach(E),this.h()},h(){m(r,"class",t[24]||`${gi.pager__arrow} ${Xn.arrow} ${Xn.arrow_right}`)},m(o,s){ie(o,r,s),i&&i.m(r,null),e||(n=Ye(r,"click",t[47]),e=!0)},p:S,d(o){o&&E(r),i&&i.d(),e=!1,n()}}}function cm(t){let r,e;return{c(){r=en("svg"),e=en("path"),this.h()},l(n){r=cn(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=De(r);e=cn(i,"path",{class:!0,d:!0}),De(e).forEach(E),i.forEach(E),this.h()},h(){m(e,"class",gi["pager__arrow-icon-path"]),m(e,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),m(r,"class",Xn.arrow__icon),m(r,"xmlns","http://www.w3.org/2000/svg"),m(r,"width","32"),m(r,"height","32"),m(r,"viewBox","0 0 32 32"),m(r,"fill","none")},m(n,i){ie(n,r,i),St(r,e)},d(n){n&&E(r)}}}function um(t){let r,e,n,i,o,s,a,l,c,u=sr(t[3]),f=[];for(let _=0;_<u.length;_+=1)f[_]=pc(gc(t,u,_));const h=_=>re(f[_],1,1,()=>{f[_]=null});let p=t[10]&&t[11]&&mc(t),b=t[9]&&t[11]&&bc(t);return{c(){r=He("div");for(let _=0;_<f.length;_+=1)f[_].c();i=yr(),p&&p.c(),o=yr(),b&&b.c(),s=Ne(),this.h()},l(_){r=Je(_,"DIV",{class:!0,style:!0});var v=De(r);for(let w=0;w<f.length;w+=1)f[w].l(v);v.forEach(E),i=vr(_),p&&p.l(_),o=vr(_),b&&b.l(_),s=Ne(),this.h()},h(){m(r,"class",e=gi.pager__items+" "+(t[20]?nr["root_restrict-scroll"]:"")),m(r,"style",n=Vt(t[13]))},m(_,v){ie(_,r,v);for(let w=0;w<f.length;w+=1)f[w]&&f[w].m(r,null);t[45](r),ie(_,i,v),p&&p.m(_,v),ie(_,o,v),b&&b.m(_,v),ie(_,s,v),a=!0,l||(c=Ye(r,"scroll",t[26]),l=!0)},p(_,v){if(v[0]&2097164){u=sr(_[3]);let w;for(w=0;w<u.length;w+=1){const L=gc(_,u,w);f[w]?(f[w].p(L,v),U(f[w],1)):(f[w]=pc(L),f[w].c(),U(f[w],1),f[w].m(r,null))}for(lr(),w=u.length;w<f.length;w+=1)h(w);ar()}(!a||v[0]&1048576&&e!==(e=gi.pager__items+" "+(_[20]?nr["root_restrict-scroll"]:"")))&&m(r,"class",e),(!a||v[0]&8192&&n!==(n=Vt(_[13])))&&m(r,"style",n),_[10]&&_[11]?p?p.p(_,v):(p=mc(_),p.c(),p.m(o.parentNode,o)):p&&(p.d(1),p=null),_[9]&&_[11]?b?b.p(_,v):(b=bc(_),b.c(),b.m(s.parentNode,s)):b&&(b.d(1),b=null)},i(_){if(!a){for(let v=0;v<u.length;v+=1)U(f[v]);a=!0}},o(_){f=f.filter(om);for(let v=0;v<f.length;v+=1)re(f[v]);a=!1},d(_){_&&(E(r),E(i),E(o),E(s)),hn(f,_),t[45](null),p&&p.d(_),b&&b.d(_),l=!1,c()}}}function fm(t){let r,e,n,i;const o=[lm,sm],s=[];function a(l,c){return l[4]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}const Ro={wrap_content:"content",fixed:"fixed",match_parent:"parent"};function yc(t,r){var n,i,o,s;if(t==="horizontal"){const a=((n=r.height)==null?void 0:n.type)||"";return{height:a in Ro?Ro[a]:"content","height-constrained":((i=r.height)==null?void 0:i.type)==="wrap_content"?ti(r.height.constrained,!1):!1}}const e=((o=r.width)==null?void 0:o.type)||"";return{width:e in Ro?Ro[e]:"parent","width-constrained":((s=r.width)==null?void 0:s.type)==="wrap_content"?ti(r.width.constrained,!1):!1}}function dm(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P=S,V=()=>(P(),P=N(w,we=>e(49,L=we)),w),F,x,D,J=S,Z=()=>(J(),J=N(o,we=>e(40,D=we)),o),W,G=S,z=()=>(G(),G=N(l,we=>e(41,W=we)),l),he,ye=S,Te=()=>(ye(),ye=N(a,we=>e(42,he=we)),a),_e,be=S,pt=()=>(be(),be=N(s,we=>e(43,_e=we)),s),Ue,Re=S,Me=()=>(Re(),Re=N(i,we=>e(44,Ue=we)),i),Ze,et=S,Q=()=>(et(),et=N(c,we=>e(20,Ze=we)),c),Ee,ge=S,nt=()=>(ge(),ge=N(gt,we=>e(21,Ee=we)),gt);t.$$.on_destroy.push(()=>P()),t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge());let{componentContext:Y}=r,{layoutParams:Se=void 0}=r;const Ge=Yr(tn),ne=Ge.direction;un(t,ne,we=>e(5,F=we));const lt=Ge.genId("pager"),je=Ge.getCustomization("pagerLeftClass"),Ie=Ge.getCustomization("pagerRightClass"),kt=Ge.isDesktop;un(t,kt,we=>e(39,x=we));const Tt=Rs(Qt,50);let te,it,ut=!1,gt,qe=0,C=0,rt=!1,le="horizontal",Qe="0em",At="",fe="",pe=[];function ft(){e(35,At="")}function $e(we){e(0,Y={...Y,json:{...Y.json,items:we.filter(Vi)}})}function tr(we,It){return le==="horizontal"?It.left>=we.left&&It.right<=we.right:It.top>=we.top&&It.bottom<=we.bottom}function Ot(){const we=Array.from(it.children),It=it.getBoundingClientRect(),Be=we.findIndex(vt=>tr(It,vt.getBoundingClientRect()));return Be!==-1?Be:qe}function Qt(){if(!ut)return;const we=Ot();we!==qe&&e(32,qe=we)}function Oe(we,It){const Be=Y.id;if(Be){const vt=new Map(L);Xo(w,L=vt.set(Be,{instId:lt,size:we,currentItem:It,scrollToPagerItem:Jt}),L)}}function yt(we){var Be;if(we===C)return;C=we;const It=Y.getJsonWithVars((Be=pe[we].json)==null?void 0:Be.selected_actions);It!=null&&It.length&&Y.execAnyActions(It)}function Jt(we,It="smooth"){const Be=le==="horizontal",vt=it.children[we],ze=Be?"offsetLeft":"offsetTop",at=Be?"offsetWidth":"offsetHeight",Et=Be?"left":"top",Fe=vt[ze]+vt[at]/2-it[at]/2;it.scroll({[Et]:Fe,behavior:It}),e(32,qe=we)}function Ut(we,It){let Be=qe-we;Be<0&&(Be=It==="ring"?Ni(Be,pe.length):0),Jt(Be)}function qt(we,It){let Be=qe+we;Be>pe.length-1&&(Be=It==="ring"?Ni(Be,pe.length):pe.length-1),Jt(Be)}ii(()=>{if(e(31,ut=!0),!!document.getElementById(`${lt}-tab-0`)){const It=[...it.children];for(const[Be,vt]of It.entries())vt.setAttribute("role","tabpanel"),vt.setAttribute("id",`${lt}-panel-${Be}`),vt.setAttribute("aria-labelledby",`${lt}-tab-${Be}`)}qe>0&&Jt(qe,"instant")}),fn(()=>{e(31,ut=!1),pe.forEach(we=>{we.destroy()}),te&&(Ge.unregisterInstance(te),e(30,te=void 0))});function H(we){Or[we?"unshift":"push"](()=>{it=we,e(6,it)})}const ae=()=>(F==="ltr"?Ut:qt)(1,"clamp"),dr=()=>(F==="ltr"?qt:Ut)(1,"clamp");return t.$$set=we=>{"componentContext"in we&&e(0,Y=we.componentContext),"layoutParams"in we&&e(1,Se=we.layoutParams)},t.$$.update=()=>{var we,It,Be,vt,ze,at,Et,Fe,dt,Kt,cr,pr,Gt;if(t.$$.dirty[0]&1&&e(38,n=Y.origJson),t.$$.dirty[1]&128&&n&&ft(),t.$$.dirty[0]&1&&Me(e(19,i=typeof((we=Y.json.item_builder)==null?void 0:we.data)=="string"?Y.getDerivedFromVars((It=Y.json.item_builder)==null?void 0:It.data,void 0,!0):(Be=Y.json.item_builder)!=null&&Be.data?qi(Y.json.item_builder.data):void 0)),t.$$.dirty[0]&1&&Z(e(18,o=Y.getDerivedFromVars(Y.json.layout_mode))),t.$$.dirty[0]&1&&pt(e(17,s=Y.getDerivedFromVars(Y.json.orientation))),t.$$.dirty[0]&1&&Te(e(16,a=Y.getDerivedFromVars(Y.json.item_spacing))),t.$$.dirty[0]&1&&z(e(15,l=Y.getDerivedFromVars(Y.json.paddings))),t.$$.dirty[0]&1&&Q(e(14,c=Y.getDerivedFromVars(Y.json.restrict_parent_scroll))),t.$$.dirty[0]&9|t.$$.dirty[1]&8192){let ht=[];if(Y.json.item_builder&&Array.isArray(Ue)&&Array.isArray(Y.json.item_builder.prototypes)){const Dt=Y.json.item_builder;ht=Ll(Ue,Ge,Y,Dt)}else ht=(Array.isArray(Y.json.items)&&Y.json.items||[]).map(Dt=>({div:Dt}));pe.forEach(Dt=>{Dt.destroy()}),e(3,pe=ht.map((Dt,Nt)=>Y.produceChildContext(Dt.div,{path:Nt,variables:Dt.vars,id:Dt.id})))}if(t.$$.dirty[0]&9){let ht=[];pe.forEach(Dt=>{ht.push(Y.getDerivedFromVars({width:Dt.json.width,height:Dt.json.height}))}),nt(e(7,gt=Zi(ht,Dt=>[...Dt])))}if(t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(D?D.type!=="percentage"&&D.type!=="fixed"?(e(33,rt=!0),Y.logError(ee(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):e(33,rt=!1):(e(33,rt=!0),Y.logError(ee(new Error('Empty "layout_mode" prop for div "pager"'))))),t.$$.dirty[0]&4|t.$$.dirty[1]&4096&&e(2,le=Rl(_e,le)),t.$$.dirty[1]&2048){const ht=he==null?void 0:he.value;ht&&Mn(ht)&&e(34,Qe=En(ht||0))}if(t.$$.dirty[0]&32|t.$$.dirty[1]&1040&&e(35,At=Io(W,F,At)),t.$$.dirty[0]&4&&e(37,u=le==="horizontal"?"grid-auto-columns":"grid-auto-rows"),t.$$.dirty[0]&37|t.$$.dirty[1]&520){if((D==null?void 0:D.type)==="fixed"){const ht=En(le==="horizontal"?((F==="ltr"?(vt=Y.json.paddings)==null?void 0:vt.start:(ze=Y.json.paddings)==null?void 0:ze.end)||((at=Y.json.paddings)==null?void 0:at.left)||0)+((F==="ltr"?(Et=Y.json.paddings)==null?void 0:Et.end:(Fe=Y.json.paddings)==null?void 0:Fe.start)||((dt=Y.json.paddings)==null?void 0:dt.right)||0):(((Kt=Y.json.paddings)==null?void 0:Kt.top)||0)+(((cr=Y.json.paddings)==null?void 0:cr.bottom)||0)),Dt=(pr=D.neighbour_page_width)==null?void 0:pr.value;e(36,fe=Dt?`calc(100% + ${ht} - 2 * ${En(Dt)} - 2 * ${Qe})`:"100%")}else if((D==null?void 0:D.type)==="percentage"){const ht=(Gt=D.page_width)==null?void 0:Gt.value;e(36,fe=`${Number(ht)}%`)}}if(t.$$.dirty[1]&120&&e(13,f={"grid-gap":Qe,padding:At,[u]:fe}),t.$$.dirty[0]&4&&e(12,h={orientation:le}),t.$$.dirty[1]&4&&e(4,p=rt),t.$$.dirty[0]&16|t.$$.dirty[1]&257&&e(11,b=x&&ut&&!p),t.$$.dirty[0]&1073741833&&Y.json){const ht=Y.getJsonWithVars(Y.json.default_item);typeof ht=="number"&&ht>=0&&ht<pe.length&&e(32,qe=C=ht),te&&(Ge.unregisterInstance(te),e(30,te=void 0)),Y.id&&!Y.fakeElement&&(e(30,te=Y.id),Ge.registerInstance(te,{setCurrentItem(Dt){if(Dt<0||Dt>pe.length-1)throw new Error('Item is out of range in "set-current-item" action');Jt(Dt)},setPreviousItem:Ut,setNextItem:qt,scrollToStart(){Jt(0)},scrollToEnd(){Jt(pe.length-1)}}))}t.$$.dirty[0]&40|t.$$.dirty[1]&2&&e(10,_=F==="ltr"?qe>0:qe+1<pe.length),t.$$.dirty[0]&40|t.$$.dirty[1]&2&&e(9,v=F==="ltr"?qe+1<pe.length:qe>0),t.$$.dirty[0]&8|t.$$.dirty[1]&2&&Oe(pe.length,qe),t.$$.dirty[1]&2&&yt(qe)},V(e(8,w=Ge.getStore("pagers"))),[Y,Se,le,pe,p,F,it,gt,w,v,_,b,h,f,c,l,a,s,o,i,Ze,Ee,ne,je,Ie,kt,Tt,$e,Ut,qt,te,ut,qe,rt,Qe,At,fe,u,n,x,D,W,he,_e,Ue,H,ae,dr]}class hm extends Wr{constructor(r){super(),Hr(this,r,dm,fm,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const _m="divkit-7560c",gm="divkit-42240",pm="divkit-49790",mm="divkit-2da15",bm="divkit-eb5df",ym="divkit-c146b",vm="divkit-bae27",wm="divkit-58b11",km="divkit-b49a3",xi={indicator:_m,indicator__scroller:gm,indicator__items:pm,indicator__item:mm,indicator_placement_default:bm,indicator__item_active:ym,indicator_direction_ltr:vm,indicator_direction_rtl:wm,indicator_placement_stretch:km};function vc(t,r,e){const n=t.slice();n[42]=r[e],n[45]=e;const i=n[45]===n[10].currentItem;return n[43]=i,n}function wc(t){let r,e=sr(Array(t[10].size)),n=[];for(let i=0;i<e.length;i+=1)n[i]=kc(vc(t,e,i));return{c(){for(let i=0;i<n.length;i+=1)n[i].c();r=Ne()},l(i){for(let o=0;o<n.length;o+=1)n[o].l(i);r=Ne()},m(i,o){for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(i,o);ie(i,r,o)},p(i,o){if(o[0]&12583936){e=sr(Array(i[10].size));let s;for(s=0;s<e.length;s+=1){const a=vc(i,e,s);n[s]?n[s].p(a,o):(n[s]=kc(a),n[s].c(),n[s].m(r.parentNode,r))}for(;s<n.length;s+=1)n[s].d(1);n.length=e.length}},d(i){i&&E(r),hn(n,i)}}}function kc(t){let r,e,n,i,o,s,a,l;function c(){return t[35](t[45])}return{c(){r=He("div"),this.h()},l(u){r=Je(u,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",e=bt("indicator__item",xi,{active:t[43]})+" "+nr.root__clickable),m(r,"role","tab"),m(r,"id",n=t[10].instId+"-tab-"+t[45]),m(r,"aria-controls",i=t[10].instId+"-panel-"+t[45]),m(r,"aria-selected",o=t[43]?"true":"false"),m(r,"tabindex",s=t[43]?0:-1)},m(u,f){ie(u,r,f),a||(l=[Ye(r,"click",c),Ye(r,"keydown",t[23])],a=!0)},p(u,f){t=u,f[0]&1024&&e!==(e=bt("indicator__item",xi,{active:t[43]})+" "+nr.root__clickable)&&m(r,"class",e),f[0]&1024&&n!==(n=t[10].instId+"-tab-"+t[45])&&m(r,"id",n),f[0]&1024&&i!==(i=t[10].instId+"-panel-"+t[45])&&m(r,"aria-controls",i),f[0]&1024&&o!==(o=t[43]?"true":"false")&&m(r,"aria-selected",o),f[0]&1024&&s!==(s=t[43]?0:-1)&&m(r,"tabindex",s)},d(u){u&&E(r),a=!1,Jr(l)}}}function Am(t){let r,e,n=t[10]&&wc(t);return{c(){r=He("div"),e=He("div"),n&&n.c(),this.h()},l(i){r=Je(i,"DIV",{class:!0});var o=De(r);e=Je(o,"DIV",{class:!0,role:!0});var s=De(e);n&&n.l(s),s.forEach(E),o.forEach(E),this.h()},h(){m(e,"class",xi.indicator__items),m(e,"role","tablist"),B(e,"margin",t[4]==="default"?`0 ${ke(Math.max(0,t[2].width-t[3].width)/2)}`:""),B(e,"--divkit-indicator-inactive-width",ke(t[3].width)),B(e,"--divkit-indicator-inactive-height",ke(t[3].height)),B(e,"--divkit-indicator-inactive-border-radius",ke(t[3].borderRadius)),B(e,"--divkit-indicator-inactive-background",t[3].background||""),B(e,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),B(e,"--divkit-indicator-active-width",ke(t[2].width)),B(e,"--divkit-indicator-active-height",ke(t[2].height)),B(e,"--divkit-indicator-active-border-radius",ke(t[2].borderRadius)),B(e,"--divkit-indicator-active-background",t[2].background||""),B(e,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),B(e,"--divkit-indicator-active-scale",t[2].width/t[3].width),B(e,"--divkit-indicator-default-margin",t[4]==="default"?`0 ${ke((t[5]-t[3].width)/2)}`:""),B(e,"--divkit-indicator-stretch-margin",t[4]==="stretch"?ke(t[7]):""),B(e,"--divkit-indicator-stretch-max-count",t[4]==="stretch"?t[6]:""),B(e,"--divkit-indicator-stretch-max-spacer",t[4]==="stretch"?ke((t[6]-1)*t[7]):""),m(r,"class",xi.indicator__scroller)},m(i,o){ie(i,r,o),St(r,e),n&&n.m(e,null),t[36](e),t[37](r)},p(i,o){i[10]?n?n.p(i,o):(n=wc(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null),o[0]&28&&B(e,"margin",i[4]==="default"?`0 ${ke(Math.max(0,i[2].width-i[3].width)/2)}`:""),o[0]&8&&B(e,"--divkit-indicator-inactive-width",ke(i[3].width)),o[0]&8&&B(e,"--divkit-indicator-inactive-height",ke(i[3].height)),o[0]&8&&B(e,"--divkit-indicator-inactive-border-radius",ke(i[3].borderRadius)),o[0]&8&&B(e,"--divkit-indicator-inactive-background",i[3].background||""),o[0]&8&&B(e,"--divkit-indicator-inactive-box-shadow",i[3].boxShadow||""),o[0]&4&&B(e,"--divkit-indicator-active-width",ke(i[2].width)),o[0]&4&&B(e,"--divkit-indicator-active-height",ke(i[2].height)),o[0]&4&&B(e,"--divkit-indicator-active-border-radius",ke(i[2].borderRadius)),o[0]&4&&B(e,"--divkit-indicator-active-background",i[2].background||""),o[0]&4&&B(e,"--divkit-indicator-active-box-shadow",i[2].boxShadow||""),o[0]&12&&B(e,"--divkit-indicator-active-scale",i[2].width/i[3].width),o[0]&56&&B(e,"--divkit-indicator-default-margin",i[4]==="default"?`0 ${ke((i[5]-i[3].width)/2)}`:""),o[0]&144&&B(e,"--divkit-indicator-stretch-margin",i[4]==="stretch"?ke(i[7]):""),o[0]&80&&B(e,"--divkit-indicator-stretch-max-count",i[4]==="stretch"?i[6]:""),o[0]&208&&B(e,"--divkit-indicator-stretch-max-spacer",i[4]==="stretch"?ke((i[6]-1)*i[7]):"")},d(i){i&&E(r),n&&n.d(),t[36](null),t[37](null)}}}function Em(t){let r,e;return r=new Cn({props:{cls:bt("indicator",xi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Am]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&2048&&(o.cls=bt("indicator",xi,n[11])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2044|i[1]&32768&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}const Zs=["rounded_rectangle","circle"];function jm(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v=S,w=()=>(v(),v=N(h,fe=>e(26,_=fe)),h),L,P=S,V=()=>(P(),P=N(u,fe=>e(27,L=fe)),u),F,x=S,D=()=>(x(),x=N(f,fe=>e(28,F=fe)),f),J,Z=S,W=()=>(Z(),Z=N(o,fe=>e(29,J=fe)),o),G,z=S,he=()=>(z(),z=N(s,fe=>e(30,G=fe)),s),ye,Te=S,_e=()=>(Te(),Te=N(i,fe=>e(31,ye=fe)),i),be,pt=S,Ue=()=>(pt(),pt=N(a,fe=>e(32,be=fe)),a),Re,Me=S,Ze=()=>(Me(),Me=N(c,fe=>e(33,Re=fe)),c),et,Q=S,Ee=()=>(Q(),Q=N(l,fe=>e(34,et=fe)),l);t.$$.on_destroy.push(()=>v()),t.$$.on_destroy.push(()=>P()),t.$$.on_destroy.push(()=>x()),t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>z()),t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>Q());let{componentContext:ge}=r,{layoutParams:nt=void 0}=r;const Y=Yr(tn),Se=Y.direction;un(t,Se,fe=>e(25,b=fe));let Ge={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},ne={width:10,height:10,borderRadius:5,background:"#33919cb5"},lt="default",je=15,Ie=10,kt=5,Tt,te,it;function ut(){e(4,lt="default"),e(5,je=15),e(6,Ie=10),e(7,kt=5),e(2,Ge={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),e(3,ne={width:10,height:10,borderRadius:5,background:"#33919cb5"})}async function gt(fe){if(ge.json.pager_id&&fe.has(ge.json.pager_id)&&(e(10,it=fe.get(ge.json.pager_id)),await jn(),te)){const pe=te.children[it.currentItem];if(pe){const ft=pe.offsetLeft;Tt.scroll({left:ft-Tt.clientWidth/2,behavior:"smooth"})}}}function qe(fe){fe!==it.currentItem&&it.scrollToPagerItem(fe)}function C(fe){if(fe.ctrlKey||fe.shiftKey||fe.altKey||fe.metaKey)return;const{size:pe,currentItem:ft}=it;if(fe.which===wf){const $e=ft-1<0?ft:ft-1;rt($e)}else if(fe.which===kf){const $e=ft+1>=pe?ft:ft+1;rt($e)}else if(fe.which===Af)rt(0);else if(fe.which===Ef)rt(pe-1);else return;fe.preventDefault()}async function rt(fe){it.scrollToPagerItem(fe),await jn();const pe=te.querySelector(`.${xi.indicator__item_active}`);pe&&pe.focus()}const le=fe=>qe(fe);function Qe(fe){Or[fe?"unshift":"push"](()=>{te=fe,e(9,te)})}function At(fe){Or[fe?"unshift":"push"](()=>{Tt=fe,e(8,Tt)})}return t.$$set=fe=>{"componentContext"in fe&&e(0,ge=fe.componentContext),"layoutParams"in fe&&e(1,nt=fe.layoutParams)},t.$$.update=()=>{var fe,pe;if(t.$$.dirty[0]&1&&e(24,n=ge.origJson),t.$$.dirty[0]&16777216&&n&&ut(),t.$$.dirty[0]&1&&_e(e(20,i=ge.getDerivedFromVars(ge.json.shape))),t.$$.dirty[0]&1&&W(e(19,o=ge.getDerivedFromVars(ge.json.active_item_color))),t.$$.dirty[0]&1&&he(e(18,s=ge.getDerivedFromVars(ge.json.inactive_item_color))),t.$$.dirty[0]&1&&Ue(e(17,a=ge.getDerivedFromVars(ge.json.active_item_size))),t.$$.dirty[0]&1&&Ee(e(16,l=ge.getDerivedFromVars(ge.json.active_shape))),t.$$.dirty[0]&1&&Ze(e(15,c=ge.getDerivedFromVars(ge.json.inactive_shape))),t.$$.dirty[0]&1&&V(e(14,u=ge.getDerivedFromVars(ge.json.space_between_centers))),t.$$.dirty[0]&1&&D(e(13,f=ge.getDerivedFromVars(ge.json.items_placement))),t.$$.dirty[0]&1610612748|t.$$.dirty[1]&15&&(et&&e(2,Ge=ei({type:"shape_drawable",shape:et},Zs,Ge)),Re&&e(3,ne=ei({type:"shape_drawable",shape:Re},Zs,ne)),!et&&!Re&&ye)){const ft=Kn(be,1.3);e(3,ne=ei({type:"shape_drawable",shape:ye,color:ne.background},Zs,ne)),e(3,ne.background=Mr(G,1,ne.background),ne),e(2,Ge={...ne,width:ne.width*ft,height:ne.height*ft,borderRadius:ne.borderRadius*ft,background:Ge.background}),e(2,Ge.background=Mr(J,1,Ge.background),Ge)}if(t.$$.dirty[0]&402653424)if(F&&(F.type==="default"||F.type==="stretch")){if(e(4,lt=F.type),lt==="default")e(5,je=Xr((fe=F.space_between_centers)==null?void 0:fe.value,je));else if(lt==="stretch"){const ft=F;e(6,Ie=Kn(ft.max_visible_items,Ie)),e(7,kt=Xr((pe=ft.item_spacing)==null?void 0:pe.value,kt))}}else e(4,lt="default"),L&&e(5,je=Xr(L.value,je));t.$$.dirty[0]&67108864&>(_),t.$$.dirty[0]&33554448&&e(11,p={placement:lt,direction:b})},w(e(12,h=Y.getStore("pagers"))),[ge,nt,Ge,ne,lt,je,Ie,kt,Tt,te,it,p,h,f,u,c,l,a,s,o,i,Se,qe,C,n,b,_,L,F,J,G,ye,be,Re,et,le,Qe,At]}class Cm extends Wr{constructor(r){super(),Hr(this,r,jm,Em,Ar,{componentContext:0,layoutParams:1},null,[-1,-1])}}const Sm="divkit-99f56",Vm="divkit-96503",Im="divkit-1ee78",Dm="divkit-67789",Tm="divkit-38304",Fm="divkit-c5ec2",Mm="divkit-5332e",Pm="divkit-f188a",Nm="divkit-cdb6d",Om="divkit-dbdf0",Nr={slider:Sm,slider__input:Vm,slider__input_secondary:Im,slider__thumb:Dm,slider_direction_rtl:Tm,slider__thumb_secondary:Fm,"slider__tracks-wrapper":"divkit-d7767","slider__tracks-inner":"divkit-fd4b7",slider__track:Mm,"slider__active-track":"divkit-5d67f","slider__thumb-text":"divkit-23468","slider__thumb-text_secondary":"divkit-f2ab9",slider__tick:Pm,slider__tick_active:Nm,slider__tick_inactive:Om};function Ac(t,r){var o,s;if(!t||!t.font_size)return r;const e=t.offset,n=t.text_color&&Mr(t.text_color)||"#000",i=go(t.font_weight,t.font_weight_value,void 0);if(Pn(t.font_size)&&n!=="transparent"){const a={fontSize:ke(t.font_size),fontWeight:i,textColor:n};return typeof((o=e==null?void 0:e.x)==null?void 0:o.value)=="number"&&typeof((s=e==null?void 0:e.y)==null?void 0:s.value)=="number"&&(a.offset={x:e.x.value,y:e.y.value}),a}}function Ci(t,r,e){return Math.max(r,Math.min(e,Number(t)))}function Hl(t){return BigInt(t)}const Mo=Hl("9223372036854775807"),Po=Hl("-9223372036854775808");function ln(t){const r=Hl(t);if(r>Mo||r<Po)throw new Error("Integer overflow.");return r}const $i=ln(0);function Tf(t){let r=t;return r<0&&(r=-r),r}function Ff(t){let r=0;return t>0?r=1:t<0&&(r=-1),ln(r)}class Ii{constructor(r,e){ur(this,"name");ur(this,"value");ur(this,"store");const n=this.convertValue(e);this.name=r,this.value=n}getName(){return this.name}subscribe(r){return this.store||(this.store=hi(this.value)),this.store.subscribe(r)}set(r){const e=this.fromString(r);this.setValue(e)}setValue(r){const e=this.convertValue(r);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class Mf extends Ii{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"string"}}class Pf extends Ii{convertValue(r){if(typeof r!="bigint"&&typeof r!="number")throw new Error("Incorrect variable value");try{return ln(r)}catch{throw new Error("Incorrect variable value")}}fromString(r){try{return ln(r)}catch{throw new Error("Incorrect variable value")}}getType(){return"integer"}}class Nf extends Ii{convertValue(r){if(typeof r!="number"||Number.isNaN(r)||!isFinite(r))throw new Error("Incorrect variable value");return r}fromString(r){const e=Number(r);return this.convertValue(e)}getType(){return"number"}}class Of extends Ii{convertValue(r){if(r!==1&&r!==0&&r!==!0&&r!==!1)throw new Error("Incorrect variable value");return Number(r)}fromString(r){if(r==="1"||r==="true")return 1;if(r==="0"||r==="false")return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class zf extends Ii{convertValue(r){if(typeof r!="string"||!Si(r))throw new Error("Incorrect variable value");return r}fromString(r){return this.convertValue(r)}getType(){return"color"}}class Lf extends Ii{convertValue(r){if(typeof r!="string")throw new Error("Incorrect variable value");return r}fromString(r){return r}getType(){return"url"}}class Rf extends Ii{convertValue(r){if(typeof r!="object"||!r)throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class Bf extends Ii{convertValue(r){if(!Array.isArray(r))throw new Error("Incorrect variable value");return r}fromString(r){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ll={string:Mf,number:Nf,integer:Pf,boolean:Of,color:zf,url:Lf,dict:Rf,array:Bf};function pi(t,r,e){if(!(r in ll))throw new Error("Unsupported variable type");return new ll[r](t,e)}function zm(){}function Lm(t){return t(this.value),zm}function Ec(){throw new Error("Cannot change the value of this type of variable")}class Rm extends Mf{}class Bm extends Nf{}class Hm extends Pf{}class Wm extends Of{}class Um extends zf{}class Gm extends Lf{}class Ym extends Rf{}class Jm extends Bf{}class qm extends Ii{convertValue(r){if(!(r instanceof Date))throw new Error("Incorrect variable value");return r}fromString(){throw new Error("Datetime variable does not support setter from string")}getType(){return"datetime"}}const As={string:Rm,number:Bm,integer:Hm,boolean:Wm,color:Um,url:Gm,dict:Ym,array:Jm,datetime:qm};for(const t in As){const r=As[t];r.prototype.subscribe=Lm,r.prototype.set=Ec,r.prototype.setValue=Ec}function al(t,r,e){if(!(r in As))throw new Error("Unsupported variable type");return new As[r](t,e)}function Km(t){return{type:t.getType(),value:t.getValue()}}function jc(t,r,e){const n=t.slice();return n[81]=r[e],n}function Cc(t,r,e){const n=t.slice();return n[81]=r[e],n}function Xm(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Zm(t){let r,e;return r=new Cn({props:{cls:bt("slider",Nr,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Qm,({focusHandler:n,blurHandler:i})=>({79:n,80:i}),({focusHandler:n,blurHandler:i})=>[0,0,(n?131072:0)|(i?262144:0)]]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&33554432&&(o.cls=bt("slider",Nr,n[25])),i[0]&67108864&&(o.style=n[26]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&411037692|i[2]&17170432&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Sc(t){let r;return{c(){r=He("div"),this.h()},l(e){r=Je(e,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Nr.slider__tick+" "+Nr.slider__tick_active),B(r,"--divkit-slider-tick",t[81])},m(e,n){ie(e,r,n)},p(e,n){n[0]&524288&&B(r,"--divkit-slider-tick",e[81])},d(e){e&&E(r)}}}function Vc(t){let r;return{c(){r=He("div"),this.h()},l(e){r=Je(e,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Nr.slider__tick+" "+Nr.slider__tick_inactive),B(r,"--divkit-slider-tick",t[81])},m(e,n){ie(e,r,n)},p(e,n){n[0]&1048576&&B(r,"--divkit-slider-tick",e[81])},d(e){e&&E(r)}}}function Ic(t){let r,e,n;return{c(){r=He("div"),e=He("div"),n=Zn(t[13]),this.h()},l(i){r=Je(i,"DIV",{class:!0});var o=De(r);e=Je(o,"DIV",{class:!0});var s=De(e);n=yi(s,t[13]),s.forEach(E),o.forEach(E),this.h()},h(){var i,o,s;m(e,"class",Nr["slider__thumb-text-inner"]),B(e,"font-size",((i=t[9])==null?void 0:i.fontSize)||"1em"),B(e,"font-weight",((o=t[9])==null?void 0:o.fontWeight)||""),B(e,"color",((s=t[9])==null?void 0:s.textColor)||"#000"),m(r,"class",Nr["slider__thumb-text"])},m(i,o){ie(i,r,o),St(r,e),St(e,n)},p(i,o){var s,a,l;o[0]&8192&&Oi(n,i[13]),o[0]&512&&B(e,"font-size",((s=i[9])==null?void 0:s.fontSize)||"1em"),o[0]&512&&B(e,"font-weight",((a=i[9])==null?void 0:a.fontWeight)||""),o[0]&512&&B(e,"color",((l=i[9])==null?void 0:l.textColor)||"#000")},d(i){i&&E(r)}}}function Dc(t){let r,e=t[10]&&Tc(t);return{c(){r=He("div"),e&&e.c(),this.h()},l(n){r=Je(n,"DIV",{class:!0});var i=De(r);e&&e.l(i),i.forEach(E),this.h()},h(){m(r,"class",Nr.slider__thumb+" "+Nr.slider__thumb_secondary),B(r,"border-radius",ke(t[6].borderRadius)),B(r,"background",t[6].background),B(r,"box-shadow",t[6].boxShadow||"")},m(n,i){ie(n,r,i),e&&e.m(r,null)},p(n,i){n[10]?e?e.p(n,i):(e=Tc(n),e.c(),e.m(r,null)):e&&(e.d(1),e=null),i[0]&64&&B(r,"border-radius",ke(n[6].borderRadius)),i[0]&64&&B(r,"background",n[6].background),i[0]&64&&B(r,"box-shadow",n[6].boxShadow||"")},d(n){n&&E(r),e&&e.d()}}}function Tc(t){let r,e,n;return{c(){r=He("div"),e=He("div"),n=Zn(t[14]),this.h()},l(i){r=Je(i,"DIV",{class:!0});var o=De(r);e=Je(o,"DIV",{class:!0});var s=De(e);n=yi(s,t[14]),s.forEach(E),o.forEach(E),this.h()},h(){var i,o,s;m(e,"class",Nr["slider__thumb-text-inner"]),B(e,"font-size",((i=t[10])==null?void 0:i.fontSize)||"1em"),B(e,"font-weight",((o=t[10])==null?void 0:o.fontWeight)||""),B(e,"color",((s=t[10])==null?void 0:s.textColor)||"#000"),m(r,"class",Nr["slider__thumb-text"]+" "+Nr["slider__thumb-text_secondary"])},m(i,o){ie(i,r,o),St(r,e),St(e,n)},p(i,o){var s,a,l;o[0]&16384&&Oi(n,i[14]),o[0]&1024&&B(e,"font-size",((s=i[10])==null?void 0:s.fontSize)||"1em"),o[0]&1024&&B(e,"font-weight",((a=i[10])==null?void 0:a.fontWeight)||""),o[0]&1024&&B(e,"color",((l=i[10])==null?void 0:l.textColor)||"#000")},d(i){i&&E(r)}}}function Fc(t){let r,e,n,i,o,s;return{c(){r=He("input"),this.h()},l(a){r=Je(a,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){m(r,"type","range"),m(r,"class",e=t[18]?Nr.slider__input:`${Nr.slider__input} ${Nr.slider__input_secondary}`),m(r,"min",t[3]),m(r,"max",t[4]),m(r,"step","1"),r.value=n=t[18]?t[13]:t[14],r.disabled=i=!t[11],m(r,"aria-label",t[22])},m(a,l){ie(a,r,l),o||(s=[Ye(r,"input",t[72]),Ye(r,"mousedown",function(){Vr(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)}),Ye(r,"touchstart",function(){Vr(t[15]?t[43]:null)&&(t[15]?t[43]:null).apply(this,arguments)}),Ye(r,"focus",function(){Vr(t[79])&&t[79].apply(this,arguments)}),Ye(r,"blur",function(){Vr(t[80])&&t[80].apply(this,arguments)})],o=!0)},p(a,l){t=a,l[0]&262144&&e!==(e=t[18]?Nr.slider__input:`${Nr.slider__input} ${Nr.slider__input_secondary}`)&&m(r,"class",e),l[0]&8&&m(r,"min",t[3]),l[0]&16&&m(r,"max",t[4]),l[0]&286720&&n!==(n=t[18]?t[13]:t[14])&&(r.value=n),l[0]&2048&&i!==(i=!t[11])&&(r.disabled=i),l[0]&4194304&&m(r,"aria-label",t[22])},d(a){a&&E(r),o=!1,Jr(s)}}}function Qm(t){let r,e,n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P=sr(t[19]),V=[];for(let W=0;W<P.length;W+=1)V[W]=Sc(Cc(t,P,W));let F=sr(t[20]),x=[];for(let W=0;W<F.length;W+=1)x[W]=Vc(jc(t,F,W));let D=t[9]&&Ic(t),J=t[15]&&Dc(t),Z=t[15]&&Fc(t);return{c(){r=He("div"),e=He("div"),n=He("div"),i=yr(),o=He("div"),s=yr();for(let W=0;W<V.length;W+=1)V[W].c();a=yr();for(let W=0;W<x.length;W+=1)x[W].c();l=yr(),c=He("div"),D&&D.c(),u=yr(),J&&J.c(),f=yr(),h=He("input"),v=yr(),Z&&Z.c(),this.h()},l(W){r=Je(W,"DIV",{class:!0});var G=De(r);e=Je(G,"DIV",{class:!0});var z=De(e);n=Je(z,"DIV",{class:!0}),De(n).forEach(E),i=vr(z),o=Je(z,"DIV",{class:!0}),De(o).forEach(E),s=vr(z);for(let ye=0;ye<V.length;ye+=1)V[ye].l(z);a=vr(z);for(let ye=0;ye<x.length;ye+=1)x[ye].l(z);l=vr(z),c=Je(z,"DIV",{class:!0});var he=De(c);D&&D.l(he),he.forEach(E),u=vr(z),J&&J.l(z),f=vr(z),h=Je(z,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),v=vr(z),Z&&Z.l(z),z.forEach(E),G.forEach(E),this.h()},h(){m(n,"class",Nr.slider__track),B(n,"height",ke(t[7].height)),B(n,"border-radius",ke(t[7].borderRadius)),B(n,"background",t[7].background),B(n,"box-shadow",t[7].boxShadow||""),m(o,"class",Nr["slider__active-track"]),B(o,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),B(o,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),B(o,"width",(t[28]*100).toFixed(2)+"%"),B(o,"height",ke(t[8].height)),B(o,"border-radius",ke(t[8].borderRadius)),B(o,"background",t[8].background),B(o,"box-shadow",t[8].boxShadow||""),m(c,"class",Nr.slider__thumb),B(c,"border-radius",ke(t[5].borderRadius)),B(c,"background",t[5].background),B(c,"box-shadow",t[5].boxShadow||""),m(h,"type","range"),m(h,"class",p=t[18]?`${Nr.slider__input} ${Nr.slider__input_secondary}`:Nr.slider__input),m(h,"min",t[3]),m(h,"max",t[4]),m(h,"step","1"),h.value=b=t[18]?t[14]:t[13],h.disabled=_=!t[11],m(h,"aria-label",t[21]),m(e,"class",Nr["slider__tracks-inner"]),m(r,"class",Nr["slider__tracks-wrapper"])},m(W,G){ie(W,r,G),St(r,e),St(e,n),St(e,i),St(e,o),St(e,s);for(let z=0;z<V.length;z+=1)V[z]&&V[z].m(e,null);St(e,a);for(let z=0;z<x.length;z+=1)x[z]&&x[z].m(e,null);St(e,l),St(e,c),D&&D.m(c,null),St(e,u),J&&J.m(e,null),St(e,f),St(e,h),t[71](h),St(e,v),Z&&Z.m(e,null),t[73](e),w||(L=[Ye(h,"input",t[70]),Ye(h,"focus",function(){Vr(t[79])&&t[79].apply(this,arguments)}),Ye(h,"blur",function(){Vr(t[80])&&t[80].apply(this,arguments)})],w=!0)},p(W,G){if(t=W,G[0]&128&&B(n,"height",ke(t[7].height)),G[0]&128&&B(n,"border-radius",ke(t[7].borderRadius)),G[0]&128&&B(n,"background",t[7].background),G[0]&128&&B(n,"box-shadow",t[7].boxShadow||""),G[0]&134283264&&B(o,"left",t[16]==="ltr"?(t[27]*100).toFixed(2)+"%":void 0),G[0]&134283264&&B(o,"right",t[16]==="ltr"?void 0:(t[27]*100).toFixed(2)+"%"),G[0]&268435456&&B(o,"width",(t[28]*100).toFixed(2)+"%"),G[0]&256&&B(o,"height",ke(t[8].height)),G[0]&256&&B(o,"border-radius",ke(t[8].borderRadius)),G[0]&256&&B(o,"background",t[8].background),G[0]&256&&B(o,"box-shadow",t[8].boxShadow||""),G[0]&524288){P=sr(t[19]);let z;for(z=0;z<P.length;z+=1){const he=Cc(t,P,z);V[z]?V[z].p(he,G):(V[z]=Sc(he),V[z].c(),V[z].m(e,a))}for(;z<V.length;z+=1)V[z].d(1);V.length=P.length}if(G[0]&1048576){F=sr(t[20]);let z;for(z=0;z<F.length;z+=1){const he=jc(t,F,z);x[z]?x[z].p(he,G):(x[z]=Vc(he),x[z].c(),x[z].m(e,l))}for(;z<x.length;z+=1)x[z].d(1);x.length=F.length}t[9]?D?D.p(t,G):(D=Ic(t),D.c(),D.m(c,null)):D&&(D.d(1),D=null),G[0]&32&&B(c,"border-radius",ke(t[5].borderRadius)),G[0]&32&&B(c,"background",t[5].background),G[0]&32&&B(c,"box-shadow",t[5].boxShadow||""),t[15]?J?J.p(t,G):(J=Dc(t),J.c(),J.m(e,f)):J&&(J.d(1),J=null),G[0]&262144&&p!==(p=t[18]?`${Nr.slider__input} ${Nr.slider__input_secondary}`:Nr.slider__input)&&m(h,"class",p),G[0]&8&&m(h,"min",t[3]),G[0]&16&&m(h,"max",t[4]),G[0]&286720&&b!==(b=t[18]?t[14]:t[13])&&(h.value=b),G[0]&2048&&_!==(_=!t[11])&&(h.disabled=_),G[0]&2097152&&m(h,"aria-label",t[21]),t[15]?Z?Z.p(t,G):(Z=Fc(t),Z.c(),Z.m(e,null)):Z&&(Z.d(1),Z=null)},d(W){W&&E(r),hn(V,W),hn(x,W),D&&D.d(),J&&J.d(),t[71](null),Z&&Z.d(),t[73](null),w=!1,Jr(L)}}}function xm(t){let r,e,n,i,o,s;const a=[Zm,Xm],l=[];function c(u,f){return u[12]?-1:0}return~(r=c(t))&&(e=l[r]=a[r](t)),{c(){e&&e.c(),n=Ne()},l(u){e&&e.l(u),n=Ne()},m(u,f){~r&&l[r].m(u,f),ie(u,n,f),i=!0,o||(s=Ye(window,"resize",t[45]),o=!0)},p(u,f){let h=r;r=c(u),r===h?~r&&l[r].p(u,f):(e&&(lr(),re(l[h],1,1,()=>{l[h]=null}),ar()),~r?(e=l[r],e?e.p(u,f):(e=l[r]=a[r](u),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(u){i||(U(e),i=!0)},o(u){re(e),i=!1},d(u){u&&E(n),~r&&l[r].d(u),o=!1,s()}}}const Rn={width:10,height:10,borderRadius:5,background:"#000"},Bo=["rounded_rectangle","circle"],Mc=["rounded_rectangle"];function Ho(t,r,e,n,i){let o=[];if(i)for(let s=t;s<r;++s)o.push((s-e)/(n-e));else{for(let s=e;s<t;++s)o.push((s-e)/(n-e));for(let s=r;s<n+1;++s)o.push((s-e)/(n-e))}return o}function $m(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J,Z,W,G,z,he,ye,Te=S,_e=()=>(Te(),Te=N(P,Le=>e(55,ye=Le)),P),be,pt=S,Ue=()=>(pt(),pt=N(V,Le=>e(56,be=Le)),V),Re,Me=S,Ze=()=>(Me(),Me=N(L,Le=>e(57,Re=Le)),L),et,Q=S,Ee=()=>(Q(),Q=N(w,Le=>e(58,et=Le)),w),ge,nt=S,Y=()=>(nt(),nt=N(v,Le=>e(59,ge=Le)),v),Se,Ge=S,ne=()=>(Ge(),Ge=N(_,Le=>e(60,Se=Le)),_),lt,je=S,Ie=()=>(je(),je=N(b,Le=>e(61,lt=Le)),b),kt,Tt=S,te=()=>(Tt(),Tt=N(p,Le=>e(62,kt=Le)),p),it,ut=S,gt=()=>(ut(),ut=N(h,Le=>e(63,it=Le)),h),qe,C=S,rt=()=>(C(),C=N(f,Le=>e(64,qe=Le)),f),le,Qe=S,At=()=>(Qe(),Qe=N(u,Le=>e(65,le=Le)),u),fe,pe=S,ft=()=>(pe(),pe=N(a,Le=>e(66,fe=Le)),a),$e,tr=S,Ot=()=>(tr(),tr=N(s,Le=>e(67,$e=Le)),s),Qt,Oe=S,yt=()=>(Oe(),Oe=N(c,Le=>e(68,Qt=Le)),c),Jt,Ut=S,qt=()=>(Ut(),Ut=N(l,Le=>e(69,Jt=Le)),l);t.$$.on_destroy.push(()=>Te()),t.$$.on_destroy.push(()=>pt()),t.$$.on_destroy.push(()=>Me()),t.$$.on_destroy.push(()=>Q()),t.$$.on_destroy.push(()=>nt()),t.$$.on_destroy.push(()=>Ge()),t.$$.on_destroy.push(()=>je()),t.$$.on_destroy.push(()=>Tt()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>C()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>pe()),t.$$.on_destroy.push(()=>tr()),t.$$.on_destroy.push(()=>Oe()),t.$$.on_destroy.push(()=>Ut());let{componentContext:H}=r,{layoutParams:ae=void 0}=r;const dr=Yr(tn),we=Yr(ws),It=dr.direction;un(t,It,Le=>e(16,he=Le));let Be,vt,ze,at=!1,Et=0,Fe=100,dt=Rn,Kt=dt,cr=Rn,pr=Rn,Gt,ht=null,Dt,Nt=null,rr,ir=rr,Er="",zr="",qr=!0,Xe=!1;function hr(){e(5,dt=Rn),e(6,Kt=dt),e(7,cr=Rn),e(8,pr=Rn),e(47,ht=null),e(48,Nt=null),e(9,rr=void 0),e(10,ir=void 0),e(21,Er=""),e(11,qr=!0),e(22,zr="")}let Ae=Ci($e||0,Et,Fe),K=Ci(fe||0,Et,Fe);function jr(Le){var de,d;if(!qr)return;const mt="pageX"in Le?Le.pageX:(d=(de=Le.changedTouches)==null?void 0:de[0])==null?void 0:d.pageX;if(mt===void 0)return;const ct=ze.getBoundingClientRect();let Ct=(mt-ct.left)/ct.width;he==="rtl"&&(Ct=1-Ct);const Xt=Et+(Fe-Et)*Ct,T=Math.round(Ci(Xt,Et,Fe)),ot=(Ae+K)/2;e(18,at=T<ot==Ae<K)}function Cr(Le,mt){const ct=Number(Le.target.value);at===(mt==="first")?(e(14,K=ct),a.setValue(ct)):(e(13,Ae=ct),s.setValue(ct))}let zt=!1;function $r(){if(!ze)return;const Le=Fe-Et,mt=(ht==null?void 0:ht.width)||0,ct=(Nt==null?void 0:Nt.width)||0;Math.max(mt,ct)*Le>=(ze==null?void 0:ze.clientWidth)?zt||(H.logError(ee(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Ve=Rs($r,50);ii(()=>{$r()}),fn(()=>{Be&&(dr.unregisterFocusable(Be),e(46,Be=void 0))});const Lt=Le=>Cr(Le,"first");function _r(Le){Or[Le?"unshift":"push"](()=>{vt=Le,e(2,vt)})}const xe=Le=>Cr(Le,"second");function Ft(Le){Or[Le?"unshift":"push"](()=>{ze=Le,e(17,ze)})}return t.$$set=Le=>{"componentContext"in Le&&e(0,H=Le.componentContext),"layoutParams"in Le&&e(1,ae=Le.layoutParams)},t.$$.update=()=>{var Le,mt,ct,Ct;if(t.$$.dirty[0]&1&&e(54,n=H.origJson),t.$$.dirty[1]&8388608&&n&&hr(),t.$$.dirty[0]&1&&e(53,i=H.json.thumb_value_variable),t.$$.dirty[0]&1&&e(15,o=H.json.thumb_secondary_value_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&4194304&&Ot(e(23,s=i&&H.getVariable(i,"integer")||pi("temp","integer",0))),t.$$.dirty[0]&32769&&ft(e(24,a=o&&H.getVariable(o,"integer")||pi("temp","integer",0))),t.$$.dirty[0]&1&&qt(e(41,l=H.getDerivedFromVars(H.json.min_value))),t.$$.dirty[0]&1&&yt(e(40,c=H.getDerivedFromVars(H.json.max_value))),t.$$.dirty[0]&1&&At(e(39,u=H.getDerivedFromVars(H.json.thumb_style))),t.$$.dirty[0]&1&&rt(e(38,f=H.getDerivedFromVars(H.json.thumb_secondary_style))),t.$$.dirty[0]&1&>(e(37,h=H.getDerivedFromVars(H.json.track_inactive_style))),t.$$.dirty[0]&1&&te(e(36,p=H.getDerivedFromVars(H.json.track_active_style))),t.$$.dirty[0]&1&&Ie(e(35,b=H.getDerivedFromVars(H.json.tick_mark_active_style))),t.$$.dirty[0]&1&&ne(e(34,_=H.getDerivedFromVars(H.json.tick_mark_inactive_style))),t.$$.dirty[0]&1&&Y(e(33,v=H.getDerivedFromVars(H.json.thumb_text_style))),t.$$.dirty[0]&1&&Ee(e(32,w=H.getDerivedFromVars(H.json.thumb_secondary_text_style))),t.$$.dirty[0]&1&&Ze(e(31,L=H.getDerivedFromVars(H.json.accessibility))),t.$$.dirty[0]&1&&_e(e(30,P=H.getDerivedFromVars(H.json.secondary_value_accessibility))),t.$$.dirty[0]&1&&Ue(e(29,V=H.getDerivedFromVars(H.json.is_enabled))),t.$$.dirty[0]&24|t.$$.dirty[2]&192&&(e(3,Et=uo(Jt,Et)),e(4,Fe=uo(Qt,Fe)),$r()),t.$$.dirty[0]&8216|t.$$.dirty[2]&32){const Xt=Ci($e||0,Et,Fe);Xt!==Ae&&e(13,Ae=Xt)}if(t.$$.dirty[0]&16408|t.$$.dirty[2]&16){const Xt=Ci(fe||0,Et,Fe);Xt!==K&&e(14,K=Xt)}if(t.$$.dirty[0]&32|t.$$.dirty[2]&8&&e(5,dt=ei(le,Bo,dt)),t.$$.dirty[0]&32|t.$$.dirty[2]&4&&e(6,Kt=ei(qe,Bo,dt)),t.$$.dirty[0]&128|t.$$.dirty[2]&2&&e(7,cr=ei(it,Mc,cr)),t.$$.dirty[0]&256|t.$$.dirty[2]&1&&e(8,pr=ei(kt,Mc,pr)),t.$$.dirty[1]&1073741824){let Xt=ei(lt,Bo,Rn);Xt!==Rn&&e(47,ht=Xt)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&65536&&(ht?(e(19,Gt=o?Ho(Math.min(Ae,K),Math.max(Ae,K)+1,Et,Fe,!0):Ho(Et,Ae,Et,Fe,!0)),$r()):e(19,Gt=[])),t.$$.dirty[1]&536870912){let Xt=ei(Se,Bo,Rn);Xt!==Rn&&e(48,Nt=Xt)}if(t.$$.dirty[0]&57368|t.$$.dirty[1]&131072&&(Nt?(e(20,Dt=o?Ho(Math.min(Ae,K),Math.max(Ae,K)+1,Et,Fe,!1):Ho(Ae+1,Fe+1,Et,Fe,!0)),$r()):e(20,Dt=[])),t.$$.dirty[0]&512|t.$$.dirty[1]&268435456&&e(9,rr=Ac(ge,rr)),t.$$.dirty[0]&512|t.$$.dirty[1]&134217728&&e(10,ir=Ac(et,rr)),t.$$.dirty[0]&1|t.$$.dirty[1]&67108864&&(Re!=null&&Re.description?e(21,Er=Re.description):H.logError(ee(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&2048|t.$$.dirty[1]&33554432&&e(11,qr=ti(be,qr)),t.$$.dirty[0]&32769|t.$$.dirty[1]&16777216&&(ye!=null&&ye.description?e(22,zr=ye.description):o&&H.logError(ee(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),t.$$.dirty[0]&4513){let Xt=!1;we.hasAction()?(H.logError(ee(new Error('Cannot show "slider" inside component with action'))),Xt=!0):dt===Rn?(H.logError(ee(new Error('Missing "thumb_style" in slider'))),Xt=!0):pr===Rn?(H.logError(ee(new Error('Missing "track_active_style" in slider'))),Xt=!0):cr===Rn&&(H.logError(ee(new Error('Missing "track_inactive_style" in slider'))),Xt=!0),Xt!==Xe&&e(12,Xe=Xt)}t.$$.dirty[0]&96&&e(52,F=ke(Math.max(...[dt.width,Kt.width,0].filter(Mn)))),t.$$.dirty[0]&96&&e(51,x=ke(Math.max(...[dt.height,Kt.height,0].filter(Mn)))),t.$$.dirty[0]&8216&&e(50,D=(Ae-Et)/(Fe-Et)),t.$$.dirty[0]&49176&&e(49,J=o?(K-Et)/(Fe-Et):void 0),t.$$.dirty[1]&786432&&e(28,Z=J!==void 0?Math.abs(J-D):D),t.$$.dirty[1]&786432&&e(27,W=J!==void 0?Math.min(J,D):0),t.$$.dirty[0]&1632|t.$$.dirty[1]&4128768&&e(26,G={"--divkit-slider-thumb-width":ke(dt.width),"--divkit-slider-thumb-height":ke(dt.height),"--divkit-slider-thumb-secondary-width":ke(Kt.width),"--divkit-slider-thumb-secondary-height":ke(Kt.height),"--divkit-slider-text-offset-x":(Le=rr==null?void 0:rr.offset)!=null&&Le.x?En(rr.offset.x):void 0,"--divkit-slider-text-offset-y":(mt=rr==null?void 0:rr.offset)!=null&&mt.y?En(rr.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(ct=ir==null?void 0:ir.offset)!=null&&ct.x?En(ir.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(Ct=ir==null?void 0:ir.offset)!=null&&Ct.y?En(ir.offset.y):void 0,"--divkit-slider-tick-active-width":ht?ke(ht.width):void 0,"--divkit-slider-tick-active-height":ht?ke(ht.height):void 0,"--divkit-slider-tick-active-border-radius":ht?ke(ht.borderRadius):void 0,"--divkit-slider-tick-active-background":(ht==null?void 0:ht.background)||void 0,"--divkit-slider-tick-active-box-shadow":(ht==null?void 0:ht.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?ke(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?ke(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?ke(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(Nt==null?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(Nt==null?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":F,"--divkit-slider-max-thumb-height":x,"--divkit-slider-track-part":D,"--divkit-slider-track-secondary-part":J}),t.$$.dirty[0]&65536&&e(25,z={direction:he}),t.$$.dirty[0]&5|t.$$.dirty[1]&32768&&H.json&&vt&&(Be&&(dr.unregisterFocusable(Be),e(46,Be=void 0)),H.id&&!H.fakeElement&&(e(46,Be=H.id),dr.registerFocusable(Be,{focus(){vt&&vt.focus()}})))},[H,ae,vt,Et,Fe,dt,Kt,cr,pr,rr,ir,qr,Xe,Ae,K,o,he,ze,at,Gt,Dt,Er,zr,s,a,z,G,W,Z,V,P,L,w,v,_,b,p,h,f,u,c,l,It,jr,Cr,Ve,Be,ht,Nt,J,D,x,F,i,n,ye,be,Re,et,ge,Se,lt,kt,it,qe,le,fe,$e,Qt,Jt,Lt,_r,xe,Ft]}class e0 extends Wr{constructor(r){super(),Hr(this,r,$m,xm,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}}const t0="divkit-49edd",r0="divkit-cadcd",n0="divkit-0dfa7",i0="divkit-88914",o0="divkit-e1c57",s0="divkit-11674",mi={input:t0,"input_alignment-horizontal_center":"divkit-e82eb","input_alignment-horizontal_end":"divkit-cfa85",input__aligner:r0,input__input:n0,input__placeholder:i0,"input_alignment-vertical_start":"divkit-492f7","input_alignment-vertical_end":"divkit-4c2c2","input_alignment-vertical_baseline":"divkit-3545c","input_highlight-color":"divkit-2db43",input__input_singleline:o0,"input__scroll-wrapper":"divkit-20542",input__input_multiline:s0,"input__input_has-custom-focus":"divkit-26a87"};function Wl(t,r){if(t===r)return{start:t.length,added:0,removed:0};if(t.length>r.length){const o=Wl(r,t);return{start:o.start,added:o.removed,removed:o.added}}let e=0,n=r.length-1;const i=r.length-t.length;for(;e<n&&e<t.length&&t[e]===r[e];)++e;for(;n-i>=e&&t[n-i]===r[n];)--n;return++n,{start:e,added:n-e,removed:n-e-i}}class Pc{constructor(r){this.char=r}}class ui{constructor(r,e,n){this.char=r,this.filter=e,this.placeholder=n}}class Hf{constructor(r){ur(this,"maskData");ur(this,"filters",new Map);ur(this,"destructedValue",[]);ur(this,"cursorPos",0);this.maskData=r,this.updateMaskData(r)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let r="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof Pc)r+=n.char;else if(n instanceof ui)if(n.char)r+=n.char;else if(this.maskData.alwaysVisible)r+=n.placeholder;else break}return r}firstEmptyHolderIndex(){const r=this.destructedValue.findIndex(e=>e instanceof ui&&!e.char);return r!==-1?r:this.destructedValue.length}updateMaskData(r,e=!0){const n=this.maskData!==r&&e?this.rawValue:null;this.filters=new Map,this.maskData=r,this.maskData.decoding.forEach(i=>{if(i.filter)try{const o=new RegExp(i.filter);this.filters.set(i.key,o)}catch(o){this.onException(ee(o,{level:"error",additional:{key:i.key}}))}}),this.destructedValue=this.maskData.pattern.split("").map(i=>{const o=this.maskData.decoding.find(s=>s.key===i);return o?new ui(null,this.filters.get(o.key),o.placeholder):new Pc(i)}),n!==null&&this.overrideRawValue(n)}overrideRawValue(r){this.clearRange(0,this.destructedValue.length),this.replaceChars(r,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(r,e){const n=Wl(this.value,r);e!==void 0&&(n.start=Math.max(0,e-n.added));const i=this.buildBodySubstring(n,r),o=this.buildTailSubstring(n);this.cleanup(n);const s=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,s):void 0;this.replaceChars(i,s,a);const l=this.firstEmptyHolderIndex();this.replaceChars(o,l),this.calculateCursorPosition(n,l)}buildBodySubstring(r,e){return e.substring(r.start,r.start+r.added)}buildTailSubstring(r){return this.collectValueRange(r.start+r.removed,this.destructedValue.length-1)}calculateMaxShift(r,e){if(this.filters.size<=1){let o=0,s=e;for(;s<this.destructedValue.length;)this.destructedValue[s]instanceof ui&&++o,++s;return Math.max(0,o-r.length)}const n=this.calculateInsertableSubstring(r,e);let i=0;for(;i<this.destructedValue.length&&n===this.calculateInsertableSubstring(r,e+i);)++i;return Math.max(0,i-1)}cleanup(r){if(r.added===0&&r.removed===1){let e=r.start;for(;e>=0;){const n=this.destructedValue[e];if(n instanceof ui&&n.char!==null){n.char=null;break}else--e}}this.clearRange(r.start,this.destructedValue.length)}clearRange(r,e){let n=r;for(;n<e&&n<this.destructedValue.length;){const i=this.destructedValue[n];i instanceof ui&&(i.char=null),++n}}calculateCursorPosition(r,e){const n=this.firstEmptyHolderIndex();let i;r.start<n?i=Math.min(this.firstHolderAfter(e),this.value.length):i=n,this.cursorPos=i}calculateInsertableSubstring(r,e){let n="",i=e;const o=()=>{var s;for(;i<this.destructedValue.length&&!(this.destructedValue[i]instanceof ui);)++i;return(s=this.destructedValue[i])==null?void 0:s.filter};return r.split("").forEach(s=>{const a=o();a!=null&&a.test(s)&&(n+=s,++i)}),n}collectValueRange(r,e){let n="",i=r;for(;i<=e;){const o=this.destructedValue[i];o instanceof ui&&o.char!==null&&(n+=o.char),++i}return n}replaceChars(r,e,n){let i=this.calculateInsertableSubstring(r,e);n!==void 0&&(i=i.substring(0,n));let o=e,s=0;for(;o<this.destructedValue.length&&s<i.length;){const a=this.destructedValue[o],l=i[s];a instanceof ui&&(a.char=l,++s),++o}}firstHolderAfter(r){let e=r;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ui);)++e;return e}}class l0 extends Hf{constructor(r,e){super(r),this.logError=e}onException(r){this.logError(r)}}function a0(t,r,e){if(typeof t.pattern=="string"&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every(n=>n.key&&typeof n.key=="string")){const n={pattern:t.pattern,alwaysVisible:!!t.always_visible,decoding:t.pattern_elements.map(i=>({key:i.key,filter:i.regex&&typeof i.regex=="string"?i.regex:void 0,placeholder:i.placeholder&&typeof i.placeholder=="string"?i.placeholder:"_"}))};return e?(e.updateMaskData(n),e):new l0(n,r)}return e||null}class c0 extends Hf{constructor(e=void 0,n){super({pattern:"",decoding:[],alwaysVisible:!1});ur(this,"currencyFormatter",new Intl.NumberFormat);ur(this,"decimalSeparator",".");ur(this,"localeDigits",{});ur(this,"trimZeroRegExp",new RegExp(""));this.logError=n,this.initFormatter(e)}updateCurrencyParams(e){const n=this.parseFormat(this.rawValue)||0;this.initFormatter(e);const i=n.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(i)}initFormatter(e){try{this.currencyFormatter=new Intl.NumberFormat(e,{minimumFractionDigits:2,maximumFractionDigits:2}),this.decimalSeparator=this.currencyFormatter.format(0)[1],this.localeDigits=new Array(10).fill("").reduce((n,i,o)=>(n[o]=this.currencyFormatter.format(o)[0],n),{}),this.trimZeroRegExp=new RegExp(`^${this.localeDigits[0]}+`)}catch(n){this.onException(ee(n,{level:"error",additional:{locale:e}}))}}invalidateMaskDataForFormatted(e){const n=this.currencyFormatter.format(e),i=this.formatPattern(n),o=[{key:"#",filter:`[${[...Object.values(this.localeDigits)].join("")}]`,placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:`[${this.decimalSeparator}]`,placeholder:this.decimalSeparator}];this.updateMaskData({pattern:i,decoding:o,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(e){const n=this.parseFormat(e)||0;this.invalidateMaskDataForFormatted(n),super.overrideRawValue(e)}applyChangeFrom(e,n){const i=Wl(this.value,e),o=this.value.lastIndexOf(this.decimalSeparator),s=e.lastIndexOf(this.decimalSeparator),a=o!==s||o===-1&&s===-1,l=this.validFormat(e,i);this.cleanup(i);const c=this.parseFormat(l)||0;a&&this.invalidateMaskDataForFormatted(c),this.replaceChars(l,0),this.value.length>i.start&&!this.isDigit(this.value[i.start])?this.cursorPos=n!=null?n:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(e.length-(n!=null?n:this.cursorPosition)))}parseFormat(e){return parseFloat(e.replace(/./g,n=>{const i=this.localeDigits[n];return i||(n===this.decimalSeparator?".":"")}))}formatPattern(e){let n="";for(const i of e)n+=this.isDigit(i)?"#":i;return n}validFormat(e,n){if(!e)return"";let i=-1,o=0;for(;o<e.length;){if(e[o]===this.decimalSeparator&&!this.inDiff(n,o)){i=o;break}o++}let s=-1;n.added===1&&n.removed===0&&[",","."].includes(e[n.start])&&(s=n.start);const a=this.currencyFormatter.resolvedOptions().maximumFractionDigits||0;let l=a;if(i!==-1)for(o=i;o<e.length;)this.isDigit(e[o])&&!this.inDiff(n,o)&&l--,o++;else{let h=!1;for(let p=0;p<e.length;p++){const b=e[p];b===this.decimalSeparator?h=!0:!this.inDiff(n,p)&&h&&this.isDigit(b)&&l--}}const c=e.includes(this.decimalSeparator)||s!==-1,u=[];o=e.length-1;let f=!1;for(;o>=0;){const h=e[o],p=u.length<=a;this.isDigit(h)?this.inDiff(n,o)&&!f&&c?l>0&&(u.push(h),l--):u.push(h):p&&i===-1&&o===s?(u.push(this.decimalSeparator),f=!0):p&&h===this.decimalSeparator&&(i===o||i===-1)&&(u.push(this.decimalSeparator),f=!0,i=o),o--}return u.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(e,n){return e.start<=n&&n<e.start+e.added}isDigit(e){return!!this.localeDigits[e]}onException(e){this.logError(e)}}function u0(t,r,e){return e?(e.updateCurrencyParams(t.locale),e):new c0(t.locale,r)}const Wf=3;function cl(t){const r=t.textContent;let e=0;return typeof r=="string"&&(e+=r.length,t instanceof HTMLElement&&(t.tagName==="DIV"||t.tagName==="BR")&&++e),e}function Nc(t,r){var e;try{let n=0;const i=window.getSelection();if(!i)return 0;const o=i.getRangeAt(0);let s;if(o&&(n+=r==="end"?o.endOffset:o.startOffset,s=r==="end"?o.endContainer:o.startContainer),s instanceof HTMLElement){let a=0;for(let l=0,c=Math.min(n,s.childNodes.length);l<c;++l)a+=cl(s.childNodes[l]);n=a}for(;s&&s!==t;){const a=s.parentNode;if(!a)return 0;const l=Array.from(a.childNodes).indexOf(s);for(let c=0;c<l;++c){const u=a.childNodes[c];n+=cl(u)}s instanceof HTMLElement&&(s.tagName==="DIV"&&((e=a.childNodes[l-1])==null?void 0:e.nodeType)===Wf||s.tagName==="BR")&&++n,s=a}return n}catch{return 0}}function ul(t,r,e,n){if(t.nodeType===Wf){try{e==="start"?r.setStart(t,n):r.setEnd(t,n)}catch{}return}if(t instanceof HTMLElement&&t.tagName==="BR"){try{const i=window.getSelection();if(i){i.removeAllRanges();const o=document.createRange(),s=t.parentNode,a=Array.from(s.childNodes).indexOf(t)+1;o.setStart(s,a),o.setEnd(s,a),i.addRange(o)}}catch{}return}for(let i=0,o=t.childNodes.length;i<o;++i){const s=t.childNodes[i],a=cl(s);if(n<=a){ul(s,r,e,n);return}n-=a}}function f0(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function d0(t){let r,e;return r=new Cn({props:{cls:bt("input",mi,t[20]),style:t[19],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[m0,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({119:n,120:i,121:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>[0,0,0,(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1048576&&(o.cls=bt("input",mi,n[20])),i[0]&524288&&(o.style=n[19]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&2555324|i[1]&32768|i[3]&1006632960&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function h0(t){let r,e,n,i,o,s,a,l,c;return{c(){r=He("input"),this.h()},l(u){r=Je(u,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,"aria-describedby":!0,style:!0,maxlength:!0,placeholder:!0,enterkeyhint:!0}),this.h()},h(){m(r,"type",t[10]),m(r,"inputmode",t[11]),m(r,"class",e=bt("input__input",mi,{"has-custom-focus":t[121],singleline:!0})),m(r,"autocomplete","off"),m(r,"autocapitalize",t[13]),m(r,"aria-label",t[12]),m(r,"aria-describedby",n=t[15]||void 0),m(r,"style",i=Vt(t[18])),r.disabled=o=!t[4],m(r,"maxlength",s=t[5]===1/0?void 0:t[5]),m(r,"placeholder",t[21]),r.value=t[3],m(r,"enterkeyhint",a=t[14]==="default"?void 0:t[14])},m(u,f){ie(u,r,f),t[103](r),l||(c=[Ye(r,"input",t[48]),Ye(r,"keydown",t[50]),Ye(r,"mousedown",function(){Vr(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)}),Ye(r,"click",function(){Vr(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)}),Ye(r,"focus",function(){Vr(t[119])&&t[119].apply(this,arguments)}),Ye(r,"blur",function(){Vr(t[120])&&t[120].apply(this,arguments)})],l=!0)},p(u,f){t=u,f[0]&1024&&m(r,"type",t[10]),f[0]&2048&&m(r,"inputmode",t[11]),f[3]&268435456&&e!==(e=bt("input__input",mi,{"has-custom-focus":t[121],singleline:!0}))&&m(r,"class",e),f[0]&8192&&m(r,"autocapitalize",t[13]),f[0]&4096&&m(r,"aria-label",t[12]),f[0]&32768&&n!==(n=t[15]||void 0)&&m(r,"aria-describedby",n),f[0]&262144&&i!==(i=Vt(t[18]))&&m(r,"style",i),f[0]&16&&o!==(o=!t[4])&&(r.disabled=o),f[0]&32&&s!==(s=t[5]===1/0?void 0:t[5])&&m(r,"maxlength",s),f[0]&2097152&&m(r,"placeholder",t[21]),f[0]&8&&r.value!==t[3]&&(r.value=t[3]),f[0]&16384&&a!==(a=t[14]==="default"?void 0:t[14])&&m(r,"enterkeyhint",a)},d(u){u&&E(r),t[103](null),l=!1,Jr(c)}}}function _0(t){let r,e,n,i,o,s,a=!t[8]&&t[21]&&Oc(t);function l(f,h){return f[4]?p0:g0}let c=l(t),u=c(t);return{c(){r=He("span"),a&&a.c(),e=yr(),n=He("span"),i=Zn(""),s=yr(),u.c(),this.h()},l(f){r=Je(f,"SPAN",{class:!0});var h=De(r);a&&a.l(h),e=vr(h),n=Je(h,"SPAN",{class:!0,"aria-hidden":!0,style:!0});var p=De(n);i=yi(p,""),p.forEach(E),s=vr(h),u.l(h),h.forEach(E),this.h()},h(){m(n,"class",mi.input__aligner),m(n,"aria-hidden","true"),m(n,"style",o=Vt(t[17])),m(r,"class",mi["input__scroll-wrapper"])},m(f,h){ie(f,r,h),a&&a.m(r,null),St(r,e),St(r,n),St(n,i),St(r,s),u.m(r,null)},p(f,h){!f[8]&&f[21]?a?a.p(f,h):(a=Oc(f),a.c(),a.m(r,e)):a&&(a.d(1),a=null),h[0]&131072&&o!==(o=Vt(f[17]))&&m(n,"style",o),c===(c=l(f))&&u?u.p(f,h):(u.d(1),u=c(f),u&&(u.c(),u.m(r,null)))},d(f){f&&E(r),a&&a.d(),u.d()}}}function Oc(t){let r,e,n;return{c(){r=He("div"),e=Zn(t[21]),this.h()},l(i){r=Je(i,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=De(r);e=yi(o,t[21]),o.forEach(E),this.h()},h(){m(r,"class",mi.input__placeholder),m(r,"aria-hidden","true"),m(r,"style",n=Vt(t[18]))},m(i,o){ie(i,r,o),St(r,e)},p(i,o){o[0]&2097152&&Oi(e,i[21]),o[0]&262144&&n!==(n=Vt(i[18]))&&m(r,"style",n)},d(i){i&&E(r)}}}function g0(t){let r,e,n,i,o;return{c(){r=He("span"),this.h()},l(s){r=Je(s,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,"aria-label":!0,"aria-disabled":!0,"aria-multiline":!0,"aria-describedby":!0,style:!0});var a=De(r);a.forEach(E),this.h()},h(){m(r,"class",bt("input__input",mi,{multiline:!0})),m(r,"autocapitalize",t[13]),m(r,"contenteditable","false"),m(r,"role","textbox"),m(r,"aria-label",t[12]),m(r,"aria-disabled","true"),m(r,"aria-multiline","true"),m(r,"aria-describedby",e=t[15]||void 0),m(r,"style",n=Vt(t[18])),t[8]===void 0&&Un(()=>t[102].call(r))},m(s,a){ie(s,r,a),t[101](r),t[8]!==void 0&&(r.innerText=t[8]),i||(o=Ye(r,"input",t[102]),i=!0)},p(s,a){a[0]&8192&&m(r,"autocapitalize",s[13]),a[0]&4096&&m(r,"aria-label",s[12]),a[0]&32768&&e!==(e=s[15]||void 0)&&m(r,"aria-describedby",e),a[0]&262144&&n!==(n=Vt(s[18]))&&m(r,"style",n),a[0]&256&&s[8]!==r.innerText&&(r.innerText=s[8])},d(s){s&&E(r),t[101](null),i=!1,o()}}}function p0(t){let r,e,n,i,o,s,a;return{c(){r=He("span"),this.h()},l(l){r=Je(l,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,role:!0,tabindex:!0,"aria-label":!0,"aria-multiline":!0,enterkeyhint:!0,"aria-describedby":!0,style:!0});var c=De(r);c.forEach(E),this.h()},h(){m(r,"class",e=bt("input__input",mi,{"has-custom-focus":t[121],multiline:!0})),m(r,"autocapitalize",t[13]),m(r,"contenteditable","true"),m(r,"role","textbox"),m(r,"tabindex","0"),m(r,"aria-label",t[12]),m(r,"aria-multiline","true"),m(r,"enterkeyhint",n=t[14]==="default"?void 0:t[14]),m(r,"aria-describedby",i=t[15]||void 0),m(r,"style",o=Vt(t[18])),t[8]===void 0&&Un(()=>t[100].call(r))},m(l,c){ie(l,r,c),t[99](r),t[8]!==void 0&&(r.innerText=t[8]),s||(a=[Ye(r,"input",t[100]),Ye(r,"input",t[48]),Ye(r,"keydown",t[49]),Ye(r,"keydown",t[50]),Ye(r,"paste",w0),Ye(r,"mousedown",function(){Vr(t[46]?t[51]:void 0)&&(t[46]?t[51]:void 0).apply(this,arguments)}),Ye(r,"click",function(){Vr(t[46]?t[52]:void 0)&&(t[46]?t[52]:void 0).apply(this,arguments)}),Ye(r,"focus",function(){Vr(t[119])&&t[119].apply(this,arguments)}),Ye(r,"blur",function(){Vr(t[120])&&t[120].apply(this,arguments)})],s=!0)},p(l,c){t=l,c[3]&268435456&&e!==(e=bt("input__input",mi,{"has-custom-focus":t[121],multiline:!0}))&&m(r,"class",e),c[0]&8192&&m(r,"autocapitalize",t[13]),c[0]&4096&&m(r,"aria-label",t[12]),c[0]&16384&&n!==(n=t[14]==="default"?void 0:t[14])&&m(r,"enterkeyhint",n),c[0]&32768&&i!==(i=t[15]||void 0)&&m(r,"aria-describedby",i),c[0]&262144&&o!==(o=Vt(t[18]))&&m(r,"style",o),c[0]&256&&t[8]!==r.innerText&&(r.innerText=t[8])},d(l){l&&E(r),t[99](null),s=!1,Jr(a)}}}function m0(t){let r;function e(o,s){return o[7]?_0:h0}let n=e(t),i=n(t);return{c(){i.c(),r=Ne()},l(o){i.l(o),r=Ne()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function b0(t){let r,e,n,i;const o=[d0,f0],s=[];function a(l,c){return l[9]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}const y0=typeof document<"u"&&"inputMode"in document.createElement("input"),zc={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"},v0=new Set(["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Control","Shift","Alt","Command","Meta","Escape"]);function w0(t){if(t.preventDefault(),t.clipboardData){let r=t.clipboardData.getData("text/plain");r=r.trim(),document.execCommand("inserttext",!1,r)}}function k0(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J,Z,W,G,z,he,ye,Te,_e,be,pt,Ue,Re,Me,Ze,et=S,Q=()=>(et(),et=N(s,ce=>e(74,Ze=ce)),s),Ee,ge=S,nt=()=>(ge(),ge=N(a,ce=>e(75,Ee=ce)),a),Y,Se=S,Ge=()=>(Se(),Se=N(Te,ce=>e(108,Y=ce)),Te),ne,lt=S,je=()=>(lt(),lt=N(he,ce=>e(76,ne=ce)),he),Ie,kt=S,Tt=()=>(kt(),kt=N(J,ce=>e(77,Ie=ce)),J),te,it=S,ut=()=>(it(),it=N(z,ce=>e(78,te=ce)),z),gt,qe,C=S,rt=()=>(C(),C=N(D,ce=>e(80,qe=ce)),D),le,Qe=S,At=()=>(Qe(),Qe=N(x,ce=>e(81,le=ce)),x),fe,pe=S,ft=()=>(pe(),pe=N(F,ce=>e(82,fe=ce)),F),$e,tr=S,Ot=()=>(tr(),tr=N(V,ce=>e(83,$e=ce)),V),Qt,Oe=S,yt=()=>(Oe(),Oe=N(G,ce=>e(84,Qt=ce)),G),Jt,Ut=S,qt=()=>(Ut(),Ut=N(W,ce=>e(85,Jt=ce)),W),H,ae=S,dr=()=>(ae(),ae=N(P,ce=>e(86,H=ce)),P),we,It=S,Be=()=>(It(),It=N(L,ce=>e(87,we=ce)),L),vt,ze=S,at=()=>(ze(),ze=N(w,ce=>e(88,vt=ce)),w),Et,Fe=S,dt=()=>(Fe(),Fe=N(v,ce=>e(89,Et=ce)),v),Kt,cr=S,pr=()=>(cr(),cr=N(_,ce=>e(90,Kt=ce)),_),Gt,ht=S,Dt=()=>(ht(),ht=N(b,ce=>e(91,Gt=ce)),b),Nt,rr=S,ir=()=>(rr(),rr=N(p,ce=>e(92,Nt=ce)),p),Er,zr=S,qr=()=>(zr(),zr=N(h,ce=>e(93,Er=ce)),h),Xe,hr=S,Ae=()=>(hr(),hr=N(f,ce=>e(94,Xe=ce)),f),K,jr=S,Cr=()=>(jr(),jr=N(u,ce=>e(95,K=ce)),u),zt,$r=S,Ve=()=>($r(),$r=N(c,ce=>e(96,zt=ce)),c),Lt,_r=S,xe=()=>(_r(),_r=N(l,ce=>e(97,Lt=ce)),l),Ft,Le=S,mt=()=>(Le(),Le=N(ye,ce=>e(98,Ft=ce)),ye),ct,Ct=S,Xt=()=>(Ct(),Ct=N(Z,ce=>e(46,ct=ce)),Z);t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>it()),t.$$.on_destroy.push(()=>C()),t.$$.on_destroy.push(()=>Qe()),t.$$.on_destroy.push(()=>pe()),t.$$.on_destroy.push(()=>tr()),t.$$.on_destroy.push(()=>Oe()),t.$$.on_destroy.push(()=>Ut()),t.$$.on_destroy.push(()=>ae()),t.$$.on_destroy.push(()=>It()),t.$$.on_destroy.push(()=>ze()),t.$$.on_destroy.push(()=>Fe()),t.$$.on_destroy.push(()=>cr()),t.$$.on_destroy.push(()=>ht()),t.$$.on_destroy.push(()=>rr()),t.$$.on_destroy.push(()=>zr()),t.$$.on_destroy.push(()=>hr()),t.$$.on_destroy.push(()=>jr()),t.$$.on_destroy.push(()=>$r()),t.$$.on_destroy.push(()=>_r()),t.$$.on_destroy.push(()=>Le()),t.$$.on_destroy.push(()=>Ct());let{componentContext:T}=r,{layoutParams:ot=void 0}=r;const de=Yr(tn),d=de.direction;un(t,d,ce=>e(79,gt=ce));let Pe,jt,Pr=!1,fr=null,R="",Ir="",rn=!1,y="",A=12,X,oe="",se,Ce="",wt="#000",O="",Ke="start",Rt="center",Mt="multi_line_text",Bt="text",or,an="",Lr=null,pn="",nn="",Gn="",vn=!0,on=1/0,mn="off",Yn="default",Qn="",Vn=!1,Jn=!0,xn=0,_n=0;function Di(){e(55,y=""),e(56,A=12),e(57,X=void 0),e(58,oe=""),e(59,se=void 0),e(61,wt="#000"),e(62,O=""),e(63,Ke="left"),e(64,Rt="center"),e(65,Mt="multi_line_text"),e(10,Bt="text"),e(11,or=void 0),e(4,vn=!0),e(5,on=1/0),e(13,mn="off"),e(14,Yn="default"),e(15,Qn=""),xn=0,_n=0}function Ti(ce){(ce==null?void 0:ce.type)==="fixed_length"?e(54,fr=a0(ce,T.logError,fr)):(ce==null?void 0:ce.type)==="currency"&&e(54,fr=u0(ce,T.logError,fr)),fr&&q()}function $n(ce){if(!Array.isArray(Y)||!ce)return!0;for(const er of Y)if(er){if(er.type==="regex")try{if(!new RegExp("^"+(er.pattern||"")+"$").test(ce))return!1}catch(br){return T.logError(ee(new Error("Failed to create a regex"),{additional:{originalError:String(br)}})),!0}else if(er.type==="expression"&&!er.condition)return!1}return!0}function Hi(ce){const er=ce.target;let br=(be?er.innerText:er.value)||"";br===`
|
|
9
|
+
`&&(br=""),br.length>on&&(br=e(8,Ir=R),er instanceof HTMLInputElement&&(er.value=br)),R!==br&&($n(br)?(e(3,R=e(8,Ir=br)),s.setValue(br),fr&&$(),tt()):(e(3,R=e(8,Ir=br)),er instanceof HTMLInputElement&&(er.value=br),jn().then(()=>{j(xn,_n)})))}function si(ce){R.length>=on&&!v0.has(ce.key)&&!(ce.ctrlKey||ce.altKey||ce.metaKey)&&ce.preventDefault()}function On(ce){if(xn=k()||0,_n=M()||0,ce.ctrlKey||ce.metaKey||ce.altKey||ce.shiftKey)return;const er=T.json.enter_key_actions;if(ce.key==="Enter"&&Array.isArray(er)&&er.length){const zn=T.getJsonWithVars(er).filter(Ln=>Ln.log_id).filter(Tn);ce.preventDefault(),T.execAnyActions(zn)}}function _t(){Pr=!1,setTimeout(()=>{Pr=!0},250)}function g(){if(!Pr)if(jt instanceof HTMLInputElement)jt.select();else{const ce=window.getSelection(),er=document.createRange();er.selectNodeContents(jt),ce&&(ce.removeAllRanges(),ce.addRange(er))}}function k(){return jt instanceof HTMLInputElement?jt.selectionStart===null?void 0:jt.selectionStart:Nc(jt,"start")}function M(){return jt instanceof HTMLInputElement?jt.selectionEnd===null?void 0:jt.selectionEnd:Nc(jt,"end")}function j(ce,er){if(jt instanceof HTMLInputElement)e(2,jt.selectionStart=ce,jt),e(2,jt.selectionEnd=er,jt);else{const br=window.getSelection();if(br){br.removeAllRanges();const zn=document.createRange();ul(jt,zn,"start",ce),ul(jt,zn,"end",er),br.addRange(zn)}}}async function $(){if(!jt||!fr)return;const ce=k()||0,er=M()||0;fr.applyChangeFrom(R,er===ce?er:0),a.set(fr.rawValue),Xo(s,Ze=e(3,R=e(8,Ir=fr.value)),Ze);const br=fr.cursorPosition;await jn(),document.activeElement===jt&&j(br,br)}async function q(){if(!jt||!fr)return;fr.overrideRawValue(Ee),a.set(fr.rawValue),Xo(s,Ze=e(3,R=e(8,Ir=fr.value)),Ze);const ce=fr.cursorPosition;await jn(),document.activeElement===jt&&j(ce,ce)}function tt(){const ce=Jn;Jn=!1;const er=T.json.validators;if(!Array.isArray(er)||!er.length)return;const zn=T.getJsonWithVars(er).filter(Kr=>(Kr.type==="regex"||Kr.type==="expression")&&Kr.label_id&&Kr.variable),Ln=[];zn.forEach(Kr=>{const ai=T.getVariable(Kr.variable);if(!ai)return;if(ai.getType()!=="boolean"){ce&&T.logError(ee(new Error("Incorrect variable type for the validator"),{additional:{variable:Kr.variable}}));return}let ci=!1;if(R===""&&(Kr.allow_empty===!0||Kr.allow_empty===1))ci=!0;else if(Kr.type==="regex"){if(!Kr.pattern||typeof Kr.pattern!="string")return;try{ci=new RegExp("^"+Kr.pattern+"$").test(R)}catch{ce&&T.logError(ee(new Error("Failed to create a regular expression using the validator pattern"),{additional:{pattern:Kr.pattern}}));return}}else if(Kr.type==="expression")ci=Kr.condition===!0||Kr.condition===1;else return;if(ai.setValue(ci),!ci){const wi=de.getComponentId(Kr.label_id);wi&&Ln.push(wi)}}),e(15,Qn=Ln.join(" "))}ii(()=>{e(70,Vn=!0),jt&&fr&&Ee&&(fr.overrideRawValue(Ee),Xo(s,Ze=e(3,R=e(8,Ir=fr.value)),Ze))}),fn(()=>{e(70,Vn=!1),Pe&&(de.unregisterFocusable(Pe),e(53,Pe=void 0))});function st(ce){Or[ce?"unshift":"push"](()=>{jt=ce,e(2,jt)})}function Dr(){Ir=this.innerText,e(8,Ir),e(54,fr),e(3,R),e(74,Ze),e(5,on),e(6,s),e(84,Qt),e(71,i),e(0,T)}function mr(ce){Or[ce?"unshift":"push"](()=>{jt=ce,e(2,jt)})}function Sr(){Ir=this.innerText,e(8,Ir),e(54,fr),e(3,R),e(74,Ze),e(5,on),e(6,s),e(84,Qt),e(71,i),e(0,T)}function li(ce){Or[ce?"unshift":"push"](()=>{jt=ce,e(2,jt)})}return t.$$set=ce=>{"componentContext"in ce&&e(0,T=ce.componentContext),"layoutParams"in ce&&e(1,ot=ce.layoutParams)},t.$$.update=()=>{var ce;if(t.$$.dirty[0]&1&&e(73,n=T.origJson),t.$$.dirty[2]&2048&&n&&Di(),t.$$.dirty[0]&1&&e(71,i=T.json.text_variable),t.$$.dirty[0]&1&&e(72,o=(ce=T.json.mask)==null?void 0:ce.raw_text_variable),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&Q(e(6,s=i&&T.getVariable(i,"string")||pi("temp","string",""))),t.$$.dirty[0]&1|t.$$.dirty[2]&1024&&nt(e(16,a=o&&T.getVariable(o,"string")||pi("temp","string",""))),t.$$.dirty[0]&1&&xe(e(45,l=T.getDerivedFromVars(T.json.hint_text))),t.$$.dirty[0]&1&&Ve(e(44,c=T.getDerivedFromVars(T.json.hint_color))),t.$$.dirty[0]&1&&Cr(e(43,u=T.getDerivedFromVars(T.json.font_size))),t.$$.dirty[0]&1&&Ae(e(42,f=T.getDerivedFromVars(T.json.font_weight))),t.$$.dirty[0]&1&&qr(e(41,h=T.getDerivedFromVars(T.json.font_weight_value))),t.$$.dirty[0]&1&&ir(e(40,p=T.getDerivedFromVars(T.json.font_family))),t.$$.dirty[0]&1&&Dt(e(39,b=T.getDerivedFromVars(T.json.line_height))),t.$$.dirty[0]&1&&pr(e(38,_=T.getDerivedFromVars(T.json.letter_spacing))),t.$$.dirty[0]&1&&dt(e(37,v=T.getDerivedFromVars(T.json.text_color))),t.$$.dirty[0]&1&&at(e(36,w=T.getDerivedFromVars(T.json.highlight_color))),t.$$.dirty[0]&1&&Be(e(35,L=T.getDerivedFromVars(T.json.text_alignment_horizontal))),t.$$.dirty[0]&1&&dr(e(34,P=T.getDerivedFromVars(T.json.text_alignment_vertical))),t.$$.dirty[0]&1&&Ot(e(33,V=T.getDerivedFromVars(T.json.keyboard_type))),t.$$.dirty[0]&1&&ft(e(32,F=T.getDerivedFromVars(T.json.mask))),t.$$.dirty[0]&1&&At(e(31,x=T.getDerivedFromVars(T.json.max_visible_lines))),t.$$.dirty[0]&1&&rt(e(30,D=T.getDerivedFromVars(T.json.paddings))),t.$$.dirty[0]&1&&Tt(e(29,J=T.getDerivedFromVars(T.json.accessibility))),t.$$.dirty[0]&1&&Xt(e(28,Z=T.getDerivedFromVars(T.json.select_all_on_focus))),t.$$.dirty[0]&1&&qt(e(27,W=T.getDerivedFromVars(T.json.is_enabled))),t.$$.dirty[0]&1&&yt(e(26,G=T.getDerivedFromVars(T.json.max_length))),t.$$.dirty[0]&1&&ut(e(25,z=T.getDerivedFromVars(T.json.autocapitalization))),t.$$.dirty[0]&1&&je(e(24,he=T.getDerivedFromVars(T.json.enter_key_type))),t.$$.dirty[0]&1&&mt(e(23,ye=T.getDerivedFromVars(T.json.validators))),t.$$.dirty[0]&1&&Ge(e(22,Te=T.getDerivedFromVars(T.json.filters))),t.$$.dirty[0]&1|t.$$.dirty[2]&512&&(i?e(9,rn=!1):(e(9,rn=!0),T.logError(ee(new Error('Missing "text_variable" in "input"'))))),t.$$.dirty[2]&1048576&&Ti(fe),t.$$.dirty[0]&32|t.$$.dirty[2]&4194304&&e(5,on=Kn(Qt,on)),t.$$.dirty[0]&104|t.$$.dirty[1]&8388608|t.$$.dirty[2]&4096&&!fr&&R!==Ze){let er=Ze;er.length>on&&(er=er.slice(0,on),s.setValue(er)),e(3,R=e(8,Ir=er)),tt()}if(t.$$.dirty[1]&8388608|t.$$.dirty[2]&8192&&fr&&fr.rawValue!==Ee&&(q(),tt()),t.$$.dirty[2]&256|t.$$.dirty[3]&32&&Ft&&Vn&&tt(),t.$$.dirty[3]&16&&e(21,_e=Lt),t.$$.dirty[1]&16777216|t.$$.dirty[3]&8&&e(55,y=Mr(zt,1,y)),t.$$.dirty[1]&33554432|t.$$.dirty[3]&4&&e(56,A=Kn(K,A)),t.$$.dirty[1]&67108864|t.$$.dirty[2]&1073741824|t.$$.dirty[3]&3&&(e(57,X=go(Xe,Er,X)),Nt&&typeof Nt=="string"?e(58,oe=de.typefaceProvider(Nt,{fontWeight:X||400})):e(58,oe="")),t.$$.dirty[1]&33554432|t.$$.dirty[2]&536870912){const er=Gt;Pn(er)&&e(59,se=er/A)}t.$$.dirty[2]&268435456&&Os(Kt)&&e(60,Ce=ke(Kt)),t.$$.dirty[1]&1073741824|t.$$.dirty[2]&134217728&&e(61,wt=Mr(Et,1,wt)),t.$$.dirty[2]&67108865&&e(62,O=Mr(vt,1,O)),t.$$.dirty[2]&33685506&&e(63,Ke=Ol(we,gt,Ke)),t.$$.dirty[2]&16777220&&e(64,Rt=zl(H,Rt)),t.$$.dirty[0]&16|t.$$.dirty[2]&8388608&&e(4,vn=ti(Jt,vn)),t.$$.dirty[2]&3145728&&($e&&$e in zc&&(e(10,Bt=zc[$e]),e(65,Mt=$e)),(fe==null?void 0:fe.type)==="currency"&&(e(10,Bt=y0?"text":"tel"),e(11,or="decimal"))),t.$$.dirty[2]&8&&e(7,be=Mt==="multi_line_text"),t.$$.dirty[1]&301989888|t.$$.dirty[2]&917536&&(Pn(le)?e(66,an=`calc(${le*(se||1.25)*(A/10)+"em"} + ${En(Xr(qe==null?void 0:qe.top,0)+Xr(qe==null?void 0:qe.bottom,0))})`):e(66,an=""),e(67,Lr=Oo(qe||void 0,Lr)),e(68,pn=Lr?_i({top:(Number(Lr.top)||0)/A*10,right:(Number(gt==="ltr"?Lr.end:Lr.start)||Number(Lr.right)||0)/A*10,bottom:(Number(Lr.bottom)||0)/A*10,left:(Number(gt==="ltr"?Lr.start:Lr.end)||Number(Lr.left)||0)/A*10},gt):""),e(69,nn=Lr?_i({top:(Number(Lr.top)||0)/A*10,bottom:(Number(Lr.bottom)||0)/A*10},gt):"")),t.$$.dirty[2]&65536&&(te==="all_characters"?e(13,mn="characters"):te==="sentences"?e(13,mn="sentences"):te==="words"?e(13,mn="words"):(te==="none"||te==="auto")&&e(13,mn="off")),t.$$.dirty[0]&1|t.$$.dirty[2]&32768&&(Ie!=null&&Ie.description?e(12,Gn=Ie.description):T.logError(ee(new Error('Missing accessibility "description" for input'),{level:"warn"}))),t.$$.dirty[2]&16384&&(ne==="default"||ne==="done"||ne==="go"||ne==="search"||ne==="send")&&e(14,Yn=ne),t.$$.dirty[0]&128|t.$$.dirty[2]&7&&e(20,pt={"highlight-color":!!O,multiline:be,"alignment-horizontal":Ke,"alignment-vertical":Rt}),t.$$.dirty[1]&2097152e3|t.$$.dirty[2]&17&&e(19,Ue={"--divkit-input-hint-color":y,"--divkit-input-highlight-color":O,"--divkit-input-line-height":se,"font-weight":X,"font-family":oe,"letter-spacing":Ce,color:wt,"max-height":an}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&64&&e(18,Re={"font-size":ke(A),padding:pn}),t.$$.dirty[1]&33554432|t.$$.dirty[2]&128&&e(17,Me={"font-size":ke(A),padding:nn}),t.$$.dirty[0]&13|t.$$.dirty[1]&4194304&&jt&&T.json&&(Pe&&(de.unregisterFocusable(Pe),e(53,Pe=void 0)),T.id&&!T.fakeElement&&(e(53,Pe=T.id),de.registerFocusable(Pe,{focus(){jt&&(jt.focus(),j(R.length,R.length))}})))},[T,ot,jt,R,vn,on,s,be,Ir,rn,Bt,or,Gn,mn,Yn,Qn,a,Me,Re,Ue,pt,_e,Te,ye,he,z,G,W,Z,J,D,x,F,V,P,L,w,v,_,b,p,h,f,u,c,l,ct,d,Hi,si,On,_t,g,Pe,fr,y,A,X,oe,se,Ce,wt,O,Ke,Rt,Mt,an,Lr,pn,nn,Vn,i,o,n,Ze,Ee,ne,Ie,te,gt,qe,le,fe,$e,Qt,Jt,H,we,vt,Et,Kt,Gt,Nt,Er,Xe,K,zt,Lt,Ft,st,Dr,mr,Sr,li]}class A0 extends Wr{constructor(r){super(),Hr(this,r,k0,b0,Ar,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}}const E0="divkit-ae558",j0="divkit-f3d02",C0="divkit-e7d17",S0="divkit-72083",_o={select:E0,"select__select-text":"divkit-c1610",select_hint:j0,select__select:C0,"select__select_has-custom-focused":"divkit-2e9c1","has-custom-focused":"divkit-d2243",select__option:S0};function Lc(t,r,e){const n=t.slice();return n[58]=r[e],n}function V0(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function I0(t){let r,e;return r=new Cn({props:{cls:bt("select",_o,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[D0,({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>({55:n,56:i,57:o}),({hasCustomFocus:n,focusHandler:i,blurHandler:o})=>[0,(n?16777216:0)|(i?33554432:0)|(o?67108864:0)]]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&2048&&(o.cls=bt("select",_o,n[11])),i[0]&1024&&(o.style=n[10]),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&16778172|i[1]&1191182336&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Rc(t){let r,e=(t[58].text||t[58].value)+"",n,i;return{c(){r=He("option"),n=Zn(e),this.h()},l(o){r=Je(o,"OPTION",{class:!0});var s=De(r);n=yi(s,e),s.forEach(E),this.h()},h(){m(r,"class",_o.select__option),r.__value=i=t[58].value,ea(r,r.__value)},m(o,s){ie(o,r,s),St(r,n)},p(o,s){s[0]&16&&e!==(e=(o[58].text||o[58].value)+"")&&Oi(n,e),s[0]&16&&i!==(i=o[58].value)&&(r.__value=i,ea(r,r.__value))},d(o){o&&E(r)}}}function D0(t){let r,e=(t[3]||t[24]||"")+"",n,i,o,s,a,l,c,u,f=sr(t[4]),h=[];for(let p=0;p<f.length;p+=1)h[p]=Rc(Lc(t,f,p));return{c(){r=He("span"),n=Zn(e),o=yr(),s=He("select");for(let p=0;p<h.length;p+=1)h[p].c();this.h()},l(p){r=Je(p,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var b=De(r);n=yi(b,e),b.forEach(E),o=vr(p),s=Je(p,"SELECT",{class:!0,"aria-label":!0,style:!0});var _=De(s);for(let v=0;v<h.length;v+=1)h[v].l(_);_.forEach(E),this.h()},h(){m(r,"class",_o["select__select-text"]),m(r,"style",i=Vt(t[9])),m(r,"aria-hidden","true"),m(s,"class",a=bt("select__select",_o,{"has-custom-focus":t[55]})),m(s,"aria-label",t[7]),m(s,"style",l=Vt(t[8])),t[5]===void 0&&Un(()=>t[52].call(s))},m(p,b){ie(p,r,b),St(r,n),ie(p,o,b),ie(p,s,b);for(let _=0;_<h.length;_+=1)h[_]&&h[_].m(s,null);t[51](s),ta(s,t[5],!0),c||(u=[Ye(s,"change",t[52]),Ye(s,"focus",function(){Vr(t[56])&&t[56].apply(this,arguments)}),Ye(s,"blur",function(){Vr(t[57])&&t[57].apply(this,arguments)})],c=!0)},p(p,b){if(t=p,b[0]&16777224&&e!==(e=(t[3]||t[24]||"")+"")&&Oi(n,e),b[0]&512&&i!==(i=Vt(t[9]))&&m(r,"style",i),b[0]&16){f=sr(t[4]);let _;for(_=0;_<f.length;_+=1){const v=Lc(t,f,_);h[_]?h[_].p(v,b):(h[_]=Rc(v),h[_].c(),h[_].m(s,null))}for(;_<h.length;_+=1)h[_].d(1);h.length=f.length}b[1]&16777216&&a!==(a=bt("select__select",_o,{"has-custom-focus":t[55]}))&&m(s,"class",a),b[0]&128&&m(s,"aria-label",t[7]),b[0]&256&&l!==(l=Vt(t[8]))&&m(s,"style",l),b[0]&48&&ta(s,t[5])},d(p){p&&(E(r),E(o),E(s)),hn(h,p),t[51](null),c=!1,Jr(u)}}}function T0(t){let r,e,n,i;const o=[I0,V0],s=[];function a(l,c){return l[6]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function F0(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L,P,V,F,x,D,J=S,Z=()=>(J(),J=N(L,ze=>e(40,D=ze)),L),W,G=S,z=()=>(G(),G=N(w,ze=>e(41,W=ze)),w),he,ye=S,Te=()=>(ye(),ye=N(v,ze=>e(42,he=ze)),v),_e,be=S,pt=()=>(be(),be=N(_,ze=>e(43,_e=ze)),_),Ue,Re=S,Me=()=>(Re(),Re=N(b,ze=>e(44,Ue=ze)),b),Ze,et=S,Q=()=>(et(),et=N(p,ze=>e(45,Ze=ze)),p),Ee,ge=S,nt=()=>(ge(),ge=N(h,ze=>e(46,Ee=ze)),h),Y,Se=S,Ge=()=>(Se(),Se=N(f,ze=>e(47,Y=ze)),f),ne,lt=S,je=()=>(lt(),lt=N(u,ze=>e(48,ne=ze)),u),Ie,kt,Tt=S,te=()=>(Tt(),Tt=N(l,ze=>e(50,kt=ze)),l),it,ut=S,gt=()=>(ut(),ut=N(a,ze=>e(5,it=ze)),a),qe,C=S,rt=()=>(C(),C=N(c,ze=>e(24,qe=ze)),c);t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se()),t.$$.on_destroy.push(()=>lt()),t.$$.on_destroy.push(()=>Tt()),t.$$.on_destroy.push(()=>ut()),t.$$.on_destroy.push(()=>C());let{componentContext:le}=r,{layoutParams:Qe=void 0}=r;const At=Yr(tn),fe=At.direction;un(t,fe,ze=>e(49,Ie=ze));let pe,ft,$e=!1,tr="",Ot=null,Qt="",Oe="rgba(0,0,0,.45)",yt=12,Jt,Ut="",qt,H="",ae="#000",dr="",we;function It(){e(27,Ot=null),e(29,Oe="rgba(0,0,0,.45)"),e(30,yt=12),e(31,Jt=void 0),e(32,Ut=""),e(33,qt=void 0),e(34,H=""),e(35,ae="#000"),e(7,dr="")}fn(()=>{pe&&(At.unregisterFocusable(pe),e(26,pe=void 0))});function Be(ze){Or[ze?"unshift":"push"](()=>{ft=ze,e(2,ft)})}function vt(){it=Dd(this),a.set(it),e(4,s),e(38,o),e(0,le)}return t.$$set=ze=>{"componentContext"in ze&&e(0,le=ze.componentContext),"layoutParams"in ze&&e(1,Qe=ze.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&e(39,n=le.origJson),t.$$.dirty[1]&256&&n&&It(),t.$$.dirty[0]&1&&e(37,i=le.json.value_variable),t.$$.dirty[0]&1&&e(38,o=le.json.options),t.$$.dirty[1]&128&&e(4,s=Array.isArray(o)&&o.filter(ze=>typeof ze.value=="string")||[]),t.$$.dirty[0]&1|t.$$.dirty[1]&64&>(e(23,a=i&&le.getVariable(i,"string")||pi("temp","string",""))),t.$$.dirty[0]&1&&te(e(22,l=le.getDerivedFromVars(le.json.paddings))),t.$$.dirty[0]&1&&rt(e(21,c=le.getDerivedFromVars(le.json.hint_text))),t.$$.dirty[0]&1&&je(e(20,u=le.getDerivedFromVars(le.json.hint_color))),t.$$.dirty[0]&1&&Ge(e(19,f=le.getDerivedFromVars(le.json.font_size))),t.$$.dirty[0]&1&&nt(e(18,h=le.getDerivedFromVars(le.json.font_weight))),t.$$.dirty[0]&1&&Q(e(17,p=le.getDerivedFromVars(le.json.font_weight_value))),t.$$.dirty[0]&1&&Me(e(16,b=le.getDerivedFromVars(le.json.font_family))),t.$$.dirty[0]&1&&pt(e(15,_=le.getDerivedFromVars(le.json.line_height))),t.$$.dirty[0]&1&&Te(e(14,v=le.getDerivedFromVars(le.json.letter_spacing))),t.$$.dirty[0]&1&&z(e(13,w=le.getDerivedFromVars(le.json.text_color))),t.$$.dirty[0]&1&&Z(e(12,L=le.getDerivedFromVars(le.json.accessibility))),t.$$.dirty[0]&17&&(Array.isArray(s)&&s.length||le.logError(ee(new Error('Empty selection "items" in "select"')))),t.$$.dirty[0]&1|t.$$.dirty[1]&64&&(i?e(6,$e=!1):(e(6,$e=!0),le.logError(ee(new Error('Missing "value_variable" in "select"'))))),t.$$.dirty[0]&49|t.$$.dirty[1]&32){const ze=s.find(at=>at.value===it);ze?e(3,tr=(typeof ze.text=="string"?ze.text:ze.value)||""):(e(3,tr=""),it&&we!==it&&(e(36,we=it),le.logError(ee(new Error('Value from the variable was not found in the selection items for "select"')))))}if(t.$$.dirty[0]&1073741824|t.$$.dirty[1]&65536&&e(30,yt=Kn(Y,yt)),t.$$.dirty[0]&1207959552|t.$$.dirty[1]&786432&&(e(27,Ot=Oo(kt||void 0,Ot)),e(28,Qt=Ot?_i({top:(Number(Ot.top)||0)/yt*10,right:(Number(Ie==="ltr"?Ot.end:Ot.start)||Number(Ot.right)||0)/yt*10,bottom:(Number(Ot.bottom)||0)/yt*10,left:(Number(Ie==="ltr"?Ot.start:Ot.end)||Number(Ot.left)||0)/yt*10},Ie):"")),t.$$.dirty[0]&536870912|t.$$.dirty[1]&131072&&e(29,Oe=Mr(ne,1,Oe)),t.$$.dirty[1]&57345&&(e(31,Jt=go(Ee,Ze,Jt)),Ue&&typeof Ue=="string"?e(32,Ut=At.typefaceProvider(Ue,{fontWeight:Jt||400})):e(32,Ut="")),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&4096){const ze=_e;Pn(ze)&&e(33,qt=ze/yt)}t.$$.dirty[0]&1073741824|t.$$.dirty[1]&2048&&Os(he)&&e(34,H=ke(he/yt*10)),t.$$.dirty[1]&1040&&e(35,ae=Mr(W,1,ae)),t.$$.dirty[0]&1|t.$$.dirty[1]&512&&(D!=null&&D.description?e(7,dr=D.description):le.logError(ee(new Error('Missing accessibility "description" for select'),{level:"warn"}))),t.$$.dirty[0]&8&&e(11,P={hint:!tr}),t.$$.dirty[0]&536870912|t.$$.dirty[1]&19&&e(10,V={"--divkit-input-hint-color":Oe,"font-weight":Jt,"font-family":Ut,color:ae}),t.$$.dirty[0]&1342177280|t.$$.dirty[1]&12&&e(9,F={padding:Qt,"font-size":ke(yt),"line-height":qt,"letter-spacing":H}),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&12&&e(8,x={"font-size":ke(yt),"line-height":qt,"letter-spacing":H}),t.$$.dirty[0]&67108869&&le.json&&ft&&(pe&&(At.unregisterFocusable(pe),e(26,pe=void 0)),le.id&&!le.fakeElement&&(e(26,pe=le.id),At.registerFocusable(pe,{focus(){ft&&ft.focus()}})))},[le,Qe,ft,tr,s,it,$e,dr,x,F,V,P,L,w,v,_,b,p,h,f,u,c,l,a,qe,fe,pe,Ot,Qt,Oe,yt,Jt,Ut,qt,H,ae,we,i,o,n,D,W,he,_e,Ue,Ze,Ee,Y,ne,Ie,kt,Be,vt]}class M0 extends Wr{constructor(r){super(),Hr(this,r,F0,T0,Ar,{componentContext:0,layoutParams:1},null,[-1,-1])}}const P0="divkit-b382f",N0="divkit-2205d",No={video__video:P0,"video__aspect-wrapper":"divkit-04542",video_absolute:N0};function O0(t,r){return Array.isArray(t)&&t.length?t.filter(e=>(e==null?void 0:e.type)==="video_source"&&typeof e.url=="string"&&typeof e.mime_type=="string").map(e=>{const n={src:e.url};return e.mime_type&&(n.type=e.mime_type),n}):r}function z0(t){return t==="fill"?"cover":t==="no_scale"?"none":"contain"}function Bc(t,r,e){const n=t.slice();return n[52]=r[e],n}function Hc(t,r,e){const n=t.slice();return n[52]=r[e],n}function L0(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function R0(t){let r,e;return r=new Cn({props:{cls:bt("video",No,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],heightByAspect:t[10]!=="0",$$slots:{default:[W0]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&4096&&(o.cls=bt("video",No,n[12])),i[0]&1&&(o.componentContext=n[0]),i[0]&2&&(o.layoutParams=n[1]),i[0]&1024&&(o.heightByAspect=n[10]!=="0"),i[0]&4088|i[1]&67108864&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function B0(t){let r,e,n,i,o,s=sr(t[4]),a=[];for(let l=0;l<s.length;l+=1)a[l]=Uc(Bc(t,s,l));return{c(){r=He("video");for(let l=0;l<a.length;l+=1)a[l].c();this.h()},l(l){r=Je(l,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var c=De(r);for(let u=0;u<a.length;u+=1)a[u].l(c);c.forEach(E),this.h()},h(){m(r,"class",No.video__video),m(r,"style",e=Vt(t[11])),r.playsInline=!0,r.loop=t[5],r.autoplay=t[6],r.muted=t[7],m(r,"poster",t[9]),m(r,"preload",n=t[8]?"metadata":"auto")},m(l,c){ie(l,r,c);for(let u=0;u<a.length;u+=1)a[u]&&a[u].m(r,null);t[46](r),i||(o=[Ye(r,"timeupdate",t[23]),Ye(r,"ended",t[24]),Ye(r,"playing",t[25]),Ye(r,"pause",t[26]),Ye(r,"waiting",t[27]),Ye(r,"error",t[28])],i=!0)},p(l,c){if(c[0]&268435472){s=sr(l[4]);let u;for(u=0;u<s.length;u+=1){const f=Bc(l,s,u);a[u]?a[u].p(f,c):(a[u]=Uc(f),a[u].c(),a[u].m(r,null))}for(;u<a.length;u+=1)a[u].d(1);a.length=s.length}c[0]&2048&&e!==(e=Vt(l[11]))&&m(r,"style",e),c[0]&32&&(r.loop=l[5]),c[0]&64&&(r.autoplay=l[6]),c[0]&128&&(r.muted=l[7]),c[0]&512&&m(r,"poster",l[9]),c[0]&256&&n!==(n=l[8]?"metadata":"auto")&&m(r,"preload",n)},d(l){l&&E(r),hn(a,l),t[46](null),i=!1,Jr(o)}}}function H0(t){let r,e,n,i,o=`${t[10]}%`,s,a,l=sr(t[4]),c=[];for(let u=0;u<l.length;u+=1)c[u]=Yc(Hc(t,l,u));return{c(){r=He("div"),e=He("video");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){r=Je(u,"DIV",{class:!0});var f=De(r);e=Je(f,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var h=De(e);for(let p=0;p<c.length;p+=1)c[p].l(h);h.forEach(E),f.forEach(E),this.h()},h(){m(e,"class",No.video__video),m(e,"style",n=Vt(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],m(e,"poster",t[9]),m(e,"preload",i=t[8]?"metadata":"auto"),m(r,"class",No["video__aspect-wrapper"]),B(r,"padding-bottom",o)},m(u,f){ie(u,r,f),St(r,e);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(e,null);t[45](e),s||(a=[Ye(e,"timeupdate",t[23]),Ye(e,"ended",t[24]),Ye(e,"playing",t[25]),Ye(e,"pause",t[26]),Ye(e,"waiting",t[27]),Ye(e,"error",t[28])],s=!0)},p(u,f){if(f[0]&268435472){l=sr(u[4]);let h;for(h=0;h<l.length;h+=1){const p=Hc(u,l,h);c[h]?c[h].p(p,f):(c[h]=Yc(p),c[h].c(),c[h].m(e,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=l.length}f[0]&2048&&n!==(n=Vt(u[11]))&&m(e,"style",n),f[0]&32&&(e.loop=u[5]),f[0]&64&&(e.autoplay=u[6]),f[0]&128&&(e.muted=u[7]),f[0]&512&&m(e,"poster",u[9]),f[0]&256&&i!==(i=u[8]?"metadata":"auto")&&m(e,"preload",i),f[0]&1024&&o!==(o=`${u[10]}%`)&&B(r,"padding-bottom",o)},d(u){u&&E(r),hn(c,u),t[45](null),s=!1,Jr(a)}}}function Wc(t){let r,e,n,i,o;return{c(){r=He("source"),this.h()},l(s){r=Je(s,"SOURCE",{src:!0,type:!0}),this.h()},h(){Wn(r.src,e=t[52].src)||m(r,"src",e),m(r,"type",n=t[52].type)},m(s,a){ie(s,r,a),i||(o=Ye(r,"error",t[28]),i=!0)},p(s,a){a[0]&16&&!Wn(r.src,e=s[52].src)&&m(r,"src",e),a[0]&16&&n!==(n=s[52].type)&&m(r,"type",n)},d(s){s&&E(r),i=!1,o()}}}function Uc(t){let r=t[52],e,n=Wc(t);return{c(){n.c(),e=Ne()},l(i){n.l(i),e=Ne()},m(i,o){n.m(i,o),ie(i,e,o)},p(i,o){o[0]&16&&Ar(r,r=i[52])?(n.d(1),n=Wc(i),n.c(),n.m(e.parentNode,e)):n.p(i,o)},d(i){i&&E(e),n.d(i)}}}function Gc(t){let r,e,n,i,o;return{c(){r=He("source"),this.h()},l(s){r=Je(s,"SOURCE",{src:!0,type:!0}),this.h()},h(){Wn(r.src,e=t[52].src)||m(r,"src",e),m(r,"type",n=t[52].type)},m(s,a){ie(s,r,a),i||(o=Ye(r,"error",t[28]),i=!0)},p(s,a){a[0]&16&&!Wn(r.src,e=s[52].src)&&m(r,"src",e),a[0]&16&&n!==(n=s[52].type)&&m(r,"type",n)},d(s){s&&E(r),i=!1,o()}}}function Yc(t){let r=t[52],e,n=Gc(t);return{c(){n.c(),e=Ne()},l(i){n.l(i),e=Ne()},m(i,o){n.m(i,o),ie(i,e,o)},p(i,o){o[0]&16&&Ar(r,r=i[52])?(n.d(1),n=Gc(i),n.c(),n.m(e.parentNode,e)):n.p(i,o)},d(i){i&&E(e),n.d(i)}}}function W0(t){let r;function e(o,s){return o[10]!=="0"?H0:B0}let n=e(t),i=n(t);return{c(){i.c(),r=Ne()},l(o){i.l(o),r=Ne()},m(o,s){i.m(o,s),ie(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&&E(r),i.d(o)}}}function U0(t){let r,e,n,i;const o=[R0,L0],s=[];function a(l,c){return l[2]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,c){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function G0(t,r,e){let n,i,o,s,a,l,c,u,f,h,p,b,_,v,w,L=S,P=()=>(L(),L=N(a,H=>e(35,w=H)),a),V,F=S,x=()=>(F(),F=N(b,H=>e(36,V=H)),b),D,J=S,Z=()=>(J(),J=N(p,H=>e(37,D=H)),p),W,G=S,z=()=>(G(),G=N(h,H=>e(38,W=H)),h),he,ye=S,Te=()=>(ye(),ye=N(f,H=>e(39,he=H)),f),_e,be=S,pt=()=>(be(),be=N(u,H=>e(40,_e=H)),u),Ue,Re=S,Me=()=>(Re(),Re=N(c,H=>e(41,Ue=H)),c),Ze,et=S,Q=()=>(et(),et=N(l,H=>e(42,Ze=H)),l),Ee,ge=S,nt=()=>(ge(),ge=N(s,H=>e(43,Ee=H)),s),Y,Se=S,Ge=()=>(Se(),Se=N(o,H=>e(44,Y=H)),o);t.$$.on_destroy.push(()=>L()),t.$$.on_destroy.push(()=>F()),t.$$.on_destroy.push(()=>J()),t.$$.on_destroy.push(()=>G()),t.$$.on_destroy.push(()=>ye()),t.$$.on_destroy.push(()=>be()),t.$$.on_destroy.push(()=>Re()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>ge()),t.$$.on_destroy.push(()=>Se());let{componentContext:ne}=r,{layoutParams:lt=void 0}=r;const je=Yr(tn);let Ie,kt=!1,Tt=!1,te,it=[],ut=!1,gt=!1,qe=!1,C=!1,rt,le="fit",Qe="0",At=!1,fe;function pe(H){if(Tt){Tt=!1;return}te&&e(3,te.currentTime=Number(H)/1e3,te)}function ft(){te==null||te.pause()}function $e(){const H=te==null?void 0:te.play();H&&H.catch(ae=>{ne.logError(ee(new Error("Video playing error"),{level:"error",additional:{originalText:String(ae)}}))})}function tr(){te&&(Tt=!0,i.setValue(Math.floor(te.currentTime*1e3)))}function Ot(){const H=ne.getJsonWithVars(ne.json.end_actions);ne.execAnyActions(H)}function Qt(){const H=ne.getJsonWithVars(ne.json.resume_actions);ne.execAnyActions(H)}function Oe(){const H=ne.getJsonWithVars(ne.json.pause_actions);ne.execAnyActions(H)}function yt(){const H=ne.getJsonWithVars(ne.json.buffering_actions);ne.execAnyActions(H)}function Jt(){const H=ne.getJsonWithVars(ne.json.fatal_actions);ne.execAnyActions(H)}fn(()=>{Ie&&(je.unregisterInstance(Ie),e(29,Ie=void 0)),fe&&(fe(),e(32,fe=void 0))});function Ut(H){Or[H?"unshift":"push"](()=>{te=H,e(3,te)})}function qt(H){Or[H?"unshift":"push"](()=>{te=H,e(3,te)})}return t.$$set=H=>{"componentContext"in H&&e(0,ne=H.componentContext),"layoutParams"in H&&e(1,lt=H.layoutParams)},t.$$.update=()=>{if(t.$$.dirty[0]&1&&ne.json&&(e(5,ut=!1),e(6,gt=!1),e(7,qe=!1),e(8,C=!1),e(9,rt=void 0),e(30,le="fit"),e(31,At=!1)),t.$$.dirty[0]&1&&e(34,n=ne.json.elapsed_time_variable),t.$$.dirty[0]&1|t.$$.dirty[1]&8&&e(33,i=n&&ne.getVariable(n,"integer")||pi("temp","integer",0)),t.$$.dirty[1]&6&&i&&(fe&&fe(),e(32,fe=i.subscribe(pe))),t.$$.dirty[0]&1&&Ge(e(22,o=ne.getDerivedFromVars(ne.json.video_sources))),t.$$.dirty[0]&1&&nt(e(21,s=ne.getDerivedFromVars(ne.json.repeatable))),t.$$.dirty[0]&1&&P(e(20,a=ne.getDerivedFromVars(ne.json.autostart))),t.$$.dirty[0]&1&&Q(e(19,l=ne.getDerivedFromVars(ne.json.muted))),t.$$.dirty[0]&1&&Me(e(18,c=ne.getDerivedFromVars(ne.json.preload_required))),t.$$.dirty[0]&1&&pt(e(17,u=ne.getDerivedFromVars(ne.json.preview))),t.$$.dirty[0]&1&&Te(e(16,f=ne.getDerivedFromVars(ne.json.scale))),t.$$.dirty[0]&1&&z(e(15,h=ne.getDerivedFromVars(ne.json.aspect))),t.$$.dirty[0]&1&&Z(e(14,p=ne.getDerivedFromVars(ne.json.width))),t.$$.dirty[0]&1&&x(e(13,b=ne.getDerivedFromVars(ne.json.height))),t.$$.dirty[0]&17|t.$$.dirty[1]&8192&&(e(4,it=O0(Y,it)),it.length?e(2,kt=!1):(e(2,kt=!0),ne.logError(ee(new Error('Missing "video_sources" in "video"'))))),t.$$.dirty[0]&32|t.$$.dirty[1]&4096&&e(5,ut=ti(Ee,ut)),t.$$.dirty[0]&64|t.$$.dirty[1]&16&&e(6,gt=ti(w,gt)),t.$$.dirty[0]&128|t.$$.dirty[1]&2048&&e(7,qe=ti(Ze,qe)),t.$$.dirty[0]&256|t.$$.dirty[1]&1024&&e(8,C=ti(Ue,C)),t.$$.dirty[0]&512|t.$$.dirty[1]&512&&e(9,rt=typeof _e=="string"?yf(_e):rt),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&256&&e(30,le=z0(he)||le),t.$$.dirty[1]&224){const H=W==null?void 0:W.ratio;H&&Pn(H)?(e(10,Qe=(100/Number(H)).toFixed(2)),e(31,At=!0)):(e(10,Qe="0"),e(31,At=(!D||D.type==="match_parent")&&(V==null?void 0:V.type)==="match_parent"))}t.$$.dirty[0]&536870917&&ne.json&&(Ie&&(je.unregisterInstance(Ie),e(29,Ie=void 0)),ne.id&&!kt&&!ne.fakeElement&&(e(29,Ie=ne.id),je.registerInstance(Ie,{pause:ft,start:$e}))),t.$$.dirty[0]&9|t.$$.dirty[1]&16&&ne.json&&w&&te&&$e(),t.$$.dirty[1]&1&&e(12,_={absolute:At}),t.$$.dirty[0]&1073741824&&e(11,v={"object-fit":le})},[ne,lt,kt,te,it,ut,gt,qe,C,rt,Qe,v,_,b,p,h,f,u,c,l,a,s,o,tr,Ot,Qt,Oe,yt,Jt,Ie,le,At,fe,i,n,w,V,D,W,he,_e,Ue,Ze,Ee,Y,Ut,qt]}class Y0 extends Wr{constructor(r){super(),Hr(this,r,G0,U0,Ar,{componentContext:0,layoutParams:1},null,[-1,-1])}}const J0="divkit-adc72",q0="divkit-385c4",K0="divkit-3c049",X0="divkit-ed159",Z0="divkit-f630c",Gi={switch:"divkit-03a3a",switch__tumbler:J0,switch__tumbler_checked:q0,switch_disabled:K0,switch__thumb:X0,switch__input:Z0};function Qs(t){return t===!0||t===1}function Q0(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function x0(t){let r,e;return r=new Cn({props:{cls:bt("switch",Gi,t[9]),style:t[8],customDescription:!0,customActions:"switch",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[$0,({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>({26:n,27:i,28:o}),({focusHandler:n,blurHandler:i,hasCustomFocus:o})=>(n?67108864:0)|(i?134217728:0)|(o?268435456:0)]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i&512&&(o.cls=bt("switch",Gi,n[9])),i&256&&(o.style=n[8]),i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&1006633052&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function $0(t){let r,e,n,i,o,s,a,l,c;return{c(){r=He("div"),e=He("div"),i=yr(),o=He("input"),this.h()},l(u){r=Je(u,"DIV",{class:!0});var f=De(r);e=Je(f,"DIV",{class:!0}),De(e).forEach(E),f.forEach(E),i=vr(u),o=Je(u,"INPUT",{type:!0,class:!0,autocomplete:!0,"aria-label":!0}),this.h()},h(){m(e,"class",Gi.switch__thumb),m(r,"class",n=bt("switch__tumbler",Gi,{checked:t[3]})),m(o,"type","checkbox"),m(o,"class",s=bt("switch__input",Gi,{"has-custom-focus":t[28]})),m(o,"autocomplete","off"),m(o,"aria-label",t[6]),o.disabled=a=!t[4],o.checked=t[3]},m(u,f){ie(u,r,f),St(r,e),ie(u,i,f),ie(u,o,f),t[23](o),l||(c=[Ye(o,"input",t[13]),Ye(o,"focus",function(){Vr(t[26])&&t[26].apply(this,arguments)}),Ye(o,"blur",function(){Vr(t[27])&&t[27].apply(this,arguments)})],l=!0)},p(u,f){t=u,f&8&&n!==(n=bt("switch__tumbler",Gi,{checked:t[3]}))&&m(r,"class",n),f&268435456&&s!==(s=bt("switch__input",Gi,{"has-custom-focus":t[28]}))&&m(o,"class",s),f&64&&m(o,"aria-label",t[6]),f&16&&a!==(a=!t[4])&&(o.disabled=a),f&8&&(o.checked=t[3])},d(u){u&&(E(r),E(i),E(o)),t[23](null),l=!1,Jr(c)}}}function e1(t){let r,e,n,i;const o=[x0,Q0],s=[];function a(l,c){return l[5]?-1:0}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,[c]){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function t1(t,r,e){let n,i,o,s,a,l,c,u,f,h=S,p=()=>(h(),h=N(s,Me=>e(19,f=Me)),s),b,_=S,v=()=>(_(),_=N(l,Me=>e(20,b=Me)),l),w,L=S,P=()=>(L(),L=N(a,Me=>e(21,w=Me)),a),V,F=S,x=()=>(F(),F=N(o,Me=>e(22,V=Me)),o);t.$$.on_destroy.push(()=>h()),t.$$.on_destroy.push(()=>_()),t.$$.on_destroy.push(()=>L()),t.$$.on_destroy.push(()=>F());let{componentContext:D}=r,{layoutParams:J=void 0}=r;const Z=Yr(tn);let W,G,z=!1,he=!1,ye="",Te=!0,_e="#129386",be="#1293864c";function pt(){e(4,Te=!0),e(15,_e="#129386"),e(16,be="#1293864c")}function Ue(Me){e(3,z=Me.target.checked),o.setValue(z)}fn(()=>{W&&(Z.unregisterFocusable(W),e(14,W=void 0))});function Re(Me){Or[Me?"unshift":"push"](()=>{G=Me,e(2,G)})}return t.$$set=Me=>{"componentContext"in Me&&e(0,D=Me.componentContext),"layoutParams"in Me&&e(1,J=Me.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&1&&e(18,n=D.origJson),t.$$.dirty&262144&&n&&pt(),t.$$.dirty&1&&e(17,i=D.json.is_on_variable),t.$$.dirty&131073&&x(e(7,o=i&&D.getVariable(i,"boolean")||pi("temp","boolean",!1))),t.$$.dirty&1&&p(e(12,s=D.getDerivedFromVars(D.json.accessibility))),t.$$.dirty&1&&P(e(11,a=D.getDerivedFromVars(D.json.is_enabled))),t.$$.dirty&1&&v(e(10,l=D.getDerivedFromVars(D.json.on_color))),t.$$.dirty&131073&&(i?e(5,he=!1):(e(5,he=!0),D.logError(ee(new Error('Missing "is_on_variable" in "switch"'))))),t.$$.dirty&4194312&&Qs(z)!==Qs(V)&&e(3,z=Qs(V)),t.$$.dirty&2097168&&e(4,Te=ti(w,Te)),t.$$.dirty&1081344&&(e(15,_e=Mr(b,1,_e)),typeof b=="string")){const Me=Si(b);Me&&(Me.a*=.3,e(16,be=Dl(Me)))}t.$$.dirty&524289&&(f!=null&&f.description?e(6,ye=f.description):D.logError(ee(new Error('Missing accessibility "description" for switch'),{level:"warn"}))),t.$$.dirty&16&&e(9,c={disabled:!Te}),t.$$.dirty&98304&&e(8,u={"--divkit-switch-on-color":_e,"--divkit-switch-on-sub-color":be}),t.$$.dirty&16389&&G&&D.json&&(W&&(Z.unregisterFocusable(W),e(14,W=void 0)),D.id&&!D.fakeElement&&(e(14,W=D.id),Z.registerFocusable(W,{focus(){G&&G.focus()}})))},[D,J,G,z,Te,he,ye,o,u,c,l,a,s,Ue,W,_e,be,i,n,f,b,w,V,Re]}class r1 extends Wr{constructor(r){super(),Hr(this,r,t1,e1,Ar,{componentContext:0,layoutParams:1})}}function Jc(t,r,e){const n=t.slice();return n[11]=r[e],n}function n1(t){let r,e;return r=new vi({props:{componentContext:t[0]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function i1(t){let r,e;return r=new Cn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[o1]},$$scope:{ctx:t}}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i&1&&(o.componentContext=n[0]),i&2&&(o.layoutParams=n[1]),i&16893&&(o.$$scope={dirty:i,ctx:n}),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function qc(t){let r,e,n=[t[8]],i={};for(let o=0;o<n.length;o+=1)i=eo(i,n[o]);return{c(){r=He("template"),e=new Zo(!1),this.h()},l(o){r=Je(o,"TEMPLATE",{});var s=De(r.content);e=Id(s,!1),s.forEach(E),this.h()},h(){e.a=null,ni(r,i)},m(o,s){ie(o,r,s),e.m(t[7],r.content)},p(o,s){s&128&&e.p(o[7]),ni(r,i=bo(n,[s&256&&o[8]]))},d(o){o&&E(r)}}}function Kc(t){let r=t[5],e,n,i=Zc(t);return{c(){i.c(),e=Ne()},l(o){i.l(o),e=Ne()},m(o,s){i.m(o,s),ie(o,e,s),n=!0},p(o,s){s&32&&Ar(r,r=o[5])?(lr(),re(i,1,1,S),ar(),i=Zc(o),i.c(),U(i,1),i.m(e.parentNode,e)):i.p(o,s)},i(o){n||(U(i),n=!0)},o(o){re(i),n=!1},d(o){o&&E(e),i.d(o)}}}function Xc(t){let r,e;return r=new oi({props:{componentContext:t[11]}}),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i&8&&(o.componentContext=n[11]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Zc(t){let r,e,n=sr(t[3]),i=[];for(let s=0;s<n.length;s+=1)i[s]=Xc(Jc(t,n,s));const o=s=>re(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();r=Ne()},l(s){for(let a=0;a<i.length;a+=1)i[a].l(s);r=Ne()},m(s,a){for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(s,a);ie(s,r,a),e=!0},p(s,a){if(a&8){n=sr(s[3]);let l;for(l=0;l<n.length;l+=1){const c=Jc(s,n,l);i[l]?(i[l].p(c,a),U(i[l],1)):(i[l]=Xc(c),i[l].c(),U(i[l],1),i[l].m(r.parentNode,r))}for(lr(),l=n.length;l<i.length;l+=1)o(l);ar()}},i(s){if(!e){for(let a=0;a<n.length;a+=1)U(i[a]);e=!0}},o(s){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)re(i[a]);e=!1},d(s){s&&E(r),hn(i,s)}}}function xs(t){let r,e,n,i=t[7]&&qc(t),o=!t[4]&&t[5]&&Kc(t),s=[t[0].json.custom_props||{}],a={};for(let l=0;l<s.length;l+=1)a=eo(a,s[l]);return{c(){r=He(t[2].element),i&&i.c(),e=yr(),o&&o.c(),this.h()},l(l){r=Je(l,(t[2].element||"null").toUpperCase(),{});var c=De(r);i&&i.l(c),e=vr(c),o&&o.l(c),c.forEach(E),this.h()},h(){xl(t[2].element)(r,a)},m(l,c){ie(l,r,c),i&&i.m(r,null),St(r,e),o&&o.m(r,null),t[9](r),n=!0},p(l,c){l[7]?i?i.p(l,c):(i=qc(l),i.c(),i.m(r,e)):i&&(i.d(1),i=null),!l[4]&&l[5]?o?(o.p(l,c),c&48&&U(o,1)):(o=Kc(l),o.c(),U(o,1),o.m(r,null)):o&&(lr(),re(o,1,1,()=>{o=null}),ar()),xl(l[2].element)(r,a=bo(s,[c&1&&(l[0].json.custom_props||{})]))},i(l){n||(U(o),n=!0)},o(l){re(o),n=!1},d(l){l&&E(r),i&&i.d(),o&&o.d(),t[9](null)}}}function o1(t){let r=t[2].element,e,n=t[2].element&&xs(t);return{c(){n&&n.c(),e=Ne()},l(i){n&&n.l(i),e=Ne()},m(i,o){n&&n.m(i,o),ie(i,e,o)},p(i,o){i[2].element?r?Ar(r,i[2].element)?(n.d(1),n=xs(i),r=i[2].element,n.c(),n.m(e.parentNode,e)):n.p(i,o):(n=xs(i),r=i[2].element,n.c(),n.m(e.parentNode,e)):r&&(n.d(1),n=null,r=i[2].element)},i:S,o(i){re(n,i)},d(i){i&&E(e),n&&n.d(i)}}}function s1(t){let r,e,n,i;const o=[i1,n1],s=[];function a(l,c){return l[2]?0:-1}return~(r=a(t))&&(e=s[r]=o[r](t)),{c(){e&&e.c(),n=Ne()},l(l){e&&e.l(l),n=Ne()},m(l,c){~r&&s[r].m(l,c),ie(l,n,c),i=!0},p(l,[c]){let u=r;r=a(l),r===u?~r&&s[r].p(l,c):(e&&(lr(),re(s[u],1,1,()=>{s[u]=null}),ar()),~r?(e=s[r],e?e.p(l,c):(e=s[r]=o[r](l),e.c()),U(e,1),e.m(n.parentNode,n)):e=null)},i(l){i||(U(e),i=!0)},o(l){re(e),i=!1},d(l){l&&E(n),~r&&s[r].d(l)}}}function l1(t,r,e){let n,{componentContext:i}=r,{layoutParams:o=void 0}=r;const s=Yr(tn);let a,l=null,c="",u={},f=[],h=!1;ii(()=>{if(a&&"divKitApiCallback"in a&&typeof a.divKitApiCallback=="function"){const b=s.getExtensionContext(i);a.divKitApiCallback(b)}}),fn(()=>{f.forEach(b=>{b.destroy()})});function p(b){Or[b?"unshift":"push"](()=>{a=b,e(6,a)})}return t.$$set=b=>{"componentContext"in b&&e(0,i=b.componentContext),"layoutParams"in b&&e(1,o=b.layoutParams)},t.$$.update=()=>{var b;if(t.$$.dirty&5)if(typeof i.json.custom_type=="string"&&i.json.custom_type&&((b=s.customComponents)!=null&&b.has(i.json.custom_type))){if(e(2,l=s.customComponents.get(i.json.custom_type)),typeof l.template=="function"){const _=s.getExtensionContext(i),v=new Map;for(const[w,L]of _.variables)v.set(w,L.getValue());e(7,c=l.template({props:i.json.custom_props,variables:v}))}else l.template&&typeof l.template=="string"?e(7,c=l.template):e(7,c="");e(8,u={shadowrootmode:l.shadowRootMode||"open"})}else e(2,l=null),e(7,c=";"),i.logError(ee(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));t.$$.dirty&1&&e(5,n=i.json.items),t.$$.dirty&33&&(n!==void 0&&!Array.isArray(n)?(e(4,h=!0),i.logError(ee(new Error('Incorrect "items" prop for div "custom"')))):e(4,h=!1)),t.$$.dirty&57&&(f.forEach(_=>{_.destroy()}),e(3,f=(!h&&n||[]).map((_,v)=>i.produceChildContext(_,{path:v}))))},[i,o,l,f,h,n,a,c,u,p]}class a1 extends Wr{constructor(r){super(),Hr(this,r,l1,s1,Ar,{componentContext:0,layoutParams:1})}}const Uf={text:__,container:Q_,separator:og,image:Ba,gif:Ba,grid:Fg,gallery:xg,tabs:Ep,state:Kp,pager:hm,indicator:Cm,slider:e0,input:A0,select:M0,video:Y0,switch:r1,custom:a1};function Qc(t){let r,e,n;var i=t[2];function o(s,a){return{props:{componentContext:s[0],layoutParams:s[1]}}}return i&&(r=ra(i,o(t))),{c(){r&&Yt(r.$$.fragment),e=Ne()},l(s){r&&Zt(r.$$.fragment,s),e=Ne()},m(s,a){r&&Ht(r,s,a),ie(s,e,a),n=!0},p(s,a){if(a&4&&i!==(i=s[2])){if(r){lr();const l=r;re(l.$$.fragment,1,0,()=>{Wt(l,1)}),ar()}i?(r=ra(i,o(s)),Yt(r.$$.fragment),U(r.$$.fragment,1),Ht(r,e.parentNode,e)):r=null}else if(i){const l={};a&1&&(l.componentContext=s[0]),a&2&&(l.layoutParams=s[1]),r.$set(l)}},i(s){n||(r&&U(r.$$.fragment,s),n=!0)},o(s){r&&re(r.$$.fragment,s),n=!1},d(s){s&&E(e),r&&Wt(r,s)}}}function c1(t){let r,e,n=t[2]&&Qc(t);return{c(){n&&n.c(),r=Ne()},l(i){n&&n.l(i),r=Ne()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,[o]){i[2]?n?(n.p(i,o),o&4&&U(n,1)):(n=Qc(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(lr(),re(n,1,1,()=>{n=null}),ar())},i(i){e||(U(n),e=!0)},o(i){re(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}function u1(t,r,e){let{componentContext:n}=r,{layoutParams:i=void 0}=r;const o=Yr(tn);let s;return t.$$set=a=>{"componentContext"in a&&e(0,n=a.componentContext),"layoutParams"in a&&e(1,i=a.layoutParams)},t.$$.update=()=>{if(t.$$.dirty&5){const a=n.json;if(e(2,s=(a==null?void 0:a.type)&&Uf[a.type]||void 0),!s){let l;a!=null&&a.type&&o.hasTemplate(a.type)?l="Recursive template":l="Unknown component",n.logError(ee(new Error(l),{additional:{component:(a==null?void 0:a.type)||"<missing>"}}))}}},[n,i,s]}class oi extends Wr{constructor(r){super(),Hr(this,r,u1,c1,Ar,{componentContext:0,layoutParams:1})}}const f1={"root-svg-filters":"divkit-44365"};function xc(t,r,e){const n=t.slice();n[1]=r[e];const i=n[1].split(":");return n[2]=i[0],n[3]=i[1],n}function $c(t){let r,e,n=sr([...Object.keys(t[0])]),i=[];for(let o=0;o<n.length;o+=1)i[o]=eu(xc(t,n,o));return{c(){r=en("svg"),e=en("defs");for(let o=0;o<i.length;o+=1)i[o].c();this.h()},l(o){r=cn(o,"svg",{class:!0,"aria-hidden":!0});var s=De(r);e=cn(s,"defs",{});var a=De(e);for(let l=0;l<i.length;l+=1)i[l].l(a);a.forEach(E),s.forEach(E),this.h()},h(){m(r,"class",f1["root-svg-filters"]),m(r,"aria-hidden","true")},m(o,s){ie(o,r,s),St(r,e);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(e,null)},p(o,s){if(s&1){n=sr([...Object.keys(o[0])]);let a;for(a=0;a<n.length;a+=1){const l=xc(o,n,a);i[a]?i[a].p(l,s):(i[a]=eu(l),i[a].c(),i[a].m(e,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}},d(o){o&&E(r),hn(i,o)}}}function d1(t){let r,e;return{c(){r=en("feBlend"),this.h()},l(n){r=cn(n,"feBlend",{in2:!0,mode:!0}),De(r).forEach(E),this.h()},h(){m(r,"in2","SourceGraphic"),m(r,"mode",e=t[3])},m(n,i){ie(n,r,i)},p(n,i){i&1&&e!==(e=n[3])&&m(r,"mode",e)},d(n){n&&E(r)}}}function h1(t){let r;return{c(){r=en("feComposite"),this.h()},l(e){r=cn(e,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),De(r).forEach(E),this.h()},h(){m(r,"in2","SourceGraphic"),m(r,"operator","arithmetic"),m(r,"k1","1"),m(r,"k2","0"),m(r,"k3","0"),m(r,"k4","0")},m(e,n){ie(e,r,n)},p:S,d(e){e&&E(r)}}}function _1(t){let r,e;return{c(){r=en("feComposite"),this.h()},l(n){r=cn(n,"feComposite",{in2:!0,operator:!0}),De(r).forEach(E),this.h()},h(){m(r,"in2","SourceGraphic"),m(r,"operator",e=t[3].split("_")[1])},m(n,i){ie(n,r,i)},p(n,i){i&1&&e!==(e=n[3].split("_")[1])&&m(r,"operator",e)},d(n){n&&E(r)}}}function eu(t){let r,e,n,i;function o(l,c){return l[3]==="source_in"||l[3]==="source_atop"?_1:l[3]==="multiply"?h1:d1}let s=o(t),a=s(t);return{c(){r=en("filter"),e=en("feFlood"),a.c(),this.h()},l(l){r=cn(l,"filter",{id:!0});var c=De(r);e=cn(c,"feFlood",{"flood-color":!0}),De(e).forEach(E),a.l(c),c.forEach(E),this.h()},h(){m(e,"flood-color",n=t[2]),m(r,"id",i=t[0][t[1]])},m(l,c){ie(l,r,c),St(r,e),a.m(r,null)},p(l,c){c&1&&n!==(n=l[2])&&m(e,"flood-color",n),s===(s=o(l))&&a?a.p(l,c):(a.d(1),a=s(l),a&&(a.c(),a.m(r,null))),c&1&&i!==(i=l[0][l[1]])&&m(r,"id",i)},d(l){l&&E(r),a.d()}}}function g1(t){let r=Object.keys(t[0]).length,e,n=r&&$c(t);return{c(){n&&n.c(),e=Ne()},l(i){n&&n.l(i),e=Ne()},m(i,o){n&&n.m(i,o),ie(i,e,o)},p(i,[o]){o&1&&(r=Object.keys(i[0]).length),r?n?n.p(i,o):(n=$c(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:S,o:S,d(i){i&&E(e),n&&n.d(i)}}}function p1(t,r,e){let{svgFiltersMap:n}=r;return t.$$set=i=>{"svgFiltersMap"in i&&e(0,n=i.svgFiltersMap)},[n]}class m1 extends Wr{constructor(r){super(),Hr(this,r,p1,g1,Ar,{svgFiltersMap:0})}}function b1(t,r,e,n){const i=e[t.type];if(!i)return n(ee(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:r};let o;const s={};for(o in r)r.hasOwnProperty(o)&&(s[o]=r[o]);for(o in t)o==="type"||o==="__proto__"||t.hasOwnProperty(o)&&(s[o]=t[o]);function a(c,u){const f=Object.keys(u).filter(b=>b!=="__proto__"),h=f.filter(b=>b.charAt(0)!=="$"),p=f.filter(b=>b.charAt(0)==="$");return h.forEach(b=>{const _=u[b];typeof _=="object"&&_!==null?(c[b]=Array.isArray(_)?[]:{},a(c[b],_)):c[b]=_}),p.forEach(b=>{const _=u[b],v=s[_];if(v!==void 0){const w=b.substring(1);c[w]=v}}),c}const l=a({},i);for(o in t)o==="type"||o==="__proto__"||t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:s}}const y1=2147483647,v1=-2147483648,w1=Number.MAX_VALUE,k1=Number.MIN_VALUE,me="string",ue="integer",We="number",Rr="boolean",xr="color",Hn="url",gr="datetime",xt="dict",$t="array";function Bn(t,r){var e;switch((e=r[t.type])==null||e.call(r,t),t.type){case"TemplateLiteral":t.expressions.forEach(n=>{Bn(n,r)});break;case"BinaryExpression":case"LogicalExpression":Bn(t.left,r),Bn(t.right,r);break;case"UnaryExpression":Bn(t.argument,r);break;case"ConditionalExpression":Bn(t.test,r),Bn(t.consequent,r),Bn(t.alternate,r);break;case"TryExpression":Bn(t.test,r),Bn(t.alternate,r);break;case"CallExpression":t.arguments.forEach(n=>{Bn(n,r)});break;case"MethodExpression":Bn(t.object,r),t.arguments.forEach(n=>{Bn(n,r)});break}}function Es(t){return t.type==="url"||t.type==="color"?{type:"string",value:t.value}:t}function Gf(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function to(t){if(t.type==="string")return t.value;if(t.type==="integer")return String(t.value);if(t.type==="number"){let r=String(t.value);return r.includes(".")||(r.includes("e")?r=r.replace("e",".0e"):r+=".0"),r=r.replace(/e\+?/i,"E"),r}else{if(t.type==="boolean")return t.value?"true":"false";if(t.type==="datetime")return Gf(t.value);if(t.type==="color")return no(Hs(t.value));if(t.type==="url")return t.value;if(t.type==="dict")return"<dict>";if(t.type==="array")return"<array>"}throw new Error(`Unexpected type ${t.type}`)}function Zr(t){let r=to(t);return t.type==="string"&&(r="'"+r.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),r}function Nn(t){return t==="datetime"?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function ro(t,r){return ln(r)}function Sn(t,r){if(r<Po||r>Mo)throw new Error("Integer overflow.")}function Yf(t){const r=new Set;return Bn(t,{Variable(e){r.add(e.id.name)}}),[...r]}function Qr(t,r){throw new Error(`Failed to evaluate [${t}]. ${r}`)}function Hs(t){const r=Si(t);if(r)return r;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function no(t){return`#${[t.a,t.r,t.g,t.b].map(r=>{if(r<0||r>255)throw new Error("Value out of range 0..1.");return df(Math.round(r).toString(16),2)}).join("").toUpperCase()}`}function yo(t){return no(Hs(t))}function fl(t){return{type:We,value:Number(t.value)}}const A1={string:"string",number:"number",integer:"number",boolean:"boolean",color:"string",url:"string",array:"array",dict:"object"};function Jf(t,r,e){const n=A1[e];let i=typeof r;if(n==="array"&&!Array.isArray(r)||n!=="array"&&i!==n||i==="object"&&r===null)throw i==="object"&&(Array.isArray(r)?i="array":r===null?i="null":i="dict"),new Error(`Incorrect value type: expected ${Nn(e)}, got ${Nn(i)}.`);if(n==="number"&&e==="integer"){Sn(t,r);try{r=ln(r)}catch{throw new Error("Cannot convert value to integer.")}}return n==="string"&&e==="color"&&(r=yo(r)),{type:e,value:r}}const So=new Map,dl=new Map,$o=new Map,hl=new Map;function I(t,r,e){const n={args:r,cb:e},i=So.get(t)||[];So.has(t)||So.set(t,i),i.push(n);const o=t+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");dl.set(o,n)}function Gr(t,r,e){const n={args:r,cb:e},i=$o.get(t)||[];$o.has(t)||$o.set(t,i),i.push(n);const o=t+":"+r.map(s=>typeof s=="object"?s.type:s).join("#");hl.set(o,n)}function E1(t,r){const e=t.args.length;let n=t.args.length,i=0;const o=t.args[t.args.length-1];if(typeof o=="object"&&o.isVararg&&(n=1/0),r.length<e)return{type:"few",expected:e,found:r.length};if(r.length>n)return{type:"many",expected:n,found:r.length};for(let s=0;s<r.length;++s){let a=s>=t.args.length?t.args[t.args.length-1]:t.args[s];if(typeof a!="object"&&(a={type:a}),a.type===We&&r[s].type===ue){++i;continue}if(a.type!==r[s].type)return{type:"mismatch",expected:a.type,found:r[s].type}}return{type:"match",conversions:i}}function _l(t,r,e){const n=t.get(r);if(!n)return{type:"missing"};let i=null,o=null;for(let s=0;s<n.length;++s){const a=E1(n[s],e);if(a.type==="match"){(!o||o.conversions>a.conversions)&&(o={func:n[s],conversions:a.conversions});continue}i||(i=a)}if(!o){if(i)return i;throw new Error("Missing function")}return o}function qf(t,r){return r.map((e,n)=>{let i=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return typeof i!="object"&&(i={type:i}),i.type===We&&e.type===ue?fl(e):e})}function tu(t,r){return t+":"+r.args.map(e=>typeof e=="string"?e:e.type).join("#")}function kn(t,r){return r.type===$t||r.type===xt?{type:me,value:JSON.stringify(r.value)}:{type:me,value:to(r)}}function ru(t,r){const e=Number(r.value);if(Number.isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");if(r.value==="")throw new Error("Unable to convert value to Number.");return{type:We,value:e}}function j1(t,r){if(r.value>Mo||r.value<Po)throw new Error("Unable to convert value to Integer.");const e=r.value-r.value%1;return{type:ue,value:ln(e)}}function C1(t,r){let e;try{e=ln(r.value)}catch{throw new Error("Unable to convert value to Integer.")}return{type:ue,value:e}}function S1(t,r){return{type:ue,value:ln(r.value?1:0)}}function V1(t,r){const e=Number(r.value);if(e!==1&&e!==0)throw new Error("Unable to convert value to Boolean.");return{type:Rr,value:e}}function I1(t,r){if(r.value!=="true"&&r.value!=="false")throw new Error("Unable to convert value to Boolean.");return{type:Rr,value:r.value==="true"?1:0}}function D1(t,r){return{type:xr,value:yo(r.value)}}function T1(t,r){return{type:Hn,value:r.value}}function F1(t,r){try{return{type:me,value:encodeURIComponent(r.value)}}catch{throw new Error("Unable to encodeUri string.")}}function M1(t,r){try{return{type:me,value:decodeURIComponent(r.value)}}catch{throw new Error("Unable to decodeUri string.")}}function Ul(t,r,e,n){const i=t.variables.get(r.value);let o;return i&&i.getType()===n?o=i.getValue():o=e.value,n==="color"&&(o=yo(o)),{type:n,value:o}}function Wo(t,r,e){return Ul(t,r,e,e.type)}function nu(t,r,e){return Ul(t,r,e,"color")}function iu(t,r,e){return Ul(t,r,e,"url")}function P1(){I("toString",[ue],kn),I("toString",[We],kn),I("toString",[Rr],kn),I("toString",[xr],kn),I("toString",[Hn],kn),I("toString",[me],kn),I("toString",[$t],kn),I("toString",[xt],kn),I("toNumber",[ue],ru),I("toNumber",[me],ru),I("toInteger",[We],j1),I("toInteger",[me],C1),I("toInteger",[Rr],S1),I("toBoolean",[ue],V1),I("toBoolean",[me],I1),I("toColor",[me],D1),I("toUrl",[me],T1),I("encodeUri",[me],F1),I("decodeUri",[me],M1),I("getIntegerValue",[me,ue],Wo),I("getNumberValue",[me,We],Wo),I("getBooleanValue",[me,Rr],Wo),I("getStringValue",[me,me],Wo),I("getColorValue",[me,xr],nu),I("getColorValue",[me,me],nu),I("getUrlValue",[me,Hn],iu),I("getUrlValue",[me,me],iu),Gr("toString",[ue],kn),Gr("toString",[We],kn),Gr("toString",[Rr],kn),Gr("toString",[xr],kn),Gr("toString",[Hn],kn),Gr("toString",[me],kn),Gr("toString",[$t],kn),Gr("toString",[xt],kn)}function An(t,r){return!t||!r?t:t.padStart(r,"0")}const gl={G(t,r){let e;return t<4?e="short":t===5?e="narrow":e="long",r({era:e},"era")},d(t,r){return An(r({day:"numeric"},"day"),t>1?t:0)},D(t,r){return An(r({},"dayofyear"),t>1?t:0)},F(t,r){return An(r({},"dayofweekinmonth"),t>1?t:0)},M(t,r){let e;return t===1?e="numeric":t===2?e="2-digit":t===3?e="short":t===5?e="narrow":e="long",r({month:e,day:"numeric"},"month")},y(t,r){return An(r({year:t===2?"2-digit":"numeric"},"year"),t>2?t:void 0)},Y(t,r){return An(r({year:t===2?"2-digit":"numeric"},"weekyear"),t>2?t:void 0)},u(t,r){return An(r({year:"numeric"},"extendedyear"),t>1?t:void 0)},E(t,r){let e;return t<=3?e="short":t===5?e="narrow":e="long",r({weekday:e},"weekday")},e(t,r){return t>2?gl.E(t,r):An(r({},"weekdaynumeric"),t>1?t:void 0)},w(t,r){return An(r({},"week"),t>1?t:void 0)},W(t,r){return An(r({},"weekofmonth"),t>1?t:void 0)},H(t,r){const e=r({hour:"numeric",hour12:!1,hourCycle:"h23"},"hour");if(!e)return;const n=String(Number(e)%24);return An(n,t>1?t:void 0)},h(t,r){return An(r({hour:"numeric",hour12:!0,hourCycle:"h12"},"hour"),t>1?t:void 0)},K(t,r){const e=r({hour:"numeric",hour12:!0,hourCycle:"h11"},"hour");if(!e)return;const n=String(Number(e)%12);return An(n,t>1?t:void 0)},k(t,r){return An(r({hour:"numeric",hour12:!1,hourCycle:"h24"},"hour"),t>2?t:void 0)},a(t,r){return r({hour:"numeric",hour12:!0,hourCycle:"h11",dayPeriod:void 0},"dayPeriod")},m(t,r){return An(r({minute:"numeric"},"minute"),t>1?t:void 0)},s(t,r){return An(r({second:"numeric"},"second"),t>1?t:void 0)},S(t,r){const e=r({fractionalSecondDigits:Math.min(3,t)},"fractionalSecond");return e&&t>3?e.padEnd(t,"0"):e},z(t,r){return r({timeZoneName:t===4?"long":"short"},"timeZoneName")},Z(t,r){const e=-Number(r({},"timezoneoffset")),n=Math.abs(e/60),i=Math.floor(n)*100+(n-Math.floor(n))*60;return(e>=0?"+":"-")+An(String(i),4)}},N1=/(\w)\1*|''|'(''|[^'])+('|$)|./g,O1=/^'([^]*?)'?$/,z1=/''/g,L1=/[a-zA-Z]/,Gl=1e3*60*60*24;function R1(t){const r=t.match(O1);return r?r[1].replace(z1,"'"):t}function pl(t,r,e){const n=t[r?"getUTCDay":"getDay"](),i=n<e?e-n-7:e-n;return new Date(t.getTime()+Gl*i)}function ou(t,r,e){const n=new Date(t);return n[r?"setUTCDate":"setDate"](1),n[r?"setUTCMonth":"setMonth"](0),pl(n,r,e)}function su(t,r){return Math.round((t.getTime()-r.getTime())/Gl)}function lu(t,r,e){let n=0;const i=ou(t,r||!1,e),o=new Date(t);o[r?"setUTCFullYear":"setFullYear"](t[r?"getUTCFullYear":"getFullYear"]()+1);const s=ou(o,r||!1,e),a=t.getTime()<i.getTime(),l=t.getTime()>=s.getTime();let c=t[r?"getUTCFullYear":"getFullYear"]();if(a){--c,i[r?"setUTCFullYear":"setFullYear"](i[r?"getUTCFullYear":"getFullYear"]()-1);const u=su(pl(t,r,e),i);n=Math.round(u/7)+1}else if(l)++c,n=1;else{const u=su(pl(t,r,e),i);n=Math.round(u/7)+1}return{week:n,year:c}}function B1(t,r,{locale:e,isUTC:n,weekStartDay:i=0}={}){const o=(s,a)=>{if(a==="week"){const{week:u}=lu(t,n||!1,i);return String(u)}if(a==="weekofmonth"){const u=t[n?"getUTCDay":"getDay"](),f=new Date(t);f[n?"setUTCDate":"setDate"](1);const h=f[n?"getUTCDay":"getDay"](),p=t[n?"getUTCDate":"getDate"]();return String(Math.ceil(p/7)+(u<h?1:0))}if(a==="dayofweekinmonth"){const u=t[n?"getUTCDate":"getDate"]();return String(Math.ceil(u/7))}if(a==="weekdaynumeric"){let u=t[n?"getUTCDay":"getDay"]();return u<i&&(u+=7),String(u-i+1)}if(a==="dayofyear"){const u=new Date(t);u[n?"setUTCMonth":"setMonth"](0),u[n?"setUTCDate":"setDate"](1),u[n?"setUTCHours":"setHours"](1),u[n?"setUTCMinutes":"setMinutes"](1),u[n?"setUTCSeconds":"setSeconds"](1);const f=Math.ceil((t.getTime()-u.getTime())/Gl);return String(f)}if(a==="weekyear"){let{year:u}=lu(t,n||!1,i);return u<1&&(u=1-u),s.year==="2-digit"?String(u%100):String(u)}if(a==="extendedyear"){const u=t[n?"getUTCFullYear":"getFullYear"]();return s.year==="2-digit"?String(u%100):String(u)}if(a==="timezoneoffset")return n?"0":String(t.getTimezoneOffset());n&&(s.timeZone="UTC");const c=new Intl.DateTimeFormat(e,s).formatToParts(t);for(let u=0;u<c.length;++u)if(c[u].type===a)return c[u].value};return(r.match(N1)||[]).map(s=>{if(s==="''")return"'";const a=s[0];if(a==="'")return R1(s);if(gl[a])return gl[a](s.length,o);if(a.match(L1))throw new Error(`Format string contains an unescaped latin alphabet character "${a}"`);return s}).join("")}function H1(t){const r=new Date(t);return r.setUTCMonth(r.getUTCMonth()+1),r.setUTCDate(0),r.getUTCDate()}function W1(t,r){return{type:gr,value:new Date(Number(r.value)*1e3)}}function U1(t,r){const e=new Date(Number(r.value)*1e3),n=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-n),{type:gr,value:e}}function G1(){return{type:gr,value:new Date}}function Y1(t,r,e){return{type:gr,value:new Date(r.value.getTime()+Number(e.value))}}function J1(t,r,e){const n=new Date(r.value);return n.setUTCFullYear(Number(e.value)),{type:gr,value:n}}function q1(t,r,e){const n=Number(e.value);if(n<1||n>12)throw new Error(`Expecting month in [1..12], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMonth(n-1),{type:gr,value:i}}function K1(t,r,e){const n=new Date(r.value),i=Number(e.value);if(i<=0&&i!==-1||i>H1(n))throw new Error(`Unable to set day ${i} for date ${to(r)}.`);return n.setUTCDate(i===-1?0:i),{type:gr,value:n}}function X1(t,r,e){const n=Number(e.value);if(n<0||n>23)throw new Error(`Expecting hours in [0..23], instead got ${n}.`);const i=new Date(r.value);return i.setUTCHours(n),{type:gr,value:i}}function Z1(t,r,e){const n=Number(e.value);if(n<0||n>59)throw new Error(`Expecting minutes in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMinutes(n),{type:gr,value:i}}function Q1(t,r,e){const n=Number(e.value);if(n<0||n>59)throw new Error(`Expecting seconds in [0..59], instead got ${n}.`);const i=new Date(r.value);return i.setUTCSeconds(n),{type:gr,value:i}}function x1(t,r,e){const n=Number(e.value);if(n<0||n>999)throw new Error(`Expecting millis in [0..999], instead got ${n}.`);const i=new Date(r.value);return i.setUTCMilliseconds(n),{type:gr,value:i}}const zi=t=>(r,e)=>{let i=new Date(e.value.getTime())[t]();return t==="getUTCMonth"?++i:t==="getUTCDay"&&i===0&&(i=7),{type:ue,value:ln(i)}};function Kf(t){return(r,e,n,i)=>({type:me,value:B1(e.value,n.value,{locale:i==null?void 0:i.value,isUTC:t,weekStartDay:r.weekStartDay})})}const $1=zi("getUTCFullYear"),eb=zi("getUTCMonth"),tb=zi("getUTCDate"),rb=zi("getUTCDay"),nb=zi("getUTCHours"),ib=zi("getUTCMinutes"),ob=zi("getUTCSeconds"),sb=zi("getUTCMilliseconds"),au=Kf(!1),cu=Kf(!0);function lb(){I("parseUnixTime",[ue],W1),I("parseUnixTimeAsLocal",[ue],U1),I("nowLocal",[],G1),I("addMillis",[gr,ue],Y1),I("setYear",[gr,ue],J1),I("setMonth",[gr,ue],q1),I("setDay",[gr,ue],K1),I("setHours",[gr,ue],X1),I("setMinutes",[gr,ue],Z1),I("setSeconds",[gr,ue],Q1),I("setMillis",[gr,ue],x1),I("getYear",[gr],$1),I("getMonth",[gr],eb),I("getDay",[gr],tb),I("getDayOfWeek",[gr],rb),I("getHours",[gr],nb),I("getMinutes",[gr],ib),I("getSeconds",[gr],ob),I("getMillis",[gr],sb),I("formatDateAsLocal",[gr,me],au),I("formatDateAsUTC",[gr,me],cu),I("formatDateAsLocalWithLocale",[gr,me,me],au),I("formatDateAsUTCWithLocale",[gr,me,me],cu)}function ab(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function cb(t,r){return{type:ue,value:ln(r.value.length)}}function ub(t,r,e){return{type:Rr,value:r.value.includes(e.value)?1:0}}function fb(t,r,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>r.value.length||n.value<0||n.value>r.value.length)throw new Error("Indexes are out of bounds.");return{type:me,value:r.value.substring(Number(e.value),Number(n.value))}}function db(t,r,e,n){let i;return e.value?i=r.value.replace(new RegExp(ab(e.value),"g"),n.value):i=r.value,{type:me,value:i}}function hb(t,r,e){return{type:ue,value:ln(r.value.indexOf(e.value))}}function _b(t,r,e){return{type:ue,value:ln(r.value.lastIndexOf(e.value))}}function gb(t,r){return{type:me,value:r.value.trim()}}function pb(t,r){return{type:me,value:r.value.replace(/^\s+/,"")}}function mb(t,r){return{type:me,value:r.value.replace(/\s+$/,"")}}function bb(t,r){return{type:me,value:r.value.toUpperCase()}}function yb(t,r){return{type:me,value:r.value.toLowerCase()}}function Xf(t,r,e,n){if(!n.value.length)return t.warnings.push(ee(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=r.type===me?r.value:to(r);for(;i.length+o.length<e.value;)i+=n.value;return i.length>0&&i.length+o.length>e.value&&(i=i.substring(0,Number(e.value)-Number(o.length))),i}function uu(t,r,e,n){const i=Xf(t,r,e,n);return{type:me,value:i+to(r)}}function fu(t,r,e,n){const i=Xf(t,r,e,n);return{type:me,value:to(r)+i}}function vb(t,r,e){let n;try{n=new RegExp(e.value)}catch{throw new Error("Invalid regular expression.")}return{type:Rr,value:n.test(r.value)?1:0}}function wb(t,r){return{type:me,value:r.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}function kb(){I("len",[me],cb),I("contains",[me,me],ub),I("substring",[me,ue,ue],fb),I("replaceAll",[me,me,me],db),I("index",[me,me],hb),I("lastIndex",[me,me],_b),I("trim",[me],gb),I("trimLeft",[me],pb),I("trimRight",[me],mb),I("toUpperCase",[me],bb),I("toLowerCase",[me],yb),I("padStart",[me,ue,me],uu),I("padStart",[ue,ue,me],uu),I("padEnd",[me,ue,me],fu),I("padEnd",[ue,ue,me],fu),I("testRegex",[me,me],vb),I("encodeRegex",[me],wb)}function Ab(t,r,e){if(e.value===$i)throw new Error("Division by zero is not supported.");let n=r.value/e.value;return n=ro(t,n),Sn(t,n),{type:ue,value:n}}function Eb(t,r,e){if(e.value===0)throw new Error("Division by zero is not supported.");const n=r.value/e.value;return{type:We,value:n}}function jb(t,r,e){if(e.value===$i)throw new Error("Division by zero is not supported.");let n=r.value%e.value;return n=ro(t,n),Sn(t,n),{type:ue,value:n}}function Cb(t,r,e){if(e.value===0)throw new Error("Division by zero is not supported.");const n=r.value%e.value;return{type:We,value:n}}function Sb(t,...r){let e=r.length?r[0].value:$i;for(let n=1;n<r.length;++n)e*=r[n].value,e=ro(t,e),Sn(t,e);return{type:ue,value:e}}function Vb(t,...r){let e=r.length?r[0].value:0;for(let n=1;n<r.length;++n)e*=r[n].value;return{type:We,value:e}}function Ib(t,...r){let e=r.length?r[0].value:$i;for(let n=1;n<r.length;++n)e-=r[n].value,e=ro(t,e),Sn(t,e);return{type:ue,value:e}}function Db(t,...r){let e=r.length?r[0].value:0;for(let n=1;n<r.length;++n)e-=r[n].value;return{type:We,value:e}}function Tb(t,...r){let e=$i;for(let n=0;n<r.length;++n)e+=r[n].value,e=ro(t,e),Sn(t,e);return{type:ue,value:e}}function Fb(t,...r){let e=0;for(let n=0;n<r.length;++n)e+=r[n].value;return{type:We,value:e}}function Mb(t,r){const e=Tf(r.value);return Sn(t,e),{type:r.type,value:e}}function Pb(t,r){const e=Math.abs(r.value);return{type:We,value:e}}function Nb(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let e=r[0].value;for(let n=1;n<r.length;++n)r[n].value>e&&(e=r[n].value);return{type:ue,value:e}}function Ob(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:We,value:Math.max(...r.map(e=>e.value))}}function zb(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");let e=r[0].value;for(let n=1;n<r.length;++n)r[n].value<e&&(e=r[n].value);return{type:ue,value:e}}function Lb(t,...r){if(!r.length)throw new Error("Function requires non empty argument list.");return{type:We,value:Math.min(...r.map(e=>e.value))}}function Rb(){return{type:We,value:w1}}function Bb(){return{type:We,value:k1}}function Hb(t){return Sn(t,Mo),{type:ue,value:Mo}}function Wb(t){return Sn(t,Po),{type:ue,value:Po}}function Ub(t,r){const e=Math.sign(r.value);return{type:We,value:e*Math.round(Math.abs(r.value))}}function Gb(t,r){return{type:We,value:Math.floor(r.value)}}function Yb(t,r){return{type:We,value:Math.ceil(r.value)}}function Jb(t,r){return{type:ue,value:Ff(r.value)}}function qb(t,r){return{type:We,value:Math.sign(r.value)}}function Kb(t,r,e){let n;if(e.value===$i)n=r.value;else if(r.value===$i)n=ln(0);else{const i=Ff(e.value);n=Tf(r.value)*i}return Sn(t,n),{type:ue,value:n}}function Xb(t,r,e){let n=Math.sign(e.value);n===0&&(n=Object.is(n,0)?1:-1);const i=Math.abs(r.value)*n;return{type:We,value:i}}function Zb(){I("div",[ue,ue],Ab),I("div",[We,We],Eb),I("mod",[ue,ue],jb),I("mod",[We,We],Cb),I("mul",[{type:ue,isVararg:!0}],Sb),I("mul",[{type:We,isVararg:!0}],Vb),I("sub",[{type:ue,isVararg:!0}],Ib),I("sub",[{type:We,isVararg:!0}],Db),I("sum",[{type:ue,isVararg:!0}],Tb),I("sum",[{type:We,isVararg:!0}],Fb),I("abs",[ue],Mb),I("abs",[We],Pb),I("max",[{type:ue,isVararg:!0}],Nb),I("max",[{type:We,isVararg:!0}],Ob),I("min",[{type:ue,isVararg:!0}],zb),I("min",[{type:We,isVararg:!0}],Lb),I("maxNumber",[],Rb),I("minNumber",[],Bb),I("maxInteger",[],Hb),I("minInteger",[],Wb),I("round",[We],Ub),I("floor",[We],Gb),I("ceil",[We],Yb),I("signum",[ue],Jb),I("signum",[We],qb),I("copySign",[ue,ue],Kb),I("copySign",[We,We],Xb)}function Ws(t){return(r,e)=>{const n=Hs(e.value);return{type:We,value:n[t]/255}}}function Us(t){return(r,e,n)=>{const i=Hs(e.value);return i[t]=n.value*255,{type:xr,value:no(i)}}}const du=Ws("a"),hu=Ws("r"),_u=Ws("g"),gu=Ws("b"),pu=Us("a"),mu=Us("r"),bu=Us("g"),yu=Us("b");function Qb(t,r,e,n){const i={a:255,r:r.value*255,g:e.value*255,b:n.value*255};return{type:xr,value:no(i)}}function xb(t,r,e,n,i){const o={a:r.value*255,r:e.value*255,g:n.value*255,b:i.value*255};return{type:xr,value:no(o)}}function $b(){I("getColorAlpha",[me],du),I("getColorAlpha",[xr],du),I("getColorRed",[me],hu),I("getColorRed",[xr],hu),I("getColorGreen",[me],_u),I("getColorGreen",[xr],_u),I("getColorBlue",[me],gu),I("getColorBlue",[xr],gu),I("setColorAlpha",[me,We],pu),I("setColorAlpha",[xr,We],pu),I("setColorRed",[me,We],mu),I("setColorRed",[xr,We],mu),I("setColorGreen",[me,We],bu),I("setColorGreen",[xr,We],bu),I("setColorBlue",[me,We],yu),I("setColorBlue",[xr,We],yu),I("rgb",[We,We,We],Qb),I("argb",[We,We,We,We],xb)}function Li(t,r,e,n){if(r.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=ln(r.value)/ln(e);return Sn(t,i),n&&(i=ln(i)%ln(n)),{type:ue,value:i}}const Zf=1e3,ey=60,Qf=1e3*60,ty=60,xf=1e3*60*60,ry=24,ny=1e3*60*60*24,iy=1e3*60*60*24*7;function oy(t,r){return Li(t,r,Zf,ey)}function sy(t,r){return Li(t,r,Zf)}function ly(t,r){return Li(t,r,Qf,ty)}function ay(t,r){return Li(t,r,Qf)}function cy(t,r){return Li(t,r,xf,ry)}function uy(t,r){return Li(t,r,xf)}function fy(t,r){return Li(t,r,ny)}function dy(t,r){return Li(t,r,iy)}function hy(){I("getIntervalSeconds",[ue],oy),I("getIntervalTotalSeconds",[ue],sy),I("getIntervalMinutes",[ue],ly),I("getIntervalTotalMinutes",[ue],ay),I("getIntervalHours",[ue],cy),I("getIntervalTotalHours",[ue],uy),I("getIntervalTotalDays",[ue],fy),I("getIntervalTotalWeeks",[ue],dy)}function _y(t,r){let e=t;for(let n=0;n<r.length;++n){if(!e)throw new Error(`Missing property "${r[n]}" in the dict.`);const i=e[r[n]];if(i===void 0)throw new Error(`Missing property "${r[n]}" in the dict.`);e=i}return e}function Ri(t){return(r,e,...n)=>{if(n.length===0)throw new Error("Non empty argument list is required.");const i=_y(e.value,n.map(o=>o.value));return Jf(r,i,t)}}function vo(t,r){return(e,n,i,...o)=>{try{return t(e,i,...o)}catch{let a=n.value;return r==="color"&&(a=yo(a)),{type:r,value:a}}}}const es=Ri(me),ts=Ri(We),rs=Ri(ue),ns=Ri(Rr),is=Ri(xr),os=Ri(Hn),ml=Ri($t),bl=Ri(xt),vu=vo(es,me),wu=vo(ts,We),ku=vo(rs,ue),Au=vo(ns,Rr),Uo=vo(is,xr),Go=vo(os,Hn);function gy(t,r,...e){try{return ml(t,r,...e)}catch{return{type:$t,value:[]}}}function py(t,r,...e){try{return bl(t,r,...e)}catch{return{type:xt,value:{}}}}function my(t,r,e){return{type:Rr,value:e.value in r.value?1:0}}function by(t,r){return{type:Rr,value:Object.keys(r.value).length?0:1}}function yy(){const t={type:me,isVararg:!0};I("getDictString",[xt,t],es),I("getStringFromDict",[xt,t],es),I("getDictNumber",[xt,t],ts),I("getNumberFromDict",[xt,t],ts),I("getDictInteger",[xt,t],rs),I("getIntegerFromDict",[xt,t],rs),I("getDictBoolean",[xt,t],ns),I("getBooleanFromDict",[xt,t],ns),I("getDictColor",[xt,t],is),I("getColorFromDict",[xt,t],is),I("getDictUrl",[xt,t],os),I("getUrlFromDict",[xt,t],os),I("getDictOptString",[me,xt,t],vu),I("getOptStringFromDict",[me,xt,t],vu),I("getDictOptNumber",[We,xt,t],wu),I("getOptNumberFromDict",[We,xt,t],wu),I("getDictOptInteger",[ue,xt,t],ku),I("getOptIntegerFromDict",[ue,xt,t],ku),I("getDictOptBoolean",[Rr,xt,t],Au),I("getOptBooleanFromDict",[Rr,xt,t],Au),I("getDictOptColor",[xr,xt,t],Uo),I("getOptColorFromDict",[xr,xt,t],Uo),I("getDictOptColor",[me,xt,t],Uo),I("getOptColorFromDict",[me,xt,t],Uo),I("getDictOptUrl",[me,xt,t],Go),I("getOptUrlFromDict",[me,xt,t],Go),I("getDictOptUrl",[Hn,xt,t],Go),I("getOptUrlFromDict",[Hn,xt,t],Go),I("getDictFromDict",[xt,t],bl),I("getArrayFromDict",[xt,t],ml),I("getOptArrayFromDict",[xt,t],gy),I("getOptDictFromDict",[xt,t],py),Gr("getString",[xt,t],es),Gr("getBoolean",[xt,t],ns),Gr("getInteger",[xt,t],rs),Gr("getNumber",[xt,t],ts),Gr("getUrl",[xt,t],os),Gr("getColor",[xt,t],is),Gr("getArray",[xt,t],ml),Gr("getDict",[xt,t],bl),Gr("containsKey",[xt,me],my),Gr("isEmpty",[xt],by)}function Bi(t,r){return(e,n,i)=>{if(i.value<0||i.value>=n.value.length)throw new Error(`Requested index (${i.value}) out of bounds array size (${n.value.length}).`);let o=n.value[Number(i.value)],s=typeof o;if(t==="array"&&!Array.isArray(o)||t!=="array"&&s!==t||s==="object"&&o===null)throw s==="object"&&(Array.isArray(o)?s="Array":o===null?s="Null":s="Dict"),new Error(`Incorrect value type: expected ${Nn(r)}, got ${Nn(s)}.`);if(t==="number"&&r==="integer"){Sn(e,o);try{o=ln(o)}catch{throw new Error("Cannot convert value to integer.")}}return t==="string"&&r==="color"&&(o=yo(o)),{type:r,value:o}}}function wo(t,r){return(e,n,i,o)=>{try{return t(e,n,i)}catch{let a=o.value;return r==="color"&&(a=yo(a)),{type:r,value:a}}}}const ss=Bi("string","string"),ls=Bi("number","number"),as=Bi("number","integer"),cs=Bi("boolean","boolean"),us=Bi("string","color"),fs=Bi("string","url"),yl=Bi("array","array"),vl=Bi("object","dict"),Eu=wo(ss,"string"),ju=wo(ls,"number"),Cu=wo(as,"integer"),Su=wo(cs,"boolean"),Yo=wo(us,"color"),Jo=wo(fs,"url");function vy(t,r,e){try{return yl(t,r,e)}catch{return{type:$t,value:[]}}}function wy(t,r,e){try{return vl(t,r,e)}catch{return{type:xt,value:{}}}}function ky(t,r){return{type:ue,value:ln(r.value.length)}}function Ay(t,r){return{type:Rr,value:r.value.length===0?1:0}}function Ey(){I("getArrayString",[$t,ue],ss),I("getStringFromArray",[$t,ue],ss),I("getArrayNumber",[$t,ue],ls),I("getNumberFromArray",[$t,ue],ls),I("getArrayInteger",[$t,ue],as),I("getIntegerFromArray",[$t,ue],as),I("getArrayBoolean",[$t,ue],cs),I("getBooleanFromArray",[$t,ue],cs),I("getArrayColor",[$t,ue],us),I("getColorFromArray",[$t,ue],us),I("getArrayUrl",[$t,ue],fs),I("getUrlFromArray",[$t,ue],fs),I("getArrayFromArray",[$t,ue],yl),I("getDictFromArray",[$t,ue],vl),I("getArrayOptString",[$t,ue,me],Eu),I("getOptStringFromArray",[$t,ue,me],Eu),I("getArrayOptNumber",[$t,ue,We],ju),I("getOptNumberFromArray",[$t,ue,We],ju),I("getArrayOptInteger",[$t,ue,ue],Cu),I("getOptIntegerFromArray",[$t,ue,ue],Cu),I("getArrayOptBoolean",[$t,ue,Rr],Su),I("getOptBooleanFromArray",[$t,ue,Rr],Su),I("getArrayOptColor",[$t,ue,xr],Yo),I("getOptColorFromArray",[$t,ue,xr],Yo),I("getArrayOptColor",[$t,ue,me],Yo),I("getOptColorFromArray",[$t,ue,me],Yo),I("getArrayOptUrl",[$t,ue,Hn],Jo),I("getOptUrlFromArray",[$t,ue,Hn],Jo),I("getArrayOptUrl",[$t,ue,me],Jo),I("getOptUrlFromArray",[$t,ue,me],Jo),I("getOptArrayFromArray",[$t,ue],vy),I("getOptDictFromArray",[$t,ue],wy),I("len",[$t],ky),Gr("getString",[$t,ue],ss),Gr("getInteger",[$t,ue],as),Gr("getNumber",[$t,ue],ls),Gr("getBoolean",[$t,ue],cs),Gr("getUrl",[$t,ue],fs),Gr("getColor",[$t,ue],us),Gr("getArray",[$t,ue],yl),Gr("getDict",[$t,ue],vl),Gr("isEmpty",[$t],Ay)}function fi(t){return(r,e,n)=>{if(!r.store){if(!n)throw new Error("Missing value.");return{type:t,value:n.value}}let i;t==="boolean"?i="boolean":t==="number"||t==="integer"?i="number":i="string";let o;if(r.store.get?o=r.store.get(e.value,t):r.store.getValue&&(o=r.store.getValue(e.value,i)),o===void 0){if(!n)throw new Error("Missing value.");return{type:t,value:n.value}}return Jf(r,o,t)}}function jy(){I("getStoredIntegerValue",[me,ue],fi(ue)),I("getStoredNumberValue",[me,We],fi(We)),I("getStoredStringValue",[me,me],fi(me)),I("getStoredUrlValue",[me,Hn],fi(Hn)),I("getStoredUrlValue",[me,me],fi(Hn)),I("getStoredColorValue",[me,xr],fi(xr)),I("getStoredColorValue",[me,me],fi(xr)),I("getStoredBooleanValue",[me,Rr],fi(Rr)),I("getStoredArrayValue",[me],fi($t)),I("getStoredDictValue",[me],fi(xt))}function Cy(){return{type:We,value:Math.PI}}function Sy(t,r){return{type:We,value:r.value/180*Math.PI}}function Vy(t,r){return{type:We,value:r.value/Math.PI*180}}function Iy(t,r){return{type:We,value:Math.sin(r.value)}}function Dy(t,r){return{type:We,value:Math.cos(r.value)}}function Ty(t,r){return{type:We,value:Math.tan(r.value)}}function Fy(t,r){return{type:We,value:Math.atan(r.value)}}function My(t,r){if(r.value>1||r.value<-1)throw new Error("Arcsine is undefined for the given value.");return{type:We,value:Math.asin(r.value)}}function Py(t,r){if(r.value>1||r.value<-1)throw new Error("Arccosine is undefined for the given value.");return{type:We,value:Math.acos(r.value)}}function Ny(){I("pi",[],Cy),I("toRadians",[We],Sy),I("toDegrees",[We],Vy),I("sin",[We],Iy),I("cos",[We],Dy),I("tan",[We],Ty),I("atan",[We],Fy),I("asin",[We],My),I("acos",[We],Py)}function Oy(){P1(),lb(),hy(),kb(),Zb(),$b(),yy(),Ey(),jy(),Ny()}Oy();function zy(t,r){return{type:me,value:r.value}}function Ly(t,r){return{type:We,value:r.value}}function Ry(t,r){return Sn(t,r.value),{type:ue,value:r.value}}function By(t,r){return{type:Rr,value:r.value?1:0}}function Hy(t,r){const e=Es(yn(t,r.argument));switch(r.operator){case"!":if(e.type===Rr)return{type:Rr,value:e.value?0:1};Qr(`${r.operator}${Zr(e)}`,"A Boolean is expected after a unary not.");case"+":case"-":const n=r.operator==="+"?1:-1;if(e.type===ue){const i=e.value*ln(n);return Sn(t,i),{type:ue,value:i}}else{if(e.type===We)return{type:We,value:e.value*n};Qr(`${r.operator}${Zr(e)}`,`A Number is expected after a unary ${r.operator==="+"?"plus":"minus"}.`)}}}function Wy(t,r){const e=Es(yn(t,r.test));if(e.type===Rr)return e.value?yn(t,r.consequent):yn(t,r.alternate);Qr(`${Zr(e)} ? ${Zr(yn(t,r.consequent))} : ${Zr(yn(t,r.alternate))}`,"Ternary must be called with a Boolean value as a condition.")}function Uy(t,r){try{return yn(t,r.test)}catch{return yn(t,r.alternate)}}function Gy(t,r){let e="";if(r.quasis.length===2&&r.quasis[0].value===""&&r.quasis[1].value==="")return yn(t,r.expressions[0]);for(let n=0;n<r.expressions.length;++n)e+=r.quasis[n].value,e+=to(yn(t,r.expressions[n]));return e+=r.quasis[r.quasis.length-1].value,{type:me,value:e}}function Yy(t,r){const e=Es(yn(t,r.left));if(e.type!==Rr&&Qr(`${Zr(e)} ${r.operator} ...`,`'${r.operator}' must be called with boolean operands.`),r.operator==="||"&&e.value)return e;if(r.operator==="&&"&&!e.value)return{type:Rr,value:0};const n=Es(yn(t,r.right));return n.type!==Rr&&Qr(`${Zr(e)} ${r.operator} ${Zr(n)}`,`Operator '${r.operator}' cannot be applied to different types: Boolean and ${Nn(n.type)}.`),{type:Rr,value:n.value}}function Jy(t,r,e){let n;return r.type===gr&&e.type===gr?n=r.value.getTime()===e.value.getTime():n=r.value===e.value,t==="!="&&(n=!n),{type:Rr,value:n?1:0}}function qy(t,r,e){(r.type!==We&&r.type!==ue&&r.type!==gr||e.type!==We&&e.type!==ue&&e.type!==gr)&&Qr(`${Zr(r)} ${t} ${Zr(e)}`,`Operator '${t}' cannot be applied to ${Nn(r.type)} type.`);let n;const i=r.type===gr?r.value.getTime():r.value,o=e.type===gr?e.value.getTime():e.value;return t===">"?n=i>o:t===">="?n=i>=o:t==="<"?n=i<o:n=i<=o,{type:Rr,value:n?1:0}}function Ky(t,r,e,n){if(e.type!==me&&e.type!==We&&e.type!==ue&&Qr(`${Zr(e)} ${r} ${Zr(n)}`,`Operator '${r}' cannot be applied to ${Nn(e.type)} type.`),e.type===me)return r==="-"&&Qr(`${Zr(e)} - ${Zr(n)}`,`Operator '${r}' cannot be applied to ${Nn(e.type)} type.`),{type:me,value:e.value+n.value};let i=r==="+"?e.value+n.value:e.value-n.value;if(e.type===ue)try{i=ro(t,i),Sn(t,i)}catch(o){Qr(`${Zr(e)} ${r} ${Zr(n)}`,o.message)}return{type:e.type,value:i}}function Xy(t,r,e,n){e.type!==ue&&e.type!==We&&Qr(`${Zr(e)} ${r} ${Zr(n)}`,`Operator '${r}' cannot be applied to ${Nn(e.type)} type.`);let i;if(r==="*")i=e.value*n.value;else if(r==="/"||r==="%")Number(n.value)===0&&Qr(`${Zr(e)} ${r} ${Zr(n)}`,"Division by zero is not supported."),r==="/"?i=e.value/n.value:i=e.value%n.value;else throw new Error(`Unsupported operation ${r}`);if(e.type===ue)try{i=ro(t,i),Sn(t,i)}catch(o){Qr(`${Zr(e)} ${r} ${Zr(n)}`,o.message)}return{type:e.type,value:i}}function Zy(t,r){const e=r.operator;let n=yn(t,r.left),i=yn(t,r.right);if((n.type==="number"&&i.type==="integer"||n.type==="integer"&&i.type==="number")&&(n.type==="integer"?n=fl(n):i.type==="integer"&&(i=fl(i))),n.type!==i.type&&Qr(`${Zr(n)} ${r.operator} ${Zr(i)}`,`Operator '${e}' cannot be applied to different types: ${Nn(n.type)} and ${Nn(i.type)}.`),e==="=="||e==="!=")return Jy(e,n,i);if(e===">"||e===">="||e==="<"||e==="<=")return qy(e,n,i);if(e==="+"||e==="-")return Ky(t,e,n,i);if(e==="/"||e==="*"||e==="%")return Xy(t,e,n,i);throw new Error(`Unsupported operation ${e}`)}function js(t){return t.map(Zr).join(", ")}function Qy(t,r){const e=r.callee.name;let n,i=r.arguments.map(a=>yn(t,a));const o=e+":"+i.map(a=>a.type).join("#");let s;if(t.customFunctions&&(s=_l(t.customFunctions,e,i)),!s||!("func"in s))if(dl.has(o))s={func:dl.get(o),conversions:0};else{const a=_l(So,e,i);("func"in a||!s)&&(s=a)}if(s&&(("expected"in s||"type"in s&&s.type==="missing")&&xy(e,i,s),n=s.func,s.conversions&&(i=qf(n,i))),!n)throw new Error("Function not found");try{return n.cb(t,...i)}catch(a){const l=`${e}(${js(i)})`;Qr(l,a.message)}}function xy(t,r,e){const n=r.map(l=>Nn(l.type)).join(", "),i=`${t}(${js(r)})`,o=So.get(t)||[],s=o[0],a=o.length>1;if(e.type==="few"&&r.length===0&&a)Qr(i,"Function requires non empty argument list.");else if(s&&(e.type==="many"||e.type==="few"||e.type==="mismatch"))if(a)Qr(i,`Function has no matching overload for given argument types: ${n}.`);else if(e.type==="many"||e.type==="few")s.args.some(l=>typeof l=="object"&&l.isVararg)?Qr(i,`At least ${s.args.length} argument(s) expected.`):Qr(i,`Exactly ${s.args.length} argument(s) expected.`);else{const l=s.args.map(c=>Nn(typeof c=="string"?c:c.type)).join(", ");Qr(i,`Invalid argument type: expected ${l}, got ${n}.`)}else Qr(i,`Unknown function name: ${t}.`)}function $y(t,r){const e=r.method.name;let n,i=[r.object,...r.arguments].map(s=>yn(t,s));const o=e+":"+i.map(s=>s.type).join("#");if(hl.has(o))n=hl.get(o);else{const s=_l($o,e,i);if("expected"in s||"type"in s&&s.type==="missing"){const a=i.slice(1).map(c=>Nn(c.type)).join(", "),l=`${e}(${js(i.slice(1))})`;s.type==="few"&&i.length===1?Qr(l,"Method requires non empty argument list."):s.type==="many"?Qr(l,`Method has no matching overload for given argument types: ${a}.`):s.type==="few"||s.type==="mismatch"?Qr(l,`Method has no matching overload for given argument types: ${a}.`):Qr(l,`Unknown method name: ${e}.`)}n=s.func,s.conversions&&(i=qf(n,i))}if(!n)throw new Error("Method not found");try{return n.cb(t,...i)}catch(s){const a=`${e}(${js(i.slice(1))})`;Qr(a,s.message)}}function ev(t,r){const e=r.id.name,n=t.variables.get(e);if(n)return Km(n);throw new Error(`Variable '${e}' is missing.`)}const Vu={StringLiteral:zy,NumberLiteral:Ly,IntegerLiteral:Ry,BooleanLiteral:By,UnaryExpression:Hy,ConditionalExpression:Wy,TryExpression:Uy,TemplateLiteral:Gy,LogicalExpression:Yy,BinaryExpression:Zy,CallExpression:Qy,MethodExpression:$y,Variable:ev};function yn(t,r){if(r.type in Vu)return Vu[r.type](t,r);throw new Error("Unsupported expression")}function Cs(t,r,e,n,i){try{const o={variables:t,customFunctions:r,warnings:[],store:e,weekStartDay:(i==null?void 0:i.weekStartDay)||0};return{result:yn(o,n),warnings:o.warnings}}catch(o){return{result:{type:"error",value:o.message},warnings:[]}}}function tv(t,r){return r&&r[3]&&r[7]?{type:"ConditionalExpression",test:t,consequent:r[3],alternate:r[7]}:t}function rv(t,r){return r&&r[3]?{type:"TryExpression",test:t,alternate:r[3]}:t}function qo(t,r){return r.length?r.reduce((e,n)=>({type:"BinaryExpression",operator:n[1],left:e,right:n[3]}),t):t}function Iu(t,r){return r.length?r.reduce((e,n)=>({type:"LogicalExpression",operator:n[1],left:e,right:n[3]}),t):t}function nv(t,r){return r.length?r.reduce((e,n)=>{if(!n[5])throw new Error("Method expected after .");return{type:"MethodExpression",object:e,method:n[3],arguments:n[5][2]}},t):t}function iv(t){return t==="true"||t==="false"?{type:"BooleanLiteral",value:t==="true"}:{type:"Variable",id:{type:"Identifier",name:t}}}function Du(t){if(t.every(e=>typeof e=="string"))return{type:"StringLiteral",value:t.join("")};let r=t.reduce((e,n)=>(typeof n=="string"&&typeof e[e.length-1]=="string"?e[e.length-1]+=n:e.push(n),e),[]).reduce((e,n)=>(typeof n=="string"?e.quasis.push({type:"StringLiteral",value:n}):(e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e.expressions.push(n)),e),{type:"TemplateLiteral",quasis:[],expressions:[]});return r.quasis.length===r.expressions.length&&r.quasis.push({type:"StringLiteral",value:""}),r}function ov(t){try{return ln(t)}catch{throw new Error(`Value ${t} can't be converted to Integer type.`)}}function Tu(t){if(t==="'"||t==="\\")return t;throw new Error("Incorrect string escape")}function sv(t,r){function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e}function po(t,r,e,n){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,po.prototype),i.expected=r,i.found=e,i.location=n,i.name="SyntaxError",i}sv(po,Error);function $s(t,r,e){return e=e||" ",t.length>r?t:(r-=t.length,e+=e.repeat(r),t+e.slice(0,r))}po.prototype.format=function(t){var r="Error: "+this.message;if(this.location){var e=null,n;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){e=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(e){var a=this.location.end,l=$s("",o.line.toString().length," "),c=e[i.line-1],u=i.line===a.line?a.column:c.length+1,f=u-i.column||1;r+=`
|
|
10
10
|
--> `+s+`
|
|
11
|
-
`+
|
|
11
|
+
`+l+` |
|
|
12
12
|
`+o.line+" | "+c+`
|
|
13
|
-
`+
|
|
14
|
-
at `+s}return r};
|
|
15
|
-
`],!1,!1),Et=function(g){return g},Re=function(g){return vu(g)},mt=function(g){return g},Ne=function(){return""},ot=function(){return Qr()},vt=function(){throw new Error("Error tokenizing '"+e+"'.")},De=function(){throw new Error("Error tokenizing '"+e+"'.")},ct=function(g){return g},Yt=function(g){return ku(g)},sr=function(){throw new Error("Error tokenizing '"+e+"'.")},dr=function(g,k){return Oy(g,k)},Ht=function(g,k){return zy(g,k)},ut=function(g,k){return wu(g,k)},St=function(g,k){return wu(g,k)},Ft=function(g,k){return Ho(g,k)},$t=function(g,k){return Ho(g,k)},tr=function(g,k){return Ho(g,k)},wr=function(g,k){return Ho(g,k)},Mr=function(g){return g},Ur=function(g){return g},Je=function(g,k){return{type:"UnaryExpression",operator:g,argument:k}},cr=function(){throw new Error("Incorrect unary operator")},ke=function(g,k){return Ry(g,k)},q=function(g,k){return{type:"CallExpression",callee:g,arguments:k}},vr=function(g,k){return[g,...k]},kr=function(g){return g},Pt=function(g){return g},Xr=function(g){return vu(g)},Se=function(g){return g},Nt=function(){return""},ur=function(){return Qr()},Xe=function(){throw new Error("Error tokenizing '"+e+"'.")},It=function(){throw new Error("Error tokenizing '"+e+"'.")},Oe=function(g){return g},ht=function(g){return ku(g)},st=function(){throw new Error("Error tokenizing '"+e+"'.")},At=function(){return{type:"IntegerLiteral",value:By(Qr())}},Jt=function(){return{type:"NumberLiteral",value:parseFloat(Qr())}},I=function(){return{type:"NumberLiteral",value:parseFloat(Qr())}},rt=function(){const g=Qr();if(/\.\./.test(g)||/\.$/.test(g))throw new Error("Unexpected token: .");return Ly(g)},de=function(){return{type:"Identifier",name:Qr()}},d=0,Me=0,kt=[{line:1,column:1}],Tr=0,lr=[],O=0,Cr;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');o=i[r.startRule]}function Qr(){return e.substring(Me,d)}function b(g,k){return{type:"literal",text:g,ignoreCase:k}}function A(g,k,T){return{type:"class",parts:g,inverted:k,ignoreCase:T}}function K(){return{type:"any"}}function oe(){return{type:"end"}}function se(g){return{type:"other",description:g}}function Ce(g){var k=kt[g],T;if(k)return k;for(T=g-1;!kt[T];)T--;for(k=kt[T],k={line:k.line,column:k.column};T<g;)e.charCodeAt(T)===10?(k.line++,k.column=1):k.column++,T++;return kt[g]=k,k}function bt(g,k,T){var j=Ce(g),Q=Ce(k),J={source:n,start:{offset:g,line:j.line,column:j.column},end:{offset:k,line:Q.line,column:Q.column}};return J}function P(g){d<Tr||(d>Tr&&(Tr=d,lr=[]),lr.push(g))}function Ye(g,k,T){return new co(co.buildMessage(g,k),g,k,T)}function Ot(){var g,k;return g=d,ft(),k=rr(),k!==t?(ft(),Me=g,g=Et(k)):(d=g,g=t),g}function Tt(){var g,k,T;for(g=d,k=[],T=zt();T!==t;)k.push(T),T=zt();return Me=g,k=Re(k),g=k,g}function zt(){var g,k,T,j,Q;if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,O===0&&P(Z)),k!==t?(T=ft(),j=rr(),j!==t?(ft(),e.charCodeAt(d)===125?(Q=l,d++):(Q=t,O===0&&P(Ae)),Q!==t?(Me=g,g=mt(j)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.substr(d,3)===a?(k=a,d+=3):(k=t,O===0&&P(ge)),k!==t&&(Me=g,k=Ne()),g=k,g===t&&(g=d,k=d,O++,e.charCodeAt(d)===92?(T=c,d++):(T=t,O===0&&P(et)),T===t&&(e.substr(d,2)===s?(T=s,d+=2):(T=t,O===0&&P(Z))),O--,T===t?k=void 0:(d=k,k=t),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,O===0&&P(G)),T!==t?(Me=g,g=ot()):(d=g,g=t)):(d=g,g=t),g===t))){if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,O===0&&P(Z)),k!==t){if(T=[],_t.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,O===0&&P(Ee)),j!==t)for(;j!==t;)T.push(j),_t.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,O===0&&P(Ee));else T=t;T!==t?(e.charCodeAt(d)===125?(j=l,d++):(j=t,O===0&&P(Ae)),j!==t?(Me=g,g=vt()):(d=g,g=t)):(d=g,g=t)}else d=g,g=t;g===t&&(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,O===0&&P(Z)),k!==t&&(Me=g,k=De()),g=k,g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,O===0&&P(et)),k!==t?(e.substr(d,2)===s?(T=s,d+=2):(T=t,O===0&&P(Z)),T!==t?(Me=g,g=ct(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,O===0&&P(et)),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,O===0&&P(G)),T!==t?(Me=g,g=Yt(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,O===0&&P(et)),k!==t&&(Me=g,k=sr()),g=k))))}return g}function rr(){var g,k,T,j,Q,J,xe,nt,Er,_r,Ar;return g=d,k=rn(),k!==t?(T=d,j=ft(),e.charCodeAt(d)===63?(Q=u,d++):(Q=t,O===0&&P(We)),Q!==t?(J=ft(),xe=rr(),xe!==t?(nt=ft(),e.charCodeAt(d)===58?(Er=f,d++):(Er=t,O===0&&P(re)),Er!==t?(_r=ft(),Ar=rr(),Ar!==t?(j=[j,Q,J,xe,nt,Er,_r,Ar],T=j):(d=T,T=t)):(d=T,T=t)):(d=T,T=t)):(d=T,T=t),T===t&&(T=null),Me=g,g=dr(k,T)):(d=g,g=t),g}function rn(){var g,k,T,j,Q,J,xe;return g=d,k=Pr(),k!==t?(T=d,j=ft(),e.substr(d,2)===_?(Q=_,d+=2):(Q=t,O===0&&P(it)),Q!==t?(J=ft(),xe=rr(),xe!==t?(j=[j,Q,J,xe],T=j):(d=T,T=t)):(d=T,T=t),T===t&&(T=null),Me=g,g=Ht(k,T)):(d=g,g=t),g}function Pr(){var g,k,T,j,Q,J,xe,nt;if(g=d,k=fn(),k!==t){for(T=[],j=d,Q=ft(),e.substr(d,2)===m?(J=m,d+=2):(J=t,O===0&&P(je)),J!==t?(xe=ft(),nt=fn(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.substr(d,2)===m?(J=m,d+=2):(J=t,O===0&&P(je)),J!==t?(xe=ft(),nt=fn(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=ut(k,T)}else d=g,g=t;return g}function fn(){var g,k,T,j,Q,J,xe,nt;if(g=d,k=xr(),k!==t){for(T=[],j=d,Q=ft(),e.substr(d,2)===y?(J=y,d+=2):(J=t,O===0&&P(Ve)),J!==t?(xe=ft(),nt=xr(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.substr(d,2)===y?(J=y,d+=2):(J=t,O===0&&P(Ve)),J!==t?(xe=ft(),nt=xr(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=St(k,T)}else d=g,g=t;return g}function xr(){var g,k,T,j,Q,J,xe,nt;if(g=d,k=Ln(),k!==t){for(T=[],j=d,Q=ft(),e.substr(d,2)===h?(J=h,d+=2):(J=t,O===0&&P(yt)),J===t&&(e.substr(d,2)===w?(J=w,d+=2):(J=t,O===0&&P(Vt))),J!==t?(xe=ft(),nt=Ln(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.substr(d,2)===h?(J=h,d+=2):(J=t,O===0&&P(yt)),J===t&&(e.substr(d,2)===w?(J=w,d+=2):(J=t,O===0&&P(Vt))),J!==t?(xe=ft(),nt=Ln(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=Ft(k,T)}else d=g,g=t;return g}function Ln(){var g,k,T,j,Q,J,xe,nt;if(g=d,k=gn(),k!==t){for(T=[],j=d,Q=ft(),e.substr(d,2)===v?(J=v,d+=2):(J=t,O===0&&P($)),J===t&&(e.charCodeAt(d)===62?(J=R,d++):(J=t,O===0&&P(tt)),J===t&&(e.substr(d,2)===N?(J=N,d+=2):(J=t,O===0&&P(lt)),J===t&&(e.charCodeAt(d)===60?(J=V,d++):(J=t,O===0&&P(dt))))),J!==t?(xe=ft(),nt=gn(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.substr(d,2)===v?(J=v,d+=2):(J=t,O===0&&P($)),J===t&&(e.charCodeAt(d)===62?(J=R,d++):(J=t,O===0&&P(tt)),J===t&&(e.substr(d,2)===N?(J=N,d+=2):(J=t,O===0&&P(lt)),J===t&&(e.charCodeAt(d)===60?(J=V,d++):(J=t,O===0&&P(dt))))),J!==t?(xe=ft(),nt=gn(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=$t(k,T)}else d=g,g=t;return g}function gn(){var g,k,T,j,Q,J,xe,nt;if(g=d,k=$r(),k!==t){for(T=[],j=d,Q=ft(),e.charCodeAt(d)===43?(J=D,d++):(J=t,O===0&&P(Ge)),J===t&&(e.charCodeAt(d)===45?(J=te,d++):(J=t,O===0&&P(C))),J!==t?(xe=ft(),nt=$r(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.charCodeAt(d)===43?(J=D,d++):(J=t,O===0&&P(Ge)),J===t&&(e.charCodeAt(d)===45?(J=te,d++):(J=t,O===0&&P(C))),J!==t?(xe=ft(),nt=$r(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=tr(k,T)}else d=g,g=t;return g}function $r(){var g,k,T,j,Q,J,xe,nt;if(g=d,k=dn(),k!==t){for(T=[],j=d,Q=ft(),e.charCodeAt(d)===47?(J=F,d++):(J=t,O===0&&P($e)),J===t&&(e.charCodeAt(d)===42?(J=Y,d++):(J=t,O===0&&P(le)),J===t&&(e.charCodeAt(d)===37?(J=X,d++):(J=t,O===0&&P(Ke)))),J!==t?(xe=ft(),nt=dn(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.charCodeAt(d)===47?(J=F,d++):(J=t,O===0&&P($e)),J===t&&(e.charCodeAt(d)===42?(J=Y,d++):(J=t,O===0&&P(le)),J===t&&(e.charCodeAt(d)===37?(J=X,d++):(J=t,O===0&&P(Ke)))),J!==t?(xe=ft(),nt=dn(),nt!==t?(Q=[Q,J,xe,nt],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=wr(k,T)}else d=g,g=t;return g}function dn(){var g,k,T,j;return g=d,k=d,O++,e.charCodeAt(d)===45?(T=te,d++):(T=t,O===0&&P(C)),O--,T!==t?(d=k,k=void 0):k=t,k!==t?(T=Ni(),T!==t?(Me=g,g=Mr(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,k=d,O++,e.charCodeAt(d)===45?(T=te,d++):(T=t,O===0&&P(C)),O--,T!==t?(d=k,k=void 0):k=t,k!==t?(T=qn(),T!==t?(Me=g,g=Ur(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===33?(k=H,d++):(k=t,O===0&&P(wt)),k===t&&(e.charCodeAt(d)===43?(k=D,d++):(k=t,O===0&&P(Ge)),k===t&&(e.charCodeAt(d)===45?(k=te,d++):(k=t,O===0&&P(C)))),k!==t?(T=ft(),j=Bn(),j===t&&(j=Yn()),j!==t?(Me=g,g=Je(k,j)):(d=g,g=t)):(d=g,g=t),g===t&&(g=Yn()))),g}function Bn(){var g,k;return g=d,e.charCodeAt(d)===43?(k=D,d++):(k=t,O===0&&P(Ge)),k===t&&(e.charCodeAt(d)===45?(k=te,d++):(k=t,O===0&&P(C))),k!==t&&(Me=g,k=cr()),g=k,g}function Yn(){var g,k,T,j,Q,J,xe,nt,Er,_r,Ar,ri,ce,Zt,hr;if(g=d,k=An(),k!==t){for(T=[],j=d,Q=ft(),e.charCodeAt(d)===46?(J=W,d++):(J=t,O===0&&P(fe)),J!==t?(xe=ft(),nt=Dn(),nt!==t?(Er=ft(),_r=d,e.charCodeAt(d)===40?(Ar=U,d++):(Ar=t,O===0&&P(pe)),Ar!==t?(ri=ft(),ce=Hn(),ce!==t?(Zt=ft(),e.charCodeAt(d)===41?(hr=he,d++):(hr=t,O===0&&P(at)),hr!==t?(Ar=[Ar,ri,ce,Zt,hr],_r=Ar):(d=_r,_r=t)):(d=_r,_r=t)):(d=_r,_r=t),_r===t&&(_r=null),Q=[Q,J,xe,nt,Er,_r],j=Q):(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,Q=ft(),e.charCodeAt(d)===46?(J=W,d++):(J=t,O===0&&P(fe)),J!==t?(xe=ft(),nt=Dn(),nt!==t?(Er=ft(),_r=d,e.charCodeAt(d)===40?(Ar=U,d++):(Ar=t,O===0&&P(pe)),Ar!==t?(ri=ft(),ce=Hn(),ce!==t?(Zt=ft(),e.charCodeAt(d)===41?(hr=he,d++):(hr=t,O===0&&P(at)),hr!==t?(Ar=[Ar,ri,ce,Zt,hr],_r=Ar):(d=_r,_r=t)):(d=_r,_r=t)):(d=_r,_r=t),_r===t&&(_r=null),Q=[Q,J,xe,nt,Er,_r],j=Q):(d=j,j=t)):(d=j,j=t);Me=g,g=ke(k,T)}else d=g,g=t;return g}function An(){var g,k,T,j,Q;return g=d,k=Dn(),k!==t?(ft(),e.charCodeAt(d)===40?(T=U,d++):(T=t,O===0&&P(pe)),T!==t?(ft(),j=Hn(),j!==t?(ft(),e.charCodeAt(d)===41?(Q=he,d++):(Q=t,O===0&&P(at)),Q!==t?(Me=g,g=q(k,j)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t),g===t&&(g=Jn()),g}function Hn(){var g,k,T,j,Q,J;if(g=d,k=rr(),k!==t){for(T=[],j=d,ft(),e.charCodeAt(d)===44?(Q=Ie,d++):(Q=t,O===0&&P(Ze)),Q!==t?(ft(),J=rr(),J!==t?j=J:(d=j,j=t)):(d=j,j=t);j!==t;)T.push(j),j=d,ft(),e.charCodeAt(d)===44?(Q=Ie,d++):(Q=t,O===0&&P(Ze)),Q!==t?(ft(),J=rr(),J!==t?j=J:(d=j,j=t)):(d=j,j=t);Me=g,g=vr(k,T)}else d=g,g=t;return g===t&&(g=ft()),g}function Jn(){var g,k,T,j;return g=ti(),g===t&&(g=cn(),g===t&&(g=Ni(),g===t&&(g=qn(),g===t&&(g=d,e.charCodeAt(d)===40?(k=U,d++):(k=t,O===0&&P(pe)),k!==t?(ft(),T=rr(),T!==t?(ft(),e.charCodeAt(d)===41?(j=he,d++):(j=t,O===0&&P(at)),j!==t?(Me=g,g=kr(T)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t))))),g}function cn(){var g,k,T,j;return O++,g=d,e.charCodeAt(d)===39?(k=Te,d++):(k=t,O===0&&P(Mt)),k!==t?(T=ji(),e.charCodeAt(d)===39?(j=Te,d++):(j=t,O===0&&P(Mt)),j!==t?(Me=g,g=Pt(T)):(d=g,g=t)):(d=g,g=t),O--,g===t&&(k=t,O===0&&P(xt)),g}function ji(){var g,k,T;for(g=d,k=[],T=Ci();T!==t;)k.push(T),T=Ci();return Me=g,k=Xr(k),g=k,g}function Ci(){var g,k,T,j,Q;if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,O===0&&P(Z)),k!==t?(T=ft(),j=rr(),j!==t?(ft(),e.charCodeAt(d)===125?(Q=l,d++):(Q=t,O===0&&P(Ae)),Q!==t?(Me=g,g=Se(j)):(d=g,g=t)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.substr(d,3)===a?(k=a,d+=3):(k=t,O===0&&P(ge)),k!==t&&(Me=g,k=Nt()),g=k,g===t&&(g=d,k=d,O++,e.charCodeAt(d)===92?(T=c,d++):(T=t,O===0&&P(et)),T===t&&(e.charCodeAt(d)===39?(T=Te,d++):(T=t,O===0&&P(Mt)),T===t&&(e.substr(d,2)===s?(T=s,d+=2):(T=t,O===0&&P(Z)))),O--,T===t?k=void 0:(d=k,k=t),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,O===0&&P(G)),T!==t?(Me=g,g=ur()):(d=g,g=t)):(d=g,g=t),g===t))){if(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,O===0&&P(Z)),k!==t){if(T=[],He.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,O===0&&P(qt)),j!==t)for(;j!==t;)T.push(j),He.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,O===0&&P(qt));else T=t;T!==t?(e.charCodeAt(d)===125?(j=l,d++):(j=t,O===0&&P(Ae)),j!==t?(Me=g,g=Xe()):(d=g,g=t)):(d=g,g=t)}else d=g,g=t;g===t&&(g=d,e.substr(d,2)===s?(k=s,d+=2):(k=t,O===0&&P(Z)),k!==t&&(Me=g,k=It()),g=k,g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,O===0&&P(et)),k!==t?(e.substr(d,2)===s?(T=s,d+=2):(T=t,O===0&&P(Z)),T!==t?(Me=g,g=Oe(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,O===0&&P(et)),k!==t?(e.length>d?(T=e.charAt(d),d++):(T=t,O===0&&P(G)),T!==t?(Me=g,g=ht(T)):(d=g,g=t)):(d=g,g=t),g===t&&(g=d,e.charCodeAt(d)===92?(k=c,d++):(k=t,O===0&&P(et)),k!==t&&(Me=g,k=st()),g=k))))}return g}function qn(){var g,k,T;if(O++,g=d,e.charCodeAt(d)===45?d++:O===0&&P(C),k=[],ze.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,O===0&&P(pt)),T!==t)for(;T!==t;)k.push(T),ze.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,O===0&&P(pt));else k=t;return k!==t?(Me=g,g=At()):(d=g,g=t),O--,g===t&&O===0&&P(Pe),g}function Ni(){var g,k,T,j,Q,J,xe,nt,Er;for(O++,g=d,e.charCodeAt(d)===45?d++:O===0&&P(C),k=[],ze.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,O===0&&P(pt));T!==t;)k.push(T),ze.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,O===0&&P(pt));if(e.charCodeAt(d)===46?(T=W,d++):(T=t,O===0&&P(fe)),T!==t){if(j=[],ze.test(e.charAt(d))?(Q=e.charAt(d),d++):(Q=t,O===0&&P(pt)),Q!==t)for(;Q!==t;)j.push(Q),ze.test(e.charAt(d))?(Q=e.charAt(d),d++):(Q=t,O===0&&P(pt));else j=t;if(j!==t){if(Q=d,e.charCodeAt(d)===101?(J=_e,d++):(J=t,O===0&&P(Bt)),J===t&&(e.charCodeAt(d)===69?(J=be,d++):(J=t,O===0&&P(Gt))),J!==t){if(e.charCodeAt(d)===43?(xe=D,d++):(xe=t,O===0&&P(Ge)),xe===t&&(e.charCodeAt(d)===45?(xe=te,d++):(xe=t,O===0&&P(C))),xe===t&&(xe=null),nt=[],ze.test(e.charAt(d))?(Er=e.charAt(d),d++):(Er=t,O===0&&P(pt)),Er!==t)for(;Er!==t;)nt.push(Er),ze.test(e.charAt(d))?(Er=e.charAt(d),d++):(Er=t,O===0&&P(pt));else nt=t;nt!==t?(J=[J,xe,nt],Q=J):(d=Q,Q=t)}else d=Q,Q=t;Q===t&&(Q=null),Me=g,g=Jt()}else d=g,g=t}else d=g,g=t;if(g===t){if(g=d,e.charCodeAt(d)===45?d++:O===0&&P(C),k=[],ze.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,O===0&&P(pt)),T!==t)for(;T!==t;)k.push(T),ze.test(e.charAt(d))?(T=e.charAt(d),d++):(T=t,O===0&&P(pt));else k=t;if(k!==t)if(e.charCodeAt(d)===101?(T=_e,d++):(T=t,O===0&&P(Bt)),T===t&&(e.charCodeAt(d)===69?(T=be,d++):(T=t,O===0&&P(Gt))),T!==t){if(e.charCodeAt(d)===43?(j=D,d++):(j=t,O===0&&P(Ge)),j===t&&(e.charCodeAt(d)===45?(j=te,d++):(j=t,O===0&&P(C))),j===t&&(j=null),Q=[],ze.test(e.charAt(d))?(J=e.charAt(d),d++):(J=t,O===0&&P(pt)),J!==t)for(;J!==t;)Q.push(J),ze.test(e.charAt(d))?(J=e.charAt(d),d++):(J=t,O===0&&P(pt));else Q=t;Q!==t?(Me=g,g=I()):(d=g,g=t)}else d=g,g=t;else d=g,g=t}return O--,g===t&&O===0&&P(Ut),g}function ti(){var g,k,T,j,Q,J,xe,nt,Er,_r,Ar;if(g=d,Fe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,O===0&&P(L)),k!==t){if(T=[],j=[],qe.test(e.charAt(d))?(Q=e.charAt(d),d++):(Q=t,O===0&&P(ae)),Q!==t)for(;Q!==t;)j.push(Q),qe.test(e.charAt(d))?(Q=e.charAt(d),d++):(Q=t,O===0&&P(ae));else j=t;for(j===t&&(j=d,e.charCodeAt(d)===46?(Q=W,d++):(Q=t,O===0&&P(fe)),Q!==t?(J=d,O++,xe=d,nt=ft(),Er=Dn(),Er!==t?(_r=ft(),e.charCodeAt(d)===40?(Ar=U,d++):(Ar=t,O===0&&P(pe)),Ar!==t?(nt=[nt,Er,_r,Ar],xe=nt):(d=xe,xe=t)):(d=xe,xe=t),O--,xe===t?J=void 0:(d=J,J=t),J!==t?(Q=[Q,J],j=Q):(d=j,j=t)):(d=j,j=t));j!==t;){if(T.push(j),j=[],qe.test(e.charAt(d))?(Q=e.charAt(d),d++):(Q=t,O===0&&P(ae)),Q!==t)for(;Q!==t;)j.push(Q),qe.test(e.charAt(d))?(Q=e.charAt(d),d++):(Q=t,O===0&&P(ae));else j=t;j===t&&(j=d,e.charCodeAt(d)===46?(Q=W,d++):(Q=t,O===0&&P(fe)),Q!==t?(J=d,O++,xe=d,nt=ft(),Er=Dn(),Er!==t?(_r=ft(),e.charCodeAt(d)===40?(Ar=U,d++):(Ar=t,O===0&&P(pe)),Ar!==t?(nt=[nt,Er,_r,Ar],xe=nt):(d=xe,xe=t)):(d=xe,xe=t),O--,xe===t?J=void 0:(d=J,J=t),J!==t?(Q=[Q,J],j=Q):(d=j,j=t)):(d=j,j=t))}Me=g,g=rt()}else d=g,g=t;return g}function Dn(){var g,k,T,j;if(g=d,Fe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,O===0&&P(L)),k!==t){for(T=[],qe.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,O===0&&P(ae));j!==t;)T.push(j),qe.test(e.charAt(d))?(j=e.charAt(d),d++):(j=t,O===0&&P(ae));Me=g,g=de()}else d=g,g=t;return g}function ft(){var g,k;for(O++,g=[],Qe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,O===0&&P(we));k!==t;)g.push(k),Qe.test(e.charAt(d))?(k=e.charAt(d),d++):(k=t,O===0&&P(we));return O--,k=t,O===0&&P(ar),g}if(Cr=o(),Cr!==t&&d===e.length)return Cr;throw Cr!==t&&d<e.length&&P(oe()),Ye(lr,Tr<e.length?e.charAt(Tr):null,Tr<e.length?bt(Tr,Tr+1):bt(Tr,Tr))}const Wy=128,no=new Map;let Au;function Hf(e){return no.get(e)}function Wf(e,r){e!==Au&&(no.delete(e),no.size>=Wy&&no.delete(no.keys().next().value),no.set(e,r),Au=e)}const ju=new Set(["string","integer","number","boolean","datetime","color","url","dict","array"]);function Uy(e){if(!(typeof e.name=="string"&&e.name))throw new Error("Incorrect function name");if(!(typeof e.body=="string"&&e.body))throw new Error("Incorrect function body");if(!(e.return_type&&ju.has(e.return_type)))throw new Error("Incorrect function return_type");if(!Array.isArray(e.arguments))throw new Error("Incorrect function arguments");const r=new Set;e.arguments.forEach(t=>{if(!(typeof t.name=="string"&&t.name))throw new Error("Incorrect argument name");if(!(t.type&&ju.has(t.type)))throw new Error("Incorrect argument type");if(r.has(t.name))throw new Error("Duplicate argument name");r.add(t.name)})}function Gy(e){let r;return{args:e.arguments.map(t=>({type:t.type})),cb(t,...n){r||(r=Hf(e.body)||zl(e.body,{startRule:"JsonStringContents"}),Wf(e.body,r));const i=new Map;n.forEach((l,a)=>{const c=el(e.arguments[a].name,l.type,l.value);i.set(c.getName(),c)});const o=ys(i,t.customFunctions,t.store,r,{weekStartDay:t.weekStartDay});o.warnings.forEach(l=>{t.warnings.push(l)});const s=o.result;if(s.type==="error")throw new Error(s.value);if(s.type!==e.return_type)throw new Error("Incorrect function return_type");return s}}}function Yy(e,r){if(!e)return r||void 0;if(!r)return;const t=new Map,n=new Set;for(const[i,o]of r){for(const s of o){const l=Jc(i,s);n.add(l)}t.set(i,o)}for(const[i,o]of e)for(const s of o){const l=Jc(i,s);if(!n.has(l)){n.add(l);const a=t.get(i)||[];a.push(s),t.set(i,a)}}return t}function Jy(e){if(!e)return x(new Error("Missing object"));const r=e.card,t=e.templates||{};if(!r)return x(new Error("Missing card"));if(!r.states||!r.states.length)return x(new Error("Missing states"));for(const n in t)if(t.hasOwnProperty(n)&&n in Df)return x(new Error("Template name collision"),{additional:{templateName:n}});for(let n=0;n<r.states.length;++n){if(!r.states[n].div)return x(new Error("Missing state div"),{additional:{stateId:r.states[n].state_id}});if(typeof r.states[n].state_id!="number")return x(new Error("Missing state_id"),{additional:{index:n}})}return null}function qy(e){return[...new Set(e)]}class Uf{constructor(r){gr(this,"ast");this.ast=r}apply({variables:r,customFunctions:t,logError:n,store:i,weekStartDay:o,keepComplex:s}){try{const l=ys(r,t,i,this.ast,{weekStartDay:o});l.warnings.forEach(n);const a=l.result;if(a.type==="error"){n(x(new Error("Expression execution error"),{additional:{message:a.value}}));return}const c=a.value;if(c instanceof Date)return Ff(c);if(a.type==="boolean")return!!c;if(a.type==="color"){const u=vi(String(c));if(u)return Qi(u);n(x(new Error("Expression execution error")))}if(a.type==="integer"){if(c>e1||c<t1){n(x(new Error("Expression result is out of 32-bit int range")));return}return Number(c)}if(!s&&(a.type==="array"||a.type==="dict"))try{return JSON.stringify(c)}catch{return n(x(new Error(`Failed to stringify ${a.type}`))),`<${a.type}>`}return c}catch{n(x(new Error("Expression execution error")));return}}}function Ky(e){return e.indexOf("@{")>-1||e.indexOf("\\")>-1}function _l(e,r,t){if(e)if(typeof e=="string"){if(Ky(e)){r.hasExpression=!0;try{const n=Hf(e)||zl(e,{startRule:"JsonStringContents"});Wf(e,n);const i=Mf(n);return r.vars.push(...i),new Uf(n)}catch{t(x(new Error("Unable to parse expression"),{additional:{expression:e}}));return}}}else{if(Array.isArray(e))return e.map(n=>_l(n,r,t));if(typeof e=="object"){const n={};for(const i in e)n[i]=_l(e[i],r,t);return n}}return e}function hl(e,r){if(e){if(e instanceof Uf)return e.apply(r);if(Array.isArray(e))return e.map(t=>hl(t,r));if(typeof e=="object"){const t={};for(const n in e)t[n]=hl(e[n],r);return t}}return e}function Cu(e,r,t,n){const i={vars:[],hasExpression:!1},o=_l(e,i,r);return{vars:qy(i.vars),hasExpression:i.hasExpression,applyVars(l,a,c){return hl(o,{variables:l,customFunctions:a,logError:r,store:t,weekStartDay:n,keepComplex:c})}}}function Xy(){return ai(new Map)}const Zy={pagers:Xy},os=new Map,ss=new Map;function Gf(e){const r=os.get(e)||ai("");return os.has(e)||os.set(e,r),r}function Qy(e){os.delete(e),ss.delete(e)}function ls(e){const r=ss.get(e)||new Map;return ss.has(e)||ss.set(e,r),r}class Yf{setVariable(r){const t=r.getName(),n=ls(this);if(n.has(t))throw new Error("Variable with the same name already exist");n.set(t,r),Gf(this).set(t)}getVariable(r){return ls(this).get(r)}list(){return ls(this).values()}}function xy(){return new Yf}const $y=["start","stop","pause","resume","cancel","reset"],ew=new Set($y);class tw{constructor(r){gr(this,"timers",new Map);gr(this,"logError");gr(this,"applyVars");gr(this,"hasVariableWithType");gr(this,"setVariableValue");gr(this,"execAnyActions");gr(this,"visibilityHandler");gr(this,"awaitActions",[]);this.logError=r.logError,this.applyVars=r.applyVars,this.hasVariableWithType=r.hasVariableWithType,this.setVariableValue=r.setVariableValue,this.execAnyActions=r.execAnyActions,this.visibilityHandler=()=>{document.visibilityState==="visible"?(this.awaitActions.forEach(({id:t,action:n})=>{this.execTimerAction(t,n)}),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[r,t]of this.timers)this.stopTimerTimeouts(t)}createTimer(r){if(!(r!=null&&r.id)){this.logError(x(new Error("Missing timer id")));return}if(!(r.duration||r.tick_interval&&(r.value_variable||r.tick_actions))){this.logError(x(new Error("Misconfigured timer"),{additional:{id:r.id}}));return}this.timers.set(r.id,{state:"stopped",definition:r})}execTimerAction(r,t){if(!r||!t||!this.timers.has(r)||!ew.has(t)){this.logError(x(new Error("Incorrect timer action"),{additional:{id:r,action:t}}));return}const n=t;if(document.visibilityState!=="visible"){this.awaitActions.push({id:r,action:n});return}const i=this.timers.get(r);this[n](i)}stopTimerTimeouts(r){r.durationTimeout&&(clearTimeout(r.durationTimeout),r.durationTimeout=void 0),r.tickTimeout&&(clearTimeout(r.tickTimeout),r.tickTimeout=void 0)}async tickOrUnholdAction(r){const t=performance.now(),n=(r.durationPassed||0)+t-(r.durationStarted||0);r.duration&&n>r.duration||(this.updateVariable(r,n),await this.callActions(r,"tick"),r.tickCount!==void 0&&++r.tickCount)}startOrResume(r){r.state="running",r.hold=!1,r.durationStarted=performance.now();const t=r.duration;t&&(r.durationTimeout=window.setTimeout(async()=>{this.updateVariable(r,t),r.tickCountPredict&&r.tickCount!==void 0&&r.tickCount<r.tickCountPredict&&await this.callActions(r,"tick"),this.stop(r)},Math.max(0,t-(r.durationPassed||0))));const n=r.tick;if(n){const i=()=>{const o=r.tickStarted=performance.now(),s=Math.max(0,n-(r.tickPassed||0));r.tickTimeout=window.setTimeout(async()=>{await this.tickOrUnholdAction(r),r.tickPassed=(performance.now()-o-s)%n,r.state==="running"&&i()},s)};i()}}start(r){if(r.state==="running"){this.logError(x(new Error("The timer is already running")));return}else if(r.state==="paused"){this.logError(x(new Error("The timer is paused")));return}const t=r.definition.value_variable;if(t&&!this.hasVariableWithType(t,"integer")){this.logError(x(new Error("Cannot find variable"),{additional:{name:t}}));return}if(t&&this.setVariableValue(t,0),r.definition.duration&&(r.duration=this.applyVars(r.definition.duration)),r.definition.tick_interval&&(r.tick=this.applyVars(r.definition.tick_interval)),r.duration!==void 0&&r.duration<0||r.tick!==void 0&&r.tick<=0){this.logError(x(new Error("Incorrect timer properties"),{additional:{id:r.definition.id}}));return}r.duration!==void 0&&r.tick!==void 0&&(r.tickCount=0,r.tickCountPredict=Math.floor(r.duration/r.tick)),this.startOrResume(r)}stop(r){if(r.state==="stopped"){this.logError(x(new Error("The timer has already been stopped")));return}r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r),this.callActions(r,"end")}pause(r){if(r.state==="stopped"){this.logError(x(new Error("The timer has already been stopped")));return}else if(r.state==="paused"){this.logError(x(new Error("The timer has already been paused")));return}r.state="paused",this.stopTimerTimeouts(r);const t=performance.now();r.durationStarted&&(r.durationPassed=(r.durationPassed||0)+t-r.durationStarted),r.tickStarted&&(r.tickPassed=(r.tickPassed||0)+t-r.tickStarted);const n=r.definition.value_variable;n&&r.durationPassed&&this.setVariableValue(n,Math.round(r.durationPassed))}resume(r){if(r.state==="stopped"){this.logError(x(new Error("The timer has already been stopped")));return}else if(r.state==="running"){this.logError(x(new Error("The timer is already running")));return}this.startOrResume(r)}cancel(r){r.state!=="stopped"&&(r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r))}reset(r){this.cancel(r),this.start(r)}updateVariable(r,t){const n=r.definition.value_variable;n&&this.setVariableValue(n,Math.round(t))}async callActions(r,t){const n=r.definition[t==="end"?"end_actions":"tick_actions"];if(n){const i=this.applyVars(n);return this.execAnyActions(i,{processUrls:!1})}}holdAll(){for(const[r,t]of this.timers)t.state==="running"&&(t.hold=!0,this.stopTimerTimeouts(t))}async unholdAll(){for(const[r,t]of this.timers)if(t.state==="running"&&t.hold){const n=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+n-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+n-t.tickStarted),t.tick&&await this.tickOrUnholdAction(t),this.startOrResume(t)}}}function rw(e,r,t,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"&&o!==void 0){t(x(new Error("Incorrect array_insert_value action"),{additional:{name:i}}));return}Rl(e,r,t,n,l=>{const a=l.getValue();if(typeof o=="number"&&(o<0||o>a.length))t(x(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:a.length}}));else{const c=a.slice();typeof o=="number"?c.splice(o,0,s.value):c.push(s.value),l.setValue(c)}})}function nw(e,r,t,n){const{variable_name:i,index:o}=n;if(typeof o!="number"){t(x(new Error("Incorrect array_remove_value action"),{additional:{name:i}}));return}Rl(e,r,t,n,s=>{const l=s.getValue();if(typeof o=="number"&&(o<0||o>=l.length))t(x(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:l.length}}));else{const a=l.slice();a.splice(o,1),s.setValue(a)}})}function iw(e,r,t,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"){t(x(new Error("Incorrect array_set_value action"),{additional:{name:i}}));return}Rl(e,r,t,n,l=>{const a=l.getValue();if(typeof o=="number"&&(o<0||o>=a.length))t(x(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:a.length}}));else{const c=a.slice();c[o]=s.value,l.setValue(c)}})}function Rl(e,r,t,n,i){const{variable_name:o}=n;if(!o){t(x(new Error(`Incorrect ${n.type} action`),{additional:{name:o}}));return}const s=(e==null?void 0:e.getVariable(o))||r.get(o);if(!s){t(x(new Error("Cannot find variable"),{additional:{name:o}}));return}const l=s.getType();l==="array"?i(s):t(x(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:l}}))}function ow(e,r,t,n){const{variable_name:i,key:o,value:s}=n;if(typeof o!="string"){t(x(new Error("Incorrect dict_set_value action"),{additional:{name:i}}));return}if(!i){t(x(new Error(`Incorrect ${n.type} action`),{additional:{name:i}}));return}const l=(e==null?void 0:e.getVariable(i))||r.get(i);if(!l){t(x(new Error("Cannot find variable"),{additional:{name:i}}));return}const a=l.getType();if(a==="dict"){const u={...l.getValue()};s?u[o]=s.value:delete u[o],l.setValue(u)}else t(x(new Error("Trying to set value into the non-dict"),{additional:{name:i,type:a}}))}function sw(e,r){if(!(r.content&&(r.content.type==="text"||r.content.type==="url")&&typeof r.content.value=="string")){e(x(new Error("Incorrect action"),{additional:{action:r}}));return}if(!(typeof navigator<"u"&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&typeof navigator.clipboard.writeText=="function")){e(x(new Error("Clipboard is unavailable"),{additional:{action:r}}));return}navigator.clipboard.writeText(r.content.value).catch(t=>{e(x(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(t)}}))})}function lw(e){if(e==="normal"||e==="reverse"||e==="alternate"||e==="alternate_reverse")return e}function aw(e,r,t,n){var N,V,D,te;const i=Un(e.duration,0);if(!i||e.type!=="color_animator"&&e.type!=="number_animator")return;const o=(N=e.start_value_typed?e.start_value_typed.value:e.start_value)!=null?N:r.getValue(),s=e.end_value_typed?e.end_value_typed.value:e.end_value;if(o===void 0||s===void 0||e.type==="color_animator"&&(typeof o!="string"&&o!==void 0||typeof s!="string")||e.type==="number_animator"&&(typeof o!="number"&&o!==void 0||typeof s!="number"))return;const l=e.type==="color_animator"&&vi(o),a=e.type==="color_animator"&&vi(s);if(e.type==="color_animator"&&(!l||!a))return;const c=Yr(e.start_delay,0),u=Fl(e.interpolator||"linear"),f=lw(e.direction)||"normal",_=((V=e.repeat_count)==null?void 0:V.type)==="infinity"?1/0:((D=e.repeat_count)==null?void 0:D.type)==="fixed"?Yr((te=e.repeat_count)==null?void 0:te.value,1):1;let m=0,y=performance.now();const h=_===1/0?1/0:_*i+c;function w(F){if(e.type==="color_animator"){if(!l||!a)throw new Error("Missing start/end value");return Qi({a:wi(yi(l.a,a.a,F),0,255),r:wi(yi(l.r,a.r,F),0,255),g:wi(yi(l.g,a.g,F),0,255),b:wi(yi(l.b,a.b,F),0,255)})}return yi(o,s,F)}function v(F){const Y=F-y;if(y=F,m+=Y,m>=c){let X=Math.floor((m-c)/i),H=(m-c-X*i)/i;X>=_&&(X=_-1,H=1);let W;f==="normal"||f==="alternate"&&X%2===0||f==="alternate_reverse"&&X%2===1?W="normal":W="reverse",W==="reverse"&&(H=1-H);const U=w(u(H));r.setValue(U)}m<h?R=requestAnimationFrame(v):(t(),n(e.end_actions))}let R=requestAnimationFrame(v);return{stop(){cancelAnimationFrame(R),n(e.cancel_actions),n(e.end_actions)}}}function cw(e){let r=e;for(;r&&!r.isTooltipRoot;)r=r.parent;return r}function Eu(e){let r=e;for(;r!=null&&r.parent&&r.json.type!=="state"&&!r.isRootState&&!r.isTooltipRoot;)r=r.parent;return r}const uw="divkit-bf0ea",fw="divkit-27458",dw="undefined",_w="divkit-e2fee",hw="divkit-04d22",gw="divkit-00335",gl={outer:uw,root__clickable:fw,"root__clickable-no-transition":"divkit-3bb57",root__selectable:dw,tooltip:_w,tooltip_visible:hw,tooltip__overlay:gw},Jf=300,qf=0;function pw(e){return Math.max(...e.map(r=>(Number(r.duration)||Jf)+(Number(r.start_delay)||qf)))}function Su(e,{animations:r,direction:t}){if(!r)return{};const n=Cl(r),i=pw(n);return n.some(s=>s.name==="no_animation")?{}:{duration:Is()?0:i,css:s=>{const l=s*i,a=n.map(h=>{var D,te,F,Y,X,H;const w=Number(h.start_delay)||qf,v=Number(h.duration)||Jf,R=Math.max(0,Math.min(1,(l-w)/v)),V=(Fl(h.interpolator||"ease_in_out")||Fs)(R);if(h.name==="fade"){const W=t==="in"&&(D=h.start_value)!=null?D:0,U=t==="in"?1:(te=h.end_value)!=null?te:1;return{active:V>0&&V<1,opacity:(1-V)*W+V*U}}else if(h.name==="translate"){const W=-(t==="in"&&(F=h.start_value)!=null?F:10),U=-(t==="in"?0:(Y=h.end_value)!=null?Y:0);return{active:V>0&&V<1,translate:`translateY(${(1-V)*W+V*U}${t==="in"&&h.start_value!==void 0||t==="out"&&h.end_value!==void 0?"%":"px"})`}}else if(h.name==="scale"){const W=t==="in"&&(X=h.start_value)!=null?X:0,U=t==="in"?1:(H=h.end_value)!=null?H:1;return{active:V>0&&V<1,scale:`scale(${(1-V)*W+V*U})`}}return{}}),c=a.map(h=>h.opacity).filter(h=>h!==void 0).reduce((h,w)=>h*w,1),u=a.map(h=>h.translate).filter(h=>h!==void 0).join(" "),f=a.map(h=>h.scale).filter(h=>h!==void 0).join(" "),_=a.filter(h=>h.active).map(h=>h.scale).filter(h=>h!==void 0),m=_.length?_[_.length-1]:f;return`transform:${[u,m].filter(Boolean).join(" ")||"none"};opacity:${c}`}}}const{window:Vu}=_i;function Iu(e){let r,t,n;return{c(){r=Be("div"),p(r,"class",gl.tooltip__overlay)},m(i,o){ie(i,r,o),t||(n=Ue(r,"click",e[17]),t=!0)},p:E,d(i){i&&ne(r),t=!1,n()}}}function mw(e){let r,t,n,i,o,s,l,a,c,u=e[0]&&Iu(e);return n=new ei({props:{componentContext:e[1]}}),{c(){u&&u.c(),r=pr(),t=Be("div"),Wt(n.$$.fragment),p(t,"class",i=gt("tooltip",gl,e[7])+" "+(e[13]?er.root_platform_desktop:"")),z(t,"top",e[4]),z(t,"left",e[3]),z(t,"width",e[5]),z(t,"height",e[6])},m(f,_){u&&u.m(f,_),ie(f,r,_),ie(f,t,_),Rt(n,t,null),e[23](t),l=!0,a||(c=[Ue(Vu,"click",e[17]),Ue(Vu,"resize",e[18])],a=!0)},p(f,[_]){e=f,e[0]?u?u.p(e,_):(u=Iu(e),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null);const m={};_&2&&(m.componentContext=e[1]),n.$set(m),(!l||_&8320&&i!==(i=gt("tooltip",gl,e[7])+" "+(e[13]?er.root_platform_desktop:"")))&&p(t,"class",i),_&16&&z(t,"top",e[4]),_&8&&z(t,"left",e[3]),_&32&&z(t,"width",e[5]),_&64&&z(t,"height",e[6])},i(f){l||(B(n.$$.fragment,f),f&&Rn(()=>{l&&(s&&s.end(1),o=vl(t,Su,{animations:e[14]||Tu,direction:"in"}),o.start())}),l=!0)},o(f){ee(n.$$.fragment,f),o&&o.invalidate(),f&&(s=yd(t,Su,{animations:e[15]||Tu,direction:"out"})),l=!1},d(f){f&&(ne(r),ne(t)),u&&u.d(f),Lt(n),e[23](null),f&&s&&s.end(),a=!1,Wr(c)}}}const Tu={name:"set",items:[{name:"translate"},{name:"fade"}]};function bw(e,r,t){let n,i,o,s,l,a,c,u=E,f=()=>(u(),u=M(o,G=>t(25,c=G)),o),_,m=E,y=()=>(m(),m=M(i,G=>t(26,_=G)),i),h,w=E,v=()=>(w(),w=M(n,G=>t(27,h=G)),n),R,N,V=E,D=()=>(V(),V=M(s,G=>t(14,N=G)),s),te,F=E,Y=()=>(F(),F=M(l,G=>t(15,te=G)),l);e.$$.on_destroy.push(()=>u()),e.$$.on_destroy.push(()=>m()),e.$$.on_destroy.push(()=>w()),e.$$.on_destroy.push(()=>V()),e.$$.on_destroy.push(()=>F());let{ownerNode:X}=r,{data:H}=r,{internalId:W}=r,{parentComponentContext:U}=r;const he=Hr(Zr),Ie=he.isDesktop;on(e,Ie,G=>t(13,R=G));const Te=Date.now();let _e,be=!1,_t="",He="",ze="",Fe="",qe=null,Qe;function Z(){var Ge,C;if(!_e||!X)return;const G=_e.parentElement;if(!G)return;const Ee=_e.style.cssText;t(2,_e.style.cssText+=";transform: none !important",_e);const We=X.getBoundingClientRect(),re=_e.getBoundingClientRect(),it=G.getBoundingClientRect();t(2,_e.style.cssText=Ee,_e);let je=0,Ve=0,yt=null,Vt=null,$=0,tt=0;const lt=U.getJsonWithVars((Ge=H.div)==null?void 0:Ge.width),dt=U.getJsonWithVars((C=H.div)==null?void 0:C.width);if(!lt||lt.type==="match_parent"?$=yt=window.innerWidth:lt.type==="fixed"&<.value?$=yt=lt.value:$=re.width,(dt==null?void 0:dt.type)==="match_parent"?tt=Vt=window.innerHeight:(dt==null?void 0:dt.type)==="fixed"&&dt.value?tt=Vt=dt.value:tt=re.height,h==="left"||h==="bottom-left"||h==="top-left")je=We.left-$;else if(h==="top"||h==="bottom"||h==="center")je=(We.left+We.right)/2-$/2;else if(h==="right"||h==="bottom-right"||h==="top-right")je=We.right;else return;if(h==="top"||h==="top-left"||h==="top-right")Ve=We.top-tt;else if(h==="left"||h==="right"||h==="center")Ve=(We.top+We.bottom)/2-tt/2;else if(h==="bottom-left"||h==="bottom"||h==="bottom-right")Ve=We.bottom;else return;je-=it.left,Ve-=it.top,je+=_||0,Ve+=c||0,t(3,_t=`${je}px`),t(4,He=`${Ve}px`),t(5,ze=yt!==null?`${yt}px`:""),t(6,Fe=Vt!==null?`${Vt}px`:""),t(0,be=!0),yt===null||Vt===null?typeof ResizeObserver<"u"&&!qe&&(qe=new ResizeObserver(()=>{requestAnimationFrame(Z)}),qe.observe(_e)):qe==null||qe.disconnect()}function Ae(G){Date.now()-Te<100||G.composedPath().includes(_e)||(G.stopPropagation(),G.preventDefault(),he.onTooltipClose(W))}function ge(){Z()}$n(()=>{if(he.tooltipRoot){const G=window.getComputedStyle(_e);t(2,_e.style.fontSize=G.fontSize,_e),t(2,_e.style.fontFamily=G.fontFamily,_e),t(2,_e.style.lineHeight=G.lineHeight,_e),he.tooltipRoot.appendChild(_e)}}),Es(()=>{be||Z()}),sn(()=>{Qe&&Qe.destroy(),qe==null||qe.disconnect()});function et(G){Fr[G?"unshift":"push"](()=>{_e=G,t(2,_e)})}return e.$$set=G=>{"ownerNode"in G&&t(19,X=G.ownerNode),"data"in G&&t(20,H=G.data),"internalId"in G&&t(21,W=G.internalId),"parentComponentContext"in G&&t(22,U=G.parentComponentContext)},e.$$.update=()=>{var G,Ee,We,re;e.$$.dirty&5242882&&(Qe&&Qe.destroy(),t(1,Qe=U.produceChildContext(H.div||{},{isTooltipRoot:!0}))),e.$$.dirty&5242880&&v(t(12,n=U.getDerivedFromVars(H.position))),e.$$.dirty&5242880&&y(t(11,i=U.getDerivedFromVars((Ee=(G=H.offset)==null?void 0:G.x)==null?void 0:Ee.value))),e.$$.dirty&5242880&&f(t(10,o=U.getDerivedFromVars((re=(We=H.offset)==null?void 0:We.y)==null?void 0:re.value))),e.$$.dirty&5242880&&D(t(9,s=U.getDerivedFromVars(H.animation_in))),e.$$.dirty&5242880&&Y(t(8,l=U.getDerivedFromVars(H.animation_out))),e.$$.dirty&1&&t(7,a={visible:be})},[be,Qe,_e,_t,He,ze,Fe,a,l,s,o,i,n,R,N,te,Ie,Ae,ge,X,H,W,U,et]}class yw extends Rr{constructor(r){super(),zr(this,r,bw,mw,yr,{ownerNode:19,data:20,internalId:21,parentComponentContext:22})}}function Du(e,{delay:r=0,duration:t=400,easing:n=_f,x:i=0,y:o=0,opacity:s=0}={}){const l=getComputedStyle(e),a=+l.opacity,c=l.transform==="none"?"":l.transform,u=a*(1-s),[f,_]=Ul(i),[m,y]=Ul(o);return{delay:r,duration:t,easing:n,css:(h,w)=>`
|
|
16
|
-
transform: ${c} translate(${(1-
|
|
17
|
-
opacity: ${a-u*w}`}}const ww="divkit-6d515",vw="divkit-8767a",kw="divkit-7481b",Aw="divkit-60a10",jw="divkit-3133d",as={root_platform_desktop:ww,menu:vw,menu_visible:kw,menu__list:Aw,menu__item:jw},{window:Fu}=_i;function Mu(e,r,t){const n=e.slice();return n[23]=r[t],n}function Cw(e){let r=e[23].text+"",t;return{c(){t=xn(r)},m(n,i){ie(n,t,i)},p(n,i){i&1&&r!==(r=n[23].text+"")&&Ti(t,r)},d(n){n&&ne(t)}}}function Pu(e){let r,t,n,i;return t=new Ts({props:{componentContext:e[1],actions:e[23].actions||e[23].action&&[e[23].action],cls:as.menu__item+" "+e[10],customAction:e[14],$$slots:{default:[Cw]},$$scope:{ctx:e}}}),{c(){r=Be("li"),Wt(t.$$.fragment),n=pr()},m(o,s){ie(o,r,s),Rt(t,r,null),jt(r,n),i=!0},p(o,s){const l={};s&2&&(l.componentContext=o[1]),s&1&&(l.actions=o[23].actions||o[23].action&&[o[23].action]),s&67108865&&(l.$$scope={dirty:s,ctx:o}),t.$set(l)},i(o){i||(B(t.$$.fragment,o),i=!0)},o(o){ee(t.$$.fragment,o),i=!1},d(o){o&&ne(r),Lt(t)}}}function Ew(e){let r,t,n,i,o,s,l,a=nr(e[0]),c=[];for(let f=0;f<a.length;f+=1)c[f]=Pu(Mu(e,a,f));const u=f=>ee(c[f],1,1,()=>{c[f]=null});return{c(){r=Be("div"),t=Be("ul");for(let f=0;f<c.length;f+=1)c[f].c();p(t,"class",as.menu__list),p(r,"class",n=gt("menu",as,e[7])+" "+(e[8]?er.root_platform_desktop:"")+" "+e[9]),z(r,"top",e[4]),z(r,"left",e[3]),z(r,"width",e[5]),z(r,"height",e[6])},m(f,_){ie(f,r,_),jt(r,t);for(let m=0;m<c.length;m+=1)c[m]&&c[m].m(t,null);e[17](r),o=!0,s||(l=[Ue(Fu,"click",e[12]),Ue(Fu,"resize",e[13])],s=!0)},p(f,[_]){if(_&17411){a=nr(f[0]);let m;for(m=0;m<a.length;m+=1){const y=Mu(f,a,m);c[m]?(c[m].p(y,_),B(c[m],1)):(c[m]=Pu(y),c[m].c(),B(c[m],1),c[m].m(t,null))}for(ir(),m=a.length;m<c.length;m+=1)u(m);or()}(!o||_&384&&n!==(n=gt("menu",as,f[7])+" "+(f[8]?er.root_platform_desktop:"")+" "+f[9]))&&p(r,"class",n),_&16&&z(r,"top",f[4]),_&8&&z(r,"left",f[3]),_&32&&z(r,"width",f[5]),_&64&&z(r,"height",f[6])},i(f){if(!o){for(let _=0;_<a.length;_+=1)B(c[_]);f&&Rn(()=>{o&&(i||(i=Xl(r,Du,{y:20},!0)),i.run(1))}),o=!0}},o(f){c=c.filter(Boolean);for(let _=0;_<c.length;_+=1)ee(c[_]);f&&(i||(i=Xl(r,Du,{y:20},!1)),i.run(0)),o=!1},d(f){f&&ne(r),an(c,f),e[17](null),f&&i&&i.end(),s=!1,Wr(l)}}}function Sw(e,r,t){let n,i,{ownerNode:o}=r,{items:s}=r,{parentComponentContext:l}=r;const a=Hr(Zr),c=a.getCustomization("menuPopupClass")||"",u=a.getCustomization("menuItemClass")||"",f=a.isDesktop;on(e,f,H=>t(8,i=H));const _=Date.now(),m=pd();let y,h=!1,w="",v="",R="",N="",V=null;function D(){if(!y||!o)return;const H=y.parentElement;if(!H)return;const W=o.getBoundingClientRect(),U=y.getBoundingClientRect(),he=H.getBoundingClientRect(),Ie=window.innerWidth,Te=window.innerHeight;let _e=0,be=0,_t=U.width,He=U.height;_e=W.left-he.left,be=W.bottom-he.top,_e+_t>Ie&&(_e=Ie-_t),_e<0&&(_e=0),be+He>Te&&(W.top-he.top-He>0?be=W.top-he.top-He:be=Te-He),be<0&&(be=0),t(3,w=`${_e}px`),t(4,v=`${be}px`),t(5,R=""),t(6,N=""),t(16,h=!0),typeof ResizeObserver<"u"&&!V&&(V=new ResizeObserver(()=>{requestAnimationFrame(D)}),V.observe(y))}function te(H){Date.now()-_<100||H.composedPath().includes(y)||m("close")}function F(){D()}function Y(){return m("close"),!0}$n(()=>{if(a.tooltipRoot){const H=window.getComputedStyle(y);t(2,y.style.fontSize=H.fontSize,y),t(2,y.style.fontFamily=H.fontFamily,y),t(2,y.style.lineHeight=H.lineHeight,y),a.tooltipRoot.appendChild(y)}}),Es(()=>{h||D()}),sn(()=>{V==null||V.disconnect()});function X(H){Fr[H?"unshift":"push"](()=>{y=H,t(2,y)})}return e.$$set=H=>{"ownerNode"in H&&t(15,o=H.ownerNode),"items"in H&&t(0,s=H.items),"parentComponentContext"in H&&t(1,l=H.parentComponentContext)},e.$$.update=()=>{e.$$.dirty&65536&&t(7,n={visible:h})},[s,l,y,w,v,R,N,n,i,c,u,f,te,F,Y,o,h,X]}class Vw extends Rr{constructor(r){super(),zr(this,r,Sw,Ew,yr,{ownerNode:15,items:0,parentComponentContext:1})}}const{Map:Iw}=_i;function Nu(e,r,t){const n=e.slice();return n[124]=r[t],n}function Ou(e){let r,t,n,i,o,s,l,a,c,u;t=new xm({props:{svgFiltersMap:e[5]}}),i=new ei({props:{componentContext:e[6]}});let f=e[3]&&zu(e),_=e[4]&&Lu(e);return{c(){r=Be("div"),Wt(t.$$.fragment),n=pr(),Wt(i.$$.fragment),o=pr(),f&&f.c(),s=pr(),_&&_.c(),p(r,"class",l=er.root+(e[7]?` ${er.root_platform_desktop}`:"")+(e[0]?` ${e[0]}`:"")),p(r,"dir",e[8])},m(m,y){ie(m,r,y),Rt(t,r,null),jt(r,n),Rt(i,r,null),jt(r,o),f&&f.m(r,null),jt(r,s),_&&_.m(r,null),a=!0,c||(u=Ue(r,"touchstart",Mw,{passive:!0}),c=!0)},p(m,y){const h={};y[0]&32&&(h.svgFiltersMap=m[5]),t.$set(h);const w={};y[0]&64&&(w.componentContext=m[6]),i.$set(w),m[3]?f?(f.p(m,y),y[0]&8&&B(f,1)):(f=zu(m),f.c(),B(f,1),f.m(r,s)):f&&(ir(),ee(f,1,1,()=>{f=null}),or()),m[4]?_?(_.p(m,y),y[0]&16&&B(_,1)):(_=Lu(m),_.c(),B(_,1),_.m(r,null)):_&&(ir(),ee(_,1,1,()=>{_=null}),or()),(!a||y[0]&129&&l!==(l=er.root+(m[7]?` ${er.root_platform_desktop}`:"")+(m[0]?` ${m[0]}`:"")))&&p(r,"class",l),(!a||y[0]&256)&&p(r,"dir",m[8])},i(m){a||(B(t.$$.fragment,m),B(i.$$.fragment,m),B(f),B(_),a=!0)},o(m){ee(t.$$.fragment,m),ee(i.$$.fragment,m),ee(f),ee(_),a=!1},d(m){m&&ne(r),Lt(t),Lt(i),f&&f.d(),_&&_.d(),c=!1,u()}}}function zu(e){let r=[],t=new Iw,n,i,o=nr(e[3]);const s=l=>l[124].internalId;for(let l=0;l<o.length;l+=1){let a=Nu(e,o,l),c=s(a);t.set(c,r[l]=Ru(c,a))}return{c(){for(let l=0;l<r.length;l+=1)r[l].c();n=Qt()},m(l,a){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(l,a);ie(l,n,a),i=!0},p(l,a){a[0]&72&&(o=nr(l[3]),ir(),r=xu(r,a,s,1,l,o,t,n.parentNode,Qu,Ru,n,Nu),or())},i(l){if(!i){for(let a=0;a<o.length;a+=1)B(r[a]);i=!0}},o(l){for(let a=0;a<r.length;a+=1)ee(r[a]);i=!1},d(l){l&&ne(n);for(let a=0;a<r.length;a+=1)r[a].d(l)}}}function Ru(e,r){let t,n,i;return n=new yw({props:{ownerNode:r[124].ownerNode,data:r[124].desc,internalId:r[124].internalId,parentComponentContext:r[124].componentContext||r[6]}}),{key:e,first:null,c(){t=Qt(),Wt(n.$$.fragment),this.first=t},m(o,s){ie(o,t,s),Rt(n,o,s),i=!0},p(o,s){r=o;const l={};s[0]&8&&(l.ownerNode=r[124].ownerNode),s[0]&8&&(l.data=r[124].desc),s[0]&8&&(l.internalId=r[124].internalId),s[0]&72&&(l.parentComponentContext=r[124].componentContext||r[6]),n.$set(l)},i(o){i||(B(n.$$.fragment,o),i=!0)},o(o){ee(n.$$.fragment,o),i=!1},d(o){o&&ne(t),Lt(n,o)}}}function Lu(e){let r,t;return r=new Vw({props:{ownerNode:e[4].node,items:e[4].items,parentComponentContext:e[4].componentContext||e[6]}}),r.$on("close",e[38]),{c(){Wt(r.$$.fragment)},m(n,i){Rt(r,n,i),t=!0},p(n,i){const o={};i[0]&16&&(o.ownerNode=n[4].node),i[0]&16&&(o.items=n[4].items),i[0]&80&&(o.parentComponentContext=n[4].componentContext||n[6]),r.$set(o)},i(n){t||(B(r.$$.fragment,n),t=!0)},o(n){ee(r.$$.fragment,n),t=!1},d(n){Lt(r,n)}}}function Tw(e){let r,t,n=!e[1]&&!e[2]&&e[6]&&Ou(e);return{c(){n&&n.c(),r=Qt()},m(i,o){n&&n.m(i,o),ie(i,r,o),t=!0},p(i,o){!i[1]&&!i[2]&&i[6]?n?(n.p(i,o),o[0]&70&&B(n,1)):(n=Ou(i),n.c(),B(n,1),n.m(r.parentNode,r)):n&&(ir(),ee(n,1,1,()=>{n=null}),or())},i(i){t||(B(n),t=!0)},o(i){ee(n),t=!1},d(i){i&&ne(r),n&&n.d(i)}}}let Ll=ai(!0),Wo=0;function Bu(){Ll.set(!1)}function Hu(){Ll.set(!0)}const Dw=new Set(["string","integer","number","url","color","boolean"]),Fw=new Set(["string","integer","number","url","color","boolean","array","dict"]);function Si(e,r){if(e&&r)return new Map([...e,...r]);if(e)return e;if(r)return r}function Mw(){}function Pw(e,r,t){var Cr,Qr;let n,i,o,s,{id:l}=r,{json:a={}}=r,{platform:c="auto"}=r,{theme:u="system"}=r,{globalVariablesController:f=void 0}=r,{mix:_=""}=r,{customization:m={}}=r,{builtinProtocols:y=["http","https","tel","mailto","intent"]}=r,{extensions:h=new Map}=r,{onError:w=void 0}=r,{onStat:v=void 0}=r,{onCustomAction:R=void 0}=r,{onComponent:N=void 0}=r,{typefaceProvider:V=b=>""}=r,{fetchInit:D={}}=r,{tooltipRoot:te=void 0}=r,{customComponents:F=void 0}=r,{direction:Y="ltr"}=r,{store:X=void 0}=r,{weekStartDay:H=0}=r,W=!0,U=ai(c==="desktop");if(on(e,U,b=>t(7,o=b)),c==="auto"&&typeof matchMedia<"u"){const b=matchMedia("(any-pointer: coarse)");U.set(!b.matches),b.addListener(()=>{U.set(!b.matches)})}let he="light",Ie=null;const Te=ai(Y==="rtl"?"rtl":"ltr");on(e,Te,b=>t(8,s=b));function _e(){u!=="system"||!Ie||t(35,he=Ie.matches?"dark":"light")}function be(b){t(12,u=b)}function _t(){return new Map}function He(){return new Map}function ze(b){t(11,a=b)}const Fe=new Set(y);let qe=!1,Qe=!1;l||(Qe=!0,C(x(new Error('"id" prop is required'))));const Z={stateChange:!1},Ae=f||new Yf,ge=Gf(Ae),et=ls(Ae),G=new Map,Ee=new Map,We=new Map;let re=null;const it=new Map;let je=0,Ve=[];const yt=new Set;let Vt;const $=[];function tt(b){return m==null?void 0:m[b]}function lt(b,A,K,oe=!1,se=void 0){if(!A)return Hi(A);const Ce=Si(Ee,K),bt=Cu(A,b,X,H);if(!bt.vars.length)return bt.hasExpression?Hi(bt.applyVars(Ce,se)):Hi(A);const P=bt.vars.map(Ye=>Ce.get(Ye)||Se(Ye)).filter(ki);return Gi(P,()=>bt.applyVars(Ce,se,oe))}function dt(b,A,K,oe=!1,se=void 0){const Ce=Cu(A,b,X,H);if(!Ce.hasExpression)return A;const bt=Si(Ee,K);return Ce.applyVars(bt,se,oe)}function Ge(b,A,K){const oe=new Map,se=el(b,"dict",A);oe.set(b,se);const Ce=el("index","integer",K);return oe.set("index",Ce),oe}function C(b){w?w({error:b}):(b==null?void 0:b.level)==="warn"?console.warn(b):console.error(b)}function $e(b,A){v&&v({type:b,action:A})}function le(b){return b in n}function Ke(b,A){if(!b)return{json:b,templateContext:A};const K=new Set([b.type]);for(;b.type&&b.type in n;){if({json:b,templateContext:A}=$m(b,A,n,C),K.has(b.type))return{json:b,templateContext:A};K.add(b.type)}return{json:b,templateContext:A}}let wt=0;function fe(b){return`${l}-${wt++}`}function pe(b){return`divkit-${fe()}`}let at={},Ze={};function xt(b,A){const K=`${b}:${A}`;if(Ze[K]=Ze[K]||0,++Ze[K],at[K])return at[K];const oe=`${fe()}-svg-filter`;return t(5,at={...at,[K]:oe}),oe}function Mt(b,A){if(!b)return;const K=`${b}:${A}`;Ze[K]&&--Ze[K]===0&&t(5,at=Object.keys(at).reduce((oe,se)=>(Ze[se]&&(oe[se]=at[se]),oe),{}))}const qt=fe()+"-id-",Pe=new Map,pt=new Map;function Ut(b){return qt+b}function Bt(b,A){Pe.set(b,A)}function Gt(b){Pe.delete(b);const A=Ut(b);pt.has(A)&&pt.delete(A)}function L(b){var K;const A=(K=Pe.get(b))==null?void 0:K();if(A){const oe=Ut(b),se=pt.get(oe);return se&&se!==A&&se.removeAttribute("id"),A.setAttribute("id",oe),pt.set(oe,A),oe}return""}async function ae(b,A){var Ce,bt,P;if(!b)throw new Error("Missing state id");let K=b.split("/");const oe=K.length%2===0&&cw(A);let se=oe||kt;if(!oe)if((Ce=se.states)!=null&&Ce.root){if(se=await se.states.root(K[0]),!se)return;K=K.slice(1)}else return;for(let Ye=0;Ye<K.length;Ye+=2){const Ot=K[Ye],Tt=K[Ye+1];if((bt=se.states)!=null&&bt[Ot]){if(se=await((P=se.states)==null?void 0:P[Ot](Tt)),!se)return}else return}}function ar(b,A,{item:K,step:oe,overflow:se}){var Ye,Ot,Tt,zt,rr;if(!A)throw new Error(`Missing id for "${b}" action`);const Ce=Number(K);if(b==="set_current_item"&&Number.isNaN(Ce))throw new Error(`Incorrect item for "${b}" action`);let bt=Number(oe);if(!oe&&(b==="set_previous_item"||b==="set_next_item")&&(bt=1),!oe&&(b==="scroll_backward"||b==="scroll_forward"||b==="scroll_to_position")||Number.isNaN(bt))throw new Error(`Incorrect step value for "${b}" action`);if(se&&se!=="clamp"&&se!=="ring")throw new Error(`Incorrect overflow value for "${b}" action`);se=se||"clamp";const P=Mr(A);if(P)switch(b){case"set_current_item":P.setCurrentItem(Ce);return;case"set_previous_item":P.setPreviousItem(bt,se);return;case"set_next_item":P.setNextItem(bt,se);return;case"scroll_to_start":(Ye=P.scrollToStart)==null||Ye.call(P);return;case"scroll_to_end":(Ot=P.scrollToEnd)==null||Ot.call(P);return;case"scroll_backward":(Tt=P.scrollBackward)==null||Tt.call(P,bt,se);return;case"scroll_forward":(zt=P.scrollForward)==null||zt.call(P,bt,se);return;case"scroll_to_position":(rr=P.scrollToPosition)==null||rr.call(P,bt);return}}function we(b,A,K){const oe=(K==null?void 0:K.logError)||C;if(b){const se=Mr(b);se?A==="start"?se.start():A==="pause"?se.pause():oe(x(new Error("Unknown video action"),{additional:{id:b,action:A}})):oe(x(new Error("Video component is not found"),{additional:{id:b,action:A}}))}else oe(x(new Error("Missing id in video action"),{additional:{action:A}}))}function Et(b,A,K){const oe=(K==null?void 0:K.logError)||C;if(b){let se;typeof D=="function"?se=D(b):se=D,fetch(b,se).then(Ce=>{if(!Ce.ok)throw new Error("Response is not ok");return Ce.json()}).then(Ce=>{var bt,P,Ye;if(!Ce){oe(x(new Error("Incorrect patch"),{additional:{url:b}}));return}if(Ce.templates)for(const Ot in Ce.templates)n.hasOwnProperty(Ot)||(n[Ot]=Ce.templates[Ot]);if(Array.isArray((bt=Ce.patch)==null?void 0:bt.changes)){if(Ce.patch.mode==="transactional"){const Ot=Ce.patch.changes.find(Tt=>{const zt=ut.get(Tt.id);if(!zt)return!0;const rr=Array.isArray(Tt.items)?Tt.items.length:0;return!!(zt.isSingleMode&&rr!==1)});if(Ot){oe(x(new Error("Skipping transactional, child is not found or broken"),{additional:{url:b,id:Ot.id}})),De((P=Ce.patch)==null?void 0:P.on_failed_actions),De(A==null?void 0:A.on_fail_actions);return}}Ce.patch.changes.forEach(Ot=>{const Tt=ut.get(Ot.id);Tt&&Tt.replaceWith(Ot.id,Ot.items)}),De((Ye=Ce.patch)==null?void 0:Ye.on_applied_actions),De(A==null?void 0:A.on_success_actions)}}).catch(Ce=>{oe(x(new Error("Failed to download the patch"),{additional:{url:b,originalError:Ce}})),De(A==null?void 0:A.on_fail_actions)})}else oe(x(new Error("Missing url in download action"),{additional:{url:b}}))}function Re(b,A,K){var P;const oe=(K==null?void 0:K.logError)||C;if(!b){oe(x(new Error("Missing id in show_tooltip action")));return}const se=Ft.get(b);if(!se){oe(x(new Error("Tooltip with the provided id is not found"),{additional:{id:b}}));return}if(A!=="true"&&A!==!0&&yt.has(b))return;yt.add(b);const Ce={internalId:++je,ownerNode:se.onwerNode,desc:se.tooltip,timeoutId:0,componentContext:K};t(3,Ve=[...Ve,Ce]);const bt=(P=se.tooltip.duration)!=null?P:5e3;bt&&(Ce.timeoutId=window.setTimeout(()=>{Ce.timeoutId=0,t(3,Ve=Ve.filter(Ye=>Ye.internalId!==Ce.internalId))},bt))}function mt(b,A){const K=(A==null?void 0:A.logError)||C;if(!b){K(x(new Error("Missing id in hide_tooltip action")));return}t(3,Ve=Ve.filter(oe=>{const se=oe.desc.id!==b;return!se&&oe.timeoutId&&(clearTimeout(oe.timeoutId),oe.timeoutId=null),se}))}function Ne(b,A,K,oe,se){const Ce=(b==null?void 0:b.logError)||C;if(!X){Ce(x(new Error("Store is not configured")));return}let bt=K;if(!A||!bt||!oe||!se){Ce(x(new Error("Missing required params for set_stored_value")));return}if(!Fw.has(oe)){Ce(x(new Error("Incorrect stored type")));return}if(oe==="boolean"&&(bt=bt==="true"||bt==="1"),X.set)X.set(A,oe,bt,Number(se));else if(X.setValue){if(!Dw.has(oe)){Ce(x(new Error("Incorrect stored type")));return}if(typeof bt!="string"&&typeof bt!="number"&&typeof bt!="boolean"){Ce(x(new Error("Incorrect stored value")));return}(oe==="integer"||oe==="number")&&(bt=Number(bt)),X.setValue(A,oe,bt,Number(se))}}function ot(b){vt(dt(C,b))}async function vt(b,A){var bt,P;const K=b.scope_id,oe=(A==null?void 0:A.logError)||C;if(K){const Ye=$t.get(K);if(Ye&&(Ye==null?void 0:Ye.size)>1)oe(x(new Error(`Ambiguous scope id. There are ${Ye.size} divs with id '${K}'`),{additional:{count:Ye.size,scopeId:K}}));else if((Ye==null?void 0:Ye.size)===1){const Ot=Ye.values().next().value;Ot&&(A=Ot)}}const se=b.url?String(b.url):"",Ce=b.typed;if(En(b)){if(se)try{const Ye=se.replace(/div-action:\/\//,""),Ot=/([^?]+)\?(.+)/.exec(Ye);if(!Ot)return;const Tt=new URLSearchParams(Ot[2]);switch(Ot[1]){case"set_state":await ae(Tt.get("state_id"),A);break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":ar(Ot[1],Tt.get("id"),{item:Tt.get("item"),step:Tt.get("step"),overflow:Tt.get("overflow")});break;case"set_variable":const zt=Tt.get("name"),rr=Tt.get("value");if(zt&&rr!==null){const fn=(A==null?void 0:A.getVariable(zt))||Ee.get(zt);if(fn){const xr=fn.getType();xr==="dict"||xr==="array"?oe(x(new Error(`Setting ${xr} variables is not supported`),{additional:{name:zt}})):fn.set(rr)}else oe(x(new Error("Cannot find variable"),{additional:{name:zt}}))}else oe(x(new Error("Incorrect set_variable_action"),{additional:{url:Ye}}));break;case"timer":const rn=Tt.get("action"),Pr=Tt.get("id");re?re.execTimerAction(Pr,rn):oe(x(new Error("Incorrect timer action"),{additional:{id:Pr,action:rn}}));break;case"video":we(Tt.get("id"),Tt.get("action"),A);break;case"download":Et(Tt.get("url"),b.download_callbacks,A);break;case"show_tooltip":Re(Tt.get("id"),Tt.get("multiple"),A);break;case"hide_tooltip":mt(Tt.get("id"),A);break;case"set_stored_value":{Ne(A,Tt.get("name"),Tt.get("value"),Tt.get("type"),Tt.get("lifetime"));break}default:oe(x(new Error("Unknown type of action"),{additional:{url:se}}))}}catch(Ye){oe(x(Ye,{additional:{url:se}}))}else if(Ce)switch(Ce.type){case"set_variable":{const{variable_name:Ye,value:Ot}=Ce;if(Ye&&Ot){const Tt=(A==null?void 0:A.getVariable(Ye))||Ee.get(Ye);Tt?Tt.getType()===Ot.type?Tt.setValue(Ot.value):oe(x(new Error("Trying to set value with invalid type"),{additional:{name:Ye,type:Ot.type}})):oe(x(new Error("Cannot find variable"),{additional:{name:Ye}}))}else oe(x(new Error("Incorrect set_variable action"),{additional:{name:Ye}}));break}case"array_insert_value":rw(A,Ee,oe,Ce);break;case"array_remove_value":nw(A,Ee,oe,Ce);break;case"array_set_value":iw(A,Ee,oe,Ce);break;case"copy_to_clipboard":sw(oe,Ce);break;case"focus_element":{const Ye=Ce.element_id&&St.get(Ce.element_id);Ye?Ye.focus():oe(x(new Error("Incorrect focus_element action"),{additional:{elementId:Ce.element_id}}));break}case"clear_focus":{try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}break}case"dict_set_value":{ow(A,Ee,oe,Ce);break}case"animator_start":{const Ye=Ce.animator_id&&(A==null?void 0:A.getAnimator(Ce.animator_id));if(!Ye){oe(x(new Error("Missing animator"),{additional:{animator_id:Ce.animator_id}}));return}const{duration:Ot,start_delay:Tt,interpolator:zt,direction:rr,repeat_count:rn,start_value:Pr,end_value:fn}=Ce,xr=A?A.getJsonWithVars(Ye):dt(C,Ye),Ln={...xr,end_actions:Ye.end_actions,cancel_actions:Ye.cancel_actions,duration:Ot!==void 0?Ot:xr.duration,start_delay:Tt!==void 0?Tt:xr.start_delay,interpolator:zt!==void 0?zt:xr.interpolator,direction:rr!==void 0?rr:xr.direction,repeat_count:rn!==void 0?rn:xr.repeat_count,start_value_typed:Pr,end_value_typed:fn},gn=Ye.variable_name&&((A==null?void 0:A.getVariable(Ye.variable_name))||Ee.get(Ye.variable_name));if(!gn)return;const $r=it.get(Ye.id);$r&&$r.stop();const dn=aw(Ln,gn,()=>{it.delete(Ye.id)},(Bn,Yn)=>{const An=(A==null?void 0:A.execAnyActions)||De,Hn=A?A.getJsonWithVars(Bn):dt(C,Bn);return An(Hn,Yn)});dn&&it.set(Ye.id,dn);break}case"animator_stop":{const Ye=it.get(Ce.animator_id);Ye&&(Ye.stop(),it.delete(Ce.animator_id));break}case"show_tooltip":{Re(Ce.id,Ce.multiple,A);break}case"hide_tooltip":{mt(Ce.id,A);break}case"timer":{re?re.execTimerAction(Ce.id,Ce.action):oe(x(new Error("Incorrect timer action"),{additional:{id:Ce.id,action:Ce.action}}));break}case"download":{Et(Ce.url,Ce,A);break}case"video":{we(Ce.id,Ce.action,A);break}case"set_stored_value":{Ne(A,Ce.name,(bt=Ce.value)==null?void 0:bt.value,(P=Ce.value)==null?void 0:P.type,Ce.lifetime);break}case"set_state":{await ae(Ce.state_id,A);break}default:oe(x(new Error("Unknown type of action"),{additional:{type:Ce.type}}))}}}async function De(b,A={}){if(!b||!Array.isArray(b))return;const K=b.filter(En);for(let oe=0;oe<K.length;++oe){let se=K[oe];const Ce=se.url,bt=se.typed;if(Ce){const P=Ks(Ce);if(P)if(Xs(P,Fe)){if(A.processUrls)if(se.target==="_blank"){const Ye=window.open("","_blank");Ye&&(Ye.opener=null,Ye.location=Ce)}else location.href=Ce}else P==="div-action"?(await vt(se,A.componentContext),await wn()):se.log_id&&(ct(se),await wn())}else bt?await vt(se,A.componentContext):A.node&&Array.isArray(se.menu_items)&&se.menu_items.length&&t(4,Vt={items:se.menu_items,node:A.node,componentContext:A.componentContext})}K.forEach(oe=>{oe.log_id&&$e(A.logType||"click",oe)})}function ct(b){R==null||R(b)}function Yt(b,A){const K=(b==null?void 0:b.logError)||C;if(!Array.isArray(A)||!A.length)return;const oe=[];return A.forEach(se=>{let Ce=!1;if(typeof se.condition!="string"){K(x(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:se.condition}}));return}if(!Array.isArray(se.actions)){K(x(new Error("variable_trigger has no actions"),{additional:{condition:se.condition}}));return}const bt=se.mode||"on_condition";if(bt!=="on_variable"&&bt!=="on_condition"){K(x(new Error("variable_trigger has an unsupported mode"),{additional:{mode:bt}}));return}try{const P=zl(se.condition,{startRule:"JsonStringContents"}),Ye=Mf(P);if(!Ye.length){K(x(new Error("variable_trigger must have variables in the condition"),{additional:{condition:se.condition}}));return}const Ot=Ye.map(zt=>(b==null?void 0:b.getVariable(zt))||Ee.get(zt)||Se(zt)),Tt=Gi(Ot,()=>{const zt=b?b.evalExpression(X,P,{weekStartDay:H}):ys(Ee,void 0,X,P,{weekStartDay:H});return zt.warnings.forEach(C),zt.result}).subscribe(async zt=>{if(zt.type==="error"){K(x(new Error("variable_trigger condition execution error"),{additional:{message:zt.value}}));return}if(zt.value&&(bt==="on_variable"||bt==="on_condition"&&Ce===!1)){Ce=!!zt.value;const rr=se.actions.map(rn=>b?b.getJsonWithVars(rn):dt(C,rn));b?await b.execAnyActions(rr,{logType:"trigger"}):await De(rr,{logType:"trigger"})}else Ce=!!zt.value});oe.push(Tt)}catch{K(x(new Error("Unable to parse variable_trigger"),{additional:{condition:se.condition}}))}}),()=>{oe.forEach(se=>{se()})}}function sr(b){return Z[b]}function dr(b,A){Z[b]=A}const Ht=new Map,ut=new Map,St=new Map,Ft=new Map,$t=new Map;function tr(b,A){if(Ht.has(b)){C(x(new Error("Duplicate instance id"),{additional:{id:b}}));return}Ht.set(b,A)}function wr(b){Ht.delete(b)}function Mr(b){if(!Ht.has(b)){C(x(new Error("Missing instance with id"),{additional:{id:b}}));return}return Ht.get(b)}function Ur(b,A){ut.set(b,A)}function Je(b){ut.delete(b)}function cr(b,A){St.set(b,A)}function ke(b){St.delete(b)}function q(b,A){const K=A.id;K&&(Ft.has(K)&&C(x(new Error("Duplicate tooltip id"),{additional:{id:K}})),Ft.set(K,{onwerNode:b,tooltip:A}))}function vr(b){const A=b.id;A&&(Ft.delete(A),Ve.some(K=>K.desc.id===A)&&t(3,Ve=Ve.filter(K=>K.desc.id!==A)))}const kr=new Map;function Pt(b){kr.has(b)||kr.set(b,Zy[b]())}function Xr(b){return kr.has(b)||Pt(b),kr.get(b)}function Se(b){const A=We.get(b)||ai(void 0);return We.has(b)||We.set(b,A),A}function Nt(){if(!de)return;de[he].forEach(A=>{const K=Ee.get(A.name);K&&K.setValue(A.color)})}function ur(){return Fe}function Xe(b,A){const K=h.get(b);if(K)return new K(A||{})}function It(b){return{variables:Si(Ee,b.variables),processExpressions(A){return dt(C,A)},execAction:ot,logError:C,getComponentProperty(A){return b.getJsonWithVars(b.json[A])},direction:Y}}function Oe(b){const A={id:"",json:{},path:[],templateContext:{},logError(K){K.additional=K.additional||{},K.additional.path=A.path.join("/"),C(K)},execAnyActions(K,oe={}){return De(K,{componentContext:A,processUrls:oe.processUrls,node:oe.node,logType:oe.logType})},getDerivedFromVars(K,oe,se=!1){return lt(A.logError,K,Si(A.variables,oe),se,A.customFunctions)},getJsonWithVars(K,oe,se=!1){return dt(A.logError,K,Si(A.variables,oe),se,A.customFunctions)},evalExpression(K,oe,se){return ys(Si(Ee,A.variables),A.customFunctions,K,oe,se)},produceChildContext(K,oe={}){const se=Oe(A);let Ce=K,bt=A.templateContext;const{templateContext:P,json:Ye}=Ke(Ce,bt);if(se.json=Ye,se.templateContext=P,se.origJson=K,se.id=oe.id||Ye.id||"",se.id){let zt=$t.get(se.id);zt||(zt=new Set,$t.set(se.id,zt)),zt.add(se)}oe.path!==void 0&&se.path.push(String(oe.path)),K.type&&!oe.isRootState&&se.path.push(K.type),oe.isTooltipRoot&&(se.isTooltipRoot=!0);let Ot;Array.isArray(Ye.variables)&&(Ot=new Map,Ye.variables.forEach(zt=>{const rr=Jt(zt);rr&&Ot&&Ot.set(rr.getName(),rr)})),se.variables=Si(A.variables,Si(Ot,oe.variables));let Tt;return Array.isArray(Ye.functions)&&(Tt=new Map,Ye.functions.forEach(zt=>{if(Tt){try{Uy(zt)}catch(Pr){A.logError(x(Pr));return}const rr=zt,rn=Tt.get(rr.name)||[];rn.push(Gy(rr)),Tt.set(rr.name,rn)}})),se.customFunctions=Yy(A.customFunctions,Tt),Array.isArray(Ye.animators)&&(A.animators=Ye.animators.reduce((zt,rr)=>(rr.id&&(zt[rr.id]=rr),zt),{})),oe.fake&&(se.fakeElement=!0),oe.isRootState&&(se.isRootState=!0),se},getVariable(K,oe){var Ce;const se=((Ce=A.variables)==null?void 0:Ce.get(K))||Ee.get(K);if(se){const bt=se.getType();if(oe&&bt!==oe){A.logError(x(new Error(`Variable should have type "${oe}"`),{additional:{name:K,foundType:bt}}));return}}return se},getAnimator(K){var oe,se;return((oe=A.animators)==null?void 0:oe[K])||((se=A.parent)==null?void 0:se.getAnimator(K))||void 0},registerState(K,oe){const se=Eu(A.parent);se&&(se.states=se.states||{},se.states[K]=oe)},unregisterState(K){const oe=Eu(A.parent);oe!=null&&oe.states&&delete oe.states[K]},destroy(){const K=$t.get(A.id);K&&(K.delete(A),K.size||$t.delete(A.id))}};return b?(A.parent=b,A.path=b.path.slice(),b.fakeElement&&(A.fakeElement=!0)):(A.json={type:"root"},A.isRootState=!0),A}function ht(b){W?$.push(b):clearTimeout(b)}Li(Zr,{logStat:$e,hasTemplate:le,genId:fe,genClass:pe,execCustomAction:ct,processVariableTriggers:Yt,isRunning:sr,setRunning:dr,registerInstance:tr,unregisterInstance:wr,registerParentOf:Ur,unregisterParentOf:Je,registerTooltip:q,unregisterTooltip:vr,onTooltipClose:lr,tooltipRoot:te,registerFocusable:cr,unregisterFocusable:ke,addSvgFilter:xt,removeSvgFilter:Mt,registerId:Bt,unregisterId:Gt,getComponentId:L,preparePrototypeVariables:Ge,getStore:Xr,getCustomization:tt,getBuiltinProtocols:ur,getExtension:Xe,getExtensionContext:It,registerTimeout:ht,typefaceProvider:V,isDesktop:U,isPointerFocus:Ll,customComponents:F,direction:Te,componentDevtool:void 0}),Li(hs,{hasAction(){return!1}}),Li(Al,{runVisibilityTransition(b,A,K,oe,se){return Promise.resolve()},registerChildWithTransitionIn(b,A,K,oe){return Promise.resolve()},registerChildWithTransitionOut(b,A,K,oe){return Promise.resolve()},registerChildWithTransitionChange(b,A,K,oe){return Promise.resolve()},hasTransitionChange(b){return!1},registerChild(b){},unregisterChild(b){}}),Li(El,{isEnabled:Hi(!0)});function st(b,A){const K=Ee.get(b);return(K==null?void 0:K.getType())===A}function At(b,A){const K=Ee.get(b);K?K.setValue(A):C(x(new Error("Cannot find variable"),{additional:{name:b}}))}function Jt(b){if(!(!b.type||!b.name||!(b.type in $s))){b.type==="integer"&&typeof b.value=="number"&&(b.value>Number.MAX_SAFE_INTEGER||b.value<Number.MIN_SAFE_INTEGER)&&C(x(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:b.name,value:b.value}}));try{return fi(b.name,b.type,b.value)}catch(A){C(x(A,{additional:{name:b.name}}))}}}function I(b){const A=Jt(b);A&&(G.set(b.name,A),Ee.set(b.name,A))}const rt=(Cr=a==null?void 0:a.card)==null?void 0:Cr.variables;Array.isArray(rt)&&rt.forEach(b=>{if(b&&b.name){if(G.has(b.name)){C(x(new Error("Duplicate variable"),{additional:{name:b.name}}));return}I(b)}});const de=a.palette;de&&de[he].forEach(A=>{if(G.has(A.name)){C(x(new Error("Duplicate variable"),{additional:{name:A.name}}));return}try{const K=fi(A.name,"color",A.color);G.set(A.name,K),Ee.set(A.name,K)}catch(K){C(x(K,{additional:{name:A.name}}))}});for(const[b,A]of et)Ee.has(b)||Ee.set(b,A);ge.subscribe(b=>{if(b&&!Ee.has(b)){const A=et.get(b);Ee.set(b,A);const K=We.get(b);if(K){let oe=0;A.subscribe(()=>{K.set(++oe)})}}});const d=()=>{var b;Yt(void 0,(b=a==null?void 0:a.card)==null?void 0:b.variable_triggers)},Me=(Qr=a==null?void 0:a.card)==null?void 0:Qr.timers;if(Me&&typeof document<"u"){const b=re=new tw({logError:C,applyVars:A=>dt(C,A),hasVariableWithType:st,setVariableValue:At,execAnyActions:De});Me.forEach(A=>b.createTimer(A))}const kt=Oe();let Tr;function lr(b){t(3,Ve=Ve.filter(A=>A.internalId!==b))}$n(()=>{Wo++,Wo===1&&(window.addEventListener("keydown",Bu),window.addEventListener("pointerdown",Hu)),wn().then(()=>{W&&d()})}),sn(()=>{W=!1,Wo--,Wo||(window.removeEventListener("keydown",Bu),window.removeEventListener("pointerdown",Hu));for(const[b,A]of it)A.stop();re&&re.destroy(),Ve.forEach(b=>{b.timeoutId&&(clearTimeout(b.timeoutId),b.timeoutId=null)}),$.forEach(b=>{clearTimeout(b)}),f||Qy(Ae)});const O=()=>t(4,Vt=void 0);return e.$$set=b=>{"id"in b&&t(13,l=b.id),"json"in b&&t(11,a=b.json),"platform"in b&&t(14,c=b.platform),"theme"in b&&t(12,u=b.theme),"globalVariablesController"in b&&t(15,f=b.globalVariablesController),"mix"in b&&t(0,_=b.mix),"customization"in b&&t(16,m=b.customization),"builtinProtocols"in b&&t(17,y=b.builtinProtocols),"extensions"in b&&t(18,h=b.extensions),"onError"in b&&t(19,w=b.onError),"onStat"in b&&t(20,v=b.onStat),"onCustomAction"in b&&t(21,R=b.onCustomAction),"onComponent"in b&&t(22,N=b.onComponent),"typefaceProvider"in b&&t(23,V=b.typefaceProvider),"fetchInit"in b&&t(24,D=b.fetchInit),"tooltipRoot"in b&&t(25,te=b.tooltipRoot),"customComponents"in b&&t(26,F=b.customComponents),"direction"in b&&t(27,Y=b.direction),"store"in b&&t(28,X=b.store),"weekStartDay"in b&&t(29,H=b.weekStartDay)},e.$$.update=()=>{var b,A;if(e.$$.dirty[0]&4096|e.$$.dirty[1]&32&&(u==="light"||u==="dark"?t(35,he=u):u==="system"?typeof matchMedia<"u"?(Ie||(t(36,Ie=matchMedia("(prefers-color-scheme: dark)")),Ie.addListener(_e)),t(35,he=Ie.matches?"dark":"light")):t(35,he="light"):C(x(new Error("Unsupported theme")))),e.$$.dirty[1]&16&&he&&Nt(),e.$$.dirty[0]&2048){t(1,qe=!1);const K=Jy(a);K&&(t(1,qe=!0),C(K))}if(e.$$.dirty[0]&2048&&(n=a.templates||{}),e.$$.dirty[0]&2048&&(b=a==null?void 0:a.card)!=null&&b.variables&&Array.isArray(a.card.variables)&&a.card.variables!==rt&&a.card.variables.forEach(K=>{K&&K.name&&!G.has(K.name)&&I(K)}),e.$$.dirty[0]&2048&&t(37,i=(A=a==null?void 0:a.card)==null?void 0:A.states),e.$$.dirty[0]&6|e.$$.dirty[1]&64&&i&&!qe&&!Qe){const K={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map(oe=>({state_id:oe.state_id.toString(),div:oe.div}))};t(6,Tr=kt.produceChildContext(K,{isRootState:!0}))}},[_,qe,Qe,Ve,Vt,at,Tr,o,s,U,Te,a,u,l,c,f,m,y,h,w,v,R,N,V,D,te,F,Y,X,H,be,_t,He,ze,ot,he,Ie,i,O]}class Nw extends Rr{constructor(r){super(),zr(this,r,Pw,Tw,yr,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,weekStartDay:29,setTheme:30,getDebugVariables:31,getDebugAllVariables:32,setData:33,execAction:34},null,[-1,-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[30]}get getDebugVariables(){return this.$$.ctx[31]}get getDebugAllVariables(){return this.$$.ctx[32]}get setData(){return this.$$.ctx[33]}get execAction(){return this.$$.ctx[34]}}const Ow=8;class zw{constructor(r){gr(this,"widthVariableName");gr(this,"heightVariableName");gr(this,"resizeObserver");gr(this,"context");gr(this,"node");gr(this,"sizeHistory",{});this.widthVariableName=r.width_variable_name,this.heightVariableName=r.height_variable_name}setVariable(r,t){if(!this.context)return!1;if(r){const n=this.context.variables.get(r);if(n&&n.getType()==="integer"){if(t=Math.round(t),this.sizeHistory[r]||(this.sizeHistory[r]=new Set),!this.sizeHistory[r].has(t))return n.setValue(t),this.sizeHistory[r].add(t),!0}else{const i=new Error("Missing variable");i.level="error",i.additional={variableName:r},this.context.logError(i)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const r=this.node.getBoundingClientRect(),t=this.setVariable(this.widthVariableName,r.width),n=this.setVariable(this.heightVariableName,r.height);return t||n}mountView(r,t){var n;this.node=r,this.context=t,!this.resizeObserver&&typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(async()=>{let i=0;for(;this.recalcProps();){if(++i>Ow){const o=new Error("Recursive layout in size_provider");o.level="warn",o.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},t.logError(o);break}await wn()}this.sizeHistory={}})),(n=this.resizeObserver)==null||n.observe(r),this.recalcProps()}unmountView(r,t){var n;(n=this.resizeObserver)==null||n.disconnect(),this.resizeObserver=void 0}}const to=8;class Rw{constructor(r){gr(this,"context");gr(this,"params");gr(this,"startCoords");this.params=r,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this)}processActions(r){const t=this.params[r];Array.isArray(t)&&t.length&&this.context&&this.context.processExpressions(t).forEach(i=>{var o;(o=this.context)==null||o.execAction(i)})}onPointerDown(r){this.startCoords={pageX:r.pageX,pageY:r.pageY}}onPointerMove(r){if(!this.startCoords)return;const t=r.pageX-this.startCoords.pageX,n=r.pageY-this.startCoords.pageY;(Math.abs(t)>to||Math.abs(n)>to)&&(Math.abs(t)>Math.abs(n)?t>to?this.processActions("swipe_right"):t<-to&&this.processActions("swipe_left"):n>to?this.processActions("swipe_down"):n<-to&&this.processActions("swipe_up"),this.startCoords=void 0)}onPointerUp(){this.startCoords=void 0}mountView(r,t){this.context=t,r.addEventListener("pointerdown",this.onPointerDown),r.addEventListener("pointermove",this.onPointerMove),r.addEventListener("pointerup",this.onPointerUp),r.addEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents="auto"}updateView(r){r.style.pointerEvents="auto"}unmountView(r,t){r.removeEventListener("pointerdown",this.onPointerDown),r.removeEventListener("pointermove",this.onPointerMove),r.removeEventListener("pointerup",this.onPointerUp),r.removeEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents=""}}function Lw(e){return e instanceof HTMLElement}function Bw(e){return class{constructor(t){gr(this,"params");gr(this,"animItem");gr(this,"wrapper");this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then(n=>{if(!n.ok)throw new Error("Response is not ok");return n.json()}):Promise.reject("Missing data")}getRatio(t){var i;const n=(i=t.getComponentProperty("aspect"))==null?void 0:i.ratio;if(typeof n=="number"&&n>0)return n}getScale(t){const n=t.getComponentProperty("scale");if(n==="stretch")return{attribute:"none",noScale:!1,hAlign:"center",vAlign:"center"};let i=t.getComponentProperty("content_alignment_horizontal"),o=t.getComponentProperty("content_alignment_vertical"),s="Mid",l="Mid";return i==="start"?i=t.direction==="ltr"?"start":"end":i==="end"?i=t.direction==="ltr"?"end":"start":i==="left"?i="start":i==="right"?i="end":i="center",o==="top"?o="start":o==="bottom"?o="end":o="center",n==="no_scale"?{attribute:"xMidYMid meet",noScale:!0,hAlign:i,vAlign:o}:(i==="start"?s="Min":i==="end"&&(s="Max"),o==="start"?l="Min":o==="end"&&(l="Max"),n==="fit"||n==="no_scale"?{attribute:`x${s}Y${l} meet`,noScale:!1,hAlign:i,vAlign:o}:{attribute:`x${s}Y${l} slice`,noScale:!1,hAlign:i,vAlign:o})}getSvg(){var n;const t=(n=this.wrapper)==null?void 0:n.firstElementChild;if(t instanceof SVGElement)return t}setWrapperScale(t){this.wrapper&&(t.noScale?(this.wrapper.style.display="flex",this.wrapper.style.alignItems=t.vAlign,this.wrapper.style.justifyContent=t.hAlign):(this.wrapper.style.display="",this.wrapper.style.alignItems="",this.wrapper.style.justifyContent=""))}setSvgScale(t){const n=this.getSvg();n&&(t.noScale?(n.style.flex="0 0 auto",n.style.width="",n.style.height=""):(n.style.flex="",n.style.width="100%",n.style.height="100%"))}mountView(t,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const i=Array.from(t.children).filter(Lw);i.forEach(u=>{u.style.display="none"}),t.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%";const s=this.getRatio(n),l=this.getScale(n);s&&(this.wrapper.style.aspectRatio=String(s)),this.setWrapperScale(l),t.appendChild(this.wrapper);const a=Number(this.params.repeat_count||-1),c=()=>{var f,_;(f=this.animItem)==null||f.destroy(),i.forEach(m=>{m.style.display=""}),t.removeAttribute("data-lottie"),this.wrapper&&((_=this.wrapper.parentNode)==null||_.removeChild(this.wrapper),this.wrapper=void 0);const u=new Error("Failed to load lottie animation");u.level="error",u.additional={url:this.params.lottie_url},n.logError(u)};this.loadData().then(u=>{const f=this.animItem=e({container:o,animationData:u,renderer:"svg",loop:!0,rendererSettings:{preserveAspectRatio:l.attribute}});if(this.setSvgScale(l),this.animItem.addEventListener("data_failed",c),this.params.repeat_mode==="reverse"||a!==-1){let _=1,m=0;f.addEventListener("loopComplete",()=>{++m,a!==-1&&m===a?(f.stop(),f.goToAndStop(f.totalFrames,!0)):(this.params.repeat_mode==="reverse"&&(_*=-1,f.setDirection(_)),f.goToAndPlay(_===1?0:f.totalFrames,!0))})}}).catch(c)}updateView(t,n){if(!this.wrapper)return;const i=this.getRatio(n);i&&(this.wrapper.style.aspectRatio=String(i));const o=this.getSvg();if(o){const s=this.getScale(n);this.setWrapperScale(s),this.setSvgScale(s),o.setAttribute("preserveAspectRatio",s.attribute)}}unmountView(t,n){var i,o;(i=this.animItem)==null||i.destroy(),this.wrapper&&((o=this.wrapper.parentNode)==null||o.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}function Hw(e,r={}){return class{constructor(){gr(this,"prevDOM",null)}recalc(n,i){const o=n.firstElementChild,s=o==null?void 0:o.firstElementChild;if(!s)return;this.prevDOM=o.cloneNode(!0);const l=i.getComponentProperty("text")||"",a=e(l),c=document.createElement("div");c.innerHTML=a,r!=null&&r.cssClass&&c.classList.add(r.cssClass);const u=Array.from(o.childNodes);for(let f=0,_=u.length;f<_;++f){const m=u[f];(m.nodeType!==1||m!==s)&&o.removeChild(m)}s.innerHTML="",s.appendChild(c)}mountView(n,i){this.recalc(n,i)}updateView(n,i){this.recalc(n,i)}unmountView(n){if(this.prevDOM){const i=n.firstElementChild;i&&i.replaceWith(this.prevDOM),this.prevDOM=null}}}}function Ww(e){const{target:r,hydrate:t,...n}=e,i=new Nw({target:r,props:n,hydrate:t});return{$destroy(){i.$destroy()},execAction(o){i.execAction(o)},setTheme(o){i.setTheme(o)},setData(o){i.setData(o)}}}exports.Gesture=Rw;exports.SizeProvider=zw;exports.createGlobalVariablesController=xy;exports.createVariable=fi;exports.lottieExtensionBuilder=Bw;exports.markdownExtensionBuilder=Hw;exports.render=Ww;
|
|
13
|
+
`+l+" | "+$s("",i.column-1," ")+$s("",f,"^")}else r+=`
|
|
14
|
+
at `+s}return r};po.buildMessage=function(t,r){var e={literal:function(c){return'"'+i(c.text)+'"'},class:function(c){var u=c.parts.map(function(f){return Array.isArray(f)?o(f[0])+"-"+o(f[1]):o(f)});return"["+(c.inverted?"^":"")+u.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(c){return c.description}};function n(c){return c.charCodeAt(0).toString(16).toUpperCase()}function i(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+n(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+n(u)})}function o(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+n(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+n(u)})}function s(c){return e[c.type](c)}function a(c){var u=c.map(s),f,h;if(u.sort(),u.length>0){for(f=1,h=1;f<u.length;f++)u[f-1]!==u[f]&&(u[h]=u[f],h++);u.length=h}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+i(c)+'"':"end of input"}return"Expected "+a(t)+" but "+l(r)+" found."};function Yl(t,r){r=r!==void 0?r:{};var e={},n=r.grammarSource,i={start:Rt,JsonStringContents:Mt},o=Rt,s="@{",a="}",l="@{}",c="\\",u="?",f=":",h="!:",p="||",b="&&",_="==",v="!=",w=">=",L=">",P="<=",V="<",F="+",x="-",D="/",J="*",Z="%",W="!",G=".",z="(",he=")",ye=",",Te="'",_e="e",be="E",pt=/^[^}]/,Ue=/^[^'}]/,Re=/^[0-9]/,Me=/^[a-zA-Z_]/,Ze=/^[a-zA-Z_0-9]/,et=/^[ \t\r\n]/,Q=y("@{",!1),Ee=y("}",!1),ge=y("@{}",!1),nt=y("\\",!1),Y=X(),Se=A(["}"],!0,!1),Ge=y("?",!1),ne=y(":",!1),lt=y("!:",!1),je=y("||",!1),Ie=y("&&",!1),kt=y("==",!1),Tt=y("!=",!1),te=y(">=",!1),it=y(">",!1),ut=y("<=",!1),gt=y("<",!1),qe=y("+",!1),C=y("-",!1),rt=y("/",!1),le=y("*",!1),Qe=y("%",!1),At=y("!",!1),fe=y(".",!1),pe=y("(",!1),ft=y(")",!1),$e=y(",",!1),tr=se("string"),Ot=y("'",!1),Qt=A(["'","}"],!0,!1),Oe=se("integer"),yt=A([["0","9"]],!1,!1),Jt=se("number"),Ut=y("e",!1),qt=y("E",!1),H=A([["a","z"],["A","Z"],"_"],!1,!1),ae=A([["a","z"],["A","Z"],"_",["0","9"]],!1,!1),dr=se("whitespace"),we=A([" "," ","\r",`
|
|
15
|
+
`],!1,!1),It=function(g){return g},Be=function(g){return Du(g)},vt=function(g){return g},ze=function(){return""},at=function(){return rn()},Et=function(){throw new Error("Error tokenizing '"+t+"'.")},Fe=function(){throw new Error("Error tokenizing '"+t+"'.")},dt=function(g){return g},Kt=function(g){return Tu(g)},cr=function(){throw new Error("Error tokenizing '"+t+"'.")},pr=function(g,k){return tv(g,k)},Gt=function(g,k){return rv(g,k)},ht=function(g,k){return Iu(g,k)},Dt=function(g,k){return Iu(g,k)},Nt=function(g,k){return qo(g,k)},rr=function(g,k){return qo(g,k)},ir=function(g,k){return qo(g,k)},Er=function(g,k){return qo(g,k)},zr=function(g){return g},qr=function(g){return g},Xe=function(g,k){return{type:"UnaryExpression",operator:g,argument:k}},hr=function(){throw new Error("Incorrect unary operator")},Ae=function(g,k){return nv(g,k)},K=function(g,k){return{type:"CallExpression",callee:g,arguments:k}},jr=function(g,k){return[g,...k]},Cr=function(g){return g},zt=function(g){return g},$r=function(g){return Du(g)},Ve=function(g){return g},Lt=function(){return""},_r=function(){return rn()},xe=function(){throw new Error("Error tokenizing '"+t+"'.")},Ft=function(){throw new Error("Error tokenizing '"+t+"'.")},Le=function(g){return g},mt=function(g){return Tu(g)},ct=function(){throw new Error("Error tokenizing '"+t+"'.")},Ct=function(){return{type:"IntegerLiteral",value:ov(rn())}},Xt=function(){return{type:"NumberLiteral",value:parseFloat(rn())}},T=function(){return{type:"NumberLiteral",value:parseFloat(rn())}},ot=function(){const g=rn();if(/\.\./.test(g)||/\.$/.test(g))throw new Error("Unexpected token: .");return iv(g)},de=function(){return{type:"Identifier",name:rn()}},d=0,Pe=0,jt=[{line:1,column:1}],Pr=0,fr=[],R=0,Ir;if("startRule"in r){if(!(r.startRule in i))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');o=i[r.startRule]}function rn(){return t.substring(Pe,d)}function y(g,k){return{type:"literal",text:g,ignoreCase:k}}function A(g,k,M){return{type:"class",parts:g,inverted:k,ignoreCase:M}}function X(){return{type:"any"}}function oe(){return{type:"end"}}function se(g){return{type:"other",description:g}}function Ce(g){var k=jt[g],M;if(k)return k;for(M=g-1;!jt[M];)M--;for(k=jt[M],k={line:k.line,column:k.column};M<g;)t.charCodeAt(M)===10?(k.line++,k.column=1):k.column++,M++;return jt[g]=k,k}function wt(g,k,M){var j=Ce(g),$=Ce(k),q={source:n,start:{offset:g,line:j.line,column:j.column},end:{offset:k,line:$.line,column:$.column}};return q}function O(g){d<Pr||(d>Pr&&(Pr=d,fr=[]),fr.push(g))}function Ke(g,k,M){return new po(po.buildMessage(g,k),g,k,M)}function Rt(){var g,k;return g=d,_t(),k=or(),k!==e?(_t(),Pe=g,g=It(k)):(d=g,g=e),g}function Mt(){var g,k,M;for(g=d,k=[],M=Bt();M!==e;)k.push(M),M=Bt();return Pe=g,k=Be(k),g=k,g}function Bt(){var g,k,M,j,$;if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e?(M=_t(),j=or(),j!==e?(_t(),t.charCodeAt(d)===125?($=a,d++):($=e,R===0&&O(Ee)),$!==e?(Pe=g,g=vt(j)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.substr(d,3)===l?(k=l,d+=3):(k=e,R===0&&O(ge)),k!==e&&(Pe=g,k=ze()),g=k,g===e&&(g=d,k=d,R++,t.charCodeAt(d)===92?(M=c,d++):(M=e,R===0&&O(nt)),M===e&&(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q))),R--,M===e?k=void 0:(d=k,k=e),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Pe=g,g=at()):(d=g,g=e)):(d=g,g=e),g===e))){if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e){if(M=[],pt.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Se)),j!==e)for(;j!==e;)M.push(j),pt.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Se));else M=e;M!==e?(t.charCodeAt(d)===125?(j=a,d++):(j=e,R===0&&O(Ee)),j!==e?(Pe=g,g=Et()):(d=g,g=e)):(d=g,g=e)}else d=g,g=e;g===e&&(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e&&(Pe=g,k=Fe()),g=k,g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q)),M!==e?(Pe=g,g=dt(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Pe=g,g=Kt(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e&&(Pe=g,k=cr()),g=k))))}return g}function or(){var g,k,M,j,$,q,tt,st,Dr,mr,Sr;return g=d,k=an(),k!==e?(M=d,j=_t(),t.charCodeAt(d)===63?($=u,d++):($=e,R===0&&O(Ge)),$!==e?(q=_t(),tt=or(),tt!==e?(st=_t(),t.charCodeAt(d)===58?(Dr=f,d++):(Dr=e,R===0&&O(ne)),Dr!==e?(mr=_t(),Sr=or(),Sr!==e?(j=[j,$,q,tt,st,Dr,mr,Sr],M=j):(d=M,M=e)):(d=M,M=e)):(d=M,M=e)):(d=M,M=e),M===e&&(M=null),Pe=g,g=pr(k,M)):(d=g,g=e),g}function an(){var g,k,M,j,$,q,tt;return g=d,k=Lr(),k!==e?(M=d,j=_t(),t.substr(d,2)===h?($=h,d+=2):($=e,R===0&&O(lt)),$!==e?(q=_t(),tt=or(),tt!==e?(j=[j,$,q,tt],M=j):(d=M,M=e)):(d=M,M=e),M===e&&(M=null),Pe=g,g=Gt(k,M)):(d=g,g=e),g}function Lr(){var g,k,M,j,$,q,tt,st;if(g=d,k=pn(),k!==e){for(M=[],j=d,$=_t(),t.substr(d,2)===p?(q=p,d+=2):(q=e,R===0&&O(je)),q!==e?(tt=_t(),st=pn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.substr(d,2)===p?(q=p,d+=2):(q=e,R===0&&O(je)),q!==e?(tt=_t(),st=pn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=ht(k,M)}else d=g,g=e;return g}function pn(){var g,k,M,j,$,q,tt,st;if(g=d,k=nn(),k!==e){for(M=[],j=d,$=_t(),t.substr(d,2)===b?(q=b,d+=2):(q=e,R===0&&O(Ie)),q!==e?(tt=_t(),st=nn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.substr(d,2)===b?(q=b,d+=2):(q=e,R===0&&O(Ie)),q!==e?(tt=_t(),st=nn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=Dt(k,M)}else d=g,g=e;return g}function nn(){var g,k,M,j,$,q,tt,st;if(g=d,k=Gn(),k!==e){for(M=[],j=d,$=_t(),t.substr(d,2)===_?(q=_,d+=2):(q=e,R===0&&O(kt)),q===e&&(t.substr(d,2)===v?(q=v,d+=2):(q=e,R===0&&O(Tt))),q!==e?(tt=_t(),st=Gn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.substr(d,2)===_?(q=_,d+=2):(q=e,R===0&&O(kt)),q===e&&(t.substr(d,2)===v?(q=v,d+=2):(q=e,R===0&&O(Tt))),q!==e?(tt=_t(),st=Gn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=Nt(k,M)}else d=g,g=e;return g}function Gn(){var g,k,M,j,$,q,tt,st;if(g=d,k=vn(),k!==e){for(M=[],j=d,$=_t(),t.substr(d,2)===w?(q=w,d+=2):(q=e,R===0&&O(te)),q===e&&(t.charCodeAt(d)===62?(q=L,d++):(q=e,R===0&&O(it)),q===e&&(t.substr(d,2)===P?(q=P,d+=2):(q=e,R===0&&O(ut)),q===e&&(t.charCodeAt(d)===60?(q=V,d++):(q=e,R===0&&O(gt))))),q!==e?(tt=_t(),st=vn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.substr(d,2)===w?(q=w,d+=2):(q=e,R===0&&O(te)),q===e&&(t.charCodeAt(d)===62?(q=L,d++):(q=e,R===0&&O(it)),q===e&&(t.substr(d,2)===P?(q=P,d+=2):(q=e,R===0&&O(ut)),q===e&&(t.charCodeAt(d)===60?(q=V,d++):(q=e,R===0&&O(gt))))),q!==e?(tt=_t(),st=vn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=rr(k,M)}else d=g,g=e;return g}function vn(){var g,k,M,j,$,q,tt,st;if(g=d,k=on(),k!==e){for(M=[],j=d,$=_t(),t.charCodeAt(d)===43?(q=F,d++):(q=e,R===0&&O(qe)),q===e&&(t.charCodeAt(d)===45?(q=x,d++):(q=e,R===0&&O(C))),q!==e?(tt=_t(),st=on(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.charCodeAt(d)===43?(q=F,d++):(q=e,R===0&&O(qe)),q===e&&(t.charCodeAt(d)===45?(q=x,d++):(q=e,R===0&&O(C))),q!==e?(tt=_t(),st=on(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=ir(k,M)}else d=g,g=e;return g}function on(){var g,k,M,j,$,q,tt,st;if(g=d,k=mn(),k!==e){for(M=[],j=d,$=_t(),t.charCodeAt(d)===47?(q=D,d++):(q=e,R===0&&O(rt)),q===e&&(t.charCodeAt(d)===42?(q=J,d++):(q=e,R===0&&O(le)),q===e&&(t.charCodeAt(d)===37?(q=Z,d++):(q=e,R===0&&O(Qe)))),q!==e?(tt=_t(),st=mn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.charCodeAt(d)===47?(q=D,d++):(q=e,R===0&&O(rt)),q===e&&(t.charCodeAt(d)===42?(q=J,d++):(q=e,R===0&&O(le)),q===e&&(t.charCodeAt(d)===37?(q=Z,d++):(q=e,R===0&&O(Qe)))),q!==e?(tt=_t(),st=mn(),st!==e?($=[$,q,tt,st],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=Er(k,M)}else d=g,g=e;return g}function mn(){var g,k,M,j;return g=d,k=d,R++,t.charCodeAt(d)===45?(M=x,d++):(M=e,R===0&&O(C)),R--,M!==e?(d=k,k=void 0):k=e,k!==e?(M=Hi(),M!==e?(Pe=g,g=zr(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,k=d,R++,t.charCodeAt(d)===45?(M=x,d++):(M=e,R===0&&O(C)),R--,M!==e?(d=k,k=void 0):k=e,k!==e?(M=$n(),M!==e?(Pe=g,g=qr(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===33?(k=W,d++):(k=e,R===0&&O(At)),k===e&&(t.charCodeAt(d)===43?(k=F,d++):(k=e,R===0&&O(qe)),k===e&&(t.charCodeAt(d)===45?(k=x,d++):(k=e,R===0&&O(C)))),k!==e?(M=_t(),j=Yn(),j===e&&(j=Qn()),j!==e?(Pe=g,g=Xe(k,j)):(d=g,g=e)):(d=g,g=e),g===e&&(g=Qn()))),g}function Yn(){var g,k;return g=d,t.charCodeAt(d)===43?(k=F,d++):(k=e,R===0&&O(qe)),k===e&&(t.charCodeAt(d)===45?(k=x,d++):(k=e,R===0&&O(C))),k!==e&&(Pe=g,k=hr()),g=k,g}function Qn(){var g,k,M,j,$,q,tt,st,Dr,mr,Sr,li,ce,er,br;if(g=d,k=Vn(),k!==e){for(M=[],j=d,$=_t(),t.charCodeAt(d)===46?(q=G,d++):(q=e,R===0&&O(fe)),q!==e?(tt=_t(),st=On(),st!==e?(Dr=_t(),mr=d,t.charCodeAt(d)===40?(Sr=z,d++):(Sr=e,R===0&&O(pe)),Sr!==e?(li=_t(),ce=Jn(),ce!==e?(er=_t(),t.charCodeAt(d)===41?(br=he,d++):(br=e,R===0&&O(ft)),br!==e?(Sr=[Sr,li,ce,er,br],mr=Sr):(d=mr,mr=e)):(d=mr,mr=e)):(d=mr,mr=e),mr===e&&(mr=null),$=[$,q,tt,st,Dr,mr],j=$):(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,$=_t(),t.charCodeAt(d)===46?(q=G,d++):(q=e,R===0&&O(fe)),q!==e?(tt=_t(),st=On(),st!==e?(Dr=_t(),mr=d,t.charCodeAt(d)===40?(Sr=z,d++):(Sr=e,R===0&&O(pe)),Sr!==e?(li=_t(),ce=Jn(),ce!==e?(er=_t(),t.charCodeAt(d)===41?(br=he,d++):(br=e,R===0&&O(ft)),br!==e?(Sr=[Sr,li,ce,er,br],mr=Sr):(d=mr,mr=e)):(d=mr,mr=e)):(d=mr,mr=e),mr===e&&(mr=null),$=[$,q,tt,st,Dr,mr],j=$):(d=j,j=e)):(d=j,j=e);Pe=g,g=Ae(k,M)}else d=g,g=e;return g}function Vn(){var g,k,M,j,$;return g=d,k=On(),k!==e?(_t(),t.charCodeAt(d)===40?(M=z,d++):(M=e,R===0&&O(pe)),M!==e?(_t(),j=Jn(),j!==e?(_t(),t.charCodeAt(d)===41?($=he,d++):($=e,R===0&&O(ft)),$!==e?(Pe=g,g=K(k,j)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e),g===e&&(g=xn()),g}function Jn(){var g,k,M,j,$,q;if(g=d,k=or(),k!==e){for(M=[],j=d,_t(),t.charCodeAt(d)===44?($=ye,d++):($=e,R===0&&O($e)),$!==e?(_t(),q=or(),q!==e?j=q:(d=j,j=e)):(d=j,j=e);j!==e;)M.push(j),j=d,_t(),t.charCodeAt(d)===44?($=ye,d++):($=e,R===0&&O($e)),$!==e?(_t(),q=or(),q!==e?j=q:(d=j,j=e)):(d=j,j=e);Pe=g,g=jr(k,M)}else d=g,g=e;return g===e&&(g=_t()),g}function xn(){var g,k,M,j;return g=si(),g===e&&(g=_n(),g===e&&(g=Hi(),g===e&&(g=$n(),g===e&&(g=d,t.charCodeAt(d)===40?(k=z,d++):(k=e,R===0&&O(pe)),k!==e?(_t(),M=or(),M!==e?(_t(),t.charCodeAt(d)===41?(j=he,d++):(j=e,R===0&&O(ft)),j!==e?(Pe=g,g=Cr(M)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e))))),g}function _n(){var g,k,M,j;return R++,g=d,t.charCodeAt(d)===39?(k=Te,d++):(k=e,R===0&&O(Ot)),k!==e?(M=Di(),t.charCodeAt(d)===39?(j=Te,d++):(j=e,R===0&&O(Ot)),j!==e?(Pe=g,g=zt(M)):(d=g,g=e)):(d=g,g=e),R--,g===e&&(k=e,R===0&&O(tr)),g}function Di(){var g,k,M;for(g=d,k=[],M=Ti();M!==e;)k.push(M),M=Ti();return Pe=g,k=$r(k),g=k,g}function Ti(){var g,k,M,j,$;if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e?(M=_t(),j=or(),j!==e?(_t(),t.charCodeAt(d)===125?($=a,d++):($=e,R===0&&O(Ee)),$!==e?(Pe=g,g=Ve(j)):(d=g,g=e)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.substr(d,3)===l?(k=l,d+=3):(k=e,R===0&&O(ge)),k!==e&&(Pe=g,k=Lt()),g=k,g===e&&(g=d,k=d,R++,t.charCodeAt(d)===92?(M=c,d++):(M=e,R===0&&O(nt)),M===e&&(t.charCodeAt(d)===39?(M=Te,d++):(M=e,R===0&&O(Ot)),M===e&&(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q)))),R--,M===e?k=void 0:(d=k,k=e),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Pe=g,g=_r()):(d=g,g=e)):(d=g,g=e),g===e))){if(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e){if(M=[],Ue.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Qt)),j!==e)for(;j!==e;)M.push(j),Ue.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(Qt));else M=e;M!==e?(t.charCodeAt(d)===125?(j=a,d++):(j=e,R===0&&O(Ee)),j!==e?(Pe=g,g=xe()):(d=g,g=e)):(d=g,g=e)}else d=g,g=e;g===e&&(g=d,t.substr(d,2)===s?(k=s,d+=2):(k=e,R===0&&O(Q)),k!==e&&(Pe=g,k=Ft()),g=k,g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.substr(d,2)===s?(M=s,d+=2):(M=e,R===0&&O(Q)),M!==e?(Pe=g,g=Le(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e?(t.length>d?(M=t.charAt(d),d++):(M=e,R===0&&O(Y)),M!==e?(Pe=g,g=mt(M)):(d=g,g=e)):(d=g,g=e),g===e&&(g=d,t.charCodeAt(d)===92?(k=c,d++):(k=e,R===0&&O(nt)),k!==e&&(Pe=g,k=ct()),g=k))))}return g}function $n(){var g,k,M;if(R++,g=d,t.charCodeAt(d)===45?d++:R===0&&O(C),k=[],Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt)),M!==e)for(;M!==e;)k.push(M),Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));else k=e;return k!==e?(Pe=g,g=Ct()):(d=g,g=e),R--,g===e&&R===0&&O(Oe),g}function Hi(){var g,k,M,j,$,q,tt,st,Dr;for(R++,g=d,t.charCodeAt(d)===45?d++:R===0&&O(C),k=[],Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));M!==e;)k.push(M),Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));if(t.charCodeAt(d)===46?(M=G,d++):(M=e,R===0&&O(fe)),M!==e){if(j=[],Re.test(t.charAt(d))?($=t.charAt(d),d++):($=e,R===0&&O(yt)),$!==e)for(;$!==e;)j.push($),Re.test(t.charAt(d))?($=t.charAt(d),d++):($=e,R===0&&O(yt));else j=e;if(j!==e){if($=d,t.charCodeAt(d)===101?(q=_e,d++):(q=e,R===0&&O(Ut)),q===e&&(t.charCodeAt(d)===69?(q=be,d++):(q=e,R===0&&O(qt))),q!==e){if(t.charCodeAt(d)===43?(tt=F,d++):(tt=e,R===0&&O(qe)),tt===e&&(t.charCodeAt(d)===45?(tt=x,d++):(tt=e,R===0&&O(C))),tt===e&&(tt=null),st=[],Re.test(t.charAt(d))?(Dr=t.charAt(d),d++):(Dr=e,R===0&&O(yt)),Dr!==e)for(;Dr!==e;)st.push(Dr),Re.test(t.charAt(d))?(Dr=t.charAt(d),d++):(Dr=e,R===0&&O(yt));else st=e;st!==e?(q=[q,tt,st],$=q):(d=$,$=e)}else d=$,$=e;$===e&&($=null),Pe=g,g=Xt()}else d=g,g=e}else d=g,g=e;if(g===e){if(g=d,t.charCodeAt(d)===45?d++:R===0&&O(C),k=[],Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt)),M!==e)for(;M!==e;)k.push(M),Re.test(t.charAt(d))?(M=t.charAt(d),d++):(M=e,R===0&&O(yt));else k=e;if(k!==e)if(t.charCodeAt(d)===101?(M=_e,d++):(M=e,R===0&&O(Ut)),M===e&&(t.charCodeAt(d)===69?(M=be,d++):(M=e,R===0&&O(qt))),M!==e){if(t.charCodeAt(d)===43?(j=F,d++):(j=e,R===0&&O(qe)),j===e&&(t.charCodeAt(d)===45?(j=x,d++):(j=e,R===0&&O(C))),j===e&&(j=null),$=[],Re.test(t.charAt(d))?(q=t.charAt(d),d++):(q=e,R===0&&O(yt)),q!==e)for(;q!==e;)$.push(q),Re.test(t.charAt(d))?(q=t.charAt(d),d++):(q=e,R===0&&O(yt));else $=e;$!==e?(Pe=g,g=T()):(d=g,g=e)}else d=g,g=e;else d=g,g=e}return R--,g===e&&R===0&&O(Jt),g}function si(){var g,k,M,j,$,q,tt,st,Dr,mr,Sr;if(g=d,Me.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(H)),k!==e){if(M=[],j=[],Ze.test(t.charAt(d))?($=t.charAt(d),d++):($=e,R===0&&O(ae)),$!==e)for(;$!==e;)j.push($),Ze.test(t.charAt(d))?($=t.charAt(d),d++):($=e,R===0&&O(ae));else j=e;for(j===e&&(j=d,t.charCodeAt(d)===46?($=G,d++):($=e,R===0&&O(fe)),$!==e?(q=d,R++,tt=d,st=_t(),Dr=On(),Dr!==e?(mr=_t(),t.charCodeAt(d)===40?(Sr=z,d++):(Sr=e,R===0&&O(pe)),Sr!==e?(st=[st,Dr,mr,Sr],tt=st):(d=tt,tt=e)):(d=tt,tt=e),R--,tt===e?q=void 0:(d=q,q=e),q!==e?($=[$,q],j=$):(d=j,j=e)):(d=j,j=e));j!==e;){if(M.push(j),j=[],Ze.test(t.charAt(d))?($=t.charAt(d),d++):($=e,R===0&&O(ae)),$!==e)for(;$!==e;)j.push($),Ze.test(t.charAt(d))?($=t.charAt(d),d++):($=e,R===0&&O(ae));else j=e;j===e&&(j=d,t.charCodeAt(d)===46?($=G,d++):($=e,R===0&&O(fe)),$!==e?(q=d,R++,tt=d,st=_t(),Dr=On(),Dr!==e?(mr=_t(),t.charCodeAt(d)===40?(Sr=z,d++):(Sr=e,R===0&&O(pe)),Sr!==e?(st=[st,Dr,mr,Sr],tt=st):(d=tt,tt=e)):(d=tt,tt=e),R--,tt===e?q=void 0:(d=q,q=e),q!==e?($=[$,q],j=$):(d=j,j=e)):(d=j,j=e))}Pe=g,g=ot()}else d=g,g=e;return g}function On(){var g,k,M,j;if(g=d,Me.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(H)),k!==e){for(M=[],Ze.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(ae));j!==e;)M.push(j),Ze.test(t.charAt(d))?(j=t.charAt(d),d++):(j=e,R===0&&O(ae));Pe=g,g=de()}else d=g,g=e;return g}function _t(){var g,k;for(R++,g=[],et.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(we));k!==e;)g.push(k),et.test(t.charAt(d))?(k=t.charAt(d),d++):(k=e,R===0&&O(we));return R--,k=e,R===0&&O(dr),g}if(Ir=o(),Ir!==e&&d===t.length)return Ir;throw Ir!==e&&d<t.length&&O(oe()),Ke(fr,Pr<t.length?t.charAt(Pr):null,Pr<t.length?wt(Pr,Pr+1):wt(Pr,Pr))}const lv=128,co=new Map;let Fu;function $f(t){return co.get(t)}function ed(t,r){t!==Fu&&(co.delete(t),co.size>=lv&&co.delete(co.keys().next().value),co.set(t,r),Fu=t)}const Mu=new Set(["string","integer","number","boolean","datetime","color","url","dict","array"]);function av(t){if(!(typeof t.name=="string"&&t.name))throw new Error("Incorrect function name");if(!(typeof t.body=="string"&&t.body))throw new Error("Incorrect function body");if(!(t.return_type&&Mu.has(t.return_type)))throw new Error("Incorrect function return_type");if(!Array.isArray(t.arguments))throw new Error("Incorrect function arguments");const r=new Set;t.arguments.forEach(e=>{if(!(typeof e.name=="string"&&e.name))throw new Error("Incorrect argument name");if(!(e.type&&Mu.has(e.type)))throw new Error("Incorrect argument type");if(r.has(e.name))throw new Error("Duplicate argument name");r.add(e.name)})}function cv(t){let r;return{args:t.arguments.map(e=>({type:e.type})),cb(e,...n){r||(r=$f(t.body)||Yl(t.body,{startRule:"JsonStringContents"}),ed(t.body,r));const i=new Map;n.forEach((a,l)=>{const c=al(t.arguments[l].name,a.type,a.value);i.set(c.getName(),c)});const o=Cs(i,e.customFunctions,e.store,r,{weekStartDay:e.weekStartDay});o.warnings.forEach(a=>{e.warnings.push(a)});const s=o.result;if(s.type==="error")throw new Error(s.value);if(s.type!==t.return_type)throw new Error("Incorrect function return_type");return s}}}function uv(t,r){if(!t)return r||void 0;if(!r)return;const e=new Map,n=new Set;for(const[i,o]of r){for(const s of o){const a=tu(i,s);n.add(a)}e.set(i,o)}for(const[i,o]of t)for(const s of o){const a=tu(i,s);if(!n.has(a)){n.add(a);const l=e.get(i)||[];l.push(s),e.set(i,l)}}return e}function fv(t){if(!t)return ee(new Error("Missing object"));const r=t.card,e=t.templates||{};if(!r)return ee(new Error("Missing card"));if(!r.states||!r.states.length)return ee(new Error("Missing states"));for(const n in e)if(e.hasOwnProperty(n)&&n in Uf)return ee(new Error("Template name collision"),{additional:{templateName:n}});for(let n=0;n<r.states.length;++n){if(!r.states[n].div)return ee(new Error("Missing state div"),{additional:{stateId:r.states[n].state_id}});if(typeof r.states[n].state_id!="number")return ee(new Error("Missing state_id"),{additional:{index:n}})}return null}function dv(t){return[...new Set(t)]}class td{constructor(r){ur(this,"ast");this.ast=r}apply({variables:r,customFunctions:e,logError:n,store:i,weekStartDay:o,keepComplex:s}){try{const a=Cs(r,e,i,this.ast,{weekStartDay:o});a.warnings.forEach(n);const l=a.result;if(l.type==="error"){n(ee(new Error("Expression execution error"),{additional:{message:l.value}}));return}const c=l.value;if(c instanceof Date)return Gf(c);if(l.type==="boolean")return!!c;if(l.type==="color"){const u=Si(String(c));if(u)return no(u);n(ee(new Error("Expression execution error")))}if(l.type==="integer"){if(c>y1||c<v1){n(ee(new Error("Expression result is out of 32-bit int range")));return}return Number(c)}if(!s&&(l.type==="array"||l.type==="dict"))try{return JSON.stringify(c)}catch{return n(ee(new Error(`Failed to stringify ${l.type}`))),`<${l.type}>`}return c}catch{n(ee(new Error("Expression execution error")));return}}}function hv(t){return t.indexOf("@{")>-1||t.indexOf("\\")>-1}function wl(t,r,e){if(t)if(typeof t=="string"){if(hv(t)){r.hasExpression=!0;try{const n=$f(t)||Yl(t,{startRule:"JsonStringContents"});ed(t,n);const i=Yf(n);return r.vars.push(...i),new td(n)}catch{e(ee(new Error("Unable to parse expression"),{additional:{expression:t}}));return}}}else{if(Array.isArray(t))return t.map(n=>wl(n,r,e));if(typeof t=="object"){const n={};for(const i in t)n[i]=wl(t[i],r,e);return n}}return t}function kl(t,r){if(t){if(t instanceof td)return t.apply(r);if(Array.isArray(t))return t.map(e=>kl(e,r));if(typeof t=="object"){const e={};for(const n in t)e[n]=kl(t[n],r);return e}}return t}function Pu(t,r,e,n){const i={vars:[],hasExpression:!1},o=wl(t,i,r);return{vars:dv(i.vars),hasExpression:i.hasExpression,applyVars(a,l,c){return kl(o,{variables:a,customFunctions:l,logError:r,store:e,weekStartDay:n,keepComplex:c})}}}function _v(){return hi(new Map)}const gv={pagers:_v},ds=new Map,hs=new Map;function rd(t){const r=ds.get(t)||hi("");return ds.has(t)||ds.set(t,r),r}function pv(t){ds.delete(t),hs.delete(t)}function _s(t){const r=hs.get(t)||new Map;return hs.has(t)||hs.set(t,r),r}class nd{setVariable(r){const e=r.getName(),n=_s(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,r),rd(this).set(e)}getVariable(r){return _s(this).get(r)}list(){return _s(this).values()}}function mv(){return new nd}const bv=["start","stop","pause","resume","cancel","reset"],yv=new Set(bv);class vv{constructor(r){ur(this,"timers",new Map);ur(this,"logError");ur(this,"applyVars");ur(this,"hasVariableWithType");ur(this,"setVariableValue");ur(this,"execAnyActions");ur(this,"visibilityHandler");ur(this,"awaitActions",[]);this.logError=r.logError,this.applyVars=r.applyVars,this.hasVariableWithType=r.hasVariableWithType,this.setVariableValue=r.setVariableValue,this.execAnyActions=r.execAnyActions,this.visibilityHandler=()=>{document.visibilityState==="visible"?(this.awaitActions.forEach(({id:e,action:n})=>{this.execTimerAction(e,n)}),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[r,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(r){if(!(r!=null&&r.id)){this.logError(ee(new Error("Missing timer id")));return}if(!(r.duration||r.tick_interval&&(r.value_variable||r.tick_actions))){this.logError(ee(new Error("Misconfigured timer"),{additional:{id:r.id}}));return}this.timers.set(r.id,{state:"stopped",definition:r})}execTimerAction(r,e){if(!r||!e||!this.timers.has(r)||!yv.has(e)){this.logError(ee(new Error("Incorrect timer action"),{additional:{id:r,action:e}}));return}const n=e;if(document.visibilityState!=="visible"){this.awaitActions.push({id:r,action:n});return}const i=this.timers.get(r);this[n](i)}stopTimerTimeouts(r){r.durationTimeout&&(clearTimeout(r.durationTimeout),r.durationTimeout=void 0),r.tickTimeout&&(clearTimeout(r.tickTimeout),r.tickTimeout=void 0)}async tickOrUnholdAction(r){const e=performance.now(),n=(r.durationPassed||0)+e-(r.durationStarted||0);r.duration&&n>r.duration||(this.updateVariable(r,n),await this.callActions(r,"tick"),r.tickCount!==void 0&&++r.tickCount)}startOrResume(r){r.state="running",r.hold=!1,r.durationStarted=performance.now();const e=r.duration;e&&(r.durationTimeout=window.setTimeout(async()=>{this.updateVariable(r,e),r.tickCountPredict&&r.tickCount!==void 0&&r.tickCount<r.tickCountPredict&&await this.callActions(r,"tick"),this.stop(r)},Math.max(0,e-(r.durationPassed||0))));const n=r.tick;if(n){const i=()=>{const o=r.tickStarted=performance.now(),s=Math.max(0,n-(r.tickPassed||0));r.tickTimeout=window.setTimeout(async()=>{await this.tickOrUnholdAction(r),r.tickPassed=(performance.now()-o-s)%n,r.state==="running"&&i()},s)};i()}}start(r){if(r.state==="running"){this.logError(ee(new Error("The timer is already running")));return}else if(r.state==="paused"){this.logError(ee(new Error("The timer is paused")));return}const e=r.definition.value_variable;if(e&&!this.hasVariableWithType(e,"integer")){this.logError(ee(new Error("Cannot find variable"),{additional:{name:e}}));return}if(e&&this.setVariableValue(e,0),r.definition.duration&&(r.duration=this.applyVars(r.definition.duration)),r.definition.tick_interval&&(r.tick=this.applyVars(r.definition.tick_interval)),r.duration!==void 0&&r.duration<0||r.tick!==void 0&&r.tick<=0){this.logError(ee(new Error("Incorrect timer properties"),{additional:{id:r.definition.id}}));return}r.duration!==void 0&&r.tick!==void 0&&(r.tickCount=0,r.tickCountPredict=Math.floor(r.duration/r.tick)),this.startOrResume(r)}stop(r){if(r.state==="stopped"){this.logError(ee(new Error("The timer has already been stopped")));return}r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r),this.callActions(r,"end")}pause(r){if(r.state==="stopped"){this.logError(ee(new Error("The timer has already been stopped")));return}else if(r.state==="paused"){this.logError(ee(new Error("The timer has already been paused")));return}r.state="paused",this.stopTimerTimeouts(r);const e=performance.now();r.durationStarted&&(r.durationPassed=(r.durationPassed||0)+e-r.durationStarted),r.tickStarted&&(r.tickPassed=(r.tickPassed||0)+e-r.tickStarted);const n=r.definition.value_variable;n&&r.durationPassed&&this.setVariableValue(n,Math.round(r.durationPassed))}resume(r){if(r.state==="stopped"){this.logError(ee(new Error("The timer has already been stopped")));return}else if(r.state==="running"){this.logError(ee(new Error("The timer is already running")));return}this.startOrResume(r)}cancel(r){r.state!=="stopped"&&(r.state="stopped",r.durationPassed=0,r.tickPassed=0,this.stopTimerTimeouts(r))}reset(r){this.cancel(r),this.start(r)}updateVariable(r,e){const n=r.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(r,e){const n=r.definition[e==="end"?"end_actions":"tick_actions"];if(n){const i=this.applyVars(n);return this.execAnyActions(i,{processUrls:!1})}}holdAll(){for(const[r,e]of this.timers)e.state==="running"&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[r,e]of this.timers)if(e.state==="running"&&e.hold){const n=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+n-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+n-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function wv(t,r,e,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"&&o!==void 0){e(ee(new Error("Incorrect array_insert_value action"),{additional:{name:i}}));return}Jl(t,r,e,n,a=>{const l=a.getValue();if(typeof o=="number"&&(o<0||o>l.length))e(ee(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:l.length}}));else{const c=l.slice();typeof o=="number"?c.splice(o,0,s.value):c.push(s.value),a.setValue(c)}})}function kv(t,r,e,n){const{variable_name:i,index:o}=n;if(typeof o!="number"){e(ee(new Error("Incorrect array_remove_value action"),{additional:{name:i}}));return}Jl(t,r,e,n,s=>{const a=s.getValue();if(typeof o=="number"&&(o<0||o>=a.length))e(ee(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:a.length}}));else{const l=a.slice();l.splice(o,1),s.setValue(l)}})}function Av(t,r,e,n){const{variable_name:i,index:o,value:s}=n;if(!s||typeof o!="number"){e(ee(new Error("Incorrect array_set_value action"),{additional:{name:i}}));return}Jl(t,r,e,n,a=>{const l=a.getValue();if(typeof o=="number"&&(o<0||o>=l.length))e(ee(new Error(`Index out of bound for mutation ${n.type}`),{additional:{name:i,index:o,length:l.length}}));else{const c=l.slice();c[o]=s.value,a.setValue(c)}})}function Jl(t,r,e,n,i){const{variable_name:o}=n;if(!o){e(ee(new Error(`Incorrect ${n.type} action`),{additional:{name:o}}));return}const s=(t==null?void 0:t.getVariable(o))||r.get(o);if(!s){e(ee(new Error("Cannot find variable"),{additional:{name:o}}));return}const a=s.getType();a==="array"?i(s):e(ee(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}function Ev(t,r,e,n){const{variable_name:i,key:o,value:s}=n;if(typeof o!="string"){e(ee(new Error("Incorrect dict_set_value action"),{additional:{name:i}}));return}if(!i){e(ee(new Error(`Incorrect ${n.type} action`),{additional:{name:i}}));return}const a=(t==null?void 0:t.getVariable(i))||r.get(i);if(!a){e(ee(new Error("Cannot find variable"),{additional:{name:i}}));return}const l=a.getType();if(l==="dict"){const u={...a.getValue()};s?u[o]=s.value:delete u[o],a.setValue(u)}else e(ee(new Error("Trying to set value into the non-dict"),{additional:{name:i,type:l}}))}function jv(t,r){if(!(r.content&&(r.content.type==="text"||r.content.type==="url")&&typeof r.content.value=="string")){t(ee(new Error("Incorrect action"),{additional:{action:r}}));return}if(!(typeof navigator<"u"&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&typeof navigator.clipboard.writeText=="function")){t(ee(new Error("Clipboard is unavailable"),{additional:{action:r}}));return}navigator.clipboard.writeText(r.content.value).catch(e=>{t(ee(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})}function Cv(t){if(t==="normal"||t==="reverse"||t==="alternate"||t==="alternate_reverse")return t}function Sv(t,r,e,n){var P,V,F,x;const i=Kn(t.duration,0);if(!i||t.type!=="color_animator"&&t.type!=="number_animator")return;const o=(P=t.start_value_typed?t.start_value_typed.value:t.start_value)!=null?P:r.getValue(),s=t.end_value_typed?t.end_value_typed.value:t.end_value;if(o===void 0||s===void 0||t.type==="color_animator"&&(typeof o!="string"&&o!==void 0||typeof s!="string")||t.type==="number_animator"&&(typeof o!="number"&&o!==void 0||typeof s!="number"))return;const a=t.type==="color_animator"&&Si(o),l=t.type==="color_animator"&&Si(s);if(t.type==="color_animator"&&(!a||!l))return;const c=Xr(t.start_delay,0),u=Bl(t.interpolator||"linear"),f=Cv(t.direction)||"normal",h=((V=t.repeat_count)==null?void 0:V.type)==="infinity"?1/0:((F=t.repeat_count)==null?void 0:F.type)==="fixed"?Xr((x=t.repeat_count)==null?void 0:x.value,1):1;let p=0,b=performance.now();const _=h===1/0?1/0:h*i+c;function v(D){if(t.type==="color_animator"){if(!a||!l)throw new Error("Missing start/end value");return no({a:Ci(ji(a.a,l.a,D),0,255),r:Ci(ji(a.r,l.r,D),0,255),g:Ci(ji(a.g,l.g,D),0,255),b:Ci(ji(a.b,l.b,D),0,255)})}return ji(o,s,D)}function w(D){const J=D-b;if(b=D,p+=J,p>=c){let Z=Math.floor((p-c)/i),W=(p-c-Z*i)/i;Z>=h&&(Z=h-1,W=1);let G;f==="normal"||f==="alternate"&&Z%2===0||f==="alternate_reverse"&&Z%2===1?G="normal":G="reverse",G==="reverse"&&(W=1-W);const z=v(u(W));r.setValue(z)}p<_?L=requestAnimationFrame(w):(e(),n(t.end_actions))}let L=requestAnimationFrame(w);return{stop(){cancelAnimationFrame(L),n(t.cancel_actions),n(t.end_actions)}}}function Vv(t){let r=t;for(;r&&!r.isTooltipRoot;)r=r.parent;return r}function Nu(t){let r=t;for(;r!=null&&r.parent&&r.json.type!=="state"&&!r.isRootState&&!r.isTooltipRoot;)r=r.parent;return r}const Iv="divkit-bf0ea",Dv="divkit-27458",Tv="undefined",Fv="divkit-e2fee",Mv="divkit-04d22",Pv="divkit-00335",Al={outer:Iv,root__clickable:Dv,"root__clickable-no-transition":"divkit-3bb57",root__selectable:Tv,tooltip:Fv,tooltip_visible:Mv,tooltip__overlay:Pv},id=300,od=0;function Nv(t){return Math.max(...t.map(r=>(Number(r.duration)||id)+(Number(r.start_delay)||od)))}function Ou(t,{animations:r,direction:e}){if(!r)return{};const n=Ml(r),i=Nv(n);return n.some(s=>s.name==="no_animation")?{}:{duration:zs()?0:i,css:s=>{const a=s*i,l=n.map(_=>{var F,x,D,J,Z,W;const v=Number(_.start_delay)||od,w=Number(_.duration)||id,L=Math.max(0,Math.min(1,(a-v)/w)),V=(Bl(_.interpolator||"ease_in_out")||Bs)(L);if(_.name==="fade"){const G=e==="in"&&(F=_.start_value)!=null?F:0,z=e==="in"?1:(x=_.end_value)!=null?x:1;return{active:V>0&&V<1,opacity:(1-V)*G+V*z}}else if(_.name==="translate"){const G=-(e==="in"&&(D=_.start_value)!=null?D:10),z=-(e==="in"?0:(J=_.end_value)!=null?J:0);return{active:V>0&&V<1,translate:`translateY(${(1-V)*G+V*z}${e==="in"&&_.start_value!==void 0||e==="out"&&_.end_value!==void 0?"%":"px"})`}}else if(_.name==="scale"){const G=e==="in"&&(Z=_.start_value)!=null?Z:0,z=e==="in"?1:(W=_.end_value)!=null?W:1;return{active:V>0&&V<1,scale:`scale(${(1-V)*G+V*z})`}}return{}}),c=l.map(_=>_.opacity).filter(_=>_!==void 0).reduce((_,v)=>_*v,1),u=l.map(_=>_.translate).filter(_=>_!==void 0).join(" "),f=l.map(_=>_.scale).filter(_=>_!==void 0).join(" "),h=l.filter(_=>_.active).map(_=>_.scale).filter(_=>_!==void 0),p=h.length?h[h.length-1]:f;return`transform:${[u,p].filter(Boolean).join(" ")||"none"};opacity:${c}`}}}const{window:zu}=bi;function Lu(t){let r,e,n;return{c(){r=He("div"),this.h()},l(i){r=Je(i,"DIV",{class:!0}),De(r).forEach(E),this.h()},h(){m(r,"class",Al.tooltip__overlay)},m(i,o){ie(i,r,o),e||(n=Ye(r,"click",t[17]),e=!0)},p:S,d(i){i&&E(r),e=!1,n()}}}function Ov(t){let r,e,n,i,o,s,a,l,c,u=t[0]&&Lu(t);return n=new oi({props:{componentContext:t[1]}}),{c(){u&&u.c(),r=yr(),e=He("div"),Yt(n.$$.fragment),this.h()},l(f){u&&u.l(f),r=vr(f),e=Je(f,"DIV",{class:!0});var h=De(e);Zt(n.$$.fragment,h),h.forEach(E),this.h()},h(){m(e,"class",i=bt("tooltip",Al,t[7])+" "+(t[13]?nr.root_platform_desktop:"")),B(e,"top",t[4]),B(e,"left",t[3]),B(e,"width",t[5]),B(e,"height",t[6])},m(f,h){u&&u.m(f,h),ie(f,r,h),ie(f,e,h),Ht(n,e,null),t[23](e),a=!0,l||(c=[Ye(zu,"click",t[17]),Ye(zu,"resize",t[18])],l=!0)},p(f,[h]){t=f,t[0]?u?u.p(t,h):(u=Lu(t),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null);const p={};h&2&&(p.componentContext=t[1]),n.$set(p),(!a||h&8320&&i!==(i=bt("tooltip",Al,t[7])+" "+(t[13]?nr.root_platform_desktop:"")))&&m(e,"class",i),h&16&&B(e,"top",t[4]),h&8&&B(e,"left",t[3]),h&32&&B(e,"width",t[5]),h&64&&B(e,"height",t[6])},i(f){a||(U(n.$$.fragment,f),f&&Un(()=>{a&&(s&&s.end(1),o=Il(e,Ou,{animations:t[14]||Ru,direction:"in"}),o.start())}),a=!0)},o(f){re(n.$$.fragment,f),o&&o.invalidate(),f&&(s=Ld(e,Ou,{animations:t[15]||Ru,direction:"out"})),a=!1},d(f){f&&(E(r),E(e)),u&&u.d(f),Wt(n),t[23](null),f&&s&&s.end(),l=!1,Jr(c)}}}const Ru={name:"set",items:[{name:"translate"},{name:"fade"}]};function zv(t,r,e){let n,i,o,s,a,l,c,u=S,f=()=>(u(),u=N(o,Y=>e(25,c=Y)),o),h,p=S,b=()=>(p(),p=N(i,Y=>e(26,h=Y)),i),_,v=S,w=()=>(v(),v=N(n,Y=>e(27,_=Y)),n),L,P,V=S,F=()=>(V(),V=N(s,Y=>e(14,P=Y)),s),x,D=S,J=()=>(D(),D=N(a,Y=>e(15,x=Y)),a);t.$$.on_destroy.push(()=>u()),t.$$.on_destroy.push(()=>p()),t.$$.on_destroy.push(()=>v()),t.$$.on_destroy.push(()=>V()),t.$$.on_destroy.push(()=>D());let{ownerNode:Z}=r,{data:W}=r,{internalId:G}=r,{parentComponentContext:z}=r;const he=Yr(tn),ye=he.isDesktop;un(t,ye,Y=>e(13,L=Y));const Te=Date.now();let _e,be=!1,pt="",Ue="",Re="",Me="",Ze=null,et;function Q(){var qe,C;if(!_e||!Z)return;const Y=_e.parentElement;if(!Y)return;const Se=_e.style.cssText;e(2,_e.style.cssText+=";transform: none !important",_e);const Ge=Z.getBoundingClientRect(),ne=_e.getBoundingClientRect(),lt=Y.getBoundingClientRect();e(2,_e.style.cssText=Se,_e);let je=0,Ie=0,kt=null,Tt=null,te=0,it=0;const ut=z.getJsonWithVars((qe=W.div)==null?void 0:qe.width),gt=z.getJsonWithVars((C=W.div)==null?void 0:C.width);if(!ut||ut.type==="match_parent"?te=kt=window.innerWidth:ut.type==="fixed"&&ut.value?te=kt=ut.value:te=ne.width,(gt==null?void 0:gt.type)==="match_parent"?it=Tt=window.innerHeight:(gt==null?void 0:gt.type)==="fixed"&>.value?it=Tt=gt.value:it=ne.height,_==="left"||_==="bottom-left"||_==="top-left")je=Ge.left-te;else if(_==="top"||_==="bottom"||_==="center")je=(Ge.left+Ge.right)/2-te/2;else if(_==="right"||_==="bottom-right"||_==="top-right")je=Ge.right;else return;if(_==="top"||_==="top-left"||_==="top-right")Ie=Ge.top-it;else if(_==="left"||_==="right"||_==="center")Ie=(Ge.top+Ge.bottom)/2-it/2;else if(_==="bottom-left"||_==="bottom"||_==="bottom-right")Ie=Ge.bottom;else return;je-=lt.left,Ie-=lt.top,je+=h||0,Ie+=c||0,e(3,pt=`${je}px`),e(4,Ue=`${Ie}px`),e(5,Re=kt!==null?`${kt}px`:""),e(6,Me=Tt!==null?`${Tt}px`:""),e(0,be=!0),kt===null||Tt===null?typeof ResizeObserver<"u"&&!Ze&&(Ze=new ResizeObserver(()=>{requestAnimationFrame(Q)}),Ze.observe(_e)):Ze==null||Ze.disconnect()}function Ee(Y){Date.now()-Te<100||Y.composedPath().includes(_e)||(Y.stopPropagation(),Y.preventDefault(),he.onTooltipClose(G))}function ge(){Q()}ii(()=>{if(he.tooltipRoot){const Y=window.getComputedStyle(_e);e(2,_e.style.fontSize=Y.fontSize,_e),e(2,_e.style.fontFamily=Y.fontFamily,_e),e(2,_e.style.lineHeight=Y.lineHeight,_e),he.tooltipRoot.appendChild(_e)}}),Ps(()=>{be||Q()}),fn(()=>{et&&et.destroy(),Ze==null||Ze.disconnect()});function nt(Y){Or[Y?"unshift":"push"](()=>{_e=Y,e(2,_e)})}return t.$$set=Y=>{"ownerNode"in Y&&e(19,Z=Y.ownerNode),"data"in Y&&e(20,W=Y.data),"internalId"in Y&&e(21,G=Y.internalId),"parentComponentContext"in Y&&e(22,z=Y.parentComponentContext)},t.$$.update=()=>{var Y,Se,Ge,ne;t.$$.dirty&5242882&&(et&&et.destroy(),e(1,et=z.produceChildContext(W.div||{},{isTooltipRoot:!0}))),t.$$.dirty&5242880&&w(e(12,n=z.getDerivedFromVars(W.position))),t.$$.dirty&5242880&&b(e(11,i=z.getDerivedFromVars((Se=(Y=W.offset)==null?void 0:Y.x)==null?void 0:Se.value))),t.$$.dirty&5242880&&f(e(10,o=z.getDerivedFromVars((ne=(Ge=W.offset)==null?void 0:Ge.y)==null?void 0:ne.value))),t.$$.dirty&5242880&&F(e(9,s=z.getDerivedFromVars(W.animation_in))),t.$$.dirty&5242880&&J(e(8,a=z.getDerivedFromVars(W.animation_out))),t.$$.dirty&1&&e(7,l={visible:be})},[be,et,_e,pt,Ue,Re,Me,l,a,s,o,i,n,L,P,x,ye,Ee,ge,Z,W,G,z,nt]}class Lv extends Wr{constructor(r){super(),Hr(this,r,zv,Ov,Ar,{ownerNode:19,data:20,internalId:21,parentComponentContext:22})}}function Bu(t,{delay:r=0,duration:e=400,easing:n=jf,x:i=0,y:o=0,opacity:s=0}={}){const a=getComputedStyle(t),l=+a.opacity,c=a.transform==="none"?"":a.transform,u=l*(1-s),[f,h]=Ql(i),[p,b]=Ql(o);return{delay:r,duration:e,easing:n,css:(_,v)=>`
|
|
16
|
+
transform: ${c} translate(${(1-_)*f}${h}, ${(1-_)*p}${b});
|
|
17
|
+
opacity: ${l-u*v}`}}const Rv="divkit-6d515",Bv="divkit-8767a",Hv="divkit-7481b",Wv="divkit-60a10",Uv="divkit-3133d",gs={root_platform_desktop:Rv,menu:Bv,menu_visible:Hv,menu__list:Wv,menu__item:Uv},{window:Hu}=bi;function Wu(t,r,e){const n=t.slice();return n[23]=r[e],n}function Gv(t){let r=t[23].text+"",e;return{c(){e=Zn(r)},l(n){e=yi(n,r)},m(n,i){ie(n,e,i)},p(n,i){i&1&&r!==(r=n[23].text+"")&&Oi(e,r)},d(n){n&&E(e)}}}function Uu(t){let r,e,n,i;return e=new Ls({props:{componentContext:t[1],actions:t[23].actions||t[23].action&&[t[23].action],cls:gs.menu__item+" "+t[10],customAction:t[14],$$slots:{default:[Gv]},$$scope:{ctx:t}}}),{c(){r=He("li"),Yt(e.$$.fragment),n=yr()},l(o){r=Je(o,"LI",{});var s=De(r);Zt(e.$$.fragment,s),n=vr(s),s.forEach(E)},m(o,s){ie(o,r,s),Ht(e,r,null),St(r,n),i=!0},p(o,s){const a={};s&2&&(a.componentContext=o[1]),s&1&&(a.actions=o[23].actions||o[23].action&&[o[23].action]),s&67108865&&(a.$$scope={dirty:s,ctx:o}),e.$set(a)},i(o){i||(U(e.$$.fragment,o),i=!0)},o(o){re(e.$$.fragment,o),i=!1},d(o){o&&E(r),Wt(e)}}}function Yv(t){let r,e,n,i,o,s,a,l=sr(t[0]),c=[];for(let f=0;f<l.length;f+=1)c[f]=Uu(Wu(t,l,f));const u=f=>re(c[f],1,1,()=>{c[f]=null});return{c(){r=He("div"),e=He("ul");for(let f=0;f<c.length;f+=1)c[f].c();this.h()},l(f){r=Je(f,"DIV",{class:!0});var h=De(r);e=Je(h,"UL",{class:!0});var p=De(e);for(let b=0;b<c.length;b+=1)c[b].l(p);p.forEach(E),h.forEach(E),this.h()},h(){m(e,"class",gs.menu__list),m(r,"class",n=bt("menu",gs,t[7])+" "+(t[8]?nr.root_platform_desktop:"")+" "+t[9]),B(r,"top",t[4]),B(r,"left",t[3]),B(r,"width",t[5]),B(r,"height",t[6])},m(f,h){ie(f,r,h),St(r,e);for(let p=0;p<c.length;p+=1)c[p]&&c[p].m(e,null);t[17](r),o=!0,s||(a=[Ye(Hu,"click",t[12]),Ye(Hu,"resize",t[13])],s=!0)},p(f,[h]){if(h&17411){l=sr(f[0]);let p;for(p=0;p<l.length;p+=1){const b=Wu(f,l,p);c[p]?(c[p].p(b,h),U(c[p],1)):(c[p]=Uu(b),c[p].c(),U(c[p],1),c[p].m(e,null))}for(lr(),p=l.length;p<c.length;p+=1)u(p);ar()}(!o||h&384&&n!==(n=bt("menu",gs,f[7])+" "+(f[8]?nr.root_platform_desktop:"")+" "+f[9]))&&m(r,"class",n),h&16&&B(r,"top",f[4]),h&8&&B(r,"left",f[3]),h&32&&B(r,"width",f[5]),h&64&&B(r,"height",f[6])},i(f){if(!o){for(let h=0;h<l.length;h+=1)U(c[h]);f&&Un(()=>{o&&(i||(i=ia(r,Bu,{y:20},!0)),i.run(1))}),o=!0}},o(f){c=c.filter(Boolean);for(let h=0;h<c.length;h+=1)re(c[h]);f&&(i||(i=ia(r,Bu,{y:20},!1)),i.run(0)),o=!1},d(f){f&&E(r),hn(c,f),t[17](null),f&&i&&i.end(),s=!1,Jr(a)}}}function Jv(t,r,e){let n,i,{ownerNode:o}=r,{items:s}=r,{parentComponentContext:a}=r;const l=Yr(tn),c=l.getCustomization("menuPopupClass")||"",u=l.getCustomization("menuItemClass")||"",f=l.isDesktop;un(t,f,W=>e(8,i=W));const h=Date.now(),p=Nd();let b,_=!1,v="",w="",L="",P="",V=null;function F(){if(!b||!o)return;const W=b.parentElement;if(!W)return;const G=o.getBoundingClientRect(),z=b.getBoundingClientRect(),he=W.getBoundingClientRect(),ye=window.innerWidth,Te=window.innerHeight;let _e=0,be=0,pt=z.width,Ue=z.height;_e=G.left-he.left,be=G.bottom-he.top,_e+pt>ye&&(_e=ye-pt),_e<0&&(_e=0),be+Ue>Te&&(G.top-he.top-Ue>0?be=G.top-he.top-Ue:be=Te-Ue),be<0&&(be=0),e(3,v=`${_e}px`),e(4,w=`${be}px`),e(5,L=""),e(6,P=""),e(16,_=!0),typeof ResizeObserver<"u"&&!V&&(V=new ResizeObserver(()=>{requestAnimationFrame(F)}),V.observe(b))}function x(W){Date.now()-h<100||W.composedPath().includes(b)||p("close")}function D(){F()}function J(){return p("close"),!0}ii(()=>{if(l.tooltipRoot){const W=window.getComputedStyle(b);e(2,b.style.fontSize=W.fontSize,b),e(2,b.style.fontFamily=W.fontFamily,b),e(2,b.style.lineHeight=W.lineHeight,b),l.tooltipRoot.appendChild(b)}}),Ps(()=>{_||F()}),fn(()=>{V==null||V.disconnect()});function Z(W){Or[W?"unshift":"push"](()=>{b=W,e(2,b)})}return t.$$set=W=>{"ownerNode"in W&&e(15,o=W.ownerNode),"items"in W&&e(0,s=W.items),"parentComponentContext"in W&&e(1,a=W.parentComponentContext)},t.$$.update=()=>{t.$$.dirty&65536&&e(7,n={visible:_})},[s,a,b,v,w,L,P,n,i,c,u,f,x,D,J,o,_,Z]}class qv extends Wr{constructor(r){super(),Hr(this,r,Jv,Yv,Ar,{ownerNode:15,items:0,parentComponentContext:1})}}const{Map:Kv}=bi;function Gu(t,r,e){const n=t.slice();return n[124]=r[e],n}function Yu(t){let r,e,n,i,o,s,a,l,c,u;e=new m1({props:{svgFiltersMap:t[5]}}),i=new oi({props:{componentContext:t[6]}});let f=t[3]&&Ju(t),h=t[4]&&Ku(t);return{c(){r=He("div"),Yt(e.$$.fragment),n=yr(),Yt(i.$$.fragment),o=yr(),f&&f.c(),s=yr(),h&&h.c(),this.h()},l(p){r=Je(p,"DIV",{class:!0,dir:!0});var b=De(r);Zt(e.$$.fragment,b),n=vr(b),Zt(i.$$.fragment,b),o=vr(b),f&&f.l(b),s=vr(b),h&&h.l(b),b.forEach(E),this.h()},h(){m(r,"class",a=nr.root+(t[7]?` ${nr.root_platform_desktop}`:"")+(t[0]?` ${t[0]}`:"")),m(r,"dir",t[8])},m(p,b){ie(p,r,b),Ht(e,r,null),St(r,n),Ht(i,r,null),St(r,o),f&&f.m(r,null),St(r,s),h&&h.m(r,null),l=!0,c||(u=Ye(r,"touchstart",xv,{passive:!0}),c=!0)},p(p,b){const _={};b[0]&32&&(_.svgFiltersMap=p[5]),e.$set(_);const v={};b[0]&64&&(v.componentContext=p[6]),i.$set(v),p[3]?f?(f.p(p,b),b[0]&8&&U(f,1)):(f=Ju(p),f.c(),U(f,1),f.m(r,s)):f&&(lr(),re(f,1,1,()=>{f=null}),ar()),p[4]?h?(h.p(p,b),b[0]&16&&U(h,1)):(h=Ku(p),h.c(),U(h,1),h.m(r,null)):h&&(lr(),re(h,1,1,()=>{h=null}),ar()),(!l||b[0]&129&&a!==(a=nr.root+(p[7]?` ${nr.root_platform_desktop}`:"")+(p[0]?` ${p[0]}`:"")))&&m(r,"class",a),(!l||b[0]&256)&&m(r,"dir",p[8])},i(p){l||(U(e.$$.fragment,p),U(i.$$.fragment,p),U(f),U(h),l=!0)},o(p){re(e.$$.fragment,p),re(i.$$.fragment,p),re(f),re(h),l=!1},d(p){p&&E(r),Wt(e),Wt(i),f&&f.d(),h&&h.d(),c=!1,u()}}}function Ju(t){let r=[],e=new Kv,n,i,o=sr(t[3]);const s=a=>a[124].internalId;for(let a=0;a<o.length;a+=1){let l=Gu(t,o,a),c=s(l);e.set(c,r[a]=qu(c,l))}return{c(){for(let a=0;a<r.length;a+=1)r[a].c();n=Ne()},l(a){for(let l=0;l<r.length;l+=1)r[l].l(a);n=Ne()},m(a,l){for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(a,l);ie(a,n,l),i=!0},p(a,l){l[0]&72&&(o=sr(a[3]),lr(),r=ff(r,l,s,1,a,o,e,n.parentNode,uf,qu,n,Gu),ar())},i(a){if(!i){for(let l=0;l<o.length;l+=1)U(r[l]);i=!0}},o(a){for(let l=0;l<r.length;l+=1)re(r[l]);i=!1},d(a){a&&E(n);for(let l=0;l<r.length;l+=1)r[l].d(a)}}}function qu(t,r){let e,n,i;return n=new Lv({props:{ownerNode:r[124].ownerNode,data:r[124].desc,internalId:r[124].internalId,parentComponentContext:r[124].componentContext||r[6]}}),{key:t,first:null,c(){e=Ne(),Yt(n.$$.fragment),this.h()},l(o){e=Ne(),Zt(n.$$.fragment,o),this.h()},h(){this.first=e},m(o,s){ie(o,e,s),Ht(n,o,s),i=!0},p(o,s){r=o;const a={};s[0]&8&&(a.ownerNode=r[124].ownerNode),s[0]&8&&(a.data=r[124].desc),s[0]&8&&(a.internalId=r[124].internalId),s[0]&72&&(a.parentComponentContext=r[124].componentContext||r[6]),n.$set(a)},i(o){i||(U(n.$$.fragment,o),i=!0)},o(o){re(n.$$.fragment,o),i=!1},d(o){o&&E(e),Wt(n,o)}}}function Ku(t){let r,e;return r=new qv({props:{ownerNode:t[4].node,items:t[4].items,parentComponentContext:t[4].componentContext||t[6]}}),r.$on("close",t[38]),{c(){Yt(r.$$.fragment)},l(n){Zt(r.$$.fragment,n)},m(n,i){Ht(r,n,i),e=!0},p(n,i){const o={};i[0]&16&&(o.ownerNode=n[4].node),i[0]&16&&(o.items=n[4].items),i[0]&80&&(o.parentComponentContext=n[4].componentContext||n[6]),r.$set(o)},i(n){e||(U(r.$$.fragment,n),e=!0)},o(n){re(r.$$.fragment,n),e=!1},d(n){Wt(r,n)}}}function Xv(t){let r,e,n=!t[1]&&!t[2]&&t[6]&&Yu(t);return{c(){n&&n.c(),r=Ne()},l(i){n&&n.l(i),r=Ne()},m(i,o){n&&n.m(i,o),ie(i,r,o),e=!0},p(i,o){!i[1]&&!i[2]&&i[6]?n?(n.p(i,o),o[0]&70&&U(n,1)):(n=Yu(i),n.c(),U(n,1),n.m(r.parentNode,r)):n&&(lr(),re(n,1,1,()=>{n=null}),ar())},i(i){e||(U(n),e=!0)},o(i){re(n),e=!1},d(i){i&&E(r),n&&n.d(i)}}}let ql=hi(!0),Ko=0;function Xu(){ql.set(!1)}function Zu(){ql.set(!0)}const Zv=new Set(["string","integer","number","url","color","boolean"]),Qv=new Set(["string","integer","number","url","color","boolean","array","dict"]);function Mi(t,r){if(t&&r)return new Map([...t,...r]);if(t)return t;if(r)return r}function xv(){}function $v(t,r,e){var Ir,rn;let n,i,o,s,{id:a}=r,{json:l={}}=r,{platform:c="auto"}=r,{theme:u="system"}=r,{globalVariablesController:f=void 0}=r,{mix:h=""}=r,{customization:p={}}=r,{builtinProtocols:b=["http","https","tel","mailto","intent"]}=r,{extensions:_=new Map}=r,{onError:v=void 0}=r,{onStat:w=void 0}=r,{onCustomAction:L=void 0}=r,{onComponent:P=void 0}=r,{typefaceProvider:V=y=>""}=r,{fetchInit:F={}}=r,{tooltipRoot:x=void 0}=r,{customComponents:D=void 0}=r,{direction:J="ltr"}=r,{store:Z=void 0}=r,{weekStartDay:W=0}=r,G=!0,z=hi(c==="desktop");if(un(t,z,y=>e(7,o=y)),c==="auto"&&typeof matchMedia<"u"){const y=matchMedia("(any-pointer: coarse)");z.set(!y.matches),y.addListener(()=>{z.set(!y.matches)})}let he="light",ye=null;const Te=hi(J==="rtl"?"rtl":"ltr");un(t,Te,y=>e(8,s=y));function _e(){u!=="system"||!ye||e(35,he=ye.matches?"dark":"light")}function be(y){e(12,u=y)}function pt(){return new Map}function Ue(){return new Map}function Re(y){e(11,l=y)}const Me=new Set(b);let Ze=!1,et=!1;a||(et=!0,C(ee(new Error('"id" prop is required'))));const Q={stateChange:!1},Ee=f||new nd,ge=rd(Ee),nt=_s(Ee),Y=new Map,Se=new Map,Ge=new Map;let ne=null;const lt=new Map;let je=0,Ie=[];const kt=new Set;let Tt;const te=[];function it(y){return p==null?void 0:p[y]}function ut(y,A,X,oe=!1,se=void 0){if(!A)return qi(A);const Ce=Mi(Se,X),wt=Pu(A,y,Z,W);if(!wt.vars.length)return wt.hasExpression?qi(wt.applyVars(Ce,se)):qi(A);const O=wt.vars.map(Ke=>Ce.get(Ke)||Ve(Ke)).filter(Vi);return Zi(O,()=>wt.applyVars(Ce,se,oe))}function gt(y,A,X,oe=!1,se=void 0){const Ce=Pu(A,y,Z,W);if(!Ce.hasExpression)return A;const wt=Mi(Se,X);return Ce.applyVars(wt,se,oe)}function qe(y,A,X){const oe=new Map,se=al(y,"dict",A);oe.set(y,se);const Ce=al("index","integer",X);return oe.set("index",Ce),oe}function C(y){v?v({error:y}):(y==null?void 0:y.level)==="warn"?console.warn(y):console.error(y)}function rt(y,A){w&&w({type:y,action:A})}function le(y){return y in n}function Qe(y,A){if(!y)return{json:y,templateContext:A};const X=new Set([y.type]);for(;y.type&&y.type in n;){if({json:y,templateContext:A}=b1(y,A,n,C),X.has(y.type))return{json:y,templateContext:A};X.add(y.type)}return{json:y,templateContext:A}}let At=0;function fe(y){return`${a}-${At++}`}function pe(y){return`divkit-${fe()}`}let ft={},$e={};function tr(y,A){const X=`${y}:${A}`;if($e[X]=$e[X]||0,++$e[X],ft[X])return ft[X];const oe=`${fe()}-svg-filter`;return e(5,ft={...ft,[X]:oe}),oe}function Ot(y,A){if(!y)return;const X=`${y}:${A}`;$e[X]&&--$e[X]===0&&e(5,ft=Object.keys(ft).reduce((oe,se)=>($e[se]&&(oe[se]=ft[se]),oe),{}))}const Qt=fe()+"-id-",Oe=new Map,yt=new Map;function Jt(y){return Qt+y}function Ut(y,A){Oe.set(y,A)}function qt(y){Oe.delete(y);const A=Jt(y);yt.has(A)&&yt.delete(A)}function H(y){var X;const A=(X=Oe.get(y))==null?void 0:X();if(A){const oe=Jt(y),se=yt.get(oe);return se&&se!==A&&se.removeAttribute("id"),A.setAttribute("id",oe),yt.set(oe,A),oe}return""}async function ae(y,A){var Ce,wt,O;if(!y)throw new Error("Missing state id");let X=y.split("/");const oe=X.length%2===0&&Vv(A);let se=oe||jt;if(!oe)if((Ce=se.states)!=null&&Ce.root){if(se=await se.states.root(X[0]),!se)return;X=X.slice(1)}else return;for(let Ke=0;Ke<X.length;Ke+=2){const Rt=X[Ke],Mt=X[Ke+1];if((wt=se.states)!=null&&wt[Rt]){if(se=await((O=se.states)==null?void 0:O[Rt](Mt)),!se)return}else return}}function dr(y,A,{item:X,step:oe,overflow:se}){var Ke,Rt,Mt,Bt,or;if(!A)throw new Error(`Missing id for "${y}" action`);const Ce=Number(X);if(y==="set_current_item"&&Number.isNaN(Ce))throw new Error(`Incorrect item for "${y}" action`);let wt=Number(oe);if(!oe&&(y==="set_previous_item"||y==="set_next_item")&&(wt=1),!oe&&(y==="scroll_backward"||y==="scroll_forward"||y==="scroll_to_position")||Number.isNaN(wt))throw new Error(`Incorrect step value for "${y}" action`);if(se&&se!=="clamp"&&se!=="ring")throw new Error(`Incorrect overflow value for "${y}" action`);se=se||"clamp";const O=zr(A);if(O)switch(y){case"set_current_item":O.setCurrentItem(Ce);return;case"set_previous_item":O.setPreviousItem(wt,se);return;case"set_next_item":O.setNextItem(wt,se);return;case"scroll_to_start":(Ke=O.scrollToStart)==null||Ke.call(O);return;case"scroll_to_end":(Rt=O.scrollToEnd)==null||Rt.call(O);return;case"scroll_backward":(Mt=O.scrollBackward)==null||Mt.call(O,wt,se);return;case"scroll_forward":(Bt=O.scrollForward)==null||Bt.call(O,wt,se);return;case"scroll_to_position":(or=O.scrollToPosition)==null||or.call(O,wt);return}}function we(y,A,X){const oe=(X==null?void 0:X.logError)||C;if(y){const se=zr(y);se?A==="start"?se.start():A==="pause"?se.pause():oe(ee(new Error("Unknown video action"),{additional:{id:y,action:A}})):oe(ee(new Error("Video component is not found"),{additional:{id:y,action:A}}))}else oe(ee(new Error("Missing id in video action"),{additional:{action:A}}))}function It(y,A,X){const oe=(X==null?void 0:X.logError)||C;if(y){let se;typeof F=="function"?se=F(y):se=F,fetch(y,se).then(Ce=>{if(!Ce.ok)throw new Error("Response is not ok");return Ce.json()}).then(Ce=>{var wt,O,Ke;if(!Ce){oe(ee(new Error("Incorrect patch"),{additional:{url:y}}));return}if(Ce.templates)for(const Rt in Ce.templates)n.hasOwnProperty(Rt)||(n[Rt]=Ce.templates[Rt]);if(Array.isArray((wt=Ce.patch)==null?void 0:wt.changes)){if(Ce.patch.mode==="transactional"){const Rt=Ce.patch.changes.find(Mt=>{const Bt=ht.get(Mt.id);if(!Bt)return!0;const or=Array.isArray(Mt.items)?Mt.items.length:0;return!!(Bt.isSingleMode&&or!==1)});if(Rt){oe(ee(new Error("Skipping transactional, child is not found or broken"),{additional:{url:y,id:Rt.id}})),Fe((O=Ce.patch)==null?void 0:O.on_failed_actions),Fe(A==null?void 0:A.on_fail_actions);return}}Ce.patch.changes.forEach(Rt=>{const Mt=ht.get(Rt.id);Mt&&Mt.replaceWith(Rt.id,Rt.items)}),Fe((Ke=Ce.patch)==null?void 0:Ke.on_applied_actions),Fe(A==null?void 0:A.on_success_actions)}}).catch(Ce=>{oe(ee(new Error("Failed to download the patch"),{additional:{url:y,originalError:Ce}})),Fe(A==null?void 0:A.on_fail_actions)})}else oe(ee(new Error("Missing url in download action"),{additional:{url:y}}))}function Be(y,A,X){var O;const oe=(X==null?void 0:X.logError)||C;if(!y){oe(ee(new Error("Missing id in show_tooltip action")));return}const se=Nt.get(y);if(!se){oe(ee(new Error("Tooltip with the provided id is not found"),{additional:{id:y}}));return}if(A!=="true"&&A!==!0&&kt.has(y))return;kt.add(y);const Ce={internalId:++je,ownerNode:se.onwerNode,desc:se.tooltip,timeoutId:0,componentContext:X};e(3,Ie=[...Ie,Ce]);const wt=(O=se.tooltip.duration)!=null?O:5e3;wt&&(Ce.timeoutId=window.setTimeout(()=>{Ce.timeoutId=0,e(3,Ie=Ie.filter(Ke=>Ke.internalId!==Ce.internalId))},wt))}function vt(y,A){const X=(A==null?void 0:A.logError)||C;if(!y){X(ee(new Error("Missing id in hide_tooltip action")));return}e(3,Ie=Ie.filter(oe=>{const se=oe.desc.id!==y;return!se&&oe.timeoutId&&(clearTimeout(oe.timeoutId),oe.timeoutId=null),se}))}function ze(y,A,X,oe,se){const Ce=(y==null?void 0:y.logError)||C;if(!Z){Ce(ee(new Error("Store is not configured")));return}let wt=X;if(!A||!wt||!oe||!se){Ce(ee(new Error("Missing required params for set_stored_value")));return}if(!Qv.has(oe)){Ce(ee(new Error("Incorrect stored type")));return}if(oe==="boolean"&&(wt=wt==="true"||wt==="1"),Z.set)Z.set(A,oe,wt,Number(se));else if(Z.setValue){if(!Zv.has(oe)){Ce(ee(new Error("Incorrect stored type")));return}if(typeof wt!="string"&&typeof wt!="number"&&typeof wt!="boolean"){Ce(ee(new Error("Incorrect stored value")));return}(oe==="integer"||oe==="number")&&(wt=Number(wt)),Z.setValue(A,oe,wt,Number(se))}}function at(y){Et(gt(C,y))}async function Et(y,A){var wt,O;const X=y.scope_id,oe=(A==null?void 0:A.logError)||C;if(X){const Ke=rr.get(X);if(Ke&&(Ke==null?void 0:Ke.size)>1)oe(ee(new Error(`Ambiguous scope id. There are ${Ke.size} divs with id '${X}'`),{additional:{count:Ke.size,scopeId:X}}));else if((Ke==null?void 0:Ke.size)===1){const Rt=Ke.values().next().value;Rt&&(A=Rt)}}const se=y.url?String(y.url):"",Ce=y.typed;if(Tn(y)){if(se)try{const Ke=se.replace(/div-action:\/\//,""),Rt=/([^?]+)\?(.+)/.exec(Ke);if(!Rt)return;const Mt=new URLSearchParams(Rt[2]);switch(Rt[1]){case"set_state":await ae(Mt.get("state_id"),A);break;case"set_current_item":case"set_previous_item":case"set_next_item":case"scroll_to_start":case"scroll_to_end":case"scroll_backward":case"scroll_forward":case"scroll_to_position":dr(Rt[1],Mt.get("id"),{item:Mt.get("item"),step:Mt.get("step"),overflow:Mt.get("overflow")});break;case"set_variable":const Bt=Mt.get("name"),or=Mt.get("value");if(Bt&&or!==null){const pn=(A==null?void 0:A.getVariable(Bt))||Se.get(Bt);if(pn){const nn=pn.getType();nn==="dict"||nn==="array"?oe(ee(new Error(`Setting ${nn} variables is not supported`),{additional:{name:Bt}})):pn.set(or)}else oe(ee(new Error("Cannot find variable"),{additional:{name:Bt}}))}else oe(ee(new Error("Incorrect set_variable_action"),{additional:{url:Ke}}));break;case"timer":const an=Mt.get("action"),Lr=Mt.get("id");ne?ne.execTimerAction(Lr,an):oe(ee(new Error("Incorrect timer action"),{additional:{id:Lr,action:an}}));break;case"video":we(Mt.get("id"),Mt.get("action"),A);break;case"download":It(Mt.get("url"),y.download_callbacks,A);break;case"show_tooltip":Be(Mt.get("id"),Mt.get("multiple"),A);break;case"hide_tooltip":vt(Mt.get("id"),A);break;case"set_stored_value":{ze(A,Mt.get("name"),Mt.get("value"),Mt.get("type"),Mt.get("lifetime"));break}default:oe(ee(new Error("Unknown type of action"),{additional:{url:se}}))}}catch(Ke){oe(ee(Ke,{additional:{url:se}}))}else if(Ce)switch(Ce.type){case"set_variable":{const{variable_name:Ke,value:Rt}=Ce;if(Ke&&Rt){const Mt=(A==null?void 0:A.getVariable(Ke))||Se.get(Ke);Mt?Mt.getType()===Rt.type?Mt.setValue(Rt.value):oe(ee(new Error("Trying to set value with invalid type"),{additional:{name:Ke,type:Rt.type}})):oe(ee(new Error("Cannot find variable"),{additional:{name:Ke}}))}else oe(ee(new Error("Incorrect set_variable action"),{additional:{name:Ke}}));break}case"array_insert_value":wv(A,Se,oe,Ce);break;case"array_remove_value":kv(A,Se,oe,Ce);break;case"array_set_value":Av(A,Se,oe,Ce);break;case"copy_to_clipboard":jv(oe,Ce);break;case"focus_element":{const Ke=Ce.element_id&&Dt.get(Ce.element_id);Ke?Ke.focus():oe(ee(new Error("Incorrect focus_element action"),{additional:{elementId:Ce.element_id}}));break}case"clear_focus":{try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch{}break}case"dict_set_value":{Ev(A,Se,oe,Ce);break}case"animator_start":{const Ke=Ce.animator_id&&(A==null?void 0:A.getAnimator(Ce.animator_id));if(!Ke){oe(ee(new Error("Missing animator"),{additional:{animator_id:Ce.animator_id}}));return}const{duration:Rt,start_delay:Mt,interpolator:Bt,direction:or,repeat_count:an,start_value:Lr,end_value:pn}=Ce,nn=A?A.getJsonWithVars(Ke):gt(C,Ke),Gn={...nn,end_actions:Ke.end_actions,cancel_actions:Ke.cancel_actions,duration:Rt!==void 0?Rt:nn.duration,start_delay:Mt!==void 0?Mt:nn.start_delay,interpolator:Bt!==void 0?Bt:nn.interpolator,direction:or!==void 0?or:nn.direction,repeat_count:an!==void 0?an:nn.repeat_count,start_value_typed:Lr,end_value_typed:pn},vn=Ke.variable_name&&((A==null?void 0:A.getVariable(Ke.variable_name))||Se.get(Ke.variable_name));if(!vn)return;const on=lt.get(Ke.id);on&&on.stop();const mn=Sv(Gn,vn,()=>{lt.delete(Ke.id)},(Yn,Qn)=>{const Vn=(A==null?void 0:A.execAnyActions)||Fe,Jn=A?A.getJsonWithVars(Yn):gt(C,Yn);return Vn(Jn,Qn)});mn&<.set(Ke.id,mn);break}case"animator_stop":{const Ke=lt.get(Ce.animator_id);Ke&&(Ke.stop(),lt.delete(Ce.animator_id));break}case"show_tooltip":{Be(Ce.id,Ce.multiple,A);break}case"hide_tooltip":{vt(Ce.id,A);break}case"timer":{ne?ne.execTimerAction(Ce.id,Ce.action):oe(ee(new Error("Incorrect timer action"),{additional:{id:Ce.id,action:Ce.action}}));break}case"download":{It(Ce.url,Ce,A);break}case"video":{we(Ce.id,Ce.action,A);break}case"set_stored_value":{ze(A,Ce.name,(wt=Ce.value)==null?void 0:wt.value,(O=Ce.value)==null?void 0:O.type,Ce.lifetime);break}case"set_state":{await ae(Ce.state_id,A);break}default:oe(ee(new Error("Unknown type of action"),{additional:{type:Ce.type}}))}}}async function Fe(y,A={}){if(!y||!Array.isArray(y))return;const X=y.filter(Tn);for(let oe=0;oe<X.length;++oe){let se=X[oe];const Ce=se.url,wt=se.typed;if(Ce){const O=rl(Ce);if(O)if(nl(O,Me)){if(A.processUrls)if(se.target==="_blank"){const Ke=window.open("","_blank");Ke&&(Ke.opener=null,Ke.location=Ce)}else location.href=Ce}else O==="div-action"?(await Et(se,A.componentContext),await jn()):se.log_id&&(dt(se),await jn())}else wt?await Et(se,A.componentContext):A.node&&Array.isArray(se.menu_items)&&se.menu_items.length&&e(4,Tt={items:se.menu_items,node:A.node,componentContext:A.componentContext})}X.forEach(oe=>{oe.log_id&&rt(A.logType||"click",oe)})}function dt(y){L==null||L(y)}function Kt(y,A){const X=(y==null?void 0:y.logError)||C;if(!Array.isArray(A)||!A.length)return;const oe=[];return A.forEach(se=>{let Ce=!1;if(typeof se.condition!="string"){X(ee(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:se.condition}}));return}if(!Array.isArray(se.actions)){X(ee(new Error("variable_trigger has no actions"),{additional:{condition:se.condition}}));return}const wt=se.mode||"on_condition";if(wt!=="on_variable"&&wt!=="on_condition"){X(ee(new Error("variable_trigger has an unsupported mode"),{additional:{mode:wt}}));return}try{const O=Yl(se.condition,{startRule:"JsonStringContents"}),Ke=Yf(O);if(!Ke.length){X(ee(new Error("variable_trigger must have variables in the condition"),{additional:{condition:se.condition}}));return}const Rt=Ke.map(Bt=>(y==null?void 0:y.getVariable(Bt))||Se.get(Bt)||Ve(Bt)),Mt=Zi(Rt,()=>{const Bt=y?y.evalExpression(Z,O,{weekStartDay:W}):Cs(Se,void 0,Z,O,{weekStartDay:W});return Bt.warnings.forEach(C),Bt.result}).subscribe(async Bt=>{if(Bt.type==="error"){X(ee(new Error("variable_trigger condition execution error"),{additional:{message:Bt.value}}));return}if(Bt.value&&(wt==="on_variable"||wt==="on_condition"&&Ce===!1)){Ce=!!Bt.value;const or=se.actions.map(an=>y?y.getJsonWithVars(an):gt(C,an));y?await y.execAnyActions(or,{logType:"trigger"}):await Fe(or,{logType:"trigger"})}else Ce=!!Bt.value});oe.push(Mt)}catch{X(ee(new Error("Unable to parse variable_trigger"),{additional:{condition:se.condition}}))}}),()=>{oe.forEach(se=>{se()})}}function cr(y){return Q[y]}function pr(y,A){Q[y]=A}const Gt=new Map,ht=new Map,Dt=new Map,Nt=new Map,rr=new Map;function ir(y,A){if(Gt.has(y)){C(ee(new Error("Duplicate instance id"),{additional:{id:y}}));return}Gt.set(y,A)}function Er(y){Gt.delete(y)}function zr(y){if(!Gt.has(y)){C(ee(new Error("Missing instance with id"),{additional:{id:y}}));return}return Gt.get(y)}function qr(y,A){ht.set(y,A)}function Xe(y){ht.delete(y)}function hr(y,A){Dt.set(y,A)}function Ae(y){Dt.delete(y)}function K(y,A){const X=A.id;X&&(Nt.has(X)&&C(ee(new Error("Duplicate tooltip id"),{additional:{id:X}})),Nt.set(X,{onwerNode:y,tooltip:A}))}function jr(y){const A=y.id;A&&(Nt.delete(A),Ie.some(X=>X.desc.id===A)&&e(3,Ie=Ie.filter(X=>X.desc.id!==A)))}const Cr=new Map;function zt(y){Cr.has(y)||Cr.set(y,gv[y]())}function $r(y){return Cr.has(y)||zt(y),Cr.get(y)}function Ve(y){const A=Ge.get(y)||hi(void 0);return Ge.has(y)||Ge.set(y,A),A}function Lt(){if(!de)return;de[he].forEach(A=>{const X=Se.get(A.name);X&&X.setValue(A.color)})}function _r(){return Me}function xe(y,A){const X=_.get(y);if(X)return new X(A||{})}function Ft(y){return{variables:Mi(Se,y.variables),processExpressions(A){return gt(C,A)},execAction:at,logError:C,getComponentProperty(A){return y.getJsonWithVars(y.json[A])},direction:J}}function Le(y){const A={id:"",json:{},path:[],templateContext:{},logError(X){X.additional=X.additional||{},X.additional.path=A.path.join("/"),C(X)},execAnyActions(X,oe={}){return Fe(X,{componentContext:A,processUrls:oe.processUrls,node:oe.node,logType:oe.logType})},getDerivedFromVars(X,oe,se=!1){return ut(A.logError,X,Mi(A.variables,oe),se,A.customFunctions)},getJsonWithVars(X,oe,se=!1){return gt(A.logError,X,Mi(A.variables,oe),se,A.customFunctions)},evalExpression(X,oe,se){return Cs(Mi(Se,A.variables),A.customFunctions,X,oe,se)},produceChildContext(X,oe={}){const se=Le(A);let Ce=X,wt=A.templateContext;const{templateContext:O,json:Ke}=Qe(Ce,wt);if(se.json=Ke,se.templateContext=O,se.origJson=X,se.id=oe.id||Ke.id||"",se.id){let Bt=rr.get(se.id);Bt||(Bt=new Set,rr.set(se.id,Bt)),Bt.add(se)}oe.path!==void 0&&se.path.push(String(oe.path)),X.type&&!oe.isRootState&&se.path.push(X.type),oe.isTooltipRoot&&(se.isTooltipRoot=!0);let Rt;Array.isArray(Ke.variables)&&(Rt=new Map,Ke.variables.forEach(Bt=>{const or=Xt(Bt);or&&Rt&&Rt.set(or.getName(),or)})),se.variables=Mi(A.variables,Mi(Rt,oe.variables));let Mt;return Array.isArray(Ke.functions)&&(Mt=new Map,Ke.functions.forEach(Bt=>{if(Mt){try{av(Bt)}catch(Lr){A.logError(ee(Lr));return}const or=Bt,an=Mt.get(or.name)||[];an.push(cv(or)),Mt.set(or.name,an)}})),se.customFunctions=uv(A.customFunctions,Mt),Array.isArray(Ke.animators)&&(A.animators=Ke.animators.reduce((Bt,or)=>(or.id&&(Bt[or.id]=or),Bt),{})),oe.fake&&(se.fakeElement=!0),oe.isRootState&&(se.isRootState=!0),se},getVariable(X,oe){var Ce;const se=((Ce=A.variables)==null?void 0:Ce.get(X))||Se.get(X);if(se){const wt=se.getType();if(oe&&wt!==oe){A.logError(ee(new Error(`Variable should have type "${oe}"`),{additional:{name:X,foundType:wt}}));return}}return se},getAnimator(X){var oe,se;return((oe=A.animators)==null?void 0:oe[X])||((se=A.parent)==null?void 0:se.getAnimator(X))||void 0},registerState(X,oe){const se=Nu(A.parent);se&&(se.states=se.states||{},se.states[X]=oe)},unregisterState(X){const oe=Nu(A.parent);oe!=null&&oe.states&&delete oe.states[X]},destroy(){const X=rr.get(A.id);X&&(X.delete(A),X.size||rr.delete(A.id))}};return y?(A.parent=y,A.path=y.path.slice(),y.fakeElement&&(A.fakeElement=!0)):(A.json={type:"root"},A.isRootState=!0),A}function mt(y){G?te.push(y):clearTimeout(y)}Yi(tn,{logStat:rt,hasTemplate:le,genId:fe,genClass:pe,execCustomAction:dt,processVariableTriggers:Kt,isRunning:cr,setRunning:pr,registerInstance:ir,unregisterInstance:Er,registerParentOf:qr,unregisterParentOf:Xe,registerTooltip:K,unregisterTooltip:jr,onTooltipClose:fr,tooltipRoot:x,registerFocusable:hr,unregisterFocusable:Ae,addSvgFilter:tr,removeSvgFilter:Ot,registerId:Ut,unregisterId:qt,getComponentId:H,preparePrototypeVariables:qe,getStore:$r,getCustomization:it,getBuiltinProtocols:_r,getExtension:xe,getExtensionContext:Ft,registerTimeout:mt,typefaceProvider:V,isDesktop:z,isPointerFocus:ql,customComponents:D,direction:Te,componentDevtool:void 0}),Yi(ws,{hasAction(){return!1}}),Yi(Tl,{runVisibilityTransition(y,A,X,oe,se){return Promise.resolve()},registerChildWithTransitionIn(y,A,X,oe){return Promise.resolve()},registerChildWithTransitionOut(y,A,X,oe){return Promise.resolve()},registerChildWithTransitionChange(y,A,X,oe){return Promise.resolve()},hasTransitionChange(y){return!1},registerChild(y){},unregisterChild(y){}}),Yi(Pl,{isEnabled:qi(!0)});function ct(y,A){const X=Se.get(y);return(X==null?void 0:X.getType())===A}function Ct(y,A){const X=Se.get(y);X?X.setValue(A):C(ee(new Error("Cannot find variable"),{additional:{name:y}}))}function Xt(y){if(!(!y.type||!y.name||!(y.type in ll))){y.type==="integer"&&typeof y.value=="number"&&(y.value>Number.MAX_SAFE_INTEGER||y.value<Number.MIN_SAFE_INTEGER)&&C(ee(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:y.name,value:y.value}}));try{return pi(y.name,y.type,y.value)}catch(A){C(ee(A,{additional:{name:y.name}}))}}}function T(y){const A=Xt(y);A&&(Y.set(y.name,A),Se.set(y.name,A))}const ot=(Ir=l==null?void 0:l.card)==null?void 0:Ir.variables;Array.isArray(ot)&&ot.forEach(y=>{if(y&&y.name){if(Y.has(y.name)){C(ee(new Error("Duplicate variable"),{additional:{name:y.name}}));return}T(y)}});const de=l.palette;de&&de[he].forEach(A=>{if(Y.has(A.name)){C(ee(new Error("Duplicate variable"),{additional:{name:A.name}}));return}try{const X=pi(A.name,"color",A.color);Y.set(A.name,X),Se.set(A.name,X)}catch(X){C(ee(X,{additional:{name:A.name}}))}});for(const[y,A]of nt)Se.has(y)||Se.set(y,A);ge.subscribe(y=>{if(y&&!Se.has(y)){const A=nt.get(y);Se.set(y,A);const X=Ge.get(y);if(X){let oe=0;A.subscribe(()=>{X.set(++oe)})}}});const d=()=>{var y;Kt(void 0,(y=l==null?void 0:l.card)==null?void 0:y.variable_triggers)},Pe=(rn=l==null?void 0:l.card)==null?void 0:rn.timers;if(Pe&&typeof document<"u"){const y=ne=new vv({logError:C,applyVars:A=>gt(C,A),hasVariableWithType:ct,setVariableValue:Ct,execAnyActions:Fe});Pe.forEach(A=>y.createTimer(A))}const jt=Le();let Pr;function fr(y){e(3,Ie=Ie.filter(A=>A.internalId!==y))}ii(()=>{Ko++,Ko===1&&(window.addEventListener("keydown",Xu),window.addEventListener("pointerdown",Zu)),jn().then(()=>{G&&d()})}),fn(()=>{G=!1,Ko--,Ko||(window.removeEventListener("keydown",Xu),window.removeEventListener("pointerdown",Zu));for(const[y,A]of lt)A.stop();ne&&ne.destroy(),Ie.forEach(y=>{y.timeoutId&&(clearTimeout(y.timeoutId),y.timeoutId=null)}),te.forEach(y=>{clearTimeout(y)}),f||pv(Ee)});const R=()=>e(4,Tt=void 0);return t.$$set=y=>{"id"in y&&e(13,a=y.id),"json"in y&&e(11,l=y.json),"platform"in y&&e(14,c=y.platform),"theme"in y&&e(12,u=y.theme),"globalVariablesController"in y&&e(15,f=y.globalVariablesController),"mix"in y&&e(0,h=y.mix),"customization"in y&&e(16,p=y.customization),"builtinProtocols"in y&&e(17,b=y.builtinProtocols),"extensions"in y&&e(18,_=y.extensions),"onError"in y&&e(19,v=y.onError),"onStat"in y&&e(20,w=y.onStat),"onCustomAction"in y&&e(21,L=y.onCustomAction),"onComponent"in y&&e(22,P=y.onComponent),"typefaceProvider"in y&&e(23,V=y.typefaceProvider),"fetchInit"in y&&e(24,F=y.fetchInit),"tooltipRoot"in y&&e(25,x=y.tooltipRoot),"customComponents"in y&&e(26,D=y.customComponents),"direction"in y&&e(27,J=y.direction),"store"in y&&e(28,Z=y.store),"weekStartDay"in y&&e(29,W=y.weekStartDay)},t.$$.update=()=>{var y,A;if(t.$$.dirty[0]&4096|t.$$.dirty[1]&32&&(u==="light"||u==="dark"?e(35,he=u):u==="system"?typeof matchMedia<"u"?(ye||(e(36,ye=matchMedia("(prefers-color-scheme: dark)")),ye.addListener(_e)),e(35,he=ye.matches?"dark":"light")):e(35,he="light"):C(ee(new Error("Unsupported theme")))),t.$$.dirty[1]&16&&he&&Lt(),t.$$.dirty[0]&2048){e(1,Ze=!1);const X=fv(l);X&&(e(1,Ze=!0),C(X))}if(t.$$.dirty[0]&2048&&(n=l.templates||{}),t.$$.dirty[0]&2048&&(y=l==null?void 0:l.card)!=null&&y.variables&&Array.isArray(l.card.variables)&&l.card.variables!==ot&&l.card.variables.forEach(X=>{X&&X.name&&!Y.has(X.name)&&T(X)}),t.$$.dirty[0]&2048&&e(37,i=(A=l==null?void 0:l.card)==null?void 0:A.states),t.$$.dirty[0]&6|t.$$.dirty[1]&64&&i&&!Ze&&!et){const X={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map(oe=>({state_id:oe.state_id.toString(),div:oe.div}))};e(6,Pr=jt.produceChildContext(X,{isRootState:!0}))}},[h,Ze,et,Ie,Tt,ft,Pr,o,s,z,Te,l,u,a,c,f,p,b,_,v,w,L,P,V,F,x,D,J,Z,W,be,pt,Ue,Re,at,he,ye,i,R]}class ew extends Wr{constructor(r){super(),Hr(this,r,$v,Xv,Ar,{id:13,json:11,platform:14,theme:12,globalVariablesController:15,mix:0,customization:16,builtinProtocols:17,extensions:18,onError:19,onStat:20,onCustomAction:21,onComponent:22,typefaceProvider:23,fetchInit:24,tooltipRoot:25,customComponents:26,direction:27,store:28,weekStartDay:29,setTheme:30,getDebugVariables:31,getDebugAllVariables:32,setData:33,execAction:34},null,[-1,-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[30]}get getDebugVariables(){return this.$$.ctx[31]}get getDebugAllVariables(){return this.$$.ctx[32]}get setData(){return this.$$.ctx[33]}get execAction(){return this.$$.ctx[34]}}const tw=8;class rw{constructor(r){ur(this,"widthVariableName");ur(this,"heightVariableName");ur(this,"resizeObserver");ur(this,"context");ur(this,"node");ur(this,"sizeHistory",{});this.widthVariableName=r.width_variable_name,this.heightVariableName=r.height_variable_name}setVariable(r,e){if(!this.context)return!1;if(r){const n=this.context.variables.get(r);if(n&&n.getType()==="integer"){if(e=Math.round(e),this.sizeHistory[r]||(this.sizeHistory[r]=new Set),!this.sizeHistory[r].has(e))return n.setValue(e),this.sizeHistory[r].add(e),!0}else{const i=new Error("Missing variable");i.level="error",i.additional={variableName:r},this.context.logError(i)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const r=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,r.width),n=this.setVariable(this.heightVariableName,r.height);return e||n}mountView(r,e){var n;this.node=r,this.context=e,!this.resizeObserver&&typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(async()=>{let i=0;for(;this.recalcProps();){if(++i>tw){const o=new Error("Recursive layout in size_provider");o.level="warn",o.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(o);break}await jn()}this.sizeHistory={}})),(n=this.resizeObserver)==null||n.observe(r),this.recalcProps()}unmountView(r,e){var n;(n=this.resizeObserver)==null||n.disconnect(),this.resizeObserver=void 0}}const lo=8;class nw{constructor(r){ur(this,"context");ur(this,"params");ur(this,"startCoords");this.params=r,this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this)}processActions(r){const e=this.params[r];Array.isArray(e)&&e.length&&this.context&&this.context.processExpressions(e).forEach(i=>{var o;(o=this.context)==null||o.execAction(i)})}onPointerDown(r){this.startCoords={pageX:r.pageX,pageY:r.pageY}}onPointerMove(r){if(!this.startCoords)return;const e=r.pageX-this.startCoords.pageX,n=r.pageY-this.startCoords.pageY;(Math.abs(e)>lo||Math.abs(n)>lo)&&(Math.abs(e)>Math.abs(n)?e>lo?this.processActions("swipe_right"):e<-lo&&this.processActions("swipe_left"):n>lo?this.processActions("swipe_down"):n<-lo&&this.processActions("swipe_up"),this.startCoords=void 0)}onPointerUp(){this.startCoords=void 0}mountView(r,e){this.context=e,r.addEventListener("pointerdown",this.onPointerDown),r.addEventListener("pointermove",this.onPointerMove),r.addEventListener("pointerup",this.onPointerUp),r.addEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents="auto"}updateView(r){r.style.pointerEvents="auto"}unmountView(r,e){r.removeEventListener("pointerdown",this.onPointerDown),r.removeEventListener("pointermove",this.onPointerMove),r.removeEventListener("pointerup",this.onPointerUp),r.removeEventListener("pointercancel",this.onPointerUp),r.style.pointerEvents=""}}function iw(t){return t instanceof HTMLElement}function ow(t){return class{constructor(e){ur(this,"params");ur(this,"animItem");ur(this,"wrapper");this.params=e}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const e=this.params.lottie_url;return e?fetch(e).then(n=>{if(!n.ok)throw new Error("Response is not ok");return n.json()}):Promise.reject("Missing data")}getRatio(e){var i;const n=(i=e.getComponentProperty("aspect"))==null?void 0:i.ratio;if(typeof n=="number"&&n>0)return n}getScale(e){const n=e.getComponentProperty("scale");if(n==="stretch")return{attribute:"none",noScale:!1,hAlign:"center",vAlign:"center"};let i=e.getComponentProperty("content_alignment_horizontal"),o=e.getComponentProperty("content_alignment_vertical"),s="Mid",a="Mid";return i==="start"?i=e.direction==="ltr"?"start":"end":i==="end"?i=e.direction==="ltr"?"end":"start":i==="left"?i="start":i==="right"?i="end":i="center",o==="top"?o="start":o==="bottom"?o="end":o="center",n==="no_scale"?{attribute:"xMidYMid meet",noScale:!0,hAlign:i,vAlign:o}:(i==="start"?s="Min":i==="end"&&(s="Max"),o==="start"?a="Min":o==="end"&&(a="Max"),n==="fit"||n==="no_scale"?{attribute:`x${s}Y${a} meet`,noScale:!1,hAlign:i,vAlign:o}:{attribute:`x${s}Y${a} slice`,noScale:!1,hAlign:i,vAlign:o})}getSvg(){var n;const e=(n=this.wrapper)==null?void 0:n.firstElementChild;if(e instanceof SVGElement)return e}setWrapperScale(e){this.wrapper&&(e.noScale?(this.wrapper.style.display="flex",this.wrapper.style.alignItems=e.vAlign,this.wrapper.style.justifyContent=e.hAlign):(this.wrapper.style.display="",this.wrapper.style.alignItems="",this.wrapper.style.justifyContent=""))}setSvgScale(e){const n=this.getSvg();n&&(e.noScale?(n.style.flex="0 0 auto",n.style.width="",n.style.height=""):(n.style.flex="",n.style.width="100%",n.style.height="100%"))}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const i=Array.from(e.children).filter(iw);i.forEach(u=>{u.style.display="none"}),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%";const s=this.getRatio(n),a=this.getScale(n);s&&(this.wrapper.style.aspectRatio=String(s)),this.setWrapperScale(a),e.appendChild(this.wrapper);const l=Number(this.params.repeat_count||-1),c=()=>{var f,h;(f=this.animItem)==null||f.destroy(),i.forEach(p=>{p.style.display=""}),e.removeAttribute("data-lottie"),this.wrapper&&((h=this.wrapper.parentNode)==null||h.removeChild(this.wrapper),this.wrapper=void 0);const u=new Error("Failed to load lottie animation");u.level="error",u.additional={url:this.params.lottie_url},n.logError(u)};this.loadData().then(u=>{const f=this.animItem=t({container:o,animationData:u,renderer:"svg",loop:!0,rendererSettings:{preserveAspectRatio:a.attribute}});if(this.setSvgScale(a),this.animItem.addEventListener("data_failed",c),this.params.repeat_mode==="reverse"||l!==-1){let h=1,p=0;f.addEventListener("loopComplete",()=>{++p,l!==-1&&p===l?(f.stop(),f.goToAndStop(f.totalFrames,!0)):(this.params.repeat_mode==="reverse"&&(h*=-1,f.setDirection(h)),f.goToAndPlay(h===1?0:f.totalFrames,!0))})}}).catch(c)}updateView(e,n){if(!this.wrapper)return;const i=this.getRatio(n);i&&(this.wrapper.style.aspectRatio=String(i));const o=this.getSvg();if(o){const s=this.getScale(n);this.setWrapperScale(s),this.setSvgScale(s),o.setAttribute("preserveAspectRatio",s.attribute)}}unmountView(e,n){var i,o;(i=this.animItem)==null||i.destroy(),this.wrapper&&((o=this.wrapper.parentNode)==null||o.removeChild(this.wrapper),this.wrapper=void 0),e.removeAttribute("data-lottie")}}}function sw(t,r={}){return class{constructor(){ur(this,"prevDOM",null)}recalc(n,i){const o=n.firstElementChild,s=o==null?void 0:o.firstElementChild;if(!s)return;this.prevDOM=o.cloneNode(!0);const a=i.getComponentProperty("text")||"",l=t(a),c=document.createElement("div");c.innerHTML=l,r!=null&&r.cssClass&&c.classList.add(r.cssClass);const u=Array.from(o.childNodes);for(let f=0,h=u.length;f<h;++f){const p=u[f];(p.nodeType!==1||p!==s)&&o.removeChild(p)}s.innerHTML="",s.appendChild(c)}mountView(n,i){this.recalc(n,i)}updateView(n,i){this.recalc(n,i)}unmountView(n){if(this.prevDOM){const i=n.firstElementChild;i&&i.replaceWith(this.prevDOM),this.prevDOM=null}}}}function lw(t){const{target:r,hydrate:e,...n}=t,i=new ew({target:r,props:n,hydrate:e});return{$destroy(){i.$destroy()},execAction(o){i.execAction(o)},setTheme(o){i.setTheme(o)},setData(o){i.setData(o)}}}exports.Gesture=nw;exports.SizeProvider=rw;exports.createGlobalVariablesController=mv;exports.createVariable=pi;exports.lottieExtensionBuilder=ow;exports.markdownExtensionBuilder=sw;exports.render=lw;
|
|
18
18
|
//# sourceMappingURL=client-hydratable.js.map
|