@divkitframework/divkit 29.11.0 → 29.12.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.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(){}t.r(e),t.d(e,{SizeProvider:()=>wd,createGlobalVariablesController:()=>sd,createVariable:()=>$a,lottieExtensionBuilder:()=>kd,render:()=>Cd});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function d(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function u(t,e){return t!=t?e==e:t!==e}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function _(t){return t&&l(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}function C(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}const A="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function j(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class V{constructor(t){j(this,"_listeners","WeakMap"in A?new WeakMap:void 0),j(this,"_observer",void 0),j(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;V.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function D(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}V.entries="WeakMap"in A?new WeakMap:void 0;let F=!1;function P(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function S(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=R("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(S(t),e),e.sheet}function I(t,e){if(F){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:P(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,o=Math.max(s,o)}const i=[],a=[];let s=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function O(t,e,n){t.insertBefore(e,n||null)}function T(t,e,n){F&&!n?I(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function z(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function R(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function U(){return L(" ")}function W(){return L("")}function H(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function q(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const J=["width","height"];function G(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===J.indexOf(r)?t[r]=e[r]:q(t,r,e[r])}function K(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:q(t,e,n)}(t,n,e[n])}))}function X(t){return/-/.test(t)?K:G}function Y(t){return Array.from(t.childNodes)}function Z(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function tt(t,e,n,r){return Q(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function et(t,e,n){return tt(t,e,n,R)}function nt(t,e,n){return tt(t,e,n,B)}function rt(t,e){return Q(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>L(e)),!0)}function ot(t){return rt(t," ")}function it(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function at(t,e){e=""+e,t.data!==e&&(t.data=e)}function st(t,e){t.value=null==e?"":e}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ct(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}class dt{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];D(this,"is_svg",!1),D(this,"e",void 0),D(this,"n",void 0),D(this,"t",void 0),D(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=B(e.nodeName):this.e=R(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)O(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(M)}}class ut extends dt{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),D(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}}function ht(t,e){return new t(e)}const pt=new Map;let ft,gt=0;function mt(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const d=c+"100% {".concat(a(n,1-n),"}\n}"),u="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d),"_").concat(s),h=S(t),{stylesheet:p,rules:f}=pt.get(h)||function(t,e){const n={stylesheet:N(e),rules:{}};return pt.set(t,n),n}(h,t);f[u]||(f[u]=!0,p.insertRule("@keyframes ".concat(u," ").concat(d),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(u," ").concat(r,"ms linear ").concat(o,"ms 1 both"),gt+=1,u}function vt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),gt-=o,gt||x((()=>{gt||(pt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),pt.clear())})))}function yt(t){ft=t}function $t(){if(!ft)throw new Error("Function called outside component initialization");return ft}function _t(t){$t().$$.on_mount.push(t)}function bt(t){$t().$$.after_update.push(t)}function wt(t){$t().$$.on_destroy.push(t)}function xt(t,e){return $t().$$.context.set(t,e),e}function kt(t){return $t().$$.context.get(t)}function Et(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Ct=[],At=[];let jt=[];const Vt=[],Dt=Promise.resolve();let Ft=!1;function Pt(){Ft||(Ft=!0,Dt.then(Mt))}function St(){return Pt(),Dt}function Nt(t){jt.push(t)}const It=new Set;let Ot,Tt=0;function Mt(){if(0!==Tt)return;const t=ft;do{try{for(;Tt<Ct.length;){const t=Ct[Tt];Tt++,yt(t),zt(t.$$)}}catch(t){throw Ct.length=0,Tt=0,t}for(yt(null),Ct.length=0,Tt=0;At.length;)At.pop()();for(let t=0;t<jt.length;t+=1){const e=jt[t];It.has(e)||(It.add(e),e())}jt.length=0}while(Ct.length);for(;Vt.length;)Vt.pop()();Ft=!1,It.clear(),yt(t)}function zt(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Nt)}}function Rt(){return Ot||(Ot=Promise.resolve(),Ot.then((()=>{Ot=null}))),Ot}function Bt(t,e,n){t.dispatchEvent(function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}("".concat(e?"intro":"outro").concat(n)))}const Lt=new Set;let Ut;function Wt(){Ut={r:0,c:[],p:Ut}}function Ht(){Ut.r||s(Ut.c),Ut=Ut.p}function qt(t,e){t&&t.i&&(Lt.delete(t),t.i(e))}function Jt(t,e,n,r){if(t&&t.o){if(Lt.has(t))return;Lt.add(t),Ut.c.push((()=>{Lt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Gt={duration:0};function Kt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),d=!1,u=0;function h(){a&&vt(t,a)}function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Gt;p&&(a=mt(t,0,1,o,e,i,p,u++)),l(0,1);const f=w()+e,g=f+o;s&&s.abort(),d=!0,Nt((()=>Bt(t,!0,"start"))),s=C((e=>{if(d){if(e>=g)return l(1,0),Bt(t,!0,"end"),h(),d=!1;if(e>=f){const t=i((e-f)/o);l(t,1-t)}}return d}))}let f=!1;return{start(){f||(f=!0,vt(t),l(c)?(c=c(i),Rt().then(p)):p())},invalidate(){f=!1},end(){d&&(h(),d=!1)}}}function Xt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Yt(t,e){Jt(t,1,1,(()=>{e.delete(t.key)}))}function Zt(t,e,n,r,o,i,a,l,c,d,u,h){let p=t.length,f=i.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,_=[];for(g=f;g--;){const t=h(o,i,g),s=n(t);let l=a.get(s);l?r&&_.push((()=>l.p(t,e))):(l=d(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const b=new Set,w=new Set;function x(t){qt(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,o=n.key;e===n?(u=e.first,p--,f--):y.has(o)?!a.has(r)||b.has(r)?x(e):w.has(o)?p--:$.get(r)>$.get(o)?(w.add(r),x(e)):(b.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(_),v}function Qt(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let te;function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function re(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oe(t){t&&t.c()}function ie(t,e){t&&t.l(e)}function ae(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),Nt((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(Nt)}function se(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];jt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),jt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function le(t,e,r,o,i,l,c){let d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const u=ft;yt(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:a(),dirty:d,skip_bound:!1,root:e.target||u.$$.root};c&&c(h.root);let p=!1;if(h.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&function(t,e){-1===t.$$.dirty[0]&&(Ct.push(t),Pt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){F=!0;const t=Y(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&qt(t.$$.fragment),ae(t,e.target,e.anchor),F=!1,Mt()}yt(u)}function ce(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(te=class extends HTMLElement{constructor(t,e,n){super(),re(this,"$$ctor",void 0),re(this,"$$s",void 0),re(this,"$$c",void 0),re(this,"$$cn",!1),re(this,"$$d",{}),re(this,"$$r",!1),re(this,"$$p_d",{}),re(this,"$$l",{}),re(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=R("slot"),"default"!==t&&q(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&M(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=ce(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ne(ne({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=ce(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ce(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class de{constructor(){re(this,"$$",void 0),re(this,"$$set",void 0)}$destroy(){se(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ue=[];function he(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ue.length;for(const e of o)e[1](),ue.push(e,t);if(e){for(let t=0;t<ue.length;t+=2)ue[t][0](ue[t+1]);ue.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function pe(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const d=[];let u=0,p=n;const f=()=>{if(u)return;p();const i=e(o?d[0]:d,t,r);a?t(i):p=l(i)?i:n},g=i.map(((t,e)=>h(t,(t=>{d[e]=t,u&=~(1<<e),c&&f()}),(()=>{u|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:he(r,c).subscribe};var c}const fe={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},ge=Symbol("root");function me(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}const ve={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ye={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function $e(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function _e(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function be(t){let e=_e(t);return"0"===e&&(e+="em"),e}function we(t,e){for(;t.length<e;)t="0"+t;return t}function xe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=ke(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>we(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function ke(t){const e=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(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function Ee(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const Ce=Boolean;function Ae(t){if(1===t.length&&"solid"===t[0].type)return{color:xe(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=xe(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Ce);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>xe(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:De(t.bg.scale),pos:Fe(t.bg),image:'url("'+Ee(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Ce);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=be(r.value):"relative"===r.type&&(o=je[r.value]));const i=Ve(t.bg.center_x),a=Ve(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>xe(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ce).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const je={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return be(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function De(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Fe(t){let e,n;return e="left"===t.content_alignment_horizontal?"0%":"right"===t.content_alignment_horizontal?"100%":"50%",n="top"===t.content_alignment_vertical?"0%":"bottom"===t.content_alignment_vertical?"100%":"50%",e+" "+n}function Pe(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Se(t,e){return e.has(t)}function Ne(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function Ie(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Oe(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Te(t,e){e&&t.push(e)}function Me(t,e,n){const r=[];Te(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Te(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const ze=Symbol("state");function Re(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":_e(o)+" "+_e(i)+" "+_e(a)+" "+_e(s)}function Be(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function Le(t){return Be(t)&&t>=0}function Ue(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!Le(i[t]))return n;return Re(t,e)}const We=Object.prototype.hasOwnProperty;function He(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!We.call(e,o)||!He(t[o],e[o]))return!1}return!0}function qe(t,e){return He(t,e)?e:t}function Je(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ge(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Ke(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ke(t))})):e.push(t),e}function Xe(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Le(t[n[r]]))return e;return t}function Ye(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>_e((t||e)/n*10))).join(" ")}function Ze(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Qe;function tn(){return"undefined"!=typeof matchMedia&&(Qe||(Qe=window.matchMedia("(prefers-reduced-motion)")),Qe.matches)}function en(){}const nn=Symbol("action");function rn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function on(t){var e;let n,r,i,a,l,c,d,u;const h=t[18].default,p=f(h,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?fe.root__clickable:fe["root__clickable-no-transition"]," ").concat(fe.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?fe["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=R("span"),p&&p.c(),this.h()},l(t){n=et(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Y(n);p&&p.l(e),e.forEach(M),this.h()},h(){G(n,$)},m(e,r){T(e,n,r),p&&p.m(n,null),t[26](n),c=!0,d||(u=[_(l=t[4].call(null,n)),H(n,"click",t[22]),H(n,"keydown",t[10]),H(n,"focus",t[23]),H(n,"blur",t[24])],d=!0)},p(t,e){var o;p&&p.p&&(!c||131072&e[0])&&v(p,h,t,t[17],c?m(h,t[17],e,null):y(t[17]),null),G(n,$=Qt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?fe.root__clickable:fe["root__clickable-no-transition"]," ").concat(fe.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?fe["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(qt(p,t),c=!0)},o(t){Jt(p,t),c=!1},d(e){e&&M(n),p&&p.d(e),t[26](null),d=!1,s(u)}}}function an(t){var e;let n,r,i,a,l,c;const d=t[18].default,u=f(d,t,t[17],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?fe.root__clickable:fe["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?fe["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=o(p,h[t]);return{c(){n=R("a"),u&&u.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Y(n);u&&u.l(e),e.forEach(M),this.h()},h(){G(n,p)},m(e,r){T(e,n,r),u&&u.m(n,null),t[25](n),a=!0,l||(c=[_(i=t[4].call(null,n)),H(n,"click",t[19]),H(n,"keydown",t[10]),H(n,"focus",t[20]),H(n,"blur",t[21])],l=!0)},p(t,e){var o;u&&u.p&&(!a||131072&e[0])&&v(u,d,t,t[17],a?m(d,t[17],e,null):y(t[17]),null),G(n,p=Qt(h,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?fe.root__clickable:fe["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?fe["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(qt(u,t),a=!0)},o(t){Jt(u,t),a=!1},d(e){e&&M(n),u&&u.d(e),t[25](null),l=!1,s(c)}}}function sn(t){let e,n,r,o;const i=[an,on],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=W()},l(t){n.l(t),r=W()},m(t,n){a[e].m(t,n),T(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(Wt(),Jt(a[l],1,1,(()=>{a[l]=null})),Ht(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),qt(n,1),n.m(r.parentNode,r))},i(t){o||(qt(n),o=!0)},o(t){Jt(n),o=!1},d(t){t&&M(r),a[e].d(t)}}}function ln(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:d=""}=e,{style:u=null}=e,{attrs:h}=e,{use:p=en}=e,{customAction:f=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=kt(ge),y=kt(nn);let $;xt(nn,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let _,b="",w=-1,x=null,k=!1,E=!1;async function C(t){y.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==f?void 0:f(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Pe(e);return n&&!Se(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s)))}function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0})}function j(t){t.touches.length>1||(x=rn(t),k=!1,w=Date.now())}function V(t){if(!x)return;const e=rn(t);(Math.abs(x.x-e.x)>8||Math.abs(x.y-e.y)>8)&&(k=!0)}function D(){!x||w<0||(!k&&Date.now()-w>=400&&i.execAnyActions(c,{processUrls:!0}),x=null,w=-1)}return _t((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(b||E)&&$.focus()}})})),wt((()=>{a&&!m&&v.unregisterFocusable(a)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,d=t.cls),"style"in t&&n(2,u=t.style),"attrs"in t&&n(3,h=t.attrs),"use"in t&&n(4,p=t.use),"customAction"in t&&n(15,f=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,b=e),n(9,_=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,b=""),i.logError(me(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(f)),b&&!Se(Pe(b),v.getBuiltinProtocols())?(n(7,b=""),n(8,E=!0)):!b&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed))||i.logError(me(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(b||E?$.addEventListener("click",C):$.removeEventListener("click",C),(null==l?void 0:l.length)?$.addEventListener("dblclick",A):$.removeEventListener("dblclick",A),(null==c?void 0:c.length)?($.addEventListener("touchstart",j,{passive:!0}),$.addEventListener("touchmove",V,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",j),$.removeEventListener("touchmove",V),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,d,u,h,p,g,$,b,E,_,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,f,m,o,r,function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(t){At[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){At[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const cn=class extends de{constructor(t){super(),le(this,t,ln,sn,u,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},dn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function un(t){return Be(t)&&t>0}function hn(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(un(t.radius))return"blur(".concat(be(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(me(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(me(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function pn(t,e,n){const r=t.slice();return r[6]=e[n],r}function fn(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=dn["outer-background__item"]),q(e,"style",r=$e(t[6].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=$e(t[6].style))&&q(e,"style",r)},d(t){t&&M(e)}}}function gn(t){let e,n,r,o,i,a;return{c(){e=R("img"),this.h()},l(t){e=et(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){d(e.src,n=t[6].image_url)||q(e,"src",n),q(e,"alt",""),q(e,"aria-hidden","true"),q(e,"loading","lazy"),q(e,"decoding","async"),q(e,"class",r=dn["outer-background__item"]),q(e,"style",o=$e(t[6].style))},m(n,r){T(n,e,r),i||(a=H(e,"error",t[2]),i=!0)},p(t,r){2&r&&!d(e.src,n=t[6].image_url)&&q(e,"src",n),2&r&&o!==(o=$e(t[6].style))&&q(e,"style",o)},d(t){t&&M(e),i=!1,a()}}}function mn(t){let e;function n(t,e){return t[6].image_url?gn:fn}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function vn(t){let e,r,o=Xt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=mn(pn(t,o,e));return{c(){e=R("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=Y(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(M),this.h()},h(){q(e,"class",r=dn["outer-background"]+(t[0]?" "+dn["outer-background_clip"]:"")),lt(e,"border-radius",t[0])},m(t,n){T(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=Xt(t[1]),n=0;n<o.length;n+=1){const r=pn(t,o,n);i[n]?i[n].p(r,a):(i[n]=mn(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=dn["outer-background"]+(t[0]?" "+dn["outer-background_clip"]:""))&&q(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(i,t)}}}function yn(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=Ae([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=hn(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(dn["outer-background__item_hidden"])},o,i,a]}const $n=class extends de{constructor(t){super(),le(this,t,yn,vn,u,{direction:3,componentContext:4,background:5,radius:0})}},_n=t=>({hasCustomFocus:256&t[0]}),bn=t=>({focusHandler:t[40],blurHandler:t[41],hasCustomFocus:t[8]});function wn(t){let e,n;return e=new cn({props:{componentContext:t[0],id:t[0].json.id,use:t[39],cls:t[1]+" "+Me("outer",ye,t[18]),style:$e(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Dn(t[7]),$$slots:{default:[En]},$$scope:{ctx:t}}}),e.$on("focus",t[40]),e.$on("blur",t[41]),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Me("outer",ye,t[18])),131072&n[0]&&(r.style=$e(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Dn(t[7])),2937&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function xn(t){let e,n;return e=new $n({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function kn(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=ye.outer__border),q(e,"style",r=$e(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=$e(t[3]))&&q(e,"style",r)},d(t){t&&M(e)}}}function En(t){let e,n,r,o=t[6]&&xn(t);const i=t[120].default,a=f(i,t,t[121],bn);let s=t[11]&&kn(t);return{c(){o&&o.c(),e=W(),a&&a.c(),s&&s.c(),n=W()},l(t){o&&o.l(t),e=W(),a&&a.l(t),s&&s.l(t),n=W()},m(t,i){o&&o.m(t,i),T(t,e,i),a&&a.m(t,i),s&&s.m(t,i),T(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&qt(o,1)):(o=xn(t),o.c(),qt(o,1),o.m(e.parentNode,e)):o&&(Wt(),Jt(o,1,1,(()=>{o=null})),Ht()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&v(a,i,t,t[121],r?m(i,t[121],l,_n):y(t[121]),bn),t[11]?s?s.p(t,l):(s=kn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(qt(o),qt(a,t),r=!0)},o(t){Jt(o),Jt(a,t),r=!1},d(t){t&&(M(e),M(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function Cn(t){let e,n,r=!t[12]&&!t[13]&&wn(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),12288&n[0]&&qt(r,1)):(r=wn(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const An={left:"start",center:"center",right:"end",start:"start",end:"end"},jn={left:"end",center:"center",right:"start",start:"start",end:"end"},Vn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Dn(t){return t.some((t=>"native"===t.name))}function Fn(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,dt=n,ut=n,ht=n,pt=n,ft=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft()));let{$$slots:gt={},$$scope:mt}=e,{componentContext:vt}=e,{cls:yt=""}=e,{style:$t}=e,{layoutParams:_t={}}=e,{customDescription:xt=!1}=e,{customPaddings:Et=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:jt=!1}=e,{parentOf:Vt}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:Ft}=e,{hasInnerFocusable:Pt=!1}=e;const Nt=kt(ge),It=kt(ze),Ot=Nt.isPointerFocus;p(t,Ot,(t=>r(127,F=t)));const Tt=Nt.direction;let Mt,zt;p(t,Tt,(t=>r(9,J=t)));let Rt,Bt,Lt,Ut,Wt,Ht,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ee,ne,re,oe,ie,ae=null,se=[],le={},ce={},de=!1,ue=1,he="transparent",fe=0,ve={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ye="",$e=null,we="",ke={},Ee=0,je=0,Ve=0,De=!1,Fe=!1,Te={},Me=0,Be=0,We=0,Qe=!1,en=!1,nn=1,rn=[],on=!1,an=!1,sn=[],ln=[],cn=[],dn=[],un=[],hn=[],pn="",fn=!1,gn="visible",mn=0,vn=0,yn=!1,$n=null;function _n(t,e){if(!Array.isArray(Vt)||!Ft)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Vt.findIndex((e=>(null==e?void 0:e.id)===t)),o=Vt.slice();o.splice(n,1,...e||[]),r(42,Vt=o),Ft(o)}function bn(t){const e=Ge(t.start_value,1),n=Ge(t.end_value,1),o=Ne(t.start_delay,0),i=tn()?0:Ne(t.duration,300),a=Je(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(86,Qt=e),r(87,te=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(88,ee=e),r(89,ne=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return vt.logError(me(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function wn(){if(ae&&Mt){const t=Nt.getExtensionContext();ae.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Mt,t)})),ae=null}}return bt((function(){$n&&$n.update(vt)})),wt((()=>{var t;se.forEach((t=>{Nt.unregisterParentOf(t)})),r(53,se=[]),null===(t=vt.json.tooltips)||void 0===t||t.forEach((t=>{Nt.unregisterTooltip(t)})),wn()})),t.$$set=t=>{"componentContext"in t&&r(0,vt=t.componentContext),"cls"in t&&r(1,yt=t.cls),"style"in t&&r(43,$t=t.style),"layoutParams"in t&&r(44,_t=t.layoutParams),"customDescription"in t&&r(45,xt=t.customDescription),"customPaddings"in t&&r(46,Et=t.customPaddings),"customActions"in t&&r(47,Ct=t.customActions),"additionalPaddings"in t&&r(48,At=t.additionalPaddings),"heightByAspect"in t&&r(49,jt=t.heightByAspect),"parentOf"in t&&r(42,Vt=t.parentOf),"parentOfSimpleMode"in t&&r(50,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(51,Ft=t.replaceItems),"hasInnerFocusable"in t&&r(2,Pt=t.hasInnerFocusable),"$$scope"in t&&r(121,mt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&vt.json&&_t&&(r(59,$e=null),r(60,we=""),r(77,nn=1),r(90,fn=!1),r(91,gn="visible"),r(92,mn=0),r(93,vn=0),r(94,re=void 0),r(95,oe=void 0),r(80,rn=vt.fakeElement?[]:vt.json.transition_triggers||["state_change","visibility_change"]),r(81,on=Boolean(-1!==rn.indexOf("state_change")&&vt.json.id)),an=Boolean(-1!==rn.indexOf("visibility_change")&&vt.json.id)),1&t.$$.dirty[0]&&(r(36,o=vt.getDerivedFromVars(vt.json.focus)),tt(),tt=h(o,(t=>r(105,I=t)))),1&t.$$.dirty[0]&&(r(35,i=vt.getDerivedFromVars(vt.json.border)),ft(),ft=h(i,(t=>r(119,X=t)))),1&t.$$.dirty[0]&&(r(34,a=vt.getDerivedFromVars(vt.json.paddings)),pt(),pt=h(a,(t=>r(118,K=t)))),1&t.$$.dirty[0]&&(r(33,s=vt.getDerivedFromVars(vt.json.margins)),ut(),ut=h(s,(t=>r(116,q=t)))),1&t.$$.dirty[0]&&(r(32,l=vt.getDerivedFromVars(vt.json.width)),ct(),ct=h(l,(t=>r(114,W=t)))),1&t.$$.dirty[0]&&(r(31,c=vt.getDerivedFromVars(vt.json.alignment_horizontal)),ht(),ht=h(c,(t=>r(117,G=t)))),1&t.$$.dirty[0]&&(r(30,d=vt.getDerivedFromVars(vt.json.height)),lt(),lt=h(d,(t=>r(113,U=t)))),1&t.$$.dirty[0]&&(r(29,u=vt.getDerivedFromVars(vt.json.alignment_vertical)),dt(),dt=h(u,(t=>r(115,H=t)))),1&t.$$.dirty[0]&&(r(28,f=vt.getDerivedFromVars(vt.json.alpha)),st(),st=h(f,(t=>r(112,L=t)))),1&t.$$.dirty[0]&&(r(27,g=vt.getDerivedFromVars(vt.json.accessibility)),at(),at=h(g,(t=>r(111,B=t)))),1&t.$$.dirty[0]&&(r(26,m=vt.getDerivedFromVars(vt.json.background)),it(),it=h(m,(t=>r(110,R=t)))),1&t.$$.dirty[0]&&(r(25,v=vt.getDerivedFromVars(vt.json.action)),rt(),rt=h(v,(t=>r(108,M=t)))),1&t.$$.dirty[0]&&(r(24,y=vt.getDerivedFromVars(vt.json.actions)),ot(),ot=h(y,(t=>r(109,z=t)))),1&t.$$.dirty[0]&&(r(23,$=vt.getDerivedFromVars(vt.json.doubletap_actions)),nt(),nt=h($,(t=>r(107,T=t)))),1&t.$$.dirty[0]&&(r(22,_=vt.getDerivedFromVars(vt.json.longtap_actions)),et(),et=h(_,(t=>r(106,O=t)))),1&t.$$.dirty[0]&&(r(21,b=vt.getDerivedFromVars(vt.json.action_animation)),Q(),Q=h(b,(t=>r(104,N=t)))),1&t.$$.dirty[0]&&(r(20,w=vt.getDerivedFromVars(vt.json.visibility)),Z(),Z=h(w,(t=>r(103,S=t)))),1&t.$$.dirty[0]&&(r(19,x=vt.getDerivedFromVars(vt.json.transform)),Y(),Y=h(x,(t=>r(102,P=t)))),4720640&t.$$.dirty[1]&&(se.forEach((t=>{Nt.unregisterParentOf(t)})),r(53,se=[]),Vt&&Vt.forEach((t=>{(null==t?void 0:t.id)&&(se.push(t.id),Nt.registerParentOf(t.id,{replaceWith:_n,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=yn&&(null==I?void 0:I.border)?I.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return _e((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+_e((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+_e(null!==(i=t.blur)&&void 0!==i?i:2)+" "+xe(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(55,ue=Ne(t.stroke.width,ue)),r(56,he=xe(t.stroke.color,1,he)),n["--divkit-border"]="".concat(_e(ue+1)," solid ").concat(he)),t.corners_radius?(r(58,ve=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Le(n[t]))return e;return t}(t.corners_radius,ve)),e["border-radius"]=Ye(ve),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(58,ve[t]=(ve[t]||0)+1,ve)})),n["--divkit-border-radius"]=Ye(ve)):t.corner_radius&&(r(57,fe=Ne(t.corner_radius,fe)),r(58,ve={"top-left":fe,"top-right":fe,"bottom-right":fe,"bottom-left":fe}),e["border-radius"]=_e(fe),n["--divkit-border-radius"]=_e(fe+1)),o&&ue&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ve);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ue/2})),i=Ye(t)}}r(54,le=qe(e,le)),r(3,ce=qe(n,ce)),r(11,de=o),r(4,ye=i)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&r(59,$e=Xe(K&&!Et?K:void 0,$e)),512&t.$$.dirty[0]|268566528&t.$$.dirty[1]&&r(98,k=Re(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}($e,At),J)),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&r(60,we=Ue(q,J,we)),513&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|8&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const d=null==W?void 0:W.type;if("fixed"===d)r(65,Ee=Ne(null==W?void 0:W.value,Ee)),e=_e(Ee);else if("wrap_content"===d||("match_parent"===d||!d)&&_t.parentHorizontalWrapContent){if(t="content",("wrap_content"===d&&(null==W?void 0:W.constrained)||("match_parent"===d||!d)&&_t.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===_t.parentContainerOrientation&&(s=1)),"wrap_content"===d){const t=W;t.min_size&&Le(t.min_size.value)&&(n=_e(t.min_size.value)),t.max_size&&Le(t.max_size.value)&&(o=_e(t.max_size.value))}"match_parent"!==d&&d||vt.logError(me(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===_t.parentContainerOrientation&&_t.parentContainerWrap&&(c=!0,vt.logError(me(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===_t.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===_t.parentContainerOrientation&&(a=W&&"weight"in W&&W.weight||1,_t.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?An:jn)[t]:_t.parentHAlign||"start"}t&&(i.width=t),r(62,Rt=e),r(63,Bt=n),r(64,Lt=o),r(66,je=a),r(67,Ve=s),r(61,ke=qe(i,ke)),r(68,De=l),r(12,Fe=c)}if(1&t.$$.dirty[0]|270336&t.$$.dirty[1]|2176&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const d=null==U?void 0:U.type;if(jt);else if("fixed"===d)r(73,Me=Ne(null==U?void 0:U.value,Me)),e=_e(Me);else if("match_parent"!==d||_t.parentVerticalWrapContent){if(t="content",("wrap_content"===d&&(null==U?void 0:U.constrained)||"match_parent"===d&&_t.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===_t.parentContainerOrientation&&(s=1)),"wrap_content"===d){const t=U;(null==t?void 0:t.min_size)&&Le(t.min_size.value)&&(n=_e(t.min_size.value)),(null==t?void 0:t.max_size)&&Le(t.max_size.value)&&(o=_e(t.max_size.value))}"match_parent"===d&&vt.logError(me(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===_t.parentContainerOrientation&&_t.parentContainerWrap&&(c=!0,vt.logError(me(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===_t.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===_t.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,_t.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===_t.parentContainerOrientation?i["valign-self"]=Vn[t]:i["valign-self"]=_t.parentVAlign||"start"}t&&(i.height=t),r(70,Ut=e),r(71,Wt=n),r(72,Ht=o),r(74,Be=a),r(75,We=s),r(69,Te=qe(i,Te)),r(76,Qe=l),r(13,en=c)}var e,n;if(8192&t.$$.dirty[1]&&r(101,E=!!_t.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,C=_t.overlapParent&&(!W||"match_parent"===W.type)&&!_t.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!_t.parentVerticalWrapContent),8192&t.$$.dirty[1]&&r(99,A=_t.gridArea?"".concat(_t.gridArea.y+1,"/").concat(_t.gridArea.x+1,"/span ").concat(_t.gridArea.rowSpan,"/span ").concat(_t.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(77,(n=nn,nn=!Le(e=L)||void 0===e||e>1?n:Number(e))),r(78,qt=1===nn?void 0:nn)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(10,zt=void 0),B&&!xt&&B.description&&(r(10,zt={}),r(10,zt["aria-label"]=B.description,zt))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(5,Jt=yn&&(null==I?void 0:I.background)?I.background:R),r(79,Gt={}),r(6,Kt=!1),Array.isArray(Jt)&&(r(6,Kt=Jt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ye)),!Kt))){const t=Ae(Jt);r(79,Gt["background-color"]=t.color,Gt),r(79,Gt["background-image"]=t.image,Gt),r(79,Gt["background-size"]=t.size,Gt),r(79,Gt["background-position"]=t.position,Gt),r(79,Gt["background-repeat"]="no-repeat",Gt)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(82,Xt=void 0),on&&vt.json.transition_in&&Nt.isRunning("stateChange")&&r(82,Xt=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(84,Zt=void 0),on&&vt.json.transition_change&&Nt.isRunning("stateChange")&&It.hasTransitionChange(vt.json.id)&&r(84,Zt=!0)),1&t.$$.dirty[0]|65536&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],o=(null==I?void 0:I.on_focus)||[],i=(null==I?void 0:I.on_blur)||[];vt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],vt.logError(me(new Error("Actions should be array")))),Array.isArray(e)||(e=[],vt.logError(me(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],vt.logError(me(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],vt.logError(me(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],vt.logError(me(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Ct&&(t=[],e=[],n=[],vt.logError(me(new Error('Cannot use action on component "'.concat(Ct,'"'))))),r(14,sn=t.filter(Ze)),r(15,ln=e.filter(Ze)),r(16,cn=n.filter(Ze)),dn=o.filter(Ze),un=i.filter(Ze)}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&N&&(r(7,hn=Ke(N)),r(85,pn=hn.map(bn).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=gn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,gn);t!==e&&(!fn||"visible"!==gn&&"visible"!==e?r(91,gn=e):async function(t){r(91,gn=t);const e="visible"===t?"in":"out",n="in"===e?vt.json.transition_in:vt.json.transition_out;an&&n&&(await St(),"in"===e&&r(83,Yt=!0),It.runVisibilityTransition(Object.assign(Object.assign({},vt.json),{visibility:"visible"}),vt,n,Mt,e).then((()=>{"in"===e&&r(83,Yt=!1)})).catch((t=>{throw"in"===e&&r(83,Yt=!1),t})))}(e)),fn||r(90,fn=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&&vt.json&&Mt&&!He(vt.json.extensions,ie)){let t=r(96,ie=vt.json.extensions);St().then((()=>{if(t===ie&&Mt&&(wn(),Array.isArray(vt.json.extensions))){const t=Nt.getExtensionContext();ae=vt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Nt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Mt,t)),o})).filter(Ce)}}))}if(257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(18,j=Object.assign(Object.assign(Object.assign({},ke),Te),{"parent-overlap":E,"parent-overlap-absolute":C,"scroll-snap":_t.scrollSnap,"hide-on-transition-in":Xt||Yt||Zt,visibility:gn,"has-action-animation":Boolean(pn),"parent-flex":_t.parentContainerOrientation||void 0,"parent-grid":Boolean(_t.gridArea)||void 0,"has-custom-focus":Boolean(yn&&vt.json.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&P&&void 0!==P.rotation){const t=P.pivot_x||{type:"pivot-percentage",value:50};r(92,mn=Ge(t.value,mn));const e="pivot-fixed"===t.type?_e(mn):"".concat(mn,"%"),n=P.pivot_y||{type:"pivot-percentage",value:50};r(93,vn=Ge(n.value,vn));const o="pivot-fixed"===n.type?_e(vn):"".concat(vn,"%");r(94,re="".concat(e," ").concat(o)),r(95,oe="rotate(".concat(P.rotation,"deg)"))}20560&t.$$.dirty[2]&&r(97,V=De||Qe?"100%":je||Be?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&r(17,D=Object.assign(Object.assign(Object.assign(Object.assign({},$t),Gt),le),{width:Rt,"min-width":Bt,"max-width":Lt,height:Ut,"min-height":Wt,"max-height":Ht||(null==$t?void 0:$t["max-height"]),"grid-area":A,padding:k,margin:we,opacity:qt,transition:pn,"transform-origin":re,transform:oe,"flex-grow":je||Be||void 0,"flex-shrink":Ve||We?1:void 0,"flex-basis":V,"--divkit-animation-opacity-start":Qt,"--divkit-animation-opacity-end":te,"--divkit-animation-scale-start":ee,"--divkit-animation-scale-end":ne}))},[vt,yt,Pt,ce,ye,Jt,Kt,hn,yn,J,zt,de,Fe,en,sn,ln,cn,D,j,x,w,b,_,$,y,v,m,g,f,u,d,c,l,s,a,i,o,Ot,Tt,function(t){var e;r(52,Mt=t),on&&vt.json.transition_in&&It.registerChildWithTransitionIn(vt.json,vt,vt.json.transition_in,t).then((()=>{r(82,Xt=!1)})).catch((t=>{throw r(82,Xt=!1),t})),on&&vt.json.transition_out&&It.registerChildWithTransitionOut(vt.json,vt,vt.json.transition_out,t),on&&vt.json.transition_change&&It.registerChildWithTransitionChange(vt.json,vt,vt.json.transition_change,t).then((()=>{r(84,Zt=!1)})).catch((t=>{throw r(84,Zt=!1),t}));const n=vt.fakeElement?[]:vt.json.visibility_actions||vt.json.visibility_action&&[vt.json.visibility_action],o=vt.fakeElement?[]:vt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},d=pe(s,(t=>t)).subscribe((e=>{const n=e.filter(Oe),r={};n.forEach((t=>{r[t.index]=t})),c();const s=[...new Set(n.map((t=>{const e="visibility"===a[t.index].type;return Ie(e,t.visibility_percentage,e?50:0)/100})))];s.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{n.forEach((e=>{const n=a[e.index],r="visibility"===n.type,s=Ie(r,e.visibility_percentage,r?50:0);let l;l=0===s?t.intersectionRatio>=1e-12:t.intersectionRatio>=s/100;const c=r?!n.visible&&l:n.visible&&!l,d=r?!l:l;c?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0);const a=i.getJsonWithVars(n.action),s=a.url,l=a.typed;if(s){const t=Pe(s);t&&!Se(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(a):a.log_id&&o.execCustomAction(a))}else l&&o.execAction(a);o.logStat(r?"visible":"disappear",a)}),Ne(e.visibility_duration,800))):d&&n.timer&&clearTimeout(n.timer),n.visible=l}))}))}),{threshold:s}),l.observe(t))}));return{destroy(){c(),d()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Nt,componentContext:vt}));const a=vt.json.id;return a&&It.registerChild(a),null===(e=vt.json.tooltips)||void 0===e||e.forEach((e=>{Nt.registerTooltip(t,e)})),{destroy(){a&&It.unregisterChild(a),i&&i.destroy(),$n&&$n.destroy()}}},function(){vt.json.focus&&(F||r(8,yn=!0),vt.execAnyActions(dn))},function(){vt.json.focus&&(r(8,yn=!1),vt.execAnyActions(un))},Vt,$t,_t,xt,Et,Ct,At,jt,Dt,Ft,Mt,se,le,ue,he,fe,ve,$e,we,ke,Rt,Bt,Lt,Ee,je,Ve,De,Te,Ut,Wt,Ht,Me,Be,We,Qe,nn,qt,Gt,rn,on,Xt,Yt,Zt,pn,Qt,te,ee,ne,fn,gn,mn,vn,re,oe,ie,V,k,A,C,E,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q,G,K,X,gt,mt]}const Pn=class extends de{constructor(t){super(),le(this,t,Fn,Cn,u,{componentContext:0,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:42,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Sn={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Nn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function In(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function On(t,e){return In(t)||e}function Tn(t){let e,n;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Sn["text-range__top-offset"]),lt(e,"margin-top",t[5])},m(t,n){T(t,e,n)},p(t,n){32&n&&lt(e,"margin-top",t[5])},d(t){t&&M(e)}}}function Mn(t){let e;return{c(){e=L(t[1])},l(n){e=rt(n,t[1])},m(t,n){T(t,e,n)},p(t,n){2&n&&at(e,t[1])},d(t){t&&M(e)}}}function zn(t){let e,n,r,o=t[5]&&Tn(t);return n=new cn({props:{componentContext:t[0],cls:Me("text-range",Sn,t[4]),actions:t[2],style:$e(t[3]),$$slots:{default:[Mn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=W(),oe(n.$$.fragment)},l(t){o&&o.l(t),e=W(),ie(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),T(t,e,i),ae(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Tn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Me("text-range",Sn,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=$e(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(qt(n.$$.fragment,t),r=!0)},o(t){Jt(n.$$.fragment,t),r=!1},d(t){t&&M(e),o&&o.d(t),se(n,t)}}}function Rn(t,e,n){let r,o,i,a,s,l;var c,d;let{componentContext:u}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=kt(ge);let y,$="none",_=12,b=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"text"in t&&n(1,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&u.json&&(n(11,$="none"),n(12,_=12),n(13,b=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,_=Nn(f.font_size,_)),4224&t.$$.dirty&&un(f.line_height)&&n(13,b=Number(f.line_height)/_),128&t.$$.dirty&&Le(f.letter_spacing)&&n(14,w=_e(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=On(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=xe(f.text_color,1,k)),128&t.$$.dirty&&n(5,r=f.top_offset?_e(f.top_offset):""),128&t.$$.dirty&&n(20,o=f.background?Ae([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==xe(f.border.stroke.color)&&un(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,i=Nn(null===n(10,d=f.border)||void 0===d?void 0:d.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+xe(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+_e(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+_e(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+_e(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,_):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":_e(10*_/p),"line-height":b,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat(_e(E.width)," ").concat(E.color):void 0,"border-radius":i?_e(i):void 0})},[u,h,m,l,s,r,p,f,g,c,d,$,_,b,w,y,x,k,E,i,o,a]}const Bn=class extends de{constructor(t){super(),le(this,t,Rn,zn,u,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Ln(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Un(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Wn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Hn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function qn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function Jn(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=qn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:Gn}=A;function Kn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Xn(t){let e,n;return e=new Bn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[29],singleline:t[6]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),536870912&n[0]&&(r.textStyles=t[29]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Yn(t){let e,n,r=Xt(t[10]),o=[];for(let e=0;e<r.length;e+=1)o[e]=er(Kn(t,r,e));const i=t=>Jt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(1353&n[0]|1&n[1]){let a;for(r=Xt(t[10]),a=0;a<r.length;a+=1){const i=Kn(t,r,a);o[a]?(o[a].p(i,n),qt(o[a],1)):(o[a]=er(i),o[a].c(),qt(o[a],1),o[a].m(e.parentNode,e))}for(Wt(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)qt(o[t]);n=!0}},o(t){o=o.filter(Gn);for(let t=0;t<o.length;t+=1)Jt(o[t]);n=!1},d(t){t&&M(e),z(o,t)}}}function Zn(t){let e,r,o,i,a,s,l,c,u;return{c(){e=R("span"),r=R("img"),this.h()},l(t){e=et(t,"SPAN",{style:!0});var n=Y(e);r=et(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(M),this.h()},h(){q(r,"class",o=ve.text__image),d(r.src,i=t[60].image.url)||q(r,"src",i),q(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),q(r,"decoding","async"),q(r,"aria-hidden","true"),q(r,"alt",""),q(r,"style",s=$e({width:t[60].image.width,height:t[60].image.height,"margin-top":t[8]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),q(e,"style",l=$e(t[60].image.wrapperStyle))},m(n,o){T(n,e,o),I(e,r),c||(u=H(r,"error",t[31]),c=!0)},p(t,n){1024&n[0]&&!d(r.src,i=t[60].image.url)&&q(r,"src",i),1024&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&q(r,"loading",a),1280&n[0]&&s!==(s=$e({width:t[60].image.width,height:t[60].image.height,"margin-top":t[8]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&q(r,"style",s),1024&n[0]&&l!==(l=$e(t[60].image.wrapperStyle))&&q(e,"style",l)},i:n,o:n,d(t){t&&M(e),c=!1,u()}}}function Qn(t){let e,n,r=t[60].text&&tr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),1024&n[0]&&qt(r,1)):(r=tr(t),r.c(),qt(r,1),r.m(e.parentNode,e)):r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function tr(t){let e,n;return e=new Bn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1024&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),1024&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),1024&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function er(t){let e,n,r,o;const i=[Qn,Zn],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=W()},l(t){n&&n.l(t),r=W()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(Wt(),Jt(a[l],1,1,(()=>{a[l]=null})),Ht()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),qt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(qt(n),o=!0)},o(t){Jt(n),o=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function nr(t){let e,n,r,o,i,a,s,c,d;const u=[Yn,Xn],h=[];function p(t,e){return t[10].length?0:1}return n=p(t),r=h[n]=u[n](t),{c(){e=R("span"),r.c(),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0});var n=Y(e);r.l(n),n.forEach(M),this.h()},h(){q(e,"class",o=Me("text__inner",ve,t[12])),q(e,"style",i=$e(t[11]))},m(r,o){T(r,e,o),h[n].m(e,null),s=!0,c||(d=_(a=Jn.call(null,e,{enabled:t[7],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[9]})),c=!0)},p(t,c){let d=n;n=p(t),n===d?h[n].p(t,c):(Wt(),Jt(h[d],1,1,(()=>{h[d]=null})),Ht(),r=h[n],r?r.p(t,c):(r=h[n]=u[n](t),r.c()),qt(r,1),r.m(e,null)),(!s||4096&c[0]&&o!==(o=Me("text__inner",ve,t[12])))&&q(e,"class",o),(!s||2048&c[0]&&i!==(i=$e(t[11])))&&q(e,"style",i),a&&l(a.update)&&656&c[0]&&a.update.call(null,{enabled:t[7],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[9]})},i(t){s||(qt(r),s=!0)},o(t){Jt(r),s=!1},d(t){t&&M(e),h[n].d(),c=!1,d()}}}function rr(t){let e,n;return e=new Pn({props:{cls:Me("text",ve,t[13])+" "+(t[5]?"":fe.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[nr]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};8224&n[0]&&(r.cls=Me("text",ve,t[13])+" "+(t[5]?"":fe.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),536879069&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function or(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=kt(ge),lt=st.direction;p(t,lt,(t=>r(52,M=t)));let ct,dt="",ut=12,ht=1.25,pt=!1,ft="",gt="",mt=!1,vt="start",yt="start",$t="",_t="",bt="",xt=!1,Et=[],Ct=[];return wt((()=>{Ct.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ut=12),r(32,ht=1.25),r(8,pt=!1),r(33,ft=""),r(9,ct=void 0),r(4,gt=""),r(34,mt=!1),r(35,vt="start"),r(36,yt="start"),r(37,$t=""),r(39,bt=""),r(5,xt=!1)),1&t.$$.dirty[0]&&(r(28,o=it.getDerivedFromVars(it.json.text)),ot(),ot=h(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(27,i=it.getDerivedFromVars(it.json.ranges)),H(),H=h(i,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(26,a=it.getDerivedFromVars(it.json.images)),W(),W=h(a,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(25,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),q(),q=h(s,(t=>r(29,D=t)))),1&t.$$.dirty[0]&&(r(24,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=h(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(23,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=h(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(22,d=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=h(d,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(21,u=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=h(u,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(20,f=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=h(f,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(19,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=h(g,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(18,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=h(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(17,v=it.getDerivedFromVars(it.json.truncate)),K(),K=h(v,(t=>r(47,S=t)))),1&t.$$.dirty[0]&&(r(16,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=h(y,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(15,$=it.getDerivedFromVars(it.json.selectable)),J(),J=h($,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(14,_=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=h(_,(t=>r(7,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,dt=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,ut=Nn(L,ut)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;un(t)?(r(32,ht=Number(t)/ut),r(8,pt=!0)):r(8,pt=!1)}if(524288&t.$$.dirty[1]&&r(6,b=1===O),128&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(O&&O>1){const r=Number(O);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==O&&(o=!0);r(33,ft=e),r(9,ct=t),r(4,gt=n),r(34,mt=o)}if(6291472&t.$$.dirty[1]&&r(35,vt=Ln(z,M,vt)),1048608&t.$$.dirty[1]&&r(36,yt=Un(T,yt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!V||dt&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=dt.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(I)!==Boolean(V&&V[0]&&V[0].text_color)),797760&t.$$.dirty[1]){let t="";O&&w&&x&&(t=xe(I||V&&V[0]&&V[0].text_color,1,$t)),r(37,$t=t)}if(131200&t.$$.dirty[1]&&r(38,_t=xe(N,1,_t)),65536&t.$$.dirty[1]&&r(40,k="none"===S?"none":""),32768&t.$$.dirty[1]){let t="";if(P){const e=Ae([P]);e.image&&(t=e.image)}r(39,bt=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,xt=Wn(F,xt)),4&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n){let o=[];if(Ct.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Ct=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,Et=[]);const i=t;let a=e||[{start:0,end:i.length}],s=n||[],l=0,c=[],d=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(d.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),d.push({index:t.end,range:t,type:"rangeEnd"}))})),s.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=i.length&&d.push({index:t.start,image:t,type:"image",arrayIndex:e})})),d.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),d.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,a=t.index;if(a>l){let r=Object.assign(Object.assign({},D),...c);o.push({text:i.substring(l,a),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Ze))||void 0})}if("rangeStart"===t.type&&r)c.push(r);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},D),...c),n=_e(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=_e(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":_e(10*(Number(e.font_size)||12)/ut)};let a="";const s=t.image.tint_color,l=Hn(t.image.tint_mode,"source_in");if(s){const e=xe(t.image.tint_color);a=st.addSvgFilter(e,l),Ct.push([e,l])}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a,preloadRequired:Boolean(t.image.preload_required)}})}l=a})),l<i.length&&o.push({text:i.substring(l),textStyles:Object.assign({},D)}),r(10,Et=o)}(dt,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(13,E={singleline:b,multiline:mt,halign:vt,valign:yt,truncate:k,"has-focus-color":Boolean(_t)}),256&t.$$.dirty[1]&&r(12,C={gradient:Boolean(bt)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(11,A={"font-size":_e(ut),"line-height":ht,"max-height":ft,"-webkit-line-clamp":gt,color:$t,"background-image":bt,"--divkit-text-focus-color":_t})},[it,at,dt,ut,gt,xt,b,R,pt,ct,Et,A,C,E,_,$,y,v,m,g,f,u,d,c,l,s,a,i,o,D,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ve.text__image_hidden)},ht,ft,mt,vt,yt,$t,_t,bt,k,x,w,j,V,F,P,S,N,I,O,T,M,z,B,L,U]}const ir={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function ar(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function sr(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function lr(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(_e).join(" ")}function cr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function dr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ur(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Ne(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:Ne(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:Ne(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Ne(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?xe(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=xe(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(_e(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let hr;function pr(){if("undefined"==typeof document&&(hr=!0),void 0!==hr)return hr;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),hr=1===t.scrollHeight,document.body.removeChild(t),hr}const fr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:gr}=A;function mr(t,e,n){const r=t.slice();return r[16]=e[n],r}function vr(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),d="".concat(t[16].top,"px"),u="".concat(t[16].width,"px"),h="".concat(t[16].height,"px");return{c(){e=R("div"),n=R("div"),o=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0}),Y(n).forEach(M),o=ot(r),r.forEach(M),this.h()},h(){q(n,"class",r=fr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",s),lt(n,"border-radius",l),lt(n,"background",t[16].style.background),lt(n,"box-shadow",t[16].style.boxShadow),q(e,"class",i=fr["container-separator__item"]),lt(e,"left",c),lt(e,"top",d),lt(e,"width",u),lt(e,"height",h)},m(t,r){T(t,e,r),I(e,n),I(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&lt(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&lt(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&lt(n,"border-radius",l),2&r&&lt(n,"background",t[16].style.background),2&r&&lt(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&lt(e,"left",c),2&r&&d!==(d="".concat(t[16].top,"px"))&&lt(e,"top",d),2&r&&u!==(u="".concat(t[16].width,"px"))&&lt(e,"width",u),2&r&&h!==(h="".concat(t[16].height,"px"))&&lt(e,"height",h)},d(t){t&&M(e)}}}function yr(t){let e,r,o,i,a=Xt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=vr(mr(t,a,e));return{c(){e=R("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(M),this.h()},h(){q(e,"class",r=fr["container-separator"])},m(n,r){T(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=H(gr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Xt(t[1]),n=0;n<a.length;n+=1){const o=mr(t,a,n);s[n]?s[n].p(o,r):(s[n]=vr(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&M(e),z(s,n),t[13](null),o=!1,i()}}}function $r(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function _r(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),$r(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)$r(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),$r(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function br(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const d=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),d={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,h=[]);let p=[...r.children].filter((t=>t!==u&&!t.classList.contains(ye.outer__border))),f=[];for(;p.length;){const t=[],e=p.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;p.length;){let e=p[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),p.shift()}f.push(t)}const g=[];f.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&_r(h,i,e,"vertical"===o,"vertical"===o?l:s,d);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&_r(h,a,g,"horizontal"===o,"vertical"===o?s:l,d),h.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,h=[],p=!1,f=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(fr["container-separator__shape"]))&&!(null==n?void 0:n.contains(fr["container-separator"]))}))&&d()}return _t((()=>{n(9,p=!0)})),wt((()=>{n(9,p=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==u?void 0:u.parentElement)||null),7680&t.$$.dirty&&(p&&r||f||g)&&(f&&(f.disconnect(),n(10,f=null)),g&&(g.disconnect(),n(11,g=null)),p&&r&&("undefined"!=typeof MutationObserver&&(n(10,f=new MutationObserver(m)),f.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(d)),g.observe(r)))),4608&t.$$.dirty&&p&&r&&d()},[u,h,d,o,i,a,s,l,c,p,f,g,r,function(t){At[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const wr=class extends de{constructor(t){super(),le(this,t,br,yr,u,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:xr}=A;function kr(t,e,n){const r=t.slice();return r[52]=e[n],r}function Er(t){let e,n;return e=new Ls({props:{componentContext:t[52],layoutParams:t[8]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[52]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Cr(t){let e,n;return e=new wr({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ar(t){let e,n,r,o=Xt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Er(kr(t,o,e));const a=t=>Jt(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Cr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U(),s&&s.c(),n=W()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ot(t),s&&s.l(t),n=W()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);T(t,e,o),s&&s.m(t,o),T(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=Xt(t[9]),n=0;n<o.length;n+=1){const a=kr(t,o,n);i[n]?(i[n].p(a,r),qt(i[n],1)):(i[n]=Er(a),i[n].c(),qt(i[n],1),i[n].m(e.parentNode,e))}for(Wt(),n=o.length;n<i.length;n+=1)a(n);Ht()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&qt(s,1)):(s=Cr(t),s.c(),qt(s,1),s.m(n.parentNode,n)):s&&(Wt(),Jt(s,1,1,(()=>{s=null})),Ht())},i(t){if(!r){for(let t=0;t<o.length;t+=1)qt(i[t]);qt(s),r=!0}},o(t){i=i.filter(xr);for(let t=0;t<i.length;t+=1)Jt(i[t]);Jt(s),r=!1},d(t){t&&(M(e),M(n)),z(i,t),s&&s.d(t)}}}function jr(t){let e,n;return e=new Pn({props:{cls:Me("container",ir,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Pr),replaceItems:t[27],$$slots:{default:[Ar]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("container",ir,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Pr)),2940&n[0]|16777216&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}const Vr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Dr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Fr=["rounded_rectangle","circle"],Pr=t=>t.json;function Sr(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T=n,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n;var K,X,Y,Z,Q,tt,et;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:nt}=e,{layoutParams:rt}=e;const ot=kt(ge),it=ot.direction;let at;p(t,it,(t=>r(11,D=t)));let st,lt="vertical",ct="start",dt="start",ut=null,ht=null,pt={},ft=[];return t.$$set=t=>{"componentContext"in t&&r(0,nt=t.componentContext),"layoutParams"in t&&r(1,rt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&nt.json&&(r(2,lt="vertical"),r(3,ct="start"),r(4,dt="start"),r(7,st=void 0)),1&t.$$.dirty[0]&&r(38,o=nt.json.items),268435457&t.$$.dirty[0]&&(r(25,i=nt.getDerivedFromVars(null===r(28,K=nt.json.item_builder)||void 0===K?void 0:K.data,void 0,!0)),G(),G=h(i,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(24,a=nt.getDerivedFromVars(nt.json.orientation)),J(),J=h(a,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(23,s=nt.getDerivedFromVars(nt.json.layout_mode)),q(),q=h(s,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(22,l=nt.getDerivedFromVars(nt.json.content_alignment_vertical)),W(),W=h(l,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(21,c=nt.getDerivedFromVars(nt.json.content_alignment_horizontal)),U(),U=h(c,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(20,d=nt.getDerivedFromVars(nt.json.separator)),L(),L=h(d,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(19,u=nt.getDerivedFromVars(nt.json.line_separator)),B(),B=h(u,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(18,f=nt.getDerivedFromVars(nt.json.aspect)),R(),R=h(f,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(17,g=nt.getDerivedFromVars(nt.json.width)),M(),M=h(g,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(16,m=nt.getDerivedFromVars(nt.json.height)),z(),z=h(m,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(15,v=nt.getDerivedFromVars(nt.json.clip_to_bounds)),T(),T=h(v,(t=>r(39,k=t)))),1&t.$$.dirty[0]|524416&t.$$.dirty[1]){let t=[];if(nt.json.item_builder&&Array.isArray(O)&&Array.isArray(nt.json.item_builder.prototypes)){const e=nt.json.item_builder;t=[],O.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=ot.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(nt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(o||[]).map((t=>({div:t})));r(9,ft=t.map(((t,e)=>nt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];ft.forEach((e=>{t.push(nt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,at=pe(t,(t=>[...t]))),H(),H=h(at,(t=>r(47,S=t)))}if(4&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(2,lt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(I,lt)),131072&t.$$.dirty[1]&&r(35,y="wrap"===N),4&t.$$.dirty[0]|65552&t.$$.dirty[1]&&r(36,$="horizontal"!==lt&&!y&&S.some(cr)),4&t.$$.dirty[0]|65552&t.$$.dirty[1]&&r(37,_="vertical"!==lt&&!y&&S.some(dr)),8&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(3,ct=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ct)),2064&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(4,dt=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(F,D,dt)),1610612772&t.$$.dirty[0]|8193&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==lt&&pr()){const t=ur(V.style,Fr,(null==ut?void 0:ut.style)||null);r(5,ut=t?{show_at_start:Boolean(null!==r(29,X=V.show_at_start)&&void 0!==X&&X),show_at_end:Boolean(null!==r(30,Y=V.show_at_end)&&void 0!==Y&&Y),show_between:Boolean(null===r(31,Z=V.show_between)||void 0===Z||Z),style:t,margins:ar(V.margins)}:null)}else r(5,ut=null);if(68&t.$$.dirty[0]|4110&t.$$.dirty[1])if((null==j?void 0:j.style)&&"overlap"!==lt&&pr()){const t=ur(j.style,Fr,(null==ht?void 0:ht.style)||null);r(6,ht=t?{show_at_start:Boolean(null!==r(32,Q=j.show_at_start)&&void 0!==Q&&Q),show_at_end:Boolean(null!==r(33,tt=j.show_at_end)&&void 0!==tt&&tt),show_between:Boolean(null===r(34,et=j.show_between)||void 0===et||et),style:t,margins:ar(j.margins)}:null)}else r(6,ht=null);if(100&t.$$.dirty[0]&&r(14,b=ut||ht?function(t,e,n){const r={};return sr(r,e,"vertical"===t),sr(r,n,"horizontal"===t),r}(lt,ut,ht):null),2048&t.$$.dirty[1]){const t=null==A?void 0:A.ratio;t&&un(t)?r(7,st=t):r(7,st=void 0)}if(414&t.$$.dirty[0]|1648&t.$$.dirty[1]){let t={};"overlap"===lt&&(t.overlapParent=!0),"horizontal"!==lt&&(t.parentHAlign=y?"start":Vr[dt]),"vertical"!==lt&&(t.parentVAlign=y?"start":Dr[ct]),st||_||C&&"wrap_content"!==C.type&&("match_parent"!==C.type||!(null==rt?void 0:rt.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!$&&("wrap_content"===(null==E?void 0:E.type)||"match_parent"===(null==E?void 0:E.type)&&(null==rt?void 0:rt.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===lt&&(t.parentContainerOrientation="horizontal"),"vertical"===lt&&(t.parentContainerOrientation="vertical"),y&&(t.parentContainerWrap=!0),r(8,pt=qe(t,pt))}28&t.$$.dirty[0]|272&t.$$.dirty[1]&&r(13,w={orientation:lt,valign:ct,halign:dt,wrap:y,overflow:!1===k||0===k?"visible":void 0}),228&t.$$.dirty[0]&&r(10,x={gap:ut||ht?lr(lt,ut,ht):void 0,"aspect-ratio":st})},[nt,rt,lt,ct,dt,ut,ht,st,pt,ft,x,D,at,w,b,v,m,g,f,u,d,c,l,s,a,i,it,function(t){r(0,nt=Object.assign(Object.assign({},nt),{json:Object.assign(Object.assign({},nt.json),{items:t.filter(Ce)})}))},K,X,Y,Z,Q,tt,et,y,$,_,o,k,E,C,A,j,V,F,P,S,N,I,O]}const Nr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Ir(t,e){return"vertical"===t||"horizontal"===t?t:e}function Or(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Nr.separator__inner),q(e,"style",r=$e(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n&&r!==(r=$e(t[3]))&&q(e,"style",r)},d(t){t&&M(e)}}}function Tr(t){let e,n=t[4]&&Or(t);return{c(){n&&n.c(),e=W()},l(t){n&&n.l(t),e=W()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=Or(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Mr(t){let e,n;return e=new Pn({props:{cls:Me("separator",Nr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Tr]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Me("separator",Nr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),2072&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function zr(t,e,r){let o,i,a,s,l,c,d,u=n;t.$$.on_destroy.push((()=>u()));let{componentContext:p}=e,{layoutParams:f}=e,g="horizontal",m="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,p=t.componentContext),"layoutParams"in t&&r(1,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&p.json&&(r(6,g="horizontal"),r(7,m="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,o=p.getDerivedFromVars(p.json.delimiter_style)),u(),u=h(o,(t=>r(10,d=t)))),1088&t.$$.dirty&&r(6,g=Ir(null==d?void 0:d.orientation,g)),1024&t.$$.dirty&&r(4,i=!((null==d?void 0:d.color)&&("transparent"===d.color||9===d.color.length&&0===d.color.indexOf("#00")))),1152&t.$$.dirty&&r(7,m=xe(null==d?void 0:d.color,1,m)),64&t.$$.dirty&&r(9,a="horizontal"===g?"100%":_e(1)),64&t.$$.dirty&&r(8,s="horizontal"===g?_e(1):"100%"),896&t.$$.dirty&&r(3,l={background:m,width:a,height:s}),64&t.$$.dirty&&r(2,c={orientation:g})},[p,f,c,l,i,o,g,m,s,a,d]}const Rr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Br(t){return t.startsWith("data:")?Ee(t):"data:image/jpg;base64,".concat(Ee(t))}function Lr(t){let e,n;return e=new Pn({props:{cls:Me("image",Rr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[qr]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Me("image",Rr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|16&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ur(t){let e,n,r,o,i,a,l,c;return{c(){e=R("img"),this.h()},l(t){e=et(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){q(e,"class",n=Rr.image__image),d(e.src,r=t[3]===Kr?Gr:t[4])||q(e,"src",r),q(e,"loading",o=t[26]?"eager":"lazy"),q(e,"decoding","async"),q(e,"style",i=$e(t[8])),q(e,"alt",t[10]),q(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){T(n,e,r),t[62](e),l||(c=[H(e,"load",t[28]),H(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!d(e.src,r=t[3]===Kr?Gr:t[4])&&q(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&q(e,"loading",o),256&n[0]&&i!==(i=$e(t[8]))&&q(e,"style",i),1024&n[0]&&q(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&q(e,"aria-hidden",a)},d(n){n&&M(e),t[62](null),l=!1,s(c)}}}function Wr(t){let e,n,r,o,i,a,l,c,u,h,p="".concat(t[5],"%");return{c(){e=R("span"),n=R("img"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var r=Y(e);n=et(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(M),this.h()},h(){q(n,"class",r=Rr.image__image),d(n.src,o=t[3]===Kr?Gr:t[4])||q(n,"src",o),q(n,"loading",i=t[26]?"eager":"lazy"),q(n,"decoding","async"),q(n,"style",a=$e(t[8])),q(n,"alt",t[10]),q(n,"aria-hidden",l=t[10]?null:"true"),q(e,"class",c=Rr["image__aspect-wrapper"]),lt(e,"padding-bottom",p)},m(r,o){T(r,e,o),I(e,n),t[61](n),u||(h=[H(n,"load",t[28]),H(n,"error",t[29])],u=!0)},p(t,r){24&r[0]&&!d(n.src,o=t[3]===Kr?Gr:t[4])&&q(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&q(n,"loading",i),256&r[0]&&a!==(a=$e(t[8]))&&q(n,"style",a),1024&r[0]&&q(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&q(n,"aria-hidden",l),32&r[0]&&p!==(p="".concat(t[5],"%"))&&lt(e,"padding-bottom",p)},d(n){n&&M(e),t[61](null),u=!1,s(h)}}}function Hr(t){let e;function n(t,e){return t[9].aspect?Wr:Ur}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function qr(t){let e,n=t[6],r=Hr(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){64&o[0]&&u(n,n=t[6])?(r.d(1),r=Hr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&M(e),r.d(t)}}}function Jr(t){let e,n,r=!t[7]&&Lr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[7]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),128&n[0]&&qt(r,1)):(r=Lr(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Gr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Kr=2;function Xr(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L=n,U=n,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=kt(ge),at=it.direction;let st;p(t,at,(t=>r(47,A=t)));let lt,ct,dt=0,ut=!1,ht="rgba(0,0,0,0.08)",pt=!1,ft="",gt="none",mt="50% 50%",vt="0",yt="source_in",$t="",_t="",bt=0,xt=0,Et=0,Ct="",jt="",Vt=!1;return wt((()=>{it.removeSvgFilter(ct,yt)})),t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&rt.json&&(r(33,gt="none"),r(34,mt="50% 50%"),r(36,yt="source_in")),1&t.$$.dirty[0]&&(r(25,o=rt.getDerivedFromVars(rt.json.image_url)),tt(),tt=h(o,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(24,i=rt.getDerivedFromVars(rt.json.gif_url)),et(),et=h(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(23,a=rt.getDerivedFromVars(rt.json.width)),Q(),Q=h(a,(t=>r(58,M=t)))),1&t.$$.dirty[0]&&(r(22,s=rt.getDerivedFromVars(rt.json.height)),Z(),Z=h(s,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(21,l=rt.getDerivedFromVars(rt.json.preview)),Y(),Y=h(l,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(20,c=rt.getDerivedFromVars(rt.json.placeholder_color)),X(),X=h(c,(t=>r(55,I=t)))),1&t.$$.dirty[0]&&(r(19,d=rt.getDerivedFromVars(rt.json.scale)),K(),K=h(d,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(18,u=rt.getDerivedFromVars({content_alignment_horizontal:rt.json.content_alignment_horizontal,content_alignment_vertical:rt.json.content_alignment_vertical})),G(),G=h(u,(t=>r(53,S=t)))),1&t.$$.dirty[0]&&(r(17,f=rt.getDerivedFromVars(rt.json.accessibility)),J(),J=h(f,(t=>r(52,P=t)))),1&t.$$.dirty[0]&&(r(16,g=rt.getDerivedFromVars(rt.json.aspect)),q(),q=h(g,(t=>r(51,F=t)))),1&t.$$.dirty[0]&&(r(15,m=rt.getDerivedFromVars(rt.json.tint_color)),H(),H=h(m,(t=>r(50,D=t)))),1&t.$$.dirty[0]&&(r(14,v=rt.getDerivedFromVars(rt.json.tint_mode)),W(),W=h(v,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(13,y=rt.getDerivedFromVars(rt.json.appearance_animation)),U(),U=h(y,(t=>r(48,j=t)))),1&t.$$.dirty[0]&&(r(12,$=rt.getDerivedFromVars(rt.json.filters)),L(),L=h($,(t=>r(46,C=t)))),1&t.$$.dirty[0]&&(r(11,_=rt.getDerivedFromVars(rt.json.preload_required)),nt(),nt=h(_,(t=>r(26,B=t)))),1073741825&t.$$.dirty[0]|805306368&t.$$.dirty[1]){let t="gif"===rt.json.type?R:z;r(30,ut="empty://"===t),ut&&(t=Gr),r(4,lt=t)}if(16&t.$$.dirty[0]&&r(3,dt=0),17&t.$$.dirty[0]&&(lt?r(7,pt=!1):(r(7,pt=!0),rt.logError(me(new Error('Missing "'.concat("gif"===rt.json.type?"gif_url":"image_url",'" for "').concat(rt.json.type,'"')))))),134217728&t.$$.dirty[1]&&r(45,b="wrap_content"===(null==M?void 0:M.type)),67108864&t.$$.dirty[1]&&r(44,w="wrap_content"===(null==T?void 0:T.type)),1073741832&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(32,ft=(0===dt||dt===Kr||ut)&&O?'url("'.concat(Br(O),'")'):""),1073741832&t.$$.dirty[0]|16777217&t.$$.dirty[1]&&r(31,ht=0===dt||dt===Kr||ut?xe(I,1,ht):""),8388612&t.$$.dirty[1]&&r(33,gt=De(N)||gt),4194304&t.$$.dirty[1]&&r(34,mt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:Fe({content_alignment_horizontal:r,content_alignment_vertical:o})}(S,A,mt)),2097152&t.$$.dirty[1]&&r(10,x=(null==P?void 0:P.description)||""),1048576&t.$$.dirty[1]){const t=null==F?void 0:F.ratio;t&&un(t)?r(5,vt=(100/Number(t)).toFixed(2)):r(5,vt="0")}if(786480&t.$$.dirty[1]){const t=D?xe(D):void 0,e=Hn(V,yt);t===ct&&e===yt||(it.removeSvgFilter(ct,yt),r(6,$t=t?it.addSvgFilter(t,e):""),r(35,ct=t),r(36,yt=e))}if(131072&t.$$.dirty[1]&&j&&"fade"===j.type){const t=j;r(37,_t=Je(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,Et=Ne(t.duration,300)),r(39,xt=Ne(t.start_delay,0)),r(38,bt=Ne(t.alpha,0))}if(1&t.$$.dirty[0]|98304&t.$$.dirty[1]){let t="",e="";Array.isArray(C)&&C.length&&(t=hn(C,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,Ct=t),r(42,jt=e),r(43,Vt="rtl"===A&&Array.isArray(C)&&C.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,k={aspect:"0"!==vt,"is-width-content":b,"is-height-content":w,loaded:1===dt,"before-appearance":Boolean(_t)&&0===dt,"is-rtl-mirror":Vt}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,E={"background-image":ft,"background-color":ft?void 0:ht,"background-size":gt,"clip-path":jt||void 0,"object-fit":gt,"object-position":mt,filter:[1===dt&&$t?"url(#".concat($t,")"):"",Ct].filter(Boolean).join(" "),"--divkit-appearance-interpolator":_t||void 0,"--divkit-appearance-fade-start":_t?bt:void 0,"--divkit-appearance-delay":_t?"".concat(xt,"ms"):void 0,"--divkit-appearance-duration":_t?"".concat(Et,"ms"):void 0})},[rt,ot,st,dt,lt,vt,$t,pt,E,k,x,_,$,y,v,m,g,f,u,d,c,l,s,a,i,o,B,at,function(){0===dt&&r(3,dt=1)},function(){0===dt&&r(3,dt=Kr)},ut,ht,ft,gt,mt,ct,yt,_t,bt,xt,Et,Ct,jt,Vt,w,b,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,function(t){At[t?"unshift":"push"]((()=>{st=t,r(2,st),r(0,rt),r(60,R),r(59,z),r(30,ut)}))},function(t){At[t?"unshift":"push"]((()=>{st=t,r(2,st),r(0,rt),r(60,R),r(59,z),r(30,ut)}))}]}const Yr=class extends de{constructor(t){super(),le(this,t,Xr,Jr,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Zr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Qr(t){return t>0&&t<1}function to(t){return String(Math.ceil(1e3*t)/1e3)}function eo(t,e,n){if(t.some(Qr)){const e=Math.max(...t.filter(Qr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(_e(r*t[e]/o),",").concat(to(t[e]),"fr)"):t[e]?i[e]="".concat(to(t[e]),"fr"):i[e]="auto";return i.join(" ")}function no(t,e,n){const r=t.slice();return r[29]=e[n],r}function ro(t){let e,n;return e=new Pn({props:{cls:Me("grid",Zr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(so),replaceItems:t[12],$$slots:{default:[io]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Me("grid",Zr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(so)),16&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function oo(t){let e,n;return e=new Ls({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[29].componentContext),16&n[0]&&(r.layoutParams=t[29].layoutParams),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function io(t){let e,n,r=Xt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=oo(no(t,r,e));const i=t=>Jt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=Xt(t[4]),a=0;a<r.length;a+=1){const i=no(t,r,a);o[a]?(o[a].p(i,n),qt(o[a],1)):(o[a]=oo(i),o[a].c(),qt(o[a],1),o[a].m(e.parentNode,e))}for(Wt(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)qt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Jt(o[t]);n=!1},d(t){t&&M(e),z(o,t)}}}function ao(t){let e,n,r=!t[5]&&ro(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[5]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),32&n[0]&&qt(r,1)):(r=ro(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const so=t=>t.json;function lo(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$=n,_=n,b=n,w=n;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w()));let{componentContext:x}=e,{layoutParams:k}=e;const E=kt(ge).direction;p(t,E,(t=>r(23,f=t)));let C,A,j=1,V=[],D=[],F=[],P=[],S=0,N=!1,I="start",O="start";return t.$$set=t=>{"componentContext"in t&&r(0,x=t.componentContext),"layoutParams"in t&&r(1,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&x.json&&(r(13,j=1),r(20,I="start"),r(21,O="start")),1&t.$$.dirty[0]&&r(22,o=Array.isArray(x.json.items)&&x.json.items||[]),1&t.$$.dirty[0]&&(r(10,i=x.getDerivedFromVars(x.json.column_count)),w(),w=h(i,(t=>r(27,y=t)))),1&t.$$.dirty[0]&&(r(9,a=x.getDerivedFromVars(x.json.content_alignment_vertical)),_(),_=h(a,(t=>r(25,m=t)))),1&t.$$.dirty[0]&&(r(8,s=x.getDerivedFromVars(x.json.content_alignment_horizontal)),$(),$=h(s,(t=>r(24,g=t)))),134225920&t.$$.dirty[0]&&r(13,j=Nn(y,j)),4194305&t.$$.dirty[0]&&r(2,l=o.map(((t,e)=>x.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];l.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,C=pe(t,(t=>[...t]))),b(),b=h(C,(t=>r(26,v=t)))}if(67362821&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,V=[]),r(15,D=[]),r(16,F=[]),r(17,P=[]),r(19,N=!1),r(4,A=l.map(((o,i)=>{var a,s,l,c;const d=v[i],u=Number(d.columnSpan)||1,h=Number(d.rowSpan)||1,p={x:e,y:n,colSpan:u,rowSpan:h},f="match_parent"===(null===(a=d.width)||void 0===a?void 0:a.type)?Number(d.width.weight||1)/u:0,g="match_parent"===(null===(s=d.height)||void 0===s?void 0:s.type)?Number(d.height.weight||1)/h:0,m=1===u&&"fixed"===(null===(l=d.width)||void 0===l?void 0:l.type)&&d.width.value?Number(d.width.value)/u:0,y=1===h&&"fixed"===(null===(c=d.height)||void 0===c?void 0:c.type)&&d.height.value?Number(d.height.value)/h:0;for(let o=e;o<e+u;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?(r(19,N=!0),x.logError(me(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!V[o]||V[o]<f)&&r(14,V[o]=f,V),(!D[e]||D[e]<g)&&r(15,D[e]=g,D),(!F[o]||F[o]<m)&&r(16,F[o]=m,F),(!P[e]||P[e]<y)&&r(17,P[e]=y,P));do{++e,e>=j&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:p}}}))),r(18,S=n)}34603008&t.$$.dirty[0]&&r(20,I=Un(m,I)),27262976&t.$$.dirty[0]&&r(21,O=Ln(g,f,O)),3145728&t.$$.dirty[0]&&r(7,c={valign:I,halign:O}),516096&t.$$.dirty[0]&&r(6,d={"grid-template-columns":eo(V,F,j),"grid-template-rows":eo(D,P,S)}),524288&t.$$.dirty[0]&&r(5,u=N)},[x,k,l,C,A,u,d,c,s,a,i,E,function(t){r(0,x=Object.assign(Object.assign({},x),{json:Object.assign(Object.assign({},x.json),{items:t.filter(Ce)})}))},j,V,D,F,P,S,N,I,O,o,f,g,m,v,y]}const co={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},uo={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function ho(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}function po(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:fo}=A;function go(t,e,n){const r=t.slice();return r[76]=e[n],r[77]=e,r[78]=n,r}function mo(t,e,n){const r=t.slice();return r[79]=e[n],r}function vo(t){let e,n;return e=new Ls({props:{componentContext:t[79],layoutParams:t[6]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[79]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function yo(t){let e,n,r,o,i,a=t[78],s=Xt(t[76]),l=[];for(let e=0;e<s.length;e+=1)l[e]=vo(mo(t,s,e));const c=t=>Jt(l[t],1,1,(()=>{l[t]=null})),d=()=>t[63](e,a),u=()=>t[63](null,a);return{c(){e=R("div");for(let t=0;t<l.length;t+=1)l[t].c();n=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=Y(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=ot(r),r.forEach(M),this.h()},h(){q(e,"class",r=co.gallery__items),q(e,"style",o=$e(t[14]))},m(t,r){T(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);I(e,n),d(),i=!0},p(r,h){if(t=r,65600&h[0]){let r;for(s=Xt(t[76]),r=0;r<s.length;r+=1){const o=mo(t,s,r);l[r]?(l[r].p(o,h),qt(l[r],1)):(l[r]=vo(o),l[r].c(),qt(l[r],1),l[r].m(e,n))}for(Wt(),r=s.length;r<l.length;r+=1)c(r);Ht()}(!i||16384&h[0]&&o!==(o=$e(t[14])))&&q(e,"style",o),a!==t[78]&&(u(),a=t[78],d())},i(t){if(!i){for(let t=0;t<s.length;t+=1)qt(l[t]);i=!0}},o(t){l=l.filter(fo);for(let t=0;t<l.length;t+=1)Jt(l[t]);i=!1},d(t){t&&M(e),z(l,t),u()}}}function $o(t){let e,n,r=t[10]&&t[7]&&_o(t),o=t[11]&&t[7]&&bo(t);return{c(){r&&r.c(),e=U(),o&&o.c(),n=W()},l(t){r&&r.l(t),e=ot(t),o&&o.l(t),n=W()},m(t,i){r&&r.m(t,i),T(t,e,i),o&&o.m(t,i),T(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=_o(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=bo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(M(e),M(n)),r&&r.d(t),o&&o.d(t)}}}function _o(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=co["gallery__arrow-icon-path"]),q(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[29]||"".concat(co.gallery__arrow," ").concat(uo.arrow," ").concat(uo.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[66]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function bo(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=co["gallery__arrow-icon-path"]),q(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[30]||"".concat(co.gallery__arrow," ").concat(uo.arrow," ").concat(uo.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[67]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function wo(t){let e,n,r,o,i,a,s,c,d,u,h,p=Xt(t[16]),f=[];for(let e=0;e<p.length;e+=1)f[e]=yo(go(t,p,e));const g=t=>Jt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[4]&&$o(t);return{c(){e=R("div"),n=R("div");for(let t=0;t<f.length;t+=1)f[t].c();s=U(),m&&m.c(),c=W(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=Y(e);n=et(r,"DIV",{class:!0,style:!0});var o=Y(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(M),r.forEach(M),s=ot(t),m&&m.l(t),c=W(),this.h()},h(){q(n,"class",r=co["gallery__items-grid"]),q(n,"style",o=$e(t[15])),q(e,"class",i=co.gallery__scroller+" "+(t[27]?fe["root_restrict-scroll"]:"")),q(e,"style",a=$e(t[5]))},m(r,o){T(r,e,o),I(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[64](n),t[65](e),T(r,s,o),m&&m.m(r,o),T(r,c,o),d=!0,u||(h=H(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),u=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(p=Xt(t[16]),e=0;e<p.length;e+=1){const r=go(t,p,e);f[e]?(f[e].p(r,s),qt(f[e],1)):(f[e]=yo(r),f[e].c(),qt(f[e],1),f[e].m(n,null))}for(Wt(),e=p.length;e<f.length;e+=1)g(e);Ht()}(!d||32768&s[0]&&o!==(o=$e(t[15])))&&q(n,"style",o),(!d||134217728&s[0]&&i!==(i=co.gallery__scroller+" "+(t[27]?fe["root_restrict-scroll"]:"")))&&q(e,"class",i),(!d||32&s[0]&&a!==(a=$e(t[5])))&&q(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=$o(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!d){for(let t=0;t<p.length;t+=1)qt(f[t]);d=!0}},o(t){f=f.filter(fo);for(let t=0;t<f.length;t+=1)Jt(f[t]);d=!1},d(n){n&&(M(e),M(s),M(c)),z(f,n),t[64](null),t[65](null),m&&m.d(n),u=!1,h()}}}function xo(t){let e,n,r,o;return e=new Pn({props:{cls:Me("gallery",co,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[wo]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(i,a){ae(e,i,a),n=!0,r||(o=H(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Me("gallery",co,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|1048576&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t),r=!1,o()}}}function ko(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T=n,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=kt(ge),Y=X.direction;let Z;p(t,Y,(t=>r(51,k=t)));let Q,tt=[],et=!1,nt=!1,rt=null,ot=!1;const it=X.getCustomization("galleryLeftClass"),at=X.getCustomization("galleryRightClass");let st,lt,ct,dt,ut,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,bt={},xt=0;const Et=X.isDesktop;function Ct(){if(!Z)return;let t=Z.scrollLeft;"rtl"===k&&(t*=-1);const e=Z.scrollWidth,n=Z.offsetWidth;"ltr"===k?(r(10,et=t>2),r(11,nt=t+n<e-2)):(r(11,nt=t>2),r(10,et=t+n<e-2))}p(t,Et,(t=>r(62,I=t)));const jt=qn(Ct,50);function Vt(t){Z.scroll({left:Z.scrollLeft+.75*Z.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Dt(){let t=[],e=tt[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=tt[e].children[n];r&&t.push(r)}return t}function Ft(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===pt?"left":"top";Z.scroll({[n]:t,behavior:e})}function Pt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==k&&r){const e=Z.offsetWidth;t=i[o]+i.offsetWidth+.01-gt/2-e}else t=i[o]+.01-gt/2;Ft(t,n)}}function St(t){const e=Dt(),n=Z.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===pt?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return _t((()=>{r(37,ot=!0),Ct(),xt&&Pt(Dt(),xt,"auto")})),wt((()=>{r(37,ot=!1),st&&!G.fakeElement&&(X.unregisterInstance(st),r(38,st=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&G.json&&(r(39,ht=1),r(4,pt="horizontal"),r(40,ft="start"),r(42,gt=8),r(45,mt="")),1&t.$$.dirty[0]&&r(8,o=Array.isArray(G.json.items)&&G.json.items||[]),1&t.$$.dirty[0]&&(r(26,i=G.getDerivedFromVars(G.json.column_count)),q(),q=h(i,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(25,a=G.getDerivedFromVars(G.json.orientation)),H(),H=h(a,(t=>r(60,S=t)))),1&t.$$.dirty[0]&&(r(24,s=G.getDerivedFromVars(G.json.cross_content_alignment)),W(),W=h(s,(t=>r(59,P=t)))),1&t.$$.dirty[0]&&(r(23,l=G.getDerivedFromVars(G.json.item_spacing)),U(),U=h(l,(t=>r(58,F=t)))),1&t.$$.dirty[0]&&(r(22,c=G.getDerivedFromVars(G.json.cross_spacing)),L(),L=h(c,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(21,d=G.getDerivedFromVars(G.json.paddings)),B(),B=h(d,(t=>r(56,V=t)))),1&t.$$.dirty[0]&&(r(20,u=G.getDerivedFromVars(G.json.scroll_mode)),z(),z=h(u,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(19,f=G.getDerivedFromVars(G.json.restrict_parent_scroll)),J(),J=h(f,(t=>r(27,O=t)))),1&t.$$.dirty[0]&&(r(18,g=G.getDerivedFromVars(G.json.scrollbar)),M(),M=h(g,(t=>r(53,C=t)))),1&t.$$.dirty[0]&&(r(17,m=G.getDerivedFromVars(G.json.default_item)),T(),T=h(m,(t=>r(52,E=t)))),257&t.$$.dirty[0]&&r(50,v=o.map(((t,e)=>G.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(7,y=I&&ot),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&(y?"undefined"!=typeof ResizeObserver&&(r(36,rt=new ResizeObserver((()=>{jt()}))),rt.observe(Q)):rt&&(rt.disconnect(),r(36,rt=null))),1073742080&t.$$.dirty[1]&&r(39,ht=Nn(N,ht)),524544&t.$$.dirty[1]&&r(16,$=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(v,ht)),16&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(4,pt=Ir(S,pt)),268435968&t.$$.dirty[1]&&r(40,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,ft)),134219776&t.$$.dirty[1]&&(r(42,gt=Ne(F,gt)),r(41,lt=_e(gt))),67119104&t.$$.dirty[1]&&(r(44,dt=Ne(D,gt)),r(43,ct=_e(dt))),34619392&t.$$.dirty[1]&&r(45,mt=Ue(V,k,mt)),16&t.$$.dirty[0]&&r(49,_="horizontal"===pt?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];v.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(12,ut=pe(t,(t=>t))),R(),R=h(ut,(t=>r(55,j=t)))}if(16&t.$$.dirty[0]|16810240&t.$$.dirty[1]&&(r(46,vt=[]),ht>1?vt.push("auto"):j.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),112&t.$$.dirty[0]|8391424&t.$$.dirty[1]){const t={};let e={};r(47,$t=!1),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===A&&(r(47,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=_e(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(5,yt=qe(t,yt)),r(6,bt=qe(e,bt))}20480&t.$$.dirty[1]&&r(15,b={padding:mt,"grid-gap":ct}),295936&t.$$.dirty[1]&&r(14,w={"grid-gap":lt,[_]:ho(vt)}),16&t.$$.dirty[0]|4259840&t.$$.dirty[1]&&r(13,x={orientation:pt,"scroll-snap":$t,scrollbar:"auto"===C?"auto":"none"}),2228224&t.$$.dirty[1]&&r(48,xt=Ne(E,xt)),1&t.$$.dirty[0]&&G.json&&jt(),21&t.$$.dirty[0]|1048704&t.$$.dirty[1]&&G.json&&(st&&(X.unregisterInstance(st),r(38,st=void 0)),G.json.id&&!G.fakeElement&&(r(38,st=G.json.id),X.registerInstance(st,{setCurrentItem(t){const e=Dt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Pt(e,t)},setPreviousItem(t,e){const n=St("prev"),r=Dt();let o=n-t;o<0&&(o="ring"===e?po(o,r.length):0),Pt(r,o)},setNextItem(t,e){const n="horizontal"===pt,r="ltr"!==k&&n?-1:1,o=n?Z.scrollLeft*r+Z.offsetWidth===Z.scrollWidth:Z.scrollTop+Z.offsetHeight===Z.scrollHeight,i=Dt();if(o&&"ring"===e)return void Pt(i,0);let a=St("next")+t;a>i.length-1&&(a="ring"===e?po(a,i.length):i.length-1),Pt(i,a)},scrollToStart(){Ft(0)},scrollToEnd(){Ft("ltr"===k||"horizontal"!==pt?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===pt,r="ltr"!==k&&n?-1:1,o=n?Z.scrollLeft:Z.scrollTop,i=n?Z.scrollWidth-Z.offsetWidth:Z.scrollHeight-Z.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=po(a,i))),Ft(a*r)},scrollForward(t,e){const n="horizontal"===pt,r="ltr"!==k&&n?-1:1,o=n?Z.scrollLeft:Z.scrollTop,i=n?Z.scrollWidth-Z.offsetWidth:Z.scrollHeight-Z.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=po(a,i))),Ft(a*r)},scrollToPosition(t){Ft("ltr"===k||"horizontal"!==pt?t:-t)}})))},[G,K,Z,Q,pt,yt,bt,y,o,tt,et,nt,ut,x,w,b,$,m,g,f,u,d,c,l,s,a,i,O,Y,it,at,function(t){r(0,G=Object.assign(Object.assign({},G),{json:Object.assign(Object.assign({},G.json),{items:t.filter(Ce)})}))},Et,Ct,jt,Vt,rt,ot,st,ht,ft,lt,gt,ct,dt,mt,vt,$t,xt,_,v,k,E,C,A,j,V,D,F,P,S,N,I,function(t,e){At[t?"unshift":"push"]((()=>{tt[e]=t,r(9,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(3,Q)}))},function(t){At[t?"unshift":"push"]((()=>{Z=t,r(2,Z)}))},()=>Vt("left"),()=>Vt("right")]}const Eo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306","tabs_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},Co=37,Ao=39,jo=36,Vo=35,{Boolean:Do}=A;function Fo(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[29][r[92]];return r[93]=i,r}function Po(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[92]===r[15];return r[96]=i,r}function So(t){let e,n;return e=new Pn({props:{cls:Me("tabs",Eo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[zo]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Me("tabs",Eo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|64&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function No(t){let e,n=t[91].title+"";return{c(){e=L(n)},l(t){e=rt(t,n)},m(t,n){T(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[91].title+"")&&at(e,n)},d(t){t&&M(e)}}}function Io(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[68](t[92],...n)}return e=new cn({props:{componentContext:t[0],cls:Me("tabs__item",Eo,{selected:t[96],actionable:Boolean(t[91].title_click_action)}),actions:t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(Ze):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[No]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Me("tabs__item",Eo,{selected:t[96],actionable:Boolean(t[91].title_click_action)})),65537&o[0]&&(i.actions=t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(Ze):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|64&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Oo(t){let e,n,r;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Eo.tabs__separator),q(e,"style",r=$e(t[32]))},m(t,n){T(t,e,n)},p(t,n){2&n[1]&&r!==(r=$e(t[32]))&&q(e,"style",r)},d(t){t&&M(e)}}}function To(t){let e,n;return e=new Ls({props:{componentContext:t[93],layoutParams:t[3]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[93]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Mo(t){let e,n,r,o,i,a,s=t[93]&&To(t);return{c(){e=R("div"),s&&s.c(),n=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Y(e);s&&s.l(r),n=ot(r),r.forEach(M),this.h()},h(){q(e,"class",r=Me("tabs__panel",Eo,{visible:t[30][t[92]]})),q(e,"role","tabpanel"),q(e,"id",o=t[45]+"-panel-"+t[92]),q(e,"aria-labelledby",i=t[45]+"-tab-"+t[92]),lt(e,"left",100*t[92]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),I(e,n),a=!0},p(t,l){t[93]?s?(s.p(t,l),536936448&l[0]&&qt(s,1)):(s=To(t),s.c(),qt(s,1),s.m(e,n)):s&&(Wt(),Jt(s,1,1,(()=>{s=null})),Ht()),(!a||1073807360&l[0]&&r!==(r=Me("tabs__panel",Eo,{visible:t[30][t[92]]})))&&q(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[92]))&&q(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[92]))&&q(e,"aria-labelledby",i),(!a||65536&l[0])&&lt(e,"left",100*t[92]+"%")},i(t){a||(qt(s),a=!0)},o(t){Jt(s),a=!1},d(t){t&&M(e),s&&s.d()}}}function zo(t){let e,n,r,o,i,a,c,d,u,h,p,f=Xt(t[16]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Io(Po(t,f,e));const m=t=>Jt(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&Oo(t),y=Xt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Mo(Fo(t,y,e));const _=t=>Jt($[t],1,1,(()=>{$[t]=null}));return{c(){e=R("div");for(let t=0;t<g.length;t+=1)g[t].c();r=U(),v&&v.c(),o=U(),i=R("div"),a=R("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0});var n=Y(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(M),r=ot(t),v&&v.l(t),o=ot(t),i=et(t,"DIV",{class:!0});var s=Y(i);a=et(s,"DIV",{class:!0});var l=Y(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(M),s.forEach(M),this.h()},h(){q(e,"class",n=Eo.tabs__list+" "+(t[43]?fe["root_restrict-scroll"]:"")),q(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[14]?Re(t[14],t[17]):""),lt(e,"--divkit-tabs-font-size",_e(t[4])),lt(e,"--divkit-tabs-paddings",t[5]),lt(e,"--divkit-tabs-line-height",t[23]),lt(e,"--divkit-tabs-letter-spacing",t[24]),lt(e,"--divkit-tabs-active-font-weight",t[7]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[8]||""),lt(e,"--divkit-tabs-active-font-family",t[25]||""),lt(e,"--divkit-tabs-inactive-font-family",t[26]||""),lt(e,"--divkit-tabs-active-text-color",t[9]),lt(e,"--divkit-tabs-inactive-text-color",t[10]),lt(e,"--divkit-tabs-active-background-color",t[11]),lt(e,"--divkit-tabs-inactive-background-color",t[12]),lt(e,"--divkit-tabs-border-radius",t[6]),lt(e,"--divkit-tabs-items-spacing",t[13]?be(10*t[13]/t[4]):""),q(a,"class",c=Me("tabs__swiper",Eo,{inited:t[27],animated:t[28]})),q(i,"class",d=Eo.tabs__panels+" "+(t[43]?fe["root_restrict-scroll"]:""))},m(n,s){T(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[69](e),T(n,r,s),v&&v.m(n,s),T(n,o,s),T(n,i,s),I(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[70](a),t[71](i),u=!0,h||(p=[H(e,"keydown",t[49]),H(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),H(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),H(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),H(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(f=Xt(t[16]),n=0;n<f.length;n+=1){const r=Po(t,f,n);g[n]?(g[n].p(r,s),qt(g[n],1)):(g[n]=Io(r),g[n].c(),qt(g[n],1),g[n].m(e,null))}for(Wt(),n=f.length;n<g.length;n+=1)m(n);Ht()}if((!u||4096&s[1]&&n!==(n=Eo.tabs__list+" "+(t[43]?fe["root_restrict-scroll"]:"")))&&q(e,"class",n),147456&s[0]&&lt(e,"--divkit-tabs-title-padding",t[14]?Re(t[14],t[17]):""),16&s[0]&&lt(e,"--divkit-tabs-font-size",_e(t[4])),32&s[0]&&lt(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&lt(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&lt(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&lt(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&lt(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&lt(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&lt(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&lt(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&lt(e,"--divkit-tabs-items-spacing",t[13]?be(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=Oo(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=Xt(t[16]),e=0;e<y.length;e+=1){const n=Fo(t,y,e);$[e]?($[e].p(n,s),qt($[e],1)):($[e]=Mo(n),$[e].c(),qt($[e],1),$[e].m(a,null))}for(Wt(),e=y.length;e<$.length;e+=1)_(e);Ht()}(!u||402653184&s[0]&&c!==(c=Me("tabs__swiper",Eo,{inited:t[27],animated:t[28]})))&&q(a,"class",c),(!u||4096&s[1]&&d!==(d=Eo.tabs__panels+" "+(t[43]?fe["root_restrict-scroll"]:"")))&&q(i,"class",d)},i(t){if(!u){for(let t=0;t<f.length;t+=1)qt(g[t]);for(let t=0;t<y.length;t+=1)qt($[t]);u=!0}},o(t){g=g.filter(Do);for(let t=0;t<g.length;t+=1)Jt(g[t]);$=$.filter(Do);for(let t=0;t<$.length;t+=1)Jt($[t]);u=!1},d(n){n&&(M(e),M(r),M(o),M(i)),z(g,n),t[69](null),v&&v.d(n),z($,n),t[70](null),t[71](null),h=!1,s(p)}}}function Ro(t){let e,n,r=!t[2]&&So(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&qt(r,1)):(r=So(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Bo(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S=n,N=n,I=n,O=n,T=n,M=n,z=n,R=n,B=n;var L,U;t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B()));let{componentContext:W}=e,{layoutParams:H}=e;const q=kt(ge),J=q.direction;p(t,J,(t=>r(17,C=t)));const G=q.genId("tabs");let K,X=!1,Y=he([]);p(t,Y,(t=>r(16,x=t)));let Z,Q,tt,et,nt,rt,ot,it,at,st={},lt={},ct=12,dt="",ut="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t="",_t=0,bt="",xt="",Et=null,Ct=!1,jt=!1,Vt=[],Dt=[],Ft=null,Pt=null,Nt=null,It=!1,Ot=!1;async function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(rt=y,r(15,y=t),Ut(),r(28,jt=!0),Rt(100*-y),Bt(),async function(){if("match_parent"===(null==w?void 0:w.type))return;await St();const t=document.getElementById("".concat(G,"-panel-").concat(y));t&&r(20,Q.style.height=_e(t.offsetHeight),Q)}(),Lt(),at=-y*Q.clientWidth,e){await St();const t=Z.querySelector(".".concat(Eo.tabs__item_selected));t&&t.focus()}}function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==x?void 0:x.length;if(!n)return;const r=x.map((t=>t.index));let o=r.indexOf(y)+t;o>=n?o=0:o<0&&(o=n-1),Tt(r[o],e)}function zt(t,e){return y===e||(Tt(e),!1)}async function Rt(t){await St(),r(21,tt.style.transform="translate3d(".concat(t,"%,0,0)"),tt)}function Bt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,y-1):Math.min(y,null!=rt?rt:y),n=t?Math.min(o.length-1,y+1):Math.max(y,null!=rt?rt:y);r(29,Vt=Vt.map(((t,r)=>{var i;return t||(r>=e&&r<=n&&(null===(i=o[r])||void 0===i?void 0:i.div)?W.produceChildContext(o[r].div,{path:r}):void 0)}))),r(30,Dt=Dt.map(((t,r)=>r>=e&&r<=n)))}function Lt(){Ft&&clearTimeout(Ft),Ft=window.setTimeout((()=>{r(30,Dt=o.map(((t,e)=>e===y)))}),400)}function Ut(){Ct||(r(27,Ct=!0),r(20,Q.style.height=_e(Q.clientHeight),Q),r(21,tt.style.transform="translate3d(".concat(100*-(null!=rt?rt:y),"%,0,0)"),tt))}return wt((()=>{K&&(q.unregisterInstance(K),r(55,K=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,W=t.componentContext),"layoutParams"in t&&r(1,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&W.json&&(r(4,ct=12),r(5,dt=""),r(6,pt=""),r(7,et=void 0),r(25,ft=""),r(8,nt=void 0),r(26,gt=""),r(9,mt=""),r(10,vt=""),r(11,yt=""),r(12,$t=""),r(13,_t=0),r(56,bt=""),r(57,xt=""),r(14,Et=null)),1&t.$$.dirty[0]&&r(58,o=W.json.items||[]),134217728&t.$$.dirty[1]&&r(42,i=o.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,a=W.getDerivedFromVars(W.json.width)),R(),R=h(a,(t=>r(67,F=t)))),1&t.$$.dirty[0]&&(r(40,s=W.getDerivedFromVars(W.json.height)),S(),S=h(s,(t=>r(61,w=t)))),1&t.$$.dirty[0]&&r(60,l=W.getJsonWithVars(W.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,c=W.getDerivedFromVars(W.json.tab_title_style)),z(),z=h(c,(t=>r(66,D=t)))),1&t.$$.dirty[0]&&(r(38,d=W.getDerivedFromVars(W.json.has_separator)),M(),M=h(d,(t=>r(18,V=t)))),1&t.$$.dirty[0]&&(r(37,u=W.getDerivedFromVars(W.json.separator_color)),T(),T=h(u,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(36,f=W.getDerivedFromVars(W.json.separator_paddings)),O(),O=h(f,(t=>r(64,A=t)))),1&t.$$.dirty[0]&&(r(35,g=W.getDerivedFromVars(W.json.switch_tabs_by_content_swipe_enabled)),I(),I=h(g,(t=>r(63,E=t)))),1&t.$$.dirty[0]&&(r(34,m=W.getDerivedFromVars(W.json.restrict_parent_scroll)),B(),B=h(m,(t=>r(43,P=t)))),1&t.$$.dirty[0]&&(r(33,v=W.getDerivedFromVars(W.json.title_paddings)),N(),N=h(v,(t=>r(62,k=t)))),536870912&t.$$.dirty[1]&&r(15,y=l&&Number(l)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(o)&&o.length){let t=[];o.forEach(((e,n)=>{const r=W.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):W.logError(me(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Y.set(t)}else Y.set([]);if(65537&t.$$.dirty[0]&&((null==x?void 0:x.length)?r(2,X=!1):(r(2,X=!0),W.logError(me(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|1073741824&t.$$.dirty[1]|32&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==F?void 0:F.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),r(3,st=qe(t,st))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!X&&(y<0||y>=o.length)&&(W.logError(me(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:W.json.selected_tab,length:o.length}})),r(15,y=y<0?0:o.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(X||x.some((t=>y===t.index))||(W.logError(me(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:W.json.selected_tab}})),r(15,y=(null===r(53,L=x[0])||void 0===L?void 0:L.index)||0))),16&t.$$.dirty[2]&&r(59,$=D||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,ct=Nn($.font_size,ct)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&($.font_size||$.paddings)){const t=$.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/ct*10,right:(Number("ltr"===C?t.end:t.start)||Number(t.right)||0)/ct*10,bottom:(Number(t.bottom)||0)/ct*10,left:(Number("ltr"===C?t.start:t.end)||Number(t.left)||0)/ct*10};r(5,dt=Ue(e,C,dt))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.line_height;void 0!==t&&un(t)&&r(23,ut=_e(t/ct*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.letter_spacing;void 0!==t&&Le(t)&&r(24,ht=_e(t/ct*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&($.corner_radius||$.corners_radius||$.font_size)){const t=null!==r(54,U=$.corner_radius)&&void 0!==U?U:1e3;$.corners_radius?r(6,pt=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!Le(o[t]))return r;return Ye(t,e,n)}($.corners_radius,t,ct,pt)):Le(t)&&r(6,pt=_e(t/ct*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,et=On($.active_font_weight||$.font_weight,et)),$.font_family&&"string"==typeof $.font_family?r(25,ft=q.typefaceProvider($.font_family,{fontWeight:et||400})):r(25,ft="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,nt=On($.inactive_font_weight||$.font_weight,nt)),$.font_family&&"string"==typeof $.font_family?r(26,gt=q.typefaceProvider($.font_family,{fontWeight:nt||400})):r(26,gt="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,mt=xe($.active_text_color,1,mt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,vt=xe($.inactive_text_color,1,vt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,yt=xe($.active_background_color,1,yt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,$t=xe($.inactive_background_color,1,$t)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,_t=Ne($.item_spacing,_t)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|12&t.$$.dirty[2]&&V&&(j&&r(56,bt=xe(j,1,bt)),A&&r(57,xt=Ue(A,C,xt))),100663296&t.$$.dirty[1]&&r(32,_={background:bt,margin:xt}),2&t.$$.dirty[2]&&r(31,b=void 0===E||Boolean(E)),16384&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(14,Et=Xe(k||void 0,Et)),134217728&t.$$.dirty[1]&&function(t){X||(r(29,Vt=t.map(((t,e)=>{if(e===y&&(null==t?void 0:t.div))return W.produceChildContext(t.div,{path:e})}))),r(30,Dt=t.map(((t,e)=>e===y))))}(o),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&W.json&&(K&&(q.unregisterInstance(K),r(55,K=void 0)),!W.json.id||X||W.fakeElement||(r(55,K=W.json.id),q.registerInstance(K,{setCurrentItem(t){if(t<0||t>o.length-1)throw new Error('Item is out of range in "set-current-item" action');Tt(t)},setPreviousItem(t,e){let n=y-t;n<0&&(n="ring"===e?po(n,o.length):0),Tt(n)},setNextItem(t,e){let n=y+t;n>o.length-1&&(n="ring"===e?po(n,o.length):o.length-1),Tt(n)},scrollToStart(){Tt(0)},scrollToEnd(){Tt(o.length-1)}}))),1073741824&t.$$.dirty[1]&&r(22,lt={"height-parent":"match_parent"===(null==w?void 0:w.type)?"yes":""})},[W,H,X,st,ct,dt,pt,et,nt,mt,vt,yt,$t,_t,Et,y,x,C,V,Z,Q,tt,lt,ut,ht,ft,gt,Ct,jt,Vt,Dt,b,_,v,m,g,f,u,d,c,s,a,i,P,J,G,Y,function(t){W.json.items&&r(0,W=Object.assign(Object.assign({},W),{json:Object.assign(Object.assign({},W.json),{items:W.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},zt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&o){if(t.which===Co)Mt(-1,!0);else if(t.which===Ao)Mt(1,!0);else if(t.which===jo)Tt(0,!0);else{if(t.which!==Vo)return;Tt(o.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,i=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(fe["root_restrict-scroll"]));o.length<2||t.touches.length>1||i&&i!==Q||(It=!1,Ot=!1,Pt=rn(t),Nt=null,ot=Date.now(),it=at||-y*Q.clientWidth,r(28,jt=!1),Ft&&clearTimeout(Ft))},function(t){const e=rn(t);if(!Pt||Nt&&Nt.x===e.x&&Nt.y===e.y)return;Nt=e;const n=Q.clientWidth;if(It){at=e.x-Pt.x+it;const t=n*o.length;if(at>0)at=at*n/(at+3*n);else if(-at+n>t){let e=-at+n-t;e=e*n/(e+3*n),at=n-t-e}Rt(100*at/n)}else Math.abs(e.y-Pt.y)>10?Ot=!0:!Ot&&Math.abs(e.x-Pt.x)>8&&(Ut(),It=!0,Pt=e,Rt(100*-y),Bt(!0));It&&t.cancelable&&t.preventDefault()},function(){Ot=!1,Pt=null;let t=y;if(!It)return;It=!1;const e=Math.min(512,Q.clientWidth);Math.abs(it-at)>e/4*Math.min(1,(Date.now()-ot)/750)&&(t+=it>at?1:-1),t>=o.length?t=o.length-1:t<0&&(t=0),t===y?(r(28,jt=!0),at=-t*e,Rt(100*-t),Lt()):Tt(t)},L,U,K,bt,xt,o,$,l,w,k,E,A,j,D,F,(t,e)=>zt(0,t),function(t){At[t?"unshift":"push"]((()=>{Z=t,r(19,Z)}))},function(t){At[t?"unshift":"push"]((()=>{tt=t,r(21,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(20,Q)}))}]}const Lo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Uo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Wo(t){return t*t*t}function Ho(t){const e=t-1;return e*e*e+1}function qo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Jo=qo([.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]),Go=qo([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]),Ko={linear:r,ease:Jo,ease_in:Wo,ease_out:Ho,ease_in_out:Uo,spring:Go},Xo=200,Yo=0,Zo=0,Qo=0;function ti(t){return Math.max(...t.map((t=>(Number(t.duration)||Xo)+(Number(t.start_delay)||Yo))))}function ei(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:tn()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Yo,a=Number(t.duration)||Xo,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,d=(Ko[t.interpolator||"ease_in_out"]||Uo)(c);if("fade"===t.type)return d>=1?{active:!1,opacity:0}:{active:d>0&&d<1,opacity:(1-d)*l+d*(t.alpha||Zo)};if("slide"===t.type){var u;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let i=null===(u=t.distance)||void 0===u?void 0:u.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*d;return{active:d>0&&d<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-d+d*(t.scale||Qo),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:d>0&&d<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),d=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),u=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[d,h.length?h[h.length-1]:u].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function ni(t,e,n){return t*(1-n)+e*n}const ri={linear:r,ease:Jo,ease_in:Wo,ease_out:Ho,ease_in_out:Uo,spring:Go},oi=200,ii=0;function ai(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:ii,duration:tn()?0:null!==(r=s.duration)&&void 0!==r?r:oi,easing:s.interpolator&&s.interpolator in ri?ri[s.interpolator]:Uo,css:t=>["top:".concat(ni(i.top,a.top,t)-o.top,"px"),"left:".concat(ni(i.left,a.left,t)-o.left,"px"),"width:".concat(ni(i.width,a.width,t),"px"),"height:".concat(ni(i.height,a.height,t),"px")].join(";")}}function si(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...si(t))})):e.push(t),e}const li={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},ci={linear:r,ease:Jo,ease_in:Wo,ease_out:Ho,ease_in_out:Uo,spring:Go},di=300,ui=0;function hi(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Ke(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||di)+(Number(t.start_delay)||ui)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:tn()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||ui,o=Number(t.duration)||di,i=Math.max(0,Math.min(1,(e-n)/o)),a=(ci[t.interpolator||"ease_in_out"]||Uo)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,d;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(d=t.end_value)&&void 0!==d?d:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var u,h;const e="in"===r&&null!==(u=t.start_value)&&void 0!==u?u:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),d=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(d||"none",";opacity:").concat(a)}}}const{window:pi}=A;function fi(t){let e,o,i,a,c,d,u,h;return o=new Ls({props:{componentContext:t[11]}}),{c(){e=R("div"),oe(o.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);ie(o.$$.fragment,n),n.forEach(M),this.h()},h(){q(e,"class",i=Me("tooltip",li,t[5])+" "+(t[12]?fe.root_platform_desktop:"")),lt(e,"top",t[2]),lt(e,"left",t[1]),lt(e,"width",t[3]),lt(e,"height",t[4])},m(n,r){T(n,e,r),ae(o,e,null),t[27](e),d=!0,u||(h=[H(pi,"click",t[16]),H(pi,"resize",t[17])],u=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!d||4128&r[0]&&i!==(i=Me("tooltip",li,t[5])+" "+(t[12]?fe.root_platform_desktop:"")))&&q(e,"class",i),4&r[0]&&lt(e,"top",t[2]),2&r[0]&&lt(e,"left",t[1]),8&r[0]&&lt(e,"width",t[3]),16&r[0]&&lt(e,"height",t[4])},i(n){d||(qt(o.$$.fragment,n),n&&Nt((()=>{d&&(c&&c.end(1),a=Kt(e,hi,{animations:t[13]||gi,direction:"in"}),a.start())})),d=!0)},o(i){Jt(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),d=!0;const u=Ut;let h;function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Gt;p&&(a=mt(t,1,0,o,e,i,p));const f=w()+e,g=f+o;Nt((()=>Bt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),C((e=>{if(d){if(e>=g)return l(0,1),Bt(t,!1,"end"),--u.r||s(u.c),!1;if(e>=f){const t=i((e-f)/o);l(1-t,t)}}return d}))}return u.r+=1,l(c)?Rt().then((()=>{c=c(i),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),d&&(a&&vt(t,a),d=!1)}}}(e,hi,{animations:t[14]||gi,direction:"out"})),d=!1},d(n){n&&M(e),se(o),t[27](null),n&&c&&c.end(),u=!1,s(h)}}}const gi={name:"set",items:[{name:"translate"},{name:"fade"}]};function mi(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$=n,_=n,b=n,w=n,x=n;var k,E,C,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:D}=e,{parentComponentContext:F}=e;const P=kt(ge),S=P.isDesktop;p(t,S,(t=>r(12,m=t)));const N=Date.now();let I,O=!1,T="",M="",z="",R="",B=null;function L(){var t,e;if(!I||!j)return;const n=I.parentElement;if(!n)return;const o=I.style.cssText;r(0,I.style.cssText+=";transform: none !important",I);const i=j.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,I.style.cssText=o,I);let l=0,c=0,d=null,h=null,p=0,m=0;const v=F.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(p=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?d=v.value:a.width:d=i.width,m="match_parent"===(null==y?void 0:y.type)?h=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-p;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-p/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=f||0,c+=u||0,r(1,T="".concat(l,"px")),r(2,M="".concat(c,"px")),r(3,z=null!==d?"".concat(d,"px"):""),r(4,R=null!==h?"".concat(h,"px"):""),r(26,O=!0),null===d||null===h?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(I)):null==B||B.disconnect()}return _t((()=>{if(P.tooltipRoot){const t=window.getComputedStyle(I);r(0,I.style.fontSize=t.fontSize,I),r(0,I.style.fontFamily=t.fontFamily,I),r(0,I.style.lineHeight=t.lineHeight,I),P.tooltipRoot.appendChild(I)}})),bt((()=>{O||L()})),wt((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,D=t.internalId),"parentComponentContext"in t&&r(21,F=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=F.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=F.getDerivedFromVars(V.position)),b(),b=h(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=F.getDerivedFromVars(null===r(23,E=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),_(),_=h(a,(t=>r(30,f=t)))),52953088&t.$$.dirty[0]&&(r(8,s=F.getDerivedFromVars(null===r(25,A=null===r(24,C=V.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),$(),$=h(s,(t=>r(29,u=t)))),2621440&t.$$.dirty[0]&&(r(7,l=F.getDerivedFromVars(V.animation_in)),w(),w=h(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=F.getDerivedFromVars(V.animation_out)),x(),x=h(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,d={visible:O})},[I,T,M,z,R,d,c,l,s,a,i,o,m,v,y,S,function(t){Date.now()-N<100||t.composedPath().includes(I)||P.onTooltipClose(D)},function(){L()},j,V,D,F,k,E,C,A,O,function(t){At[t?"unshift":"push"]((()=>{I=t,r(0,I)}))}]}const vi=class extends de{constructor(t){super(),le(this,t,mi,fi,u,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}},{Map:yi}=A;function $i(t,e,n){const r=t.slice();return r[33]=e[n],r}function _i(t,e,n){const r=t.slice();return r[33]=e[n],r}function bi(t){var e;let n,r,o,i;n=new Pn({props:{cls:Lo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[Ai]},$$scope:{ctx:t}}});let a=(null===(e=t[0])||void 0===e?void 0:e.tooltips)&&ji(t);return{c(){oe(n.$$.fragment),r=U(),a&&a.c(),o=W()},l(t){ie(n.$$.fragment,t),r=ot(t),a&&a.l(t),o=W()},m(t,e){ae(n,t,e),T(t,r,e),a&&a.m(t,e),T(t,o,e),i=!0},p(t,e){var r;const i={};1&e[0]&&(i.componentContext=t[0]),2&e[0]&&(i.layoutParams=t[1]),128&e[0]&&(i.parentOf=t[7]),120&e[0]|128&e[1]&&(i.$$scope={dirty:e,ctx:t}),n.$set(i),null!==(r=t[0])&&void 0!==r&&r.tooltips?a?(a.p(t,e),1&e[0]&&qt(a,1)):(a=ji(t),a.c(),qt(a,1),a.m(o.parentNode,o)):a&&(Wt(),Jt(a,1,1,(()=>{a=null})),Ht())},i(t){i||(qt(n.$$.fragment,t),qt(a),i=!0)},o(t){Jt(n.$$.fragment,t),Jt(a),i=!1},d(t){t&&(M(r),M(o)),se(n,t),a&&a.d(t)}}}function wi(t){let e,r,o=t[5],i=xi(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),T(t,e,n),r=!0},p(t,r){32&r[0]&&u(o,o=t[5])?(Wt(),Jt(i,1,1,n),Ht(),i=xi(t),i.c(),qt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(qt(i),r=!0)},o(t){Jt(i),r=!1},d(t){t&&M(e),i.d(t)}}}function xi(t){let e,n;return e=new Ls({props:{componentContext:t[6]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function ki(t){let e,n,r,o,i,a,s,l,c,d;function u(){return t[16](t[33])}return r=new Ls({props:{componentContext:t[33].componentContextCopy}}),{c(){e=R("div"),n=R("div"),oe(r.$$.fragment),i=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);ie(r.$$.fragment,a),a.forEach(M),i=ot(o),o.forEach(M),this.h()},h(){q(n,"class",o=Lo["state__animation-child-inner"]),q(e,"class",a=Lo["state__animation-child"])},m(t,o){T(t,e,o),I(e,n),ae(r,n,null),I(e,i),l=!0,c||(d=H(e,"introend",u),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[33].componentContextCopy),r.$set(o)},i(n){l||(qt(r.$$.fragment,n),s||Nt((()=>{s=Kt(e,ai,t[33]),s.start()})),l=!0)},o(t){Jt(r.$$.fragment,t),l=!1},d(t){t&&M(e),se(r),c=!1,d()}}}function Ei(t){let e,n,r,o,i,a,s,l,c,d,u="".concat(t[33].offsetLeft,"px"),h="".concat(t[33].offsetTop,"px"),p="".concat(t[33].width,"px"),f="".concat(t[33].height,"px");function g(){return t[15](t[33])}return r=new Ls({props:{componentContext:t[33].componentContextCopy}}),{c(){e=R("div"),n=R("div"),oe(r.$$.fragment),i=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);ie(r.$$.fragment,a),a.forEach(M),i=ot(o),o.forEach(M),this.h()},h(){q(n,"class",o=Lo["state__animation-child-inner"]),q(e,"class",a=Lo["state__animation-child"]),lt(e,"left",u),lt(e,"top",h),lt(e,"width",p),lt(e,"height",f)},m(t,o){T(t,e,o),I(e,n),ae(r,n,null),I(e,i),l=!0,c||(d=H(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[33].componentContextCopy),r.$set(i),16&o[0]&&u!==(u="".concat(t[33].offsetLeft,"px"))&&lt(e,"left",u),16&o[0]&&h!==(h="".concat(t[33].offsetTop,"px"))&&lt(e,"top",h),16&o[0]&&p!==(p="".concat(t[33].width,"px"))&&lt(e,"width",p),16&o[0]&&f!==(f="".concat(t[33].height,"px"))&&lt(e,"height",f)},i(n){l||(qt(r.$$.fragment,n),s||Nt((()=>{s=Kt(e,ei,t[33]),s.start()})),l=!0)},o(t){Jt(r.$$.fragment,t),l=!1},d(t){t&&M(e),se(r),c=!1,d()}}}function Ci(t,e){let n,r,o,i,a;const s=[Ei,ki],l=[];function c(t,e){return"direction"in t[33]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=W(),o.c(),i=W(),this.h()},l(t){n=W(),o.l(t),i=W(),this.h()},h(){this.first=n},m(t,e){T(t,n,e),l[r].m(t,e),T(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Wt(),Jt(l[a],1,1,(()=>{l[a]=null})),Ht(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),qt(o,1),o.m(i.parentNode,i))},i(t){a||(qt(o),a=!0)},o(t){Jt(o),a=!1},d(t){t&&(M(n),M(i)),l[r].d(t)}}}function Ai(t){let e,n,r,o,i=[],a=new yi,s=t[6]&&wi(t),l=Xt(t[4]);const c=t=>t[33];for(let e=0;e<l.length;e+=1){let n=_i(t,l,e),r=c(n);a.set(r,i[e]=Ci(r,n))}return{c(){s&&s.c(),e=U(),n=R("div");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){s&&s.l(t),e=ot(t),n=et(t,"DIV",{class:!0,"aria-hidden":!0});var r=Y(n);for(let t=0;t<i.length;t+=1)i[t].l(r);r.forEach(M),this.h()},h(){q(n,"class",r=Lo.state__animations),q(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),T(r,e,a),T(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[17](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&qt(s,1)):(s=wi(t),s.c(),qt(s,1),s.m(e.parentNode,e)):s&&(Wt(),Jt(s,1,1,(()=>{s=null})),Ht()),528&r[0]&&(l=Xt(t[4]),Wt(),i=Zt(i,r,c,1,t,l,a,n,Yt,Ci,null,_i),Ht())},i(t){if(!o){qt(s);for(let t=0;t<l.length;t+=1)qt(i[t]);o=!0}},o(t){Jt(s);for(let t=0;t<i.length;t+=1)Jt(i[t]);o=!1},d(r){r&&(M(e),M(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[17](null)}}}function ji(t){let e,n,r=[],o=new yi,i=Xt(t[0].tooltips);const a=t=>t[33].internalId;for(let e=0;e<i.length;e+=1){let n=$i(t,i,e),s=a(n);o.set(s,r[e]=Vi(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);T(t,e,o),n=!0},p(t,n){1&n[0]&&(i=Xt(t[0].tooltips),Wt(),r=Zt(r,n,a,1,t,i,o,e.parentNode,Yt,Vi,e,$i),Ht())},i(t){if(!n){for(let t=0;t<i.length;t+=1)qt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Jt(r[t]);n=!1},d(t){t&&M(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Vi(t,e){let n,r,o;return r=new vi({props:{ownerNode:e[33].ownerNode,data:e[33].desc,internalId:e[33].internalId,parentComponentContext:e[0]}}),{key:t,first:null,c(){n=W(),oe(r.$$.fragment),this.h()},l(t){n=W(),ie(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),ae(r,t,e),o=!0},p(t,n){e=t;const o={};1&n[0]&&(o.ownerNode=e[33].ownerNode),1&n[0]&&(o.data=e[33].desc),1&n[0]&&(o.internalId=e[33].internalId),1&n[0]&&(o.parentComponentContext=e[0]),r.$set(o)},i(t){o||(qt(r.$$.fragment,t),o=!0)},o(t){Jt(r.$$.fragment,t),o=!1},d(t){t&&M(n),se(r,t)}}}function Di(t){let e,n,r=!t[2]&&bi(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&qt(r,1)):(r=bi(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Fi(t){return"change_bounds"===t.type?t:"set"===t.type?Fi(t.items[0]):null}function Pi(t,e,n){let r,o,i,a,s,l,{componentContext:c}=e,{layoutParams:d}=e;const u=kt(ge),h=kt(ze);let p,f,g,m,v=!1,y=new Map,$=new Set,_=null,b=[],w=[],x=[],k=[],E=!1;function C(t){n(6,m=(null==t?void 0:t.div)?c.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function A(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=c.getJsonWithVars(r),i=c.getJsonWithVars(i);const s=si(i),l=a.getBoundingClientRect(),d=Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=s,u.some((t=>"fade"===t.type))?void 0:r.alpha)});var u;return{json:d,componentContextCopy:o.produceChildContext(d,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function j(t){if(g===t)return;u.setRunning("stateChange",!0);const e=new Set($);b.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,b=[]);let r=[];if(p){const t=p.getBoundingClientRect();r=x.map((e=>A(t,e,"out")))}k.forEach((t=>{y.set(t.id,t.node.getBoundingClientRect())})),w=[],x=[],k=[];const o=s.find((e=>e.state_id===t))||null;if(o?(n(5,g=t),null==a||a.setValue(g),C(o)):c.logError(me(new Error("Cannot find state with id"),{additional:{stateId:t}})),await St(),!p)return;const i=p.getBoundingClientRect();let l=w.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>A(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||$.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const d=r.concat(l),h=d.reduce(((t,e)=>Math.max(t,ti(e.transitions))),0),f=k.filter((t=>y.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:y.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:c.getJsonWithVars(Fi(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,b=[...d.map((t=>Object.assign(Object.assign({},t),{maxDuration:h}))),...f]),y.clear(),u.setRunning("stateChange",!1)}function V(t){if(_&&_.has(t))return _.get(t);c.logError(me(new Error("Missing state block with id"),{additional:{id:t}}))}function D(t){n(4,b=b.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return xt(ze,{registerInstance(t,e){_||(_=new Map),_.has(t)?c.logError(me(new Error("Duplicate state with id"),{additional:{id:t}})):_.set(t,e)},unregisterInstance(t){null==_||_.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!p)return Promise.resolve();const a=A(p.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=ti(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,b=[...b.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return w.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return k.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&y.has(t),registerChild(t){$.add(t)},unregisterChild(t){$.delete(t)}}),wt((()=>{f&&h.unregisterInstance(f)})),t.$$set=t=>{"componentContext"in t&&n(0,c=t.componentContext),"layoutParams"in t&&n(1,d=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=c.json.div_id||c.json.id),1&t.$$.dirty[0]&&(o=c.getJsonWithVars(c.json.default_state_id)),1&t.$$.dirty[0]&&n(14,i=c.json.state_id_variable),16385&t.$$.dirty[0]&&(a=i?c.getVariable(i,"string"):null),1&t.$$.dirty[0]&&c.json&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,v=!1):(n(2,v=!0),c.logError(me(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c.json&&($=new Set),1&t.$$.dirty[0]&&n(12,s=c.json.states||[]),4096&t.$$.dirty[0]&&n(7,l=s.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(2,v=!1):(n(2,v=!0),c.logError(me(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&c.json&&(f&&(h.unregisterInstance(f),n(10,f=void 0)),r&&!(null==c?void 0:c.fakeElement)&&(n(10,f=r),h.registerInstance(r,{setState:j,getChild:V}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,g=e);const r=t.find((t=>t.state_id===g))||null;C(r),r||c.logError(me(new Error("Cannot find state for default_state_id"),{additional:{selectedId:g}}))}else{const e=t[0];n(5,g=e.state_id),C(e)}a&&(a.setValue(g),a.subscribe((t=>{j(t)})))}}(s)},[c,d,v,p,b,g,m,l,function(t){const e=c.json.states;e&&(n(12,s=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,c.json=Object.assign(Object.assign({},c.json),{states:s}),c),g&&C(s.find((t=>t.state_id===g))||null))},D,f,E,s,r,i,t=>D(t),t=>D(t),function(t){At[t?"unshift":"push"]((()=>{p=t,n(3,p)}))}]}const Si={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Ni}=A;function Ii(t,e,n){const r=t.slice();return r[63]=e[n],r}function Oi(t){let e,n;return e=new Pn({props:{cls:Me("pager",Si,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(Li),replaceItems:t[23],$$slots:{default:[Ri]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Me("pager",Si,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Li)),134068&n[0]|16&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ti(t){let e,n,r,o,i;return n=new Ls({props:{componentContext:t[63]}}),{c(){e=R("div"),oe(n.$$.fragment),r=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);ie(n.$$.fragment,o),r=ot(o),o.forEach(M),this.h()},h(){q(e,"class",o=Si.pager__item)},m(t,o){T(t,e,o),ae(n,e,null),I(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[63]),n.$set(r)},i(t){i||(qt(n.$$.fragment,t),i=!0)},o(t){Jt(n.$$.fragment,t),i=!1},d(t){t&&M(e),se(n)}}}function Mi(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=Si["pager__arrow-icon-path"]),q(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[19]||"".concat(Si.pager__arrow," ").concat(uo.arrow," ").concat(uo.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[51]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function zi(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=Si["pager__arrow-icon-path"]),q(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[20]||"".concat(Si.pager__arrow," ").concat(uo.arrow," ").concat(uo.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[52]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function Ri(t){let e,n,r,o,i,a,s,l,c,d=Xt(t[2]),u=[];for(let e=0;e<d.length;e+=1)u[e]=Ti(Ii(t,d,e));const h=t=>Jt(u[t],1,1,(()=>{u[t]=null}));let p=t[8]&&t[9]&&Mi(t),f=t[7]&&t[9]&&zi(t);return{c(){e=R("div");for(let t=0;t<u.length;t+=1)u[t].c();o=U(),p&&p.c(),i=U(),f&&f.c(),a=W(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=Y(e);for(let t=0;t<u.length;t+=1)u[t].l(n);n.forEach(M),o=ot(t),p&&p.l(t),i=ot(t),f&&f.l(t),a=W(),this.h()},h(){q(e,"class",n=Si.pager__items+" "+(t[17]?fe["root_restrict-scroll"]:"")),q(e,"style",r=$e(t[11]))},m(n,r){T(n,e,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(e,null);t[50](e),T(n,o,r),p&&p.m(n,r),T(n,i,r),f&&f.m(n,r),T(n,a,r),s=!0,l||(c=H(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(d=Xt(t[2]),n=0;n<d.length;n+=1){const r=Ii(t,d,n);u[n]?(u[n].p(r,o),qt(u[n],1)):(u[n]=Ti(r),u[n].c(),qt(u[n],1),u[n].m(e,null))}for(Wt(),n=d.length;n<u.length;n+=1)h(n);Ht()}(!s||131072&o[0]&&n!==(n=Si.pager__items+" "+(t[17]?fe["root_restrict-scroll"]:"")))&&q(e,"class",n),(!s||2048&o[0]&&r!==(r=$e(t[11])))&&q(e,"style",r),t[8]&&t[9]?p?p.p(t,o):(p=Mi(t),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),t[7]&&t[9]?f?f.p(t,o):(f=zi(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<d.length;t+=1)qt(u[t]);s=!0}},o(t){u=u.filter(Ni);for(let t=0;t<u.length;t+=1)Jt(u[t]);s=!1},d(n){n&&(M(e),M(o),M(i),M(a)),z(u,n),t[50](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Bi(t){let e,n,r=!t[3]&&Oi(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[3]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),8&n[0]&&qt(r,1)):(r=Oi(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Li=t=>t.json;function Ui(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,_,b,w,x,k,E,C,A,j,V=n,D=n,F=n,P=n,S=n,N=n;var I,O,T,M,z,R,B,L,U,W;t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N()));let{componentContext:H}=e,{layoutParams:q}=e;const J=kt(ge),G=J.direction;p(t,G,(t=>r(4,w=t)));const K=J.genId("pager"),X=J.getCustomization("pagerLeftClass"),Y=J.getCustomization("pagerRightClass"),Z=J.isDesktop;p(t,Z,(t=>r(45,x=t)));const Q=qn((function(){if(!nt)return;const t=function(){const t=Array.from(et.children),e=et.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===at?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:rt}();t!==rt&&r(38,rt=t)}),50);let tt,et,nt=!1,rt=0,ot=0,it=!1,at="horizontal",st="",lt="",ct="";function dt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===at,o=et.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";et.scroll({[a]:o[i],behavior:e}),r(38,rt=t)}function ut(t,e){let n=rt-t;n<0&&(n="ring"===e?po(n,c.length):0),dt(n)}function ht(t,e){let n=rt+t;n>c.length-1&&(n="ring"===e?po(n,c.length):c.length-1),dt(n)}return _t((()=>{if(r(37,nt=!0),Boolean(document.getElementById("".concat(K,"-tab-0")))){const t=[...et.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(K,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(K,"-tab-").concat(e))}})),wt((()=>{r(37,nt=!1),tt&&(J.unregisterInstance(tt),r(36,tt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,H=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&H.json&&r(42,lt=""),1&t.$$.dirty[0]&&(r(16,o=H.getDerivedFromVars(H.json.layout_mode)),D(),D=h(o,(t=>r(46,k=t)))),1&t.$$.dirty[0]&&(r(15,i=H.getDerivedFromVars(H.json.orientation)),S(),S=h(i,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(14,a=H.getDerivedFromVars(H.json.item_spacing)),P(),P=h(a,(t=>r(48,C=t)))),1&t.$$.dirty[0]&&(r(13,s=H.getDerivedFromVars(H.json.paddings)),F(),F=h(s,(t=>r(47,E=t)))),1&t.$$.dirty[0]&&(r(12,l=H.getDerivedFromVars(H.json.restrict_parent_scroll)),N(),N=h(l,(t=>r(17,j=t)))),1&t.$$.dirty[0]&&r(2,c=(Array.isArray(H.json.items)&&H.json.items||[]).map(((t,e)=>H.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(k?"percentage"!==k.type&&"fixed"!==k.type?(r(39,it=!0),H.logError(me(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,it=!1):(r(39,it=!0),H.logError(me(new Error('Empty "layout_mode" prop for div "pager"'))))),262656&t.$$.dirty[1]&&r(40,at=Ir(A,at)),131072&t.$$.dirty[1]){const t=null==C?void 0:C.value;t&&Le(t)&&r(41,st=_e(t||0))}if(16&t.$$.dirty[0]|67584&t.$$.dirty[1]&&r(42,lt=Ue(E,w,lt)),512&t.$$.dirty[1]&&r(44,d="horizontal"===at?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|34335&t.$$.dirty[1])if("fixed"===(null==k?void 0:k.type)){const t=be("horizontal"===at?(("ltr"===w?null===r(26,I=H.json.paddings)||void 0===I?void 0:I.start:null===r(27,O=H.json.paddings)||void 0===O?void 0:O.end)||(null===r(28,T=H.json.paddings)||void 0===T?void 0:T.left)||0)+(("ltr"===w?null===r(29,M=H.json.paddings)||void 0===M?void 0:M.end:null===r(30,z=H.json.paddings)||void 0===z?void 0:z.start)||(null===r(31,R=H.json.paddings)||void 0===R?void 0:R.right)||0):((null===r(32,B=H.json.paddings)||void 0===B?void 0:B.top)||0)+((null===r(33,L=H.json.paddings)||void 0===L?void 0:L.bottom)||0)),e=null===r(34,U=k.neighbour_page_width)||void 0===U?void 0:U.value;r(43,ct=e?"calc(100% + ".concat(t," - 2 * ").concat(be(e)," - 2 * ").concat(st,")"):"100%")}else if("percentage"===(null==k?void 0:k.type)){const t=null===r(35,W=k.page_width)||void 0===W?void 0:W.value;r(43,ct="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,u={"grid-gap":st,padding:lt,[d]:ct}),512&t.$$.dirty[1]&&r(10,f={orientation:at}),256&t.$$.dirty[1]&&r(3,g=it),8&t.$$.dirty[0]|16448&t.$$.dirty[1]&&r(9,m=x&&nt&&!g),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,v="ltr"===w?rt>0:rt+1<c.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,y="ltr"===w?rt+1<c.length:rt>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=H.json.id;if(n){const r=new Map(b);$(_,b=r.set(n,{instId:K,size:t,currentItem:e,scrollToPagerItem:dt}),b)}}(c.length,rt),128&t.$$.dirty[1]&&function(t){var e;if(t===ot)return;ot=t;const n=H.getJsonWithVars(null===(e=c[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&H.execAnyActions(n)}(rt),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&H.json&&(tt&&(J.unregisterInstance(tt),r(36,tt=void 0)),H.json.id&&!H.fakeElement&&(r(36,tt=H.json.id),J.registerInstance(tt,{setCurrentItem(t){if(t<0||t>c.length-1)throw new Error('Item is out of range in "set-current-item" action');dt(t)},setPreviousItem:ut,setNextItem:ht,scrollToStart(){dt(0)},scrollToEnd(){dt(c.length-1)}})))},r(6,_=J.getStore("pagers")),V(),V=h(_,(t=>r(54,b=t))),[H,q,c,g,w,et,_,y,v,m,f,u,l,s,a,i,o,j,G,X,Y,Z,Q,function(t){r(0,H=Object.assign(Object.assign({},H),{json:Object.assign(Object.assign({},H.json),{items:t.filter(Ce)})}))},ut,ht,I,O,T,M,z,R,B,L,U,W,tt,nt,rt,it,at,st,lt,ct,d,x,k,E,C,A,function(t){At[t?"unshift":"push"]((()=>{et=t,r(5,et)}))},()=>("ltr"===w?ut:ht)(1,"clamp"),()=>("ltr"===w?ht:ut)(1,"clamp")]}const Wi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function Hi(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const o=r[45]===r[10].currentItem;return r[43]=o,r}function qi(t){let e,n=Xt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ji(Hi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);T(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=Xt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=Hi(t,n,i);r[i]?r[i].p(a,o):(r[i]=Ji(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&M(e),z(r,t)}}}function Ji(t){let e,n,r,o,i,a,l,c;function d(){return t[36](t[45])}return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Me("indicator__item",Wi,{active:t[43]})+" "+fe.root__clickable),q(e,"role","tab"),q(e,"id",r=t[10].instId+"-tab-"+t[45]),q(e,"aria-controls",o=t[10].instId+"-panel-"+t[45]),q(e,"aria-selected",i=t[43]?"true":"false"),q(e,"tabindex",a=t[43]?0:-1)},m(n,r){T(n,e,r),l||(c=[H(e,"click",d),H(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Me("indicator__item",Wi,{active:t[43]})+" "+fe.root__clickable)&&q(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[45])&&q(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[45])&&q(e,"aria-controls",o),1024&l[0]&&i!==(i=t[43]?"true":"false")&&q(e,"aria-selected",i),1024&l[0]&&a!==(a=t[43]?0:-1)&&q(e,"tabindex",a)},d(t){t&&M(e),l=!1,s(c)}}}function Gi(t){let e,n,r,o,i=t[10]&&qi(t);return{c(){e=R("div"),n=R("div"),i&&i.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0,role:!0});var o=Y(n);i&&i.l(o),o.forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=Wi.indicator__items),q(n,"role","tablist"),lt(n,"margin","default"===t[4]?"0 ".concat(_e(Math.max(0,t[2].width-t[3].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",_e(t[3].width)),lt(n,"--divkit-indicator-inactive-height",_e(t[3].height)),lt(n,"--divkit-indicator-inactive-border-radius",_e(t[3].borderRadius)),lt(n,"--divkit-indicator-inactive-background",t[3].background||""),lt(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),lt(n,"--divkit-indicator-active-width",_e(t[2].width)),lt(n,"--divkit-indicator-active-height",_e(t[2].height)),lt(n,"--divkit-indicator-active-border-radius",_e(t[2].borderRadius)),lt(n,"--divkit-indicator-active-background",t[2].background||""),lt(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),lt(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),lt(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(_e((t[5]-t[3].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?_e(t[7]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?_e((t[6]-1)*t[7]):""),q(e,"class",o=Wi.indicator__scroller)},m(r,o){T(r,e,o),I(e,n),i&&i.m(n,null),t[37](n),t[38](e)},p(t,e){t[10]?i?i.p(t,e):(i=qi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&lt(n,"margin","default"===t[4]?"0 ".concat(_e(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&lt(n,"--divkit-indicator-inactive-width",_e(t[3].width)),8&e[0]&&lt(n,"--divkit-indicator-inactive-height",_e(t[3].height)),8&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",_e(t[3].borderRadius)),8&e[0]&&lt(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&lt(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&lt(n,"--divkit-indicator-active-width",_e(t[2].width)),4&e[0]&&lt(n,"--divkit-indicator-active-height",_e(t[2].height)),4&e[0]&&lt(n,"--divkit-indicator-active-border-radius",_e(t[2].borderRadius)),4&e[0]&&lt(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&lt(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&lt(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&lt(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(_e((t[5]-t[3].width)/2)):""),144&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?_e(t[7]):""),80&e[0]&&lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?_e((t[6]-1)*t[7]):"")},d(n){n&&M(e),i&&i.d(),t[37](null),t[38](null)}}}function Ki(t){let e,n;return e=new Pn({props:{cls:Me("indicator",Wi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Gi]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("indicator",Wi,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}const Xi=["rounded_rectangle","circle"];function Yi(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C=n,A=n,j=n,V=n,D=n,F=n,P=n,S=n,N=n;var I,O;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N()));let{componentContext:T}=e,{layoutParams:M}=e;const z=kt(ge),R=z.direction;p(t,R,(t=>r(26,m=t)));let B,L,U,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},H={width:10,height:10,borderRadius:5,background:"#33919cb5"},q="default",J=15,G=10,K=5;function X(t){t!==U.currentItem&&U.scrollToPagerItem(t)}async function Y(t){U.scrollToPagerItem(t),await St();const e=L.querySelector(".".concat(Wi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,T=t.componentContext),"layoutParams"in t&&r(1,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&T.json&&(r(4,q="default"),r(5,J=15),r(6,G=10),r(7,K=5),r(2,W={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,H={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,o=T.getDerivedFromVars(T.json.shape)),F(),F=h(o,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(19,i=T.getDerivedFromVars(T.json.active_item_color)),V(),V=h(i,(t=>r(30,_=t)))),1&t.$$.dirty[0]&&(r(18,a=T.getDerivedFromVars(T.json.inactive_item_color)),D(),D=h(a,(t=>r(31,b=t)))),1&t.$$.dirty[0]&&(r(17,s=T.getDerivedFromVars(T.json.active_item_size)),P(),P=h(s,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(16,l=T.getDerivedFromVars(T.json.active_shape)),N(),N=h(l,(t=>r(35,E=t)))),1&t.$$.dirty[0]&&(r(15,c=T.getDerivedFromVars(T.json.inactive_shape)),S(),S=h(c,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(14,d=T.getDerivedFromVars(T.json.space_between_centers)),A(),A=h(d,(t=>r(28,y=t)))),1&t.$$.dirty[0]&&(r(13,u=T.getDerivedFromVars(T.json.items_placement)),j(),j=h(u,(t=>r(29,$=t)))),1073741836&t.$$.dirty[0]|31&t.$$.dirty[1]&&(E&&r(2,W=ur({type:"shape_drawable",shape:E},Xi,W)),k&&r(3,H=ur({type:"shape_drawable",shape:k},Xi,H)),!E&&!k&&w)){const t=Nn(x,1.3);r(3,H=ur({type:"shape_drawable",shape:w,color:H.background},Xi,H)),r(3,H.background=xe(b,1,H.background),H),r(2,W=Object.assign(Object.assign({},H),{width:H.width*t,height:H.height*t,borderRadius:H.borderRadius*t,background:W.background})),r(2,W.background=xe(_,1,W.background),W)}if(855638256&t.$$.dirty[0])if(!$||"default"!==$.type&&"stretch"!==$.type)r(4,q="default"),y&&r(5,J=Ne(y.value,J));else if(r(4,q=$.type),"default"===q)r(5,J=Ne(null===r(24,I=$.space_between_centers)||void 0===I?void 0:I.value,J));else if("stretch"===q){const t=$;r(6,G=Nn(t.max_visible_items,G)),r(7,K=Ne(null===r(25,O=t.item_spacing)||void 0===O?void 0:O.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(T.json.pager_id&&t.has(T.json.pager_id)&&(r(10,U=t.get(T.json.pager_id)),await St(),L)){const t=L.children[U.currentItem];if(t){const e=t.offsetLeft;B.scroll({left:e-B.clientWidth/2,behavior:"smooth"})}}}(v),67108880&t.$$.dirty[0]&&r(11,g={placement:q,direction:m})},r(12,f=z.getStore("pagers")),C(),C=h(f,(t=>r(27,v=t))),[T,M,W,H,q,J,G,K,B,L,U,g,f,u,d,c,l,s,a,i,o,R,X,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=U;if(t.which===Co)Y(n-1<0?n:n-1);else if(t.which===Ao)Y(n+1>=e?n:n+1);else if(t.which===jo)Y(0);else{if(t.which!==Vo)return;Y(e-1)}t.preventDefault()},I,O,m,v,y,$,_,b,w,x,k,E,t=>X(t),function(t){At[t?"unshift":"push"]((()=>{L=t,r(9,L)}))},function(t){At[t?"unshift":"push"]((()=>{B=t,r(8,B)}))}]}const Zi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Qi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&xe(t.text_color)||"#000",o=In(t.font_weight);if(un(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:_e(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function ta(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const ea="function"==typeof BigInt;function na(t){return ea?BigInt(t):Number(t)}const ra=na("9223372036854775807"),oa=na("-9223372036854775808");function ia(t){const e=na(t);if(e>ra||e<oa)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const aa=ia(0);function sa(t){let e=t;return e<0&&(e=-e),e}function la(t){let e=0;return t>0?e=1:t<0&&(e=-1),ia(e)}class ca{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=he(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class da extends ca{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class ua extends ca{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return ia(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return ia(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class ha extends ca{convertValue(t){if("number"!=typeof t||Number.isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}}class pa extends ca{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class fa extends ca{convertValue(t){if("string"!=typeof t||!ke(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class ga extends ca{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class ma extends ca{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class va extends ca{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ya={string:da,number:ha,integer:ua,boolean:pa,color:fa,url:ga,dict:ma,array:va};function $a(t,e,n){if(!(e in ya))throw new Error("Unsupported variable type");return new ya[e](t,n)}function _a(){}function ba(t){return t(this.value),_a}function wa(){throw new Error("Cannot change the value of this type of variable")}const xa={string:class extends da{},number:class extends ha{},integer:class extends ua{},boolean:class extends pa{},color:class extends fa{},url:class extends ga{},dict:class extends ma{},array:class extends va{}};for(const t in xa){const e=xa[t];e.prototype.subscribe=ba,e.prototype.set=wa,e.prototype.setValue=wa}function ka(t,e,n){const r=t.slice();return r[80]=e[n],r}function Ea(t,e,n){const r=t.slice();return r[80]=e[n],r}function Ca(t){let e,n;return e=new Pn({props:{cls:Me("slider",Zi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Sa,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Me("slider",Zi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Aa(t){let e,n;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Zi.slider__tick+" "+Zi.slider__tick_active),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){262144&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function ja(t){let e,n;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Zi.slider__tick+" "+Zi.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function Va(t){let e,n,r,o,i;return{c(){e=R("div"),n=R("div"),r=L(t[12]),this.h()},l(o){e=et(o,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);r=rt(a,t[12]),a.forEach(M),i.forEach(M),this.h()},h(){var r,a,s;q(n,"class",o=Zi["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[9])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[9])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[9])||void 0===s?void 0:s.textColor)||"#000"),q(e,"class",i=Zi["slider__thumb-text"])},m(t,o){T(t,e,o),I(e,n),I(n,r)},p(t,e){var o,i,a;4096&e[0]&&at(r,t[12]),512&e[0]&&lt(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&lt(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&lt(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function Da(t){let e,n,r=t[10]&&Fa(t);return{c(){e=R("div"),r&&r.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);r&&r.l(n),n.forEach(M),this.h()},h(){q(e,"class",n=Zi.slider__thumb+" "+Zi.slider__thumb_secondary),lt(e,"border-radius",_e(t[6].borderRadius)),lt(e,"background",t[6].background),lt(e,"box-shadow",t[6].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=Fa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&lt(e,"border-radius",_e(t[6].borderRadius)),64&n[0]&&lt(e,"background",t[6].background),64&n[0]&&lt(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}function Fa(t){let e,n,r,o,i;return{c(){e=R("div"),n=R("div"),r=L(t[13]),this.h()},l(o){e=et(o,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);r=rt(a,t[13]),a.forEach(M),i.forEach(M),this.h()},h(){var r,a,s;q(n,"class",o=Zi["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[10])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[10])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[10])||void 0===s?void 0:s.textColor)||"#000"),q(e,"class",i=Zi["slider__thumb-text"]+" "+Zi["slider__thumb-text_secondary"])},m(t,o){T(t,e,o),I(e,n),I(n,r)},p(t,e){var o,i,a;8192&e[0]&&at(r,t[13]),1024&e[0]&&lt(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&lt(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&lt(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function Pa(t){let e,n,r,o,i;return{c(){e=R("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){q(e,"type","range"),q(e,"class",n=t[17]?Zi.slider__input:"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary)),q(e,"min",t[3]),q(e,"max",t[4]),q(e,"step","1"),e.value=r=t[17]?t[12]:t[13],q(e,"aria-label",t[21])},m(n,r){T(n,e,r),o||(i=[H(e,"input",t[72]),H(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),H(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),H(e,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),H(e,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?Zi.slider__input:"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary))&&q(e,"class",n),8&i[0]&&q(e,"min",t[3]),16&i[0]&&q(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&q(e,"aria-label",t[21])},d(t){t&&M(e),o=!1,s(i)}}}function Sa(t){let e,n,r,o,i,a,c,d,u,h,p,f,g,m,v,y,$,_,b,w,x,k,E=Xt(t[18]),C=[];for(let e=0;e<E.length;e+=1)C[e]=Aa(Ea(t,E,e));let A=Xt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=ja(ka(t,A,e));let V=t[9]&&Va(t),D=t[14]&&Da(t),F=t[14]&&Pa(t);return{c(){e=R("div"),n=R("div"),r=R("div"),i=U(),a=R("div"),d=U();for(let t=0;t<C.length;t+=1)C[t].c();u=U();for(let t=0;t<j.length;t+=1)j[t].c();h=U(),p=R("div"),V&&V.c(),g=U(),D&&D.c(),m=U(),v=R("input"),_=U(),F&&F.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var s=Y(n);r=et(s,"DIV",{class:!0}),Y(r).forEach(M),i=ot(s),a=et(s,"DIV",{class:!0}),Y(a).forEach(M),d=ot(s);for(let t=0;t<C.length;t+=1)C[t].l(s);u=ot(s);for(let t=0;t<j.length;t+=1)j[t].l(s);h=ot(s),p=et(s,"DIV",{class:!0});var l=Y(p);V&&V.l(l),l.forEach(M),g=ot(s),D&&D.l(s),m=ot(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),_=ot(s),F&&F.l(s),s.forEach(M),o.forEach(M),this.h()},h(){q(r,"class",o=Zi.slider__track),lt(r,"height",_e(t[7].height)),lt(r,"border-radius",_e(t[7].borderRadius)),lt(r,"background",t[7].background),lt(r,"box-shadow",t[7].boxShadow||""),q(a,"class",c=Zi["slider__active-track"]),lt(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),lt(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),lt(a,"width",(100*t[27]).toFixed(2)+"%"),lt(a,"height",_e(t[8].height)),lt(a,"border-radius",_e(t[8].borderRadius)),lt(a,"background",t[8].background),lt(a,"box-shadow",t[8].boxShadow||""),q(p,"class",f=Zi.slider__thumb),lt(p,"border-radius",_e(t[5].borderRadius)),lt(p,"background",t[5].background),lt(p,"box-shadow",t[5].boxShadow||""),q(v,"type","range"),q(v,"class",y=t[17]?"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary):Zi.slider__input),q(v,"min",t[3]),q(v,"max",t[4]),q(v,"step","1"),v.value=$=t[17]?t[13]:t[12],q(v,"aria-label",t[20]),q(n,"class",b=Zi["slider__tracks-inner"]),q(e,"class",w=Zi["slider__tracks-wrapper"])},m(o,s){T(o,e,s),I(e,n),I(n,r),I(n,i),I(n,a),I(n,d);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);I(n,u);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);I(n,h),I(n,p),V&&V.m(p,null),I(n,g),D&&D.m(n,null),I(n,m),I(n,v),t[71](v),I(n,_),F&&F.m(n,null),t[73](n),x||(k=[H(v,"input",t[70]),H(v,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),H(v,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&lt(r,"height",_e(t[7].height)),128&o[0]&&lt(r,"border-radius",_e(t[7].borderRadius)),128&o[0]&&lt(r,"background",t[7].background),128&o[0]&&lt(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&lt(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&lt(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&lt(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&lt(a,"height",_e(t[8].height)),256&o[0]&&lt(a,"border-radius",_e(t[8].borderRadius)),256&o[0]&&lt(a,"background",t[8].background),256&o[0]&&lt(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(E=Xt(t[18]),e=0;e<E.length;e+=1){const r=Ea(t,E,e);C[e]?C[e].p(r,o):(C[e]=Aa(r),C[e].c(),C[e].m(n,u))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}if(524288&o[0]){let e;for(A=Xt(t[19]),e=0;e<A.length;e+=1){const r=ka(t,A,e);j[e]?j[e].p(r,o):(j[e]=ja(r),j[e].c(),j[e].m(n,h))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=Va(t),V.c(),V.m(p,null)):V&&(V.d(1),V=null),32&o[0]&&lt(p,"border-radius",_e(t[5].borderRadius)),32&o[0]&&lt(p,"background",t[5].background),32&o[0]&&lt(p,"box-shadow",t[5].boxShadow||""),t[14]?D?D.p(t,o):(D=Da(t),D.c(),D.m(n,m)):D&&(D.d(1),D=null),131072&o[0]&&y!==(y=t[17]?"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary):Zi.slider__input)&&q(v,"class",y),8&o[0]&&q(v,"min",t[3]),16&o[0]&&q(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&q(v,"aria-label",t[20]),t[14]?F?F.p(t,o):(F=Pa(t),F.c(),F.m(n,null)):F&&(F.d(1),F=null)},d(n){n&&M(e),z(C,n),z(j,n),V&&V.d(),D&&D.d(),t[71](null),F&&F.d(),t[73](null),x=!1,s(k)}}}function Na(t){let e,n,r,o,i=!t[11]&&Ca(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(a,s){i&&i.m(a,s),T(a,e,s),n=!0,r||(o=H(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(Wt(),Jt(i,1,1,(()=>{i=null})),Ht()):i?(i.p(t,n),2048&n[0]&&qt(i,1)):(i=Ca(t),i.c(),qt(i,1),i.m(e.parentNode,e))},i(t){n||(qt(i),n=!0)},o(t){Jt(i),n=!1},d(t){t&&M(e),i&&i.d(t),r=!1,o()}}}const Ia={width:10,height:10,borderRadius:5,background:"#000"},Oa=["rounded_rectangle","circle"],Ta=["rounded_rectangle"];function Ma(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function za(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;var it,at,st,lt;t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:ct}=e,{layoutParams:dt}=e;const ut=kt(ge),ht=kt(nn),pt=ut.direction;let ft,gt,mt;p(t,pt,(t=>r(15,D=t)));let vt,yt,$t,bt=!1,xt=0,Et=100,Ct=Ia,jt=Ct,Vt=Ia,Dt=Ia,Ft=null,Pt=null,St=$t,Nt="",It="",Ot=!1,Tt=ta(L||0,xt,Et),Mt=ta(B||0,xt,Et);function zt(t,e){const n=Number(t.target.value);bt===("first"===e)?(r(13,Mt=n),s.setValue(n)):(r(12,Tt=n),a.setValue(n))}let Rt=!1;function Bt(){if(!mt)return;const t=Et-xt,e=(null==Ft?void 0:Ft.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==mt?void 0:mt.clientWidth)?Rt||(ct.logError(me(new Error("Slider ticks overlap each other"),{level:"warn"})),Rt=!0):Rt=!1}const Lt=qn(Bt,50);return _t((()=>{Bt()})),wt((()=>{ft&&(ut.unregisterFocusable(ft),r(48,ft=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ct=t.componentContext),"layoutParams"in t&&r(1,dt=t.layoutParams)},t.$$.update=()=>{if(33&t.$$.dirty[0]&&ct.json&&(r(5,Ct=Ia),r(6,jt=Ct),r(7,Vt=Ia),r(8,Dt=Ia),r(49,Ft=null),r(50,Pt=null),r(9,$t=void 0),r(10,St=void 0),r(20,Nt=""),r(21,It="")),1&t.$$.dirty[0]&&r(55,o=ct.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,i=ct.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,a=o&&ct.getVariable(o,"integer")||$a("temp","integer",0)),nt(),nt=h(a,(t=>r(67,L=t)))),16385&t.$$.dirty[0]&&(r(23,s=i&&ct.getVariable(i,"integer")||$a("temp","integer",0)),et(),et=h(s,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(39,l=ct.getDerivedFromVars(ct.json.min_value)),ot(),ot=h(l,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(38,c=ct.getDerivedFromVars(ct.json.max_value)),rt(),rt=h(c,(t=>r(68,U=t)))),1&t.$$.dirty[0]&&(r(37,d=ct.getDerivedFromVars(ct.json.thumb_style)),tt(),tt=h(d,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(36,u=ct.getDerivedFromVars(ct.json.thumb_secondary_style)),Q(),Q=h(u,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(35,f=ct.getDerivedFromVars(ct.json.track_inactive_style)),Z(),Z=h(f,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(34,g=ct.getDerivedFromVars(ct.json.track_active_style)),Y(),Y=h(g,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(33,m=ct.getDerivedFromVars(ct.json.tick_mark_active_style)),X(),X=h(m,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(32,v=ct.getDerivedFromVars(ct.json.tick_mark_inactive_style)),K(),K=h(v,(t=>r(60,I=t)))),1&t.$$.dirty[0]&&(r(31,y=ct.getDerivedFromVars(ct.json.thumb_text_style)),G(),G=h(y,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(30,$=ct.getDerivedFromVars(ct.json.thumb_secondary_text_style)),J(),J=h($,(t=>r(58,S=t)))),1&t.$$.dirty[0]&&(r(29,_=ct.getDerivedFromVars(ct.json.accessibility)),q(),q=h(_,(t=>r(57,P=t)))),1&t.$$.dirty[0]&&(r(28,b=ct.getDerivedFromVars(ct.json.secondary_value_accessibility)),H(),H=h(b,(t=>r(56,F=t)))),24&t.$$.dirty[0]|192&t.$$.dirty[2]&&(r(3,xt=Ge(W,xt)),r(4,Et=Ge(U,Et)),Bt()),4120&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=ta(L||0,xt,Et);t!==Tt&&r(12,Tt=t)}if(8216&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=ta(B||0,xt,Et);t!==Mt&&r(13,Mt=t)}if(32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(5,Ct=ur(R,Oa,Ct)),32&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(6,jt=ur(z,Oa,Ct)),128&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(7,Vt=ur(M,Ta,Vt)),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,Dt=ur(T,Ta,Dt)),1073741824&t.$$.dirty[1]){let t=ur(O,Oa,Ia);t!==Ia&&r(49,Ft=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(Ft?(r(18,vt=i?Ma(Math.min(Tt,Mt),Math.max(Tt,Mt)+1,xt,Et,!0):Ma(xt,Tt,xt,Et,!0)),Bt()):r(18,vt=[])),536870912&t.$$.dirty[1]){let t=ur(I,Oa,Ia);t!==Ia&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,yt=i?Ma(Math.min(Tt,Mt),Math.max(Tt,Mt)+1,xt,Et,!1):Ma(Tt+1,Et+1,xt,Et,!0)),Bt()):r(19,yt=[])),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,$t=Qi(N,$t)),512&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(10,St=Qi(S,$t)),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,Nt=P.description):ct.logError(me(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==F?void 0:F.description)?r(21,It=F.description):i&&ct.logError(me(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;ht.hasAction()?(ct.logError(me(new Error('Cannot show "slider" inside component with action'))),t=!0):Ct===Ia?(ct.logError(me(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===Ia?(ct.logError(me(new Error('Missing "track_active_style" in slider'))),t=!0):Vt===Ia&&(ct.logError(me(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&r(11,Ot=t)}96&t.$$.dirty[0]&&r(54,w=_e(Math.max(...[Ct.width,jt.width,0].filter(Le)))),96&t.$$.dirty[0]&&r(53,x=_e(Math.max(...[Ct.height,jt.height,0].filter(Le)))),4120&t.$$.dirty[0]&&r(52,k=(Tt-xt)/(Et-xt)),24600&t.$$.dirty[0]&&r(51,E=i?(Mt-xt)/(Et-xt):void 0),3145728&t.$$.dirty[1]&&r(27,C=void 0!==E?Math.abs(E-k):k),3145728&t.$$.dirty[1]&&r(26,A=void 0!==E?Math.min(E,k):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,j={"--divkit-slider-thumb-width":_e(Ct.width),"--divkit-slider-thumb-height":_e(Ct.height),"--divkit-slider-thumb-secondary-width":_e(jt.width),"--divkit-slider-thumb-secondary-height":_e(jt.height),"--divkit-slider-text-offset-x":(null===r(44,it=null==$t?void 0:$t.offset)||void 0===it?void 0:it.x)?be($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,at=null==$t?void 0:$t.offset)||void 0===at?void 0:at.y)?be($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,st=null==St?void 0:St.offset)||void 0===st?void 0:st.x)?be(St.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,lt=null==St?void 0:St.offset)||void 0===lt?void 0:lt.y)?be(St.offset.y):void 0,"--divkit-slider-tick-active-width":Ft?_e(Ft.width):void 0,"--divkit-slider-tick-active-height":Ft?_e(Ft.height):void 0,"--divkit-slider-tick-active-border-radius":Ft?_e(Ft.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ft?void 0:Ft.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ft?void 0:Ft.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?_e(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?_e(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?_e(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":w,"--divkit-slider-max-thumb-height":x,"--divkit-slider-track-part":k,"--divkit-slider-track-secondary-part":E}),32768&t.$$.dirty[0]&&r(24,V={direction:D}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ct.json&&gt&&(ft&&(ut.unregisterFocusable(ft),r(48,ft=void 0)),ct.json.id&&!ct.fakeElement&&(r(48,ft=ct.json.id),ut.registerFocusable(ft,{focus(){gt&&gt.focus()}})))},[ct,dt,gt,xt,Et,Ct,jt,Vt,Dt,$t,St,Ot,Tt,Mt,i,D,mt,bt,vt,yt,Nt,It,a,s,V,j,A,C,b,_,$,y,v,m,g,f,u,d,c,l,pt,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=mt.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===D&&(a=1-a);const s=xt+(Et-xt)*a,l=Math.round(ta(s,xt,Et));r(17,bt=l<(Tt+Mt)/2==Tt<Mt)},zt,Lt,it,at,st,lt,ft,Ft,Pt,E,k,x,w,o,F,P,S,N,I,O,T,M,z,R,B,L,U,W,t=>zt(t,"first"),function(t){At[t?"unshift":"push"]((()=>{gt=t,r(2,gt)}))},t=>zt(t,"second"),function(t){At[t?"unshift":"push"]((()=>{mt=t,r(16,mt)}))}]}const Ra={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function Ba(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Ba(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function La(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Ua{constructor(t){this.char=t}}class Wa{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ha{constructor(t){La(this,"filters",new Map),La(this,"destructedValue",[]),La(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof Ua)t+=n.char;else if(n instanceof Wa)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof Wa&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(me(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new Wa(null,this.filters.get(e.key),e.placeholder):new Ua(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=Ba(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof Wa&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof Wa&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof Wa&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof Wa);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof Wa&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof Wa&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Wa);)++e;return e}}class qa extends Ha{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Ja(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Ga extends Ha{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),Ja(this,"currencyFormatter",new Intl.NumberFormat),Ja(this,"decimalSeparator","."),Ja(this,"localeDigits",{}),Ja(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}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(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(me(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=Ba(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const d=t[r],u=l.length<=i;this.isDigit(d)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(d),a--):l.push(d):u&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!u||d!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const Ka=3;function Xa(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Ya(t,e){if(t.nodeType!==Ka)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Xa(r);if(e<=o)return void Ya(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Za(t){let e,n;return e=new Pn({props:{cls:Me("input",Ra,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ns,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Me("input",Ra,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),78780&n[0]|8&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Qa(t){let e,n,r,o,i;return{c(){e=R("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){q(e,"type",t[7]),q(e,"inputmode",t[8]),q(e,"class",n=Me("input__input",Ra,{"has-custom-focus":t[90],singleline:!0})),q(e,"autocomplete","off"),q(e,"autocapitalize","off"),q(e,"aria-label",t[9]),q(e,"style",r=$e(t[13])),q(e,"placeholder",t[16]),e.value=t[3]},m(n,r){T(n,e,r),t[80](e),o||(i=[H(e,"input",t[36]),H(e,"mousedown",(function(){l(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),H(e,"click",(function(){l(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),H(e,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),H(e,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],o=!0)},p(o,i){t=o,128&i[0]&&q(e,"type",t[7]),256&i[0]&&q(e,"inputmode",t[8]),268435456&i[2]&&n!==(n=Me("input__input",Ra,{"has-custom-focus":t[90],singleline:!0}))&&q(e,"class",n),512&i[0]&&q(e,"aria-label",t[9]),8192&i[0]&&r!==(r=$e(t[13]))&&q(e,"style",r),65536&i[0]&&q(e,"placeholder",t[16]),8&i[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&M(e),t[80](null),o=!1,s(i)}}}function ts(t){let e,n,r,o,i,a,c,d,u,h,p,f,g,m=!t[5]&&t[16]&&es(t);return{c(){e=R("span"),m&&m.c(),n=U(),r=R("span"),o=L("​"),c=U(),d=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var i=Y(e);m&&m.l(i),n=ot(i),r=et(i,"SPAN",{class:!0,"aria-hidden":!0,style:!0});var a=Y(r);o=rt(a,"​"),a.forEach(M),c=ot(i),d=et(i,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Y(d).forEach(M),i.forEach(M),this.h()},h(){q(r,"class",i=Ra.input__aligner),q(r,"aria-hidden","true"),q(r,"style",a=$e(t[12])),q(d,"class",u=Me("input__input",Ra,{"has-custom-focus":t[90],multiline:!0})),q(d,"autocapitalize","off"),q(d,"contenteditable","true"),q(d,"aria-label",t[9]),q(d,"style",h=$e(t[13])),void 0===t[5]&&Nt((()=>t[79].call(d))),q(e,"class",p=Ra["input__scroll-wrapper"])},m(i,a){T(i,e,a),m&&m.m(e,null),I(e,n),I(e,r),I(r,o),I(e,c),I(e,d),t[78](d),void 0!==t[5]&&(d.innerText=t[5]),f||(g=[H(d,"input",t[79]),H(d,"input",t[36]),H(d,"paste",as),H(d,"mousedown",(function(){l(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),H(d,"click",(function(){l(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),H(d,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),H(d,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],f=!0)},p(o,i){!(t=o)[5]&&t[16]?m?m.p(t,i):(m=es(t),m.c(),m.m(e,n)):m&&(m.d(1),m=null),4096&i[0]&&a!==(a=$e(t[12]))&&q(r,"style",a),268435456&i[2]&&u!==(u=Me("input__input",Ra,{"has-custom-focus":t[90],multiline:!0}))&&q(d,"class",u),512&i[0]&&q(d,"aria-label",t[9]),8192&i[0]&&h!==(h=$e(t[13]))&&q(d,"style",h),32&i[0]&&t[5]!==d.innerText&&(d.innerText=t[5])},d(n){n&&M(e),m&&m.d(),t[78](null),f=!1,s(g)}}}function es(t){let e,n,r,o;return{c(){e=R("div"),n=L(t[16]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=Y(e);n=rt(o,t[16]),o.forEach(M),this.h()},h(){q(e,"class",r=Ra.input__placeholder),q(e,"aria-hidden","true"),q(e,"style",o=$e(t[13]))},m(t,r){T(t,e,r),I(e,n)},p(t,r){65536&r[0]&&at(n,t[16]),8192&r[0]&&o!==(o=$e(t[13]))&&q(e,"style",o)},d(t){t&&M(e)}}}function ns(t){let e;function n(t,e){return t[4]?ts:Qa}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function rs(t){let e,n,r=!t[6]&&Za(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[6]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),64&n[0]&&qt(r,1)):(r=Za(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const os="undefined"!=typeof document&&"inputMode"in document.createElement("input"),is={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function as(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function ss(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,dt=n,ut=n,ht=n,pt=n,ft=n,gt=n,mt=n,vt=n,yt=n;var $t;t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt()));let{componentContext:bt}=e,{layoutParams:xt}=e;const Et=kt(ge),Ct=Et.direction;let jt,Vt;p(t,Ct,(t=>r(62,T=t)));let Dt,Ft,Pt,Nt=!1,It=null,Ot="",Tt="",Mt=!1,zt="",Rt=12,Bt="",Lt="",Ut="#000",Wt="",Ht="start",qt="center",Jt="multi_line_text",Gt="text",Kt="",Xt=null,Yt="",Zt="",Qt="";function te(t){Vt instanceof HTMLInputElement?r(2,Vt.selectionStart=r(2,Vt.selectionEnd=t,Vt),Vt):Ya(Vt,t)}async function ee(){if(!Vt||!It)return;It.overrideRawValue(I),s.set(It.rawValue),$(a,N=r(3,Ot=r(5,Tt=It.value)),N);const t=It.cursorPosition;await St(),document.activeElement===Vt&&te(t)}return _t((()=>{Vt&&It&&I&&(It.overrideRawValue(I),$(a,N=r(3,Ot=r(5,Tt=It.value)),N))})),wt((()=>{jt&&(Et.unregisterFocusable(jt),r(40,jt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,bt=t.componentContext),"layoutParams"in t&&r(1,xt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&bt.json&&(r(42,zt=""),r(43,Rt=12),r(44,Dt=void 0),r(45,Bt=""),r(46,Ft=void 0),r(48,Ut="#000"),r(49,Wt=""),r(50,Ht="left"),r(51,qt="center"),r(52,Jt="multi_line_text"),r(7,Gt="text"),r(8,Pt=void 0)),1&t.$$.dirty[0]&&r(57,o=bt.json.text_variable),1&t.$$.dirty[0]|256&t.$$.dirty[1]&&r(58,i=null===r(39,$t=bt.json.mask)||void 0===$t?void 0:$t.raw_text_variable),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(r(11,a=o&&bt.getVariable(o,"string")||$a("temp","string","")),tt(),tt=h(a,(t=>r(59,N=t)))),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&(r(10,s=i&&bt.getVariable(i,"string")||$a("temp","string","")),et(),et=h(s,(t=>r(60,I=t)))),1&t.$$.dirty[0]&&(r(33,l=bt.getDerivedFromVars(bt.json.hint_text)),vt(),vt=h(l,(t=>r(77,Z=t)))),1&t.$$.dirty[0]&&(r(32,c=bt.getDerivedFromVars(bt.json.hint_color)),mt(),mt=h(c,(t=>r(76,Y=t)))),1&t.$$.dirty[0]&&(r(31,d=bt.getDerivedFromVars(bt.json.font_size)),gt(),gt=h(d,(t=>r(75,X=t)))),1&t.$$.dirty[0]&&(r(30,u=bt.getDerivedFromVars(bt.json.font_weight)),ft(),ft=h(u,(t=>r(74,K=t)))),1&t.$$.dirty[0]&&(r(29,f=bt.getDerivedFromVars(bt.json.font_family)),pt(),pt=h(f,(t=>r(73,G=t)))),1&t.$$.dirty[0]&&(r(28,g=bt.getDerivedFromVars(bt.json.line_height)),ht(),ht=h(g,(t=>r(72,J=t)))),1&t.$$.dirty[0]&&(r(27,m=bt.getDerivedFromVars(bt.json.letter_spacing)),ut(),ut=h(m,(t=>r(71,q=t)))),1&t.$$.dirty[0]&&(r(26,v=bt.getDerivedFromVars(bt.json.text_color)),dt(),dt=h(v,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(25,y=bt.getDerivedFromVars(bt.json.highlight_color)),ct(),ct=h(y,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(24,_=bt.getDerivedFromVars(bt.json.text_alignment_horizontal)),lt(),lt=h(_,(t=>r(68,U=t)))),1&t.$$.dirty[0]&&(r(23,b=bt.getDerivedFromVars(bt.json.text_alignment_vertical)),st(),st=h(b,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(22,w=bt.getDerivedFromVars(bt.json.keyboard_type)),at(),at=h(w,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(21,x=bt.getDerivedFromVars(bt.json.mask)),it(),it=h(x,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(20,k=bt.getDerivedFromVars(bt.json.max_visible_lines)),ot(),ot=h(k,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(19,E=bt.getDerivedFromVars(bt.json.paddings)),rt(),rt=h(E,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(18,C=bt.getDerivedFromVars(bt.json.accessibility)),nt(),nt=h(C,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(17,A=bt.getDerivedFromVars(bt.json.select_all_on_focus)),yt(),yt=h(A,(t=>r(34,Q=t)))),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(o?r(6,Mt=!1):(r(6,Mt=!0),bt.logError(me(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=R)?void 0:e.type)?r(41,It=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new qa(r,e)}return n||null}(e,bt.logError,It)):"currency"===(null==e?void 0:e.type)&&r(41,It=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Ga(t.locale,e)}(e,bt.logError,It)),It&&ee()),8&t.$$.dirty[0]|268436480&t.$$.dirty[1]&&(It||Ot===N||r(3,Ot=r(5,Tt=N))),536871936&t.$$.dirty[1]&&It&&It.rawValue!==I&&ee(),32768&t.$$.dirty[2]&&r(16,j=Z),2048&t.$$.dirty[1]|16384&t.$$.dirty[2]&&r(42,zt=xe(Y,1,zt)),4096&t.$$.dirty[1]|8192&t.$$.dirty[2]&&r(43,Rt=Nn(X,Rt)),8192&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(r(44,Dt=On(K,Dt)),r(45,Bt=G&&"string"==typeof G?Et.typefaceProvider(G,{fontWeight:Dt||400}):"")),4096&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=J;un(t)&&r(46,Ft=t/Rt)}var e;512&t.$$.dirty[2]&&Be(q)&&r(47,Lt=_e(q)),131072&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(48,Ut=xe(H,1,Ut)),262144&t.$$.dirty[1]|128&t.$$.dirty[2]&&r(49,Wt=xe(W,1,Wt)),524288&t.$$.dirty[1]|65&t.$$.dirty[2]&&r(50,Ht=Ln(U,T,Ht)),1048576&t.$$.dirty[1]|32&t.$$.dirty[2]&&r(51,qt=Un(L,qt)),24&t.$$.dirty[2]&&(B&&B in is&&(r(7,Gt=is[B]),r(52,Jt=B)),"currency"===(null==R?void 0:R.type)&&(r(7,Gt=os?"text":"tel"),r(8,Pt="decimal"))),2097152&t.$$.dirty[1]&&r(4,V="multi_line_text"===Jt),8425472&t.$$.dirty[1]|7&t.$$.dirty[2]&&(un(z)?r(53,Kt="calc(".concat(z*(Ft||1.25)*(Rt/10)+"em"," + ").concat(be(Ne(null==M?void 0:M.top,0)+Ne(null==M?void 0:M.bottom,0)),")")):r(53,Kt=""),r(54,Xt=Xe(M||void 0,Xt)),r(55,Yt=Xt?Re({top:(Number(Xt.top)||0)/Rt*10,right:(Number("ltr"===T?Xt.end:Xt.start)||Number(Xt.right)||0)/Rt*10,bottom:(Number(Xt.bottom)||0)/Rt*10,left:(Number("ltr"===T?Xt.start:Xt.end)||Number(Xt.left)||0)/Rt*10},T):""),r(56,Zt=Xt?Re({top:(Number(Xt.top)||0)/Rt*10,bottom:(Number(Xt.bottom)||0)/Rt*10},T):"")),1&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&((null==O?void 0:O.description)?r(9,Qt=O.description):bt.logError(me(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|1835008&t.$$.dirty[1]&&r(15,D={"highlight-color":Boolean(Wt),multiline:V,"alignment-horizontal":Ht,"alignment-vertical":qt}),4712448&t.$$.dirty[1]&&r(14,F={"--divkit-input-hint-color":zt,"--divkit-input-highlight-color":Wt,"--divkit-input-line-height":Ft,"font-weight":Dt,"font-family":Bt,"letter-spacing":Lt,color:Ut,"max-height":Kt}),16781312&t.$$.dirty[1]&&r(13,P={"font-size":_e(Rt),padding:Yt}),33558528&t.$$.dirty[1]&&r(12,S={"font-size":_e(Rt),padding:Zt}),5&t.$$.dirty[0]|512&t.$$.dirty[1]&&Vt&&bt.json&&(jt&&(Et.unregisterFocusable(jt),r(40,jt=void 0)),bt.json.id&&!bt.fakeElement&&(r(40,jt=bt.json.id),Et.registerFocusable(jt,{focus(){Vt&&Vt.focus()}})))},[bt,xt,Vt,Ot,V,Tt,Mt,Gt,Pt,Qt,s,a,S,P,F,D,j,A,C,E,k,x,w,b,_,y,v,m,g,f,u,d,c,l,Q,Ct,function(t){let e=(V?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Ot!==e&&(r(3,Ot=r(5,Tt=e)),a.setValue(e),It&&async function(){if(!Vt||!It)return;It.applyChangeFrom(Ot,Vt instanceof HTMLInputElement?null===Vt.selectionEnd?void 0:Vt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Xa(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Xa(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Ka||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Vt)),s.set(It.rawValue),$(a,N=r(3,Ot=r(5,Tt=It.value)),N);const t=It.cursorPosition;await St(),document.activeElement===Vt&&te(t)}())},function(){Nt=!1,setTimeout((()=>{Nt=!0}),250)},function(){if(!Nt)if(Vt instanceof HTMLInputElement)Vt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Vt),t&&(t.removeAllRanges(),t.addRange(e))}},$t,jt,It,zt,Rt,Dt,Bt,Ft,Lt,Ut,Wt,Ht,qt,Jt,Kt,Xt,Yt,Zt,o,i,N,I,O,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))},function(){Tt=this.innerText,r(5,Tt),r(41,It),r(3,Ot),r(59,N)},function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))}]}const ls={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function cs(t,e,n){const r=t.slice();return r[53]=e[n],r}function ds(t){let e,n;return e=new Pn({props:{cls:Me("select",ls,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[hs,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("select",ls,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function us(t){let e,n,r,o,i=(t[53].text||t[53].value)+"";return{c(){e=R("option"),n=L(i),this.h()},l(t){e=et(t,"OPTION",{class:!0});var r=Y(e);n=rt(r,i),r.forEach(M),this.h()},h(){q(e,"class",r=ls.select__option),e.__value=o=t[53].value,st(e,e.__value)},m(t,r){T(t,e,r),I(e,n)},p(t,r){16&r[0]&&i!==(i=(t[53].text||t[53].value)+"")&&at(n,i),16&r[0]&&o!==(o=t[53].value)&&(e.__value=o,st(e,e.__value))},d(t){t&&M(e)}}}function hs(t){let e,n,r,o,i,a,c,d,u,h,p=(t[3]||t[23]||"​")+"",f=Xt(t[4]),g=[];for(let e=0;e<f.length;e+=1)g[e]=us(cs(t,f,e));return{c(){e=R("span"),n=L(p),i=U(),a=R("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Y(e);n=rt(r,p),r.forEach(M),i=ot(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var o=Y(a);for(let t=0;t<g.length;t+=1)g[t].l(o);o.forEach(M),this.h()},h(){q(e,"class",r=ls["select__select-text"]),q(e,"style",o=$e(t[9])),q(e,"aria-hidden","true"),q(a,"class",c=Me("select__select",ls,{"has-custom-focus":t[50]})),q(a,"aria-label",t[7]),q(a,"style",d=$e(t[8])),void 0===t[5]&&Nt((()=>t[48].call(a)))},m(r,o){T(r,e,o),I(e,n),T(r,i,o),T(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[47](a),ct(a,t[5],!0),u||(h=[H(a,"change",t[48]),H(a,"focus",(function(){l(t[51])&&t[51].apply(this,arguments)})),H(a,"blur",(function(){l(t[52])&&t[52].apply(this,arguments)}))],u=!0)},p(r,i){if(t=r,8388616&i[0]&&p!==(p=(t[3]||t[23]||"​")+"")&&at(n,p),512&i[0]&&o!==(o=$e(t[9]))&&q(e,"style",o),16&i[0]){let e;for(f=Xt(t[4]),e=0;e<f.length;e+=1){const n=cs(t,f,e);g[e]?g[e].p(n,i):(g[e]=us(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}524288&i[1]&&c!==(c=Me("select__select",ls,{"has-custom-focus":t[50]}))&&q(a,"class",c),128&i[0]&&q(a,"aria-label",t[7]),256&i[0]&&d!==(d=$e(t[8]))&&q(a,"style",d),48&i[0]&&ct(a,t[5])},d(n){n&&(M(e),M(i),M(a)),z(g,n),t[47](null),u=!1,s(h)}}}function ps(t){let e,n,r=!t[6]&&ds(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[6]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),64&n[0]&&qt(r,1)):(r=ds(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function fs(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O=n,T=n,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q()));let{componentContext:J}=e,{layoutParams:G}=e;const K=kt(ge),X=K.direction;let Y,Z;p(t,X,(t=>r(45,P=t)));let Q,tt,et=!1,nt="",rt=null,ot="",it="rgba(0,0,0,.45)",at=12,st="",lt="",ct="#000",dt="";return wt((()=>{Y&&(K.unregisterFocusable(Y),r(25,Y=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,J=t.componentContext),"layoutParams"in t&&r(1,G=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&J.json&&(r(26,rt=null),r(28,it="rgba(0,0,0,.45)"),r(29,at=12),r(30,Q=void 0),r(31,st=""),r(32,tt=void 0),r(33,lt=""),r(34,ct="#000"),r(7,dt="")),1&t.$$.dirty[0]&&r(35,o=J.json.value_variable),1&t.$$.dirty[0]&&r(36,i=J.json.options),32&t.$$.dirty[1]&&r(4,a=Array.isArray(i)&&i.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,s=o&&J.getVariable(o,"string")||$a("temp","string","")),H(),H=h(s,(t=>r(5,N=t)))),1&t.$$.dirty[0]&&(r(21,l=J.getDerivedFromVars(J.json.paddings)),W(),W=h(l,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,c=J.getDerivedFromVars(J.json.hint_text)),q(),q=h(c,(t=>r(23,I=t)))),1&t.$$.dirty[0]&&(r(19,d=J.getDerivedFromVars(J.json.hint_color)),U(),U=h(d,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(18,u=J.getDerivedFromVars(J.json.font_size)),L(),L=h(u,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(17,f=J.getDerivedFromVars(J.json.font_weight)),B(),B=h(f,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(16,g=J.getDerivedFromVars(J.json.font_family)),R(),R=h(g,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(15,m=J.getDerivedFromVars(J.json.line_height)),z(),z=h(m,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(14,v=J.getDerivedFromVars(J.json.letter_spacing)),M(),M=h(v,(t=>r(39,C=t)))),1&t.$$.dirty[0]&&(r(13,y=J.getDerivedFromVars(J.json.text_color)),T(),T=h(y,(t=>r(38,E=t)))),1&t.$$.dirty[0]&&(r(12,$=J.getDerivedFromVars(J.json.accessibility)),O(),O=h($,(t=>r(37,k=t)))),17&t.$$.dirty[0]&&(Array.isArray(a)&&a.length||J.logError(me(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?r(6,et=!1):(r(6,et=!0),J.logError(me(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=a.find((t=>t.value===N));t?r(3,nt=("string"==typeof t.text?t.text:t.value)||""):(r(3,nt=""),N&&J.logError(me(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(29,at=Nn(D,at)),603979776&t.$$.dirty[0]|49152&t.$$.dirty[1]&&(r(26,rt=Xe(S||void 0,rt)),r(27,ot=rt?Re({top:(Number(rt.top)||0)/at*10,right:(Number("ltr"===P?rt.end:rt.start)||Number(rt.right)||0)/at*10,bottom:(Number(rt.bottom)||0)/at*10,left:(Number("ltr"===P?rt.start:rt.end)||Number(rt.left)||0)/at*10},P):"")),268435456&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(28,it=xe(F,1,it)),1073741824&t.$$.dirty[0]|3072&t.$$.dirty[1]&&(r(30,Q=On(V,Q)),r(31,st=j&&"string"==typeof j?K.typefaceProvider(j,{fontWeight:Q||400}):"")),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=A;un(t)&&r(32,tt=t/at)}536870912&t.$$.dirty[0]|256&t.$$.dirty[1]&&Be(C)&&r(33,lt=_e(C/at*10)),136&t.$$.dirty[1]&&r(34,ct=xe(E,1,ct)),1&t.$$.dirty[0]|64&t.$$.dirty[1]&&((null==k?void 0:k.description)?r(7,dt=k.description):J.logError(me(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,_={hint:!nt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,b={"--divkit-input-hint-color":it,"font-weight":Q,"font-family":st,color:ct}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,w={padding:ot,"font-size":_e(at),"line-height":tt,"letter-spacing":lt}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,x={"font-size":_e(at),"line-height":tt,"letter-spacing":lt}),33554437&t.$$.dirty[0]&&J.json&&Z&&(Y&&(K.unregisterFocusable(Y),r(25,Y=void 0)),J.json.id&&!J.fakeElement&&(r(25,Y=J.json.id),K.registerFocusable(Y,{focus(){Z&&Z.focus()}})))},[J,G,Z,nt,a,N,et,dt,x,w,b,_,$,y,v,m,g,f,u,d,c,l,s,I,X,Y,rt,ot,it,at,Q,st,tt,lt,ct,o,i,k,E,C,A,j,V,D,F,P,S,function(t){At[t?"unshift":"push"]((()=>{Z=t,r(2,Z)}))},function(){N=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),s.set(N),r(4,a),r(36,i),r(0,J)}]}const gs={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function ms(t,e,n){const r=t.slice();return r[44]=e[n],r}function vs(t,e,n){const r=t.slice();return r[44]=e[n],r}function ys(t){let e,n;return e=new Pn({props:{cls:Me("video",gs,t[11]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[Es]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("video",gs,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4088&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function $s(t){let e,n,r,o,i,a=Xt(t[4]),l=[];for(let e=0;e<a.length;e+=1)l[e]=ws(ms(t,a,e));return{c(){e=R("video");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=et(t,"VIDEO",{class:!0,style:!0,poster:!0});var n=Y(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(M),this.h()},h(){q(e,"class",n=gs.video__video),q(e,"style",r=$e(t[10])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],q(e,"poster",t[8])},m(n,r){T(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[38](e),o||(i=[H(e,"timeupdate",t[19]),H(e,"ended",t[20]),H(e,"playing",t[21]),H(e,"pause",t[22]),H(e,"waiting",t[23]),H(e,"error",t[24])],o=!0)},p(t,n){if(16777232&n[0]){let r;for(a=Xt(t[4]),r=0;r<a.length;r+=1){const o=ms(t,a,r);l[r]?l[r].p(o,n):(l[r]=ws(o),l[r].c(),l[r].m(e,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=a.length}1024&n[0]&&r!==(r=$e(t[10]))&&q(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&q(e,"poster",t[8])},d(n){n&&M(e),z(l,n),t[38](null),o=!1,s(i)}}}function _s(t){let e,n,r,o,i,a,l,c="".concat(t[9],"%"),d=Xt(t[4]),u=[];for(let e=0;e<d.length;e+=1)u[e]=ks(vs(t,d,e));return{c(){e=R("div"),n=R("video");for(let t=0;t<u.length;t+=1)u[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"VIDEO",{class:!0,style:!0,poster:!0});var o=Y(n);for(let t=0;t<u.length;t+=1)u[t].l(o);o.forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=gs.video__video),q(n,"style",o=$e(t[10])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],q(n,"poster",t[8]),q(e,"class",i=gs["video__aspect-wrapper"]),lt(e,"padding-bottom",c)},m(r,o){T(r,e,o),I(e,n);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(n,null);t[37](n),a||(l=[H(n,"timeupdate",t[19]),H(n,"ended",t[20]),H(n,"playing",t[21]),H(n,"pause",t[22]),H(n,"waiting",t[23]),H(n,"error",t[24])],a=!0)},p(t,r){if(16777232&r[0]){let e;for(d=Xt(t[4]),e=0;e<d.length;e+=1){const o=vs(t,d,e);u[e]?u[e].p(o,r):(u[e]=ks(o),u[e].c(),u[e].m(n,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=d.length}1024&r[0]&&o!==(o=$e(t[10]))&&q(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),256&r[0]&&q(n,"poster",t[8]),512&r[0]&&c!==(c="".concat(t[9],"%"))&&lt(e,"padding-bottom",c)},d(n){n&&M(e),z(u,n),t[37](null),a=!1,s(l)}}}function bs(t){let e,n,r,o,i;return{c(){e=R("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){d(e.src,n=t[44].src)||q(e,"src",n),q(e,"type",r=t[44].type)},m(n,r){T(n,e,r),o||(i=H(e,"error",t[24]),o=!0)},p(t,o){16&o[0]&&!d(e.src,n=t[44].src)&&q(e,"src",n),16&o[0]&&r!==(r=t[44].type)&&q(e,"type",r)},d(t){t&&M(e),o=!1,i()}}}function ws(t){let e,n=t[44],r=bs(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){16&o[0]&&u(n,n=t[44])?(r.d(1),r=bs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&M(e),r.d(t)}}}function xs(t){let e,n,r,o,i;return{c(){e=R("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){d(e.src,n=t[44].src)||q(e,"src",n),q(e,"type",r=t[44].type)},m(n,r){T(n,e,r),o||(i=H(e,"error",t[24]),o=!0)},p(t,o){16&o[0]&&!d(e.src,n=t[44].src)&&q(e,"src",n),16&o[0]&&r!==(r=t[44].type)&&q(e,"type",r)},d(t){t&&M(e),o=!1,i()}}}function ks(t){let e,n=t[44],r=xs(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){16&o[0]&&u(n,n=t[44])?(r.d(1),r=xs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&M(e),r.d(t)}}}function Es(t){let e;function n(t,e){return t[11].aspect?_s:$s}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function Cs(t){let e,n,r=!t[2]&&ys(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&qt(r,1)):(r=ys(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function As(t,e,r){let o,i,a,s,l,c,d,u,p,f,g,m,v,y,$,_,b,w,x=n,k=n,E=n,C=n,A=n,j=n,V=n;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V()));let{componentContext:D}=e,{layoutParams:F}=e;const P=kt(ge);let S,N,I,O,T=!1,M=!1,z=[],R=!1,B=!1,L=!1,U="fit",W="0";function H(t){M?M=!1:N&&r(3,N.currentTime=Number(t)/1e3,N)}function q(){null==N||N.pause()}function J(){const t=null==N?void 0:N.play();t&&t.catch((t=>{D.logError(me(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return wt((()=>{S&&(P.unregisterInstance(S),r(25,S=void 0)),O&&(O(),r(27,O=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,D=t.componentContext),"layoutParams"in t&&r(1,F=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&D.json&&(r(5,R=!1),r(6,B=!1),r(7,L=!1),r(8,I=void 0),r(26,U="fit")),1&t.$$.dirty[0]&&r(29,o=D.json.elapsed_time_variable),536870913&t.$$.dirty[0]&&r(28,i=o&&D.getVariable(o,"integer")||$a("temp","integer",0)),402653184&t.$$.dirty[0]&&i&&(O&&O(),r(27,O=i.subscribe(H))),1&t.$$.dirty[0]&&(r(18,a=D.getDerivedFromVars(D.json.video_sources)),V(),V=h(a,(t=>r(36,w=t)))),1&t.$$.dirty[0]&&(r(17,s=D.getDerivedFromVars(D.json.repeatable)),j(),j=h(s,(t=>r(35,b=t)))),1&t.$$.dirty[0]&&(r(16,l=D.getDerivedFromVars(D.json.autostart)),x(),x=h(l,(t=>r(30,m=t)))),1&t.$$.dirty[0]&&(r(15,c=D.getDerivedFromVars(D.json.muted)),A(),A=h(c,(t=>r(34,_=t)))),1&t.$$.dirty[0]&&(r(14,d=D.getDerivedFromVars(D.json.preview)),C(),C=h(d,(t=>r(33,$=t)))),1&t.$$.dirty[0]&&(r(13,u=D.getDerivedFromVars(D.json.scale)),E(),E=h(u,(t=>r(32,y=t)))),1&t.$$.dirty[0]&&(r(12,p=D.getDerivedFromVars(D.json.aspect)),k(),k=h(p,(t=>r(31,v=t)))),17&t.$$.dirty[0]|32&t.$$.dirty[1]&&(r(4,(e=w,n=z,z=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),z.length?r(2,T=!1):(r(2,T=!0),D.logError(me(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(5,R=Wn(b,R)),1073741888&t.$$.dirty[0]&&r(6,B=Wn(m,B)),128&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(7,L=Wn(_,L)),256&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(8,I="string"==typeof $?Br($):I),67108864&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(26,U=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(y)||U),1&t.$$.dirty[1]){const t=null==v?void 0:v.ratio;t&&un(t)?r(9,W=(100/Number(t)).toFixed(2)):r(9,W="0")}33554437&t.$$.dirty[0]&&D.json&&(S&&(P.unregisterInstance(S),r(25,S=void 0)),!D.json.id||T||D.fakeElement||(r(25,S=D.json.id),P.registerInstance(S,{pause:q,start:J}))),1073741833&t.$$.dirty[0]&&D.json&&m&&N&&J(),512&t.$$.dirty[0]&&r(11,f={aspect:"0"!==W}),67108864&t.$$.dirty[0]&&r(10,g={"object-fit":U})},[D,F,T,N,z,R,B,L,I,W,g,f,p,u,d,c,l,s,a,function(){N&&(M=!0,i.setValue(Math.floor(1e3*N.currentTime)))},function(){const t=D.getJsonWithVars(D.json.end_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.resume_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.pause_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.buffering_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.fatal_actions);D.execAnyActions(t)},S,U,O,i,o,m,v,y,$,_,b,w,function(t){At[t?"unshift":"push"]((()=>{N=t,r(3,N)}))},function(t){At[t?"unshift":"push"]((()=>{N=t,r(3,N)}))}]}function js(t,e,n){const r=t.slice();return r[12]=e[n],r}function Vs(t){let e,n;return e=new Pn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[Is]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ds(t){let e,n,r=[t[7]],i={};for(let t=0;t<r.length;t+=1)i=o(i,r[t]);return{c(){e=R("template"),n=new ut(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=Y(e.content);n=function(t,e){const n=it(t,"HTML_TAG_START",0),r=it(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new ut(false);Z(t);const o=t.splice(n,r-n+1);M(o[0]),M(o[o.length-1]);const i=o.slice(1,o.length-1);for(const e of i)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new ut(false,i)}(r),r.forEach(M),this.h()},h(){n.a=null,G(e,i)},m(r,o){T(r,e,o),n.m(t[6],e.content)},p(t,o){64&o&&n.p(t[6]),G(e,i=Qt(r,[128&o&&t[7]]))},d(t){t&&M(e)}}}function Fs(t){let e,r,o=t[4],i=Ss(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),T(t,e,n),r=!0},p(t,r){16&r&&u(o,o=t[4])?(Wt(),Jt(i,1,1,n),Ht(),i=Ss(t),i.c(),qt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(qt(i),r=!0)},o(t){Jt(i),r=!1},d(t){t&&M(e),i.d(t)}}}function Ps(t){let e,n;return e=new Ls({props:{componentContext:t[12]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ss(t){let e,n,r=Xt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ps(js(t,r,e));const i=t=>Jt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=Xt(t[8]),a=0;a<r.length;a+=1){const i=js(t,r,a);o[a]?(o[a].p(i,n),qt(o[a],1)):(o[a]=Ps(i),o[a].c(),qt(o[a],1),o[a].m(e.parentNode,e))}for(Wt(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)qt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Jt(o[t]);n=!1},d(t){t&&M(e),z(o,t)}}}function Ns(t){let e,n,r,i=t[6]&&Ds(t),a=!t[3]&&t[4]&&Fs(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=R(t[2].element),i&&i.c(),n=U(),a&&a.c(),this.h()},l(r){e=et(r,(t[2].element||"null").toUpperCase(),{});var o=Y(e);i&&i.l(o),n=ot(o),a&&a.l(o),o.forEach(M),this.h()},h(){X(t[2].element)(e,l)},m(o,s){T(o,e,s),i&&i.m(e,null),I(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=Ds(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&qt(a,1)):(a=Fs(t),a.c(),qt(a,1),a.m(e,null)):a&&(Wt(),Jt(a,1,1,(()=>{a=null})),Ht()),X(t[2].element)(e,l=Qt(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(qt(a),r=!0)},o(t){Jt(a),r=!1},d(n){n&&M(e),i&&i.d(),a&&a.d(),t[10](null)}}}function Is(t){let e,r,o=t[2].element,i=t[2].element&&Ns(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){t[2].element?o?u(o,t[2].element)?(i.d(1),i=Ns(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=Ns(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Jt(i,t),r=!1},d(t){t&&M(e),i&&i.d(t)}}}function Os(t){let e,n,r=t[2]&&Vs(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&qt(r,1)):(r=Vs(t),r.c(),qt(r,1),r.m(e.parentNode,e)):r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ts(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=kt(ge);let c,d=null,u="",h={},p=!1;return _t((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,d=l.customComponents.get(a.json.custom_type)),"function"==typeof d.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,u=d.template({props:a.json.custom_props,variables:e}))}else d.template&&"string"==typeof d.template?n(6,u=d.template):n(6,u="");n(7,h={shadowrootmode:d.shadowRootMode||"open"})}else n(2,d=null),n(6,u=";"),a.logError(me(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,p=!1):(n(3,p=!0),a.logError(me(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!p&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,d,p,r,c,u,h,o,i,function(t){At[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const Ms={};function zs(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=ht(o,i(t))),{c(){e&&oe(e.$$.fragment),n=W()},l(t){e&&ie(e.$$.fragment,t),n=W()},m(t,o){e&&ae(e,t,o),T(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){Wt();const t=e;Jt(t.$$.fragment,1,0,(()=>{se(t,1)})),Ht()}o?(e=ht(o,i(t)),oe(e.$$.fragment),qt(e.$$.fragment,1),ae(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&qt(e.$$.fragment,t),r=!0)},o(t){e&&Jt(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&se(e,t)}}}function Rs(t){let e,n,r=t[2]&&zs(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&qt(r,1)):(r=zs(t),r.c(),qt(r,1),r.m(e.parentNode,e)):r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Bs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=kt(ge);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Ms[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(me(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Ms.text=class extends de{constructor(t){super(),le(this,t,or,rr,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.container=class extends de{constructor(t){super(),le(this,t,Sr,jr,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.separator=class extends de{constructor(t){super(),le(this,t,zr,Mr,u,{componentContext:0,layoutParams:1})}},Ms.image=Yr,Ms.gif=Yr,Ms.grid=class extends de{constructor(t){super(),le(this,t,lo,ao,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.gallery=class extends de{constructor(t){super(),le(this,t,ko,xo,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.tabs=class extends de{constructor(t){super(),le(this,t,Bo,Ro,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Ms.state=class extends de{constructor(t){super(),le(this,t,Pi,Di,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.pager=class extends de{constructor(t){super(),le(this,t,Ui,Bi,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.indicator=class extends de{constructor(t){super(),le(this,t,Yi,Ki,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.slider=class extends de{constructor(t){super(),le(this,t,za,Na,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.input=class extends de{constructor(t){super(),le(this,t,ss,rs,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.select=class extends de{constructor(t){super(),le(this,t,fs,ps,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.video=class extends de{constructor(t){super(),le(this,t,As,Cs,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.custom=class extends de{constructor(t){super(),le(this,t,Ts,Os,u,{componentContext:0,layoutParams:1})}};const Ls=class extends de{constructor(t){super(),le(this,t,Bs,Rs,u,{componentContext:0,layoutParams:1})}},Us={"root-svg-filters":"divkit-dc22b"};function Ws(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Hs(t){let e,n,r,o=Xt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ks(Ws(t,o,e));return{c(){e=B("svg"),n=B("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=Y(e);n=nt(r,"defs",{});var o=Y(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(M),r.forEach(M),this.h()},h(){q(e,"class",r=Us["root-svg-filters"]),q(e,"aria-hidden","true")},m(t,r){T(t,e,r),I(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=Xt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=Ws(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ks(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&M(e),z(i,t)}}}function qs(t){let e,n;return{c(){e=B("feBlend"),this.h()},l(t){e=nt(t,"feBlend",{in2:!0,mode:!0}),Y(e).forEach(M),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&q(e,"mode",n)},d(t){t&&M(e)}}}function Js(t){let e;return{c(){e=B("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Y(e).forEach(M),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"operator","arithmetic"),q(e,"k1","1"),q(e,"k2","0"),q(e,"k3","0"),q(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&M(e)}}}function Gs(t){let e,n;return{c(){e=B("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0}),Y(e).forEach(M),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"operator",n=t[3].split("_")[1])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&q(e,"operator",n)},d(t){t&&M(e)}}}function Ks(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Gs:"multiply"===t[3]?Js:qs}let a=i(t),s=a(t);return{c(){e=B("filter"),n=B("feFlood"),s.c(),this.h()},l(t){e=nt(t,"filter",{id:!0});var r=Y(e);n=nt(r,"feFlood",{"flood-color":!0}),Y(n).forEach(M),s.l(r),r.forEach(M),this.h()},h(){q(n,"flood-color",r=t[2]),q(e,"id",o=t[0][t[1]])},m(t,r){T(t,e,r),I(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&q(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&q(e,"id",o)},d(t){t&&M(e),s.d()}}}function Xs(t){let e,r=Object.keys(t[0]).length,o=r&&Hs(t);return{c(){o&&o.c(),e=W()},l(t){o&&o.l(t),e=W()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Hs(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&M(e),o&&o.d(t)}}}function Ys(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Zs=class extends de{constructor(t){super(),le(this,t,Ys,Xs,u,{svgFiltersMap:0})}};function Qs(t,e,n,r){const o=n[t.type];if(!o)return r(me(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function tl(){}function el(t){return{subscribe:e=>(e(t),tl)}}function nl(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function rl(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function ol(t){if(t.every((t=>"string"==typeof t)))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]).reduce(((t,e)=>("string"==typeof e?t.quasis.push({type:"StringLiteral",value:e}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(e)),t)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function il(t){try{return ia(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function al(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function sl(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,sl.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function ll(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function cl(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:De,JsonStringContents:function(){var t,e,n;for(t=ve,e=[],n=Fe();n!==r;)e.push(n),n=Fe();return ye=t,e=St(e)}},a=De,s="@{",l="}",c="@{}",d="\\",u="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",_="<=",b="<",w="+",x="-",k="/",E="*",C="%",A="!",j="(",V=")",D=",",F="'",P=".",S="e",N="E",I="true",O="false",T=/^[^}]/,M=/^[^'}]/,z=/^[0-9]/,R=/^[a-zA-Z_0-9.]/,B=/^[a-zA-Z_]/,L=/^[ \t\r\n]/,U=ke("@{",!1),W=ke("}",!1),H=ke("@{}",!1),q=ke("\\",!1),J={type:"any"},G=Ee(["}"],!0,!1),K=ke("?",!1),X=ke(":",!1),Y=ke("!:",!1),Z=ke("||",!1),Q=ke("&&",!1),tt=ke("==",!1),et=ke("!=",!1),nt=ke(">=",!1),rt=ke(">",!1),ot=ke("<=",!1),it=ke("<",!1),at=ke("+",!1),st=ke("-",!1),lt=ke("/",!1),ct=ke("*",!1),dt=ke("%",!1),ut=ke("!",!1),ht=ke("(",!1),pt=ke(")",!1),ft=ke(",",!1),gt=Ce("string"),mt=ke("'",!1),vt=Ee(["'","}"],!0,!1),yt=Ce("integer"),$t=Ee([["0","9"]],!1,!1),_t=Ce("number"),bt=ke(".",!1),wt=ke("e",!1),xt=ke("E",!1),kt=Ce("boolean"),Et=ke("true",!1),Ct=ke("false",!1),At=Ee([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),jt=Ce("identifier"),Vt=Ee([["a","z"],["A","Z"],"_"],!1,!1),Dt=Ce("whitespace"),Ft=Ee([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},St=function(t){return ol(t)},Nt=function(t){return t},It=function(){return""},Ot=function(){return xe()},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Rt=function(t){return al(t)},Bt=function(){throw new Error("Error tokenizing '"+t+"'.")},Lt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Ut=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Wt=function(t,e){return rl(t,e)},Ht=function(t,e){return rl(t,e)},qt=function(t,e){return nl(t,e)},Jt=function(t,e){return nl(t,e)},Gt=function(t,e){return nl(t,e)},Kt=function(t,e){return nl(t,e)},Xt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Yt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Zt=function(t){return{type:"Variable",id:t}},Qt=function(t,e){return[t,...e]},te=function(t){return t},ee=function(t){return t},ne=function(t){return ol(t)},re=function(t){return t},oe=function(){return""},ie=function(){return xe()},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(t){return t},ce=function(t){return al(t)},de=function(){throw new Error("Error tokenizing '"+t+"'.")},ue=function(){return{type:"IntegerLiteral",value:il(xe())}},he=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},pe=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},fe=function(){return{type:"BooleanLiteral",value:!0}},ge=function(){return{type:"BooleanLiteral",value:!1}},me=function(){return{type:"Identifier",name:xe()}},ve=0,ye=0,$e=[{line:1,column:1}],_e=0,be=[],we=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function xe(){return t.substring(ye,ve)}function ke(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ee(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ce(t){return{type:"other",description:t}}function Ae(e){var n,r=$e[e];if(r)return r;for(n=e-1;!$e[n];)n--;for(r={line:(r=$e[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return $e[e]=r,r}function je(t,e,n){var r=Ae(t),i=Ae(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function Ve(t){ve<_e||(ve>_e&&(_e=ve,be=[]),be.push(t))}function De(){var t,e;return t=ve,He(),(e=Pe())!==r?(He(),ye=t,t=Pt(e)):(ve=t,t=r),t}function Fe(){var e,n,o,i,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r?(o=He(),(i=Pe())!==r?(He(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&Ve(W)),a!==r?(ye=e,e=Nt(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&Ve(H)),n!==r&&(ye=e,n=It()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(o=d,ve++):(o=r,0===we&&Ve(q)),o===r&&(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U))),we--,o===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=Ot()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r){if(o=[],T.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(G)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(G));else o=r;o!==r?(125===t.charCodeAt(ve)?(i=l,ve++):(i=r,0===we&&Ve(W)),i!==r?(ye=e,e=Tt()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r&&(ye=e,n=Mt()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)),o!==r?(ye=e,e=zt(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=Rt(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r&&(ye=e,n=Bt()),e=n))))}return e}function Pe(){var e,n,o,i,a,s;return e=ve,(n=Se())!==r?(He(),63===t.charCodeAt(ve)?(o=u,ve++):(o=r,0===we&&Ve(K)),o!==r?(He(),(i=Pe())!==r?(He(),58===t.charCodeAt(ve)?(a=h,ve++):(a=r,0===we&&Ve(X)),a!==r?(He(),(s=Pe())!==r?(ye=e,e=Lt(n,i,s)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Se()),e}function Se(){var e,n,o,i;return e=ve,(n=Ne())!==r?(He(),t.substr(ve,2)===p?(o=p,ve+=2):(o=r,0===we&&Ve(Y)),o!==r?(He(),(i=Pe())!==r?(ye=e,e=Ut(n,i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Ne()),e}function Ne(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Ie())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&Ve(Z)),s!==r?(l=He(),(c=Ie())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&Ve(Z)),s!==r?(l=He(),(c=Ie())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Wt(n,o)}else ve=e,e=r;return e}function Ie(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Oe())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&Ve(Q)),s!==r?(l=He(),(c=Oe())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&Ve(Q)),s!==r?(l=He(),(c=Oe())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Ht(n,o)}else ve=e,e=r;return e}function Oe(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Te())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&Ve(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&Ve(et))),s!==r?(l=He(),(c=Te())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&Ve(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&Ve(et))),s!==r?(l=He(),(c=Te())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=qt(n,o)}else ve=e,e=r;return e}function Te(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Me())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&Ve(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&Ve(rt)),s===r&&(t.substr(ve,2)===_?(s=_,ve+=2):(s=r,0===we&&Ve(ot)),s===r&&(60===t.charCodeAt(ve)?(s=b,ve++):(s=r,0===we&&Ve(it))))),s!==r?(l=He(),(c=Me())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&Ve(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&Ve(rt)),s===r&&(t.substr(ve,2)===_?(s=_,ve+=2):(s=r,0===we&&Ve(ot)),s===r&&(60===t.charCodeAt(ve)?(s=b,ve++):(s=r,0===we&&Ve(it))))),s!==r?(l=He(),(c=Me())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Jt(n,o)}else ve=e,e=r;return e}function Me(){var e,n,o,i,a,s,l,c;if(e=ve,(n=ze())!==r){for(o=[],i=ve,a=He(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&Ve(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&Ve(st))),s!==r?(l=He(),(c=ze())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&Ve(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&Ve(st))),s!==r?(l=He(),(c=ze())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Gt(n,o)}else ve=e,e=r;return e}function ze(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Re())!==r){for(o=[],i=ve,a=He(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&Ve(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&Ve(ct)),s===r&&(37===t.charCodeAt(ve)?(s=C,ve++):(s=r,0===we&&Ve(dt)))),s!==r?(l=He(),(c=Re())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&Ve(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&Ve(ct)),s===r&&(37===t.charCodeAt(ve)?(s=C,ve++):(s=r,0===we&&Ve(dt)))),s!==r?(l=He(),(c=Re())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Kt(n,o)}else ve=e,e=r;return e}function Re(){var e,n,o;return(e=Ue())===r&&(e=Le())===r&&(e=ve,33===t.charCodeAt(ve)?(n=A,ve++):(n=r,0===we&&Ve(ut)),n===r&&(43===t.charCodeAt(ve)?(n=w,ve++):(n=r,0===we&&Ve(at)),n===r&&(45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)))),n!==r?(He(),(o=Re())!==r?(ye=e,e=Xt(n,o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=ve,(n=We())!==r?(He(),40===t.charCodeAt(ve)?(o=j,ve++):(o=r,0===we&&Ve(ht)),o!==r?(He(),i=function(){var e,n,o,i,a,s;if(e=ve,(n=Pe())!==r){for(o=[],i=ve,He(),44===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&Ve(ft)),a!==r?(He(),(s=Pe())!==r?i=s:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,He(),44===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&Ve(ft)),a!==r?(He(),(s=Pe())!==r?i=s:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Qt(n,o)}else ve=e,e=r;return e===r&&(e=He()),e}(),i!==r?(He(),41===t.charCodeAt(ve)?(a=V,ve++):(a=r,0===we&&Ve(pt)),a!==r?(ye=e,e=Yt(n,i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,(n=We())!==r&&(ye=e,n=Zt(n)),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return we++,e=ve,39===t.charCodeAt(ve)?(n=F,ve++):(n=r,0===we&&Ve(mt)),n!==r?(o=function(){var t,e,n;for(t=ve,e=[],n=Be();n!==r;)e.push(n),n=Be();return ye=t,t=e=ne(e)}(),39===t.charCodeAt(ve)?(i=F,ve++):(i=r,0===we&&Ve(mt)),i!==r?(ye=e,e=ee(o)):(ve=e,e=r)):(ve=e,e=r),we--,e===r&&(n=r,0===we&&Ve(gt)),e}(),e===r&&(e=Ue())===r&&(e=Le())===r&&(e=function(){var e,n;return we++,e=ve,t.substr(ve,4)===I?(n=I,ve+=4):(n=r,0===we&&Ve(Et)),n!==r&&(ye=e,n=fe()),(e=n)===r&&(e=ve,t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&Ve(Ct)),n!==r&&(ye=e,n=ge()),e=n),we--,e===r&&(n=r,0===we&&Ve(kt)),e}(),e===r&&(e=ve,40===t.charCodeAt(ve)?(n=j,ve++):(n=r,0===we&&Ve(ht)),n!==r?(He(),(o=Pe())!==r?(He(),41===t.charCodeAt(ve)?(i=V,ve++):(i=r,0===we&&Ve(pt)),i!==r?(ye=e,e=te(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r))),e}())),e}())),e}function Be(){var e,n,o,i,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r?(o=He(),(i=Pe())!==r?(He(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&Ve(W)),a!==r?(ye=e,e=re(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&Ve(H)),n!==r&&(ye=e,n=oe()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(o=d,ve++):(o=r,0===we&&Ve(q)),o===r&&(39===t.charCodeAt(ve)?(o=F,ve++):(o=r,0===we&&Ve(mt)),o===r&&(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)))),we--,o===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=ie()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r){if(o=[],M.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(vt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(vt));else o=r;o!==r?(125===t.charCodeAt(ve)?(i=l,ve++):(i=r,0===we&&Ve(W)),i!==r?(ye=e,e=ae()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r&&(ye=e,n=se()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)),o!==r?(ye=e,e=le(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=ce(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r&&(ye=e,n=de()),e=n))))}return e}function Le(){var e,n,o,i;if(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t)),i!==r)for(;i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));else o=r;return o!==r?(ye=e,e=ue()):(ve=e,e=r),we--,e===r&&(n=r,0===we&&Ve(yt)),e}function Ue(){var e,n,o,i,a,s,l,c,d,u;for(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));if(46===t.charCodeAt(ve)?(i=P,ve++):(i=r,0===we&&Ve(bt)),i!==r){if(a=[],z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&Ve($t)),s!==r)for(;s!==r;)a.push(s),z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&Ve($t));else a=r;if(a!==r){if(s=ve,101===t.charCodeAt(ve)?(l=S,ve++):(l=r,0===we&&Ve(wt)),l===r&&(69===t.charCodeAt(ve)?(l=N,ve++):(l=r,0===we&&Ve(xt))),l!==r){if(43===t.charCodeAt(ve)?(c=w,ve++):(c=r,0===we&&Ve(at)),c===r&&(45===t.charCodeAt(ve)?(c=x,ve++):(c=r,0===we&&Ve(st))),c===r&&(c=null),d=[],z.test(t.charAt(ve))?(u=t.charAt(ve),ve++):(u=r,0===we&&Ve($t)),u!==r)for(;u!==r;)d.push(u),z.test(t.charAt(ve))?(u=t.charAt(ve),ve++):(u=r,0===we&&Ve($t));else d=r;d!==r?s=l=[l,c,d]:(ve=s,s=r)}else ve=s,s=r;s===r&&(s=null),ye=e,e=he()}else ve=e,e=r}else ve=e,e=r;if(e===r){if(e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t)),i!==r)for(;i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));else o=r;if(o!==r)if(101===t.charCodeAt(ve)?(i=S,ve++):(i=r,0===we&&Ve(wt)),i===r&&(69===t.charCodeAt(ve)?(i=N,ve++):(i=r,0===we&&Ve(xt))),i!==r){if(43===t.charCodeAt(ve)?(a=w,ve++):(a=r,0===we&&Ve(at)),a===r&&(45===t.charCodeAt(ve)?(a=x,ve++):(a=r,0===we&&Ve(st))),a===r&&(a=null),s=[],z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&Ve($t)),l!==r)for(;l!==r;)s.push(l),z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&Ve($t));else s=r;s!==r?(ye=e,e=pe()):(ve=e,e=r)}else ve=e,e=r;else ve=e,e=r}return we--,e===r&&(n=r,0===we&&Ve(_t)),e}function We(){var e,n,o,i,a;if(we++,e=ve,n=ve,we++,o=function(){var e,n,o,i;return e=ve,t.substr(ve,4)===I?(n=I,ve+=4):(n=r,0===we&&Ve(Et)),n===r&&(t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&Ve(Ct))),n!==r?(o=ve,we++,R.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(At)),we--,i===r?o=void 0:(ve=o,o=r),o!==r?e=n=[n,o]:(ve=e,e=r)):(ve=e,e=r),e}(),we--,o===r?n=void 0:(ve=n,n=r),n!==r)if(B.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(Vt)),o!==r){for(i=[],R.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&Ve(At));a!==r;)i.push(a),R.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&Ve(At));ye=e,e=me()}else ve=e,e=r;else ve=e,e=r;return we--,e===r&&(n=r,0===we&&Ve(jt)),e}function He(){var e,n;for(we++,e=[],L.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&Ve(Ft));n!==r;)e.push(n),L.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&Ve(Ft));return we--,n=r,0===we&&Ve(Dt),e}if((n=a())!==r&&ve===t.length)return n;throw n!==r&&ve<t.length&&Ve({type:"end"}),function(t,e,n){return new sl(sl.buildMessage(t,e),t,e,n)}(be,_e<t.length?t.charAt(_e):null,_e<t.length?je(_e,_e+1):je(_e,_e))}el(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(sl,Error),sl.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=ll("",i.line.toString().length," "),c=r[o.line-1],d=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+ll("",o.column-1," ")+ll("",d,"^")}else e+="\n at "+a}return e},sl.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.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(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.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(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const dl=Number.MAX_VALUE,ul=Number.MIN_VALUE,hl="string",pl="integer",fl="number",gl="boolean",ml="color",vl="url",yl="datetime",$l="dict",_l="array";function bl(t,e){var n;switch(null===(n=e[t.type])||void 0===n||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((t=>{bl(t,e)}));break;case"BinaryExpression":case"LogicalExpression":bl(t.left,e),bl(t.right,e);break;case"UnaryExpression":bl(t.argument,e);break;case"ConditionalExpression":bl(t.test,e),bl(t.consequent,e),bl(t.alternate,e);break;case"TryExpression":bl(t.test,e),bl(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{bl(t,e)}))}}function wl(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function xl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function kl(t){if("string"===t.type)return t.value;if("integer"===t.type)return String(t.value);if("number"===t.type){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}if("boolean"===t.type)return t.value?"true":"false";if("datetime"===t.type)return xl(t.value);if("color"===t.type)return Pl(Fl(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function El(t){let e=kl(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Cl(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Al(t,e){if(ea)return ia(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function jl(t,e){if(e<oa||e>ra)throw new Error("Integer overflow.");!ea&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Vl(t){const e=[];return bl(t,{Variable(t){e.push(t.id.name)}}),e}function Dl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Fl(t){const e=ke(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Pl(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return we(Math.round(t).toString(16),2)})).join("").toUpperCase())}function Sl(t){return Pl(Fl(t))}function Nl(t){return{type:fl,value:Number(t.value)}}const Il=new Map,Ol=new Map;function Tl(t,e,n){const r={args:e,cb:n},o=Il.get(t)||[];Il.has(t)||Il.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Ol.set(i,r)}function Ml(t,e){let n=t.args.length,r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==fl||e[n].type!==pl){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function zl(t,e){return{type:hl,value:kl(e)}}function Rl(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:fl,value:n}}function Bl(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=Sl(i)),{type:r,value:i}}function Ll(t,e,n){return Bl(t,e,n,n.type)}function Ul(t,e,n){return Bl(t,e,n,"color")}function Wl(t,e,n){return Bl(t,e,n,"url")}const Hl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:pl,value:ia(r)}},ql=Hl("getUTCFullYear"),Jl=Hl("getUTCMonth"),Gl=Hl("getUTCDate"),Kl=Hl("getUTCDay"),Xl=Hl("getUTCHours"),Yl=Hl("getUTCMinutes"),Zl=Hl("getUTCSeconds"),Ql=Hl("getUTCMilliseconds");function tc(t,e,n,r){if(!r.value.length)return t.warnings.push(me(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===hl?e.value:kl(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function ec(t,e,n,r){const o=tc(t,e,n,r);return{type:hl,value:o+kl(e)}}function nc(t,e,n,r){const o=tc(t,e,n,r);return{type:hl,value:kl(e)+o}}function rc(t){return(e,n)=>{const r=Fl(n.value);return{type:fl,value:r[t]/255}}}function oc(t){return(e,n,r)=>{const o=Fl(n.value);return o[t]=255*r.value,{type:ml,value:Pl(o)}}}const ic=rc("a"),ac=rc("r"),sc=rc("g"),lc=rc("b"),cc=oc("a"),dc=oc("r"),uc=oc("g"),hc=oc("b");function pc(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=ia(e.value)/ia(n);return jl(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=ia(o)%ia(r)),{type:pl,value:o}}const fc=36e5;function gc(t,e){return function(n,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];let s=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,i.map((t=>t.value))),l=typeof s;if("array"===t&&!Array.isArray(s)||"array"!==t&&l!==t||"object"===l&&null===s)throw"object"===l&&(l=Array.isArray(s)?"array":null===s?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(l,'".'));if("number"===t&&"integer"===e){jl(n,s);try{s=ia(s)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(s=Sl(s)),{type:e,value:s}}}function mc(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=Sl(n)),{type:e,value:n}}}}const vc=gc("string","string"),yc=gc("number","number"),$c=gc("number","integer"),_c=gc("boolean","boolean"),bc=gc("string","color"),wc=gc("string","url"),xc=gc("array","array"),kc=gc("object","dict"),Ec=mc(vc,"string"),Cc=mc(yc,"number"),Ac=mc($c,"integer"),jc=mc(_c,"boolean"),Vc=mc(bc,"color"),Dc=mc(wc,"url");function Fc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){jl(n,i);try{i=ia(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=Sl(i)),{type:e,value:i}}}function Pc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=Sl(n)),{type:e,value:n}}}}const Sc=Fc("string","string"),Nc=Fc("number","number"),Ic=Fc("number","integer"),Oc=Fc("boolean","boolean"),Tc=Fc("string","color"),Mc=Fc("string","url"),zc=Fc("array","array"),Rc=Fc("object","dict"),Bc=Pc(Sc,"string"),Lc=Pc(Nc,"number"),Uc=Pc(Ic,"integer"),Wc=Pc(Oc,"boolean"),Hc=Pc(Tc,"color"),qc=Pc(Mc,"url");function Jc(t){return t.map(El).join(", ")}Tl("toString",[pl],zl),Tl("toString",[fl],zl),Tl("toString",[gl],zl),Tl("toString",[ml],zl),Tl("toString",[vl],zl),Tl("toNumber",[pl],Rl),Tl("toNumber",[hl],Rl),Tl("toInteger",[fl],(function(t,e){if(e.value>ra||e.value<oa)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:pl,value:ia(n)}})),Tl("toInteger",[hl],(function(t,e){let n;try{n=ia(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:pl,value:n}})),Tl("toInteger",[gl],(function(t,e){return{type:pl,value:ia(e.value?1:0)}})),Tl("toBoolean",[pl],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:gl,value:n}})),Tl("toBoolean",[hl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:gl,value:"true"===e.value?1:0}})),Tl("toColor",[hl],(function(t,e){return{type:ml,value:Sl(e.value)}})),Tl("toUrl",[hl],(function(t,e){return{type:vl,value:e.value}})),Tl("encodeUri",[hl],(function(t,e){try{return{type:hl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Tl("decodeUri",[hl],(function(t,e){try{return{type:hl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Tl("getIntegerValue",[hl,pl],Ll),Tl("getNumberValue",[hl,fl],Ll),Tl("getBooleanValue",[hl,gl],Ll),Tl("getStringValue",[hl,hl],Ll),Tl("getColorValue",[hl,ml],Ul),Tl("getColorValue",[hl,hl],Ul),Tl("getUrlValue",[hl,vl],Wl),Tl("getUrlValue",[hl,hl],Wl),Tl("parseUnixTime",[pl],(function(t,e){return{type:yl,value:new Date(1e3*Number(e.value))}})),Tl("nowLocal",[],(function(){return{type:yl,value:new Date}})),Tl("addMillis",[yl,pl],(function(t,e,n){return{type:yl,value:new Date(e.value.getTime()+Number(n.value))}})),Tl("setYear",[yl,pl],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:yl,value:r}})),Tl("setMonth",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:yl,value:o}})),Tl("setDay",[yl,pl],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(kl(e),"."));return r.setUTCDate(-1===o?0:o),{type:yl,value:r}})),Tl("setHours",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:yl,value:o}})),Tl("setMinutes",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:yl,value:o}})),Tl("setSeconds",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:yl,value:o}})),Tl("setMillis",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:yl,value:o}})),Tl("getYear",[yl],ql),Tl("getMonth",[yl],Jl),Tl("getDay",[yl],Gl),Tl("getDayOfWeek",[yl],Kl),Tl("getHours",[yl],Xl),Tl("getMinutes",[yl],Yl),Tl("getSeconds",[yl],Zl),Tl("getMillis",[yl],Ql),Tl("getIntervalSeconds",[pl],(function(t,e){return pc(t,e,1e3,60)})),Tl("getIntervalTotalSeconds",[pl],(function(t,e){return pc(t,e,1e3)})),Tl("getIntervalMinutes",[pl],(function(t,e){return pc(t,e,6e4,60)})),Tl("getIntervalTotalMinutes",[pl],(function(t,e){return pc(t,e,6e4)})),Tl("getIntervalHours",[pl],(function(t,e){return pc(t,e,fc,24)})),Tl("getIntervalTotalHours",[pl],(function(t,e){return pc(t,e,fc)})),Tl("getIntervalTotalDays",[pl],(function(t,e){return pc(t,e,864e5)})),Tl("getIntervalTotalWeeks",[pl],(function(t,e){return pc(t,e,6048e5)})),Tl("len",[hl],(function(t,e){return{type:pl,value:ia(e.value.length)}})),Tl("contains",[hl,hl],(function(t,e,n){return{type:gl,value:e.value.includes(n.value)?1:0}})),Tl("substring",[hl,pl,pl],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:hl,value:e.value.substring(Number(n.value),Number(r.value))}})),Tl("replaceAll",[hl,hl,hl],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:hl,value:o}})),Tl("index",[hl,hl],(function(t,e,n){return{type:pl,value:ia(e.value.indexOf(n.value))}})),Tl("lastIndex",[hl,hl],(function(t,e,n){return{type:pl,value:ia(e.value.lastIndexOf(n.value))}})),Tl("trim",[hl],(function(t,e){return{type:hl,value:e.value.trim()}})),Tl("trimLeft",[hl],(function(t,e){return{type:hl,value:e.value.replace(/^\s+/,"")}})),Tl("trimRight",[hl],(function(t,e){return{type:hl,value:e.value.replace(/\s+$/,"")}})),Tl("toUpperCase",[hl],(function(t,e){return{type:hl,value:e.value.toUpperCase()}})),Tl("toLowerCase",[hl],(function(t,e){return{type:hl,value:e.value.toLowerCase()}})),Tl("padStart",[hl,pl,hl],ec),Tl("padStart",[pl,pl,hl],ec),Tl("padEnd",[hl,pl,hl],nc),Tl("padEnd",[pl,pl,hl],nc),Tl("testRegex",[hl,hl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:gl,value:r.test(e.value)?1:0}})),Tl("div",[pl,pl],(function(t,e,n){if(n.value===aa)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=Al(0,r),jl(t,r),{type:pl,value:r}})),Tl("div",[fl,fl],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:fl,value:r}})),Tl("mod",[pl,pl],(function(t,e,n){if(n.value===aa)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=Al(0,r),jl(t,r),{type:pl,value:r}})),Tl("mod",[fl,fl],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:fl,value:r}})),Tl("mul",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:aa;for(let e=1;e<n.length;++e)o*=n[e].value,o=Al(0,o),jl(t,o);return{type:pl,value:o}})),Tl("mul",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:fl,value:o}})),Tl("sub",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:aa;for(let e=1;e<n.length;++e)o-=n[e].value,o=Al(0,o),jl(t,o);return{type:pl,value:o}})),Tl("sub",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:fl,value:o}})),Tl("sum",[{type:pl,isVararg:!0}],(function(t){let e=aa;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=Al(0,e),jl(t,e);return{type:pl,value:e}})),Tl("sum",[{type:fl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:fl,value:e}})),Tl("abs",[pl],(function(t,e){const n=sa(e.value);return jl(t,n),{type:e.type,value:n}})),Tl("abs",[fl],(function(t,e){const n=Math.abs(e.value);return{type:fl,value:n}})),Tl("max",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:pl,value:o}})),Tl("max",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:fl,value:Math.max(...n.map((t=>t.value)))}})),Tl("min",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:pl,value:o}})),Tl("min",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:fl,value:Math.min(...n.map((t=>t.value)))}})),Tl("maxNumber",[],(function(){return{type:fl,value:dl}})),Tl("minNumber",[],(function(){return{type:fl,value:ul}})),Tl("maxInteger",[],(function(t){return jl(t,ra),{type:pl,value:ra}})),Tl("minInteger",[],(function(t){return jl(t,oa),{type:pl,value:oa}})),Tl("round",[fl],(function(t,e){const n=Math.sign(e.value);return{type:fl,value:n*Math.round(Math.abs(e.value))}})),Tl("floor",[fl],(function(t,e){return{type:fl,value:Math.floor(e.value)}})),Tl("ceil",[fl],(function(t,e){return{type:fl,value:Math.ceil(e.value)}})),Tl("signum",[pl],(function(t,e){return{type:pl,value:la(e.value)}})),Tl("signum",[fl],(function(t,e){return{type:fl,value:Math.sign(e.value)}})),Tl("copySign",[pl,pl],(function(t,e,n){let r;if(n.value===aa)r=e.value;else if(e.value===aa)r=ia(0);else{const t=la(n.value);r=sa(e.value)*t}return jl(t,r),{type:pl,value:r}})),Tl("copySign",[fl,fl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:fl,value:o}})),Tl("getColorAlpha",[hl],ic),Tl("getColorAlpha",[ml],ic),Tl("getColorRed",[hl],ac),Tl("getColorRed",[ml],ac),Tl("getColorGreen",[hl],sc),Tl("getColorGreen",[ml],sc),Tl("getColorBlue",[hl],lc),Tl("getColorBlue",[ml],lc),Tl("setColorAlpha",[hl,fl],cc),Tl("setColorAlpha",[ml,fl],cc),Tl("setColorRed",[hl,fl],dc),Tl("setColorRed",[ml,fl],dc),Tl("setColorGreen",[hl,fl],uc),Tl("setColorGreen",[ml,fl],uc),Tl("setColorBlue",[hl,fl],hc),Tl("setColorBlue",[ml,fl],hc),Tl("rgb",[fl,fl,fl],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:ml,value:Pl(o)}})),Tl("argb",[fl,fl,fl,fl],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:ml,value:Pl(i)}})),Tl("getDictString",[$l,{type:hl,isVararg:!0}],vc),Tl("getStringFromDict",[$l,{type:hl,isVararg:!0}],vc),Tl("getDictNumber",[$l,{type:hl,isVararg:!0}],yc),Tl("getNumberFromDict",[$l,{type:hl,isVararg:!0}],yc),Tl("getDictInteger",[$l,{type:hl,isVararg:!0}],$c),Tl("getIntegerFromDict",[$l,{type:hl,isVararg:!0}],$c),Tl("getDictBoolean",[$l,{type:hl,isVararg:!0}],_c),Tl("getBooleanFromDict",[$l,{type:hl,isVararg:!0}],_c),Tl("getDictColor",[$l,{type:hl,isVararg:!0}],bc),Tl("getColorFromDict",[$l,{type:hl,isVararg:!0}],bc),Tl("getDictUrl",[$l,{type:hl,isVararg:!0}],wc),Tl("getUrlFromDict",[$l,{type:hl,isVararg:!0}],wc),Tl("getDictOptString",[hl,$l,{type:hl,isVararg:!0}],Ec),Tl("getOptStringFromDict",[hl,$l,{type:hl,isVararg:!0}],Ec),Tl("getDictOptNumber",[fl,$l,{type:hl,isVararg:!0}],Cc),Tl("getOptNumberFromDict",[fl,$l,{type:hl,isVararg:!0}],Cc),Tl("getDictOptInteger",[pl,$l,{type:hl,isVararg:!0}],Ac),Tl("getOptIntegerFromDict",[pl,$l,{type:hl,isVararg:!0}],Ac),Tl("getDictOptBoolean",[gl,$l,{type:hl,isVararg:!0}],jc),Tl("getOptBooleanFromDict",[gl,$l,{type:hl,isVararg:!0}],jc),Tl("getDictOptColor",[ml,$l,{type:hl,isVararg:!0}],Vc),Tl("getOptColorFromDict",[ml,$l,{type:hl,isVararg:!0}],Vc),Tl("getDictOptColor",[hl,$l,{type:hl,isVararg:!0}],Vc),Tl("getOptColorFromDict",[hl,$l,{type:hl,isVararg:!0}],Vc),Tl("getDictOptUrl",[hl,$l,{type:hl,isVararg:!0}],Dc),Tl("getOptUrlFromDict",[hl,$l,{type:hl,isVararg:!0}],Dc),Tl("getDictOptUrl",[vl,$l,{type:hl,isVararg:!0}],Dc),Tl("getOptUrlFromDict",[vl,$l,{type:hl,isVararg:!0}],Dc),Tl("getDictFromDict",[$l,{type:hl,isVararg:!0}],kc),Tl("getArrayFromDict",[$l,{type:hl,isVararg:!0}],xc),Tl("getOptArrayFromDict",[$l,{type:hl,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return xc(t,e,...r)}catch(t){return{type:_l,value:[]}}})),Tl("getOptDictFromDict",[$l,{type:hl,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return kc(t,e,...r)}catch(t){return{type:$l,value:{}}}})),Tl("getArrayString",[_l,pl],Sc),Tl("getStringFromArray",[_l,pl],Sc),Tl("getArrayNumber",[_l,pl],Nc),Tl("getNumberFromArray",[_l,pl],Nc),Tl("getArrayInteger",[_l,pl],Ic),Tl("getIntegerFromArray",[_l,pl],Ic),Tl("getArrayBoolean",[_l,pl],Oc),Tl("getBooleanFromArray",[_l,pl],Oc),Tl("getArrayColor",[_l,pl],Tc),Tl("getColorFromArray",[_l,pl],Tc),Tl("getArrayUrl",[_l,pl],Mc),Tl("getUrlFromArray",[_l,pl],Mc),Tl("getArrayFromArray",[_l,pl],zc),Tl("getDictFromArray",[_l,pl],Rc),Tl("getArrayOptString",[_l,pl,hl],Bc),Tl("getOptStringFromArray",[_l,pl,hl],Bc),Tl("getArrayOptNumber",[_l,pl,fl],Lc),Tl("getOptNumberFromArray",[_l,pl,fl],Lc),Tl("getArrayOptInteger",[_l,pl,pl],Uc),Tl("getOptIntegerFromArray",[_l,pl,pl],Uc),Tl("getArrayOptBoolean",[_l,pl,gl],Wc),Tl("getOptBooleanFromArray",[_l,pl,gl],Wc),Tl("getArrayOptColor",[_l,pl,ml],Hc),Tl("getOptColorFromArray",[_l,pl,ml],Hc),Tl("getArrayOptColor",[_l,pl,hl],Hc),Tl("getOptColorFromArray",[_l,pl,hl],Hc),Tl("getArrayOptUrl",[_l,pl,vl],qc),Tl("getOptUrlFromArray",[_l,pl,vl],qc),Tl("getArrayOptUrl",[_l,pl,hl],qc),Tl("getOptUrlFromArray",[_l,pl,hl],qc),Tl("getOptArrayFromArray",[_l,pl],(function(t,e,n){try{return zc(t,e,n)}catch(t){return{type:_l,value:[]}}})),Tl("getOptDictFromArray",[_l,pl],(function(t,e,n){try{return Rc(t,e,n)}catch(t){return{type:$l,value:{}}}})),Tl("len",[_l],(function(t,e){return{type:pl,value:ia(e.value.length)}}));const Gc={StringLiteral:function(t,e){return{type:hl,value:e.value}},NumberLiteral:function(t,e){return{type:fl,value:e.value}},IntegerLiteral:function(t,e){return jl(t,e.value),{type:pl,value:e.value}},BooleanLiteral:function(t,e){return{type:gl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=wl(Kc(t,e.argument));switch(e.operator){case"!":if(n.type===gl)return{type:gl,value:n.value?0:1};Dl("".concat(e.operator).concat(El(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===pl){const e=n.value*ia(r);return jl(t,e),{type:pl,value:e}}if(n.type===fl)return{type:fl,value:n.value*r};Dl("".concat(e.operator).concat(El(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=wl(Kc(t,e.test));if(n.type===gl)return n.value?Kc(t,e.consequent):Kc(t,e.alternate);Dl("".concat(El(n)," ? ").concat(El(Kc(t,e.consequent))," : ").concat(El(Kc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Kc(t,e.test)}catch(n){return Kc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Kc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=kl(Kc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:hl,value:n}},LogicalExpression:function(t,e){const n=wl(Kc(t,e.left));if(n.type!==gl&&Dl("".concat(El(n)," ").concat(e.operator," ..."),"'".concat(e.operator,"' must be called with boolean operands.")),"||"===e.operator&&n.value)return n;if("&&"===e.operator&&!n.value)return{type:gl,value:0};const r=wl(Kc(t,e.right));return r.type!==gl&&Dl("".concat(El(n)," ").concat(e.operator," ").concat(El(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Cl(r.type),".")),{type:gl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Kc(t,e.left),o=Kc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=Nl(r):"integer"===o.type&&(o=Nl(o))),r.type!==o.type&&Dl("".concat(El(r)," ").concat(e.operator," ").concat(El(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Cl(r.type)," and ").concat(Cl(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===yl&&n.type===yl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:gl,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==fl&&e.type!==pl&&e.type!==yl&&Dl("".concat(El(e)," ").concat(t," ").concat(El(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Cl(e.type)," type."));const o=e.type===yl?e.value.getTime():e.value,i=n.type===yl?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:gl,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==hl&&n.type!==fl&&n.type!==pl&&Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Cl(n.type)," type.")),n.type===hl)return"-"===e&&Dl("".concat(El(n)," - ").concat(El(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Cl(n.type)," type.")),{type:hl,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===pl)try{o=Al(0,o),jl(t,o)}catch(t){Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==pl&&n.type!==fl&&Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Cl(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===pl)try{o=Al(0,o),jl(t,o)}catch(t){Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Kc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(Ol.has(i))r=Ol.get(i);else{const t=function(t,e){const n=Il.get(t);if(!n)return{type:"missing"};let r=null,o=null;for(let t=0;t<n.length;++t){const i=Ml(n[t],e);"match"!==i.type?r||(r=i):(!o||o.conversions>i.conversions)&&(o={func:n[t],conversions:i.conversions})}if(!o){if(r)return r;throw new Error("Missing function")}return o}(n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>Cl(t.type))).join(", "),r="".concat(n,"(").concat(Jc(o),")");"few"===t.type&&0===o.length?Dl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?Dl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):Dl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=function(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===fl&&e.type===pl?Nl(e):e}))}(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){Dl("".concat(n,"(").concat(Jc(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Kc(t,e){if(e.type in Gc)return Gc[e.type](t,e);throw new Error("Unsupported expression")}function Xc(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=Kc(n,e);return n.safeIntegerOverflow&&n.warnings.push(me(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Yc{constructor(t){this.ast=t}apply(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{const r=Xc(t,this.ast);r.warnings.forEach(e);const o=r.result;if("error"===o.type)return void e(me(new Error("Expression execution error"),{additional:{message:o.value}}));const i=o.value;if(i instanceof Date)return xl(i);if("boolean"===o.type)return Boolean(i);if("color"===o.type){const t=ke(String(i));if(t)return Pl(t);e(me(new Error("Expression execution error")))}if("integer"===o.type)return i>2147483647||i<-2147483648?void e(me(new Error("Expression result is out of 32-bit int range"))):Number(i);if(!n&&("array"===o.type||"dict"===o.type))try{return JSON.stringify(i)}catch(t){return e(me(new Error("Failed to stringify ".concat(o.type)))),"<".concat(o.type,">")}return i}catch(t){return void e(me(new Error("Expression execution error")))}}}function Zc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=cl(t,{startRule:"JsonStringContents"}),r=Vl(n);return e.vars.push(...r),new Yc(n)}catch(e){return void n(me(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Zc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Zc(t[o],e,n);return r}}var r;return t}function Qc(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t){if(t instanceof Yc)return t.apply(e,n,r);if(Array.isArray(t))return t.map((t=>Qc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Qc(t[o],e,n);return r}}return t}function td(t,e){const n={vars:[],hasExpression:!1},r=Zc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:(t,n)=>Qc(r,t,e,n)}}const ed={pagers:function(){return he(new Map)}},nd=new Map,rd=new Map;function od(t){const e=nd.get(t)||he("");return nd.has(t)||nd.set(t,e),e}function id(t){const e=rd.get(t)||new Map;return rd.has(t)||rd.set(t,e),e}class ad{setVariable(t){const e=t.getName(),n=id(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),od(this).set(e)}getVariable(t){return id(this).get(t)}list(){return id(this).values()}}function sd(){return new ad}function ld(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const cd=new Set(["start","stop","pause","resume","cancel","reset"]);class dd{constructor(t){ld(this,"timers",new Map),ld(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(me(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(me(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&cd.has(e)))return void this.logError(me(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(me(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(me(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(me(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(me(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(me(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(me(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(me(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(me(new Error("The timer is already running"))):this.logError(me(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function ud(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(me(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(me(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(me(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}function hd(t){let e,n,r,o,i,a,s,l;return n=new Zs({props:{svgFiltersMap:t[3]}}),o=new Ls({props:{componentContext:t[4]}}),{c(){e=R("div"),oe(n.$$.fragment),r=U(),oe(o.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0,dir:!0});var i=Y(e);ie(n.$$.fragment,i),r=ot(i),ie(o.$$.fragment,i),i.forEach(M),this.h()},h(){q(e,"class",i=""+(fe.root+(t[5]?" ".concat(fe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),q(e,"dir",t[6])},m(t,i){T(t,e,i),ae(n,e,null),I(e,r),ae(o,e,null),a=!0,s||(l=H(e,"touchstart",$d,{passive:!0}),s=!0)},p(t,r){const s={};8&r[0]&&(s.svgFiltersMap=t[3]),n.$set(s);const l={};16&r[0]&&(l.componentContext=t[4]),o.$set(l),(!a||33&r[0]&&i!==(i=""+(fe.root+(t[5]?" ".concat(fe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&q(e,"class",i),(!a||64&r[0])&&q(e,"dir",t[6])},i(t){a||(qt(n.$$.fragment,t),qt(o.$$.fragment,t),a=!0)},o(t){Jt(n.$$.fragment,t),Jt(o.$$.fragment,t),a=!1},d(t){t&&M(e),se(n),se(o),s=!1,l()}}}function pd(t){let e,n,r=!t[1]&&!t[2]&&t[4]&&hd(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[4]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),22&n[0]&&qt(r,1)):(r=hd(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let fd=he(!0),gd=0;function md(){fd.set(!1)}function vd(){fd.set(!0)}function yd(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function $d(){}function _d(t,e,n){let r,o,i,a;var s,l,c,d;let{id:u}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new ad}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:_=new Map}=e,{onError:b}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:C={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,D=he("desktop"===f);if(p(t,D,(t=>n(5,i=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let F="light",P=null;const S=he("rtl"===V?"rtl":"ltr");function N(){"system"===g&&P&&n(33,F=P.matches?"dark":"light")}p(t,S,(t=>n(6,a=t)));const I=new Set($);let O=!1,T=!1;u||(T=!0,G(me(new Error('"id" prop is required'))));const M={stateChange:!1},z=od(m),R=id(m),B=new Map,L=new Map,U=new Map;let W=null,H=0,q=[];function J(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=td(e,t);if(!o.hasExpression)return e;const i=yd(L,n);return o.applyVars(i,r)}function G(t){b?b({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function K(t,e){w&&w({type:t,action:e})}function X(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Qs(t,e,r,G)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let Y=0;function Z(t){return"".concat(u,"-").concat(Y++)}let Q={},tt={};function et(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!Ze(t))return;const a=(null==e?void 0:e.logError)||G;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=ut,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;i.setState(o),e=i}}(l.get("state_id"));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":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,d;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const u=Number(r);if("set_current_item"===t&&Number.isNaN(u))throw new Error('Incorrect item for "'.concat(t,'" action'));let h=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(h=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(h))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const p=lt(e);if(p)switch(t){case"set_current_item":return void p.setCurrentItem(u);case"set_previous_item":return void p.setPreviousItem(h,i);case"set_next_item":return void p.setNextItem(h,i);case"scroll_to_start":return void(null===(a=p.scrollToStart)||void 0===a||a.call(p));case"scroll_to_end":return void(null===(s=p.scrollToEnd)||void 0===s||s.call(p));case"scroll_backward":return void(null===(l=p.scrollBackward)||void 0===l||l.call(p,h,i));case"scroll_forward":return void(null===(c=p.scrollForward)||void 0===c||c.call(p,h,i));case"scroll_to_position":null===(d=p.scrollToPosition)||void 0===d||d.call(p,h)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),d=l.get("value");if(c&&null!==d){const t=L.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a(me(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(d)}else a(me(new Error("Cannot find variable"),{additional:{name:c}}))}else a(me(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const u=l.get("action"),h=l.get("id");W?W.execTimerAction(h,u):a(me(new Error("Incorrect timer action"),{additional:{id:h,action:u}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||G;if(t){const n=lt(t);n?"start"===e?n.start():"pause"===e?n.pause():r(me(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(me(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(me(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||G;if(t){let n;n="function"==typeof C?C(t):C,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=it.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(me(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void nt(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=it.get(t.id);e&&e.replaceWith(t.id,t.items)})),nt(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(me(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(me(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),nt(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(me(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||G;if(!t)return void i(me(new Error("Missing id in show_tooltip action")));const a=st.get(t);if(!a)return void i(me(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&q.some((e=>e.desc.id===t)))return;const s={internalId:++H,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(35,q=[...q,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(35,q=q.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||G;t?n(35,q=q.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(me(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;default:a(me(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(me(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=L.get(t);n?n.getType()===e.type?n.setValue(e.value):a(me(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(me(new Error("Cannot find variable"),{additional:{name:t}}))}else a(me(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(me(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):ud(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(me(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(L,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?ud(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(me(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(me(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(L,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(me(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(me(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(me(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&at.get(i.element_id);t?t.focus():a(me(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:a(me(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const n=t.filter(Ze);for(let t=0;t<n.length;++t){let r=n[t];const o=r.url,i=r.typed;if(o){const t=Pe(o);if(t)if(Se(t,I)){if(e.processUrls)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(et(r,e.componentContext),await St()):r.log_id&&(rt(r),await St())}else i&&et(r,e.componentContext)}n.forEach((t=>{t.log_id&&K("click",t)}))}function rt(t){null==x||x(t)}const ot=new Map,it=new Map,at=new Map,st=new Map;function lt(t){if(ot.has(t))return ot.get(t);G(me(new Error("Missing instance with id"),{additional:{id:t}}))}const ct=new Map;function dt(t){const e=U.get(t)||he(void 0);return U.has(t)||U.set(t,e),e}xt(ge,{logStat:K,hasTemplate:function(t){return t in r},processTemplate:X,genId:Z,genClass:function(t){return"divkit-".concat(Z())},execAction:et,execCustomAction:rt,isRunning:function(t){return M[t]},setRunning:function(t,e){M[t]=e},registerInstance:function(t,e){ot.has(t)?G(me(new Error("Duplicate instance id"),{additional:{id:t}})):ot.set(t,e)},unregisterInstance:function(t){ot.delete(t)},registerParentOf:function(t,e){it.set(t,e)},unregisterParentOf:function(t){it.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(st.has(n)&&G(me(new Error("Duplicate tooltip id"),{additional:{id:n}})),st.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(st.delete(e),q.some((t=>t.desc.id===e))&&n(35,q=q.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(35,q=q.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){at.set(t,e)},unregisterFocusable:function(t){at.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(tt[r]=tt[r]||0,++tt[r],Q[r])return Q[r];const o="".concat(Z(),"-svg-filter");return n(3,Q=Object.assign(Object.assign({},Q),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);tt[r]&&0==--tt[r]&&n(3,Q=Object.keys(Q).reduce(((t,e)=>(tt[e]&&(t[e]=Q[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in xa))throw new Error("Unsupported variable type");return new xa[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return ct.has(t)||function(t){ct.has(t)||ct.set(t,ed[t]())}(t),ct.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return I},getExtension:function(t,e){const n=_.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:L,logError:G}},typefaceProvider:E,isDesktop:D,isPointerFocus:fd,customComponents:j,direction:S,componentDevtool:void 0}),xt(nn,{hasAction:()=>!1});const ut={setState(t){throw new Error("Not implemented")},getChild(t){if(ht&&ht.has(t))return ht.get(t);G(me(new Error("Missing state block with id"),{additional:{id:t}}))}};let ht=null;function pt(t){if(t.type in ya){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&G(me(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=$a(t.name,t.type,t.value);B.set(t.name,e),L.set(t.name,e)}catch(e){G(me(e,{additional:{name:t.name}}))}}}xt(ze,{registerInstance(t,e){ht||(ht=new Map),ht.has(t)?G(me(new Error("Duplicate state with id"),{additional:{id:t}})):ht.set(t,e)},unregisterInstance(t){null==ht||ht.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const ft=null===(s=null==h?void 0:h.card)||void 0===s?void 0:s.variables;Array.isArray(ft)&&ft.forEach((t=>{if(t&&t.name){if(B.has(t.name))return void G(me(new Error("Duplicate variable"),{additional:{name:t.name}}));pt(t)}}));const gt=h.palette;gt&&gt[F].forEach((t=>{if(B.has(t.name))G(me(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=$a(t.name,"color",t.color);B.set(t.name,e),L.set(t.name,e)}catch(e){G(me(e,{additional:{name:t.name}}))}}));for(const[t,e]of R)L.has(t)||L.set(t,e);z.subscribe((t=>{if(t&&!L.has(t)){const e=R.get(t);L.set(t,e);const n=U.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const mt=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if(mt&&"undefined"!=typeof document){const t=W=new dd({logError:G,applyVars:t=>J(G,t),hasVariableWithType:function(t,e){const n=L.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=L.get(t);n?n.setValue(e):G(me(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:nt});mt.forEach((e=>t.createTimer(e)))}const vt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),G(t)},execAnyActions(t){return nt(t,{componentContext:n,processUrls:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).processUrls})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return el(e);const o=yd(L,n),i=td(e,t);return i.vars.length?pe(i.vars.map((t=>o.get(t)||dt(t))).filter(Ce),(()=>i.applyVars(o,r))):i.hasExpression?el(i.applyVars(o)):el(e)}(n.logError,t,yd(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return J(n.logError,t,yd(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=X(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=yd(n.variables,r.variables),r.tooltips&&(o.tooltips=r.tooltips),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||L).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(me(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let yt;return _t((()=>{gd++,1===gd&&(window.addEventListener("keydown",md),window.addEventListener("pointerdown",vd)),(()=>{var t;const e=null===(t=null==h?void 0:h.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void G(me(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}));const n=t.mode||"on_condition";if("on_variable"===n||"on_condition"===n)try{const r=cl(t.condition,{startRule:"JsonStringContents"}),o=Vl(r);if(!o.length)return void G(me(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));pe(o.map((t=>L.get(t)||dt(t))),(()=>{const t=Xc(L,r);return t.warnings.forEach(G),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=J(G,t);e.log_id&&et(e)})),e=Boolean(r.value)):G(me(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){G(me(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else G(me(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),wt((()=>{gd--,gd||(window.removeEventListener("keydown",md),window.removeEventListener("pointerdown",vd)),W&&W.destroy(),q.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,u=t.id),"json"in t&&n(9,h=t.json),"platform"in t&&n(12,f=t.platform),"theme"in t&&n(10,g=t.theme),"globalVariablesController"in t&&n(13,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(14,y=t.customization),"builtinProtocols"in t&&n(15,$=t.builtinProtocols),"extensions"in t&&n(16,_=t.extensions),"onError"in t&&n(17,b=t.onError),"onStat"in t&&n(18,w=t.onStat),"onCustomAction"in t&&n(19,x=t.onCustomAction),"onComponent"in t&&n(20,k=t.onComponent),"typefaceProvider"in t&&n(21,E=t.typefaceProvider),"fetchInit"in t&&n(22,C=t.fetchInit),"tooltipRoot"in t&&n(23,A=t.tooltipRoot),"customComponents"in t&&n(24,j=t.customComponents),"direction"in t&&n(25,V=t.direction)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|8&t.$$.dirty[1]&&("light"===g||"dark"===g?n(33,F=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(34,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(N)),n(33,F=P.matches?"dark":"light")):n(33,F="light"):G(me(new Error("Unsupported theme")))),4&t.$$.dirty[1]&&F&&(gt&&gt[F].forEach((t=>{const e=L.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,O=!1);const t=function(t){if(!t)return me(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return me(new Error("Missing card"));if(!e.states||!e.states.length)return me(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ms)return me(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return me(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return me(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,O=!0),G(t))}if(512&t.$$.dirty[0]&&(r=h.templates||{}),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&(null===n(31,l=null==h?void 0:h.card)||void 0===l?void 0:l.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==ft&&h.card.variables.forEach((t=>{t&&t.name&&!B.has(t.name)&&pt(t)})),512&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(36,o=null===n(32,d=null==h?void 0:h.card)||void 0===d?void 0:d.states),6&t.$$.dirty[0]|48&t.$$.dirty[1]&&o&&!O&&!T){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(4,yt=vt.produceChildContext(t,{tooltips:q,isRootState:!0}))}},[v,O,T,Q,yt,i,a,D,S,h,g,u,f,m,y,$,_,b,w,x,k,E,C,A,j,V,function(t){n(10,g=t)},function(){return new Map},function(){return new Map},function(t){n(9,h=t)},function(t){et(J(G,t))},l,d,F,P,q,o]}const bd=class extends de{constructor(t){super(),le(this,t,_d,pd,u,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,direction:25,setTheme:26,getDebugVariables:27,getDebugAllVariables:28,setData:29,execAction:30},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[26]}get getDebugVariables(){return this.$$.ctx[27]}get getDebugAllVariables(){return this.$$.ctx[28]}get setData(){return this.$$.ctx[29]}get execAction(){return this.$$.ctx[30]}};class wd{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await St()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function xd(t){return t instanceof HTMLElement}function kd(t){return class{constructor(t){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((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(xd);r.forEach((t=>{t.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%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Ed=["target","hydrate"];function Cd(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Ed),o=new bd({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Ad=exports;for(var jd in e)Ad[jd]=e[jd];e.__esModule&&Object.defineProperty(Ad,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(){}t.r(e),t.d(e,{SizeProvider:()=>wd,createGlobalVariablesController:()=>sd,createVariable:()=>$a,lottieExtensionBuilder:()=>kd,render:()=>Cd});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function d(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function u(t,e){return t!=t?e==e:t!==e}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function _(t){return t&&l(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}function C(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}const A="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function j(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class V{constructor(t){j(this,"_listeners","WeakMap"in A?new WeakMap:void 0),j(this,"_observer",void 0),j(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;V.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function D(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}V.entries="WeakMap"in A?new WeakMap:void 0;let F=!1;function P(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function S(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function N(t){const e=R("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(S(t),e),e.sheet}function I(t,e){if(F){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:P(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,o=Math.max(s,o)}const i=[],a=[];let s=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function O(t,e,n){t.insertBefore(e,n||null)}function T(t,e,n){F&&!n?I(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function z(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function R(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function U(){return L(" ")}function W(){return L("")}function H(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function q(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const J=["width","height"];function G(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===J.indexOf(r)?t[r]=e[r]:q(t,r,e[r])}function K(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:q(t,e,n)}(t,n,e[n])}))}function X(t){return/-/.test(t)?K:G}function Y(t){return Array.from(t.childNodes)}function Z(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function tt(t,e,n,r){return Q(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function et(t,e,n){return tt(t,e,n,R)}function nt(t,e,n){return tt(t,e,n,B)}function rt(t,e){return Q(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>L(e)),!0)}function ot(t){return rt(t," ")}function it(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function at(t,e){e=""+e,t.data!==e&&(t.data=e)}function st(t,e){t.value=null==e?"":e}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ct(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}class dt{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];D(this,"is_svg",!1),D(this,"e",void 0),D(this,"n",void 0),D(this,"t",void 0),D(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=B(e.nodeName):this.e=R(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)O(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(M)}}class ut extends dt{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),D(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}}function ht(t,e){return new t(e)}const pt=new Map;let ft,gt=0;function mt(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const d=c+"100% {".concat(a(n,1-n),"}\n}"),u="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(d),"_").concat(s),h=S(t),{stylesheet:p,rules:f}=pt.get(h)||function(t,e){const n={stylesheet:N(e),rules:{}};return pt.set(t,n),n}(h,t);f[u]||(f[u]=!0,p.insertRule("@keyframes ".concat(u," ").concat(d),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(u," ").concat(r,"ms linear ").concat(o,"ms 1 both"),gt+=1,u}function vt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),gt-=o,gt||x((()=>{gt||(pt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),pt.clear())})))}function yt(t){ft=t}function $t(){if(!ft)throw new Error("Function called outside component initialization");return ft}function _t(t){$t().$$.on_mount.push(t)}function bt(t){$t().$$.after_update.push(t)}function wt(t){$t().$$.on_destroy.push(t)}function xt(t,e){return $t().$$.context.set(t,e),e}function kt(t){return $t().$$.context.get(t)}function Et(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Ct=[],At=[];let jt=[];const Vt=[],Dt=Promise.resolve();let Ft=!1;function Pt(){Ft||(Ft=!0,Dt.then(Mt))}function St(){return Pt(),Dt}function Nt(t){jt.push(t)}const It=new Set;let Ot,Tt=0;function Mt(){if(0!==Tt)return;const t=ft;do{try{for(;Tt<Ct.length;){const t=Ct[Tt];Tt++,yt(t),zt(t.$$)}}catch(t){throw Ct.length=0,Tt=0,t}for(yt(null),Ct.length=0,Tt=0;At.length;)At.pop()();for(let t=0;t<jt.length;t+=1){const e=jt[t];It.has(e)||(It.add(e),e())}jt.length=0}while(Ct.length);for(;Vt.length;)Vt.pop()();Ft=!1,It.clear(),yt(t)}function zt(t){if(null!==t.fragment){t.update(),s(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Nt)}}function Rt(){return Ot||(Ot=Promise.resolve(),Ot.then((()=>{Ot=null}))),Ot}function Bt(t,e,n){t.dispatchEvent(function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}("".concat(e?"intro":"outro").concat(n)))}const Lt=new Set;let Ut;function Wt(){Ut={r:0,c:[],p:Ut}}function Ht(){Ut.r||s(Ut.c),Ut=Ut.p}function qt(t,e){t&&t.i&&(Lt.delete(t),t.i(e))}function Jt(t,e,n,r){if(t&&t.o){if(Lt.has(t))return;Lt.add(t),Ut.c.push((()=>{Lt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Gt={duration:0};function Kt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),d=!1,u=0;function h(){a&&vt(t,a)}function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Gt;p&&(a=mt(t,0,1,o,e,i,p,u++)),l(0,1);const f=w()+e,g=f+o;s&&s.abort(),d=!0,Nt((()=>Bt(t,!0,"start"))),s=C((e=>{if(d){if(e>=g)return l(1,0),Bt(t,!0,"end"),h(),d=!1;if(e>=f){const t=i((e-f)/o);l(t,1-t)}}return d}))}let f=!1;return{start(){f||(f=!0,vt(t),l(c)?(c=c(i),Rt().then(p)):p())},invalidate(){f=!1},end(){d&&(h(),d=!1)}}}function Xt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Yt(t,e){Jt(t,1,1,(()=>{e.delete(t.key)}))}function Zt(t,e,n,r,o,i,a,l,c,d,u,h){let p=t.length,f=i.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,_=[];for(g=f;g--;){const t=h(o,i,g),s=n(t);let l=a.get(s);l?r&&_.push((()=>l.p(t,e))):(l=d(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const b=new Set,w=new Set;function x(t){qt(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,o=n.key;e===n?(u=e.first,p--,f--):y.has(o)?!a.has(r)||b.has(r)?x(e):w.has(o)?p--:$.get(r)>$.get(o)?(w.add(r),x(e)):(b.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(_),v}function Qt(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let te;function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function re(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oe(t){t&&t.c()}function ie(t,e){t&&t.l(e)}function ae(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),Nt((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(Nt)}function se(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];jt.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),jt=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function le(t,e,r,o,i,l,c){let d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const u=ft;yt(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:a(),dirty:d,skip_bound:!1,root:e.target||u.$$.root};c&&c(h.root);let p=!1;if(h.ctx=r?r(t,e.props||{},(function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&function(t,e){-1===t.$$.dirty[0]&&(Ct.push(t),Pt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){F=!0;const t=Y(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&qt(t.$$.fragment),ae(t,e.target,e.anchor),F=!1,Mt()}yt(u)}function ce(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(te=class extends HTMLElement{constructor(t,e,n){super(),re(this,"$$ctor",void 0),re(this,"$$s",void 0),re(this,"$$c",void 0),re(this,"$$cn",!1),re(this,"$$d",{}),re(this,"$$r",!1),re(this,"$$p_d",{}),re(this,"$$l",{}),re(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=R("slot"),"default"!==t&&q(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&M(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=ce(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ne(ne({},this.$$d),{},{$$slots:e,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=ce(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const c=this.$$c.$on(s,l);this.$$l_u.set(l,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ce(t,n,this.$$p_d,"toProp"),null===(r=this.$$c)||void 0===r||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class de{constructor(){re(this,"$$",void 0),re(this,"$$set",void 0)}$destroy(){se(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ue=[];function he(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ue.length;for(const e of o)e[1](),ue.push(e,t);if(e){for(let t=0;t<ue.length;t+=2)ue[t][0](ue[t+1]);ue.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function pe(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const d=[];let u=0,p=n;const f=()=>{if(u)return;p();const i=e(o?d[0]:d,t,r);a?t(i):p=l(i)?i:n},g=i.map(((t,e)=>h(t,(t=>{d[e]=t,u&=~(1<<e),c&&f()}),(()=>{u|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:he(r,c).subscribe};var c}const fe={root:"divkit-b023c",root__clickable:"divkit-bd259","root__clickable-no-transition":"divkit-d9099",root__unselectable:"divkit-c016b",root_platform_desktop:"divkit-ee112","root__only-desktop":"divkit-fef1e","root_restrict-scroll":"divkit-aa145","root_disabled-context-menu":"divkit-f0cba"},ge=Symbol("root");function me(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t;return n.level=e.level||"error",e.additional&&(n.additional=e.additional),n}const ve={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ye={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980","outer_has-custom-focus":"divkit-c7f14"};function $e(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function _e(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return Number.isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function be(t){let e=_e(t);return"0"===e&&(e+="em"),e}function we(t,e){for(;t.length<e;)t="0"+t;return t}function xe(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=("string"==typeof t&&t||"").toLowerCase()).charAt(0))return n;const r=ke(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>we(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}(r)):n}function ke(t){const e=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(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function Ee(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&amp;")),e.indexOf("<")>-1&&(e=e.replace(/</g,"&lt;")),e.indexOf(">")>-1&&(e=e.replace(/>/g,"&gt;")),e.indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),e}const Ce=Boolean;function Ae(t){if(1===t.length&&"solid"===t[0].type)return{color:xe(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=xe(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Ce);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>xe(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:De(t.bg.scale),pos:Fe(t.bg),image:'url("'+Ee(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Ce);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=be(r.value):"relative"===r.type&&(o=je[r.value]));const i=Ve(t.bg.center_x),a=Ve(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>xe(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ce).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const je={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return be(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function De(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Fe(t){let e,n;return e="left"===t.content_alignment_horizontal?"0%":"right"===t.content_alignment_horizontal?"100%":"50%",n="top"===t.content_alignment_vertical?"0%":"bottom"===t.content_alignment_vertical?"100%":"50%",e+" "+n}function Pe(t){if(t.startsWith("tel:"))return"tel";const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Se(t,e){return e.has(t)}function Ne(t,e){const n=Number(t);return Number.isNaN(n)||n<0?e:n}function Ie(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Oe(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Te(t,e){e&&t.push(e)}function Me(t,e,n){const r=[];Te(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Te(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const ze=Symbol("state");function Re(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":_e(o)+" "+_e(i)+" "+_e(a)+" "+_e(s)}function Be(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!Number.isNaN(e)}function Le(t){return Be(t)&&t>=0}function Ue(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!Le(i[t]))return n;return Re(t,e)}const We=Object.prototype.hasOwnProperty;function He(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!We.call(e,o)||!He(t[o],e[o]))return!1}return!0}function qe(t,e){return He(t,e)?e:t}function Je(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Ge(t,e){const n=Number(t);return Number.isNaN(n)?e:n}function Ke(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ke(t))})):e.push(t),e}function Xe(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Le(t[n[r]]))return e;return t}function Ye(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>_e((t||e)/n*10))).join(" ")}function Ze(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Qe;function tn(){return"undefined"!=typeof matchMedia&&(Qe||(Qe=window.matchMedia("(prefers-reduced-motion)")),Qe.matches)}function en(){}const nn=Symbol("action");function rn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function on(t){var e;let n,r,i,a,l,c,d,u;const h=t[18].default,p=f(h,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?fe.root__clickable:fe["root__clickable-no-transition"]," ").concat(fe.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?fe["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=R("span"),p&&p.c(),this.h()},l(t){n=et(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=Y(n);p&&p.l(e),e.forEach(M),this.h()},h(){G(n,$)},m(e,r){T(e,n,r),p&&p.m(n,null),t[26](n),c=!0,d||(u=[_(l=t[4].call(null,n)),H(n,"click",t[22]),H(n,"keydown",t[10]),H(n,"focus",t[23]),H(n,"blur",t[24])],d=!0)},p(t,e){var o;p&&p.p&&(!c||131072&e[0])&&v(p,h,t,t[17],c?m(h,t[17],e,null):y(t[17]),null),G(n,$=Qt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?fe.root__clickable:fe["root__clickable-no-transition"]," ").concat(fe.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?fe["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(qt(p,t),c=!0)},o(t){Jt(p,t),c=!1},d(e){e&&M(n),p&&p.d(e),t[26](null),d=!1,s(u)}}}function an(t){var e;let n,r,i,a,l,c;const d=t[18].default,u=f(d,t,t[17],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?fe.root__clickable:fe["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?fe["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=o(p,h[t]);return{c(){n=R("a"),u&&u.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Y(n);u&&u.l(e),e.forEach(M),this.h()},h(){G(n,p)},m(e,r){T(e,n,r),u&&u.m(n,null),t[25](n),a=!0,l||(c=[_(i=t[4].call(null,n)),H(n,"click",t[19]),H(n,"keydown",t[10]),H(n,"focus",t[20]),H(n,"blur",t[21])],l=!0)},p(t,e){var o;u&&u.p&&(!a||131072&e[0])&&v(u,d,t,t[17],a?m(d,t[17],e,null):y(t[17]),null),G(n,p=Qt(h,[(!a||128&e[0])&&{href:t[7]},(!a||512&e[0])&&{target:t[9]},(!a||4&e[0])&&{style:t[2]},(!a||35&e[0]&&r!==(r=t[1]+" "+(t[5]?fe.root__clickable:fe["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?fe["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(qt(u,t),a=!0)},o(t){Jt(u,t),a=!1},d(e){e&&M(n),u&&u.d(e),t[25](null),l=!1,s(c)}}}function sn(t){let e,n,r,o;const i=[an,on],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=W()},l(t){n.l(t),r=W()},m(t,n){a[e].m(t,n),T(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(Wt(),Jt(a[l],1,1,(()=>{a[l]=null})),Ht(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),qt(n,1),n.m(r.parentNode,r))},i(t){o||(qt(n),o=!0)},o(t){Jt(n),o=!1},d(t){t&&M(r),a[e].d(t)}}}function ln(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:d=""}=e,{style:u=null}=e,{attrs:h}=e,{use:p=en}=e,{customAction:f=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=kt(ge),y=kt(nn);let $;xt(nn,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let _,b="",w=-1,x=null,k=!1,E=!1;async function C(t){y.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==f?void 0:f(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Pe(e);return n&&!Se(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s)))}function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0})}function j(t){t.touches.length>1||(x=rn(t),k=!1,w=Date.now())}function V(t){if(!x)return;const e=rn(t);(Math.abs(x.x-e.x)>8||Math.abs(x.y-e.y)>8)&&(k=!0)}function D(){!x||w<0||(!k&&Date.now()-w>=400&&i.execAnyActions(c,{processUrls:!0}),x=null,w=-1)}return _t((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(b||E)&&$.focus()}})})),wt((()=>{a&&!m&&v.unregisterFocusable(a)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,d=t.cls),"style"in t&&n(2,u=t.style),"attrs"in t&&n(3,h=t.attrs),"use"in t&&n(4,p=t.use),"customAction"in t&&n(15,f=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,b=e),n(9,_=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,b=""),i.logError(me(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(f)),b&&!Se(Pe(b),v.getBuiltinProtocols())?(n(7,b=""),n(8,E=!0)):!b&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed))||i.logError(me(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(b||E?$.addEventListener("click",C):$.removeEventListener("click",C),(null==l?void 0:l.length)?$.addEventListener("dblclick",A):$.removeEventListener("dblclick",A),(null==c?void 0:c.length)?($.addEventListener("touchstart",j,{passive:!0}),$.addEventListener("touchmove",V,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",j),$.removeEventListener("touchmove",V),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,d,u,h,p,g,$,b,E,_,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,f,m,o,r,function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(e){Et.call(this,t,e)},function(t){At[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){At[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const cn=class extends de{constructor(t){super(),le(this,t,ln,sn,u,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},dn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function un(t){return Be(t)&&t>0}function hn(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(un(t.radius))return"blur(".concat(be(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(me(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(me(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function pn(t,e,n){const r=t.slice();return r[6]=e[n],r}function fn(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=dn["outer-background__item"]),q(e,"style",r=$e(t[6].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=$e(t[6].style))&&q(e,"style",r)},d(t){t&&M(e)}}}function gn(t){let e,n,r,o,i,a;return{c(){e=R("img"),this.h()},l(t){e=et(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){d(e.src,n=t[6].image_url)||q(e,"src",n),q(e,"alt",""),q(e,"aria-hidden","true"),q(e,"loading","lazy"),q(e,"decoding","async"),q(e,"class",r=dn["outer-background__item"]),q(e,"style",o=$e(t[6].style))},m(n,r){T(n,e,r),i||(a=H(e,"error",t[2]),i=!0)},p(t,r){2&r&&!d(e.src,n=t[6].image_url)&&q(e,"src",n),2&r&&o!==(o=$e(t[6].style))&&q(e,"style",o)},d(t){t&&M(e),i=!1,a()}}}function mn(t){let e;function n(t,e){return t[6].image_url?gn:fn}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function vn(t){let e,r,o=Xt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=mn(pn(t,o,e));return{c(){e=R("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=Y(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(M),this.h()},h(){q(e,"class",r=dn["outer-background"]+(t[0]?" "+dn["outer-background_clip"]:"")),lt(e,"border-radius",t[0])},m(t,n){T(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=Xt(t[1]),n=0;n<o.length;n+=1){const r=pn(t,o,n);i[n]?i[n].p(r,a):(i[n]=mn(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=dn["outer-background"]+(t[0]?" "+dn["outer-background_clip"]:""))&&q(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(i,t)}}}function yn(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=Ae([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=hn(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(dn["outer-background__item_hidden"])},o,i,a]}const $n=class extends de{constructor(t){super(),le(this,t,yn,vn,u,{direction:3,componentContext:4,background:5,radius:0})}},_n=t=>({hasCustomFocus:256&t[0]}),bn=t=>({focusHandler:t[39],blurHandler:t[40],hasCustomFocus:t[8]});function wn(t){let e,n;return e=new cn({props:{componentContext:t[0],id:t[0].json.id,use:t[38],cls:t[1]+" "+Me("outer",ye,t[18]),style:$e(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Dn(t[7]),$$slots:{default:[En]},$$scope:{ctx:t}}}),e.$on("focus",t[39]),e.$on("blur",t[40]),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Me("outer",ye,t[18])),131072&n[0]&&(r.style=$e(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Dn(t[7])),2937&n[0]|134217728&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function xn(t){let e,n;return e=new $n({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function kn(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=ye.outer__border),q(e,"style",r=$e(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=$e(t[3]))&&q(e,"style",r)},d(t){t&&M(e)}}}function En(t){let e,n,r,o=t[6]&&xn(t);const i=t[119].default,a=f(i,t,t[120],bn);let s=t[11]&&kn(t);return{c(){o&&o.c(),e=W(),a&&a.c(),s&&s.c(),n=W()},l(t){o&&o.l(t),e=W(),a&&a.l(t),s&&s.l(t),n=W()},m(t,i){o&&o.m(t,i),T(t,e,i),a&&a.m(t,i),s&&s.m(t,i),T(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&qt(o,1)):(o=xn(t),o.c(),qt(o,1),o.m(e.parentNode,e)):o&&(Wt(),Jt(o,1,1,(()=>{o=null})),Ht()),a&&a.p&&(!r||256&l[0]|134217728&l[3])&&v(a,i,t,t[120],r?m(i,t[120],l,_n):y(t[120]),bn),t[11]?s?s.p(t,l):(s=kn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(qt(o),qt(a,t),r=!0)},o(t){Jt(o),Jt(a,t),r=!1},d(t){t&&(M(e),M(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function Cn(t){let e,n,r=!t[12]&&!t[13]&&wn(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),12288&n[0]&&qt(r,1)):(r=wn(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const An={left:"start",center:"center",right:"end",start:"start",end:"end"},jn={left:"end",center:"center",right:"start",start:"start",end:"end"},Vn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Dn(t){return t.some((t=>"native"===t.name))}function Fn(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,dt=n,ut=n,ht=n,pt=n,ft=n;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft()));let{$$slots:gt={},$$scope:mt}=e,{componentContext:vt}=e,{cls:yt=""}=e,{style:$t}=e,{layoutParams:_t={}}=e,{customDescription:xt=!1}=e,{customPaddings:Et=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:jt=!1}=e,{parentOf:Vt}=e,{parentOfSimpleMode:Dt}=e,{replaceItems:Ft}=e,{hasInnerFocusable:Pt=!1}=e;const Nt=kt(ge),It=kt(ze),Ot=Nt.direction;let Tt,Mt;p(t,Ot,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Wt,Ht,qt,Jt,Gt,Kt,Xt,Yt,Zt,Qt,te,ee,ne,re,oe,ie,ae=null,se=[],le={},ce={},de=!1,ue=1,he="transparent",fe=0,ve={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ye="",$e=null,we="",ke={},Ee=0,je=0,Ve=0,De=!1,Fe=!1,Te={},Me=0,Be=0,We=0,Qe=!1,en=!1,nn=1,rn=[],on=!1,an=!1,sn=[],ln=[],cn=[],dn=[],un=[],hn=[],pn="",fn=!1,gn="visible",mn=0,vn=0,yn=!1,$n=null;function _n(t,e){if(!Array.isArray(Vt)||!Ft)return;if(Dt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Vt.findIndex((e=>(null==e?void 0:e.id)===t)),o=Vt.slice();o.splice(n,1,...e||[]),r(41,Vt=o),Ft(o)}function bn(t){const e=Ge(t.start_value,1),n=Ge(t.end_value,1),o=Ne(t.start_delay,0),i=tn()?0:Ne(t.duration,300),a=Je(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(84,Zt=e),r(85,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(86,te=e),r(87,ee=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return vt.logError(me(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function wn(){if(ae&&Tt){const t=Nt.getExtensionContext();ae.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),ae=null}}function xn(t){var e;null==ie||ie.destroy(),r(51,Tt=t),on&&vt.json.transition_in&&It.registerChildWithTransitionIn(vt.json,vt,vt.json.transition_in,t).then((()=>{r(80,Kt=!1)})).catch((t=>{throw r(80,Kt=!1),t})),on&&vt.json.transition_out&&It.registerChildWithTransitionOut(vt.json,vt,vt.json.transition_out,t),on&&vt.json.transition_change&&It.registerChildWithTransitionChange(vt.json,vt,vt.json.transition_change,t).then((()=>{r(82,Yt=!1)})).catch((t=>{throw r(82,Yt=!1),t}));const n=vt.fakeElement?[]:vt.json.visibility_actions||vt.json.visibility_action&&[vt.json.visibility_action],o=vt.fakeElement?[]:vt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},d=pe(s,(t=>t)).subscribe((e=>{const n=e.filter(Oe),r={};n.forEach((t=>{r[t.index]=t})),c();const s=[...new Set(n.map((t=>{const e="visibility"===a[t.index].type;return Ie(e,t.visibility_percentage,e?50:0)/100})))];s.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{n.forEach((e=>{const n=a[e.index],r="visibility"===n.type,s=Ie(r,e.visibility_percentage,r?50:0);let l;l=0===s?t.intersectionRatio>=1e-12:t.intersectionRatio>=s/100;const c=r?!n.visible&&l:n.visible&&!l,d=r?!l:l;c?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0);const a=i.getJsonWithVars(n.action),s=a.url,l=a.typed;if(s){const t=Pe(s);t&&!Se(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(a):a.log_id&&o.execCustomAction(a))}else l&&o.execAction(a);o.logStat(r?"visible":"disappear",a)}),Ne(e.visibility_duration,800))):d&&n.timer&&clearTimeout(n.timer),n.visible=l}))}))}),{threshold:s}),l.observe(t))}));return{destroy(){c(),d()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:Nt,componentContext:vt}));const a=vt.json.id;return a&&It.registerChild(a),null===(e=vt.json.tooltips)||void 0===e||e.forEach((e=>{Nt.registerTooltip(t,e)})),ie={destroy(){a&&It.unregisterChild(a),i&&i.destroy(),$n&&$n.destroy()}},ie}return bt((function(){$n&&$n.update(vt)})),wt((()=>{var t;se.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,se=[]),null===(t=vt.json.tooltips)||void 0===t||t.forEach((t=>{Nt.unregisterTooltip(t)})),wn()})),t.$$set=t=>{"componentContext"in t&&r(0,vt=t.componentContext),"cls"in t&&r(1,yt=t.cls),"style"in t&&r(42,$t=t.style),"layoutParams"in t&&r(43,_t=t.layoutParams),"customDescription"in t&&r(44,xt=t.customDescription),"customPaddings"in t&&r(45,Et=t.customPaddings),"customActions"in t&&r(46,Ct=t.customActions),"additionalPaddings"in t&&r(47,At=t.additionalPaddings),"heightByAspect"in t&&r(48,jt=t.heightByAspect),"parentOf"in t&&r(41,Vt=t.parentOf),"parentOfSimpleMode"in t&&r(49,Dt=t.parentOfSimpleMode),"replaceItems"in t&&r(50,Ft=t.replaceItems),"hasInnerFocusable"in t&&r(2,Pt=t.hasInnerFocusable),"$$scope"in t&&r(120,mt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(100,o=vt.origJson),128&t.$$.dirty[3]&&o&&(r(58,$e=null),r(59,we=""),r(76,nn=1),r(88,fn=!1),r(89,gn="visible"),r(90,mn=0),r(91,vn=0),r(92,ne=void 0),r(93,re=void 0),rn=vt.fakeElement?[]:vt.json.transition_triggers||["state_change","visibility_change"],r(79,on=Boolean(-1!==rn.indexOf("state_change")&&vt.json.id)),an=Boolean(-1!==rn.indexOf("visibility_change")&&vt.json.id),Tt&&xn(Tt)),1&t.$$.dirty[0]&&(r(36,i=vt.getDerivedFromVars(vt.json.focus)),tt(),tt=h(i,(t=>r(104,I=t)))),1&t.$$.dirty[0]&&(r(35,a=vt.getDerivedFromVars(vt.json.border)),ft(),ft=h(a,(t=>r(118,X=t)))),1&t.$$.dirty[0]&&(r(34,s=vt.getDerivedFromVars(vt.json.paddings)),pt(),pt=h(s,(t=>r(117,K=t)))),1&t.$$.dirty[0]&&(r(33,l=vt.getDerivedFromVars(vt.json.margins)),ut(),ut=h(l,(t=>r(115,q=t)))),1&t.$$.dirty[0]&&(r(32,c=vt.getDerivedFromVars(vt.json.width)),ct(),ct=h(c,(t=>r(113,W=t)))),1&t.$$.dirty[0]&&(r(31,d=vt.getDerivedFromVars(vt.json.alignment_horizontal)),ht(),ht=h(d,(t=>r(116,G=t)))),1&t.$$.dirty[0]&&(r(30,u=vt.getDerivedFromVars(vt.json.height)),lt(),lt=h(u,(t=>r(112,U=t)))),1&t.$$.dirty[0]&&(r(29,f=vt.getDerivedFromVars(vt.json.alignment_vertical)),dt(),dt=h(f,(t=>r(114,H=t)))),1&t.$$.dirty[0]&&(r(28,g=vt.getDerivedFromVars(vt.json.alpha)),st(),st=h(g,(t=>r(111,L=t)))),1&t.$$.dirty[0]&&(r(27,m=vt.getDerivedFromVars(vt.json.accessibility)),at(),at=h(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(26,v=vt.getDerivedFromVars(vt.json.background)),it(),it=h(v,(t=>r(109,R=t)))),1&t.$$.dirty[0]&&(r(25,y=vt.getDerivedFromVars(vt.json.action)),rt(),rt=h(y,(t=>r(107,M=t)))),1&t.$$.dirty[0]&&(r(24,$=vt.getDerivedFromVars(vt.json.actions)),ot(),ot=h($,(t=>r(108,z=t)))),1&t.$$.dirty[0]&&(r(23,_=vt.getDerivedFromVars(vt.json.doubletap_actions)),nt(),nt=h(_,(t=>r(106,T=t)))),1&t.$$.dirty[0]&&(r(22,b=vt.getDerivedFromVars(vt.json.longtap_actions)),et(),et=h(b,(t=>r(105,O=t)))),1&t.$$.dirty[0]&&(r(21,w=vt.getDerivedFromVars(vt.json.action_animation)),Q(),Q=h(w,(t=>r(103,N=t)))),1&t.$$.dirty[0]&&(r(20,x=vt.getDerivedFromVars(vt.json.visibility)),Z(),Z=h(x,(t=>r(102,S=t)))),1&t.$$.dirty[0]&&(r(19,k=vt.getDerivedFromVars(vt.json.transform)),Y(),Y=h(k,(t=>r(101,P=t)))),2360320&t.$$.dirty[1]&&(se.forEach((t=>{Nt.unregisterParentOf(t)})),r(52,se=[]),Vt&&Vt.forEach((t=>{(null==t?void 0:t.id)&&(se.push(t.id),Nt.registerParentOf(t.id,{replaceWith:_n,isSingleMode:Boolean(Dt)}))}))),264&t.$$.dirty[0]|130023424&t.$$.dirty[1]|33556480&t.$$.dirty[3]){const t=yn&&(null==I?void 0:I.border)?I.border:X;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return _e((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+_e((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+_e(null!==(i=t.blur)&&void 0!==i?i:2)+" "+xe(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(54,ue=Ne(t.stroke.width,ue)),r(55,he=xe(t.stroke.color,1,he)),n["--divkit-border"]="".concat(_e(ue+1)," solid ").concat(he)),t.corners_radius?(r(57,ve=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Le(n[t]))return e;return t}(t.corners_radius,ve)),e["border-radius"]=Ye(ve),["top-left","top-right","bottom-right","bottom-left"].forEach((t=>{r(57,ve[t]=(ve[t]||0)+1,ve)})),n["--divkit-border-radius"]=Ye(ve)):t.corner_radius&&(r(56,fe=Ne(t.corner_radius,fe)),r(57,ve={"top-left":fe,"top-right":fe,"bottom-right":fe,"bottom-left":fe}),e["border-radius"]=_e(fe),n["--divkit-border-radius"]=_e(fe+1)),o&&ue&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ve);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ue/2})),i=Ye(t)}}r(53,le=qe(e,le)),r(3,ce=qe(n,ce)),r(11,de=o),r(4,ye=i)}if(134234112&t.$$.dirty[1]|16777216&t.$$.dirty[3]&&r(58,$e=Xe(K&&!Et?K:void 0,$e)),512&t.$$.dirty[0]|134283264&t.$$.dirty[1]&&r(96,E=Re(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}($e,At),J)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]|4194304&t.$$.dirty[3]&&r(59,we=Ue(q,J,we)),513&t.$$.dirty[0]|536875008&t.$$.dirty[1]|4&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const d=null==W?void 0:W.type;if("fixed"===d)r(64,Ee=Ne(null==W?void 0:W.value,Ee)),e=_e(Ee);else if("wrap_content"===d||("match_parent"===d||!d)&&_t.parentHorizontalWrapContent){if(t="content",("wrap_content"===d&&(null==W?void 0:W.constrained)||("match_parent"===d||!d)&&_t.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===_t.parentContainerOrientation&&(s=1)),"wrap_content"===d){const t=W;t.min_size&&Le(t.min_size.value)&&(n=_e(t.min_size.value)),t.max_size&&Le(t.max_size.value)&&(o=_e(t.max_size.value))}"match_parent"!==d&&d||vt.logError(me(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===_t.parentContainerOrientation&&_t.parentContainerWrap&&(c=!0,vt.logError(me(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===_t.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===_t.parentContainerOrientation&&(a=W&&"weight"in W&&W.weight||1,_t.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?An:jn)[t]:_t.parentHAlign||"start"}t&&(i.width=t),r(61,zt=e),r(62,Rt=n),r(63,Bt=o),r(65,je=a),r(66,Ve=s),r(60,ke=qe(i,ke)),r(67,De=l),r(12,Fe=c)}if(1&t.$$.dirty[0]|135168&t.$$.dirty[1]|1088&t.$$.dirty[2]|6815744&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const d=null==U?void 0:U.type;if(jt);else if("fixed"===d)r(72,Me=Ne(null==U?void 0:U.value,Me)),e=_e(Me);else if("match_parent"!==d||_t.parentVerticalWrapContent){if(t="content",("wrap_content"===d&&(null==U?void 0:U.constrained)||"match_parent"===d&&_t.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===_t.parentContainerOrientation&&(s=1)),"wrap_content"===d){const t=U;(null==t?void 0:t.min_size)&&Le(t.min_size.value)&&(n=_e(t.min_size.value)),(null==t?void 0:t.max_size)&&Le(t.max_size.value)&&(o=_e(t.max_size.value))}"match_parent"===d&&vt.logError(me(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===_t.parentContainerOrientation&&_t.parentContainerWrap&&(c=!0,vt.logError(me(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===_t.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===_t.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,_t.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===_t.parentContainerOrientation?i["valign-self"]=Vn[t]:i["valign-self"]=_t.parentVAlign||"start"}t&&(i.height=t),r(69,Lt=e),r(70,Ut=n),r(71,Wt=o),r(73,Be=a),r(74,We=s),r(68,Te=qe(i,Te)),r(75,Qe=l),r(13,en=c)}var e,n;if(4096&t.$$.dirty[1]&&r(99,C=!!_t.overlapParent||void 0),4096&t.$$.dirty[1]|1572864&t.$$.dirty[3]&&r(98,A=_t.overlapParent&&(!W||"match_parent"===W.type)&&!_t.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!_t.parentVerticalWrapContent),4096&t.$$.dirty[1]&&r(97,j=_t.gridArea?"".concat(_t.gridArea.y+1,"/").concat(_t.gridArea.x+1,"/span ").concat(_t.gridArea.rowSpan,"/span ").concat(_t.gridArea.colSpan):void 0),16384&t.$$.dirty[2]|262144&t.$$.dirty[3]&&(r(76,(n=nn,nn=!Le(e=L)||void 0===e||e>1?n:Number(e))),r(77,Ht=1===nn?void 0:nn)),8192&t.$$.dirty[1]|131072&t.$$.dirty[3]&&(r(10,Mt=void 0),B&&!xt&&B.description&&(r(10,Mt={}),r(10,Mt["aria-label"]=B.description,Mt))),368&t.$$.dirty[0]|67584&t.$$.dirty[3]&&(r(5,qt=yn&&(null==I?void 0:I.background)?I.background:R),r(78,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ye)),!Gt))){const t=Ae(qt);r(78,Jt["background-color"]=t.color,Jt),r(78,Jt["background-image"]=t.image,Jt),r(78,Jt["background-size"]=t.size,Jt),r(78,Jt["background-position"]=t.position,Jt),r(78,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(80,Kt=void 0),on&&vt.json.transition_in&&Nt.isRunning("stateChange")&&r(80,Kt=!0)),1&t.$$.dirty[0]|131072&t.$$.dirty[2]&&(r(82,Yt=void 0),on&&vt.json.transition_change&&Nt.isRunning("stateChange")&&It.hasTransitionChange(vt.json.id)&&r(82,Yt=!0)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]|63488&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],o=(null==I?void 0:I.on_focus)||[],i=(null==I?void 0:I.on_blur)||[];vt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],vt.logError(me(new Error("Actions should be array")))),Array.isArray(e)||(e=[],vt.logError(me(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],vt.logError(me(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],vt.logError(me(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],vt.logError(me(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Ct&&(t=[],e=[],n=[],vt.logError(me(new Error('Cannot use action on component "'.concat(Ct,'"'))))),r(14,sn=t.filter(Ze)),r(15,ln=e.filter(Ze)),r(16,cn=n.filter(Ze)),dn=o.filter(Ze),un=i.filter(Ze)}if(128&t.$$.dirty[0]|1024&t.$$.dirty[3]&&N&&(r(7,hn=Ke(N)),r(83,pn=hn.map(bn).filter(Boolean).join(", "))),201326592&t.$$.dirty[2]|512&t.$$.dirty[3]){const t=gn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,gn);t!==e&&(!fn||"visible"!==gn&&"visible"!==e?r(89,gn=e):async function(t){r(89,gn=t);const e="visible"===t?"in":"out",n="in"===e?vt.json.transition_in:vt.json.transition_out;an&&n&&(await St(),"in"===e&&r(81,Xt=!0),It.runVisibilityTransition(Object.assign(Object.assign({},vt.json),{visibility:"visible"}),vt,n,Tt,e).then((()=>{"in"===e&&r(81,Xt=!1)})).catch((t=>{throw"in"===e&&r(81,Xt=!1),t})))}(e)),fn||r(88,fn=!0)}if(1&t.$$.dirty[0]|1048576&t.$$.dirty[1]|2&t.$$.dirty[3]&&vt.json&&Tt&&!He(vt.json.extensions,oe)){let t=r(94,oe=vt.json.extensions);St().then((()=>{if(t===oe&&Tt&&(wn(),Array.isArray(vt.json.extensions))){const t=Nt.getExtensionContext();ae=vt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=Nt.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Tt,t)),o})).filter(Ce)}}))}if(257&t.$$.dirty[0]|536875008&t.$$.dirty[1]|138149952&t.$$.dirty[2]|96&t.$$.dirty[3]&&r(18,V=Object.assign(Object.assign(Object.assign({},ke),Te),{"parent-overlap":C,"parent-overlap-absolute":A,"scroll-snap":_t.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:gn,"has-action-animation":Boolean(pn),"parent-flex":_t.parentContainerOrientation||void 0,"parent-grid":Boolean(_t.gridArea)||void 0,"has-custom-focus":Boolean(yn&&vt.json.focus)})),805306368&t.$$.dirty[2]|256&t.$$.dirty[3]&&P&&void 0!==P.rotation){const t=P.pivot_x||{type:"pivot-percentage",value:50};r(90,mn=Ge(t.value,mn));const e="pivot-fixed"===t.type?_e(mn):"".concat(mn,"%"),n=P.pivot_y||{type:"pivot-percentage",value:50};r(91,vn=Ge(n.value,vn));const o="pivot-fixed"===n.type?_e(vn):"".concat(vn,"%");r(92,ne="".concat(e," ").concat(o)),r(93,re="rotate(".concat(P.rotation,"deg)"))}10280&t.$$.dirty[2]&&r(95,D=De||Qe?"100%":je||Be?0:void 0),1346373632&t.$$.dirty[1]|1138858907&t.$$.dirty[2]|29&t.$$.dirty[3]&&r(17,F=Object.assign(Object.assign(Object.assign(Object.assign({},$t),Jt),le),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Wt||(null==$t?void 0:$t["max-height"]),"grid-area":j,padding:E,margin:we,opacity:Ht,transition:pn,"transform-origin":ne,transform:re,"flex-grow":je||Be||void 0,"flex-shrink":Ve||We?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[vt,yt,Pt,ce,ye,qt,Gt,hn,yn,J,Mt,de,Fe,en,sn,ln,cn,F,V,k,x,w,b,_,$,y,v,m,g,f,u,d,c,l,s,a,i,Ot,xn,function(){vt.json.focus&&(function(t){let e;return h(t,(t=>e=t))(),e}(Nt.isPointerFocus)||r(8,yn=!0),vt.execAnyActions(dn))},function(){vt.json.focus&&(r(8,yn=!1),vt.execAnyActions(un))},Vt,$t,_t,xt,Et,Ct,At,jt,Dt,Ft,Tt,se,le,ue,he,fe,ve,$e,we,ke,zt,Rt,Bt,Ee,je,Ve,De,Te,Lt,Ut,Wt,Me,Be,We,Qe,nn,Ht,Jt,on,Kt,Xt,Yt,pn,Zt,Qt,te,ee,fn,gn,mn,vn,ne,re,oe,D,E,j,A,C,o,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q,G,K,X,gt,mt]}const Pn=class extends de{constructor(t){super(),le(this,t,Fn,Cn,u,{componentContext:0,cls:1,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:41,parentOfSimpleMode:49,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Sn={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Nn(t,e){const n=Number(t);return Number.isNaN(n)||n<=0?e:n}function In(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function On(t,e){return In(t)||e}function Tn(t){let e,n;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Sn["text-range__top-offset"]),lt(e,"margin-top",t[5])},m(t,n){T(t,e,n)},p(t,n){32&n&&lt(e,"margin-top",t[5])},d(t){t&&M(e)}}}function Mn(t){let e;return{c(){e=L(t[1])},l(n){e=rt(n,t[1])},m(t,n){T(t,e,n)},p(t,n){2&n&&at(e,t[1])},d(t){t&&M(e)}}}function zn(t){let e,n,r,o=t[5]&&Tn(t);return n=new cn({props:{componentContext:t[0],cls:Me("text-range",Sn,t[4]),actions:t[2],style:$e(t[3]),$$slots:{default:[Mn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=W(),oe(n.$$.fragment)},l(t){o&&o.l(t),e=W(),ie(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),T(t,e,i),ae(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=Tn(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Me("text-range",Sn,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=$e(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(qt(n.$$.fragment,t),r=!0)},o(t){Jt(n.$$.fragment,t),r=!1},d(t){t&&M(e),o&&o.d(t),se(n,t)}}}function Rn(t,e,n){let r,o,i,a,s,l;var c,d;let{componentContext:u}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=kt(ge);let y,$="none",_=12,b=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"componentContext"in t&&n(0,u=t.componentContext),"text"in t&&n(1,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&u.json&&(n(11,$="none"),n(12,_=12),n(13,b=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,_=Nn(f.font_size,_)),4224&t.$$.dirty&&un(f.line_height)&&n(13,b=Number(f.line_height)/_),128&t.$$.dirty&&Le(f.letter_spacing)&&n(14,w=_e(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=On(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=xe(f.text_color,1,k)),128&t.$$.dirty&&n(5,r=f.top_offset?_e(f.top_offset):""),128&t.$$.dirty&&n(20,o=f.background?Ae([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==xe(f.border.stroke.color)&&un(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,i=Nn(null===n(10,d=f.border)||void 0===d?void 0:d.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+xe(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+_e(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+_e(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+_e(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,_):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":_e(10*_/p),"line-height":b,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat(_e(E.width)," ").concat(E.color):void 0,"border-radius":i?_e(i):void 0})},[u,h,m,l,s,r,p,f,g,c,d,$,_,b,w,y,x,k,E,i,o,a]}const Bn=class extends de{constructor(t){super(),le(this,t,Rn,zn,u,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Ln(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Un(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Wn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Hn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function qn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function Jn(t,e){let n=null;const r=()=>{const n=getComputedStyle(t),r=parseFloat(n.lineHeight);t.style.webkitLineClamp="",t.style.maxHeight="";const o=t.offsetHeight;if(t.scrollHeight<=o+1e-9)return;let i=Math.max(1,Math.floor(o/r));e.maxLines&&e.maxLines<i&&(i=e.maxLines),t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},o=qn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:Gn}=A;function Kn(t,e,n){const r=t.slice();return r[60]=e[n],r}function Xn(t){let e,n;return e=new Bn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[7],singleline:t[6]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),128&n[0]&&(r.textStyles=t[7]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Yn(t){let e,n,r=Xt(t[11]),o=[];for(let e=0;e<r.length;e+=1)o[e]=er(Kn(t,r,e));const i=t=>Jt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(2633&n[0]|1&n[1]){let a;for(r=Xt(t[11]),a=0;a<r.length;a+=1){const i=Kn(t,r,a);o[a]?(o[a].p(i,n),qt(o[a],1)):(o[a]=er(i),o[a].c(),qt(o[a],1),o[a].m(e.parentNode,e))}for(Wt(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)qt(o[t]);n=!0}},o(t){o=o.filter(Gn);for(let t=0;t<o.length;t+=1)Jt(o[t]);n=!1},d(t){t&&M(e),z(o,t)}}}function Zn(t){let e,r,o,i,a,s,l,c,u;return{c(){e=R("span"),r=R("img"),this.h()},l(t){e=et(t,"SPAN",{style:!0});var n=Y(e);r=et(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(M),this.h()},h(){q(r,"class",o=ve.text__image),d(r.src,i=t[60].image.url)||q(r,"src",i),q(r,"loading",a=t[60].image.preloadRequired?"eager":"lazy"),q(r,"decoding","async"),q(r,"aria-hidden","true"),q(r,"alt",""),q(r,"style",s=$e({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0})),q(e,"style",l=$e(t[60].image.wrapperStyle))},m(n,o){T(n,e,o),I(e,r),c||(u=H(r,"error",t[31]),c=!0)},p(t,n){2048&n[0]&&!d(r.src,i=t[60].image.url)&&q(r,"src",i),2048&n[0]&&a!==(a=t[60].image.preloadRequired?"eager":"lazy")&&q(r,"loading",a),2560&n[0]&&s!==(s=$e({width:t[60].image.width,height:t[60].image.height,"margin-top":t[9]?"-".concat(t[60].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[60].image.height):void 0,filter:t[60].image.svgFilterId?"url(#".concat(t[60].image.svgFilterId,")"):void 0}))&&q(r,"style",s),2048&n[0]&&l!==(l=$e(t[60].image.wrapperStyle))&&q(e,"style",l)},i:n,o:n,d(t){t&&M(e),c=!1,u()}}}function Qn(t){let e,n,r=t[60].text&&tr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[60].text?r?(r.p(t,n),2048&n[0]&&qt(r,1)):(r=tr(t),r.c(),qt(r,1),r.m(e.parentNode,e)):r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function tr(t){let e,n;return e=new Bn({props:{componentContext:t[0],text:t[60].text,rootFontSize:t[3],textStyles:t[60].textStyles,singleline:t[6],actions:t[60].actions}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2048&n[0]&&(r.text=t[60].text),8&n[0]&&(r.rootFontSize=t[3]),2048&n[0]&&(r.textStyles=t[60].textStyles),64&n[0]&&(r.singleline=t[6]),2048&n[0]&&(r.actions=t[60].actions),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function er(t){let e,n,r,o;const i=[Qn,Zn],a=[];function s(t,e){return"text"in t[60]?0:t[60].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=W()},l(t){n&&n.l(t),r=W()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(Wt(),Jt(a[l],1,1,(()=>{a[l]=null})),Ht()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),qt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(qt(n),o=!0)},o(t){Jt(n),o=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function nr(t){let e,n,r,o,i,a,s,c,d;const u=[Yn,Xn],h=[];function p(t,e){return t[11].length?0:1}return n=p(t),r=h[n]=u[n](t),{c(){e=R("span"),r.c(),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0});var n=Y(e);r.l(n),n.forEach(M),this.h()},h(){q(e,"class",o=Me("text__inner",ve,t[13])),q(e,"style",i=$e(t[12]))},m(r,o){T(r,e,o),h[n].m(e,null),s=!0,c||(d=_(a=Jn.call(null,e,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})),c=!0)},p(t,c){let d=n;n=p(t),n===d?h[n].p(t,c):(Wt(),Jt(h[d],1,1,(()=>{h[d]=null})),Ht(),r=h[n],r?r.p(t,c):(r=h[n]=u[n](t),r.c()),qt(r,1),r.m(e,null)),(!s||8192&c[0]&&o!==(o=Me("text__inner",ve,t[13])))&&q(e,"class",o),(!s||4096&c[0]&&i!==(i=$e(t[12])))&&q(e,"style",i),a&&l(a.update)&&1296&c[0]&&a.update.call(null,{enabled:t[8],lineClamp:"number"==typeof t[4]?t[4]:void 0,maxLines:t[10]})},i(t){s||(qt(r),s=!0)},o(t){Jt(r),s=!1},d(t){t&&M(e),h[n].d(),c=!1,d()}}}function rr(t){let e,n;return e=new Pn({props:{cls:Me("text",ve,t[14])+" "+(t[5]?"":fe.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[nr]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};16416&n[0]&&(r.cls=Me("text",ve,t[14])+" "+(t[5]?"":fe.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),16349&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function or(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=kt(ge),lt=st.direction;p(t,lt,(t=>r(52,M=t)));let ct,dt="",ut=12,ht=1.25,pt=!1,ft="",gt="",mt=!1,vt="start",yt="start",$t="",_t="",bt="",xt=!1,Et=[],Ct=[];return wt((()=>{Ct.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ut=12),r(32,ht=1.25),r(9,pt=!1),r(33,ft=""),r(10,ct=void 0),r(4,gt=""),r(34,mt=!1),r(35,vt="start"),r(36,yt="start"),r(37,$t=""),r(39,bt=""),r(5,xt=!1)),1&t.$$.dirty[0]&&(r(29,o=it.getDerivedFromVars(it.json.text)),ot(),ot=h(o,(t=>r(56,U=t)))),1&t.$$.dirty[0]&&(r(28,i=it.getDerivedFromVars(it.json.ranges)),q(),q=h(i,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(27,a=it.getDerivedFromVars(it.json.images)),H(),H=h(a,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(26,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),W(),W=h(s,(t=>r(7,j=t)))),1&t.$$.dirty[0]&&(r(25,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=h(l,(t=>r(55,L=t)))),1&t.$$.dirty[0]&&(r(24,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=h(c,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(23,d=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=h(d,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(22,u=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=h(u,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(21,f=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=h(f,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(20,g=it.getDerivedFromVars(it.json.text_color)),Y(),Y=h(g,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(19,m=it.getDerivedFromVars(it.json.focused_text_color)),X(),X=h(m,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(18,v=it.getDerivedFromVars(it.json.truncate)),K(),K=h(v,(t=>r(47,S=t)))),1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=h(y,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(it.json.selectable)),J(),J=h($,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(15,_=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=h(_,(t=>r(8,R=t)))),33554432&t.$$.dirty[1]&&r(2,(e=U,dt=String(null!=e?e:""))),8&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(3,ut=Nn(L,ut)),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]){const t=B;un(t)?(r(32,ht=Number(t)/ut),r(9,pt=!0)):r(9,pt=!1)}if(524288&t.$$.dirty[1]&&r(6,b=1===O),256&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t,e="",n="",o=!1;if(O&&O>1){const r=Number(O);e=r*ht+"em",t=r,n=r,o=!0}else R&&1!==O&&(o=!0);r(33,ft=e),r(10,ct=t),r(4,gt=n),r(34,mt=o)}if(6291472&t.$$.dirty[1]&&r(35,vt=Ln(z,M,vt)),1048608&t.$$.dirty[1]&&r(36,yt=Un(T,yt)),4&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,w=!D||dt&&1===D.length&&D[0]&&0===D[0].start&&"number"==typeof D[0].end&&D[0].end>=dt.length),270336&t.$$.dirty[1]&&r(41,x=Boolean(I)!==Boolean(D&&D[0]&&D[0].text_color)),797760&t.$$.dirty[1]){let t="";O&&w&&x&&(t=xe(I||D&&D[0]&&D[0].text_color,1,$t)),r(37,$t=t)}if(131200&t.$$.dirty[1]&&r(38,_t=xe(N,1,_t)),65536&t.$$.dirty[1]&&r(40,k="none"===S?"none":""),32768&t.$$.dirty[1]){let t="";if(P){const e=Ae([P]);e.image&&(t=e.image)}r(39,bt=t)}32&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(5,xt=Wn(F,xt)),132&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n,o){let i=[];if(Ct.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Ct=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,Et=[]);const a=t;let s=e||[{start:0,end:a.length}],l=n||[],c=0,d=[],u=[];s.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=a.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,s=t.index;if(s>c){let r=Object.assign(Object.assign({},o),...d);i.push({text:a.substring(c,s),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Ze))||void 0})}if("rangeStart"===t.type&&r)d.push(r);else if("rangeEnd"===t.type)d=d.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},o),...d),n=_e(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=_e(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const a={"font-size":_e(10*(Number(e.font_size)||12)/ut)};let s="";const l=t.image.tint_color,c=Hn(t.image.tint_mode,"source_in");if(l){const e=xe(t.image.tint_color);s=st.addSvgFilter(e,c),Ct.push([e,c])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:a,svgFilterId:s,preloadRequired:Boolean(t.image.preload_required)}})}c=s})),c<a.length&&i.push({text:a.substring(c),textStyles:Object.assign({},o)}),r(11,Et=i)}(dt,D,V,j),64&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,E={singleline:b,multiline:mt,halign:vt,valign:yt,truncate:k,"has-focus-color":Boolean(_t)}),256&t.$$.dirty[1]&&r(13,C={gradient:Boolean(bt)}),24&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":_e(ut),"line-height":ht,"max-height":ft,"-webkit-line-clamp":gt,color:$t,"background-image":bt,"--divkit-text-focus-color":_t})},[it,at,dt,ut,gt,xt,b,j,R,pt,ct,Et,A,C,E,_,$,y,v,m,g,f,u,d,c,l,s,a,i,o,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ve.text__image_hidden)},ht,ft,mt,vt,yt,$t,_t,bt,k,x,w,V,D,F,P,S,N,I,O,T,M,z,B,L,U]}const ir={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function ar(t){return{top:Number(null==t?void 0:t.top)||0,right:Number(null==t?void 0:t.right)||0,bottom:Number(null==t?void 0:t.bottom)||0,left:Number(null==t?void 0:t.left)||0}}function sr(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function lr(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map(_e).join(" ")}function cr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function dr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ur(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Ne(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:Ne(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:Ne(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Ne(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?xe(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=xe(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat(_e(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let hr;function pr(){if("undefined"==typeof document&&(hr=!0),void 0!==hr)return hr;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),hr=1===t.scrollHeight,document.body.removeChild(t),hr}const fr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:gr}=A;function mr(t,e,n){const r=t.slice();return r[16]=e[n],r}function vr(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),d="".concat(t[16].top,"px"),u="".concat(t[16].width,"px"),h="".concat(t[16].height,"px");return{c(){e=R("div"),n=R("div"),o=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0}),Y(n).forEach(M),o=ot(r),r.forEach(M),this.h()},h(){q(n,"class",r=fr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",s),lt(n,"border-radius",l),lt(n,"background",t[16].style.background),lt(n,"box-shadow",t[16].style.boxShadow),q(e,"class",i=fr["container-separator__item"]),lt(e,"left",c),lt(e,"top",d),lt(e,"width",u),lt(e,"height",h)},m(t,r){T(t,e,r),I(e,n),I(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&lt(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&lt(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&lt(n,"border-radius",l),2&r&&lt(n,"background",t[16].style.background),2&r&&lt(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&lt(e,"left",c),2&r&&d!==(d="".concat(t[16].top,"px"))&&lt(e,"top",d),2&r&&u!==(u="".concat(t[16].width,"px"))&&lt(e,"width",u),2&r&&h!==(h="".concat(t[16].height,"px"))&&lt(e,"height",h)},d(t){t&&M(e)}}}function yr(t){let e,r,o,i,a=Xt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=vr(mr(t,a,e));return{c(){e=R("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(M),this.h()},h(){q(e,"class",r=fr["container-separator"])},m(n,r){T(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=H(gr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Xt(t[1]),n=0;n<a.length;n+=1){const o=mr(t,a,n);s[n]?s[n].p(o,r):(s[n]=vr(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&M(e),z(s,n),t[13](null),o=!1,i()}}}function $r(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function _r(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),$r(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)$r(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),$r(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function br(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const d=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),d={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,h=[]);let p=[...r.children].filter((t=>t!==u&&!t.classList.contains(ye.outer__border))),f=[];for(;p.length;){const t=[],e=p.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;p.length;){let e=p[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),p.shift()}f.push(t)}const g=[];f.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&_r(h,i,e,"vertical"===o,"vertical"===o?l:s,d);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&_r(h,a,g,"horizontal"===o,"vertical"===o?s:l,d),h.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,h=[],p=!1,f=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(fr["container-separator__shape"]))&&!(null==n?void 0:n.contains(fr["container-separator"]))}))&&d()}return _t((()=>{n(9,p=!0)})),wt((()=>{n(9,p=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==u?void 0:u.parentElement)||null),7680&t.$$.dirty&&(p&&r||f||g)&&(f&&(f.disconnect(),n(10,f=null)),g&&(g.disconnect(),n(11,g=null)),p&&r&&("undefined"!=typeof MutationObserver&&(n(10,f=new MutationObserver(m)),f.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(d)),g.observe(r)))),4608&t.$$.dirty&&p&&r&&d()},[u,h,d,o,i,a,s,l,c,p,f,g,r,function(t){At[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const wr=class extends de{constructor(t){super(),le(this,t,br,yr,u,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:xr}=A;function kr(t,e,n){const r=t.slice();return r[54]=e[n],r}function Er(t){let e,n;return e=new Ls({props:{componentContext:t[54],layoutParams:t[8]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[54]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Cr(t){let e,n;return e=new wr({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ar(t){let e,n,r,o=Xt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Er(kr(t,o,e));const a=t=>Jt(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Cr(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U(),s&&s.c(),n=W()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ot(t),s&&s.l(t),n=W()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);T(t,e,o),s&&s.m(t,o),T(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=Xt(t[9]),n=0;n<o.length;n+=1){const a=kr(t,o,n);i[n]?(i[n].p(a,r),qt(i[n],1)):(i[n]=Er(a),i[n].c(),qt(i[n],1),i[n].m(e.parentNode,e))}for(Wt(),n=o.length;n<i.length;n+=1)a(n);Ht()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&qt(s,1)):(s=Cr(t),s.c(),qt(s,1),s.m(n.parentNode,n)):s&&(Wt(),Jt(s,1,1,(()=>{s=null})),Ht())},i(t){if(!r){for(let t=0;t<o.length;t+=1)qt(i[t]);qt(s),r=!0}},o(t){i=i.filter(xr);for(let t=0;t<i.length;t+=1)Jt(i[t]);Jt(s),r=!1},d(t){t&&(M(e),M(n)),z(i,t),s&&s.d(t)}}}function jr(t){let e,n;return e=new Pn({props:{cls:Me("container",ir,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Pr),replaceItems:t[27],$$slots:{default:[Ar]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Me("container",ir,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Pr)),2940&n[0]|67108864&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}const Vr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Dr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Fr=["rounded_rectangle","circle"],Pr=t=>t.json;function Sr(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n,K=n;var X,Y,Z,Q,tt,et,nt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{componentContext:rt}=e,{layoutParams:ot}=e;const it=kt(ge),at=it.direction;let st;p(t,at,(t=>r(11,F=t)));let lt,ct="vertical",dt="start",ut="start",ht=null,pt=null,ft={},gt=[];return t.$$set=t=>{"componentContext"in t&&r(0,rt=t.componentContext),"layoutParams"in t&&r(1,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(39,o=rt.origJson),256&t.$$.dirty[1]&&o&&(r(2,ct="vertical"),r(3,dt="start"),r(4,ut="start"),r(7,lt=void 0)),1&t.$$.dirty[0]&&r(38,i=rt.json.items),268435457&t.$$.dirty[0]&&(r(25,a=rt.getDerivedFromVars(null===r(28,X=rt.json.item_builder)||void 0===X?void 0:X.data,void 0,!0)),K(),K=h(a,(t=>r(51,T=t)))),1&t.$$.dirty[0]&&(r(24,s=rt.getDerivedFromVars(rt.json.orientation)),G(),G=h(s,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(rt.json.layout_mode)),J(),J=h(l,(t=>r(49,I=t)))),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(rt.json.content_alignment_vertical)),H(),H=h(c,(t=>r(47,S=t)))),1&t.$$.dirty[0]&&(r(21,d=rt.getDerivedFromVars(rt.json.content_alignment_horizontal)),W(),W=h(d,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(20,u=rt.getDerivedFromVars(rt.json.separator)),U(),U=h(u,(t=>r(45,D=t)))),1&t.$$.dirty[0]&&(r(19,f=rt.getDerivedFromVars(rt.json.line_separator)),L(),L=h(f,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars(rt.json.aspect)),B(),B=h(g,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(rt.json.width)),z(),z=h(m,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(16,v=rt.getDerivedFromVars(rt.json.height)),R(),R=h(v,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(rt.json.clip_to_bounds)),M(),M=h(y,(t=>r(40,E=t)))),1&t.$$.dirty[0]|1048704&t.$$.dirty[1]){let t=[];if(rt.json.item_builder&&Array.isArray(T)&&Array.isArray(rt.json.item_builder.prototypes)){const e=rt.json.item_builder;t=[],T.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=it.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(rt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(Array.isArray(i)&&i||[]).map((t=>({div:t})));r(9,gt=t.map(((t,e)=>rt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];gt.forEach((e=>{t.push(rt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,st=pe(t,(t=>[...t]))),q(),q=h(st,(t=>r(48,N=t)))}if(4&t.$$.dirty[0]|524288&t.$$.dirty[1]&&r(2,ct=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(O,ct)),262144&t.$$.dirty[1]&&r(35,$="wrap"===I),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(36,_="horizontal"!==ct&&!$&&N.some(cr)),4&t.$$.dirty[0]|131088&t.$$.dirty[1]&&r(37,b="vertical"!==ct&&!$&&N.some(dr)),8&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(3,dt=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(S,dt)),2064&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(4,ut=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(P,F,ut)),1610612772&t.$$.dirty[0]|16385&t.$$.dirty[1])if((null==D?void 0:D.style)&&"overlap"!==ct&&pr()){const t=ur(D.style,Fr,(null==ht?void 0:ht.style)||null);r(5,ht=t?{show_at_start:Boolean(null!==r(29,Y=D.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,Z=D.show_at_end)&&void 0!==Z&&Z),show_between:Boolean(null===r(31,Q=D.show_between)||void 0===Q||Q),style:t,margins:ar(D.margins)}:null)}else r(5,ht=null);if(68&t.$$.dirty[0]|8206&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==ct&&pr()){const t=ur(V.style,Fr,(null==pt?void 0:pt.style)||null);r(6,pt=t?{show_at_start:Boolean(null!==r(32,tt=V.show_at_start)&&void 0!==tt&&tt),show_at_end:Boolean(null!==r(33,et=V.show_at_end)&&void 0!==et&&et),show_between:Boolean(null===r(34,nt=V.show_between)||void 0===nt||nt),style:t,margins:ar(V.margins)}:null)}else r(6,pt=null);if(100&t.$$.dirty[0]&&r(14,w=ht||pt?function(t,e,n){const r={};return sr(r,e,"vertical"===t),sr(r,n,"horizontal"===t),r}(ct,ht,pt):null),4096&t.$$.dirty[1]){const t=null==j?void 0:j.ratio;t&&un(t)?r(7,lt=t):r(7,lt=void 0)}if(414&t.$$.dirty[0]|3184&t.$$.dirty[1]){let t={};"overlap"===ct&&(t.overlapParent=!0),"horizontal"!==ct&&(t.parentHAlign=$?"start":Vr[ut]),"vertical"!==ct&&(t.parentVAlign=$?"start":Dr[dt]),lt||b||A&&"wrap_content"!==A.type&&("match_parent"!==A.type||!(null==ot?void 0:ot.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!_&&("wrap_content"===(null==C?void 0:C.type)||"match_parent"===(null==C?void 0:C.type)&&(null==ot?void 0:ot.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ct&&(t.parentContainerOrientation="horizontal"),"vertical"===ct&&(t.parentContainerOrientation="vertical"),$&&(t.parentContainerWrap=!0),r(8,ft=qe(t,ft))}28&t.$$.dirty[0]|528&t.$$.dirty[1]&&r(13,x={orientation:ct,valign:dt,halign:ut,wrap:$,overflow:!1===E||0===E?"visible":void 0}),228&t.$$.dirty[0]&&r(10,k={gap:ht||pt?lr(ct,ht,pt):void 0,"aspect-ratio":lt})},[rt,ot,ct,dt,ut,ht,pt,lt,ft,gt,k,F,st,x,w,y,v,m,g,f,u,d,c,l,s,a,at,function(t){r(0,rt=Object.assign(Object.assign({},rt),{json:Object.assign(Object.assign({},rt.json),{items:t.filter(Ce)})}))},X,Y,Z,Q,tt,et,nt,$,_,b,i,o,E,C,A,j,V,D,P,S,N,I,O,T]}const Nr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Ir(t,e){return"vertical"===t||"horizontal"===t?t:e}function Or(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Nr.separator__inner),q(e,"style",r=$e(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n&&r!==(r=$e(t[3]))&&q(e,"style",r)},d(t){t&&M(e)}}}function Tr(t){let e,n=t[4]&&Or(t);return{c(){n&&n.c(),e=W()},l(t){n&&n.l(t),e=W()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=Or(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Mr(t){let e,n;return e=new Pn({props:{cls:Me("separator",Nr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Tr]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Me("separator",Nr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),8216&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function zr(t,e,r){let o,i,a,s,l,c,d,u,p=n;t.$$.on_destroy.push((()=>p()));let{componentContext:f}=e,{layoutParams:g}=e,m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,f=t.componentContext),"layoutParams"in t&&r(1,g=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&r(10,o=f.origJson),1024&t.$$.dirty&&o&&(r(6,m="horizontal"),r(7,v="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,i=f.getDerivedFromVars(f.json.delimiter_style)),p(),p=h(i,(t=>r(11,u=t)))),2112&t.$$.dirty&&r(6,m=Ir(null==u?void 0:u.orientation,m)),2048&t.$$.dirty&&r(4,a=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),2176&t.$$.dirty&&r(7,v=xe(null==u?void 0:u.color,1,v)),64&t.$$.dirty&&r(9,s="horizontal"===m?"100%":_e(1)),64&t.$$.dirty&&r(8,l="horizontal"===m?_e(1):"100%"),896&t.$$.dirty&&r(3,c={background:v,width:s,height:l}),64&t.$$.dirty&&r(2,d={orientation:m})},[f,g,d,c,a,i,m,v,l,s,o,u]}const Rr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Br(t){return t.startsWith("data:")?Ee(t):"data:image/jpg;base64,".concat(Ee(t))}function Lr(t){let e,n;return e=new Pn({props:{cls:Me("image",Rr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[qr]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Me("image",Rr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),67110780&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ur(t){let e,n,r,o,i,a,l,c;return{c(){e=R("img"),this.h()},l(t){e=et(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){q(e,"class",n=Rr.image__image),d(e.src,r=t[3]===Kr?Gr:t[4])||q(e,"src",r),q(e,"loading",o=t[26]?"eager":"lazy"),q(e,"decoding","async"),q(e,"style",i=$e(t[8])),q(e,"alt",t[10]),q(e,"aria-hidden",a=t[10]?null:"true")},m(n,r){T(n,e,r),t[63](e),l||(c=[H(e,"load",t[28]),H(e,"error",t[29])],l=!0)},p(t,n){24&n[0]&&!d(e.src,r=t[3]===Kr?Gr:t[4])&&q(e,"src",r),67108864&n[0]&&o!==(o=t[26]?"eager":"lazy")&&q(e,"loading",o),256&n[0]&&i!==(i=$e(t[8]))&&q(e,"style",i),1024&n[0]&&q(e,"alt",t[10]),1024&n[0]&&a!==(a=t[10]?null:"true")&&q(e,"aria-hidden",a)},d(n){n&&M(e),t[63](null),l=!1,s(c)}}}function Wr(t){let e,n,r,o,i,a,l,c,u,h,p="".concat(t[5],"%");return{c(){e=R("span"),n=R("img"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var r=Y(e);n=et(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(M),this.h()},h(){q(n,"class",r=Rr.image__image),d(n.src,o=t[3]===Kr?Gr:t[4])||q(n,"src",o),q(n,"loading",i=t[26]?"eager":"lazy"),q(n,"decoding","async"),q(n,"style",a=$e(t[8])),q(n,"alt",t[10]),q(n,"aria-hidden",l=t[10]?null:"true"),q(e,"class",c=Rr["image__aspect-wrapper"]),lt(e,"padding-bottom",p)},m(r,o){T(r,e,o),I(e,n),t[62](n),u||(h=[H(n,"load",t[28]),H(n,"error",t[29])],u=!0)},p(t,r){24&r[0]&&!d(n.src,o=t[3]===Kr?Gr:t[4])&&q(n,"src",o),67108864&r[0]&&i!==(i=t[26]?"eager":"lazy")&&q(n,"loading",i),256&r[0]&&a!==(a=$e(t[8]))&&q(n,"style",a),1024&r[0]&&q(n,"alt",t[10]),1024&r[0]&&l!==(l=t[10]?null:"true")&&q(n,"aria-hidden",l),32&r[0]&&p!==(p="".concat(t[5],"%"))&&lt(e,"padding-bottom",p)},d(n){n&&M(e),t[62](null),u=!1,s(h)}}}function Hr(t){let e;function n(t,e){return t[9].aspect?Wr:Ur}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function qr(t){let e,n=t[6],r=Hr(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){64&o[0]&&u(n,n=t[6])?(r.d(1),r=Hr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&M(e),r.d(t)}}}function Jr(t){let e,n,r=!t[7]&&Lr(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[7]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),128&n[0]&&qt(r,1)):(r=Lr(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Gr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Kr=2;function Xr(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U=n,W=n,H=n,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n;t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt()));let{componentContext:ot}=e,{layoutParams:it}=e;const at=kt(ge),st=at.direction;let lt;p(t,st,(t=>r(48,j=t)));let ct,dt,ut=0,ht=!1,pt="rgba(0,0,0,0.08)",ft=!1,gt="",mt="none",vt="50% 50%",yt="0",$t="source_in",_t="",bt="",xt=0,Et=0,Ct=0,jt="",Vt="",Dt=!1;return wt((()=>{at.removeSvgFilter(dt,$t)})),t.$$set=t=>{"componentContext"in t&&r(0,ot=t.componentContext),"layoutParams"in t&&r(1,it=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(46,o=ot.origJson),32768&t.$$.dirty[1]&&o&&(r(33,mt="none"),r(34,vt="50% 50%"),r(36,$t="source_in")),1&t.$$.dirty[0]&&(r(25,i=ot.getDerivedFromVars(ot.json.image_url)),et(),et=h(i,(t=>r(60,R=t)))),1&t.$$.dirty[0]&&(r(24,a=ot.getDerivedFromVars(ot.json.gif_url)),nt(),nt=h(a,(t=>r(61,B=t)))),1&t.$$.dirty[0]&&(r(23,s=ot.getDerivedFromVars(ot.json.width)),tt(),tt=h(s,(t=>r(59,z=t)))),1&t.$$.dirty[0]&&(r(22,l=ot.getDerivedFromVars(ot.json.height)),Q(),Q=h(l,(t=>r(58,M=t)))),1&t.$$.dirty[0]&&(r(21,c=ot.getDerivedFromVars(ot.json.preview)),Z(),Z=h(c,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(20,d=ot.getDerivedFromVars(ot.json.placeholder_color)),Y(),Y=h(d,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(19,u=ot.getDerivedFromVars(ot.json.scale)),X(),X=h(u,(t=>r(55,I=t)))),1&t.$$.dirty[0]&&(r(18,f=ot.getDerivedFromVars({content_alignment_horizontal:ot.json.content_alignment_horizontal,content_alignment_vertical:ot.json.content_alignment_vertical})),K(),K=h(f,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(17,g=ot.getDerivedFromVars(ot.json.accessibility)),G(),G=h(g,(t=>r(53,S=t)))),1&t.$$.dirty[0]&&(r(16,m=ot.getDerivedFromVars(ot.json.aspect)),J(),J=h(m,(t=>r(52,P=t)))),1&t.$$.dirty[0]&&(r(15,v=ot.getDerivedFromVars(ot.json.tint_color)),q(),q=h(v,(t=>r(51,F=t)))),1&t.$$.dirty[0]&&(r(14,y=ot.getDerivedFromVars(ot.json.tint_mode)),H(),H=h(y,(t=>r(50,D=t)))),1&t.$$.dirty[0]&&(r(13,$=ot.getDerivedFromVars(ot.json.appearance_animation)),W(),W=h($,(t=>r(49,V=t)))),1&t.$$.dirty[0]&&(r(12,_=ot.getDerivedFromVars(ot.json.filters)),U(),U=h(_,(t=>r(47,A=t)))),1&t.$$.dirty[0]&&(r(11,b=ot.getDerivedFromVars(ot.json.preload_required)),rt(),rt=h(b,(t=>r(26,L=t)))),1073741825&t.$$.dirty[0]|1610612736&t.$$.dirty[1]){let t="gif"===ot.json.type?B:R;r(30,ht="empty://"===t),ht&&(t=Gr),r(4,ct=t)}if(16&t.$$.dirty[0]&&r(3,ut=0),17&t.$$.dirty[0]&&(ct?r(7,ft=!1):(r(7,ft=!0),ot.logError(me(new Error('Missing "'.concat("gif"===ot.json.type?"gif_url":"image_url",'" for "').concat(ot.json.type,'"')))))),268435456&t.$$.dirty[1]&&r(45,w="wrap_content"===(null==z?void 0:z.type)),134217728&t.$$.dirty[1]&&r(44,x="wrap_content"===(null==M?void 0:M.type)),1073741832&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(32,gt=(0===ut||ut===Kr||ht)&&T?'url("'.concat(Br(T),'")'):""),1073741832&t.$$.dirty[0]|33554433&t.$$.dirty[1]&&r(31,pt=0===ut||ut===Kr||ht?xe(O,1,pt):""),16777220&t.$$.dirty[1]&&r(33,mt=De(I)||mt),8388608&t.$$.dirty[1]&&r(34,vt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:Fe({content_alignment_horizontal:r,content_alignment_vertical:o})}(N,j,vt)),4194304&t.$$.dirty[1]&&r(10,k=(null==S?void 0:S.description)||""),2097152&t.$$.dirty[1]){const t=null==P?void 0:P.ratio;t&&un(t)?r(5,yt=(100/Number(t)).toFixed(2)):r(5,yt="0")}if(1572912&t.$$.dirty[1]){const t=F?xe(F):void 0,e=Hn(D,$t);t===dt&&e===$t||(at.removeSvgFilter(dt,$t),r(6,_t=t?at.addSvgFilter(t,e):""),r(35,dt=t),r(36,$t=e))}if(262144&t.$$.dirty[1]&&V&&"fade"===V.type){const t=V;r(37,bt=Je(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(40,Ct=Ne(t.duration,300)),r(39,Et=Ne(t.start_delay,0)),r(38,xt=Ne(t.alpha,0))}if(1&t.$$.dirty[0]|196608&t.$$.dirty[1]){let t="",e="";Array.isArray(A)&&A.length&&(t=hn(A,ot.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(41,jt=t),r(42,Vt=e),r(43,Dt="rtl"===j&&Array.isArray(A)&&A.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|28736&t.$$.dirty[1]&&r(9,E={aspect:"0"!==yt,"is-width-content":w,"is-height-content":x,loaded:1===ut,"before-appearance":Boolean(bt)&&0===ut,"is-rtl-mirror":Dt}),72&t.$$.dirty[0]|4047&t.$$.dirty[1]&&r(8,C={"background-image":gt,"background-color":gt?void 0:pt,"background-size":mt,"clip-path":Vt||void 0,"object-fit":mt,"object-position":vt,filter:[1===ut&&_t?"url(#".concat(_t,")"):"",jt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":bt||void 0,"--divkit-appearance-fade-start":bt?xt:void 0,"--divkit-appearance-delay":bt?"".concat(Et,"ms"):void 0,"--divkit-appearance-duration":bt?"".concat(Ct,"ms"):void 0})},[ot,it,lt,ut,ct,yt,_t,ft,C,E,k,b,_,$,y,v,m,g,f,u,d,c,l,s,a,i,L,st,function(){0===ut&&r(3,ut=1)},function(){0===ut&&r(3,ut=Kr)},ht,pt,gt,mt,vt,dt,$t,bt,xt,Et,Ct,jt,Vt,Dt,x,w,o,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,function(t){At[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))},function(t){At[t?"unshift":"push"]((()=>{lt=t,r(2,lt),r(0,ot),r(61,B),r(60,R),r(30,ht)}))}]}const Yr=class extends de{constructor(t){super(),le(this,t,Xr,Jr,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Zr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Qr(t){return t>0&&t<1}function to(t){return String(Math.ceil(1e3*t)/1e3)}function eo(t,e,n){if(t.some(Qr)){const e=Math.max(...t.filter(Qr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(_e(r*t[e]/o),",").concat(to(t[e]),"fr)"):t[e]?i[e]="".concat(to(t[e]),"fr"):i[e]="auto";return i.join(" ")}function no(t,e,n){const r=t.slice();return r[31]=e[n],r}function ro(t){let e,n;return e=new Pn({props:{cls:Me("grid",Zr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(so),replaceItems:t[12],$$slots:{default:[io]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Me("grid",Zr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(so)),16&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function oo(t){let e,n;return e=new Ls({props:{componentContext:t[31].componentContext,layoutParams:t[31].layoutParams}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[31].componentContext),16&n[0]&&(r.layoutParams=t[31].layoutParams),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function io(t){let e,n,r=Xt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=oo(no(t,r,e));const i=t=>Jt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=Xt(t[4]),a=0;a<r.length;a+=1){const i=no(t,r,a);o[a]?(o[a].p(i,n),qt(o[a],1)):(o[a]=oo(i),o[a].c(),qt(o[a],1),o[a].m(e.parentNode,e))}for(Wt(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)qt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Jt(o[t]);n=!1},d(t){t&&M(e),z(o,t)}}}function ao(t){let e,n,r=!t[5]&&ro(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[5]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),32&n[0]&&qt(r,1)):(r=ro(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const so=t=>t.json;function lo(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_=n,b=n,w=n,x=n;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{componentContext:k}=e,{layoutParams:E}=e;const C=kt(ge).direction;p(t,C,(t=>r(24,g=t)));let A,j,V=1,D=[],F=[],P=[],S=[],N=0,I=!1,O="start",T="start";return t.$$set=t=>{"componentContext"in t&&r(0,k=t.componentContext),"layoutParams"in t&&r(1,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(23,o=k.origJson),8388608&t.$$.dirty[0]&&o&&(r(13,V=1),r(20,O="start"),r(21,T="start")),1&t.$$.dirty[0]&&r(22,i=Array.isArray(k.json.items)&&k.json.items||[]),1&t.$$.dirty[0]&&(r(10,a=k.getDerivedFromVars(k.json.column_count)),x(),x=h(a,(t=>r(28,$=t)))),1&t.$$.dirty[0]&&(r(9,s=k.getDerivedFromVars(k.json.content_alignment_vertical)),b(),b=h(s,(t=>r(26,v=t)))),1&t.$$.dirty[0]&&(r(8,l=k.getDerivedFromVars(k.json.content_alignment_horizontal)),_(),_=h(l,(t=>r(25,m=t)))),268443648&t.$$.dirty[0]&&r(13,V=Nn($,V)),4194305&t.$$.dirty[0]&&r(2,c=i.map(((t,e)=>k.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];c.forEach((e=>{t.push(k.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,A=pe(t,(t=>[...t]))),w(),w=h(A,(t=>r(27,y=t)))}if(134471685&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,F=[]),r(16,P=[]),r(17,S=[]),r(19,I=!1),r(4,j=c.map(((o,i)=>{var a,s,l,c;const d=y[i],u=Number(d.columnSpan)||1,h=Number(d.rowSpan)||1,p={x:e,y:n,colSpan:u,rowSpan:h},f="match_parent"===(null===(a=d.width)||void 0===a?void 0:a.type)?Number(d.width.weight||1)/u:0,g="match_parent"===(null===(s=d.height)||void 0===s?void 0:s.type)?Number(d.height.weight||1)/h:0,m=1===u&&"fixed"===(null===(l=d.width)||void 0===l?void 0:l.type)&&d.width.value?Number(d.width.value)/u:0,v=1===h&&"fixed"===(null===(c=d.height)||void 0===c?void 0:c.type)&&d.height.value?Number(d.height.value)/h:0;for(let o=e;o<e+u;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?(r(19,I=!0),k.logError(me(new Error("No space for item at index ".concat(i))))):(t[o+"_"+e]=!0,(!D[o]||D[o]<f)&&r(14,D[o]=f,D),(!F[e]||F[e]<g)&&r(15,F[e]=g,F),(!P[o]||P[o]<m)&&r(16,P[o]=m,P),(!S[e]||S[e]<v)&&r(17,S[e]=v,S));do{++e,e>=V&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:p}}}))),r(18,N=n)}68157440&t.$$.dirty[0]&&r(20,O=Un(v,O)),52428800&t.$$.dirty[0]&&r(21,T=Ln(m,g,T)),3145728&t.$$.dirty[0]&&r(7,d={valign:O,halign:T}),516096&t.$$.dirty[0]&&r(6,u={"grid-template-columns":eo(D,P,V),"grid-template-rows":eo(F,S,N)}),524288&t.$$.dirty[0]&&r(5,f=I)},[k,E,c,A,j,f,u,d,l,s,a,C,function(t){r(0,k=Object.assign(Object.assign({},k),{json:Object.assign(Object.assign({},k.json),{items:t.filter(Ce)})}))},V,D,F,P,S,N,I,O,T,i,o,g,m,v,y,$]}const co={gallery:"divkit-cbb0f",gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},uo={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function ho(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}function po(t,e){let n=t%e;return n<0&&(n+=e),n}const{Boolean:fo}=A;function go(t,e,n){const r=t.slice();return r[78]=e[n],r[79]=e,r[80]=n,r}function mo(t,e,n){const r=t.slice();return r[81]=e[n],r}function vo(t){let e,n;return e=new Ls({props:{componentContext:t[81],layoutParams:t[6]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[81]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function yo(t){let e,n,r,o,i,a=t[80],s=Xt(t[78]),l=[];for(let e=0;e<s.length;e+=1)l[e]=vo(mo(t,s,e));const c=t=>Jt(l[t],1,1,(()=>{l[t]=null})),d=()=>t[64](e,a),u=()=>t[64](null,a);return{c(){e=R("div");for(let t=0;t<l.length;t+=1)l[t].c();n=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=Y(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=ot(r),r.forEach(M),this.h()},h(){q(e,"class",r=co.gallery__items),q(e,"style",o=$e(t[14]))},m(t,r){T(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);I(e,n),d(),i=!0},p(r,h){if(t=r,65600&h[0]){let r;for(s=Xt(t[78]),r=0;r<s.length;r+=1){const o=mo(t,s,r);l[r]?(l[r].p(o,h),qt(l[r],1)):(l[r]=vo(o),l[r].c(),qt(l[r],1),l[r].m(e,n))}for(Wt(),r=s.length;r<l.length;r+=1)c(r);Ht()}(!i||16384&h[0]&&o!==(o=$e(t[14])))&&q(e,"style",o),a!==t[80]&&(u(),a=t[80],d())},i(t){if(!i){for(let t=0;t<s.length;t+=1)qt(l[t]);i=!0}},o(t){l=l.filter(fo);for(let t=0;t<l.length;t+=1)Jt(l[t]);i=!1},d(t){t&&M(e),z(l,t),u()}}}function $o(t){let e,n,r=t[10]&&t[7]&&_o(t),o=t[11]&&t[7]&&bo(t);return{c(){r&&r.c(),e=U(),o&&o.c(),n=W()},l(t){r&&r.l(t),e=ot(t),o&&o.l(t),n=W()},m(t,i){r&&r.m(t,i),T(t,e,i),o&&o.m(t,i),T(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=_o(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=bo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(M(e),M(n)),r&&r.d(t),o&&o.d(t)}}}function _o(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=co["gallery__arrow-icon-path"]),q(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[29]||"".concat(co.gallery__arrow," ").concat(uo.arrow," ").concat(uo.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[67]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function bo(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=co["gallery__arrow-icon-path"]),q(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[30]||"".concat(co.gallery__arrow," ").concat(uo.arrow," ").concat(uo.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[68]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function wo(t){let e,n,r,o,i,a,s,c,d,u,h,p=Xt(t[16]),f=[];for(let e=0;e<p.length;e+=1)f[e]=yo(go(t,p,e));const g=t=>Jt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[4]&&$o(t);return{c(){e=R("div"),n=R("div");for(let t=0;t<f.length;t+=1)f[t].c();s=U(),m&&m.c(),c=W(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=Y(e);n=et(r,"DIV",{class:!0,style:!0});var o=Y(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(M),r.forEach(M),s=ot(t),m&&m.l(t),c=W(),this.h()},h(){q(n,"class",r=co["gallery__items-grid"]),q(n,"style",o=$e(t[15])),q(e,"class",i=co.gallery__scroller+" "+(t[27]?fe["root_restrict-scroll"]:"")),q(e,"style",a=$e(t[5]))},m(r,o){T(r,e,o),I(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[65](n),t[66](e),T(r,s,o),m&&m.m(r,o),T(r,c,o),d=!0,u||(h=H(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),u=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(p=Xt(t[16]),e=0;e<p.length;e+=1){const r=go(t,p,e);f[e]?(f[e].p(r,s),qt(f[e],1)):(f[e]=yo(r),f[e].c(),qt(f[e],1),f[e].m(n,null))}for(Wt(),e=p.length;e<f.length;e+=1)g(e);Ht()}(!d||32768&s[0]&&o!==(o=$e(t[15])))&&q(n,"style",o),(!d||134217728&s[0]&&i!==(i=co.gallery__scroller+" "+(t[27]?fe["root_restrict-scroll"]:"")))&&q(e,"class",i),(!d||32&s[0]&&a!==(a=$e(t[5])))&&q(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=$o(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!d){for(let t=0;t<p.length;t+=1)qt(f[t]);d=!0}},o(t){f=f.filter(fo);for(let t=0;t<f.length;t+=1)Jt(f[t]);d=!1},d(n){n&&(M(e),M(s),M(c)),z(f,n),t[65](null),t[66](null),m&&m.d(n),u=!1,h()}}}function xo(t){let e,n,r,o;return e=new Pn({props:{cls:Me("gallery",co,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[wo]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(i,a){ae(e,i,a),n=!0,r||(o=H(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Me("gallery",co,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|4194304&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t),r=!1,o()}}}function ko(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n,G=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:K}=e,{layoutParams:X}=e;const Y=kt(ge),Z=Y.direction;let Q;p(t,Z,(t=>r(52,E=t)));let tt,et=[],nt=!1,rt=!1,ot=null,it=!1;const at=Y.getCustomization("galleryLeftClass"),st=Y.getCustomization("galleryRightClass");let lt,ct,dt,ut,ht,pt=1,ft="horizontal",gt="start",mt=8,vt="",yt=[],$t={},bt=!1,xt={},Et=0;const Ct=Y.isDesktop;function jt(){if(!Q)return;let t=Q.scrollLeft;"rtl"===E&&(t*=-1);const e=Q.scrollWidth,n=Q.offsetWidth;"ltr"===E?(r(10,nt=t>2),r(11,rt=t+n<e-2)):(r(11,rt=t>2),r(10,nt=t+n<e-2))}p(t,Ct,(t=>r(63,O=t)));const Vt=qn(jt,50);function Dt(t){Q.scroll({left:Q.scrollLeft+.75*Q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Ft(){let t=[],e=et[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<pt;++e){const r=et[e].children[n];r&&t.push(r)}return t}function Pt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===ft?"left":"top";Q.scroll({[n]:t,behavior:e})}function St(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ft,o=r?"offsetLeft":"offsetTop",i=t[e];if(i){let t;if("ltr"!==E&&r){const e=Q.offsetWidth;t=i[o]+i.offsetWidth+.01-mt/2-e}else t=i[o]+.01-mt/2;Pt(t,n)}}function Nt(t){const e=Ft(),n=Q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ft?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===ft?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return _t((()=>{r(37,it=!0),jt(),Et&&St(Ft(),Et,"auto")})),wt((()=>{r(37,it=!1),lt&&!K.fakeElement&&(Y.unregisterInstance(lt),r(38,lt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,K=t.componentContext),"layoutParams"in t&&r(1,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(51,o=K.origJson),1048576&t.$$.dirty[1]&&o&&(r(39,pt=1),r(4,ft="horizontal"),r(40,gt="start"),r(42,mt=8),r(45,vt="")),1&t.$$.dirty[0]&&r(8,i=Array.isArray(K.json.items)&&K.json.items||[]),1&t.$$.dirty[0]&&(r(26,a=K.getDerivedFromVars(K.json.column_count)),J(),J=h(a,(t=>r(62,I=t)))),1&t.$$.dirty[0]&&(r(25,s=K.getDerivedFromVars(K.json.orientation)),q(),q=h(s,(t=>r(61,N=t)))),1&t.$$.dirty[0]&&(r(24,l=K.getDerivedFromVars(K.json.cross_content_alignment)),H(),H=h(l,(t=>r(60,S=t)))),1&t.$$.dirty[0]&&(r(23,c=K.getDerivedFromVars(K.json.item_spacing)),W(),W=h(c,(t=>r(59,P=t)))),1&t.$$.dirty[0]&&(r(22,d=K.getDerivedFromVars(K.json.cross_spacing)),U(),U=h(d,(t=>r(58,F=t)))),1&t.$$.dirty[0]&&(r(21,u=K.getDerivedFromVars(K.json.paddings)),L(),L=h(u,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(20,f=K.getDerivedFromVars(K.json.scroll_mode)),R(),R=h(f,(t=>r(55,j=t)))),1&t.$$.dirty[0]&&(r(19,g=K.getDerivedFromVars(K.json.restrict_parent_scroll)),G(),G=h(g,(t=>r(27,T=t)))),1&t.$$.dirty[0]&&(r(18,m=K.getDerivedFromVars(K.json.scrollbar)),z(),z=h(m,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(17,v=K.getDerivedFromVars(K.json.default_item)),M(),M=h(v,(t=>r(53,C=t)))),257&t.$$.dirty[0]&&r(50,y=i.map(((t,e)=>K.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(7,$=O&&it),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&($?"undefined"!=typeof ResizeObserver&&(r(36,ot=new ResizeObserver((()=>{Vt()}))),ot.observe(tt)):ot&&(ot.disconnect(),r(36,ot=null))),256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(39,pt=Nn(I,pt)),524544&t.$$.dirty[1]&&r(16,_=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(y,pt)),16&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(4,ft=Ir(N,ft)),536871424&t.$$.dirty[1]&&r(40,gt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(S,gt)),268437504&t.$$.dirty[1]&&(r(42,mt=Ne(P,mt)),r(41,ct=_e(mt))),134227968&t.$$.dirty[1]&&(r(44,ut=Ne(F,mt)),r(43,dt=_e(ut))),69222400&t.$$.dirty[1]&&r(45,vt=Ue(D,E,vt)),16&t.$$.dirty[0]&&r(49,b="horizontal"===ft?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];y.forEach((e=>{const n="horizontal"===ft?"width":"height";t.push(K.getDerivedFromVars(e.json[n]))})),r(12,ht=pe(t,(t=>t))),B(),B=h(ht,(t=>r(56,V=t)))}if(16&t.$$.dirty[0]|33587456&t.$$.dirty[1]&&(r(46,yt=[]),pt>1?yt.push("auto"):V.forEach((t=>{!t&&"horizontal"===ft||"match_parent"===(null==t?void 0:t.type)?yt.push("100%"):yt.push("max-content")}))),112&t.$$.dirty[0]|16780032&t.$$.dirty[1]){const t={};let e={};r(47,bt=!1),"horizontal"===ft?e.parentVAlign=gt:e.parentHAlign=gt,"paging"===j&&(r(47,bt=!0),e.scrollSnap="start",t["horizontal"===ft?"scroll-padding-left":"scroll-padding-top"]=_e(mt/2)),1===pt&&(e.parentLayoutOrientation=ft),r(5,$t=qe(t,$t)),r(6,xt=qe(e,xt))}20480&t.$$.dirty[1]&&r(15,w={padding:vt,"grid-gap":dt}),295936&t.$$.dirty[1]&&r(14,x={"grid-gap":ct,[b]:ho(yt)}),16&t.$$.dirty[0]|8454144&t.$$.dirty[1]&&r(13,k={orientation:ft,"scroll-snap":bt,scrollbar:"auto"===A?"auto":"none"}),4325376&t.$$.dirty[1]&&r(48,Et=Ne(C,Et)),1&t.$$.dirty[0]&&K.json&&Vt(),21&t.$$.dirty[0]|2097280&t.$$.dirty[1]&&K.json&&(lt&&(Y.unregisterInstance(lt),r(38,lt=void 0)),K.json.id&&!K.fakeElement&&(r(38,lt=K.json.id),Y.registerInstance(lt,{setCurrentItem(t){const e=Ft();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');St(e,t)},setPreviousItem(t,e){const n=Nt("prev"),r=Ft();let o=n-t;o<0&&(o="ring"===e?po(o,r.length):0),St(r,o)},setNextItem(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft*r+Q.offsetWidth===Q.scrollWidth:Q.scrollTop+Q.offsetHeight===Q.scrollHeight,i=Ft();if(o&&"ring"===e)return void St(i,0);let a=Nt("next")+t;a>i.length-1&&(a="ring"===e?po(a,i.length):i.length-1),St(i,a)},scrollToStart(){Pt(0)},scrollToEnd(){Pt("ltr"===E||"horizontal"!==ft?1e6:-1e6)},scrollBackward(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r-t;a<0&&("clamp"===e?a=0:"ring"===e&&(a=po(a,i))),Pt(a*r)},scrollForward(t,e){const n="horizontal"===ft,r="ltr"!==E&&n?-1:1,o=n?Q.scrollLeft:Q.scrollTop,i=n?Q.scrollWidth-Q.offsetWidth:Q.scrollHeight-Q.offsetHeight;let a=o*r+t;a>i&&("clamp"===e?a=i:"ring"===e&&(a=po(a,i))),Pt(a*r)},scrollToPosition(t){Pt("ltr"===E||"horizontal"!==ft?t:-t)}})))},[K,X,Q,tt,ft,$t,xt,$,i,et,nt,rt,ht,k,x,w,_,v,m,g,f,u,d,c,l,s,a,T,Z,at,st,function(t){r(0,K=Object.assign(Object.assign({},K),{json:Object.assign(Object.assign({},K.json),{items:t.filter(Ce)})}))},Ct,jt,Vt,Dt,ot,it,lt,pt,gt,ct,mt,dt,ut,vt,yt,bt,Et,b,y,o,E,C,A,j,V,D,F,P,S,N,I,O,function(t,e){At[t?"unshift":"push"]((()=>{et[e]=t,r(9,et)}))},function(t){At[t?"unshift":"push"]((()=>{tt=t,r(3,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},()=>Dt("left"),()=>Dt("right")]}const Eo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306","tabs_height-parent_yes":"divkit-ae594",tabs__separator:"divkit-b85bf"},Co=37,Ao=39,jo=36,Vo=35,{Boolean:Do}=A;function Fo(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[29][r[94]];return r[95]=i,r}function Po(t,e,n){const r=t.slice();r[93]=e[n];const o=r[93].index;r[94]=o;const i=r[94]===r[15];return r[98]=i,r}function So(t){let e,n;return e=new Pn({props:{cls:Me("tabs",Eo,t[22]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[42],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[zo]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Me("tabs",Eo,t[22])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2048&n[1]&&(r.parentOf=t[42]),2143289337&n[0]|4099&n[1]|256&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function No(t){let e,n=t[93].title+"";return{c(){e=L(n)},l(t){e=rt(t,n)},m(t,n){T(t,e,n)},p(t,r){65536&r[0]&&n!==(n=t[93].title+"")&&at(e,n)},d(t){t&&M(e)}}}function Io(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[69](t[94],...n)}return e=new cn({props:{componentContext:t[0],cls:Me("tabs__item",Eo,{selected:t[98],actionable:Boolean(t[93].title_click_action)}),actions:t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Ze):[],attrs:{id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[No]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Me("tabs__item",Eo,{selected:t[98],actionable:Boolean(t[93].title_click_action)})),65537&o[0]&&(i.actions=t[93].title_click_action&&!t[0].fakeElement?[t[93].title_click_action].filter(Ze):[]),98305&o[0]&&(i.attrs={id:"".concat(t[45],"-tab-").concat(t[94]),"aria-controls":"".concat(t[45],"-panel-").concat(t[94]),role:"tab",tabindex:t[98]&&!t[0].fakeElement?t[93].title_click_action?void 0:"0":"-1","aria-selected":t[98]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|256&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Oo(t){let e,n,r;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Eo.tabs__separator),q(e,"style",r=$e(t[32]))},m(t,n){T(t,e,n)},p(t,n){2&n[1]&&r!==(r=$e(t[32]))&&q(e,"style",r)},d(t){t&&M(e)}}}function To(t){let e,n;return e=new Ls({props:{componentContext:t[95],layoutParams:t[3]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};536936448&n[0]&&(r.componentContext=t[95]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Mo(t){let e,n,r,o,i,a,s=t[95]&&To(t);return{c(){e=R("div"),s&&s.c(),n=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Y(e);s&&s.l(r),n=ot(r),r.forEach(M),this.h()},h(){q(e,"class",r=Me("tabs__panel",Eo,{visible:t[30][t[94]]})),q(e,"role","tabpanel"),q(e,"id",o=t[45]+"-panel-"+t[94]),q(e,"aria-labelledby",i=t[45]+"-tab-"+t[94]),lt(e,"left",100*t[94]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),I(e,n),a=!0},p(t,l){t[95]?s?(s.p(t,l),536936448&l[0]&&qt(s,1)):(s=To(t),s.c(),qt(s,1),s.m(e,n)):s&&(Wt(),Jt(s,1,1,(()=>{s=null})),Ht()),(!a||1073807360&l[0]&&r!==(r=Me("tabs__panel",Eo,{visible:t[30][t[94]]})))&&q(e,"class",r),(!a||65536&l[0]&&o!==(o=t[45]+"-panel-"+t[94]))&&q(e,"id",o),(!a||65536&l[0]&&i!==(i=t[45]+"-tab-"+t[94]))&&q(e,"aria-labelledby",i),(!a||65536&l[0])&&lt(e,"left",100*t[94]+"%")},i(t){a||(qt(s),a=!0)},o(t){Jt(s),a=!1},d(t){t&&M(e),s&&s.d()}}}function zo(t){let e,n,r,o,i,a,c,d,u,h,p,f=Xt(t[16]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Io(Po(t,f,e));const m=t=>Jt(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&Oo(t),y=Xt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Mo(Fo(t,y,e));const _=t=>Jt($[t],1,1,(()=>{$[t]=null}));return{c(){e=R("div");for(let t=0;t<g.length;t+=1)g[t].c();r=U(),v&&v.c(),o=U(),i=R("div"),a=R("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0});var n=Y(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(M),r=ot(t),v&&v.l(t),o=ot(t),i=et(t,"DIV",{class:!0});var s=Y(i);a=et(s,"DIV",{class:!0});var l=Y(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(M),s.forEach(M),this.h()},h(){q(e,"class",n=Eo.tabs__list+" "+(t[43]?fe["root_restrict-scroll"]:"")),q(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[14]?Re(t[14],t[17]):""),lt(e,"--divkit-tabs-font-size",_e(t[4])),lt(e,"--divkit-tabs-paddings",t[5]),lt(e,"--divkit-tabs-line-height",t[23]),lt(e,"--divkit-tabs-letter-spacing",t[24]),lt(e,"--divkit-tabs-active-font-weight",t[7]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[8]||""),lt(e,"--divkit-tabs-active-font-family",t[25]||""),lt(e,"--divkit-tabs-inactive-font-family",t[26]||""),lt(e,"--divkit-tabs-active-text-color",t[9]),lt(e,"--divkit-tabs-inactive-text-color",t[10]),lt(e,"--divkit-tabs-active-background-color",t[11]),lt(e,"--divkit-tabs-inactive-background-color",t[12]),lt(e,"--divkit-tabs-border-radius",t[6]),lt(e,"--divkit-tabs-items-spacing",t[13]?be(10*t[13]/t[4]):""),q(a,"class",c=Me("tabs__swiper",Eo,{inited:t[27],animated:t[28]})),q(i,"class",d=Eo.tabs__panels+" "+(t[43]?fe["root_restrict-scroll"]:""))},m(n,s){T(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[70](e),T(n,r,s),v&&v.m(n,s),T(n,o,s),T(n,i,s),I(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[71](a),t[72](i),u=!0,h||(p=[H(e,"keydown",t[49]),H(i,"touchstart",(function(){l(t[31]?t[50]:void 0)&&(t[31]?t[50]:void 0).apply(this,arguments)})),H(i,"touchmove",(function(){l(t[31]?t[51]:void 0)&&(t[31]?t[51]:void 0).apply(this,arguments)})),H(i,"touchend",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)})),H(i,"touchcancel",(function(){l(t[31]?t[52]:void 0)&&(t[31]?t[52]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,98305&s[0]|147456&s[1]){let n;for(f=Xt(t[16]),n=0;n<f.length;n+=1){const r=Po(t,f,n);g[n]?(g[n].p(r,s),qt(g[n],1)):(g[n]=Io(r),g[n].c(),qt(g[n],1),g[n].m(e,null))}for(Wt(),n=f.length;n<g.length;n+=1)m(n);Ht()}if((!u||4096&s[1]&&n!==(n=Eo.tabs__list+" "+(t[43]?fe["root_restrict-scroll"]:"")))&&q(e,"class",n),147456&s[0]&&lt(e,"--divkit-tabs-title-padding",t[14]?Re(t[14],t[17]):""),16&s[0]&&lt(e,"--divkit-tabs-font-size",_e(t[4])),32&s[0]&&lt(e,"--divkit-tabs-paddings",t[5]),8388608&s[0]&&lt(e,"--divkit-tabs-line-height",t[23]),16777216&s[0]&&lt(e,"--divkit-tabs-letter-spacing",t[24]),128&s[0]&&lt(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[8]||""),33554432&s[0]&&lt(e,"--divkit-tabs-active-font-family",t[25]||""),67108864&s[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[26]||""),512&s[0]&&lt(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&lt(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&lt(e,"--divkit-tabs-border-radius",t[6]),8208&s[0]&&lt(e,"--divkit-tabs-items-spacing",t[13]?be(10*t[13]/t[4]):""),t[18]?v?v.p(t,s):(v=Oo(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),1610678280&s[0]|16384&s[1]){let e;for(y=Xt(t[16]),e=0;e<y.length;e+=1){const n=Fo(t,y,e);$[e]?($[e].p(n,s),qt($[e],1)):($[e]=Mo(n),$[e].c(),qt($[e],1),$[e].m(a,null))}for(Wt(),e=y.length;e<$.length;e+=1)_(e);Ht()}(!u||402653184&s[0]&&c!==(c=Me("tabs__swiper",Eo,{inited:t[27],animated:t[28]})))&&q(a,"class",c),(!u||4096&s[1]&&d!==(d=Eo.tabs__panels+" "+(t[43]?fe["root_restrict-scroll"]:"")))&&q(i,"class",d)},i(t){if(!u){for(let t=0;t<f.length;t+=1)qt(g[t]);for(let t=0;t<y.length;t+=1)qt($[t]);u=!0}},o(t){g=g.filter(Do);for(let t=0;t<g.length;t+=1)Jt(g[t]);$=$.filter(Do);for(let t=0;t<$.length;t+=1)Jt($[t]);u=!1},d(n){n&&(M(e),M(r),M(o),M(i)),z(g,n),t[70](null),v&&v.d(n),z($,n),t[71](null),t[72](null),h=!1,s(p)}}}function Ro(t){let e,n,r=!t[2]&&So(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&qt(r,1)):(r=So(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Bo(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N=n,I=n,O=n,T=n,M=n,z=n,R=n,B=n,L=n;var U,W;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L()));let{componentContext:H}=e,{layoutParams:q}=e;const J=kt(ge),G=J.direction;p(t,G,(t=>r(17,A=t)));const K=J.genId("tabs");let X,Y=!1,Z=he([]);p(t,Z,(t=>r(16,k=t)));let Q,tt,et,nt,rt,ot,it,at,st,lt={},ct={},dt=12,ut="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t="",_t="",bt=0,xt="",Et="",Ct=null,jt=!1,Vt=!1,Dt=[],Ft=[],Pt=null,Nt=null,It=null,Ot=!1,Tt=!1;async function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ot=$,r(15,$=t),Wt(),r(28,Vt=!0),Bt(100*-$),Lt(),async function(){if("match_parent"===(null==x?void 0:x.type))return;await St();const t=document.getElementById("".concat(K,"-panel-").concat($));t&&r(20,tt.style.height=_e(t.offsetHeight),tt)}(),Ut(),st=-$*tt.clientWidth,e){await St();const t=Q.querySelector(".".concat(Eo.tabs__item_selected));t&&t.focus()}}function zt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==k?void 0:k.length;if(!n)return;const r=k.map((t=>t.index));let o=r.indexOf($)+t;o>=n?o=0:o<0&&(o=n-1),Mt(r[o],e)}function Rt(t,e){return $===e||(Mt(e),!1)}async function Bt(t){await St(),r(21,et.style.transform="translate3d(".concat(t,"%,0,0)"),et)}function Lt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,$-1):Math.min($,null!=ot?ot:$),n=t?Math.min(i.length-1,$+1):Math.max($,null!=ot?ot:$);r(29,Dt=Dt.map(((t,r)=>{var o;return t||(r>=e&&r<=n&&(null===(o=i[r])||void 0===o?void 0:o.div)?H.produceChildContext(i[r].div,{path:r}):void 0)}))),r(30,Ft=Ft.map(((t,r)=>r>=e&&r<=n)))}function Ut(){Pt&&clearTimeout(Pt),Pt=window.setTimeout((()=>{r(30,Ft=i.map(((t,e)=>e===$)))}),400)}function Wt(){jt||(r(27,jt=!0),r(20,tt.style.height=_e(tt.clientHeight),tt),r(21,et.style.transform="translate3d(".concat(100*-(null!=ot?ot:$),"%,0,0)"),et))}return wt((()=>{X&&(J.unregisterInstance(X),r(55,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,H=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(61,o=H.origJson),1073741824&t.$$.dirty[1]&&o&&(r(4,dt=12),r(5,ut=""),r(6,ft=""),r(7,nt=void 0),r(25,gt=""),r(8,rt=void 0),r(26,mt=""),r(9,vt=""),r(10,yt=""),r(11,$t=""),r(12,_t=""),r(13,bt=0),r(56,xt=""),r(57,Et=""),r(14,Ct=null)),1&t.$$.dirty[0]&&r(58,i=Array.isArray(H.json.items)&&H.json.items||[]),134217728&t.$$.dirty[1]&&r(42,a=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(41,s=H.getDerivedFromVars(H.json.width)),B(),B=h(s,(t=>r(68,P=t)))),1&t.$$.dirty[0]&&(r(40,l=H.getDerivedFromVars(H.json.height)),N(),N=h(l,(t=>r(62,x=t)))),1&t.$$.dirty[0]&&r(60,c=H.getJsonWithVars(H.json.selected_tab)),1&t.$$.dirty[0]&&(r(39,d=H.getDerivedFromVars(H.json.tab_title_style)),R(),R=h(d,(t=>r(67,F=t)))),1&t.$$.dirty[0]&&(r(38,u=H.getDerivedFromVars(H.json.has_separator)),z(),z=h(u,(t=>r(18,D=t)))),1&t.$$.dirty[0]&&(r(37,f=H.getDerivedFromVars(H.json.separator_color)),M(),M=h(f,(t=>r(66,V=t)))),1&t.$$.dirty[0]&&(r(36,g=H.getDerivedFromVars(H.json.separator_paddings)),T(),T=h(g,(t=>r(65,j=t)))),1&t.$$.dirty[0]&&(r(35,m=H.getDerivedFromVars(H.json.switch_tabs_by_content_swipe_enabled)),O(),O=h(m,(t=>r(64,C=t)))),1&t.$$.dirty[0]&&(r(34,v=H.getDerivedFromVars(H.json.restrict_parent_scroll)),L(),L=h(v,(t=>r(43,S=t)))),1&t.$$.dirty[0]&&(r(33,y=H.getDerivedFromVars(H.json.title_paddings)),I(),I=h(y,(t=>r(63,E=t)))),536870912&t.$$.dirty[1]&&r(15,$=c&&Number(c)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=H.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):H.logError(me(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),Z.set(t)}else Z.set([]);if(65537&t.$$.dirty[0]&&((null==k?void 0:k.length)?r(2,Y=!1):(r(2,Y=!0),H.logError(me(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|65&t.$$.dirty[2]){let t={parentContainerOrientation:"horizontal"};"wrap_content"===(null==P?void 0:P.type)&&(t.parentHorizontalWrapContent=!0),x&&"wrap_content"!==x.type||(t.parentVerticalWrapContent=!0),r(3,lt=qe(t,lt))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&($<0||$>=i.length)&&(H.logError(me(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab,length:i.length}})),r(15,$=$<0?0:i.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||k.some((t=>$===t.index))||(H.logError(me(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab}})),r(15,$=(null===r(53,U=k[0])||void 0===U?void 0:U.index)||0))),32&t.$$.dirty[2]&&r(59,_=F||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,dt=Nn(_.font_size,dt)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(_.font_size||_.paddings)){const t=_.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/dt*10,right:(Number("ltr"===A?t.end:t.start)||Number(t.right)||0)/dt*10,bottom:(Number(t.bottom)||0)/dt*10,left:(Number("ltr"===A?t.start:t.end)||Number(t.left)||0)/dt*10};r(5,ut=Ue(e,A,ut))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=_.line_height;void 0!==t&&un(t)&&r(23,ht=_e(t/dt*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=_.letter_spacing;void 0!==t&&Le(t)&&r(24,pt=_e(t/dt*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&(_.corner_radius||_.corners_radius||_.font_size)){const t=null!==r(54,W=_.corner_radius)&&void 0!==W?W:1e3;_.corners_radius?r(6,ft=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!Le(o[t]))return r;return Ye(t,e,n)}(_.corners_radius,t,dt,ft)):Le(t)&&r(6,ft=_e(t/dt*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,nt=On(_.active_font_weight||_.font_weight,nt)),_.font_family&&"string"==typeof _.font_family?r(25,gt=J.typefaceProvider(_.font_family,{fontWeight:nt||400})):r(25,gt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,rt=On(_.inactive_font_weight||_.font_weight,rt)),_.font_family&&"string"==typeof _.font_family?r(26,mt=J.typefaceProvider(_.font_family,{fontWeight:rt||400})):r(26,mt="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,vt=xe(_.active_text_color,1,vt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,yt=xe(_.inactive_text_color,1,yt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,$t=xe(_.active_background_color,1,$t)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,_t=xe(_.inactive_background_color,1,_t)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,bt=Ne(_.item_spacing,bt)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|24&t.$$.dirty[2]&&D&&(V&&r(56,xt=xe(V,1,xt)),j&&r(57,Et=Ue(j,A,Et))),100663296&t.$$.dirty[1]&&r(32,b={background:xt,margin:Et}),4&t.$$.dirty[2]&&r(31,w=void 0===C||Boolean(C)),16384&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(14,Ct=Xe(E||void 0,Ct)),134217728&t.$$.dirty[1]&&function(t){Y||(r(29,Dt=t.map(((t,e)=>{if(e===$&&(null==t?void 0:t.div))return H.produceChildContext(t.div,{path:e})}))),r(30,Ft=t.map(((t,e)=>e===$))))}(i),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&H.json&&(X&&(J.unregisterInstance(X),r(55,X=void 0)),!H.json.id||Y||H.fakeElement||(r(55,X=H.json.id),J.registerInstance(X,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Mt(t)},setPreviousItem(t,e){let n=$-t;n<0&&(n="ring"===e?po(n,i.length):0),Mt(n)},setNextItem(t,e){let n=$+t;n>i.length-1&&(n="ring"===e?po(n,i.length):i.length-1),Mt(n)},scrollToStart(){Mt(0)},scrollToEnd(){Mt(i.length-1)}}))),1&t.$$.dirty[2]&&r(22,ct={"height-parent":"match_parent"===(null==x?void 0:x.type)?"yes":""})},[H,q,Y,lt,dt,ut,ft,nt,rt,vt,yt,$t,_t,bt,Ct,$,k,A,D,Q,tt,et,ct,ht,pt,gt,mt,jt,Vt,Dt,Ft,w,b,y,v,m,g,f,u,d,l,s,a,S,G,K,Z,function(t){H.json.items&&r(0,H=Object.assign(Object.assign({},H),{json:Object.assign(Object.assign({},H.json),{items:H.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Rt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===Co)zt(-1,!0);else if(t.which===Ao)zt(1,!0);else if(t.which===jo)Mt(0,!0);else{if(t.which!==Vo)return;Mt(i.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,o=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(fe["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==tt||(Ot=!1,Tt=!1,Nt=rn(t),It=null,it=Date.now(),at=st||-$*tt.clientWidth,r(28,Vt=!1),Pt&&clearTimeout(Pt))},function(t){const e=rn(t);if(!Nt||It&&It.x===e.x&&It.y===e.y)return;It=e;const n=tt.clientWidth;if(Ot){st=e.x-Nt.x+at;const t=n*i.length;if(st>0)st=st*n/(st+3*n);else if(-st+n>t){let e=-st+n-t;e=e*n/(e+3*n),st=n-t-e}Bt(100*st/n)}else Math.abs(e.y-Nt.y)>10?Tt=!0:!Tt&&Math.abs(e.x-Nt.x)>8&&(Wt(),Ot=!0,Nt=e,Bt(100*-$),Lt(!0));Ot&&t.cancelable&&t.preventDefault()},function(){Tt=!1,Nt=null;let t=$;if(!Ot)return;Ot=!1;const e=Math.min(512,tt.clientWidth);Math.abs(at-st)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=at>st?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===$?(r(28,Vt=!0),st=-t*e,Bt(100*-t),Ut()):Mt(t)},U,W,X,xt,Et,i,_,c,o,x,E,C,j,V,F,P,(t,e)=>Rt(0,t),function(t){At[t?"unshift":"push"]((()=>{Q=t,r(19,Q)}))},function(t){At[t?"unshift":"push"]((()=>{et=t,r(21,et)}))},function(t){At[t?"unshift":"push"]((()=>{tt=t,r(20,tt)}))}]}const Lo={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Uo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Wo(t){return t*t*t}function Ho(t){const e=t-1;return e*e*e+1}function qo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Jo=qo([.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]),Go=qo([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]),Ko={linear:r,ease:Jo,ease_in:Wo,ease_out:Ho,ease_in_out:Uo,spring:Go},Xo=200,Yo=0,Zo=0,Qo=0;function ti(t){return Math.max(...t.map((t=>(Number(t.duration)||Xo)+(Number(t.start_delay)||Yo))))}function ei(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:tn()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Yo,a=Number(t.duration)||Xo,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,d=(Ko[t.interpolator||"ease_in_out"]||Uo)(c);if("fade"===t.type)return d>=1?{active:!1,opacity:0}:{active:d>0&&d<1,opacity:(1-d)*l+d*(t.alpha||Zo)};if("slide"===t.type){var u;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let i=null===(u=t.distance)||void 0===u?void 0:u.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*d;return{active:d>0&&d<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-d+d*(t.scale||Qo),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:d>0&&d<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),d=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),u=s.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=s.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[d,h.length?h[h.length-1]:u].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function ni(t,e,n){return t*(1-n)+e*n}const ri={linear:r,ease:Jo,ease_in:Wo,ease_out:Ho,ease_in_out:Uo,spring:Go},oi=200,ii=0;function ai(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:ii,duration:tn()?0:null!==(r=s.duration)&&void 0!==r?r:oi,easing:s.interpolator&&s.interpolator in ri?ri[s.interpolator]:Uo,css:t=>["top:".concat(ni(i.top,a.top,t)-o.top,"px"),"left:".concat(ni(i.left,a.left,t)-o.left,"px"),"width:".concat(ni(i.width,a.width,t),"px"),"height:".concat(ni(i.height,a.height,t),"px")].join(";")}}function si(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...si(t))})):e.push(t),e}const li={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},ci={linear:r,ease:Jo,ease_in:Wo,ease_out:Ho,ease_in_out:Uo,spring:Go},di=300,ui=0;function hi(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Ke(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||di)+(Number(t.start_delay)||ui)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:tn()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||ui,o=Number(t.duration)||di,i=Math.max(0,Math.min(1,(e-n)/o)),a=(ci[t.interpolator||"ease_in_out"]||Uo)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,d;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(d=t.end_value)&&void 0!==d?d:0);return{active:a>0&&a<1,translate:"translateY(".concat((1-a)*e+a*n).concat("in"===r&&void 0!==t.start_value||"out"===r&&void 0!==t.end_value?"%":"px",")")}}if("scale"===t.name){var u,h;const e="in"===r&&null!==(u=t.start_value)&&void 0!==u?u:0,n="in"===r?1:null!==(h=t.end_value)&&void 0!==h?h:1;return{active:a>0&&a<1,scale:"scale(".concat((1-a)*e+a*n,")")}}return{}})),a=n.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),s=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),l=n.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),c=n.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),d=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(d||"none",";opacity:").concat(a)}}}const{window:pi}=A;function fi(t){let e,o,i,a,c,d,u,h;return o=new Ls({props:{componentContext:t[11]}}),{c(){e=R("div"),oe(o.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);ie(o.$$.fragment,n),n.forEach(M),this.h()},h(){q(e,"class",i=Me("tooltip",li,t[5])+" "+(t[12]?fe.root_platform_desktop:"")),lt(e,"top",t[2]),lt(e,"left",t[1]),lt(e,"width",t[3]),lt(e,"height",t[4])},m(n,r){T(n,e,r),ae(o,e,null),t[27](e),d=!0,u||(h=[H(pi,"click",t[16]),H(pi,"resize",t[17])],u=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!d||4128&r[0]&&i!==(i=Me("tooltip",li,t[5])+" "+(t[12]?fe.root_platform_desktop:"")))&&q(e,"class",i),4&r[0]&&lt(e,"top",t[2]),2&r[0]&&lt(e,"left",t[1]),8&r[0]&&lt(e,"width",t[3]),16&r[0]&&lt(e,"height",t[4])},i(n){d||(qt(o.$$.fragment,n),n&&Nt((()=>{d&&(c&&c.end(1),a=Kt(e,hi,{animations:t[13]||gi,direction:"in"}),a.start())})),d=!0)},o(i){Jt(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),d=!0;const u=Ut;let h;function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Gt;p&&(a=mt(t,1,0,o,e,i,p));const f=w()+e,g=f+o;Nt((()=>Bt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),C((e=>{if(d){if(e>=g)return l(0,1),Bt(t,!1,"end"),--u.r||s(u.c),!1;if(e>=f){const t=i((e-f)/o);l(1-t,t)}}return d}))}return u.r+=1,l(c)?Rt().then((()=>{c=c(i),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),d&&(a&&vt(t,a),d=!1)}}}(e,hi,{animations:t[14]||gi,direction:"out"})),d=!1},d(n){n&&M(e),se(o),t[27](null),n&&c&&c.end(),u=!1,s(h)}}}const gi={name:"set",items:[{name:"translate"},{name:"fade"}]};function mi(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$=n,_=n,b=n,w=n,x=n;var k,E,C,A;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:j}=e,{data:V}=e,{internalId:D}=e,{parentComponentContext:F}=e;const P=kt(ge),S=P.isDesktop;p(t,S,(t=>r(12,m=t)));const N=Date.now();let I,O=!1,T="",M="",z="",R="",B=null;function L(){var t,e;if(!I||!j)return;const n=I.parentElement;if(!n)return;const o=I.style.cssText;r(0,I.style.cssText+=";transform: none !important",I);const i=j.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,I.style.cssText=o,I);let l=0,c=0,d=null,h=null,p=0,m=0;const v=F.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(p=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?d=v.value:a.width:d=i.width,m="match_parent"===(null==y?void 0:y.type)?h=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-p;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-p/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=f||0,c+=u||0,r(1,T="".concat(l,"px")),r(2,M="".concat(c,"px")),r(3,z=null!==d?"".concat(d,"px"):""),r(4,R=null!==h?"".concat(h,"px"):""),r(26,O=!0),null===d||null===h?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(I)):null==B||B.disconnect()}return _t((()=>{if(P.tooltipRoot){const t=window.getComputedStyle(I);r(0,I.style.fontSize=t.fontSize,I),r(0,I.style.fontFamily=t.fontFamily,I),r(0,I.style.lineHeight=t.lineHeight,I),P.tooltipRoot.appendChild(I)}})),bt((()=>{O||L()})),wt((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,D=t.internalId),"parentComponentContext"in t&&r(21,F=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=F.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=F.getDerivedFromVars(V.position)),b(),b=h(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=F.getDerivedFromVars(null===r(23,E=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),_(),_=h(a,(t=>r(30,f=t)))),52953088&t.$$.dirty[0]&&(r(8,s=F.getDerivedFromVars(null===r(25,A=null===r(24,C=V.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),$(),$=h(s,(t=>r(29,u=t)))),2621440&t.$$.dirty[0]&&(r(7,l=F.getDerivedFromVars(V.animation_in)),w(),w=h(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=F.getDerivedFromVars(V.animation_out)),x(),x=h(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,d={visible:O})},[I,T,M,z,R,d,c,l,s,a,i,o,m,v,y,S,function(t){Date.now()-N<100||t.composedPath().includes(I)||P.onTooltipClose(D)},function(){L()},j,V,D,F,k,E,C,A,O,function(t){At[t?"unshift":"push"]((()=>{I=t,r(0,I)}))}]}const vi=class extends de{constructor(t){super(),le(this,t,mi,fi,u,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}},{Map:yi}=A;function $i(t,e,n){const r=t.slice();return r[35]=e[n],r}function _i(t,e,n){const r=t.slice();return r[35]=e[n],r}function bi(t){var e;let n,r,o,i;n=new Pn({props:{cls:Lo.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[Ai]},$$scope:{ctx:t}}});let a=(null===(e=t[0])||void 0===e?void 0:e.tooltips)&&ji(t);return{c(){oe(n.$$.fragment),r=U(),a&&a.c(),o=W()},l(t){ie(n.$$.fragment,t),r=ot(t),a&&a.l(t),o=W()},m(t,e){ae(n,t,e),T(t,r,e),a&&a.m(t,e),T(t,o,e),i=!0},p(t,e){var r;const i={};1&e[0]&&(i.componentContext=t[0]),2&e[0]&&(i.layoutParams=t[1]),128&e[0]&&(i.parentOf=t[7]),120&e[0]|512&e[1]&&(i.$$scope={dirty:e,ctx:t}),n.$set(i),null!==(r=t[0])&&void 0!==r&&r.tooltips?a?(a.p(t,e),1&e[0]&&qt(a,1)):(a=ji(t),a.c(),qt(a,1),a.m(o.parentNode,o)):a&&(Wt(),Jt(a,1,1,(()=>{a=null})),Ht())},i(t){i||(qt(n.$$.fragment,t),qt(a),i=!0)},o(t){Jt(n.$$.fragment,t),Jt(a),i=!1},d(t){t&&(M(r),M(o)),se(n,t),a&&a.d(t)}}}function wi(t){let e,r,o=t[5],i=xi(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),T(t,e,n),r=!0},p(t,r){32&r[0]&&u(o,o=t[5])?(Wt(),Jt(i,1,1,n),Ht(),i=xi(t),i.c(),qt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(qt(i),r=!0)},o(t){Jt(i),r=!1},d(t){t&&M(e),i.d(t)}}}function xi(t){let e,n;return e=new Ls({props:{componentContext:t[6]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function ki(t){let e,n,r,o,i,a,s,l,c,d;function u(){return t[17](t[35])}return r=new Ls({props:{componentContext:t[35].componentContextCopy}}),{c(){e=R("div"),n=R("div"),oe(r.$$.fragment),i=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);ie(r.$$.fragment,a),a.forEach(M),i=ot(o),o.forEach(M),this.h()},h(){q(n,"class",o=Lo["state__animation-child-inner"]),q(e,"class",a=Lo["state__animation-child"])},m(t,o){T(t,e,o),I(e,n),ae(r,n,null),I(e,i),l=!0,c||(d=H(e,"introend",u),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[35].componentContextCopy),r.$set(o)},i(n){l||(qt(r.$$.fragment,n),s||Nt((()=>{s=Kt(e,ai,t[35]),s.start()})),l=!0)},o(t){Jt(r.$$.fragment,t),l=!1},d(t){t&&M(e),se(r),c=!1,d()}}}function Ei(t){let e,n,r,o,i,a,s,l,c,d,u="".concat(t[35].offsetLeft,"px"),h="".concat(t[35].offsetTop,"px"),p="".concat(t[35].width,"px"),f="".concat(t[35].height,"px");function g(){return t[16](t[35])}return r=new Ls({props:{componentContext:t[35].componentContextCopy}}),{c(){e=R("div"),n=R("div"),oe(r.$$.fragment),i=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);ie(r.$$.fragment,a),a.forEach(M),i=ot(o),o.forEach(M),this.h()},h(){q(n,"class",o=Lo["state__animation-child-inner"]),q(e,"class",a=Lo["state__animation-child"]),lt(e,"left",u),lt(e,"top",h),lt(e,"width",p),lt(e,"height",f)},m(t,o){T(t,e,o),I(e,n),ae(r,n,null),I(e,i),l=!0,c||(d=H(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[35].componentContextCopy),r.$set(i),16&o[0]&&u!==(u="".concat(t[35].offsetLeft,"px"))&&lt(e,"left",u),16&o[0]&&h!==(h="".concat(t[35].offsetTop,"px"))&&lt(e,"top",h),16&o[0]&&p!==(p="".concat(t[35].width,"px"))&&lt(e,"width",p),16&o[0]&&f!==(f="".concat(t[35].height,"px"))&&lt(e,"height",f)},i(n){l||(qt(r.$$.fragment,n),s||Nt((()=>{s=Kt(e,ei,t[35]),s.start()})),l=!0)},o(t){Jt(r.$$.fragment,t),l=!1},d(t){t&&M(e),se(r),c=!1,d()}}}function Ci(t,e){let n,r,o,i,a;const s=[Ei,ki],l=[];function c(t,e){return"direction"in t[35]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=W(),o.c(),i=W(),this.h()},l(t){n=W(),o.l(t),i=W(),this.h()},h(){this.first=n},m(t,e){T(t,n,e),l[r].m(t,e),T(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Wt(),Jt(l[a],1,1,(()=>{l[a]=null})),Ht(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),qt(o,1),o.m(i.parentNode,i))},i(t){a||(qt(o),a=!0)},o(t){Jt(o),a=!1},d(t){t&&(M(n),M(i)),l[r].d(t)}}}function Ai(t){let e,n,r,o,i=[],a=new yi,s=t[6]&&wi(t),l=Xt(t[4]);const c=t=>t[35];for(let e=0;e<l.length;e+=1){let n=_i(t,l,e),r=c(n);a.set(r,i[e]=Ci(r,n))}return{c(){s&&s.c(),e=U(),n=R("div");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){s&&s.l(t),e=ot(t),n=et(t,"DIV",{class:!0,"aria-hidden":!0});var r=Y(n);for(let t=0;t<i.length;t+=1)i[t].l(r);r.forEach(M),this.h()},h(){q(n,"class",r=Lo.state__animations),q(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),T(r,e,a),T(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[18](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&qt(s,1)):(s=wi(t),s.c(),qt(s,1),s.m(e.parentNode,e)):s&&(Wt(),Jt(s,1,1,(()=>{s=null})),Ht()),528&r[0]&&(l=Xt(t[4]),Wt(),i=Zt(i,r,c,1,t,l,a,n,Yt,Ci,null,_i),Ht())},i(t){if(!o){qt(s);for(let t=0;t<l.length;t+=1)qt(i[t]);o=!0}},o(t){Jt(s);for(let t=0;t<i.length;t+=1)Jt(i[t]);o=!1},d(r){r&&(M(e),M(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[18](null)}}}function ji(t){let e,n,r=[],o=new yi,i=Xt(t[0].tooltips);const a=t=>t[35].internalId;for(let e=0;e<i.length;e+=1){let n=$i(t,i,e),s=a(n);o.set(s,r[e]=Vi(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);T(t,e,o),n=!0},p(t,n){1&n[0]&&(i=Xt(t[0].tooltips),Wt(),r=Zt(r,n,a,1,t,i,o,e.parentNode,Yt,Vi,e,$i),Ht())},i(t){if(!n){for(let t=0;t<i.length;t+=1)qt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)Jt(r[t]);n=!1},d(t){t&&M(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Vi(t,e){let n,r,o;return r=new vi({props:{ownerNode:e[35].ownerNode,data:e[35].desc,internalId:e[35].internalId,parentComponentContext:e[0]}}),{key:t,first:null,c(){n=W(),oe(r.$$.fragment),this.h()},l(t){n=W(),ie(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),ae(r,t,e),o=!0},p(t,n){e=t;const o={};1&n[0]&&(o.ownerNode=e[35].ownerNode),1&n[0]&&(o.data=e[35].desc),1&n[0]&&(o.internalId=e[35].internalId),1&n[0]&&(o.parentComponentContext=e[0]),r.$set(o)},i(t){o||(qt(r.$$.fragment,t),o=!0)},o(t){Jt(r.$$.fragment,t),o=!1},d(t){t&&M(n),se(r,t)}}}function Di(t){let e,n,r=!t[2]&&bi(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&qt(r,1)):(r=bi(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Fi(t){return"change_bounds"===t.type?t:"set"===t.type?Fi(t.items[0]):null}function Pi(t,e,n){let r,o,i,a,s,l,c,{componentContext:d}=e,{layoutParams:u}=e;const h=kt(ge),p=kt(ze);let f,g,m,v,y=!1,$=new Map,_=new Set,b=null,w=[],x=[],k=[],E=[],C=!1;function A(t){n(6,v=(null==t?void 0:t.div)?d.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function j(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=d.getJsonWithVars(r),i=d.getJsonWithVars(i);const s=si(i),l=a.getBoundingClientRect(),c=Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=s,u.some((t=>"fade"===t.type))?void 0:r.alpha)});var u;return{json:c,componentContextCopy:o.produceChildContext(c,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function V(t){if(m===t)return;h.setRunning("stateChange",!0);const e=new Set(_);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,w=[]);let r=[];if(f){const t=f.getBoundingClientRect();r=k.map((e=>j(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const o=l.find((e=>e.state_id===t))||null;if(o?(n(5,m=t),null==a||a.setValue(m),A(o)):d.logError(me(new Error("Cannot find state with id"),{additional:{stateId:t}})),await St(),!f)return;const i=f.getBoundingClientRect();let s=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>j(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||_.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(s),u=c.reduce(((t,e)=>Math.max(t,ti(e.transitions))),0),p=E.filter((t=>$.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:d.getJsonWithVars(Fi(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:u}))),...p]),$.clear(),h.setRunning("stateChange",!1)}function D(t){if(b&&b.has(t))return b.get(t);d.logError(me(new Error("Missing state block with id"),{additional:{id:t}}))}function F(t){n(4,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return xt(ze,{registerInstance(t,e){b||(b=new Map),b.has(t)?d.logError(me(new Error("Duplicate state with id"),{additional:{id:t}})):b.set(t,e)},unregisterInstance(t){null==b||b.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!f)return Promise.resolve();const a=j(f.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=ti(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,w=[...w.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return k.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return E.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){_.add(t)},unregisterChild(t){_.delete(t)}}),wt((()=>{g&&p.unregisterInstance(g)})),t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"layoutParams"in t&&n(1,u=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=d.json.div_id||d.json.id),1&t.$$.dirty[0]&&(o=d.getJsonWithVars(d.json.default_state_id)),1&t.$$.dirty[0]&&n(15,i=d.json.state_id_variable),32769&t.$$.dirty[0]&&(a=i?d.getVariable(i,"string"):null),1&t.$$.dirty[0]&&n(14,s=d.origJson),16384&t.$$.dirty[0]&&s&&n(11,C=!1),8193&t.$$.dirty[0]&&(r?n(2,y=!1):(n(2,y=!0),d.logError(me(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&d.json&&(_=new Set),1&t.$$.dirty[0]&&n(12,l=Array.isArray(d.json.states)&&d.json.states||[]),4096&t.$$.dirty[0]&&n(7,c=l.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==l?void 0:l.length)?n(2,y=!1):(n(2,y=!0),d.logError(me(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&d.json&&(g&&(p.unregisterInstance(g),n(10,g=void 0)),r&&!(null==d?void 0:d.fakeElement)&&(n(10,g=r),p.registerInstance(r,{setState:V,getChild:D}))),6144&t.$$.dirty[0]&&!C&&function(t){if(!C&&(n(11,C=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,m=e);const r=t.find((t=>t.state_id===m))||null;A(r),r||d.logError(me(new Error("Cannot find state for default_state_id"),{additional:{selectedId:m}}))}else{const e=t[0];n(5,m=e.state_id),A(e)}a&&(a.setValue(m),a.subscribe((t=>{V(t)})))}}(l)},[d,u,y,f,w,m,v,c,function(t){const e=d.json.states;e&&(n(12,l=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))),n(0,d.json=Object.assign(Object.assign({},d.json),{states:l}),d),m&&A(l.find((t=>t.state_id===m))||null))},F,g,C,l,r,s,i,t=>F(t),t=>F(t),function(t){At[t?"unshift":"push"]((()=>{f=t,n(3,f)}))}]}const Si={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Ni}=A;function Ii(t,e,n){const r=t.slice();return r[65]=e[n],r}function Oi(t){let e,n;return e=new Pn({props:{cls:Me("pager",Si,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(Li),replaceItems:t[23],$$slots:{default:[Ri]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Me("pager",Si,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Li)),134068&n[0]|64&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ti(t){let e,n,r,o,i;return n=new Ls({props:{componentContext:t[65]}}),{c(){e=R("div"),oe(n.$$.fragment),r=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);ie(n.$$.fragment,o),r=ot(o),o.forEach(M),this.h()},h(){q(e,"class",o=Si.pager__item)},m(t,o){T(t,e,o),ae(n,e,null),I(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[65]),n.$set(r)},i(t){i||(qt(n.$$.fragment,t),i=!0)},o(t){Jt(n.$$.fragment,t),i=!1},d(t){t&&M(e),se(n)}}}function Mi(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=Si["pager__arrow-icon-path"]),q(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[19]||"".concat(Si.pager__arrow," ").concat(uo.arrow," ").concat(uo.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[52]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function zi(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=Y(e);n=nt(r,"path",{class:!0,d:!0}),Y(n).forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=Si["pager__arrow-icon-path"]),q(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),q(e,"class",o=uo.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);a&&a.l(n),n.forEach(M),this.h()},h(){q(e,"class",r=t[20]||"".concat(Si.pager__arrow," ").concat(uo.arrow," ").concat(uo.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),o||(i=H(e,"click",t[53]),o=!0)},p:n,d(t){t&&M(e),a&&a.d(),o=!1,i()}}}function Ri(t){let e,n,r,o,i,a,s,l,c,d=Xt(t[2]),u=[];for(let e=0;e<d.length;e+=1)u[e]=Ti(Ii(t,d,e));const h=t=>Jt(u[t],1,1,(()=>{u[t]=null}));let p=t[8]&&t[9]&&Mi(t),f=t[7]&&t[9]&&zi(t);return{c(){e=R("div");for(let t=0;t<u.length;t+=1)u[t].c();o=U(),p&&p.c(),i=U(),f&&f.c(),a=W(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=Y(e);for(let t=0;t<u.length;t+=1)u[t].l(n);n.forEach(M),o=ot(t),p&&p.l(t),i=ot(t),f&&f.l(t),a=W(),this.h()},h(){q(e,"class",n=Si.pager__items+" "+(t[17]?fe["root_restrict-scroll"]:"")),q(e,"style",r=$e(t[11]))},m(n,r){T(n,e,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(e,null);t[51](e),T(n,o,r),p&&p.m(n,r),T(n,i,r),f&&f.m(n,r),T(n,a,r),s=!0,l||(c=H(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(d=Xt(t[2]),n=0;n<d.length;n+=1){const r=Ii(t,d,n);u[n]?(u[n].p(r,o),qt(u[n],1)):(u[n]=Ti(r),u[n].c(),qt(u[n],1),u[n].m(e,null))}for(Wt(),n=d.length;n<u.length;n+=1)h(n);Ht()}(!s||131072&o[0]&&n!==(n=Si.pager__items+" "+(t[17]?fe["root_restrict-scroll"]:"")))&&q(e,"class",n),(!s||2048&o[0]&&r!==(r=$e(t[11])))&&q(e,"style",r),t[8]&&t[9]?p?p.p(t,o):(p=Mi(t),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),t[7]&&t[9]?f?f.p(t,o):(f=zi(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<d.length;t+=1)qt(u[t]);s=!0}},o(t){u=u.filter(Ni);for(let t=0;t<u.length;t+=1)Jt(u[t]);s=!1},d(n){n&&(M(e),M(o),M(i),M(a)),z(u,n),t[51](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Bi(t){let e,n,r=!t[3]&&Oi(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[3]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),8&n[0]&&qt(r,1)):(r=Oi(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Li=t=>t.json;function Ui(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,_,b,w,x,k,E,C,A,j,V,D=n,F=n,P=n,S=n,N=n,I=n;var O,T,M,z,R,B,L,U,W,H;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{componentContext:q}=e,{layoutParams:J}=e;const G=kt(ge),K=G.direction;p(t,K,(t=>r(4,x=t)));const X=G.genId("pager"),Y=G.getCustomization("pagerLeftClass"),Z=G.getCustomization("pagerRightClass"),Q=G.isDesktop;p(t,Q,(t=>r(46,k=t)));const tt=qn((function(){if(!rt)return;const t=function(){const t=Array.from(nt.children),e=nt.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===st?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:ot}();t!==ot&&r(38,ot=t)}),50);let et,nt,rt=!1,ot=0,it=0,at=!1,st="horizontal",lt="",ct="",dt="";function ut(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===st,o=nt.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";nt.scroll({[a]:o[i],behavior:e}),r(38,ot=t)}function ht(t,e){let n=ot-t;n<0&&(n="ring"===e?po(n,d.length):0),ut(n)}function pt(t,e){let n=ot+t;n>d.length-1&&(n="ring"===e?po(n,d.length):d.length-1),ut(n)}return _t((()=>{if(r(37,rt=!0),Boolean(document.getElementById("".concat(X,"-tab-0")))){const t=[...nt.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(X,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(X,"-tab-").concat(e))}})),wt((()=>{r(37,rt=!1),et&&(G.unregisterInstance(et),r(36,et=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,q=t.componentContext),"layoutParams"in t&&r(1,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(45,o=q.origJson),16384&t.$$.dirty[1]&&o&&r(42,ct=""),1&t.$$.dirty[0]&&(r(16,i=q.getDerivedFromVars(q.json.layout_mode)),F(),F=h(i,(t=>r(47,E=t)))),1&t.$$.dirty[0]&&(r(15,a=q.getDerivedFromVars(q.json.orientation)),N(),N=h(a,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(14,s=q.getDerivedFromVars(q.json.item_spacing)),S(),S=h(s,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(13,l=q.getDerivedFromVars(q.json.paddings)),P(),P=h(l,(t=>r(48,C=t)))),1&t.$$.dirty[0]&&(r(12,c=q.getDerivedFromVars(q.json.restrict_parent_scroll)),I(),I=h(c,(t=>r(17,V=t)))),1&t.$$.dirty[0]&&r(2,d=(Array.isArray(q.json.items)&&q.json.items||[]).map(((t,e)=>q.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(E?"percentage"!==E.type&&"fixed"!==E.type?(r(39,at=!0),q.logError(me(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,at=!1):(r(39,at=!0),q.logError(me(new Error('Empty "layout_mode" prop for div "pager"'))))),524800&t.$$.dirty[1]&&r(40,st=Ir(j,st)),262144&t.$$.dirty[1]){const t=null==A?void 0:A.value;t&&Le(t)&&r(41,lt=_e(t||0))}if(16&t.$$.dirty[0]|133120&t.$$.dirty[1]&&r(42,ct=Ue(C,x,ct)),512&t.$$.dirty[1]&&r(44,u="horizontal"===st?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|67103&t.$$.dirty[1])if("fixed"===(null==E?void 0:E.type)){const t=be("horizontal"===st?(("ltr"===x?null===r(26,O=q.json.paddings)||void 0===O?void 0:O.start:null===r(27,T=q.json.paddings)||void 0===T?void 0:T.end)||(null===r(28,M=q.json.paddings)||void 0===M?void 0:M.left)||0)+(("ltr"===x?null===r(29,z=q.json.paddings)||void 0===z?void 0:z.end:null===r(30,R=q.json.paddings)||void 0===R?void 0:R.start)||(null===r(31,B=q.json.paddings)||void 0===B?void 0:B.right)||0):((null===r(32,L=q.json.paddings)||void 0===L?void 0:L.top)||0)+((null===r(33,U=q.json.paddings)||void 0===U?void 0:U.bottom)||0)),e=null===r(34,W=E.neighbour_page_width)||void 0===W?void 0:W.value;r(43,dt=e?"calc(100% + ".concat(t," - 2 * ").concat(be(e)," - 2 * ").concat(lt,")"):"100%")}else if("percentage"===(null==E?void 0:E.type)){const t=null===r(35,H=E.page_width)||void 0===H?void 0:H.value;r(43,dt="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,f={"grid-gap":lt,padding:ct,[u]:dt}),512&t.$$.dirty[1]&&r(10,g={orientation:st}),256&t.$$.dirty[1]&&r(3,m=at),8&t.$$.dirty[0]|32832&t.$$.dirty[1]&&r(9,v=k&&rt&&!m),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,y="ltr"===x?ot>0:ot+1<d.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,_="ltr"===x?ot+1<d.length:ot>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=q.json.id;if(n){const r=new Map(w);$(b,w=r.set(n,{instId:X,size:t,currentItem:e,scrollToPagerItem:ut}),w)}}(d.length,ot),128&t.$$.dirty[1]&&function(t){var e;if(t===it)return;it=t;const n=q.getJsonWithVars(null===(e=d[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&q.execAnyActions(n)}(ot),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&q.json&&(et&&(G.unregisterInstance(et),r(36,et=void 0)),q.json.id&&!q.fakeElement&&(r(36,et=q.json.id),G.registerInstance(et,{setCurrentItem(t){if(t<0||t>d.length-1)throw new Error('Item is out of range in "set-current-item" action');ut(t)},setPreviousItem:ht,setNextItem:pt,scrollToStart(){ut(0)},scrollToEnd(){ut(d.length-1)}})))},r(6,b=G.getStore("pagers")),D(),D=h(b,(t=>r(55,w=t))),[q,J,d,m,x,nt,b,_,y,v,g,f,c,l,s,a,i,V,K,Y,Z,Q,tt,function(t){r(0,q=Object.assign(Object.assign({},q),{json:Object.assign(Object.assign({},q.json),{items:t.filter(Ce)})}))},ht,pt,O,T,M,z,R,B,L,U,W,H,et,rt,ot,at,st,lt,ct,dt,u,o,k,E,C,A,j,function(t){At[t?"unshift":"push"]((()=>{nt=t,r(5,nt)}))},()=>("ltr"===x?ht:pt)(1,"clamp"),()=>("ltr"===x?pt:ht)(1,"clamp")]}const Wi={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function Hi(t,e,n){const r=t.slice();r[44]=e[n],r[47]=n;const o=r[47]===r[10].currentItem;return r[45]=o,r}function qi(t){let e,n=Xt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Ji(Hi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=W()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=W()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);T(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=Xt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=Hi(t,n,i);r[i]?r[i].p(a,o):(r[i]=Ji(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&M(e),z(r,t)}}}function Ji(t){let e,n,r,o,i,a,l,c;function d(){return t[37](t[47])}return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Me("indicator__item",Wi,{active:t[45]})+" "+fe.root__clickable),q(e,"role","tab"),q(e,"id",r=t[10].instId+"-tab-"+t[47]),q(e,"aria-controls",o=t[10].instId+"-panel-"+t[47]),q(e,"aria-selected",i=t[45]?"true":"false"),q(e,"tabindex",a=t[45]?0:-1)},m(n,r){T(n,e,r),l||(c=[H(e,"click",d),H(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Me("indicator__item",Wi,{active:t[45]})+" "+fe.root__clickable)&&q(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[47])&&q(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[47])&&q(e,"aria-controls",o),1024&l[0]&&i!==(i=t[45]?"true":"false")&&q(e,"aria-selected",i),1024&l[0]&&a!==(a=t[45]?0:-1)&&q(e,"tabindex",a)},d(t){t&&M(e),l=!1,s(c)}}}function Gi(t){let e,n,r,o,i=t[10]&&qi(t);return{c(){e=R("div"),n=R("div"),i&&i.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0,role:!0});var o=Y(n);i&&i.l(o),o.forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=Wi.indicator__items),q(n,"role","tablist"),lt(n,"margin","default"===t[4]?"0 ".concat(_e(Math.max(0,t[2].width-t[3].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",_e(t[3].width)),lt(n,"--divkit-indicator-inactive-height",_e(t[3].height)),lt(n,"--divkit-indicator-inactive-border-radius",_e(t[3].borderRadius)),lt(n,"--divkit-indicator-inactive-background",t[3].background||""),lt(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),lt(n,"--divkit-indicator-active-width",_e(t[2].width)),lt(n,"--divkit-indicator-active-height",_e(t[2].height)),lt(n,"--divkit-indicator-active-border-radius",_e(t[2].borderRadius)),lt(n,"--divkit-indicator-active-background",t[2].background||""),lt(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),lt(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),lt(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(_e((t[5]-t[3].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?_e(t[7]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?_e((t[6]-1)*t[7]):""),q(e,"class",o=Wi.indicator__scroller)},m(r,o){T(r,e,o),I(e,n),i&&i.m(n,null),t[38](n),t[39](e)},p(t,e){t[10]?i?i.p(t,e):(i=qi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&lt(n,"margin","default"===t[4]?"0 ".concat(_e(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&lt(n,"--divkit-indicator-inactive-width",_e(t[3].width)),8&e[0]&&lt(n,"--divkit-indicator-inactive-height",_e(t[3].height)),8&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",_e(t[3].borderRadius)),8&e[0]&&lt(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&lt(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&lt(n,"--divkit-indicator-active-width",_e(t[2].width)),4&e[0]&&lt(n,"--divkit-indicator-active-height",_e(t[2].height)),4&e[0]&&lt(n,"--divkit-indicator-active-border-radius",_e(t[2].borderRadius)),4&e[0]&&lt(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&lt(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&lt(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&lt(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat(_e((t[5]-t[3].width)/2)):""),144&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?_e(t[7]):""),80&e[0]&&lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?_e((t[6]-1)*t[7]):"")},d(n){n&&M(e),i&&i.d(),t[38](null),t[39](null)}}}function Ki(t){let e,n;return e=new Pn({props:{cls:Me("indicator",Wi,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Gi]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("indicator",Wi,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|131072&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}const Xi=["rounded_rectangle","circle"];function Yi(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A=n,j=n,V=n,D=n,F=n,P=n,S=n,N=n,I=n;var O,T;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{componentContext:M}=e,{layoutParams:z}=e;const R=kt(ge),B=R.direction;p(t,B,(t=>r(27,v=t)));let L,U,W,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},q={width:10,height:10,borderRadius:5,background:"#33919cb5"},J="default",G=15,K=10,X=5;function Y(t){t!==W.currentItem&&W.scrollToPagerItem(t)}async function Z(t){W.scrollToPagerItem(t),await St();const e=U.querySelector(".".concat(Wi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,M=t.componentContext),"layoutParams"in t&&r(1,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(26,o=M.origJson),67108864&t.$$.dirty[0]&&o&&(r(4,J="default"),r(5,G=15),r(6,K=10),r(7,X=5),r(2,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,q={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,i=M.getDerivedFromVars(M.json.shape)),P(),P=h(i,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(19,a=M.getDerivedFromVars(M.json.active_item_color)),D(),D=h(a,(t=>r(31,b=t)))),1&t.$$.dirty[0]&&(r(18,s=M.getDerivedFromVars(M.json.inactive_item_color)),F(),F=h(s,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(17,l=M.getDerivedFromVars(M.json.active_item_size)),S(),S=h(l,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(16,c=M.getDerivedFromVars(M.json.active_shape)),I(),I=h(c,(t=>r(36,C=t)))),1&t.$$.dirty[0]&&(r(15,d=M.getDerivedFromVars(M.json.inactive_shape)),N(),N=h(d,(t=>r(35,E=t)))),1&t.$$.dirty[0]&&(r(14,u=M.getDerivedFromVars(M.json.space_between_centers)),j(),j=h(u,(t=>r(29,$=t)))),1&t.$$.dirty[0]&&(r(13,f=M.getDerivedFromVars(M.json.items_placement)),V(),V=h(f,(t=>r(30,_=t)))),12&t.$$.dirty[0]|63&t.$$.dirty[1]&&(C&&r(2,H=ur({type:"shape_drawable",shape:C},Xi,H)),E&&r(3,q=ur({type:"shape_drawable",shape:E},Xi,q)),!C&&!E&&x)){const t=Nn(k,1.3);r(3,q=ur({type:"shape_drawable",shape:x,color:q.background},Xi,q)),r(3,q.background=xe(w,1,q.background),q),r(2,H=Object.assign(Object.assign({},q),{width:q.width*t,height:q.height*t,borderRadius:q.borderRadius*t,background:H.background})),r(2,H.background=xe(b,1,H.background),H)}if(1660944624&t.$$.dirty[0])if(!_||"default"!==_.type&&"stretch"!==_.type)r(4,J="default"),$&&r(5,G=Ne($.value,G));else if(r(4,J=_.type),"default"===J)r(5,G=Ne(null===r(24,O=_.space_between_centers)||void 0===O?void 0:O.value,G));else if("stretch"===J){const t=_;r(6,K=Nn(t.max_visible_items,K)),r(7,X=Ne(null===r(25,T=t.item_spacing)||void 0===T?void 0:T.value,X))}268435456&t.$$.dirty[0]&&async function(t){if(M.json.pager_id&&t.has(M.json.pager_id)&&(r(10,W=t.get(M.json.pager_id)),await St(),U)){const t=U.children[W.currentItem];if(t){const e=t.offsetLeft;L.scroll({left:e-L.clientWidth/2,behavior:"smooth"})}}}(y),134217744&t.$$.dirty[0]&&r(11,m={placement:J,direction:v})},r(12,g=R.getStore("pagers")),A(),A=h(g,(t=>r(28,y=t))),[M,z,H,q,J,G,K,X,L,U,W,m,g,f,u,d,c,l,s,a,i,B,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=W;if(t.which===Co)Z(n-1<0?n:n-1);else if(t.which===Ao)Z(n+1>=e?n:n+1);else if(t.which===jo)Z(0);else{if(t.which!==Vo)return;Z(e-1)}t.preventDefault()},O,T,o,v,y,$,_,b,w,x,k,E,C,t=>Y(t),function(t){At[t?"unshift":"push"]((()=>{U=t,r(9,U)}))},function(t){At[t?"unshift":"push"]((()=>{L=t,r(8,L)}))}]}const Zi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Qi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&xe(t.text_color)||"#000",o=In(t.font_weight);if(un(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:_e(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function ta(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const ea="function"==typeof BigInt;function na(t){return ea?BigInt(t):Number(t)}const ra=na("9223372036854775807"),oa=na("-9223372036854775808");function ia(t){const e=na(t);if(e>ra||e<oa)throw new Error("Integer overflow.");if("number"==typeof e&&(Number.isNaN(e)||e!==Math.round(e)))throw new Error("Incorrect integer value.");return e}const aa=ia(0);function sa(t){let e=t;return e<0&&(e=-e),e}function la(t){let e=0;return t>0?e=1:t<0&&(e=-1),ia(e)}class ca{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=he(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class da extends ca{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class ua extends ca{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t)throw new Error("Incorrect variable value");try{return ia(t)}catch(t){throw new Error("Incorrect variable value")}}fromString(t){try{return ia(t)}catch(t){throw new Error("Incorrect variable value")}}getType(){return"integer"}}class ha extends ca{convertValue(t){if("number"!=typeof t||Number.isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}}class pa extends ca{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class fa extends ca{convertValue(t){if("string"!=typeof t||!ke(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class ga extends ca{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class ma extends ca{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class va extends ca{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ya={string:da,number:ha,integer:ua,boolean:pa,color:fa,url:ga,dict:ma,array:va};function $a(t,e,n){if(!(e in ya))throw new Error("Unsupported variable type");return new ya[e](t,n)}function _a(){}function ba(t){return t(this.value),_a}function wa(){throw new Error("Cannot change the value of this type of variable")}const xa={string:class extends da{},number:class extends ha{},integer:class extends ua{},boolean:class extends pa{},color:class extends fa{},url:class extends ga{},dict:class extends ma{},array:class extends va{}};for(const t in xa){const e=xa[t];e.prototype.subscribe=ba,e.prototype.set=wa,e.prototype.setValue=wa}function ka(t,e,n){const r=t.slice();return r[82]=e[n],r}function Ea(t,e,n){const r=t.slice();return r[82]=e[n],r}function Ca(t){let e,n;return e=new Pn({props:{cls:Me("slider",Zi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Sa,t=>{let{focusHandler:e,blurHandler:n}=t;return{80:e,81:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?262144:0)|(n?524288:0)]}]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Me("slider",Zi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Aa(t){let e,n;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Zi.slider__tick+" "+Zi.slider__tick_active),lt(e,"--divkit-slider-tick",t[82])},m(t,n){T(t,e,n)},p(t,n){262144&n[0]&&lt(e,"--divkit-slider-tick",t[82])},d(t){t&&M(e)}}}function ja(t){let e,n;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){q(e,"class",n=Zi.slider__tick+" "+Zi.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[82])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&lt(e,"--divkit-slider-tick",t[82])},d(t){t&&M(e)}}}function Va(t){let e,n,r,o,i;return{c(){e=R("div"),n=R("div"),r=L(t[12]),this.h()},l(o){e=et(o,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);r=rt(a,t[12]),a.forEach(M),i.forEach(M),this.h()},h(){var r,a,s;q(n,"class",o=Zi["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[9])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[9])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[9])||void 0===s?void 0:s.textColor)||"#000"),q(e,"class",i=Zi["slider__thumb-text"])},m(t,o){T(t,e,o),I(e,n),I(n,r)},p(t,e){var o,i,a;4096&e[0]&&at(r,t[12]),512&e[0]&&lt(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&lt(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&lt(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function Da(t){let e,n,r=t[10]&&Fa(t);return{c(){e=R("div"),r&&r.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);r&&r.l(n),n.forEach(M),this.h()},h(){q(e,"class",n=Zi.slider__thumb+" "+Zi.slider__thumb_secondary),lt(e,"border-radius",_e(t[6].borderRadius)),lt(e,"background",t[6].background),lt(e,"box-shadow",t[6].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=Fa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&lt(e,"border-radius",_e(t[6].borderRadius)),64&n[0]&&lt(e,"background",t[6].background),64&n[0]&&lt(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}function Fa(t){let e,n,r,o,i;return{c(){e=R("div"),n=R("div"),r=L(t[13]),this.h()},l(o){e=et(o,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);r=rt(a,t[13]),a.forEach(M),i.forEach(M),this.h()},h(){var r,a,s;q(n,"class",o=Zi["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[10])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[10])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[10])||void 0===s?void 0:s.textColor)||"#000"),q(e,"class",i=Zi["slider__thumb-text"]+" "+Zi["slider__thumb-text_secondary"])},m(t,o){T(t,e,o),I(e,n),I(n,r)},p(t,e){var o,i,a;8192&e[0]&&at(r,t[13]),1024&e[0]&&lt(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&lt(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&lt(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function Pa(t){let e,n,r,o,i;return{c(){e=R("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){q(e,"type","range"),q(e,"class",n=t[17]?Zi.slider__input:"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary)),q(e,"min",t[3]),q(e,"max",t[4]),q(e,"step","1"),e.value=r=t[17]?t[12]:t[13],q(e,"aria-label",t[21])},m(n,r){T(n,e,r),o||(i=[H(e,"input",t[73]),H(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),H(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),H(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),H(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?Zi.slider__input:"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary))&&q(e,"class",n),8&i[0]&&q(e,"min",t[3]),16&i[0]&&q(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&q(e,"aria-label",t[21])},d(t){t&&M(e),o=!1,s(i)}}}function Sa(t){let e,n,r,o,i,a,c,d,u,h,p,f,g,m,v,y,$,_,b,w,x,k,E=Xt(t[18]),C=[];for(let e=0;e<E.length;e+=1)C[e]=Aa(Ea(t,E,e));let A=Xt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=ja(ka(t,A,e));let V=t[9]&&Va(t),D=t[14]&&Da(t),F=t[14]&&Pa(t);return{c(){e=R("div"),n=R("div"),r=R("div"),i=U(),a=R("div"),d=U();for(let t=0;t<C.length;t+=1)C[t].c();u=U();for(let t=0;t<j.length;t+=1)j[t].c();h=U(),p=R("div"),V&&V.c(),g=U(),D&&D.c(),m=U(),v=R("input"),_=U(),F&&F.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var s=Y(n);r=et(s,"DIV",{class:!0}),Y(r).forEach(M),i=ot(s),a=et(s,"DIV",{class:!0}),Y(a).forEach(M),d=ot(s);for(let t=0;t<C.length;t+=1)C[t].l(s);u=ot(s);for(let t=0;t<j.length;t+=1)j[t].l(s);h=ot(s),p=et(s,"DIV",{class:!0});var l=Y(p);V&&V.l(l),l.forEach(M),g=ot(s),D&&D.l(s),m=ot(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),_=ot(s),F&&F.l(s),s.forEach(M),o.forEach(M),this.h()},h(){q(r,"class",o=Zi.slider__track),lt(r,"height",_e(t[7].height)),lt(r,"border-radius",_e(t[7].borderRadius)),lt(r,"background",t[7].background),lt(r,"box-shadow",t[7].boxShadow||""),q(a,"class",c=Zi["slider__active-track"]),lt(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),lt(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),lt(a,"width",(100*t[27]).toFixed(2)+"%"),lt(a,"height",_e(t[8].height)),lt(a,"border-radius",_e(t[8].borderRadius)),lt(a,"background",t[8].background),lt(a,"box-shadow",t[8].boxShadow||""),q(p,"class",f=Zi.slider__thumb),lt(p,"border-radius",_e(t[5].borderRadius)),lt(p,"background",t[5].background),lt(p,"box-shadow",t[5].boxShadow||""),q(v,"type","range"),q(v,"class",y=t[17]?"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary):Zi.slider__input),q(v,"min",t[3]),q(v,"max",t[4]),q(v,"step","1"),v.value=$=t[17]?t[13]:t[12],q(v,"aria-label",t[20]),q(n,"class",b=Zi["slider__tracks-inner"]),q(e,"class",w=Zi["slider__tracks-wrapper"])},m(o,s){T(o,e,s),I(e,n),I(n,r),I(n,i),I(n,a),I(n,d);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);I(n,u);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);I(n,h),I(n,p),V&&V.m(p,null),I(n,g),D&&D.m(n,null),I(n,m),I(n,v),t[72](v),I(n,_),F&&F.m(n,null),t[74](n),x||(k=[H(v,"input",t[71]),H(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),H(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&lt(r,"height",_e(t[7].height)),128&o[0]&&lt(r,"border-radius",_e(t[7].borderRadius)),128&o[0]&&lt(r,"background",t[7].background),128&o[0]&&lt(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&lt(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&lt(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&lt(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&lt(a,"height",_e(t[8].height)),256&o[0]&&lt(a,"border-radius",_e(t[8].borderRadius)),256&o[0]&&lt(a,"background",t[8].background),256&o[0]&&lt(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(E=Xt(t[18]),e=0;e<E.length;e+=1){const r=Ea(t,E,e);C[e]?C[e].p(r,o):(C[e]=Aa(r),C[e].c(),C[e].m(n,u))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}if(524288&o[0]){let e;for(A=Xt(t[19]),e=0;e<A.length;e+=1){const r=ka(t,A,e);j[e]?j[e].p(r,o):(j[e]=ja(r),j[e].c(),j[e].m(n,h))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=Va(t),V.c(),V.m(p,null)):V&&(V.d(1),V=null),32&o[0]&&lt(p,"border-radius",_e(t[5].borderRadius)),32&o[0]&&lt(p,"background",t[5].background),32&o[0]&&lt(p,"box-shadow",t[5].boxShadow||""),t[14]?D?D.p(t,o):(D=Da(t),D.c(),D.m(n,m)):D&&(D.d(1),D=null),131072&o[0]&&y!==(y=t[17]?"".concat(Zi.slider__input," ").concat(Zi.slider__input_secondary):Zi.slider__input)&&q(v,"class",y),8&o[0]&&q(v,"min",t[3]),16&o[0]&&q(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&q(v,"aria-label",t[20]),t[14]?F?F.p(t,o):(F=Pa(t),F.c(),F.m(n,null)):F&&(F.d(1),F=null)},d(n){n&&M(e),z(C,n),z(j,n),V&&V.d(),D&&D.d(),t[72](null),F&&F.d(),t[74](null),x=!1,s(k)}}}function Na(t){let e,n,r,o,i=!t[11]&&Ca(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(a,s){i&&i.m(a,s),T(a,e,s),n=!0,r||(o=H(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(Wt(),Jt(i,1,1,(()=>{i=null})),Ht()):i?(i.p(t,n),2048&n[0]&&qt(i,1)):(i=Ca(t),i.c(),qt(i,1),i.m(e.parentNode,e))},i(t){n||(qt(i),n=!0)},o(t){Jt(i),n=!1},d(t){t&&M(e),i&&i.d(t),r=!1,o()}}}const Ia={width:10,height:10,borderRadius:5,background:"#000"},Oa=["rounded_rectangle","circle"],Ta=["rounded_rectangle"];function Ma(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function za(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q=n,J=n,G=n,K=n,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n;var at,st,lt,ct;t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it()));let{componentContext:dt}=e,{layoutParams:ut}=e;const ht=kt(ge),pt=kt(nn),ft=ht.direction;let gt,mt,vt;p(t,ft,(t=>r(15,F=t)));let yt,$t,bt,xt=!1,Et=0,Ct=100,jt=Ia,Vt=jt,Dt=Ia,Ft=Ia,Pt=null,St=null,Nt=bt,It="",Ot="",Tt=!1,Mt=ta(U||0,Et,Ct),zt=ta(L||0,Et,Ct);function Rt(t,e){const n=Number(t.target.value);xt===("first"===e)?(r(13,zt=n),l.setValue(n)):(r(12,Mt=n),s.setValue(n))}let Bt=!1;function Lt(){if(!vt)return;const t=Ct-Et,e=(null==Pt?void 0:Pt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==vt?void 0:vt.clientWidth)?Bt||(dt.logError(me(new Error("Slider ticks overlap each other"),{level:"warn"})),Bt=!0):Bt=!1}const Ut=qn(Lt,50);return _t((()=>{Lt()})),wt((()=>{gt&&(ht.unregisterFocusable(gt),r(48,gt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,dt=t.componentContext),"layoutParams"in t&&r(1,ut=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(56,o=dt.origJson),33554432&t.$$.dirty[1]&&o&&(r(5,jt=Ia),r(6,Vt=jt),r(7,Dt=Ia),r(8,Ft=Ia),r(49,Pt=null),r(50,St=null),r(9,bt=void 0),r(10,Nt=void 0),r(20,It=""),r(21,Ot="")),1&t.$$.dirty[0]&&r(55,i=dt.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,a=dt.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,s=i&&dt.getVariable(i,"integer")||$a("temp","integer",0)),rt(),rt=h(s,(t=>r(68,U=t)))),16385&t.$$.dirty[0]&&(r(23,l=a&&dt.getVariable(a,"integer")||$a("temp","integer",0)),nt(),nt=h(l,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(39,c=dt.getDerivedFromVars(dt.json.min_value)),it(),it=h(c,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(38,d=dt.getDerivedFromVars(dt.json.max_value)),ot(),ot=h(d,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(37,u=dt.getDerivedFromVars(dt.json.thumb_style)),et(),et=h(u,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(36,f=dt.getDerivedFromVars(dt.json.thumb_secondary_style)),tt(),tt=h(f,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(35,g=dt.getDerivedFromVars(dt.json.track_inactive_style)),Q(),Q=h(g,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(34,m=dt.getDerivedFromVars(dt.json.track_active_style)),Z(),Z=h(m,(t=>r(63,M=t)))),1&t.$$.dirty[0]&&(r(33,v=dt.getDerivedFromVars(dt.json.tick_mark_active_style)),Y(),Y=h(v,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(32,y=dt.getDerivedFromVars(dt.json.tick_mark_inactive_style)),X(),X=h(y,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(31,$=dt.getDerivedFromVars(dt.json.thumb_text_style)),K(),K=h($,(t=>r(60,I=t)))),1&t.$$.dirty[0]&&(r(30,_=dt.getDerivedFromVars(dt.json.thumb_secondary_text_style)),G(),G=h(_,(t=>r(59,N=t)))),1&t.$$.dirty[0]&&(r(29,b=dt.getDerivedFromVars(dt.json.accessibility)),J(),J=h(b,(t=>r(58,S=t)))),1&t.$$.dirty[0]&&(r(28,w=dt.getDerivedFromVars(dt.json.secondary_value_accessibility)),q(),q=h(w,(t=>r(57,P=t)))),24&t.$$.dirty[0]|384&t.$$.dirty[2]&&(r(3,Et=Ge(H,Et)),r(4,Ct=Ge(W,Ct)),Lt()),4120&t.$$.dirty[0]|64&t.$$.dirty[2]){const t=ta(U||0,Et,Ct);t!==Mt&&r(12,Mt=t)}if(8216&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=ta(L||0,Et,Ct);t!==zt&&r(13,zt=t)}if(32&t.$$.dirty[0]|16&t.$$.dirty[2]&&r(5,jt=ur(B,Oa,jt)),32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(6,Vt=ur(R,Oa,jt)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(7,Dt=ur(z,Ta,Dt)),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Ft=ur(M,Ta,Ft)),1&t.$$.dirty[2]){let t=ur(T,Oa,Ia);t!==Ia&&r(49,Pt=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(Pt?(r(18,yt=a?Ma(Math.min(Mt,zt),Math.max(Mt,zt)+1,Et,Ct,!0):Ma(Et,Mt,Et,Ct,!0)),Lt()):r(18,yt=[])),1073741824&t.$$.dirty[1]){let t=ur(O,Oa,Ia);t!==Ia&&r(50,St=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(St?(r(19,$t=a?Ma(Math.min(Mt,zt),Math.max(Mt,zt)+1,Et,Ct,!1):Ma(Mt+1,Ct+1,Et,Ct,!0)),Lt()):r(19,$t=[])),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(9,bt=Qi(I,bt)),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,Nt=Qi(N,bt)),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&((null==S?void 0:S.description)?r(20,It=S.description):dt.logError(me(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(21,Ot=P.description):a&&dt.logError(me(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;pt.hasAction()?(dt.logError(me(new Error('Cannot show "slider" inside component with action'))),t=!0):jt===Ia?(dt.logError(me(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===Ia?(dt.logError(me(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===Ia&&(dt.logError(me(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Tt&&r(11,Tt=t)}96&t.$$.dirty[0]&&r(54,x=_e(Math.max(...[jt.width,Vt.width,0].filter(Le)))),96&t.$$.dirty[0]&&r(53,k=_e(Math.max(...[jt.height,Vt.height,0].filter(Le)))),4120&t.$$.dirty[0]&&r(52,E=(Mt-Et)/(Ct-Et)),24600&t.$$.dirty[0]&&r(51,C=a?(zt-Et)/(Ct-Et):void 0),3145728&t.$$.dirty[1]&&r(27,A=void 0!==C?Math.abs(C-E):E),3145728&t.$$.dirty[1]&&r(26,j=void 0!==C?Math.min(C,E):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,V={"--divkit-slider-thumb-width":_e(jt.width),"--divkit-slider-thumb-height":_e(jt.height),"--divkit-slider-thumb-secondary-width":_e(Vt.width),"--divkit-slider-thumb-secondary-height":_e(Vt.height),"--divkit-slider-text-offset-x":(null===r(44,at=null==bt?void 0:bt.offset)||void 0===at?void 0:at.x)?be(bt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,st=null==bt?void 0:bt.offset)||void 0===st?void 0:st.y)?be(bt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,lt=null==Nt?void 0:Nt.offset)||void 0===lt?void 0:lt.x)?be(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,ct=null==Nt?void 0:Nt.offset)||void 0===ct?void 0:ct.y)?be(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":Pt?_e(Pt.width):void 0,"--divkit-slider-tick-active-height":Pt?_e(Pt.height):void 0,"--divkit-slider-tick-active-border-radius":Pt?_e(Pt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?_e(St.width):void 0,"--divkit-slider-tick-inactive-height":St?_e(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?_e(St.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-max-thumb-width":x,"--divkit-slider-max-thumb-height":k,"--divkit-slider-track-part":E,"--divkit-slider-track-secondary-part":C}),32768&t.$$.dirty[0]&&r(24,D={direction:F}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&dt.json&&mt&&(gt&&(ht.unregisterFocusable(gt),r(48,gt=void 0)),dt.json.id&&!dt.fakeElement&&(r(48,gt=dt.json.id),ht.registerFocusable(gt,{focus(){mt&&mt.focus()}})))},[dt,ut,mt,Et,Ct,jt,Vt,Dt,Ft,bt,Nt,Tt,Mt,zt,a,F,vt,xt,yt,$t,It,Ot,s,l,D,V,j,A,w,b,_,$,y,v,m,g,f,u,d,c,ft,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=vt.getBoundingClientRect();let a=(o-i.left)/i.width;"rtl"===F&&(a=1-a);const s=Et+(Ct-Et)*a,l=Math.round(ta(s,Et,Ct));r(17,xt=l<(Mt+zt)/2==Mt<zt)},Rt,Ut,at,st,lt,ct,gt,Pt,St,C,E,k,x,i,o,P,S,N,I,O,T,M,z,R,B,L,U,W,H,t=>Rt(t,"first"),function(t){At[t?"unshift":"push"]((()=>{mt=t,r(2,mt)}))},t=>Rt(t,"second"),function(t){At[t?"unshift":"push"]((()=>{vt=t,r(16,vt)}))}]}const Ra={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__aligner:"divkit-e0491",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function Ba(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=Ba(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function La(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Ua{constructor(t){this.char=t}}class Wa{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ha{constructor(t){La(this,"filters",new Map),La(this,"destructedValue",[]),La(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof Ua)t+=n.char;else if(n instanceof Wa)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof Wa&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.maskData!==t&&e?this.rawValue:null;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(me(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new Wa(null,this.filters.get(e.key),e.placeholder):new Ua(t)})),null!==n&&this.overrideRawValue(n)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=Ba(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof Wa&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof Wa&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof Wa&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof Wa);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof Wa&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof Wa&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Wa);)++e;return e}}class qa extends Ha{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Ja(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class Ga extends Ha{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1?arguments[1]:void 0;super({pattern:"",decoding:[],alwaysVisible:!1}),Ja(this,"currencyFormatter",new Intl.NumberFormat),Ja(this,"decimalSeparator","."),Ja(this,"localeDigits",{}),Ja(this,"trimZeroRegExp",new RegExp("")),this.logError=e,this.initFormatter(t)}updateCurrencyParams(t){const e=this.parseFormat(this.rawValue)||0;this.initFormatter(t);const n=e.toString().replace(".",this.decimalSeparator);this.applyChangeFrom(n)}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(((t,e,n)=>(t[n]=this.currencyFormatter.format(n)[0],t)),{}),this.trimZeroRegExp=new RegExp("^".concat(this.localeDigits[0],"+"))}catch(e){this.onException(me(e,{level:"error",additional:{locale:t}}))}}invalidateMaskDataForFormatted(t){const e=this.currencyFormatter.format(t),n=this.formatPattern(e),r=[{key:"#",filter:"[".concat([...Object.values(this.localeDigits)].join(""),"]"),placeholder:this.localeDigits[0]},{key:this.decimalSeparator,filter:"[".concat(this.decimalSeparator,"]"),placeholder:this.decimalSeparator}];this.updateMaskData({pattern:n,decoding:r,alwaysVisible:this.maskData.alwaysVisible},!1)}overrideRawValue(t){const e=this.parseFormat(t)||0;this.invalidateMaskDataForFormatted(e),super.overrideRawValue(t)}applyChangeFrom(t,e){const n=Ba(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const d=t[r],u=l.length<=i;this.isDigit(d)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(d),a--):l.push(d):u&&-1===n&&r===o?(l.push(this.decimalSeparator),c=!0):!u||d!==this.decimalSeparator||n!==r&&-1!==n||(l.push(this.decimalSeparator),c=!0,n=r),r--}return l.reverse().join("").replace(this.trimZeroRegExp,"")}inDiff(t,e){return t.start<=e&&e<t.start+t.added}isDigit(t){return Boolean(this.localeDigits[t])}onException(t){this.logError(t)}}const Ka=3;function Xa(t){const e=t.textContent;let n=0;return"string"==typeof e&&(n+=e.length,t instanceof HTMLElement&&("DIV"===t.tagName||"BR"===t.tagName)&&++n),n}function Ya(t,e){if(t.nodeType!==Ka)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Xa(r);if(e<=o)return void Ya(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Za(t){let e,n;return e=new Pn({props:{cls:Me("input",Ra,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ns,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{90:e,91:n,92:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?268435456:0)|(n?536870912:0)|(r?1073741824:0)]}]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Me("input",Ra,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),78780&n[0]|8&n[1]|1879048192&n[2]|1&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Qa(t){let e,n,r,o,i;return{c(){e=R("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){q(e,"type",t[7]),q(e,"inputmode",t[8]),q(e,"class",n=Me("input__input",Ra,{"has-custom-focus":t[92],singleline:!0})),q(e,"autocomplete","off"),q(e,"autocapitalize","off"),q(e,"aria-label",t[9]),q(e,"style",r=$e(t[13])),q(e,"placeholder",t[16]),e.value=t[3]},m(n,r){T(n,e,r),t[81](e),o||(i=[H(e,"input",t[36]),H(e,"mousedown",(function(){l(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),H(e,"click",(function(){l(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),H(e,"focus",(function(){l(t[90])&&t[90].apply(this,arguments)})),H(e,"blur",(function(){l(t[91])&&t[91].apply(this,arguments)}))],o=!0)},p(o,i){t=o,128&i[0]&&q(e,"type",t[7]),256&i[0]&&q(e,"inputmode",t[8]),1073741824&i[2]&&n!==(n=Me("input__input",Ra,{"has-custom-focus":t[92],singleline:!0}))&&q(e,"class",n),512&i[0]&&q(e,"aria-label",t[9]),8192&i[0]&&r!==(r=$e(t[13]))&&q(e,"style",r),65536&i[0]&&q(e,"placeholder",t[16]),8&i[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&M(e),t[81](null),o=!1,s(i)}}}function ts(t){let e,n,r,o,i,a,c,d,u,h,p,f,g,m=!t[5]&&t[16]&&es(t);return{c(){e=R("span"),m&&m.c(),n=U(),r=R("span"),o=L("​"),c=U(),d=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var i=Y(e);m&&m.l(i),n=ot(i),r=et(i,"SPAN",{class:!0,"aria-hidden":!0,style:!0});var a=Y(r);o=rt(a,"​"),a.forEach(M),c=ot(i),d=et(i,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Y(d).forEach(M),i.forEach(M),this.h()},h(){q(r,"class",i=Ra.input__aligner),q(r,"aria-hidden","true"),q(r,"style",a=$e(t[12])),q(d,"class",u=Me("input__input",Ra,{"has-custom-focus":t[92],multiline:!0})),q(d,"autocapitalize","off"),q(d,"contenteditable","true"),q(d,"aria-label",t[9]),q(d,"style",h=$e(t[13])),void 0===t[5]&&Nt((()=>t[80].call(d))),q(e,"class",p=Ra["input__scroll-wrapper"])},m(i,a){T(i,e,a),m&&m.m(e,null),I(e,n),I(e,r),I(r,o),I(e,c),I(e,d),t[79](d),void 0!==t[5]&&(d.innerText=t[5]),f||(g=[H(d,"input",t[80]),H(d,"input",t[36]),H(d,"paste",as),H(d,"mousedown",(function(){l(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),H(d,"click",(function(){l(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),H(d,"focus",(function(){l(t[90])&&t[90].apply(this,arguments)})),H(d,"blur",(function(){l(t[91])&&t[91].apply(this,arguments)}))],f=!0)},p(o,i){!(t=o)[5]&&t[16]?m?m.p(t,i):(m=es(t),m.c(),m.m(e,n)):m&&(m.d(1),m=null),4096&i[0]&&a!==(a=$e(t[12]))&&q(r,"style",a),1073741824&i[2]&&u!==(u=Me("input__input",Ra,{"has-custom-focus":t[92],multiline:!0}))&&q(d,"class",u),512&i[0]&&q(d,"aria-label",t[9]),8192&i[0]&&h!==(h=$e(t[13]))&&q(d,"style",h),32&i[0]&&t[5]!==d.innerText&&(d.innerText=t[5])},d(n){n&&M(e),m&&m.d(),t[79](null),f=!1,s(g)}}}function es(t){let e,n,r,o;return{c(){e=R("div"),n=L(t[16]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=Y(e);n=rt(o,t[16]),o.forEach(M),this.h()},h(){q(e,"class",r=Ra.input__placeholder),q(e,"aria-hidden","true"),q(e,"style",o=$e(t[13]))},m(t,r){T(t,e,r),I(e,n)},p(t,r){65536&r[0]&&at(n,t[16]),8192&r[0]&&o!==(o=$e(t[13]))&&q(e,"style",o)},d(t){t&&M(e)}}}function ns(t){let e;function n(t,e){return t[4]?ts:Qa}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function rs(t){let e,n,r=!t[6]&&Za(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[6]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),64&n[0]&&qt(r,1)):(r=Za(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const os="undefined"!=typeof document&&"inputMode"in document.createElement("input"),is={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url",password:"password"};function as(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function ss(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,tt,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,dt=n,ut=n,ht=n,pt=n,ft=n,gt=n,mt=n,vt=n,yt=n,$t=n;var bt;t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt())),t.$$.on_destroy.push((()=>$t()));let{componentContext:xt}=e,{layoutParams:Et}=e;const Ct=kt(ge),jt=Ct.direction;let Vt,Dt;p(t,jt,(t=>r(63,M=t)));let Ft,Pt,Nt,It=!1,Ot=null,Tt="",Mt="",zt=!1,Rt="",Bt=12,Lt="",Ut="",Wt="#000",Ht="",qt="start",Jt="center",Gt="multi_line_text",Kt="text",Xt="",Yt=null,Zt="",Qt="",te="";function ee(t){Dt instanceof HTMLInputElement?r(2,Dt.selectionStart=r(2,Dt.selectionEnd=t,Dt),Dt):Ya(Dt,t)}async function ne(){if(!Dt||!Ot)return;Ot.overrideRawValue(O),l.set(Ot.rawValue),$(s,I=r(3,Tt=r(5,Mt=Ot.value)),I);const t=Ot.cursorPosition;await St(),document.activeElement===Dt&&ee(t)}return _t((()=>{Dt&&Ot&&O&&(Ot.overrideRawValue(O),$(s,I=r(3,Tt=r(5,Mt=Ot.value)),I))})),wt((()=>{Vt&&(Ct.unregisterFocusable(Vt),r(40,Vt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,xt=t.componentContext),"layoutParams"in t&&r(1,Et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(59,o=xt.origJson),268435456&t.$$.dirty[1]&&o&&(r(42,Rt=""),r(43,Bt=12),r(44,Ft=void 0),r(45,Lt=""),r(46,Pt=void 0),r(48,Wt="#000"),r(49,Ht=""),r(50,qt="left"),r(51,Jt="center"),r(52,Gt="multi_line_text"),r(7,Kt="text"),r(8,Nt=void 0)),1&t.$$.dirty[0]&&r(57,i=xt.json.text_variable),1&t.$$.dirty[0]|256&t.$$.dirty[1]&&r(58,a=null===r(39,bt=xt.json.mask)||void 0===bt?void 0:bt.raw_text_variable),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(r(11,s=i&&xt.getVariable(i,"string")||$a("temp","string","")),et(),et=h(s,(t=>r(60,I=t)))),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&(r(10,l=a&&xt.getVariable(a,"string")||$a("temp","string","")),nt(),nt=h(l,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(33,c=xt.getDerivedFromVars(xt.json.hint_text)),yt(),yt=h(c,(t=>r(78,Q=t)))),1&t.$$.dirty[0]&&(r(32,d=xt.getDerivedFromVars(xt.json.hint_color)),vt(),vt=h(d,(t=>r(77,Z=t)))),1&t.$$.dirty[0]&&(r(31,u=xt.getDerivedFromVars(xt.json.font_size)),mt(),mt=h(u,(t=>r(76,Y=t)))),1&t.$$.dirty[0]&&(r(30,f=xt.getDerivedFromVars(xt.json.font_weight)),gt(),gt=h(f,(t=>r(75,X=t)))),1&t.$$.dirty[0]&&(r(29,g=xt.getDerivedFromVars(xt.json.font_family)),ft(),ft=h(g,(t=>r(74,K=t)))),1&t.$$.dirty[0]&&(r(28,m=xt.getDerivedFromVars(xt.json.line_height)),pt(),pt=h(m,(t=>r(73,G=t)))),1&t.$$.dirty[0]&&(r(27,v=xt.getDerivedFromVars(xt.json.letter_spacing)),ht(),ht=h(v,(t=>r(72,J=t)))),1&t.$$.dirty[0]&&(r(26,y=xt.getDerivedFromVars(xt.json.text_color)),ut(),ut=h(y,(t=>r(71,q=t)))),1&t.$$.dirty[0]&&(r(25,_=xt.getDerivedFromVars(xt.json.highlight_color)),dt(),dt=h(_,(t=>r(70,H=t)))),1&t.$$.dirty[0]&&(r(24,b=xt.getDerivedFromVars(xt.json.text_alignment_horizontal)),ct(),ct=h(b,(t=>r(69,W=t)))),1&t.$$.dirty[0]&&(r(23,w=xt.getDerivedFromVars(xt.json.text_alignment_vertical)),lt(),lt=h(w,(t=>r(68,U=t)))),1&t.$$.dirty[0]&&(r(22,x=xt.getDerivedFromVars(xt.json.keyboard_type)),st(),st=h(x,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(21,k=xt.getDerivedFromVars(xt.json.mask)),at(),at=h(k,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(20,E=xt.getDerivedFromVars(xt.json.max_visible_lines)),it(),it=h(E,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(19,C=xt.getDerivedFromVars(xt.json.paddings)),ot(),ot=h(C,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(18,A=xt.getDerivedFromVars(xt.json.accessibility)),rt(),rt=h(A,(t=>r(62,T=t)))),1&t.$$.dirty[0]&&(r(17,j=xt.getDerivedFromVars(xt.json.select_all_on_focus)),$t(),$t=h(j,(t=>r(34,tt=t)))),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(i?r(6,zt=!1):(r(6,zt=!0),xt.logError(me(new Error('Missing "text_variable" in "input"'))))),16&t.$$.dirty[2]&&("fixed_length"===(null==(e=B)?void 0:e.type)?r(41,Ot=function(t,e,n){if("string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new qa(r,e)}return n||null}(e,xt.logError,Ot)):"currency"===(null==e?void 0:e.type)&&r(41,Ot=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new Ga(t.locale,e)}(e,xt.logError,Ot)),Ot&&ne()),8&t.$$.dirty[0]|536871936&t.$$.dirty[1]&&(Ot||Tt===I||r(3,Tt=r(5,Mt=I))),1073742848&t.$$.dirty[1]&&Ot&&Ot.rawValue!==O&&ne(),65536&t.$$.dirty[2]&&r(16,V=Q),2048&t.$$.dirty[1]|32768&t.$$.dirty[2]&&r(42,Rt=xe(Z,1,Rt)),4096&t.$$.dirty[1]|16384&t.$$.dirty[2]&&r(43,Bt=Nn(Y,Bt)),8192&t.$$.dirty[1]|12288&t.$$.dirty[2]&&(r(44,Ft=On(X,Ft)),r(45,Lt=K&&"string"==typeof K?Ct.typefaceProvider(K,{fontWeight:Ft||400}):"")),4096&t.$$.dirty[1]|2048&t.$$.dirty[2]){const t=G;un(t)&&r(46,Pt=t/Bt)}var e;1024&t.$$.dirty[2]&&Be(J)&&r(47,Ut=_e(J)),131072&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(48,Wt=xe(q,1,Wt)),262144&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(49,Ht=xe(H,1,Ht)),524288&t.$$.dirty[1]|130&t.$$.dirty[2]&&r(50,qt=Ln(W,M,qt)),1048576&t.$$.dirty[1]|64&t.$$.dirty[2]&&r(51,Jt=Un(U,Jt)),48&t.$$.dirty[2]&&(L&&L in is&&(r(7,Kt=is[L]),r(52,Gt=L)),"currency"===(null==B?void 0:B.type)&&(r(7,Kt=os?"text":"tel"),r(8,Nt="decimal"))),2097152&t.$$.dirty[1]&&r(4,D="multi_line_text"===Gt),8425472&t.$$.dirty[1]|14&t.$$.dirty[2]&&(un(R)?r(53,Xt="calc(".concat(R*(Pt||1.25)*(Bt/10)+"em"," + ").concat(be(Ne(null==z?void 0:z.top,0)+Ne(null==z?void 0:z.bottom,0)),")")):r(53,Xt=""),r(54,Yt=Xe(z||void 0,Yt)),r(55,Zt=Yt?Re({top:(Number(Yt.top)||0)/Bt*10,right:(Number("ltr"===M?Yt.end:Yt.start)||Number(Yt.right)||0)/Bt*10,bottom:(Number(Yt.bottom)||0)/Bt*10,left:(Number("ltr"===M?Yt.start:Yt.end)||Number(Yt.left)||0)/Bt*10},M):""),r(56,Qt=Yt?Re({top:(Number(Yt.top)||0)/Bt*10,bottom:(Number(Yt.bottom)||0)/Bt*10},M):"")),1&t.$$.dirty[0]|1&t.$$.dirty[2]&&((null==T?void 0:T.description)?r(9,te=T.description):xt.logError(me(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|1835008&t.$$.dirty[1]&&r(15,F={"highlight-color":Boolean(Ht),multiline:D,"alignment-horizontal":qt,"alignment-vertical":Jt}),4712448&t.$$.dirty[1]&&r(14,P={"--divkit-input-hint-color":Rt,"--divkit-input-highlight-color":Ht,"--divkit-input-line-height":Pt,"font-weight":Ft,"font-family":Lt,"letter-spacing":Ut,color:Wt,"max-height":Xt}),16781312&t.$$.dirty[1]&&r(13,S={"font-size":_e(Bt),padding:Zt}),33558528&t.$$.dirty[1]&&r(12,N={"font-size":_e(Bt),padding:Qt}),5&t.$$.dirty[0]|512&t.$$.dirty[1]&&Dt&&xt.json&&(Vt&&(Ct.unregisterFocusable(Vt),r(40,Vt=void 0)),xt.json.id&&!xt.fakeElement&&(r(40,Vt=xt.json.id),Ct.registerFocusable(Vt,{focus(){Dt&&Dt.focus()}})))},[xt,Et,Dt,Tt,D,Mt,zt,Kt,Nt,te,l,s,N,S,P,F,V,j,A,C,E,k,x,w,b,_,y,v,m,g,f,u,d,c,tt,jt,function(t){let e=(D?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Tt!==e&&(r(3,Tt=r(5,Mt=e)),s.setValue(e),Ot&&async function(){if(!Dt||!Ot)return;Ot.applyChangeFrom(Tt,Dt instanceof HTMLInputElement?null===Dt.selectionEnd?void 0:Dt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Xa(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Xa(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Ka||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Dt)),l.set(Ot.rawValue),$(s,I=r(3,Tt=r(5,Mt=Ot.value)),I);const t=Ot.cursorPosition;await St(),document.activeElement===Dt&&ee(t)}())},function(){It=!1,setTimeout((()=>{It=!0}),250)},function(){if(!It)if(Dt instanceof HTMLInputElement)Dt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Dt),t&&(t.removeAllRanges(),t.addRange(e))}},bt,Vt,Ot,Rt,Bt,Ft,Lt,Pt,Ut,Wt,Ht,qt,Jt,Gt,Xt,Yt,Zt,Qt,i,a,o,I,O,T,M,z,R,B,L,U,W,H,q,J,G,K,X,Y,Z,Q,function(t){At[t?"unshift":"push"]((()=>{Dt=t,r(2,Dt)}))},function(){Mt=this.innerText,r(5,Mt),r(41,Ot),r(3,Tt),r(60,I)},function(t){At[t?"unshift":"push"]((()=>{Dt=t,r(2,Dt)}))}]}const ls={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72","select__select_has-custom-focused":"divkit-a46ad","has-custom-focused":"divkit-fc5dc",select__option:"divkit-e774b"};function cs(t,e,n){const r=t.slice();return r[55]=e[n],r}function ds(t){let e,n;return e=new Pn({props:{cls:Me("select",ls,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[hs,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{52:e,53:n,54:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?2097152:0)|(n?4194304:0)|(r?8388608:0)]}]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Me("select",ls,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|148897792&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function us(t){let e,n,r,o,i=(t[55].text||t[55].value)+"";return{c(){e=R("option"),n=L(i),this.h()},l(t){e=et(t,"OPTION",{class:!0});var r=Y(e);n=rt(r,i),r.forEach(M),this.h()},h(){q(e,"class",r=ls.select__option),e.__value=o=t[55].value,st(e,e.__value)},m(t,r){T(t,e,r),I(e,n)},p(t,r){16&r[0]&&i!==(i=(t[55].text||t[55].value)+"")&&at(n,i),16&r[0]&&o!==(o=t[55].value)&&(e.__value=o,st(e,e.__value))},d(t){t&&M(e)}}}function hs(t){let e,n,r,o,i,a,c,d,u,h,p=(t[3]||t[23]||"​")+"",f=Xt(t[4]),g=[];for(let e=0;e<f.length;e+=1)g[e]=us(cs(t,f,e));return{c(){e=R("span"),n=L(p),i=U(),a=R("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=Y(e);n=rt(r,p),r.forEach(M),i=ot(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var o=Y(a);for(let t=0;t<g.length;t+=1)g[t].l(o);o.forEach(M),this.h()},h(){q(e,"class",r=ls["select__select-text"]),q(e,"style",o=$e(t[9])),q(e,"aria-hidden","true"),q(a,"class",c=Me("select__select",ls,{"has-custom-focus":t[52]})),q(a,"aria-label",t[7]),q(a,"style",d=$e(t[8])),void 0===t[5]&&Nt((()=>t[49].call(a)))},m(r,o){T(r,e,o),I(e,n),T(r,i,o),T(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[48](a),ct(a,t[5],!0),u||(h=[H(a,"change",t[49]),H(a,"focus",(function(){l(t[53])&&t[53].apply(this,arguments)})),H(a,"blur",(function(){l(t[54])&&t[54].apply(this,arguments)}))],u=!0)},p(r,i){if(t=r,8388616&i[0]&&p!==(p=(t[3]||t[23]||"​")+"")&&at(n,p),512&i[0]&&o!==(o=$e(t[9]))&&q(e,"style",o),16&i[0]){let e;for(f=Xt(t[4]),e=0;e<f.length;e+=1){const n=cs(t,f,e);g[e]?g[e].p(n,i):(g[e]=us(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}2097152&i[1]&&c!==(c=Me("select__select",ls,{"has-custom-focus":t[52]}))&&q(a,"class",c),128&i[0]&&q(a,"aria-label",t[7]),256&i[0]&&d!==(d=$e(t[8]))&&q(a,"style",d),48&i[0]&&ct(a,t[5])},d(n){n&&(M(e),M(i),M(a)),z(g,n),t[48](null),u=!1,s(h)}}}function ps(t){let e,n,r=!t[6]&&ds(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[6]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),64&n[0]&&qt(r,1)):(r=ds(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function fs(t,e,r){let o,i,a,s,l,c,d,u,f,g,m,v,y,$,_,b,w,x,k,E,C,A,j,V,D,F,P,S,N,I,O,T=n,M=n,z=n,R=n,B=n,L=n,U=n,W=n,H=n,q=n,J=n;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const X=kt(ge),Y=X.direction;let Z,Q;p(t,Y,(t=>r(46,S=t)));let tt,et,nt=!1,rt="",ot=null,it="",at="rgba(0,0,0,.45)",st=12,lt="",ct="",dt="#000",ut="";return wt((()=>{Z&&(X.unregisterFocusable(Z),r(25,Z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(37,o=G.origJson),64&t.$$.dirty[1]&&o&&(r(26,ot=null),r(28,at="rgba(0,0,0,.45)"),r(29,st=12),r(30,tt=void 0),r(31,lt=""),r(32,et=void 0),r(33,ct=""),r(34,dt="#000"),r(7,ut="")),1&t.$$.dirty[0]&&r(35,i=G.json.value_variable),1&t.$$.dirty[0]&&r(36,a=G.json.options),32&t.$$.dirty[1]&&r(4,s=Array.isArray(a)&&a.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,l=i&&G.getVariable(i,"string")||$a("temp","string","")),q(),q=h(l,(t=>r(5,I=t)))),1&t.$$.dirty[0]&&(r(21,c=G.getDerivedFromVars(G.json.paddings)),H(),H=h(c,(t=>r(47,N=t)))),1&t.$$.dirty[0]&&(r(20,d=G.getDerivedFromVars(G.json.hint_text)),J(),J=h(d,(t=>r(23,O=t)))),1&t.$$.dirty[0]&&(r(19,u=G.getDerivedFromVars(G.json.hint_color)),W(),W=h(u,(t=>r(45,P=t)))),1&t.$$.dirty[0]&&(r(18,f=G.getDerivedFromVars(G.json.font_size)),U(),U=h(f,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(17,g=G.getDerivedFromVars(G.json.font_weight)),L(),L=h(g,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(16,m=G.getDerivedFromVars(G.json.font_family)),B(),B=h(m,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(15,v=G.getDerivedFromVars(G.json.line_height)),R(),R=h(v,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(14,y=G.getDerivedFromVars(G.json.letter_spacing)),z(),z=h(y,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(13,$=G.getDerivedFromVars(G.json.text_color)),M(),M=h($,(t=>r(39,C=t)))),1&t.$$.dirty[0]&&(r(12,_=G.getDerivedFromVars(G.json.accessibility)),T(),T=h(_,(t=>r(38,E=t)))),17&t.$$.dirty[0]&&(Array.isArray(s)&&s.length||G.logError(me(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(i?r(6,nt=!1):(r(6,nt=!0),G.logError(me(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=s.find((t=>t.value===I));t?r(3,rt=("string"==typeof t.text?t.text:t.value)||""):(r(3,rt=""),I&&G.logError(me(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(29,st=Nn(F,st)),603979776&t.$$.dirty[0]|98304&t.$$.dirty[1]&&(r(26,ot=Xe(N||void 0,ot)),r(27,it=ot?Re({top:(Number(ot.top)||0)/st*10,right:(Number("ltr"===S?ot.end:ot.start)||Number(ot.right)||0)/st*10,bottom:(Number(ot.bottom)||0)/st*10,left:(Number("ltr"===S?ot.start:ot.end)||Number(ot.left)||0)/st*10},S):"")),268435456&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(28,at=xe(P,1,at)),1073741824&t.$$.dirty[0]|6144&t.$$.dirty[1]&&(r(30,tt=On(D,tt)),r(31,lt=V&&"string"==typeof V?X.typefaceProvider(V,{fontWeight:tt||400}):"")),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=j;un(t)&&r(32,et=t/st)}536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&Be(A)&&r(33,ct=_e(A/st*10)),264&t.$$.dirty[1]&&r(34,dt=xe(C,1,dt)),1&t.$$.dirty[0]|128&t.$$.dirty[1]&&((null==E?void 0:E.description)?r(7,ut=E.description):G.logError(me(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,b={hint:!rt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,w={"--divkit-input-hint-color":at,"font-weight":tt,"font-family":lt,color:dt}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,x={padding:it,"font-size":_e(st),"line-height":et,"letter-spacing":ct}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,k={"font-size":_e(st),"line-height":et,"letter-spacing":ct}),33554437&t.$$.dirty[0]&&G.json&&Q&&(Z&&(X.unregisterFocusable(Z),r(25,Z=void 0)),G.json.id&&!G.fakeElement&&(r(25,Z=G.json.id),X.registerFocusable(Z,{focus(){Q&&Q.focus()}})))},[G,K,Q,rt,s,I,nt,ut,k,x,w,b,_,$,y,v,m,g,f,u,d,c,l,O,Y,Z,ot,it,at,st,tt,lt,et,ct,dt,i,a,o,E,C,A,j,V,D,F,P,S,N,function(t){At[t?"unshift":"push"]((()=>{Q=t,r(2,Q)}))},function(){I=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),l.set(I),r(4,s),r(36,a),r(0,G)}]}const gs={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function ms(t,e,n){const r=t.slice();return r[47]=e[n],r}function vs(t,e,n){const r=t.slice();return r[47]=e[n],r}function ys(t){let e,n;return e=new Pn({props:{cls:Me("video",gs,t[12]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[Es]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Me("video",gs,t[12])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8184&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function $s(t){let e,n,r,o,i,a,l=Xt(t[4]),c=[];for(let e=0;e<l.length;e+=1)c[e]=ws(ms(t,l,e));return{c(){e=R("video");for(let t=0;t<c.length;t+=1)c[t].c();this.h()},l(t){e=et(t,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var n=Y(e);for(let t=0;t<c.length;t+=1)c[t].l(n);n.forEach(M),this.h()},h(){q(e,"class",n=gs.video__video),q(e,"style",r=$e(t[11])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],q(e,"poster",t[9]),q(e,"preload",o=t[8]?"metadata":"auto")},m(n,r){T(n,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);t[41](e),i||(a=[H(e,"timeupdate",t[21]),H(e,"ended",t[22]),H(e,"playing",t[23]),H(e,"pause",t[24]),H(e,"waiting",t[25]),H(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(l=Xt(t[4]),r=0;r<l.length;r+=1){const o=ms(t,l,r);c[r]?c[r].p(o,n):(c[r]=ws(o),c[r].c(),c[r].m(e,null))}for(;r<c.length;r+=1)c[r].d(1);c.length=l.length}2048&n[0]&&r!==(r=$e(t[11]))&&q(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),512&n[0]&&q(e,"poster",t[9]),256&n[0]&&o!==(o=t[8]?"metadata":"auto")&&q(e,"preload",o)},d(n){n&&M(e),z(c,n),t[41](null),i=!1,s(a)}}}function _s(t){let e,n,r,o,i,a,l,c,d="".concat(t[10],"%"),u=Xt(t[4]),h=[];for(let e=0;e<u.length;e+=1)h[e]=ks(vs(t,u,e));return{c(){e=R("div"),n=R("video");for(let t=0;t<h.length;t+=1)h[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"VIDEO",{class:!0,style:!0,poster:!0,preload:!0});var o=Y(n);for(let t=0;t<h.length;t+=1)h[t].l(o);o.forEach(M),r.forEach(M),this.h()},h(){q(n,"class",r=gs.video__video),q(n,"style",o=$e(t[11])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],q(n,"poster",t[9]),q(n,"preload",i=t[8]?"metadata":"auto"),q(e,"class",a=gs["video__aspect-wrapper"]),lt(e,"padding-bottom",d)},m(r,o){T(r,e,o),I(e,n);for(let t=0;t<h.length;t+=1)h[t]&&h[t].m(n,null);t[40](n),l||(c=[H(n,"timeupdate",t[21]),H(n,"ended",t[22]),H(n,"playing",t[23]),H(n,"pause",t[24]),H(n,"waiting",t[25]),H(n,"error",t[26])],l=!0)},p(t,r){if(67108880&r[0]){let e;for(u=Xt(t[4]),e=0;e<u.length;e+=1){const o=vs(t,u,e);h[e]?h[e].p(o,r):(h[e]=ks(o),h[e].c(),h[e].m(n,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=u.length}2048&r[0]&&o!==(o=$e(t[11]))&&q(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),512&r[0]&&q(n,"poster",t[9]),256&r[0]&&i!==(i=t[8]?"metadata":"auto")&&q(n,"preload",i),1024&r[0]&&d!==(d="".concat(t[10],"%"))&&lt(e,"padding-bottom",d)},d(n){n&&M(e),z(h,n),t[40](null),l=!1,s(c)}}}function bs(t){let e,n,r,o,i;return{c(){e=R("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){d(e.src,n=t[47].src)||q(e,"src",n),q(e,"type",r=t[47].type)},m(n,r){T(n,e,r),o||(i=H(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!d(e.src,n=t[47].src)&&q(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&q(e,"type",r)},d(t){t&&M(e),o=!1,i()}}}function ws(t){let e,n=t[47],r=bs(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){16&o[0]&&u(n,n=t[47])?(r.d(1),r=bs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&M(e),r.d(t)}}}function xs(t){let e,n,r,o,i;return{c(){e=R("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){d(e.src,n=t[47].src)||q(e,"src",n),q(e,"type",r=t[47].type)},m(n,r){T(n,e,r),o||(i=H(e,"error",t[26]),o=!0)},p(t,o){16&o[0]&&!d(e.src,n=t[47].src)&&q(e,"src",n),16&o[0]&&r!==(r=t[47].type)&&q(e,"type",r)},d(t){t&&M(e),o=!1,i()}}}function ks(t){let e,n=t[47],r=xs(t);return{c(){r.c(),e=W()},l(t){r.l(t),e=W()},m(t,n){r.m(t,n),T(t,e,n)},p(t,o){16&o[0]&&u(n,n=t[47])?(r.d(1),r=xs(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&M(e),r.d(t)}}}function Es(t){let e;function n(t,e){return t[12].aspect?_s:$s}let r=n(t),o=r(t);return{c(){o.c(),e=W()},l(t){o.l(t),e=W()},m(t,n){o.m(t,n),T(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&M(e),o.d(t)}}}function Cs(t){let e,n,r=!t[2]&&ys(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[2]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&qt(r,1)):(r=ys(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function As(t,e,r){let o,i,a,s,l,c,d,u,p,f,g,m,v,y,$,_,b,w,x,k,E=n,C=n,A=n,j=n,V=n,D=n,F=n,P=n;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P()));let{componentContext:S}=e,{layoutParams:N}=e;const I=kt(ge);let O,T,M,z,R=!1,B=!1,L=[],U=!1,W=!1,H=!1,q=!1,J="fit",G="0";function K(t){B?B=!1:T&&r(3,T.currentTime=Number(t)/1e3,T)}function X(){null==T||T.pause()}function Y(){const t=null==T?void 0:T.play();t&&t.catch((t=>{S.logError(me(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return wt((()=>{O&&(I.unregisterInstance(O),r(27,O=void 0)),z&&(z(),r(29,z=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,S=t.componentContext),"layoutParams"in t&&r(1,N=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&S.json&&(r(5,U=!1),r(6,W=!1),r(7,H=!1),r(8,q=!1),r(9,M=void 0),r(28,J="fit")),1&t.$$.dirty[0]&&r(31,o=S.json.elapsed_time_variable),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(30,i=o&&S.getVariable(o,"integer")||$a("temp","integer",0)),1610612736&t.$$.dirty[0]&&i&&(z&&z(),r(29,z=i.subscribe(K))),1&t.$$.dirty[0]&&(r(20,a=S.getDerivedFromVars(S.json.video_sources)),P(),P=h(a,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(19,s=S.getDerivedFromVars(S.json.repeatable)),F(),F=h(s,(t=>r(38,x=t)))),1&t.$$.dirty[0]&&(r(18,l=S.getDerivedFromVars(S.json.autostart)),E(),E=h(l,(t=>r(32,v=t)))),1&t.$$.dirty[0]&&(r(17,c=S.getDerivedFromVars(S.json.muted)),D(),D=h(c,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(16,d=S.getDerivedFromVars(S.json.preload_required)),V(),V=h(d,(t=>r(36,b=t)))),1&t.$$.dirty[0]&&(r(15,u=S.getDerivedFromVars(S.json.preview)),j(),j=h(u,(t=>r(35,_=t)))),1&t.$$.dirty[0]&&(r(14,p=S.getDerivedFromVars(S.json.scale)),A(),A=h(p,(t=>r(34,$=t)))),1&t.$$.dirty[0]&&(r(13,f=S.getDerivedFromVars(S.json.aspect)),C(),C=h(f,(t=>r(33,y=t)))),17&t.$$.dirty[0]|256&t.$$.dirty[1]&&(r(4,(e=k,n=L,L=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),L.length?r(2,R=!1):(r(2,R=!0),S.logError(me(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(5,U=Wn(x,U)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,W=Wn(v,W)),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,H=Wn(w,H)),256&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(8,q=Wn(b,q)),512&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(9,M="string"==typeof _?Br(_):M),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,J=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}($)||J),4&t.$$.dirty[1]){const t=null==y?void 0:y.ratio;t&&un(t)?r(10,G=(100/Number(t)).toFixed(2)):r(10,G="0")}134217733&t.$$.dirty[0]&&S.json&&(O&&(I.unregisterInstance(O),r(27,O=void 0)),!S.json.id||R||S.fakeElement||(r(27,O=S.json.id),I.registerInstance(O,{pause:X,start:Y}))),9&t.$$.dirty[0]|2&t.$$.dirty[1]&&S.json&&v&&T&&Y(),1024&t.$$.dirty[0]&&r(12,g={aspect:"0"!==G}),268435456&t.$$.dirty[0]&&r(11,m={"object-fit":J})},[S,N,R,T,L,U,W,H,q,M,G,m,g,f,p,u,d,c,l,s,a,function(){T&&(B=!0,i.setValue(Math.floor(1e3*T.currentTime)))},function(){const t=S.getJsonWithVars(S.json.end_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(S.json.resume_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(S.json.pause_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(S.json.buffering_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(S.json.fatal_actions);S.execAnyActions(t)},O,J,z,i,o,v,y,$,_,b,w,x,k,function(t){At[t?"unshift":"push"]((()=>{T=t,r(3,T)}))},function(t){At[t?"unshift":"push"]((()=>{T=t,r(3,T)}))}]}function js(t,e,n){const r=t.slice();return r[12]=e[n],r}function Vs(t){let e,n;return e=new Pn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[Is]},$$scope:{ctx:t}}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ds(t){let e,n,r=[t[7]],i={};for(let t=0;t<r.length;t+=1)i=o(i,r[t]);return{c(){e=R("template"),n=new ut(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=Y(e.content);n=function(t,e){const n=it(t,"HTML_TAG_START",0),r=it(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new ut(false);Z(t);const o=t.splice(n,r-n+1);M(o[0]),M(o[o.length-1]);const i=o.slice(1,o.length-1);for(const e of i)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new ut(false,i)}(r),r.forEach(M),this.h()},h(){n.a=null,G(e,i)},m(r,o){T(r,e,o),n.m(t[6],e.content)},p(t,o){64&o&&n.p(t[6]),G(e,i=Qt(r,[128&o&&t[7]]))},d(t){t&&M(e)}}}function Fs(t){let e,r,o=t[4],i=Ss(t);return{c(){i.c(),e=W()},l(t){i.l(t),e=W()},m(t,n){i.m(t,n),T(t,e,n),r=!0},p(t,r){16&r&&u(o,o=t[4])?(Wt(),Jt(i,1,1,n),Ht(),i=Ss(t),i.c(),qt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(qt(i),r=!0)},o(t){Jt(i),r=!1},d(t){t&&M(e),i.d(t)}}}function Ps(t){let e,n;return e=new Ls({props:{componentContext:t[12]}}),{c(){oe(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){ae(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(qt(e.$$.fragment,t),n=!0)},o(t){Jt(e.$$.fragment,t),n=!1},d(t){se(e,t)}}}function Ss(t){let e,n,r=Xt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ps(js(t,r,e));const i=t=>Jt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=W()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=W()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=Xt(t[8]),a=0;a<r.length;a+=1){const i=js(t,r,a);o[a]?(o[a].p(i,n),qt(o[a],1)):(o[a]=Ps(i),o[a].c(),qt(o[a],1),o[a].m(e.parentNode,e))}for(Wt(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)qt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Jt(o[t]);n=!1},d(t){t&&M(e),z(o,t)}}}function Ns(t){let e,n,r,i=t[6]&&Ds(t),a=!t[3]&&t[4]&&Fs(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=R(t[2].element),i&&i.c(),n=U(),a&&a.c(),this.h()},l(r){e=et(r,(t[2].element||"null").toUpperCase(),{});var o=Y(e);i&&i.l(o),n=ot(o),a&&a.l(o),o.forEach(M),this.h()},h(){X(t[2].element)(e,l)},m(o,s){T(o,e,s),i&&i.m(e,null),I(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=Ds(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&qt(a,1)):(a=Fs(t),a.c(),qt(a,1),a.m(e,null)):a&&(Wt(),Jt(a,1,1,(()=>{a=null})),Ht()),X(t[2].element)(e,l=Qt(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(qt(a),r=!0)},o(t){Jt(a),r=!1},d(n){n&&M(e),i&&i.d(),a&&a.d(),t[10](null)}}}function Is(t){let e,r,o=t[2].element,i=t[2].element&&Ns(t);return{c(){i&&i.c(),e=W()},l(t){i&&i.l(t),e=W()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){t[2].element?o?u(o,t[2].element)?(i.d(1),i=Ns(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=Ns(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){Jt(i,t),r=!1},d(t){t&&M(e),i&&i.d(t)}}}function Os(t){let e,n,r=t[2]&&Vs(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&qt(r,1)):(r=Vs(t),r.c(),qt(r,1),r.m(e.parentNode,e)):r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ts(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=kt(ge);let c,d=null,u="",h={},p=!1;return _t((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,d=l.customComponents.get(a.json.custom_type)),"function"==typeof d.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,u=d.template({props:a.json.custom_props,variables:e}))}else d.template&&"string"==typeof d.template?n(6,u=d.template):n(6,u="");n(7,h={shadowrootmode:d.shadowRootMode||"open"})}else n(2,d=null),n(6,u=";"),a.logError(me(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,p=!1):(n(3,p=!0),a.logError(me(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!p&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,d,p,r,c,u,h,o,i,function(t){At[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const Ms={};function zs(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=ht(o,i(t))),{c(){e&&oe(e.$$.fragment),n=W()},l(t){e&&ie(e.$$.fragment,t),n=W()},m(t,o){e&&ae(e,t,o),T(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){Wt();const t=e;Jt(t.$$.fragment,1,0,(()=>{se(t,1)})),Ht()}o?(e=ht(o,i(t)),oe(e.$$.fragment),qt(e.$$.fragment,1),ae(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&qt(e.$$.fragment,t),r=!0)},o(t){e&&Jt(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&se(e,t)}}}function Rs(t){let e,n,r=t[2]&&zs(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&qt(r,1)):(r=zs(t),r.c(),qt(r,1),r.m(e.parentNode,e)):r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Bs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=kt(ge);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Ms[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(me(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Ms.text=class extends de{constructor(t){super(),le(this,t,or,rr,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.container=class extends de{constructor(t){super(),le(this,t,Sr,jr,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.separator=class extends de{constructor(t){super(),le(this,t,zr,Mr,u,{componentContext:0,layoutParams:1})}},Ms.image=Yr,Ms.gif=Yr,Ms.grid=class extends de{constructor(t){super(),le(this,t,lo,ao,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.gallery=class extends de{constructor(t){super(),le(this,t,ko,xo,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.tabs=class extends de{constructor(t){super(),le(this,t,Bo,Ro,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Ms.state=class extends de{constructor(t){super(),le(this,t,Pi,Di,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.pager=class extends de{constructor(t){super(),le(this,t,Ui,Bi,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.indicator=class extends de{constructor(t){super(),le(this,t,Yi,Ki,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.slider=class extends de{constructor(t){super(),le(this,t,za,Na,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Ms.input=class extends de{constructor(t){super(),le(this,t,ss,rs,u,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Ms.select=class extends de{constructor(t){super(),le(this,t,fs,ps,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.video=class extends de{constructor(t){super(),le(this,t,As,Cs,u,{componentContext:0,layoutParams:1},null,[-1,-1])}},Ms.custom=class extends de{constructor(t){super(),le(this,t,Ts,Os,u,{componentContext:0,layoutParams:1})}};const Ls=class extends de{constructor(t){super(),le(this,t,Bs,Rs,u,{componentContext:0,layoutParams:1})}},Us={"root-svg-filters":"divkit-dc22b"};function Ws(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Hs(t){let e,n,r,o=Xt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ks(Ws(t,o,e));return{c(){e=B("svg"),n=B("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=Y(e);n=nt(r,"defs",{});var o=Y(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(M),r.forEach(M),this.h()},h(){q(e,"class",r=Us["root-svg-filters"]),q(e,"aria-hidden","true")},m(t,r){T(t,e,r),I(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=Xt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=Ws(t,o,r);i[r]?i[r].p(a,e):(i[r]=Ks(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&M(e),z(i,t)}}}function qs(t){let e,n;return{c(){e=B("feBlend"),this.h()},l(t){e=nt(t,"feBlend",{in2:!0,mode:!0}),Y(e).forEach(M),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&q(e,"mode",n)},d(t){t&&M(e)}}}function Js(t){let e;return{c(){e=B("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),Y(e).forEach(M),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"operator","arithmetic"),q(e,"k1","1"),q(e,"k2","0"),q(e,"k3","0"),q(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&M(e)}}}function Gs(t){let e,n;return{c(){e=B("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0}),Y(e).forEach(M),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"operator",n=t[3].split("_")[1])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&q(e,"operator",n)},d(t){t&&M(e)}}}function Ks(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Gs:"multiply"===t[3]?Js:qs}let a=i(t),s=a(t);return{c(){e=B("filter"),n=B("feFlood"),s.c(),this.h()},l(t){e=nt(t,"filter",{id:!0});var r=Y(e);n=nt(r,"feFlood",{"flood-color":!0}),Y(n).forEach(M),s.l(r),r.forEach(M),this.h()},h(){q(n,"flood-color",r=t[2]),q(e,"id",o=t[0][t[1]])},m(t,r){T(t,e,r),I(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&q(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&q(e,"id",o)},d(t){t&&M(e),s.d()}}}function Xs(t){let e,r=Object.keys(t[0]).length,o=r&&Hs(t);return{c(){o&&o.c(),e=W()},l(t){o&&o.l(t),e=W()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Hs(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&M(e),o&&o.d(t)}}}function Ys(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Zs=class extends de{constructor(t){super(),le(this,t,Ys,Xs,u,{svgFiltersMap:0})}};function Qs(t,e,n,r){const o=n[t.type];if(!o)return r(me(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function tl(){}function el(t){return{subscribe:e=>(e(t),tl)}}function nl(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function rl(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function ol(t){if(t.every((t=>"string"==typeof t)))return{type:"StringLiteral",value:t.join("")};let e=t.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]).reduce(((t,e)=>("string"==typeof e?t.quasis.push({type:"StringLiteral",value:e}):(t.quasis.length===t.expressions.length&&t.quasis.push({type:"StringLiteral",value:""}),t.expressions.push(e)),t)),{type:"TemplateLiteral",quasis:[],expressions:[]});return e.quasis.length===e.expressions.length&&e.quasis.push({type:"StringLiteral",value:""}),e}function il(t){try{return ia(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function al(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function sl(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,sl.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function ll(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function cl(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:De,JsonStringContents:function(){var t,e,n;for(t=ve,e=[],n=Fe();n!==r;)e.push(n),n=Fe();return ye=t,e=St(e)}},a=De,s="@{",l="}",c="@{}",d="\\",u="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",_="<=",b="<",w="+",x="-",k="/",E="*",C="%",A="!",j="(",V=")",D=",",F="'",P=".",S="e",N="E",I="true",O="false",T=/^[^}]/,M=/^[^'}]/,z=/^[0-9]/,R=/^[a-zA-Z_0-9.]/,B=/^[a-zA-Z_]/,L=/^[ \t\r\n]/,U=ke("@{",!1),W=ke("}",!1),H=ke("@{}",!1),q=ke("\\",!1),J={type:"any"},G=Ee(["}"],!0,!1),K=ke("?",!1),X=ke(":",!1),Y=ke("!:",!1),Z=ke("||",!1),Q=ke("&&",!1),tt=ke("==",!1),et=ke("!=",!1),nt=ke(">=",!1),rt=ke(">",!1),ot=ke("<=",!1),it=ke("<",!1),at=ke("+",!1),st=ke("-",!1),lt=ke("/",!1),ct=ke("*",!1),dt=ke("%",!1),ut=ke("!",!1),ht=ke("(",!1),pt=ke(")",!1),ft=ke(",",!1),gt=Ce("string"),mt=ke("'",!1),vt=Ee(["'","}"],!0,!1),yt=Ce("integer"),$t=Ee([["0","9"]],!1,!1),_t=Ce("number"),bt=ke(".",!1),wt=ke("e",!1),xt=ke("E",!1),kt=Ce("boolean"),Et=ke("true",!1),Ct=ke("false",!1),At=Ee([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),jt=Ce("identifier"),Vt=Ee([["a","z"],["A","Z"],"_"],!1,!1),Dt=Ce("whitespace"),Ft=Ee([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},St=function(t){return ol(t)},Nt=function(t){return t},It=function(){return""},Ot=function(){return xe()},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Rt=function(t){return al(t)},Bt=function(){throw new Error("Error tokenizing '"+t+"'.")},Lt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Ut=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Wt=function(t,e){return rl(t,e)},Ht=function(t,e){return rl(t,e)},qt=function(t,e){return nl(t,e)},Jt=function(t,e){return nl(t,e)},Gt=function(t,e){return nl(t,e)},Kt=function(t,e){return nl(t,e)},Xt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Yt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Zt=function(t){return{type:"Variable",id:t}},Qt=function(t,e){return[t,...e]},te=function(t){return t},ee=function(t){return t},ne=function(t){return ol(t)},re=function(t){return t},oe=function(){return""},ie=function(){return xe()},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(t){return t},ce=function(t){return al(t)},de=function(){throw new Error("Error tokenizing '"+t+"'.")},ue=function(){return{type:"IntegerLiteral",value:il(xe())}},he=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},pe=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},fe=function(){return{type:"BooleanLiteral",value:!0}},ge=function(){return{type:"BooleanLiteral",value:!1}},me=function(){return{type:"Identifier",name:xe()}},ve=0,ye=0,$e=[{line:1,column:1}],_e=0,be=[],we=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function xe(){return t.substring(ye,ve)}function ke(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ee(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ce(t){return{type:"other",description:t}}function Ae(e){var n,r=$e[e];if(r)return r;for(n=e-1;!$e[n];)n--;for(r={line:(r=$e[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return $e[e]=r,r}function je(t,e,n){var r=Ae(t),i=Ae(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function Ve(t){ve<_e||(ve>_e&&(_e=ve,be=[]),be.push(t))}function De(){var t,e;return t=ve,He(),(e=Pe())!==r?(He(),ye=t,t=Pt(e)):(ve=t,t=r),t}function Fe(){var e,n,o,i,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r?(o=He(),(i=Pe())!==r?(He(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&Ve(W)),a!==r?(ye=e,e=Nt(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&Ve(H)),n!==r&&(ye=e,n=It()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(o=d,ve++):(o=r,0===we&&Ve(q)),o===r&&(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U))),we--,o===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=Ot()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r){if(o=[],T.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(G)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(G));else o=r;o!==r?(125===t.charCodeAt(ve)?(i=l,ve++):(i=r,0===we&&Ve(W)),i!==r?(ye=e,e=Tt()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r&&(ye=e,n=Mt()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)),o!==r?(ye=e,e=zt(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=Rt(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r&&(ye=e,n=Bt()),e=n))))}return e}function Pe(){var e,n,o,i,a,s;return e=ve,(n=Se())!==r?(He(),63===t.charCodeAt(ve)?(o=u,ve++):(o=r,0===we&&Ve(K)),o!==r?(He(),(i=Pe())!==r?(He(),58===t.charCodeAt(ve)?(a=h,ve++):(a=r,0===we&&Ve(X)),a!==r?(He(),(s=Pe())!==r?(ye=e,e=Lt(n,i,s)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Se()),e}function Se(){var e,n,o,i;return e=ve,(n=Ne())!==r?(He(),t.substr(ve,2)===p?(o=p,ve+=2):(o=r,0===we&&Ve(Y)),o!==r?(He(),(i=Pe())!==r?(ye=e,e=Ut(n,i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Ne()),e}function Ne(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Ie())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&Ve(Z)),s!==r?(l=He(),(c=Ie())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&Ve(Z)),s!==r?(l=He(),(c=Ie())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Wt(n,o)}else ve=e,e=r;return e}function Ie(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Oe())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&Ve(Q)),s!==r?(l=He(),(c=Oe())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&Ve(Q)),s!==r?(l=He(),(c=Oe())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Ht(n,o)}else ve=e,e=r;return e}function Oe(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Te())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&Ve(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&Ve(et))),s!==r?(l=He(),(c=Te())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&Ve(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&Ve(et))),s!==r?(l=He(),(c=Te())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=qt(n,o)}else ve=e,e=r;return e}function Te(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Me())!==r){for(o=[],i=ve,a=He(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&Ve(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&Ve(rt)),s===r&&(t.substr(ve,2)===_?(s=_,ve+=2):(s=r,0===we&&Ve(ot)),s===r&&(60===t.charCodeAt(ve)?(s=b,ve++):(s=r,0===we&&Ve(it))))),s!==r?(l=He(),(c=Me())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&Ve(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&Ve(rt)),s===r&&(t.substr(ve,2)===_?(s=_,ve+=2):(s=r,0===we&&Ve(ot)),s===r&&(60===t.charCodeAt(ve)?(s=b,ve++):(s=r,0===we&&Ve(it))))),s!==r?(l=He(),(c=Me())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Jt(n,o)}else ve=e,e=r;return e}function Me(){var e,n,o,i,a,s,l,c;if(e=ve,(n=ze())!==r){for(o=[],i=ve,a=He(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&Ve(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&Ve(st))),s!==r?(l=He(),(c=ze())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&Ve(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&Ve(st))),s!==r?(l=He(),(c=ze())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Gt(n,o)}else ve=e,e=r;return e}function ze(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Re())!==r){for(o=[],i=ve,a=He(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&Ve(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&Ve(ct)),s===r&&(37===t.charCodeAt(ve)?(s=C,ve++):(s=r,0===we&&Ve(dt)))),s!==r?(l=He(),(c=Re())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=He(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&Ve(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&Ve(ct)),s===r&&(37===t.charCodeAt(ve)?(s=C,ve++):(s=r,0===we&&Ve(dt)))),s!==r?(l=He(),(c=Re())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Kt(n,o)}else ve=e,e=r;return e}function Re(){var e,n,o;return(e=Ue())===r&&(e=Le())===r&&(e=ve,33===t.charCodeAt(ve)?(n=A,ve++):(n=r,0===we&&Ve(ut)),n===r&&(43===t.charCodeAt(ve)?(n=w,ve++):(n=r,0===we&&Ve(at)),n===r&&(45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)))),n!==r?(He(),(o=Re())!==r?(ye=e,e=Xt(n,o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=ve,(n=We())!==r?(He(),40===t.charCodeAt(ve)?(o=j,ve++):(o=r,0===we&&Ve(ht)),o!==r?(He(),i=function(){var e,n,o,i,a,s;if(e=ve,(n=Pe())!==r){for(o=[],i=ve,He(),44===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&Ve(ft)),a!==r?(He(),(s=Pe())!==r?i=s:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,He(),44===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&Ve(ft)),a!==r?(He(),(s=Pe())!==r?i=s:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Qt(n,o)}else ve=e,e=r;return e===r&&(e=He()),e}(),i!==r?(He(),41===t.charCodeAt(ve)?(a=V,ve++):(a=r,0===we&&Ve(pt)),a!==r?(ye=e,e=Yt(n,i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,(n=We())!==r&&(ye=e,n=Zt(n)),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return we++,e=ve,39===t.charCodeAt(ve)?(n=F,ve++):(n=r,0===we&&Ve(mt)),n!==r?(o=function(){var t,e,n;for(t=ve,e=[],n=Be();n!==r;)e.push(n),n=Be();return ye=t,t=e=ne(e)}(),39===t.charCodeAt(ve)?(i=F,ve++):(i=r,0===we&&Ve(mt)),i!==r?(ye=e,e=ee(o)):(ve=e,e=r)):(ve=e,e=r),we--,e===r&&(n=r,0===we&&Ve(gt)),e}(),e===r&&(e=Ue())===r&&(e=Le())===r&&(e=function(){var e,n;return we++,e=ve,t.substr(ve,4)===I?(n=I,ve+=4):(n=r,0===we&&Ve(Et)),n!==r&&(ye=e,n=fe()),(e=n)===r&&(e=ve,t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&Ve(Ct)),n!==r&&(ye=e,n=ge()),e=n),we--,e===r&&(n=r,0===we&&Ve(kt)),e}(),e===r&&(e=ve,40===t.charCodeAt(ve)?(n=j,ve++):(n=r,0===we&&Ve(ht)),n!==r?(He(),(o=Pe())!==r?(He(),41===t.charCodeAt(ve)?(i=V,ve++):(i=r,0===we&&Ve(pt)),i!==r?(ye=e,e=te(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r))),e}())),e}())),e}function Be(){var e,n,o,i,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r?(o=He(),(i=Pe())!==r?(He(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&Ve(W)),a!==r?(ye=e,e=re(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&Ve(H)),n!==r&&(ye=e,n=oe()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(o=d,ve++):(o=r,0===we&&Ve(q)),o===r&&(39===t.charCodeAt(ve)?(o=F,ve++):(o=r,0===we&&Ve(mt)),o===r&&(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)))),we--,o===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=ie()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r){if(o=[],M.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(vt)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(vt));else o=r;o!==r?(125===t.charCodeAt(ve)?(i=l,ve++):(i=r,0===we&&Ve(W)),i!==r?(ye=e,e=ae()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r&&(ye=e,n=se()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)),o!==r?(ye=e,e=le(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=ce(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=d,ve++):(n=r,0===we&&Ve(q)),n!==r&&(ye=e,n=de()),e=n))))}return e}function Le(){var e,n,o,i;if(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t)),i!==r)for(;i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));else o=r;return o!==r?(ye=e,e=ue()):(ve=e,e=r),we--,e===r&&(n=r,0===we&&Ve(yt)),e}function Ue(){var e,n,o,i,a,s,l,c,d,u;for(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));if(46===t.charCodeAt(ve)?(i=P,ve++):(i=r,0===we&&Ve(bt)),i!==r){if(a=[],z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&Ve($t)),s!==r)for(;s!==r;)a.push(s),z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&Ve($t));else a=r;if(a!==r){if(s=ve,101===t.charCodeAt(ve)?(l=S,ve++):(l=r,0===we&&Ve(wt)),l===r&&(69===t.charCodeAt(ve)?(l=N,ve++):(l=r,0===we&&Ve(xt))),l!==r){if(43===t.charCodeAt(ve)?(c=w,ve++):(c=r,0===we&&Ve(at)),c===r&&(45===t.charCodeAt(ve)?(c=x,ve++):(c=r,0===we&&Ve(st))),c===r&&(c=null),d=[],z.test(t.charAt(ve))?(u=t.charAt(ve),ve++):(u=r,0===we&&Ve($t)),u!==r)for(;u!==r;)d.push(u),z.test(t.charAt(ve))?(u=t.charAt(ve),ve++):(u=r,0===we&&Ve($t));else d=r;d!==r?s=l=[l,c,d]:(ve=s,s=r)}else ve=s,s=r;s===r&&(s=null),ye=e,e=he()}else ve=e,e=r}else ve=e,e=r;if(e===r){if(e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t)),i!==r)for(;i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));else o=r;if(o!==r)if(101===t.charCodeAt(ve)?(i=S,ve++):(i=r,0===we&&Ve(wt)),i===r&&(69===t.charCodeAt(ve)?(i=N,ve++):(i=r,0===we&&Ve(xt))),i!==r){if(43===t.charCodeAt(ve)?(a=w,ve++):(a=r,0===we&&Ve(at)),a===r&&(45===t.charCodeAt(ve)?(a=x,ve++):(a=r,0===we&&Ve(st))),a===r&&(a=null),s=[],z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&Ve($t)),l!==r)for(;l!==r;)s.push(l),z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&Ve($t));else s=r;s!==r?(ye=e,e=pe()):(ve=e,e=r)}else ve=e,e=r;else ve=e,e=r}return we--,e===r&&(n=r,0===we&&Ve(_t)),e}function We(){var e,n,o,i,a;if(we++,e=ve,n=ve,we++,o=function(){var e,n,o,i;return e=ve,t.substr(ve,4)===I?(n=I,ve+=4):(n=r,0===we&&Ve(Et)),n===r&&(t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&Ve(Ct))),n!==r?(o=ve,we++,R.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(At)),we--,i===r?o=void 0:(ve=o,o=r),o!==r?e=n=[n,o]:(ve=e,e=r)):(ve=e,e=r),e}(),we--,o===r?n=void 0:(ve=n,n=r),n!==r)if(B.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(Vt)),o!==r){for(i=[],R.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&Ve(At));a!==r;)i.push(a),R.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&Ve(At));ye=e,e=me()}else ve=e,e=r;else ve=e,e=r;return we--,e===r&&(n=r,0===we&&Ve(jt)),e}function He(){var e,n;for(we++,e=[],L.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&Ve(Ft));n!==r;)e.push(n),L.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&Ve(Ft));return we--,n=r,0===we&&Ve(Dt),e}if((n=a())!==r&&ve===t.length)return n;throw n!==r&&ve<t.length&&Ve({type:"end"}),function(t,e,n){return new sl(sl.buildMessage(t,e),t,e,n)}(be,_e<t.length?t.charAt(_e):null,_e<t.length?je(_e,_e+1):je(_e,_e))}el(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(sl,Error),sl.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=ll("",i.line.toString().length," "),c=r[o.line-1],d=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+ll("",o.column-1," ")+ll("",d,"^")}else e+="\n at "+a}return e},sl.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.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(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.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(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const dl=Number.MAX_VALUE,ul=Number.MIN_VALUE,hl="string",pl="integer",fl="number",gl="boolean",ml="color",vl="url",yl="datetime",$l="dict",_l="array";function bl(t,e){var n;switch(null===(n=e[t.type])||void 0===n||n.call(e,t),t.type){case"TemplateLiteral":t.expressions.forEach((t=>{bl(t,e)}));break;case"BinaryExpression":case"LogicalExpression":bl(t.left,e),bl(t.right,e);break;case"UnaryExpression":bl(t.argument,e);break;case"ConditionalExpression":bl(t.test,e),bl(t.consequent,e),bl(t.alternate,e);break;case"TryExpression":bl(t.test,e),bl(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{bl(t,e)}))}}function wl(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function xl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function kl(t){if("string"===t.type)return t.value;if("integer"===t.type)return String(t.value);if("number"===t.type){let e=String(t.value);return e.includes(".")||(e.includes("e")?e=e.replace("e",".0e"):e+=".0"),e=e.replace(/e\+?/i,"E"),e}if("boolean"===t.type)return t.value?"true":"false";if("datetime"===t.type)return xl(t.value);if("color"===t.type)return Pl(Fl(t.value));if("url"===t.type)return t.value;if("dict"===t.type)return"<dict>";if("array"===t.type)return"<array>";throw new Error("Unexpected type ".concat(t.type))}function El(t){let e=kl(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Cl(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Al(t,e){if(ea)return ia(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function jl(t,e){if(e<oa||e>ra)throw new Error("Integer overflow.");!ea&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Vl(t){const e=[];return bl(t,{Variable(t){e.push(t.id.name)}}),e}function Dl(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Fl(t){const e=ke(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Pl(t){return"#".concat([t.a,t.r,t.g,t.b].map((t=>{if(t<0||t>255)throw new Error("Value out of range 0..1.");return we(Math.round(t).toString(16),2)})).join("").toUpperCase())}function Sl(t){return Pl(Fl(t))}function Nl(t){return{type:fl,value:Number(t.value)}}const Il=new Map,Ol=new Map;function Tl(t,e,n){const r={args:e,cb:n},o=Il.get(t)||[];Il.has(t)||Il.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Ol.set(i,r)}function Ml(t,e){let n=t.args.length,r=t.args.length,o=0;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==fl||e[n].type!==pl){if(r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}else++o}return{type:"match",conversions:o}}function zl(t,e){return{type:hl,value:kl(e)}}function Rl(t,e){const n=Number(e.value);if(Number.isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:fl,value:n}}function Bl(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=Sl(i)),{type:r,value:i}}function Ll(t,e,n){return Bl(t,e,n,n.type)}function Ul(t,e,n){return Bl(t,e,n,"color")}function Wl(t,e,n){return Bl(t,e,n,"url")}const Hl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:pl,value:ia(r)}},ql=Hl("getUTCFullYear"),Jl=Hl("getUTCMonth"),Gl=Hl("getUTCDate"),Kl=Hl("getUTCDay"),Xl=Hl("getUTCHours"),Yl=Hl("getUTCMinutes"),Zl=Hl("getUTCSeconds"),Ql=Hl("getUTCMilliseconds");function tc(t,e,n,r){if(!r.value.length)return t.warnings.push(me(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===hl?e.value:kl(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function ec(t,e,n,r){const o=tc(t,e,n,r);return{type:hl,value:o+kl(e)}}function nc(t,e,n,r){const o=tc(t,e,n,r);return{type:hl,value:kl(e)+o}}function rc(t){return(e,n)=>{const r=Fl(n.value);return{type:fl,value:r[t]/255}}}function oc(t){return(e,n,r)=>{const o=Fl(n.value);return o[t]=255*r.value,{type:ml,value:Pl(o)}}}const ic=rc("a"),ac=rc("r"),sc=rc("g"),lc=rc("b"),cc=oc("a"),dc=oc("r"),uc=oc("g"),hc=oc("b");function pc(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=ia(e.value)/ia(n);return jl(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=ia(o)%ia(r)),{type:pl,value:o}}const fc=36e5;function gc(t,e){return function(n,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];let s=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,i.map((t=>t.value))),l=typeof s;if("array"===t&&!Array.isArray(s)||"array"!==t&&l!==t||"object"===l&&null===s)throw"object"===l&&(l=Array.isArray(s)?"array":null===s?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(l,'".'));if("number"===t&&"integer"===e){jl(n,s);try{s=ia(s)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(s=Sl(s)),{type:e,value:s}}}function mc(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=Sl(n)),{type:e,value:n}}}}const vc=gc("string","string"),yc=gc("number","number"),$c=gc("number","integer"),_c=gc("boolean","boolean"),bc=gc("string","color"),wc=gc("string","url"),xc=gc("array","array"),kc=gc("object","dict"),Ec=mc(vc,"string"),Cc=mc(yc,"number"),Ac=mc($c,"integer"),jc=mc(_c,"boolean"),Vc=mc(bc,"color"),Dc=mc(wc,"url");function Fc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){jl(n,i);try{i=ia(i)}catch(t){throw new Error("Cannot convert value to integer.")}}return"string"===t&&"color"===e&&(i=Sl(i)),{type:e,value:i}}}function Pc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=Sl(n)),{type:e,value:n}}}}const Sc=Fc("string","string"),Nc=Fc("number","number"),Ic=Fc("number","integer"),Oc=Fc("boolean","boolean"),Tc=Fc("string","color"),Mc=Fc("string","url"),zc=Fc("array","array"),Rc=Fc("object","dict"),Bc=Pc(Sc,"string"),Lc=Pc(Nc,"number"),Uc=Pc(Ic,"integer"),Wc=Pc(Oc,"boolean"),Hc=Pc(Tc,"color"),qc=Pc(Mc,"url");function Jc(t){return t.map(El).join(", ")}Tl("toString",[pl],zl),Tl("toString",[fl],zl),Tl("toString",[gl],zl),Tl("toString",[ml],zl),Tl("toString",[vl],zl),Tl("toNumber",[pl],Rl),Tl("toNumber",[hl],Rl),Tl("toInteger",[fl],(function(t,e){if(e.value>ra||e.value<oa)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:pl,value:ia(n)}})),Tl("toInteger",[hl],(function(t,e){let n;try{n=ia(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}return{type:pl,value:n}})),Tl("toInteger",[gl],(function(t,e){return{type:pl,value:ia(e.value?1:0)}})),Tl("toBoolean",[pl],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:gl,value:n}})),Tl("toBoolean",[hl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:gl,value:"true"===e.value?1:0}})),Tl("toColor",[hl],(function(t,e){return{type:ml,value:Sl(e.value)}})),Tl("toUrl",[hl],(function(t,e){return{type:vl,value:e.value}})),Tl("encodeUri",[hl],(function(t,e){try{return{type:hl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Tl("decodeUri",[hl],(function(t,e){try{return{type:hl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Tl("getIntegerValue",[hl,pl],Ll),Tl("getNumberValue",[hl,fl],Ll),Tl("getBooleanValue",[hl,gl],Ll),Tl("getStringValue",[hl,hl],Ll),Tl("getColorValue",[hl,ml],Ul),Tl("getColorValue",[hl,hl],Ul),Tl("getUrlValue",[hl,vl],Wl),Tl("getUrlValue",[hl,hl],Wl),Tl("parseUnixTime",[pl],(function(t,e){return{type:yl,value:new Date(1e3*Number(e.value))}})),Tl("nowLocal",[],(function(){return{type:yl,value:new Date}})),Tl("addMillis",[yl,pl],(function(t,e,n){return{type:yl,value:new Date(e.value.getTime()+Number(n.value))}})),Tl("setYear",[yl,pl],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:yl,value:r}})),Tl("setMonth",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:yl,value:o}})),Tl("setDay",[yl,pl],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(kl(e),"."));return r.setUTCDate(-1===o?0:o),{type:yl,value:r}})),Tl("setHours",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:yl,value:o}})),Tl("setMinutes",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:yl,value:o}})),Tl("setSeconds",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:yl,value:o}})),Tl("setMillis",[yl,pl],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:yl,value:o}})),Tl("getYear",[yl],ql),Tl("getMonth",[yl],Jl),Tl("getDay",[yl],Gl),Tl("getDayOfWeek",[yl],Kl),Tl("getHours",[yl],Xl),Tl("getMinutes",[yl],Yl),Tl("getSeconds",[yl],Zl),Tl("getMillis",[yl],Ql),Tl("getIntervalSeconds",[pl],(function(t,e){return pc(t,e,1e3,60)})),Tl("getIntervalTotalSeconds",[pl],(function(t,e){return pc(t,e,1e3)})),Tl("getIntervalMinutes",[pl],(function(t,e){return pc(t,e,6e4,60)})),Tl("getIntervalTotalMinutes",[pl],(function(t,e){return pc(t,e,6e4)})),Tl("getIntervalHours",[pl],(function(t,e){return pc(t,e,fc,24)})),Tl("getIntervalTotalHours",[pl],(function(t,e){return pc(t,e,fc)})),Tl("getIntervalTotalDays",[pl],(function(t,e){return pc(t,e,864e5)})),Tl("getIntervalTotalWeeks",[pl],(function(t,e){return pc(t,e,6048e5)})),Tl("len",[hl],(function(t,e){return{type:pl,value:ia(e.value.length)}})),Tl("contains",[hl,hl],(function(t,e,n){return{type:gl,value:e.value.includes(n.value)?1:0}})),Tl("substring",[hl,pl,pl],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:hl,value:e.value.substring(Number(n.value),Number(r.value))}})),Tl("replaceAll",[hl,hl,hl],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:hl,value:o}})),Tl("index",[hl,hl],(function(t,e,n){return{type:pl,value:ia(e.value.indexOf(n.value))}})),Tl("lastIndex",[hl,hl],(function(t,e,n){return{type:pl,value:ia(e.value.lastIndexOf(n.value))}})),Tl("trim",[hl],(function(t,e){return{type:hl,value:e.value.trim()}})),Tl("trimLeft",[hl],(function(t,e){return{type:hl,value:e.value.replace(/^\s+/,"")}})),Tl("trimRight",[hl],(function(t,e){return{type:hl,value:e.value.replace(/\s+$/,"")}})),Tl("toUpperCase",[hl],(function(t,e){return{type:hl,value:e.value.toUpperCase()}})),Tl("toLowerCase",[hl],(function(t,e){return{type:hl,value:e.value.toLowerCase()}})),Tl("padStart",[hl,pl,hl],ec),Tl("padStart",[pl,pl,hl],ec),Tl("padEnd",[hl,pl,hl],nc),Tl("padEnd",[pl,pl,hl],nc),Tl("testRegex",[hl,hl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:gl,value:r.test(e.value)?1:0}})),Tl("div",[pl,pl],(function(t,e,n){if(n.value===aa)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=Al(0,r),jl(t,r),{type:pl,value:r}})),Tl("div",[fl,fl],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:fl,value:r}})),Tl("mod",[pl,pl],(function(t,e,n){if(n.value===aa)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=Al(0,r),jl(t,r),{type:pl,value:r}})),Tl("mod",[fl,fl],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:fl,value:r}})),Tl("mul",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:aa;for(let e=1;e<n.length;++e)o*=n[e].value,o=Al(0,o),jl(t,o);return{type:pl,value:o}})),Tl("mul",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:fl,value:o}})),Tl("sub",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:aa;for(let e=1;e<n.length;++e)o-=n[e].value,o=Al(0,o),jl(t,o);return{type:pl,value:o}})),Tl("sub",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:fl,value:o}})),Tl("sum",[{type:pl,isVararg:!0}],(function(t){let e=aa;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=Al(0,e),jl(t,e);return{type:pl,value:e}})),Tl("sum",[{type:fl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:fl,value:e}})),Tl("abs",[pl],(function(t,e){const n=sa(e.value);return jl(t,n),{type:e.type,value:n}})),Tl("abs",[fl],(function(t,e){const n=Math.abs(e.value);return{type:fl,value:n}})),Tl("max",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:pl,value:o}})),Tl("max",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:fl,value:Math.max(...n.map((t=>t.value)))}})),Tl("min",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:pl,value:o}})),Tl("min",[{type:fl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:fl,value:Math.min(...n.map((t=>t.value)))}})),Tl("maxNumber",[],(function(){return{type:fl,value:dl}})),Tl("minNumber",[],(function(){return{type:fl,value:ul}})),Tl("maxInteger",[],(function(t){return jl(t,ra),{type:pl,value:ra}})),Tl("minInteger",[],(function(t){return jl(t,oa),{type:pl,value:oa}})),Tl("round",[fl],(function(t,e){const n=Math.sign(e.value);return{type:fl,value:n*Math.round(Math.abs(e.value))}})),Tl("floor",[fl],(function(t,e){return{type:fl,value:Math.floor(e.value)}})),Tl("ceil",[fl],(function(t,e){return{type:fl,value:Math.ceil(e.value)}})),Tl("signum",[pl],(function(t,e){return{type:pl,value:la(e.value)}})),Tl("signum",[fl],(function(t,e){return{type:fl,value:Math.sign(e.value)}})),Tl("copySign",[pl,pl],(function(t,e,n){let r;if(n.value===aa)r=e.value;else if(e.value===aa)r=ia(0);else{const t=la(n.value);r=sa(e.value)*t}return jl(t,r),{type:pl,value:r}})),Tl("copySign",[fl,fl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:fl,value:o}})),Tl("getColorAlpha",[hl],ic),Tl("getColorAlpha",[ml],ic),Tl("getColorRed",[hl],ac),Tl("getColorRed",[ml],ac),Tl("getColorGreen",[hl],sc),Tl("getColorGreen",[ml],sc),Tl("getColorBlue",[hl],lc),Tl("getColorBlue",[ml],lc),Tl("setColorAlpha",[hl,fl],cc),Tl("setColorAlpha",[ml,fl],cc),Tl("setColorRed",[hl,fl],dc),Tl("setColorRed",[ml,fl],dc),Tl("setColorGreen",[hl,fl],uc),Tl("setColorGreen",[ml,fl],uc),Tl("setColorBlue",[hl,fl],hc),Tl("setColorBlue",[ml,fl],hc),Tl("rgb",[fl,fl,fl],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:ml,value:Pl(o)}})),Tl("argb",[fl,fl,fl,fl],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:ml,value:Pl(i)}})),Tl("getDictString",[$l,{type:hl,isVararg:!0}],vc),Tl("getStringFromDict",[$l,{type:hl,isVararg:!0}],vc),Tl("getDictNumber",[$l,{type:hl,isVararg:!0}],yc),Tl("getNumberFromDict",[$l,{type:hl,isVararg:!0}],yc),Tl("getDictInteger",[$l,{type:hl,isVararg:!0}],$c),Tl("getIntegerFromDict",[$l,{type:hl,isVararg:!0}],$c),Tl("getDictBoolean",[$l,{type:hl,isVararg:!0}],_c),Tl("getBooleanFromDict",[$l,{type:hl,isVararg:!0}],_c),Tl("getDictColor",[$l,{type:hl,isVararg:!0}],bc),Tl("getColorFromDict",[$l,{type:hl,isVararg:!0}],bc),Tl("getDictUrl",[$l,{type:hl,isVararg:!0}],wc),Tl("getUrlFromDict",[$l,{type:hl,isVararg:!0}],wc),Tl("getDictOptString",[hl,$l,{type:hl,isVararg:!0}],Ec),Tl("getOptStringFromDict",[hl,$l,{type:hl,isVararg:!0}],Ec),Tl("getDictOptNumber",[fl,$l,{type:hl,isVararg:!0}],Cc),Tl("getOptNumberFromDict",[fl,$l,{type:hl,isVararg:!0}],Cc),Tl("getDictOptInteger",[pl,$l,{type:hl,isVararg:!0}],Ac),Tl("getOptIntegerFromDict",[pl,$l,{type:hl,isVararg:!0}],Ac),Tl("getDictOptBoolean",[gl,$l,{type:hl,isVararg:!0}],jc),Tl("getOptBooleanFromDict",[gl,$l,{type:hl,isVararg:!0}],jc),Tl("getDictOptColor",[ml,$l,{type:hl,isVararg:!0}],Vc),Tl("getOptColorFromDict",[ml,$l,{type:hl,isVararg:!0}],Vc),Tl("getDictOptColor",[hl,$l,{type:hl,isVararg:!0}],Vc),Tl("getOptColorFromDict",[hl,$l,{type:hl,isVararg:!0}],Vc),Tl("getDictOptUrl",[hl,$l,{type:hl,isVararg:!0}],Dc),Tl("getOptUrlFromDict",[hl,$l,{type:hl,isVararg:!0}],Dc),Tl("getDictOptUrl",[vl,$l,{type:hl,isVararg:!0}],Dc),Tl("getOptUrlFromDict",[vl,$l,{type:hl,isVararg:!0}],Dc),Tl("getDictFromDict",[$l,{type:hl,isVararg:!0}],kc),Tl("getArrayFromDict",[$l,{type:hl,isVararg:!0}],xc),Tl("getOptArrayFromDict",[$l,{type:hl,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return xc(t,e,...r)}catch(t){return{type:_l,value:[]}}})),Tl("getOptDictFromDict",[$l,{type:hl,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return kc(t,e,...r)}catch(t){return{type:$l,value:{}}}})),Tl("getArrayString",[_l,pl],Sc),Tl("getStringFromArray",[_l,pl],Sc),Tl("getArrayNumber",[_l,pl],Nc),Tl("getNumberFromArray",[_l,pl],Nc),Tl("getArrayInteger",[_l,pl],Ic),Tl("getIntegerFromArray",[_l,pl],Ic),Tl("getArrayBoolean",[_l,pl],Oc),Tl("getBooleanFromArray",[_l,pl],Oc),Tl("getArrayColor",[_l,pl],Tc),Tl("getColorFromArray",[_l,pl],Tc),Tl("getArrayUrl",[_l,pl],Mc),Tl("getUrlFromArray",[_l,pl],Mc),Tl("getArrayFromArray",[_l,pl],zc),Tl("getDictFromArray",[_l,pl],Rc),Tl("getArrayOptString",[_l,pl,hl],Bc),Tl("getOptStringFromArray",[_l,pl,hl],Bc),Tl("getArrayOptNumber",[_l,pl,fl],Lc),Tl("getOptNumberFromArray",[_l,pl,fl],Lc),Tl("getArrayOptInteger",[_l,pl,pl],Uc),Tl("getOptIntegerFromArray",[_l,pl,pl],Uc),Tl("getArrayOptBoolean",[_l,pl,gl],Wc),Tl("getOptBooleanFromArray",[_l,pl,gl],Wc),Tl("getArrayOptColor",[_l,pl,ml],Hc),Tl("getOptColorFromArray",[_l,pl,ml],Hc),Tl("getArrayOptColor",[_l,pl,hl],Hc),Tl("getOptColorFromArray",[_l,pl,hl],Hc),Tl("getArrayOptUrl",[_l,pl,vl],qc),Tl("getOptUrlFromArray",[_l,pl,vl],qc),Tl("getArrayOptUrl",[_l,pl,hl],qc),Tl("getOptUrlFromArray",[_l,pl,hl],qc),Tl("getOptArrayFromArray",[_l,pl],(function(t,e,n){try{return zc(t,e,n)}catch(t){return{type:_l,value:[]}}})),Tl("getOptDictFromArray",[_l,pl],(function(t,e,n){try{return Rc(t,e,n)}catch(t){return{type:$l,value:{}}}})),Tl("len",[_l],(function(t,e){return{type:pl,value:ia(e.value.length)}}));const Gc={StringLiteral:function(t,e){return{type:hl,value:e.value}},NumberLiteral:function(t,e){return{type:fl,value:e.value}},IntegerLiteral:function(t,e){return jl(t,e.value),{type:pl,value:e.value}},BooleanLiteral:function(t,e){return{type:gl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=wl(Kc(t,e.argument));switch(e.operator){case"!":if(n.type===gl)return{type:gl,value:n.value?0:1};Dl("".concat(e.operator).concat(El(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===pl){const e=n.value*ia(r);return jl(t,e),{type:pl,value:e}}if(n.type===fl)return{type:fl,value:n.value*r};Dl("".concat(e.operator).concat(El(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=wl(Kc(t,e.test));if(n.type===gl)return n.value?Kc(t,e.consequent):Kc(t,e.alternate);Dl("".concat(El(n)," ? ").concat(El(Kc(t,e.consequent))," : ").concat(El(Kc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Kc(t,e.test)}catch(n){return Kc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Kc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=kl(Kc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:hl,value:n}},LogicalExpression:function(t,e){const n=wl(Kc(t,e.left));if(n.type!==gl&&Dl("".concat(El(n)," ").concat(e.operator," ..."),"'".concat(e.operator,"' must be called with boolean operands.")),"||"===e.operator&&n.value)return n;if("&&"===e.operator&&!n.value)return{type:gl,value:0};const r=wl(Kc(t,e.right));return r.type!==gl&&Dl("".concat(El(n)," ").concat(e.operator," ").concat(El(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Cl(r.type),".")),{type:gl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator;let r=Kc(t,e.left),o=Kc(t,e.right);if(("number"===r.type&&"integer"===o.type||"integer"===r.type&&"number"===o.type)&&("integer"===r.type?r=Nl(r):"integer"===o.type&&(o=Nl(o))),r.type!==o.type&&Dl("".concat(El(r)," ").concat(e.operator," ").concat(El(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Cl(r.type)," and ").concat(Cl(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===yl&&n.type===yl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:gl,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==fl&&e.type!==pl&&e.type!==yl&&Dl("".concat(El(e)," ").concat(t," ").concat(El(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Cl(e.type)," type."));const o=e.type===yl?e.value.getTime():e.value,i=n.type===yl?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:gl,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==hl&&n.type!==fl&&n.type!==pl&&Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Cl(n.type)," type.")),n.type===hl)return"-"===e&&Dl("".concat(El(n)," - ").concat(El(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Cl(n.type)," type.")),{type:hl,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===pl)try{o=Al(0,o),jl(t,o)}catch(t){Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==pl&&n.type!==fl&&Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Cl(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===pl)try{o=Al(0,o),jl(t,o)}catch(t){Dl("".concat(El(n)," ").concat(e," ").concat(El(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r,o=e.arguments.map((e=>Kc(t,e)));const i=n+":"+o.map((t=>t.type)).join("#");if(Ol.has(i))r=Ol.get(i);else{const t=function(t,e){const n=Il.get(t);if(!n)return{type:"missing"};let r=null,o=null;for(let t=0;t<n.length;++t){const i=Ml(n[t],e);"match"!==i.type?r||(r=i):(!o||o.conversions>i.conversions)&&(o={func:n[t],conversions:i.conversions})}if(!o){if(r)return r;throw new Error("Missing function")}return o}(n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>Cl(t.type))).join(", "),r="".concat(n,"(").concat(Jc(o),")");"few"===t.type&&0===o.length?Dl(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?Dl(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):Dl(r,"Unknown function name: ".concat(n,"."))}r=t.func,t.conversions&&(o=function(t,e){return e.map(((e,n)=>{let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];return"object"!=typeof r&&(r={type:r}),r.type===fl&&e.type===pl?Nl(e):e}))}(r,o))}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){Dl("".concat(n,"(").concat(Jc(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function Kc(t,e){if(e.type in Gc)return Gc[e.type](t,e);throw new Error("Unsupported expression")}function Xc(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=Kc(n,e);return n.safeIntegerOverflow&&n.warnings.push(me(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}class Yc{constructor(t){this.ast=t}apply(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{const r=Xc(t,this.ast);r.warnings.forEach(e);const o=r.result;if("error"===o.type)return void e(me(new Error("Expression execution error"),{additional:{message:o.value}}));const i=o.value;if(i instanceof Date)return xl(i);if("boolean"===o.type)return Boolean(i);if("color"===o.type){const t=ke(String(i));if(t)return Pl(t);e(me(new Error("Expression execution error")))}if("integer"===o.type)return i>2147483647||i<-2147483648?void e(me(new Error("Expression result is out of 32-bit int range"))):Number(i);if(!n&&("array"===o.type||"dict"===o.type))try{return JSON.stringify(i)}catch(t){return e(me(new Error("Failed to stringify ".concat(o.type)))),"<".concat(o.type,">")}return i}catch(t){return void e(me(new Error("Expression execution error")))}}}function Zc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=cl(t,{startRule:"JsonStringContents"}),r=Vl(n);return e.vars.push(...r),new Yc(n)}catch(e){return void n(me(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Zc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Zc(t[o],e,n);return r}}var r;return t}function Qc(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t){if(t instanceof Yc)return t.apply(e,n,r);if(Array.isArray(t))return t.map((t=>Qc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Qc(t[o],e,n);return r}}return t}function td(t,e){const n={vars:[],hasExpression:!1},r=Zc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:(t,n)=>Qc(r,t,e,n)}}const ed={pagers:function(){return he(new Map)}},nd=new Map,rd=new Map;function od(t){const e=nd.get(t)||he("");return nd.has(t)||nd.set(t,e),e}function id(t){const e=rd.get(t)||new Map;return rd.has(t)||rd.set(t,e),e}class ad{setVariable(t){const e=t.getName(),n=id(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),od(this).set(e)}getVariable(t){return id(this).get(t)}list(){return id(this).values()}}function sd(){return new ad}function ld(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const cd=new Set(["start","stop","pause","resume","cancel","reset"]);class dd{constructor(t){ld(this,"timers",new Map),ld(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(me(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(me(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&cd.has(e)))return void this.logError(me(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}async tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),await this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((async()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&await this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((async()=>{await this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,"running"===t.state&&e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(me(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(me(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(me(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(me(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(me(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(me(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(me(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(me(new Error("The timer is already running"))):this.logError(me(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}async callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);return this.execAnyActions(t,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}async unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&await this.tickOrUnholdAction(e),this.startOrResume(e)}}}function ud(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(me(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(me(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(me(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}function hd(t){let e,n,r,o,i,a,s,l;return n=new Zs({props:{svgFiltersMap:t[3]}}),o=new Ls({props:{componentContext:t[4]}}),{c(){e=R("div"),oe(n.$$.fragment),r=U(),oe(o.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0,dir:!0});var i=Y(e);ie(n.$$.fragment,i),r=ot(i),ie(o.$$.fragment,i),i.forEach(M),this.h()},h(){q(e,"class",i=""+(fe.root+(t[5]?" ".concat(fe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),q(e,"dir",t[6])},m(t,i){T(t,e,i),ae(n,e,null),I(e,r),ae(o,e,null),a=!0,s||(l=H(e,"touchstart",$d,{passive:!0}),s=!0)},p(t,r){const s={};8&r[0]&&(s.svgFiltersMap=t[3]),n.$set(s);const l={};16&r[0]&&(l.componentContext=t[4]),o.$set(l),(!a||33&r[0]&&i!==(i=""+(fe.root+(t[5]?" ".concat(fe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&q(e,"class",i),(!a||64&r[0])&&q(e,"dir",t[6])},i(t){a||(qt(n.$$.fragment,t),qt(o.$$.fragment,t),a=!0)},o(t){Jt(n.$$.fragment,t),Jt(o.$$.fragment,t),a=!1},d(t){t&&M(e),se(n),se(o),s=!1,l()}}}function pd(t){let e,n,r=!t[1]&&!t[2]&&t[4]&&hd(t);return{c(){r&&r.c(),e=W()},l(t){r&&r.l(t),e=W()},m(t,o){r&&r.m(t,o),T(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[4]?r&&(Wt(),Jt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),22&n[0]&&qt(r,1)):(r=hd(t),r.c(),qt(r,1),r.m(e.parentNode,e))},i(t){n||(qt(r),n=!0)},o(t){Jt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let fd=he(!0),gd=0;function md(){fd.set(!1)}function vd(){fd.set(!0)}function yd(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function $d(){}function _d(t,e,n){let r,o,i,a;var s,l,c,d;let{id:u}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new ad}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:_=new Map}=e,{onError:b}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:C={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,D=he("desktop"===f);if(p(t,D,(t=>n(5,i=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let F="light",P=null;const S=he("rtl"===V?"rtl":"ltr");function N(){"system"===g&&P&&n(33,F=P.matches?"dark":"light")}p(t,S,(t=>n(6,a=t)));const I=new Set($);let O=!1,T=!1;u||(T=!0,G(me(new Error('"id" prop is required'))));const M={stateChange:!1},z=od(m),R=id(m),B=new Map,L=new Map,U=new Map;let W=null,H=0,q=[];function J(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=td(e,t);if(!o.hasExpression)return e;const i=yd(L,n);return o.applyVars(i,r)}function G(t){b?b({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function K(t,e){w&&w({type:t,action:e})}function X(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Qs(t,e,r,G)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let Y=0;function Z(t){return"".concat(u,"-").concat(Y++)}let Q={},tt={};async function et(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!Ze(t))return;const a=(null==e?void 0:e.logError)||G;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":await async function(t){if(!t)throw new Error("Missing state id");let e=ut,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;await i.setState(o),e=i}}(l.get("state_id"));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":!function(t,e,n){let{item:r,step:o,overflow:i}=n;var a,s,l,c,d;if(!e)throw new Error('Missing id for "'.concat(t,'" action'));const u=Number(r);if("set_current_item"===t&&Number.isNaN(u))throw new Error('Incorrect item for "'.concat(t,'" action'));let h=Number(o);if(o||"set_previous_item"!==t&&"set_next_item"!==t||(h=1),!o&&("scroll_backward"===t||"scroll_forward"===t||"scroll_to_position"===t)||Number.isNaN(h))throw new Error('Incorrect step value for "'.concat(t,'" action'));if(i&&"clamp"!==i&&"ring"!==i)throw new Error('Incorrect overflow value for "'.concat(t,'" action'));i=i||"clamp";const p=lt(e);if(p)switch(t){case"set_current_item":return void p.setCurrentItem(u);case"set_previous_item":return void p.setPreviousItem(h,i);case"set_next_item":return void p.setNextItem(h,i);case"scroll_to_start":return void(null===(a=p.scrollToStart)||void 0===a||a.call(p));case"scroll_to_end":return void(null===(s=p.scrollToEnd)||void 0===s||s.call(p));case"scroll_backward":return void(null===(l=p.scrollBackward)||void 0===l||l.call(p,h,i));case"scroll_forward":return void(null===(c=p.scrollForward)||void 0===c||c.call(p,h,i));case"scroll_to_position":null===(d=p.scrollToPosition)||void 0===d||d.call(p,h)}}(s[1],l.get("id"),{item:l.get("item"),step:l.get("step"),overflow:l.get("overflow")});break;case"set_variable":const c=l.get("name"),d=l.get("value");if(c&&null!==d){const t=L.get(c);if(t){const e=t.getType();"dict"===e||"array"===e?a(me(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:c}})):t.set(d)}else a(me(new Error("Cannot find variable"),{additional:{name:c}}))}else a(me(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const u=l.get("action"),h=l.get("id");W?W.execTimerAction(h,u):a(me(new Error("Incorrect timer action"),{additional:{id:h,action:u}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||G;if(t){const n=lt(t);n?"start"===e?n.start():"pause"===e?n.pause():r(me(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(me(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(me(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||G;if(t){let n;n="function"==typeof C?C(t):C,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=it.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(me(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void nt(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=it.get(t.id);e&&e.replaceWith(t.id,t.items)})),nt(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(me(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(me(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),nt(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(me(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||G;if(!t)return void i(me(new Error("Missing id in show_tooltip action")));const a=st.get(t);if(!a)return void i(me(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&q.some((e=>e.desc.id===t)))return;const s={internalId:++H,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(35,q=[...q,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(35,q=q.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||G;t?n(35,q=q.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(me(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;default:a(me(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(me(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=L.get(t);n?n.getType()===e.type?n.setValue(e.value):a(me(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(me(new Error("Cannot find variable"),{additional:{name:t}}))}else a(me(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(me(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):ud(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(me(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(L,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?ud(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(me(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(me(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(L,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(me(new Error("Incorrect action"),{additional:{action:e}})):"undefined"!=typeof navigator&&"clipboard"in navigator&&navigator.clipboard&&"writeText"in navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e.content.value).catch((e=>{t(me(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(me(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&at.get(i.element_id);t?t.focus():a(me(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}case"clear_focus":try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(t){}break;default:a(me(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const n=t.filter(Ze);for(let t=0;t<n.length;++t){let r=n[t];const o=r.url,i=r.typed;if(o){const t=Pe(o);if(t)if(Se(t,I)){if(e.processUrls)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(await et(r,e.componentContext),await St()):r.log_id&&(rt(r),await St())}else i&&await et(r,e.componentContext)}n.forEach((t=>{t.log_id&&K("click",t)}))}function rt(t){null==x||x(t)}const ot=new Map,it=new Map,at=new Map,st=new Map;function lt(t){if(ot.has(t))return ot.get(t);G(me(new Error("Missing instance with id"),{additional:{id:t}}))}const ct=new Map;function dt(t){const e=U.get(t)||he(void 0);return U.has(t)||U.set(t,e),e}xt(ge,{logStat:K,hasTemplate:function(t){return t in r},processTemplate:X,genId:Z,genClass:function(t){return"divkit-".concat(Z())},execAction:et,execCustomAction:rt,isRunning:function(t){return M[t]},setRunning:function(t,e){M[t]=e},registerInstance:function(t,e){ot.has(t)?G(me(new Error("Duplicate instance id"),{additional:{id:t}})):ot.set(t,e)},unregisterInstance:function(t){ot.delete(t)},registerParentOf:function(t,e){it.set(t,e)},unregisterParentOf:function(t){it.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(st.has(n)&&G(me(new Error("Duplicate tooltip id"),{additional:{id:n}})),st.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(st.delete(e),q.some((t=>t.desc.id===e))&&n(35,q=q.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(35,q=q.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){at.set(t,e)},unregisterFocusable:function(t){at.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(tt[r]=tt[r]||0,++tt[r],Q[r])return Q[r];const o="".concat(Z(),"-svg-filter");return n(3,Q=Object.assign(Object.assign({},Q),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);tt[r]&&0==--tt[r]&&n(3,Q=Object.keys(Q).reduce(((t,e)=>(tt[e]&&(t[e]=Q[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in xa))throw new Error("Unsupported variable type");return new xa[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return ct.has(t)||function(t){ct.has(t)||ct.set(t,ed[t]())}(t),ct.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return I},getExtension:function(t,e){const n=_.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:L,logError:G}},typefaceProvider:E,isDesktop:D,isPointerFocus:fd,customComponents:j,direction:S,componentDevtool:void 0}),xt(nn,{hasAction:()=>!1});const ut={setState(t){throw new Error("Not implemented")},getChild(t){if(ht&&ht.has(t))return ht.get(t);G(me(new Error("Missing state block with id"),{additional:{id:t}}))}};let ht=null;function pt(t){if(t.type in ya){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&G(me(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=$a(t.name,t.type,t.value);B.set(t.name,e),L.set(t.name,e)}catch(e){G(me(e,{additional:{name:t.name}}))}}}xt(ze,{registerInstance(t,e){ht||(ht=new Map),ht.has(t)?G(me(new Error("Duplicate state with id"),{additional:{id:t}})):ht.set(t,e)},unregisterInstance(t){null==ht||ht.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const ft=null===(s=null==h?void 0:h.card)||void 0===s?void 0:s.variables;Array.isArray(ft)&&ft.forEach((t=>{if(t&&t.name){if(B.has(t.name))return void G(me(new Error("Duplicate variable"),{additional:{name:t.name}}));pt(t)}}));const gt=h.palette;gt&&gt[F].forEach((t=>{if(B.has(t.name))G(me(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=$a(t.name,"color",t.color);B.set(t.name,e),L.set(t.name,e)}catch(e){G(me(e,{additional:{name:t.name}}))}}));for(const[t,e]of R)L.has(t)||L.set(t,e);z.subscribe((t=>{if(t&&!L.has(t)){const e=R.get(t);L.set(t,e);const n=U.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const mt=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if(mt&&"undefined"!=typeof document){const t=W=new dd({logError:G,applyVars:t=>J(G,t),hasVariableWithType:function(t,e){const n=L.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=L.get(t);n?n.setValue(e):G(me(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:nt});mt.forEach((e=>t.createTimer(e)))}const vt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),G(t)},execAnyActions(t){return nt(t,{componentContext:n,processUrls:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).processUrls})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return el(e);const o=yd(L,n),i=td(e,t);return i.vars.length?pe(i.vars.map((t=>o.get(t)||dt(t))).filter(Ce),(()=>i.applyVars(o,r))):i.hasExpression?el(i.applyVars(o)):el(e)}(n.logError,t,yd(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return J(n.logError,t,yd(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=X(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=yd(n.variables,r.variables),r.tooltips&&(o.tooltips=r.tooltips),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||L).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(me(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let yt;return _t((()=>{gd++,1===gd&&(window.addEventListener("keydown",md),window.addEventListener("pointerdown",vd)),(()=>{var t;const e=null===(t=null==h?void 0:h.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void G(me(new Error("variable_trigger has a condition that is not a string"),{additional:{condition:t.condition}}));const n=t.mode||"on_condition";if("on_variable"===n||"on_condition"===n)try{const r=cl(t.condition,{startRule:"JsonStringContents"}),o=Vl(r);if(!o.length)return void G(me(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));pe(o.map((t=>L.get(t)||dt(t))),(()=>{const t=Xc(L,r);return t.warnings.forEach(G),t.result})).subscribe((async r=>{if("error"!==r.type){if(r.value&&("on_variable"===n||"on_condition"===n&&!1===e))for(const e of t.actions){const t=J(G,e);t.log_id&&await et(t)}e=Boolean(r.value)}else G(me(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){G(me(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else G(me(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),wt((()=>{gd--,gd||(window.removeEventListener("keydown",md),window.removeEventListener("pointerdown",vd)),W&&W.destroy(),q.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,u=t.id),"json"in t&&n(9,h=t.json),"platform"in t&&n(12,f=t.platform),"theme"in t&&n(10,g=t.theme),"globalVariablesController"in t&&n(13,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(14,y=t.customization),"builtinProtocols"in t&&n(15,$=t.builtinProtocols),"extensions"in t&&n(16,_=t.extensions),"onError"in t&&n(17,b=t.onError),"onStat"in t&&n(18,w=t.onStat),"onCustomAction"in t&&n(19,x=t.onCustomAction),"onComponent"in t&&n(20,k=t.onComponent),"typefaceProvider"in t&&n(21,E=t.typefaceProvider),"fetchInit"in t&&n(22,C=t.fetchInit),"tooltipRoot"in t&&n(23,A=t.tooltipRoot),"customComponents"in t&&n(24,j=t.customComponents),"direction"in t&&n(25,V=t.direction)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|8&t.$$.dirty[1]&&("light"===g||"dark"===g?n(33,F=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(34,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(N)),n(33,F=P.matches?"dark":"light")):n(33,F="light"):G(me(new Error("Unsupported theme")))),4&t.$$.dirty[1]&&F&&(gt&&gt[F].forEach((t=>{const e=L.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,O=!1);const t=function(t){if(!t)return me(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return me(new Error("Missing card"));if(!e.states||!e.states.length)return me(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ms)return me(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return me(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return me(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,O=!0),G(t))}if(512&t.$$.dirty[0]&&(r=h.templates||{}),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&(null===n(31,l=null==h?void 0:h.card)||void 0===l?void 0:l.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==ft&&h.card.variables.forEach((t=>{t&&t.name&&!B.has(t.name)&&pt(t)})),512&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(36,o=null===n(32,d=null==h?void 0:h.card)||void 0===d?void 0:d.states),6&t.$$.dirty[0]|48&t.$$.dirty[1]&&o&&!O&&!T){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(4,yt=vt.produceChildContext(t,{tooltips:q,isRootState:!0}))}},[v,O,T,Q,yt,i,a,D,S,h,g,u,f,m,y,$,_,b,w,x,k,E,C,A,j,V,function(t){n(10,g=t)},function(){return new Map},function(){return new Map},function(t){n(9,h=t)},function(t){et(J(G,t))},l,d,F,P,q,o]}const bd=class extends de{constructor(t){super(),le(this,t,_d,pd,u,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,direction:25,setTheme:26,getDebugVariables:27,getDebugAllVariables:28,setData:29,execAction:30},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[26]}get getDebugVariables(){return this.$$.ctx[27]}get getDebugAllVariables(){return this.$$.ctx[28]}get setData(){return this.$$.ctx[29]}get execAction(){return this.$$.ctx[30]}};class wd{constructor(t){var e,n,r;e=this,r={},n=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(n="sizeHistory"),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await St()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function xd(t){return t instanceof HTMLElement}function kd(t){return class{constructor(t){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((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(xd);r.forEach((t=>{t.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%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const Ed=["target","hydrate"];function Cd(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Ed),o=new bd({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var Ad=exports;for(var jd in e)Ad[jd]=e[jd];e.__esModule&&Object.defineProperty(Ad,"__esModule",{value:!0})})();
2
2
  //# sourceMappingURL=client-hydratable.js.map