@divkitframework/divkit 28.10.0 → 28.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:()=>zc,createGlobalVariablesController:()=>Ec,createVariable:()=>Qo,lottieExtensionBuilder:()=>Bc,render:()=>Lc});const r=t=>t;function i(t,e){for(const n in e)t[n]=e[n];return t}function o(t){return t()}function a(){return Object.create(null)}function l(t){t.forEach(o)}function s(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(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),i=1;i<e;i++)r[i-1]=arguments[i];if(null==t){for(const t of r)t(void 0);return n}const o=t.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const i=g(t,e,n,r);return t[0](i)}}function g(t,e,n,r){return t[1]&&r?i(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function v(t,e,n,r,i,o){if(i){const a=g(e,n,r,o);t.p(a,i)}}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&&s(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 A(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 C="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(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 D{constructor(t){V(this,"_listeners","WeakMap"in C?new WeakMap:void 0),V(this,"_observer",void 0),V(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;D.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function P(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}D.entries="WeakMap"in C?new WeakMap:void 0;let j=!1;function S(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function F(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=J("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(F(t),e),e.sheet}function I(t,e){if(j){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 i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:S(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[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){j&&!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 J(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function L(){return R(" ")}function U(){return R("")}function W(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const q=["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===q.indexOf(r)?t[r]=e[r]:H(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:H(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 i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}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 i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function et(t,e,n){return tt(t,e,n,J)}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}),(()=>R(e)),!0)}function it(t){return rt(t," ")}function ot(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 lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function st(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 ct{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];P(this,"is_svg",!1),P(this,"e",void 0),P(this,"n",void 0),P(this,"t",void 0),P(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=J(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 ct{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),P(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 dt(t,e){return new t(e)}const ht=new Map;let pt,ft=0;function gt(t,e,n,r,i,o,a){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(l),h=F(t),{stylesheet:p,rules:f}=ht.get(h)||function(t,e){const n={stylesheet:N(e),rules:{}};return ht.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(i,"ms 1 both"),ft+=1,d}function mt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),ft-=i,ft||x((()=>{ft||(ht.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),ht.clear())})))}function vt(t){pt=t}function yt(){if(!pt)throw new Error("Function called outside component initialization");return pt}function $t(t){yt().$$.on_mount.push(t)}function _t(t){yt().$$.on_destroy.push(t)}function bt(t,e){return yt().$$.context.set(t,e),e}function wt(t){return yt().$$.context.get(t)}function xt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const kt=[],Et=[];let At=[];const Ct=[],Vt=Promise.resolve();let Dt=!1;function Pt(){Dt||(Dt=!0,Vt.then(Ot))}function jt(){return Pt(),Vt}function St(t){At.push(t)}const Ft=new Set;let Nt,It=0;function Ot(){if(0!==It)return;const t=pt;do{try{for(;It<kt.length;){const t=kt[It];It++,vt(t),Tt(t.$$)}}catch(t){throw kt.length=0,It=0,t}for(vt(null),kt.length=0,It=0;Et.length;)Et.pop()();for(let t=0;t<At.length;t+=1){const e=At[t];Ft.has(e)||(Ft.add(e),e())}At.length=0}while(kt.length);for(;Ct.length;)Ct.pop()();Dt=!1,Ft.clear(),vt(t)}function Tt(t){if(null!==t.fragment){t.update(),l(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(St)}}function Mt(){return Nt||(Nt=Promise.resolve(),Nt.then((()=>{Nt=null}))),Nt}function zt(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 Jt=new Set;let Bt;function Rt(){Bt={r:0,c:[],p:Bt}}function Lt(){Bt.r||l(Bt.c),Bt=Bt.p}function Ut(t,e){t&&t.i&&(Jt.delete(t),t.i(e))}function Wt(t,e,n,r){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),Bt.c.push((()=>{Jt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Ht={duration:0};function qt(t,e,i){const o={direction:"in"};let a,l,c=e(t,i,o),u=!1,d=0;function h(){a&&mt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:s=n,css:p}=c||Ht;p&&(a=gt(t,0,1,i,e,o,p,d++)),s(0,1);const f=w()+e,g=f+i;l&&l.abort(),u=!0,St((()=>zt(t,!0,"start"))),l=A((e=>{if(u){if(e>=g)return s(1,0),zt(t,!0,"end"),h(),u=!1;if(e>=f){const t=o((e-f)/i);s(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,mt(t),s(c)?(c=c(o),Mt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Gt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Kt(t,e){Wt(t,1,1,(()=>{e.delete(t.key)}))}function Xt(t,e,n,r,i,o,a,s,c,u,d,h){let p=t.length,f=o.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(i,o,g),l=n(t);let s=a.get(l);s?r&&_.push((()=>s.p(t,e))):(s=u(l,t),s.c()),y.set(l,v[g]=s),l in m&&$.set(l,Math.abs(g-m[l]))}const b=new Set,w=new Set;function x(t){Ut(t,1),t.m(s,d),a.set(t.key,t),d=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,i=n.key;e===n?(d=e.first,p--,f--):y.has(i)?!a.has(r)||b.has(r)?x(e):w.has(i)?p--:$.get(r)>$.get(i)?(w.add(r),x(e)):(b.add(i),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 l(_),v}function Yt(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Zt;function Qt(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 te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(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 ne(t){t&&t.c()}function re(t,e){t&&t.l(e)}function ie(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),St((()=>{const e=t.$$.on_mount.map(o).filter(s);t.$$.on_destroy?t.$$.on_destroy.push(...e):l(e),t.$$.on_mount=[]})),i.forEach(St)}function oe(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];At.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),At=e}(n.after_update),l(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ae(t,e,r,i,o,s,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=pt;vt(t);const h=t.$$={fragment:null,ctx:[],props:s,update:n,not_equal:o,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.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&&o(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]&&(kt.push(t),Pt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,l(h.before_update),h.fragment=!!i&&i(h.ctx),e.target){if(e.hydrate){j=!0;const t=Y(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&Ut(t.$$.fragment),ie(t,e.target,e.anchor),j=!1,Ot()}vt(d)}function le(t,e,n,r){var i;const o=null===(i=n[t])||void 0===i?void 0:i.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){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(o){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&&(Zt=class extends HTMLElement{constructor(t,e,n){super(),ee(this,"$$ctor",void 0),ee(this,"$$s",void 0),ee(this,"$$c",void 0),ee(this,"$$cn",!1),ee(this,"$$d",{}),ee(this,"$$r",!1),ee(this,"$$p_d",{}),ee(this,"$$l",{}),ee(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=J("slot"),"default"!==t&&H(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 i of this.$$s)i in n&&(e[i]=[t(i)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=le(a,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:te(te({},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=le(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 l in this.$$l)for(const s of this.$$l[l]){const c=this.$$c.$on(l,s);this.$$l_u.set(s,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=le(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 se{constructor(){ee(this,"$$",void 0),ee(this,"$$set",void 0)}$destroy(){oe(this,1),this.$destroy=n}$on(t,e){if(!s(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 ce=[];function ue(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const i=new Set;function o(n){if(o=n,((r=t)!=r?o==o:r!==o||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ce.length;for(const e of i)e[1](),ce.push(e,t);if(e){for(let t=0;t<ce.length;t+=2)ce[t][0](ce[t+1]);ce.length=0}}var r,o}function a(e){o(e(t))}return{set:o,update:a,subscribe:function(l){const s=[l,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return i.add(s),1===i.size&&(e=r(o,a)||n),l(t),()=>{i.delete(s),0===i.size&&e&&(e(),e=null)}}}}function de(t,e,r){const i=!Array.isArray(t),o=i?[t]:t;if(!o.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 u=[];let d=0,p=n;const f=()=>{if(d)return;p();const o=e(i?u[0]:u,t,r);a?t(o):p=s(o)?o:n},g=o.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&f()}),(()=>{d|=1<<e}))));return c=!0,f(),function(){l(g),p(),c=!1}},{subscribe:ue(r,c).subscribe};var c}const he={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"},pe=Symbol("root");function fe(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 ge={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",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"},me={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 ve(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 ye(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function $e(t){let e=ye(t);return"0"===e&&(e+="em"),e}function _e(t,e){for(;t.length<e;)t="0"+t;return t}function be(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=we(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>_e(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 we(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,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function xe(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 ke=Boolean;function Ee(t){if(1===t.length&&"solid"===t[0].type)return{color:be(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=be(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(ke);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>be(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:Ve(t.bg.scale),pos:De(t.bg),image:'url("'+xe(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(ke);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=$e(r.value):"relative"===r.type&&(i=Ae[r.value]));const o=Ce(t.bg.center_x),a=Ce(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>be(t))).join(",")+")"}}({bg:t}):void 0)).filter(ke).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 Ae={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ce(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return $e(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Ve(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function De(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 je(t,e){return e.has(t)}function Se(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 Fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(n),!0).forEach((function(e){Ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(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 Ie(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Oe(t,e){e&&t.push(e)}function Te(t,e,n){const r=[];Oe(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Oe(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Me=Symbol("state");function ze(t){return ye(t.top||0)+" "+ye(t.right||0)+" "+ye(t.bottom||0)+" "+ye(t.left||0)}function Je(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Be(t){return Je(t)&&t>=0}function Re(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!Be(n[t]))return e;return ze(t)}function Le(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ue=Object.prototype.hasOwnProperty;function We(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 i=n[r];if(!Ue.call(e,i)||!We(t[i],e[i]))return!1}return!0}function He(t,e){return We(t,e)?e:t}function qe(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 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]]&&!Be(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=>ye((t||e)/n*10))).join(" ")}function Ze(){}const Qe=Symbol("action");function tn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function en(t){var e;let n,r,o,a,s,c,u,d;const h=t[15].default,p=f(h,t,t[14],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?he.root__clickable:he["root__clickable-no-transition"]," ").concat(he.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?he["root_disabled-context-menu"]:"")},{style:t[2]},{role:o=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=i($,g[t]);return{c(){n=J("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[23](n),c=!0,u||(d=[_(s=t[4].call(null,n)),W(n,"click",t[19]),W(n,"keydown",t[10]),W(n,"focus",t[20]),W(n,"blur",t[21])],u=!0)},p(t,e){var i;p&&p.p&&(!c||16384&e[0])&&v(p,h,t,t[14],c?m(h,t[14],e,null):y(t[14]),null),G(n,$=Yt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?he.root__clickable:he["root__clickable-no-transition"]," ").concat(he.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?he["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&o!==(o=t[8]?"button":null))&&{role:o},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Ut(p,t),c=!0)},o(t){Wt(p,t),c=!1},d(e){e&&M(n),p&&p.d(e),t[23](null),u=!1,l(d)}}}function nn(t){var e;let n,r,o,a,s,c;const u=t[15].default,d=f(u,t,t[14],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?he.root__clickable:he["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?he["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=i(p,h[t]);return{c(){n=J("a"),d&&d.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Y(n);d&&d.l(e),e.forEach(M),this.h()},h(){G(n,p)},m(e,r){T(e,n,r),d&&d.m(n,null),t[22](n),a=!0,s||(c=[_(o=t[4].call(null,n)),W(n,"click",t[16]),W(n,"keydown",t[10]),W(n,"focus",t[17]),W(n,"blur",t[18])],s=!0)},p(t,e){var i;d&&d.p&&(!a||16384&e[0])&&v(d,u,t,t[14],a?m(u,t[14],e,null):y(t[14]),null),G(n,p=Yt(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]?he.root__clickable:he["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?he["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Ut(d,t),a=!0)},o(t){Wt(d,t),a=!1},d(e){e&&M(n),d&&d.d(e),t[22](null),s=!1,l(c)}}}function rn(t){let e,n,r,i;const o=[nn,en],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=U()},l(t){n.l(t),r=U()},m(t,n){a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?a[e].p(t,i):(Rt(),Wt(a[s],1,1,(()=>{a[s]=null})),Lt(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ut(n,1),n.m(r.parentNode,r))},i(t){i||(Ut(n),i=!0)},o(t){Wt(n),i=!1},d(t){t&&M(r),a[e].d(t)}}}function on(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Ze}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=wt(pe),g=wt(Qe);let m;bt(Qe,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let v,y="",$=-1,_=null,b=!1,w=!1;async function x(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.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&&!je(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))}function k(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)}function E(t){t.touches.length>1||(_=tn(t),b=!1,$=Date.now())}function A(t){if(!_)return;const e=tn(t);(Math.abs(_.x-e.x)>8||Math.abs(_.y-e.y)>8)&&(b=!0)}function C(){!_||$<0||(!b&&Date.now()-$>=400&&f.execAnyActions(l,!0),_=null,$=-1)}return t.$$set=t=>{"actions"in t&&n(11,o=t.actions),"doubleTapActions"in t&&n(12,a=t.doubleTapActions),"longTapActions"in t&&n(0,l=t.longTapActions),"cls"in t&&n(1,s=t.cls),"style"in t&&n(2,c=t.style),"attrs"in t&&n(3,u=t.attrs),"use"in t&&n(4,d=t.use),"customAction"in t&&n(13,h=t.customAction),"isNativeActionAnimation"in t&&n(5,p=t.isNativeActionAnimation),"$$scope"in t&&n(14,i=t.$$scope)},t.$$.update=()=>{if(10368&t.$$.dirty[0]){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,y=e),n(9,v=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,y=""),f.logError(fe(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(8,w=Boolean(h)),y&&!je(Pe(y),f.getBuiltinProtocols())?(n(7,y=""),n(8,w=!0)):!y&&Array.isArray(o)&&(null==o?void 0:o.length)&&(n(8,w=!0),o.some((t=>t.url||t.typed))||f.logError(fe(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:o}})))}4545&t.$$.dirty[0]&&m&&(y||w?m.addEventListener("click",x):m.removeEventListener("click",x),(null==a?void 0:a.length)?m.addEventListener("dblclick",k):m.removeEventListener("dblclick",k),(null==l?void 0:l.length)?(m.addEventListener("touchstart",E,{passive:!0}),m.addEventListener("touchmove",A,{passive:!0}),m.addEventListener("touchend",C,{passive:!0}),m.addEventListener("touchcancel",C,{passive:!0})):(m.removeEventListener("touchstart",E),m.removeEventListener("touchmove",A),m.removeEventListener("touchend",C),m.removeEventListener("touchcancel",C)))},[l,s,c,u,d,p,m,y,w,v,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(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,a,h,i,r,function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(t){Et[t?"unshift":"push"]((()=>{m=t,n(6,m)}))},function(t){Et[t?"unshift":"push"]((()=>{m=t,n(6,m)}))}]}const an=class extends se{constructor(t){super(),ae(this,t,on,rn,d,{actions:11,doubleTapActions:12,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:13,isNativeActionAnimation:5},null,[-1,-1])}},ln={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function sn(t){return Je(t)&&t>0}function cn(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(sn(t.radius))return"blur(".concat($e(t.radius/2),")")}else e(fe(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function un(t,e,n){const r=t.slice();return r[5]=e[n],r}function dn(t){let e,n,r;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=ln["outer-background__item"]),H(e,"style",r=ve(t[5].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=ve(t[5].style))&&H(e,"style",r)},d(t){t&&M(e)}}}function hn(t){let e,n,r,i,o,a;return{c(){e=J("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(){u(e.src,n=t[5].image_url)||H(e,"src",n),H(e,"alt",""),H(e,"aria-hidden","true"),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"class",r=ln["outer-background__item"]),H(e,"style",i=ve(t[5].style))},m(n,r){T(n,e,r),o||(a=W(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&H(e,"src",n),2&r&&i!==(i=ve(t[5].style))&&H(e,"style",i)},d(t){t&&M(e),o=!1,a()}}}function pn(t){let e;function n(t,e){return t[5].image_url?hn:dn}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function fn(t){let e,r,i=Gt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=pn(un(t,i,e));return{c(){e=J("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=Y(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=ln["outer-background"]+(t[0]?" "+ln["outer-background_clip"]:"")),lt(e,"border-radius",t[0])},m(t,n){T(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(i=Gt(t[1]),n=0;n<i.length;n+=1){const r=un(t,i,n);o[n]?o[n].p(r,a):(o[n]=pn(r),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}1&a&&r!==(r=ln["outer-background"]+(t[0]?" "+ln["outer-background_clip"]:""))&&H(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(o,t)}}}function gn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=wt(pe);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.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=Ee([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=cn(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ln["outer-background__item_hidden"])},i]}const mn=class extends se{constructor(t){super(),ae(this,t,gn,fn,d,{background:3,radius:0})}},vn=t=>({hasCustomFocus:64&t[0]}),yn=t=>({focusHandler:t[36],blurHandler:t[37],hasCustomFocus:t[6]});function $n(t){let e,n;return e=new an({props:{use:t[35],cls:t[0]+" "+Te("outer",me,t[17]),style:ve(t[15]),actions:t[11],doubleTapActions:t[12],longTapActions:t[13],attrs:t[7],isNativeActionAnimation:!t[5].length||kn(t[5]),$$slots:{default:[wn]},$$scope:{ctx:t}}}),e.$on("focus",t[36]),e.$on("blur",t[37]),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};131073&n[0]&&(r.cls=t[0]+" "+Te("outer",me,t[17])),32768&n[0]&&(r.style=ve(t[15])),2048&n[0]&&(r.actions=t[11]),4096&n[0]&&(r.doubleTapActions=t[12]),8192&n[0]&&(r.longTapActions=t[13]),128&n[0]&&(r.attrs=t[7]),32&n[0]&&(r.isNativeActionAnimation=!t[5].length||kn(t[5])),350&n[0]|4194304&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function _n(t){let e,n;return e=new mn({props:{background:t[3],radius:t[2]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.background=t[3]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function bn(t){let e,n,r;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=me.outer__border),H(e,"style",r=ve(t[1]))},m(t,n){T(t,e,n)},p(t,n){2&n[0]&&r!==(r=ve(t[1]))&&H(e,"style",r)},d(t){t&&M(e)}}}function wn(t){let e,n,r,i=t[4]&&_n(t);const o=t[114].default,a=f(o,t,t[115],yn);let l=t[8]&&bn(t);return{c(){i&&i.c(),e=U(),a&&a.c(),l&&l.c(),n=U()},l(t){i&&i.l(t),e=U(),a&&a.l(t),l&&l.l(t),n=U()},m(t,o){i&&i.m(t,o),T(t,e,o),a&&a.m(t,o),l&&l.m(t,o),T(t,n,o),r=!0},p(t,s){t[4]?i?(i.p(t,s),16&s[0]&&Ut(i,1)):(i=_n(t),i.c(),Ut(i,1),i.m(e.parentNode,e)):i&&(Rt(),Wt(i,1,1,(()=>{i=null})),Lt()),a&&a.p&&(!r||64&s[0]|4194304&s[3])&&v(a,o,t,t[115],r?m(o,t[115],s,vn):y(t[115]),yn),t[8]?l?l.p(t,s):(l=bn(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Ut(i),Ut(a,t),r=!0)},o(t){Wt(i),Wt(a,t),r=!1},d(t){t&&(M(e),M(n)),i&&i.d(t),a&&a.d(t),l&&l.d(t)}}}function xn(t){let e,n,r=!t[9]&&!t[10]&&$n(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[9]||t[10]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),1536&n[0]&&Ut(r,1)):(r=$n(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function kn(t){return t.some((t=>"native"===t.name))}function En(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D,P,j,S,F,N,I,O,T,M,z,J,B,R,L,U,W,H,q,G,K,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,it=n,ot=n,at=n,lt=n,st=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n;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((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft()));let{$$slots:gt={},$$scope:mt}=e,{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:bt=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Et=!1}=e,{customPaddings:At=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:Vt=null}=e,{heightByAspect:Dt=!1}=e,{parentOf:Pt}=e,{replaceItems:St}=e;const Ft={left:"start",center:"center",right:"end"},Nt={top:"start",center:"center",bottom:"end",baseline:"baseline"},It=wt(pe),Ot=wt(Me);let Tt,Mt,zt=null,Jt=[];function Bt(t,e){if(!Array.isArray(Pt)||!St)return;const n=Pt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Pt.slice();i.splice(n,1,...e||[]),r(38,Pt=i),St(i)}let Rt,Lt,Ut,Wt,Ht,qt,Gt,Kt,Xt,Yt,Zt={},Qt={},te=!1,ee=1,ne="transparent",re=0,ie={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},oe="",ae=null,le="",se={},ce=0,ue=0,de=0,he=!1,ge=!1,me={},ve=0,_e=0,we=0,xe=!1,Ae=!1,Ce=1;const Ve=kt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],De=-1!==Ve.indexOf("state_change")&&vt.id,Se=-1!==Ve.indexOf("visibility_change")&&vt.id;let Ne,Oe,Te,Je,Ue,We,Ze,Qe=[],tn=[],en=[],nn=[],rn=[],on=[],an="";function ln(t){const e=Ge(t.start_value,1),n=Ge(t.end_value,1),i=Le(t.start_delay,0),o=Le(t.duration,300),a=qe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(81,Je=e),r(82,Ue=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(83,We=e),r(84,Ze=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return It.logError(fe(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let sn,cn,un,dn=!1,hn="visible",pn=0,fn=0;return _t((()=>{var t;Jt.forEach((t=>{It.unregisterParentOf(t)})),r(50,Jt=[]),null===(t=vt.tooltips)||void 0===t||t.forEach((t=>{It.unregisterTooltip(t)}))})),t.$$set=t=>{"json"in t&&r(39,vt=t.json),"origJson"in t&&r(40,yt=t.origJson),"templateContext"in t&&r(41,$t=t.templateContext),"cls"in t&&r(0,bt=t.cls),"style"in t&&r(42,xt=t.style),"layoutParams"in t&&r(43,kt=t.layoutParams),"customDescription"in t&&r(44,Et=t.customDescription),"customPaddings"in t&&r(45,At=t.customPaddings),"customActions"in t&&r(46,Ct=t.customActions),"additionalPaddings"in t&&r(47,Vt=t.additionalPaddings),"heightByAspect"in t&&r(48,Dt=t.heightByAspect),"parentOf"in t&&r(38,Pt=t.parentOf),"replaceItems"in t&&r(49,St=t.replaceItems),"$$scope"in t&&r(115,mt=t.$$scope)},t.$$.update=()=>{if(524416&t.$$.dirty[1]&&(Jt.forEach((t=>{It.unregisterParentOf(t)})),r(50,Jt=[]),Pt&&Pt.forEach((t=>{t.id&&(Jt.push(t.id),It.registerParentOf(t.id,{replaceWith:Bt}))}))),256&t.$$.dirty[1]&&(r(34,i=It.getDerivedFromVars(vt.focus)),tt(),tt=h(i,(t=>r(99,I=t)))),256&t.$$.dirty[1]&&(r(33,o=It.getDerivedFromVars(vt.border)),ft(),ft=h(o,(t=>r(113,K=t)))),66&t.$$.dirty[0]|32505856&t.$$.dirty[1]|1048640&t.$$.dirty[3]){const t=un&&(null==I?void 0:I.border)?I.border:K;let e={},n={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,i,o,a;return ye((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+ye((null===(r=t.offset)||void 0===r||null===(i=r.y)||void 0===i?void 0:i.value)||0)+" "+ye(null!==(o=t.blur)&&void 0!==o?o:2)+" "+be(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&&(i=!0,r(52,ee=Le(t.stroke.width,ee)),r(53,ne=be(t.stroke.color,1,ne)),n.border="".concat(ye(ee)," solid ").concat(ne)),t.corners_radius?(r(55,ie=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]&&!Be(n[t]))return e;return t}(t.corners_radius,ie)),n["border-radius"]=e["border-radius"]=Ye(ie)):t.corner_radius&&(r(54,re=Le(t.corner_radius,re)),r(55,ie={"top-left":re,"top-right":re,"bottom-right":re,"bottom-left":re}),n["border-radius"]=e["border-radius"]=ye(re)),i&&ee&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},ie);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ee/2})),o=Ye(t)}}r(51,Zt=He(e,Zt)),r(1,Qt=He(n,Qt)),r(8,te=i),r(2,oe=o)}if(256&t.$$.dirty[1]&&(r(32,a=It.getDerivedFromVars(vt.paddings)),pt(),pt=h(a,(t=>r(112,G=t)))),33570816&t.$$.dirty[1]|524288&t.$$.dirty[3]&&r(56,ae=Xe(G&&!At?G:void 0,ae)),33619968&t.$$.dirty[1]&&r(92,l=ze(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(ae,Vt))),256&t.$$.dirty[1]&&(r(31,s=It.getDerivedFromVars(vt.margins)),dt(),dt=h(s,(t=>r(110,H=t)))),67108864&t.$$.dirty[1]|131072&t.$$.dirty[3]&&r(57,le=Re(H,le)),256&t.$$.dirty[1]&&(r(30,c=It.getDerivedFromVars(vt.width)),ct(),ct=h(c,(t=>r(108,U=t)))),256&t.$$.dirty[1]&&(r(29,u=It.getDerivedFromVars(vt.alignment_horizontal)),ht(),ht=h(u,(t=>r(111,q=t)))),134221824&t.$$.dirty[1]|1&t.$$.dirty[2]|425984&t.$$.dirty[3]){let t,e,n,i,o={},a=0,l=0,s=!1,c=!1;const u=null==U?void 0:U.type;if("fixed"===u)r(62,ce=Le(null==U?void 0:U.value,ce)),e=ye(ce);else if("wrap_content"!==u&&(kt.overlapParent||"match_parent"!==u&&u||!kt.parentHorizontalWrapContent))t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,It.logError(fe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat($e(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,kt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=U;t.min_size&&Be(t.min_size.value)&&(n=ye(t.min_size.value)),t.max_size&&Be(t.max_size.value)&&(i=ye(t.max_size.value))}"match_parent"!==u&&u||It.logError(fe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?Ft[t]:kt.parentHAlign||"start"}t&&(o.width=t),r(59,Rt=e),r(60,Lt=n),r(61,Ut=i),r(63,ue=a),r(64,de=l),r(58,se=He(o,se)),r(65,he=s),r(9,ge=c)}if(256&t.$$.dirty[1]&&(r(28,d=It.getDerivedFromVars(vt.height)),st(),st=h(d,(t=>r(107,L=t)))),256&t.$$.dirty[1]&&(r(27,p=It.getDerivedFromVars(vt.alignment_vertical)),ut(),ut=h(p,(t=>r(109,W=t)))),135168&t.$$.dirty[1]|272&t.$$.dirty[2]|212992&t.$$.dirty[3]){let t,e,n,i,o={},a=0,l=0,s=!1,c=!1;const u=null==L?void 0:L.type;if(Dt);else if("fixed"===u)r(70,ve=Le(null==L?void 0:L.value,ve)),e=ye(ve);else if("match_parent"!==u||!kt.overlapParent&&kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Be(t.min_size.value)&&(n=ye(t.min_size.value)),(null==t?void 0:t.max_size)&&Be(t.max_size.value)&&(i=ye(t.max_size.value))}"match_parent"===u&&It.logError(fe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,It.logError(fe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat($e(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,kt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?o["valign-self"]=Nt[t]:o["valign-self"]=kt.parentVAlign||"start"}t&&(o.height=t),r(67,Wt=e),r(68,Ht=n),r(69,qt=i),r(71,_e=a),r(72,we=l),r(66,me=He(o,me)),r(73,xe=s),r(10,Ae=c)}var e,n;if(4096&t.$$.dirty[1]&&r(95,f=!!kt.overlapParent||void 0),4096&t.$$.dirty[1]|49152&t.$$.dirty[3]&&r(94,g=kt.overlapParent&&(!U||"match_parent"===U.type)&&"match_parent"===(null==L?void 0:L.type)),4096&t.$$.dirty[1]&&r(93,m=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),256&t.$$.dirty[1]&&(r(26,v=It.getDerivedFromVars(vt.alpha)),lt(),lt=h(v,(t=>r(106,R=t)))),4096&t.$$.dirty[2]|8192&t.$$.dirty[3]&&(r(74,(n=Ce,Ce=!Be(e=R)||void 0===e||e>1?n:Number(e))),r(75,Gt=1===Ce?void 0:Ce)),256&t.$$.dirty[1]&&(r(25,y=It.getDerivedFromVars(vt.accessibility)),at(),at=h(y,(t=>r(105,B=t)))),8192&t.$$.dirty[1]|4096&t.$$.dirty[3]&&(r(7,Mt=void 0),B&&!Et&&B.description&&(r(7,Mt={}),r(7,Mt["aria-label"]=B.description,Mt))),256&t.$$.dirty[1]&&(r(24,$=It.getDerivedFromVars(vt.background)),ot(),ot=h($,(t=>r(104,J=t)))),92&t.$$.dirty[0]|2112&t.$$.dirty[3]&&(r(3,Kt=un&&(null==I?void 0:I.background)?I.background:J),r(76,Xt={}),r(4,Yt=!1),Array.isArray(Kt)&&(r(4,Yt=Kt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(oe)),!Yt))){const t=Ee(Kt);r(76,Xt["background-color"]=t.color,Xt),r(76,Xt["background-image"]=t.image,Xt),r(76,Xt["background-size"]=t.size,Xt),r(76,Xt["background-position"]=t.position,Xt),r(76,Xt["background-repeat"]="no-repeat",Xt)}if(256&t.$$.dirty[1]&&(r(77,Ne=void 0),De&&vt.transition_in&&It.isRunning("stateChange")&&r(77,Ne=!0)),256&t.$$.dirty[1]&&(r(79,Te=void 0),De&&vt.transition_change&&It.isRunning("stateChange")&&Ot.hasTransitionChange(vt.id)&&r(79,Te=!0)),256&t.$$.dirty[1]&&(r(23,_=It.getDerivedFromVars(vt.action)),rt(),rt=h(_,(t=>r(102,M=t)))),256&t.$$.dirty[1]&&(r(22,b=It.getDerivedFromVars(vt.actions)),it(),it=h(b,(t=>r(103,z=t)))),256&t.$$.dirty[1]&&(r(21,w=It.getDerivedFromVars(vt.doubletap_actions)),nt(),nt=h(w,(t=>r(101,T=t)))),256&t.$$.dirty[1]&&(r(20,x=It.getDerivedFromVars(vt.longtap_actions)),et(),et=h(x,(t=>r(100,O=t)))),36864&t.$$.dirty[1]|1984&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],i=(null==I?void 0:I.on_focus)||[],o=(null==I?void 0:I.on_blur)||[];kt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],It.logError(fe(new Error("Actions should be array")))),Array.isArray(e)||(e=[],It.logError(fe(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],It.logError(fe(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],It.logError(fe(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],It.logError(fe(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Ct&&(t=[],e=[],n=[],It.logError(fe(new Error('Cannot use action on component "'.concat(Ct,'"'))))),r(11,Qe=t),r(12,tn=e),r(13,en=n),nn=i,rn=o}if(256&t.$$.dirty[1]&&(r(19,k=It.getDerivedFromVars(vt.action_animation)),Q(),Q=h(k,(t=>r(98,N=t)))),32&t.$$.dirty[0]|32&t.$$.dirty[3]&&N&&(r(5,on=Ke(N)),r(80,an=on.map(ln).filter(Boolean).join(", "))),256&t.$$.dirty[1]&&(r(18,E=It.getDerivedFromVars(vt.visibility)),Z(),Z=h(E,(t=>r(97,F=t)))),25165824&t.$$.dirty[2]|16&t.$$.dirty[3]){const t=hn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(F,hn);t!==e&&(!dn||"visible"!==hn&&"visible"!==e?r(86,hn=e):async function(t){r(86,hn=t);const e="visible"===t?"in":"out",n="in"===e?vt.transition_in:vt.transition_out;Se&&n&&(await jt(),"in"===e&&r(78,Oe=!0),Ot.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,n,Tt,e).then((()=>{"in"===e&&r(78,Oe=!1)})).catch((t=>{throw"in"===e&&r(78,Oe=!1),t})))}(e)),dn||r(85,dn=!0)}if(64&t.$$.dirty[0]|134222080&t.$$.dirty[1]|17268752&t.$$.dirty[2]|6&t.$$.dirty[3]&&r(17,A=Object.assign(Object.assign(Object.assign({},se),me),{"parent-overlap":f,"parent-overlap-absolute":g,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Ne||Oe||Te,visibility:hn,"has-action-animation":Boolean(an),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0,"has-custom-focus":Boolean(un&&vt.focus)})),256&t.$$.dirty[1]&&(r(16,C=It.getDerivedFromVars(vt.transform)),Y(),Y=h(C,(t=>r(96,S=t)))),100663296&t.$$.dirty[2]|8&t.$$.dirty[3]&&S&&void 0!==S.rotation){const t=S.pivot_x||{type:"pivot-percentage",value:50};r(87,pn=Ge(t.value,pn));const e="pivot-fixed"===t.type?ye(pn):"".concat(pn,"%"),n=S.pivot_y||{type:"pivot-percentage",value:50};r(88,fn=Ge(n.value,fn));const i="pivot-fixed"===n.type?ye(fn):"".concat(fn,"%");r(89,sn="".concat(e," ").concat(i)),r(90,cn="rotate(".concat(S.rotation,"deg)"))}2570&t.$$.dirty[2]&&r(91,V=he||xe?"100%":ue||_e?0:void 0),1947207680&t.$$.dirty[1]|2021418726&t.$$.dirty[2]|1&t.$$.dirty[3]&&r(15,D=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Xt),Zt),{width:Rt,"min-width":Lt,"max-width":Ut,height:Wt,"min-height":Ht,"max-height":qt||(null==xt?void 0:xt["max-height"]),"grid-area":m,padding:l,margin:le,opacity:Gt,transition:an,"transform-origin":sn,transform:cn,"flex-grow":ue||_e||void 0,"flex-shrink":de||we?1:void 0,"flex-basis":V,"--divkit-animation-opacity-start":Je,"--divkit-animation-opacity-end":Ue,"--divkit-animation-scale-start":We,"--divkit-animation-scale-end":Ze}))},r(14,P=It.isPointerFocus),X(),X=h(P,(t=>r(120,j=t))),[bt,Qt,oe,Kt,Yt,on,un,Mt,te,ge,Ae,Qe,tn,en,P,D,C,A,E,k,x,w,b,_,$,y,v,p,d,u,c,s,a,o,i,function(t){var e;Tt=t,De&&vt.transition_in&&Ot.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{r(77,Ne=!1)})).catch((t=>{throw r(77,Ne=!1),t})),De&&vt.transition_out&&Ot.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),De&&vt.transition_change&&Ot.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{r(79,Te=!1)})).catch((t=>{throw r(79,Te=!1),t}));const n=kt.fakeElement?[]:vt.visibility_actions||vt.visibility_action&&[vt.visibility_action],i=kt.fakeElement?[]:vt.disappear_actions;(Array.isArray(n)&&n.length||Array.isArray(i)&&i.length)&&function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map((t=>{const e="visibility"===t.type,n=i.getJsonWithVars({visibility_percentage:t.action.visibility_percentage,visibility_duration:e?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit});return Fe(Fe({},n),{},{visibility_percentage:Ie(e,n.visibility_percentage,e?50:0)})})),l=[...new Set(a.map((t=>t.visibility_percentage/100)))];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=a[e.index],r="visibility"===e.type;let o;o=0===n.visibility_percentage?t.intersectionRatio>=1e-12:t.intersectionRatio>=n.visibility_percentage/100;const l=r?!e.visible&&o:e.visible&&!o,s=r?!o:o;l?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url,l=o.typed;if(a){const t=Pe(a);t&&!je(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}else l&&i.execAction(o);i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):s&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:l}).observe(t)}(t,{visibilityActions:n,disappearActions:i,rootCtx:It});const o=vt.id;o&&Ot.registerChild(o),null===(e=vt.tooltips)||void 0===e||e.forEach((e=>{It.registerTooltip(t,e)}));let a=null;if(Array.isArray(vt.extensions)){const e=It.getExtensionContext();zt=vt.extensions.map((n=>{var r;const i=It.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(ke)}return{destroy(){if(o&&Ot.unregisterChild(o),zt){const e=It.getExtensionContext();zt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),zt=null}a&&a.destroy()}}},function(){vt.focus&&(j||r(6,un=!0),It.execAnyActions(nn))},function(){vt.focus&&(r(6,un=!1),It.execAnyActions(rn))},Pt,vt,yt,$t,xt,kt,Et,At,Ct,Vt,Dt,St,Jt,Zt,ee,ne,re,ie,ae,le,se,Rt,Lt,Ut,ce,ue,de,he,me,Wt,Ht,qt,ve,_e,we,xe,Ce,Gt,Xt,Ne,Oe,Te,an,Je,Ue,We,Ze,dn,hn,pn,fn,sn,cn,V,l,m,g,f,S,F,N,I,O,T,M,z,J,B,R,L,U,W,H,q,G,K,gt,mt]}const An=class extends se{constructor(t){super(),ae(this,t,En,xn,d,{json:39,origJson:40,templateContext:41,cls:0,style:42,layoutParams:43,customDescription:44,customPaddings:45,customActions:46,additionalPaddings:47,heightByAspect:48,parentOf:38,replaceItems:49},null,[-1,-1,-1,-1,-1])}},Cn={"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 Vn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Dn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Pn(t,e){return Dn(t)||e}function jn(t){let e,n;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Cn["text-range__top-offset"]),lt(e,"margin-top",t[4])},m(t,n){T(t,e,n)},p(t,n){16&n&&lt(e,"margin-top",t[4])},d(t){t&&M(e)}}}function Sn(t){let e;return{c(){e=R(t[0])},l(n){e=rt(n,t[0])},m(t,n){T(t,e,n)},p(t,n){1&n&&at(e,t[0])},d(t){t&&M(e)}}}function Fn(t){let e,n,r,i=t[4]&&jn(t);return n=new an({props:{cls:Te("text-range",Cn,t[3]),actions:t[1],style:ve(t[2]),$$slots:{default:[Sn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=U(),ne(n.$$.fragment)},l(t){i&&i.l(t),e=U(),re(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),T(t,e,o),ie(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=jn(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Te("text-range",Cn,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ve(t[2])),4194305&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Ut(n.$$.fragment,t),r=!0)},o(t){Wt(n.$$.fragment,t),r=!1},d(t){t&&M(e),i&&i.d(t),oe(n,t)}}}function Nn(t,e,n){let r,i,o,a,l,s;var c,u;let{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e;const m=wt(pe);let v,y="none",$=12,_=1.25,b="",w="",x="",k=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,y=t)}2112&t.$$.dirty&&n(11,$=Vn(p.font_size,$)),2112&t.$$.dirty&&sn(p.line_height)&&n(12,_=Number(p.line_height)/$),64&t.$$.dirty&&Be(p.letter_spacing)&&n(13,b=ye(p.letter_spacing)),16448&t.$$.dirty&&(n(14,v=Pn(p.font_weight,v)),"string"==typeof p.font_family&&p.font_family?n(15,w=m.typefaceProvider(p.font_family,{fontWeight:v||400})):n(15,w="")),65600&t.$$.dirty&&n(16,x=be(p.text_color,1,x)),64&t.$$.dirty&&n(4,r=p.top_offset?ye(p.top_offset):""),64&t.$$.dirty&&n(19,i=p.background?Ee([p.background]):null),320&t.$$.dirty&&((null===n(8,c=p.border)||void 0===c?void 0:c.stroke)&&p.border.stroke.color&&"transparent"!==be(p.border.stroke.color)&&sn(p.border.stroke.width)?n(17,k={color:p.border.stroke.color,width:p.border.stroke.width}):n(17,k=null)),576&t.$$.dirty&&n(18,o=Vn(null===n(9,u=p.border)||void 0===u?void 0:u.corner_radius,0)),2112&t.$$.dirty&&n(20,a=p.text_shadow?function(t,e){var n,r,i,o,a,l;return"drop-shadow("+be(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+ye(10*((null===(r=t.offset)||void 0===r||null===(i=r.x)||void 0===i?void 0:i.value)||0)/e)+" "+ye(10*((null===(o=t.offset)||void 0===o||null===(a=o.y)||void 0===a?void 0:a.value)||0)/e)+" "+ye(10*(null!==(l=t.blur)&&void 0!==l?l:2)/e)+")"}(p.text_shadow,$):void 0),1152&t.$$.dirty&&n(3,l={singleline:f,decoration:y}),2095136&t.$$.dirty&&n(2,s={"font-size":ye(10*$/h),"line-height":_,"letter-spacing":b,"font-weight":v,"font-family":w,filter:a,color:x,background:(null==i?void 0:i.color)||void 0,"box-shadow":k?"inset 0 0 0 ".concat(ye(k.width)," ").concat(k.color):void 0,"border-radius":o?ye(o):void 0})},[d,g,s,l,r,h,p,f,c,u,y,$,_,b,v,w,x,k,o,i,a]}const In=class extends se{constructor(t){super(),ae(this,t,Nn,Fn,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function On(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Tn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Mn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function zn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Jn}=C;function Bn(t,e,n){const r=t.slice();return r[58]=e[n],r[60]=n,r}function Rn(t){let e,n;return e=new An({props:{cls:Te("text",ge,t[13])+" "+(t[6]?"":he.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Kn]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=Te("text",ge,t[13])+" "+(t[6]?"":he.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),268443312&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ln(t){let e,n;return e=new In({props:{text:t[4],rootFontSize:t[5],textStyles:t[28],singleline:t[7]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),268435456&n[0]&&(r.textStyles=t[28]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Un(t){let e,n,r=Gt(t[10]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Gn(Bn(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(536872608&n[0]){let a;for(r=Gt(t[10]),a=0;a<r.length;a+=1){const o=Bn(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Gn(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Jn);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Wn(t){let e,r,i,o,a,l,s,c;return{c(){e=J("span"),r=J("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(){H(r,"class",i=ge.text__image),u(r.src,o=t[58].image.url)||H(r,"src",o),H(r,"loading","lazy"),H(r,"decoding","async"),H(r,"aria-hidden","true"),H(r,"alt",""),H(r,"style",a=ve({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0})),H(e,"style",l=ve(t[58].image.wrapperStyle))},m(n,i){T(n,e,i),I(e,r),s||(c=W(r,"error",t[29]),s=!0)},p(t,n){1024&n[0]&&!u(r.src,o=t[58].image.url)&&H(r,"src",o),1536&n[0]&&a!==(a=ve({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0}))&&H(r,"style",a),1024&n[0]&&l!==(l=ve(t[58].image.wrapperStyle))&&H(e,"style",l)},i:n,o:n,d(t){t&&M(e),s=!1,c()}}}function Hn(t){let e,n,r=t[58].text&&qn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[58].text?r?(r.p(t,n),1024&n[0]&&Ut(r,1)):(r=qn(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function qn(t){let e,n;return e=new In({props:{text:t[58].text,rootFontSize:t[5],textStyles:t[58].textStyles,singleline:t[7],actions:t[58].actions}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[58].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[58].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[58].actions),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Gn(t){let e,n,r,i;const o=[Hn,Wn],a=[];function l(t,e){return"text"in t[58]?0:t[58].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=U()},l(t){n&&n.l(t),r=U()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(Rt(),Wt(a[s],1,1,(()=>{a[s]=null})),Lt()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ut(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Ut(n),i=!0)},o(t){Wt(n),i=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function Kn(t){let e,n,r,i,o,a;const l=[Un,Ln],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=J("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(){H(e,"class",i=Te("text__inner",ge,t[12])),H(e,"style",o=ve(t[11]))},m(t,r){T(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Rt(),Wt(s[d],1,1,(()=>{s[d]=null})),Lt(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Ut(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=Te("text__inner",ge,t[12])))&&H(e,"class",i),(!a||2048&u[0]&&o!==(o=ve(t[11])))&&H(e,"style",o)},i(t){a||(Ut(r),a=!0)},o(t){Wt(r),a=!1},d(t){t&&M(e),s[n].d()}}}function Xn(t){let e,n,r=!t[8]&&Rn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),256&n[0]&&Ut(r,1)):(r=Rn(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Yn(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D,P,j,S,F,N,I,O,T,M,z,J=n,B=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,X=n,Y=n,Z=n,Q=n;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),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((()=>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()));let{json:tt={}}=e,{templateContext:et}=e,{origJson:nt}=e,{layoutParams:rt}=e;const it=wt(pe);let ot=!1,at="",lt=12,st=1.25,ct=!1,ut="",dt="",ht=!1,pt="left",ft="top",gt="",mt="",vt="",yt=!1,$t=[],bt=[];return _t((()=>{bt.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,tt=t.json),"templateContext"in t&&r(1,et=t.templateContext),"origJson"in t&&r(2,nt=t.origJson),"layoutParams"in t&&r(3,rt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(27,i=it.getDerivedFromVars(tt.text)),Q(),Q=h(i,(t=>r(54,z=t)))),16&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(r(4,(e=z,n=at,at=String(null!=e?e:"")||n)),at?r(8,ot=!1):(r(8,ot=!0),it.logError(fe(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(26,o=it.getDerivedFromVars(tt.ranges)),B(),B=h(o,(t=>r(43,C=t)))),1&t.$$.dirty[0]&&(r(25,a=it.getDerivedFromVars(tt.images)),J(),J=h(a,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(24,l=it.getDerivedFromVars({font_size:tt.font_size,letter_spacing:tt.letter_spacing,font_weight:tt.font_weight,font_family:tt.font_family,text_color:tt.text_color,underline:tt.underline,strike:tt.strike,line_height:tt.line_height,text_shadow:tt.text_shadow})),R(),R=h(l,(t=>r(28,V=t)))),1&t.$$.dirty[0]&&(r(23,s=it.getDerivedFromVars(tt.font_size)),Z(),Z=h(s,(t=>r(53,M=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(5,lt=Vn(M,lt)),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(tt.line_height)),Y(),Y=h(c,(t=>r(52,T=t)))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=T;sn(t)?(r(30,st=Number(t)/lt),r(9,ct=!0)):r(9,ct=!1)}if(1&t.$$.dirty[0]&&(r(21,u=it.getDerivedFromVars(tt.max_lines)),G(),G=h(u,(t=>r(49,N=t)))),262144&t.$$.dirty[1]&&r(7,d=1===N),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]){let t="",e="",n=!1;if(N&&N>1){let r=Number(N);t=r*st+"em",e=r,n=!0}r(31,ut=t),r(32,dt=e),r(33,ht=n)}if(1&t.$$.dirty[0]&&(r(20,p=it.getDerivedFromVars(tt.text_alignment_horizontal)),X(),X=h(p,(t=>r(51,O=t)))),1048584&t.$$.dirty[1]&&r(34,pt=On(O,pt)),1&t.$$.dirty[0]&&(r(19,f=it.getDerivedFromVars(tt.text_alignment_vertical)),K(),K=h(f,(t=>r(50,I=t)))),524304&t.$$.dirty[1]&&r(35,ft=Tn(I,ft)),16&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(41,g=!C||at&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=at.length),1&t.$$.dirty[0]&&(r(18,m=it.getDerivedFromVars(tt.text_color)),q(),q=h(m,(t=>r(48,F=t)))),135168&t.$$.dirty[1]&&r(40,v=Boolean(F)!==Boolean(C&&C[0]&&C[0].text_color)),398880&t.$$.dirty[1]){let t="";N&&g&&v&&(t=be(F||C&&C[0]&&C[0].text_color,1,gt)),r(36,gt=t)}if(1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(tt.focused_text_color)),H(),H=h(y,(t=>r(47,S=t)))),65600&t.$$.dirty[1]&&r(37,mt=be(S,1,mt)),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(tt.truncate)),W(),W=h($,(t=>r(46,j=t)))),32768&t.$$.dirty[1]&&r(39,_="none"===j?"none":""),1&t.$$.dirty[0]&&(r(15,b=it.getDerivedFromVars(tt.text_gradient)),U(),U=h(b,(t=>r(45,P=t)))),16384&t.$$.dirty[1]){let t="";if(P){const e=Ee([P]);e.image&&(t=e.image)}r(38,vt=t)}1&t.$$.dirty[0]&&(r(14,w=it.getDerivedFromVars(tt.selectable)),L(),L=h(w,(t=>r(44,D=t)))),64&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(6,yt=Mn(D,yt)),16&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,n){let i=[];if(bt.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),bt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,$t=[]);const o=t;let a=e||[{start:0,end:o.length}],l=n||[],s=0,c=[],u=[];a.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<=o.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;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},V),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},V),...c),n=ye(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=ye(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":ye(10*(Number(e.font_size)||12)/lt)};let a="";const l=t.image.tint_color,s=zn(t.image.tint_mode,"source_in");if(l){const e=be(t.image.tint_color);a=it.addSvgFilter(e,s),bt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},V)}),r(10,$t=i)}(at,C,A),128&t.$$.dirty[0]|348&t.$$.dirty[1]&&r(13,x={singleline:d,multiline:ht,halign:pt,valign:ft,truncate:_,"has-focus-color":Boolean(mt)}),128&t.$$.dirty[1]&&r(12,k={gradient:Boolean(vt)}),1073741856&t.$$.dirty[0]|227&t.$$.dirty[1]&&r(11,E={"font-size":ye(lt),"line-height":st,"max-height":ut,"-webkit-line-clamp":dt,color:gt,"background-image":vt,"--divkit-text-focus-color":mt})},[tt,et,nt,rt,at,lt,yt,d,ot,ct,$t,E,k,x,w,b,$,y,m,f,p,u,c,s,l,a,o,i,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ge.text__image_hidden)},st,ut,dt,ht,pt,ft,gt,mt,vt,_,v,g,A,C,D,P,j,S,F,N,I,O,T,M,z]}const Zn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","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 Qn(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 tr(t,e,n){const r=((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);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function er(t,e,n){let r;const i=((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),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),l=((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+l:0,null!=e&&e.show_between?e.style.width+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(ye).join(" ")}function nr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function rr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ir(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:Le(null===(o=(i=t.shape).item_width)||void 0===o?void 0:o.value,10),height:Le(null===(a=i.item_height)||void 0===a?void 0:a.value,10),radius:Le(null===(l=i.corner_radius)||void 0===l?void 0:l.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Le(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?be(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=be(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(ye(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let or;function ar(){if(void 0!==or)return or;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),or=1===t.scrollHeight,document.body.removeChild(t),or}const lr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:sr}=C;function cr(t,e,n){const r=t.slice();return r[15]=e[n],r}function ur(t){let e,n,r,i,o,a="".concat(t[15].style.width,"px"),l="".concat(t[15].style.height,"px"),s="".concat(t[15].style.borderRadius,"px"),c="".concat(t[15].left,"px"),u="".concat(t[15].top,"px"),d="".concat(t[15].width,"px"),h="".concat(t[15].height,"px");return{c(){e=J("div"),n=J("div"),i=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0}),Y(n).forEach(M),i=it(r),r.forEach(M),this.h()},h(){H(n,"class",r=lr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",l),lt(n,"border-radius",s),lt(n,"background",t[15].style.background),lt(n,"box-shadow",t[15].style.boxShadow),H(e,"class",o=lr["container-separator__item"]),lt(e,"left",c),lt(e,"top",u),lt(e,"width",d),lt(e,"height",h)},m(t,r){T(t,e,r),I(e,n),I(e,i)},p(t,r){2&r&&a!==(a="".concat(t[15].style.width,"px"))&&lt(n,"width",a),2&r&&l!==(l="".concat(t[15].style.height,"px"))&&lt(n,"height",l),2&r&&s!==(s="".concat(t[15].style.borderRadius,"px"))&&lt(n,"border-radius",s),2&r&&lt(n,"background",t[15].style.background),2&r&&lt(n,"box-shadow",t[15].style.boxShadow),2&r&&c!==(c="".concat(t[15].left,"px"))&&lt(e,"left",c),2&r&&u!==(u="".concat(t[15].top,"px"))&&lt(e,"top",u),2&r&&d!==(d="".concat(t[15].width,"px"))&&lt(e,"width",d),2&r&&h!==(h="".concat(t[15].height,"px"))&&lt(e,"height",h)},d(t){t&&M(e)}}}function dr(t){let e,r,i,o,a=Gt(t[1]),l=[];for(let e=0;e<a.length;e+=1)l[e]=ur(cr(t,a,e));return{c(){e=J("div");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=lr["container-separator"])},m(n,r){T(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[12](e),i||(o=W(sr,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Gt(t[1]),n=0;n<a.length;n+=1){const i=cr(t,a,n);l[n]?l[n].p(i,r):(l[n]=ur(i),l[n].c(),l[n].m(e,null))}for(;n<l.length;n+=1)l[n].d(1);l.length=a.length}},i:n,o:n,d(n){n&&M(e),z(l,n),t[12](null),i=!1,o()}}}function hr(t,e,n,r,i,o){const a=e.margins.left,l=e.margins.right,s=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+s,left:i.left+a,width:Math.max(0,i.right-i.left-a-l),height:r.top-n.bottom-s-c,style:e.style}):t.push({top:i.top+s,left:n.right+a,width:r.left-n.right-a-l,height:Math.max(0,i.bottom-i.top-s-c),style:e.style})}function pr(t,e,n,r,i,o){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 l,s;"space-around"===i||"space-evenly"===i?(l=o.left-e.style.width,s=o.top-e.style.height):(l=n[0].left-e.style.width-e.margins.left-e.margins.right,s=n[0].top-e.style.height-e.margins.top-e.margins.bottom),hr(t,e,{top:0,right:l,bottom:s,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)hr(t,e,n[i],n[i+1],a,r);if(null==e?void 0:e.show_at_end){const l=n[n.length-1];let s,c;"space-around"===i||"space-evenly"===i?(s=o.bottom+e.style.height,c=o.right+e.style.width):(s=l.bottom+e.style.height+e.margins.top+e.margins.bottom,c=l.right+e.style.width+e.margins.left+e.margins.right),hr(t,e,l,{top:s,right:0,bottom:0,left:c},a,r)}}function fr(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e,{contentHAlign:l}=e,{contentVAlign:s}=e;const c=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),c={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,d=[]);let h=[...r.children].filter((t=>t!==u&&!t.classList.contains(me.outer__border))),p=[];for(;h.length;){const t=[],e=h.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.right,o=n.bottom;for(;h.length;){let e=h[0],n=e.getBoundingClientRect();if("vertical"===i){if(n.top<o)break}else if(n.left<r)break;r=Math.max(r,n.right),o=Math.max(o,n.bottom),t.push(e),h.shift()}p.push(t)}const f=[];p.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)));o&&pr(d,o,e,"vertical"===i,"vertical"===i?s:l,c);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)))};f.push(n)})),a&&pr(d,a,f,"horizontal"===i,"vertical"===i?l:s,c),d.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,d=[],h=!1,p=null,f=null;function g(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(lr["container-separator__shape"]))&&!(null==n?void 0:n.contains(lr["container-separator"]))}))&&c()}return $t((()=>{n(8,h=!0)})),_t((()=>{n(8,h=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,l=t.contentHAlign),"contentVAlign"in t&&n(7,s=t.contentVAlign)},t.$$.update=()=>{1&t.$$.dirty&&n(11,r=(null==u?void 0:u.parentElement)||null),3840&t.$$.dirty&&(h&&r||p||f)&&(p&&(p.disconnect(),n(9,p=null)),f&&(f.disconnect(),n(10,f=null)),h&&r&&("undefined"!=typeof MutationObserver&&(n(9,p=new MutationObserver(g)),p.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(10,f=new ResizeObserver(c)),f.observe(r)))),2304&t.$$.dirty&&h&&r&&c()},[u,d,c,i,o,a,l,s,h,p,f,r,function(t){Et[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const gr=class extends se{constructor(t){super(),ae(this,t,fr,dr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7})}},{Boolean:mr}=C;function vr(t,e,n){const r=t.slice();return r[51]=e[n],r}function yr(t){let e,n;return e=new An({props:{cls:Te("container",Zn,t[16]),style:t[12],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[20],heightByAspect:Boolean(t[10]),parentOf:t[14],replaceItems:t[27],$$slots:{default:[wr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Te("container",Zn,t[16])),4096&n[0]&&(r.style=t[12]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1048576&n[0]&&(r.additionalPaddings=t[20]),1024&n[0]&&(r.heightByAspect=Boolean(t[10])),16384&n[0]&&(r.parentOf=t[14]),27616&n[0]|8388608&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function $r(t){let e,n;return e=new cl({props:{layoutParams:t[11],div:t[51].json,templateContext:t[51].templateContext,origJson:t[51].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.layoutParams=t[11]),8192&n[0]&&(r.div=t[51].json),8192&n[0]&&(r.templateContext=t[51].templateContext),8192&n[0]&&(r.origJson=t[51].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function _r(t){let e,n,r=Gt(t[13]),i=[];for(let e=0;e<r.length;e+=1)i[e]=$r(vr(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(10240&n[0]){let a;for(r=Gt(t[13]),a=0;a<r.length;a+=1){const o=vr(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=$r(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(mr);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function br(t){let e,n;return e=new gr({props:{separator:t[8],lineSeparator:t[9],orientation:t[5],contentHAlign:t[7],contentVAlign:t[6]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.separator=t[8]),512&n[0]&&(r.lineSeparator=t[9]),32&n[0]&&(r.orientation=t[5]),128&n[0]&&(r.contentHAlign=t[7]),64&n[0]&&(r.contentVAlign=t[6]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function wr(t){let e,r,i,o=t[14],a=_r(t),l=(t[8]||t[9])&&br(t);return{c(){a.c(),e=L(),l&&l.c(),r=U()},l(t){a.l(t),e=it(t),l&&l.l(t),r=U()},m(t,n){a.m(t,n),T(t,e,n),l&&l.m(t,n),T(t,r,n),i=!0},p(t,i){16384&i[0]&&d(o,o=t[14])?(Rt(),Wt(a,1,1,n),Lt(),a=_r(t),a.c(),Ut(a,1),a.m(e.parentNode,e)):a.p(t,i),t[8]||t[9]?l?(l.p(t,i),768&i[0]&&Ut(l,1)):(l=br(t),l.c(),Ut(l,1),l.m(r.parentNode,r)):l&&(Rt(),Wt(l,1,1,(()=>{l=null})),Lt())},i(t){i||(Ut(a),Ut(l),i=!0)},o(t){Wt(a),Wt(l),i=!1},d(t){t&&(M(e),M(r)),a.d(t),l&&l.d(t)}}}function xr(t){let e,n,r=!t[4]&&yr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),16&n[0]&&Ut(r,1)):(r=yr(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function kr(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D,P,j,S=n,F=n,N=n,I=n,O=n,T=n,M=n,z=n,J=n,B=n;var R,L,U,W,H,q;t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),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((()=>J())),t.$$.on_destroy.push((()=>B()));let{json:G={}}=e,{templateContext:K}=e,{origJson:X}=e,{layoutParams:Y}=e;const Z={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},Q={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},tt=["rounded_rectangle","circle"],et=wt(pe);let nt,rt,it=!1,ot="vertical",at="top",lt="left",st=null,ct=null,ut={};return t.$$set=t=>{"json"in t&&r(0,G=t.json),"templateContext"in t&&r(1,K=t.templateContext),"origJson"in t&&r(2,X=t.origJson),"layoutParams"in t&&r(3,Y=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(14,i=G.items),16384&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(4,it=!1):(r(4,it=!0),et.logError(fe(new Error('Incorrect or empty "items" prop for div "container"'))))),16402&t.$$.dirty[0]&&r(13,o=(!it&&i||[]).map((t=>{let e=t,n=K;return({templateContext:n,json:e}=et.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8192&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(et.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(15,nt=de(t,(t=>[...t]))),z(),z=h(nt,(t=>r(44,D=t)))}if(1&t.$$.dirty[0]&&(r(26,a=et.getDerivedFromVars(G.orientation)),B(),B=h(a,(t=>r(46,j=t)))),32&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(5,ot=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(j,ot)),1&t.$$.dirty[0]&&(r(25,l=et.getDerivedFromVars(G.layout_mode)),J(),J=h(l,(t=>r(45,P=t)))),16384&t.$$.dirty[1]&&r(34,s="wrap"===P),32&t.$$.dirty[0]|8200&t.$$.dirty[1]&&r(35,c="horizontal"!==ot&&!s&&D.some(nr)),32&t.$$.dirty[0]|8200&t.$$.dirty[1]&&r(36,u="vertical"!==ot&&!s&&D.some(rr)),1&t.$$.dirty[0]&&(r(24,d=et.getDerivedFromVars(G.content_alignment_vertical)),M(),M=h(d,(t=>r(43,V=t)))),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(6,at=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(V,at)),1&t.$$.dirty[0]&&(r(23,p=et.getDerivedFromVars(G.content_alignment_horizontal)),T(),T=h(p,(t=>r(42,C=t)))),128&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(7,lt=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,lt)),1&t.$$.dirty[0]&&(r(22,f=et.getDerivedFromVars(G.separator)),O(),O=h(f,(t=>r(41,A=t)))),1879048480&t.$$.dirty[0]|1024&t.$$.dirty[1])if((null==A?void 0:A.style)&&"overlap"!==ot&&ar()){const t=ir(A.style,tt,(null==st?void 0:st.style)||null);r(8,st=t?{show_at_start:Boolean(null!==r(28,R=A.show_at_start)&&void 0!==R&&R),show_at_end:Boolean(null!==r(29,L=A.show_at_end)&&void 0!==L&&L),show_between:Boolean(null===r(30,U=A.show_between)||void 0===U||U),style:t,margins:Qn(A.margins)}:null)}else r(8,st=null);if(1&t.$$.dirty[0]&&(r(21,g=et.getDerivedFromVars(G.line_separator)),I(),I=h(g,(t=>r(40,E=t)))),544&t.$$.dirty[0]|519&t.$$.dirty[1])if((null==E?void 0:E.style)&&"overlap"!==ot&&ar()){const t=ir(E.style,tt,(null==ct?void 0:ct.style)||null);r(9,ct=t?{show_at_start:Boolean(null!==r(31,W=E.show_at_start)&&void 0!==W&&W),show_at_end:Boolean(null!==r(32,H=E.show_at_end)&&void 0!==H&&H),show_between:Boolean(null===r(33,q=E.show_between)||void 0===q||q),style:t,margins:Qn(E.margins)}:null)}else r(9,ct=null);if(800&t.$$.dirty[0]&&r(20,m=st||ct?function(t,e,n){const r={};return tr(r,e,"vertical"===t),tr(r,n,"horizontal"===t),r}(ot,st,ct):null),1&t.$$.dirty[0]&&(r(19,v=et.getDerivedFromVars(G.aspect)),N(),N=h(v,(t=>r(39,k=t)))),256&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&sn(t)?r(10,rt=t):r(10,rt=void 0)}if(1&t.$$.dirty[0]&&(r(18,y=et.getDerivedFromVars(G.width)),S(),S=h(y,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(17,$=et.getDerivedFromVars(G.height)),F(),F=h($,(t=>r(38,x=t)))),3304&t.$$.dirty[0]|248&t.$$.dirty[1]){let t={};(null==Y?void 0:Y.fakeElement)&&(t.fakeElement=!0),"overlap"===ot&&(t.overlapParent=!0),"horizontal"!==ot&&(t.parentHAlign=s?"start":Z[lt]),"vertical"!==ot&&(t.parentVAlign=s?"start":Q[at]),rt||u||x&&"wrap_content"!==x.type&&("match_parent"!==x.type||!(null==Y?void 0:Y.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!c&&("wrap_content"===(null==w?void 0:w.type)||"match_parent"===(null==w?void 0:w.type)&&(null==Y?void 0:Y.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ot&&(t.parentContainerOrientation="horizontal"),"vertical"===ot&&(t.parentContainerOrientation="vertical"),s&&(t.parentContainerWrap=!0),r(11,ut=He(t,ut))}224&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(16,_={orientation:ot,valign:at,halign:lt,wrap:s}),1824&t.$$.dirty[0]&&r(12,b={gap:st||ct?er(ot,st,ct):void 0,"aspect-ratio":rt})},[G,K,X,Y,it,ot,at,lt,st,ct,rt,ut,b,o,i,nt,_,$,y,v,m,g,f,p,d,l,a,function(t){r(0,G=Object.assign(Object.assign({},G),{items:t}))},R,L,U,W,H,q,s,c,u,w,x,k,E,A,C,V,D,P,j]}const Er={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Ar(t,e){return"vertical"===t||"horizontal"===t?t:e}function Cr(t){let e,n,r;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Er.separator__inner),H(e,"style",r=ve(t[5]))},m(t,n){T(t,e,n)},p(t,n){32&n&&r!==(r=ve(t[5]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Vr(t){let e,n=t[6]&&Cr(t);return{c(){n&&n.c(),e=U()},l(t){n&&n.l(t),e=U()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Cr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Dr(t){let e,n;return e=new An({props:{cls:Te("separator",Er,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Vr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Te("separator",Er,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Pr(t,e,r){let i,o,a,l,s,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:p={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=wt(pe);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,p=t.json),"templateContext"in t&&r(1,f=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(r(7,i=v.getDerivedFromVars(p.delimiter_style)),d(),d=h(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=Ar(null==u?void 0:u.orientation,y)),4096&t.$$.dirty&&r(6,o=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),4608&t.$$.dirty&&r(9,$=be(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":ye(1)),256&t.$$.dirty&&r(10,l="horizontal"===y?ye(1):"100%"),3584&t.$$.dirty&&r(5,s={background:$,width:a,height:l}),256&t.$$.dirty&&r(4,c={orientation:y})},[p,f,g,m,c,s,o,i,y,$,l,a,u]}const jr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Sr(t){return t.startsWith("data:")?xe(t):"data:image/jpg;base64,".concat(xe(t))}function Fr(t){let e,n;return e=new An({props:{cls:Te("image",jr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Tr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Te("image",jr,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Nr(t){let e,n,r,i,o,a,s;return{c(){e=J("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(){H(e,"class",n=jr.image__image),u(e.src,r=t[4]===Jr?zr:t[7])||H(e,"src",r),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"style",i=ve(t[9])),H(e,"alt",t[16]),H(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){T(n,e,r),a||(s=[W(e,"load",t[26]),W(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!u(e.src,r=t[4]===Jr?zr:t[7])&&H(e,"src",r),512&n[0]&&i!==(i=ve(t[9]))&&H(e,"style",i),65536&n[0]&&H(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&H(e,"aria-hidden",o)},d(t){t&&M(e),a=!1,l(s)}}}function Ir(t){let e,n,r,i,o,a,s,c,d,h="".concat(t[5],"%");return{c(){e=J("span"),n=J("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(){H(n,"class",r=jr.image__image),u(n.src,i=t[4]===Jr?zr:t[7])||H(n,"src",i),H(n,"loading","lazy"),H(n,"decoding","async"),H(n,"style",o=ve(t[9])),H(n,"alt",t[16]),H(n,"aria-hidden",a=t[16]?null:"true"),H(e,"class",s=jr["image__aspect-wrapper"]),lt(e,"padding-bottom",h)},m(r,i){T(r,e,i),I(e,n),c||(d=[W(n,"load",t[26]),W(n,"error",t[27])],c=!0)},p(t,r){144&r[0]&&!u(n.src,i=t[4]===Jr?zr:t[7])&&H(n,"src",i),512&r[0]&&o!==(o=ve(t[9]))&&H(n,"style",o),65536&r[0]&&H(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&H(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&lt(e,"padding-bottom",h)},d(t){t&&M(e),c=!1,l(d)}}}function Or(t){let e;function n(t,e){return t[10].aspect?Ir:Nr}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function Tr(t){let e,n=t[6],r=Or(t);return{c(){r.c(),e=U()},l(t){r.l(t),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,i){64&i[0]&&d(n,n=t[6])?(r.d(1),r=Or(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function Mr(t){let e,n,r=!t[8]&&Fr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),256&n[0]&&Ut(r,1)):(r=Fr(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const zr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Jr=2;function Br(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D,P,j,S,F,N,I,O,T,M,z=n,J=n,B=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,X=n,Y=n,Z=n;t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt=wt(pe);let it=0,ot="rgba(0,0,0,0.08)",at=!1,lt="",st="none",ct="50% 50%";let ut,dt="0",ht="source_in",pt="",ft="",gt=0,mt=0,vt=0,yt="",$t="";return _t((()=>{rt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&r(0,Q=t.json),"templateContext"in t&&r(1,tt=t.templateContext),"origJson"in t&&r(2,et=t.origJson),"layoutParams"in t&&r(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,i=rt.getDerivedFromVars(Q.image_url)),Z(),Z=h(i,(t=>r(55,M=t)))),1&t.$$.dirty[0]&&(r(24,o=rt.getDerivedFromVars(Q.gif_url)),Y(),Y=h(o,(t=>r(54,T=t)))),25165824&t.$$.dirty[1]&&r(7,a=M||T),128&t.$$.dirty[0]&&r(4,it=0),128&t.$$.dirty[0]&&(a?r(8,at=!1):(r(8,at=!0),rt.logError(fe(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(r(23,l=rt.getDerivedFromVars(Q.width)),X(),X=h(l,(t=>r(53,O=t)))),4194304&t.$$.dirty[1]&&r(41,s="wrap_content"===(null==O?void 0:O.type)),1&t.$$.dirty[0]&&(r(22,c=rt.getDerivedFromVars(Q.height)),K(),K=h(c,(t=>r(52,I=t)))),2097152&t.$$.dirty[1]&&r(40,u="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(r(21,d=rt.getDerivedFromVars(Q.preview)),G(),G=h(d,(t=>r(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&r(29,lt=0!==it&&it!==Jr||!N?"":'url("'.concat(Sr(N),'")')),1&t.$$.dirty[0]&&(r(20,p=rt.getDerivedFromVars(Q.placeholder_color)),q(),q=h(p,(t=>r(50,F=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){r(28,ot=0===t||t===Jr?be(e,1,ot):"")}(it,F),1&t.$$.dirty[0]&&(r(19,f=rt.getDerivedFromVars(Q.scale)),H(),H=h(f,(t=>r(49,S=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(30,st=Ve(S)||st),1&t.$$.dirty[0]&&(r(18,g=rt.getDerivedFromVars({content_alignment_horizontal:Q.content_alignment_horizontal,content_alignment_vertical:Q.content_alignment_vertical})),W(),W=h(g,(t=>r(48,j=t)))),131072&t.$$.dirty[1]&&r(31,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:De(t)}(j,ct)),1&t.$$.dirty[0]&&(r(17,m=rt.getDerivedFromVars(Q.accessibility)),U(),U=h(m,(t=>r(47,P=t)))),65536&t.$$.dirty[1]&&r(16,v=(null==P?void 0:P.description)||""),1&t.$$.dirty[0]&&(r(15,y=rt.getDerivedFromVars(Q.aspect)),L(),L=h(y,(t=>r(46,D=t)))),32768&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&sn(t)?r(5,dt=(100/Number(t)).toFixed(2)):r(5,dt="0")}if(1&t.$$.dirty[0]&&(r(14,$=rt.getDerivedFromVars(Q.tint_color)),R(),R=h($,(t=>r(45,V=t)))),1&t.$$.dirty[0]&&(r(13,_=rt.getDerivedFromVars(Q.tint_mode)),B(),B=h(_,(t=>r(44,C=t)))),24582&t.$$.dirty[1]){const t=V?be(V):void 0,e=zn(C,ht);t===ut&&e===ht||(rt.removeSvgFilter(ut,ht),r(6,pt=t?rt.addSvgFilter(t,e):""),r(32,ut=t),r(33,ht=e))}if(1&t.$$.dirty[0]&&(r(12,b=rt.getDerivedFromVars(Q.appearance_animation)),J(),J=h(b,(t=>r(43,A=t)))),4096&t.$$.dirty[1]&&A&&"fade"===A.type){const t=A;r(34,ft=qe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(37,vt=Le(t.duration,300)),r(36,mt=Le(t.start_delay,0)),r(35,gt=Le(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,w=rt.getDerivedFromVars(Q.filters)),z(),z=h(w,(t=>r(42,E=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(E)&&E.length&&(t=cn(E,rt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(38,yt=t),r(39,$t=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&r(10,x={aspect:"0"!==dt,"is-width-content":s,"is-height-content":u,loaded:1===it,"before-appearance":Boolean(ft)&&0===it}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&r(9,k={"background-image":lt,"background-color":lt?void 0:ot,"background-size":st,"clip-path":$t||void 0,"object-fit":st,"object-position":ct,filter:[1===it&&pt?"url(#".concat(pt,")"):"",yt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":ft||void 0,"--divkit-appearance-fade-start":ft?gt:void 0,"--divkit-appearance-delay":ft?"".concat(mt,"ms"):void 0,"--divkit-appearance-duration":ft?"".concat(vt,"ms"):void 0})},[Q,tt,et,nt,it,dt,pt,a,at,k,x,w,b,_,$,y,v,m,g,f,p,d,c,l,o,i,function(){0===it&&r(4,it=1)},function(){0===it&&r(4,it=Jr)},ot,lt,st,ct,ut,ht,ft,gt,mt,vt,yt,$t,u,s,E,A,C,V,D,P,j,S,F,N,I,O,T,M]}const Rr=class extends se{constructor(t){super(),ae(this,t,Br,Mr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Lr={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Ur(t){return t>0&&t<1}function Wr(t){return String(Math.ceil(1e3*t)/1e3)}function Hr(t,e,n){if(t.some(Ur)){const e=Math.max(...t.filter(Ur).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(ye(r*t[e]/i),",").concat(Wr(t[e]),"fr)"):t[e]?o[e]="".concat(Wr(t[e]),"fr"):o[e]="auto";return o.join(" ")}function qr(t,e,n){const r=t.slice();return r[30]=e[n],r}function Gr(t){let e,n;return e=new An({props:{cls:Te("grid",Lr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],parentOf:t[0].items,replaceItems:t[12],$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Te("grid",Lr,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),32&n[0]|4&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Kr(t){let e,n;return e=new cl({props:{layoutParams:t[30].layoutParams,div:t[30].json,templateContext:t[30].templateContext,origJson:t[30].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[30].layoutParams),32&n[0]&&(r.div=t[30].json),32&n[0]&&(r.templateContext=t[30].templateContext),32&n[0]&&(r.origJson=t[30].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Xr(t){let e,n,r=Gt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Kr(qr(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Gt(t[5]),a=0;a<r.length;a+=1){const o=qr(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Kr(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Yr(t){let e,r,i=t[5],o=Xr(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){32&r[0]&&d(i,i=t[5])?(Rt(),Wt(o,1,1,n),Lt(),o=Xr(t),o.c(),Ut(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ut(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function Zr(t){let e,n,r=!t[6]&&Gr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[6]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),64&n[0]&&Ut(r,1)):(r=Gr(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Qr(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v=n,y=n,$=n,_=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=wt(pe);let A,C,V=!1,D=1,P=[],j=[],S=[],F=[],N=0,I=!1,O="top",T="left";return t.$$set=t=>{"json"in t&&r(0,b=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(24,i=b.items),16777216&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(13,V=!1):(r(13,V=!0),E.logError(fe(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(b.column_count)),_(),_=h(o,(t=>r(28,m=t)))),268451840&t.$$.dirty[0]&&r(14,D=Vn(m,D)),16785410&t.$$.dirty[0]&&r(23,a=(!V&&i||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8388608&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,A=de(t,(t=>[...t]))),$(),$=h(A,(t=>r(27,g=t)))}if(144162824&t.$$.dirty[0]){const t={};let e=0,n=0;r(15,P=[]),r(16,j=[]),r(17,S=[]),r(18,F=[]),r(20,I=!1),r(5,C=a.map(((i,o)=>{var a,l,s,c;const u=g[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:n,colSpan:d,rowSpan:h},f="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=n;e<n+h;++e)t[i+"_"+e]?r(20,I=!0):(t[i+"_"+e]=!0,(!P[i]||P[i]<f)&&r(15,P[i]=f,P),(!j[e]||j[e]<m)&&r(16,j[e]=m,j),(!S[i]||S[i]<v)&&r(17,S[i]=v,S),(!F[e]||F[e]<y)&&r(18,F[e]=y,F));do{++e,e>=D&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:p,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(20,I=!0),I&&E.logError(fe(new Error('Mismatching "grid" rows/columns'))),r(19,N=n)}1&t.$$.dirty[0]&&(r(10,l=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=h(l,(t=>r(26,f=t)))),69206016&t.$$.dirty[0]&&r(21,O=Tn(f,O)),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=h(s,(t=>r(25,p=t)))),37748736&t.$$.dirty[0]&&r(22,T=On(p,T)),6291456&t.$$.dirty[0]&&r(8,c={valign:O,halign:T}),1032192&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Hr(P,S,D),"grid-template-rows":Hr(j,F,N)}),1056768&t.$$.dirty[0]&&r(6,d=V||I)},[b,w,x,k,A,C,d,u,c,s,l,o,function(t){r(0,b=Object.assign(Object.assign({},b),{items:t}))},V,D,P,j,S,F,N,I,O,T,a,i,p,f,g,m]}const ti={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function ei(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function ni(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:ri}=C;function ii(t,e,n){const r=t.slice();return r[73]=e[n],r[74]=e,r[75]=n,r}function oi(t,e,n){const r=t.slice();return r[76]=e[n],r}function ai(t){let e,n;return e=new An({props:{cls:Te("gallery",ti,t[17]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=Te("gallery",ti,t[17])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1024&n[0]&&(r.parentOf=t[10]),671906768&n[0]|131072&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function li(t){let e,n;return e=new cl({props:{layoutParams:t[8],div:t[76].json,templateContext:t[76].templateContext,origJson:t[76].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),134217728&n[0]&&(r.div=t[76].json),134217728&n[0]&&(r.templateContext=t[76].templateContext),134217728&n[0]&&(r.origJson=t[76].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function si(t){let e,n,r,i,o,a=t[75],l=Gt(t[73]),s=[];for(let e=0;e<l.length;e+=1)s[e]=li(oi(t,l,e));const c=t=>Wt(s[t],1,1,(()=>{s[t]=null})),u=()=>t[61](e,a),d=()=>t[61](null,a);return{c(){e=J("div");for(let t=0;t<s.length;t+=1)s[t].c();n=L(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=Y(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=ti.gallery__items),H(e,"style",i=ve(t[18]))},m(t,r){T(t,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);I(e,n),u(),o=!0},p(r,h){if(t=r,134217984&h[0]){let r;for(l=Gt(t[73]),r=0;r<l.length;r+=1){const i=oi(t,l,r);s[r]?(s[r].p(i,h),Ut(s[r],1)):(s[r]=li(i),s[r].c(),Ut(s[r],1),s[r].m(e,n))}for(Rt(),r=l.length;r<s.length;r+=1)c(r);Lt()}(!o||262144&h[0]&&i!==(i=ve(t[18])))&&H(e,"style",i),a!==t[75]&&(d(),a=t[75],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)Ut(s[t]);o=!0}},o(t){s=s.filter(ri);for(let t=0;t<s.length;t+=1)Wt(s[t]);o=!1},d(t){t&&M(e),z(s,t),d()}}}function ci(t){let e,n,r=Gt(t[27]),i=[];for(let e=0;e<r.length;e+=1)i[e]=si(ii(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(134484224&n[0]){let a;for(r=Gt(t[27]),a=0;a<r.length;a+=1){const o=ii(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=si(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(ri);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function ui(t){let e,n,r=t[13]&&t[9]&&di(t),i=t[14]&&t[9]&&hi(t);return{c(){r&&r.c(),e=L(),i&&i.c(),n=U()},l(t){r&&r.l(t),e=it(t),i&&i.l(t),n=U()},m(t,o){r&&r.m(t,o),T(t,e,o),i&&i.m(t,o),T(t,n,o)},p(t,o){t[13]&&t[9]?r?r.p(t,o):(r=di(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[14]&&t[9]?i?i.p(t,o):(i=hi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(M(e),M(n)),r&&r.d(t),i&&i.d(t)}}}function di(t){let e,r,i,o,a=!t[30]&&function(t){let e,n,r,i;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(){H(n,"class",r=ti["gallery__arrow-icon-path"]),H(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),H(e,"class",i=ti["gallery__arrow-icon"]),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=J("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(){H(e,"class",r=t[30]||"".concat(ti.gallery__arrow," ").concat(ti.gallery__arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[64]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function hi(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;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(){H(n,"class",r=ti["gallery__arrow-icon-path"]),H(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),H(e,"class",i=ti["gallery__arrow-icon"]),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),I(e,n)},d(t){t&&M(e)}}}();return{c(){e=J("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(){H(e,"class",r=t[31]||"".concat(ti.gallery__arrow," ").concat(ti.gallery__arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[65]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function pi(t){let e,r,i,o,a,l,c,u,h,p,f,g=t[27],m=ci(t),v="horizontal"===t[6]&&ui(t);return{c(){e=J("div"),r=J("div"),m.c(),c=L(),v&&v.c(),u=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=Y(e);r=et(n,"DIV",{class:!0,style:!0});var i=Y(r);m.l(i),i.forEach(M),n.forEach(M),c=it(t),v&&v.l(t),u=U(),this.h()},h(){H(r,"class",i=ti["gallery__items-grid"]),H(r,"style",o=ve(t[19])),H(e,"class",a=ti.gallery__scroller+" "+(t[29]?he["root_restrict-scroll"]:"")),H(e,"style",l=ve(t[7]))},m(n,i){T(n,e,i),I(e,r),m.m(r,null),t[62](r),t[63](e),T(n,c,i),v&&v.m(n,i),T(n,u,i),h=!0,p||(f=W(e,"scroll",(function(){s(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),p=!0)},p(i,s){t=i,134217728&s[0]&&d(g,g=t[27])?(Rt(),Wt(m,1,1,n),Lt(),m=ci(t),m.c(),Ut(m,1),m.m(r,null)):m.p(t,s),(!h||524288&s[0]&&o!==(o=ve(t[19])))&&H(r,"style",o),(!h||536870912&s[0]&&a!==(a=ti.gallery__scroller+" "+(t[29]?he["root_restrict-scroll"]:"")))&&H(e,"class",a),(!h||128&s[0]&&l!==(l=ve(t[7])))&&H(e,"style",l),"horizontal"===t[6]?v?v.p(t,s):(v=ui(t),v.c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},i(t){h||(Ut(m),h=!0)},o(t){Wt(m),h=!1},d(n){n&&(M(e),M(c),M(u)),m.d(n),t[62](null),t[63](null),v&&v.d(n),p=!1,f()}}}function fi(t){let e,n,r,i,o=!t[5]&&ai(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(a,l){o&&o.m(a,l),T(a,e,l),n=!0,r||(i=W(window,"resize",(function(){s(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Rt(),Wt(o,1,1,(()=>{o=null})),Lt()):o?(o.p(t,r),32&r[0]&&Ut(o,1)):(o=ai(t),o.c(),Ut(o,1),o.m(e.parentNode,e))},i(t){n||(Ut(o),n=!0)},o(t){Wt(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}function gi(t,e,r){let i,o,a,l,s,c,u,d,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D,P,j,S,F,N=n,I=n,O=n,T=n,M=n,z=n,J=n,B=n,R=n,L=n;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((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:U={}}=e,{templateContext:W}=e,{origJson:H}=e,{layoutParams:q}=e;const G=wt(pe);let K,X,Y=[],Z=!1,Q=!1,tt=null,et=!1;const nt=G.getCustomization("galleryLeftClass"),rt=G.getCustomization("galleryRightClass");let it=!1;const ot=G.isDesktop;p(t,ot,(t=>r(60,S=t)));let at,lt,st,ct,ut=1,dt="horizontal",ht="start",pt=8,ft="",gt=[],mt={},vt=!1,yt={},bt=0;function xt(){if(!K)return;const t=K.scrollLeft,e=K.scrollWidth,n=K.offsetWidth;r(13,Z=t>2),r(14,Q=t+n<e-2)}const kt=ni(xt,50);function At(t){K.scroll({left:K.scrollLeft+.75*K.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Ct(){let t=[],e=Y[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ut;++e){const r=Y[e].children[n];r&&t.push(r)}return t}function Vt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===dt,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&K.scroll({[o]:Math.max(0,a[i]+.01-pt/2),behavior:n})}function Dt(t){const e=Ct(),n=K.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===dt?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 i=e.map((t=>function(t,e){return"horizontal"===dt?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!U.id||it||(null==q?void 0:q.fakeElement)||G.registerInstance(U.id,{setCurrentItem(t){const e=Ct();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Vt(e,t)},setPreviousItem(t){const e=Dt("prev"),n=Ct();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Vt(n,r)},setNextItem(t){const e="horizontal"===dt?K.scrollLeft+K.offsetWidth===K.scrollWidth:K.scrollTop+K.offsetHeight===K.scrollHeight,n=Ct();if(e&&"ring"===t)return void Vt(n,0);const r=Dt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Vt(n,i)}}),$t((()=>{r(38,et=!0),!it&&(xt(),bt)&&Vt(Ct(),bt,"auto")})),_t((()=>{r(38,et=!1),U.id&&!(null==q?void 0:q.fakeElement)&&G.unregisterInstance(U.id)})),t.$$set=t=>{"json"in t&&r(0,U=t.json),"templateContext"in t&&r(1,W=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(10,i=U.items),1024&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(5,it=!1):(r(5,it=!0),G.logError(fe(new Error('Incorrect or empty "items" prop for div "gallery"'))))),1058&t.$$.dirty[0]&&r(50,o=(!it&&i||[]).map((t=>{let e=t,n=W;return({templateContext:n,json:e}=G.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|536871040&t.$$.dirty[1]&&r(9,a=S&&et&&!it),528&t.$$.dirty[0]|64&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(37,tt=new ResizeObserver((()=>{kt()}))),tt.observe(X)):tt&&(tt.disconnect(),r(37,tt=null))),1&t.$$.dirty[0]&&(r(28,l=G.getDerivedFromVars(U.column_count)),R(),R=h(l,(t=>r(59,j=t)))),268435712&t.$$.dirty[1]&&r(39,ut=Vn(j,ut)),524544&t.$$.dirty[1]&&r(27,s=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(o,ut)),1&t.$$.dirty[0]&&(r(26,c=G.getDerivedFromVars(U.orientation)),B(),B=h(c,(t=>r(58,P=t)))),64&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(6,dt=Ar(P,dt)),1&t.$$.dirty[0]&&(r(25,u=G.getDerivedFromVars(U.cross_content_alignment)),J(),J=h(u,(t=>r(57,D=t)))),67109376&t.$$.dirty[1]&&r(40,ht=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(D,ht)),1&t.$$.dirty[0]&&(r(24,d=G.getDerivedFromVars(U.item_spacing)),z(),z=h(d,(t=>r(56,V=t)))),33556480&t.$$.dirty[1]&&(r(42,pt=Le(V,pt)),r(41,at=ye(pt))),1&t.$$.dirty[0]&&(r(23,f=G.getDerivedFromVars(U.cross_spacing)),M(),M=h(f,(t=>r(55,C=t)))),16787456&t.$$.dirty[1]&&(r(44,st=Le(C,pt)),r(43,lt=ye(st))),1&t.$$.dirty[0]&&(r(22,g=G.getDerivedFromVars(U.paddings)),T(),T=h(g,(t=>r(54,A=t)))),8404992&t.$$.dirty[1]&&r(45,ft=Re(A,ft)),64&t.$$.dirty[0]&&r(49,m="horizontal"===dt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===dt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(15,ct=de(t,(t=>t))),O(),O=h(ct,(t=>r(53,E=t)))}if(64&t.$$.dirty[0]|4227328&t.$$.dirty[1]&&(r(46,gt=[]),ut>1?gt.push("auto"):E.forEach((t=>{!t&&"horizontal"===dt||"match_parent"===(null==t?void 0:t.type)?gt.push("100%"):gt.push("max-content")}))),1&t.$$.dirty[0]&&(r(21,v=G.getDerivedFromVars(U.scroll_mode)),I(),I=h(v,(t=>r(52,k=t)))),456&t.$$.dirty[0]|2099968&t.$$.dirty[1]){const t={};let e={};r(47,vt=!1),(null==q?void 0:q.fakeElement)&&(e.fakeElement=!0),"horizontal"===dt?e.parentVAlign=ht:e.parentHAlign=ht,"paging"===k&&(r(47,vt=!0),e.scrollSnap="start",t["horizontal"===dt?"scroll-padding-left":"scroll-padding-top"]=ye(pt/2)),1===ut&&(e.parentLayoutOrientation=dt),r(7,mt=He(t,mt)),r(8,yt=He(e,yt))}1&t.$$.dirty[0]&&(r(20,y=G.getDerivedFromVars(U.restrict_parent_scroll)),L(),L=h(y,(t=>r(29,F=t)))),20480&t.$$.dirty[1]&&r(19,$={padding:ft,"grid-gap":lt}),295936&t.$$.dirty[1]&&r(18,_={"grid-gap":at,[m]:ei(gt)}),64&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(17,b={orientation:dt,"scroll-snap":vt}),1&t.$$.dirty[0]&&(r(16,w=G.getDerivedFromVars(U.default_item)),N(),N=h(w,(t=>r(51,x=t)))),1179648&t.$$.dirty[1]&&r(48,bt=Le(x,bt))},[U,W,H,q,X,it,dt,mt,yt,a,i,K,Y,Z,Q,ct,w,b,_,$,y,v,g,f,d,u,c,s,l,F,nt,rt,function(t){r(0,U=Object.assign(Object.assign({},U),{items:t}))},ot,xt,kt,At,tt,et,ut,ht,at,pt,lt,st,ft,gt,vt,bt,m,o,x,k,E,A,C,V,D,P,j,S,function(t,e){Et[t?"unshift":"push"]((()=>{Y[e]=t,r(12,Y)}))},function(t){Et[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(t){Et[t?"unshift":"push"]((()=>{K=t,r(11,K)}))},()=>At("left"),()=>At("right")]}const mi={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__separator:"divkit-b85bf"},vi=37,yi=39,$i=36,_i=35,{Boolean:bi}=C;function wi(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function xi(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function ki(t){let e,n;return e=new An({props:{cls:Te("tabs",mi,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Pi]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ei(t){let e,n,r=t[88].title+"";return{c(){e=R(r),n=L()},l(t){e=rt(t,r),n=it(t)},m(t,r){T(t,e,r),T(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&at(e,r)},d(t){t&&(M(e),M(n))}}}function Ai(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new an({props:{cls:Te("tabs__item",mi,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Ei]},$$scope:{ctx:t}}}),{c(){ne(i.$$.fragment)},l(t){re(i.$$.fragment,t)},m(t,e){ie(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};524352&n[0]&&(s.cls=Te("tabs__item",mi,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(s.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(s.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),524288&n[0]|4&n[3]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(Ut(i.$$.fragment,t),o=!0)},o(t){Wt(i.$$.fragment,t),o=!1},d(t){oe(i,t)}}}function Ci(t){let e,n,r;return{c(){e=J("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=mi.tabs__separator),H(e,"style",r=ve(t[36]))},m(t,n){T(t,e,n)},p(t,n){32&n[1]&&r!==(r=ve(t[36]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Vi(t){let e,n;return e=new cl({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Di(t){let e,n,r,i,o,a,l=t[30][t[89]]&&Vi(t);return{c(){e=J("div"),l&&l.c(),n=L(),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Y(e);l&&l.l(r),n=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=Te("tabs__panel",mi,{visible:t[31][t[89]]})),H(e,"role","tabpanel"),H(e,"id",i=t[44]+"-panel-"+t[89]),H(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),lt(e,"left",100*t[89]+"%")},m(t,r){T(t,e,r),l&&l.m(e,null),I(e,n),a=!0},p(t,s){t[30][t[89]]?l?(l.p(t,s),1074266112&s[0]&&Ut(l,1)):(l=Vi(t),l.c(),Ut(l,1),l.m(e,n)):l&&(Rt(),Wt(l,1,1,(()=>{l=null})),Lt()),(!a||524288&s[0]|1&s[1]&&r!==(r=Te("tabs__panel",mi,{visible:t[31][t[89]]})))&&H(e,"class",r),(!a||524288&s[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&H(e,"id",i),(!a||524288&s[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&H(e,"aria-labelledby",o),(!a||524288&s[0])&&lt(e,"left",100*t[89]+"%")},i(t){a||(Ut(l),a=!0)},o(t){Wt(l),a=!1},d(t){t&&M(e),l&&l.d()}}}function Pi(t){let e,n,r,i,o,a,c,u,d,h,p,f=Gt(t[19]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Ai(xi(t,f,e));const m=t=>Wt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&Ci(t),y=Gt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Di(wi(t,y,e));const _=t=>Wt($[t],1,1,(()=>{$[t]=null}));return{c(){e=J("div");for(let t=0;t<g.length;t+=1)g[t].c();r=L(),v&&v.c(),i=L(),o=J("div"),a=J("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=it(t),v&&v.l(t),i=it(t),o=et(t,"DIV",{class:!0});var l=Y(o);a=et(l,"DIV",{class:!0});var s=Y(a);for(let t=0;t<$.length;t+=1)$[t].l(s);s.forEach(M),l.forEach(M),this.h()},h(){H(e,"class",n=mi.tabs__list+" "+(t[43]?he["root_restrict-scroll"]:"")),H(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[17]?ze(t[17]):""),lt(e,"--divkit-tabs-font-size",ye(t[7])),lt(e,"--divkit-tabs-paddings",t[8]),lt(e,"--divkit-tabs-line-height",t[24]),lt(e,"--divkit-tabs-letter-spacing",t[25]),lt(e,"--divkit-tabs-active-font-weight",t[10]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[11]||""),lt(e,"--divkit-tabs-active-font-family",t[26]||""),lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),lt(e,"--divkit-tabs-active-text-color",t[12]),lt(e,"--divkit-tabs-inactive-text-color",t[13]),lt(e,"--divkit-tabs-active-background-color",t[14]),lt(e,"--divkit-tabs-inactive-background-color",t[15]),lt(e,"--divkit-tabs-border-radius",t[9]),lt(e,"--divkit-tabs-items-spacing",t[16]?$e(t[16]):""),H(a,"class",c=Te("tabs__swiper",mi,{inited:t[28],animated:t[29]})),H(o,"class",u=mi.tabs__panels+" "+(t[43]?he["root_restrict-scroll"]:""))},m(n,l){T(n,e,l);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[65](e),T(n,r,l),v&&v.m(n,l),T(n,i,l),T(n,o,l),I(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[66](a),t[67](o),d=!0,h||(p=[W(e,"keydown",t[48]),W(a,"touchstart",(function(){s(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),W(a,"touchmove",(function(){s(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),W(a,"touchend",(function(){s(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),W(a,"touchcancel",(function(){s(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],h=!0)},p(r,l){if(t=r,524360&l[0]|73728&l[1]){let n;for(f=Gt(t[19]),n=0;n<f.length;n+=1){const r=xi(t,f,n);g[n]?(g[n].p(r,l),Ut(g[n],1)):(g[n]=Ai(r),g[n].c(),Ut(g[n],1),g[n].m(e,null))}for(Rt(),n=f.length;n<g.length;n+=1)m(n);Lt()}if((!d||4096&l[1]&&n!==(n=mi.tabs__list+" "+(t[43]?he["root_restrict-scroll"]:"")))&&H(e,"class",n),131072&l[0]&&lt(e,"--divkit-tabs-title-padding",t[17]?ze(t[17]):""),128&l[0]&&lt(e,"--divkit-tabs-font-size",ye(t[7])),256&l[0]&&lt(e,"--divkit-tabs-paddings",t[8]),16777216&l[0]&&lt(e,"--divkit-tabs-line-height",t[24]),33554432&l[0]&&lt(e,"--divkit-tabs-letter-spacing",t[25]),1024&l[0]&&lt(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&l[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&l[0]&&lt(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&l[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&l[0]&&lt(e,"--divkit-tabs-active-text-color",t[12]),8192&l[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[13]),16384&l[0]&&lt(e,"--divkit-tabs-active-background-color",t[14]),32768&l[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[15]),512&l[0]&&lt(e,"--divkit-tabs-border-radius",t[9]),65536&l[0]&&lt(e,"--divkit-tabs-items-spacing",t[16]?$e(t[16]):""),t[20]?v?v.p(t,l):(v=Ci(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&l[0]|8193&l[1]){let e;for(y=Gt(t[19]),e=0;e<y.length;e+=1){const n=wi(t,y,e);$[e]?($[e].p(n,l),Ut($[e],1)):($[e]=Di(n),$[e].c(),Ut($[e],1),$[e].m(a,null))}for(Rt(),e=y.length;e<$.length;e+=1)_(e);Lt()}(!d||805306368&l[0]&&c!==(c=Te("tabs__swiper",mi,{inited:t[28],animated:t[29]})))&&H(a,"class",c),(!d||4096&l[1]&&u!==(u=mi.tabs__panels+" "+(t[43]?he["root_restrict-scroll"]:"")))&&H(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Ut(g[t]);for(let t=0;t<y.length;t+=1)Ut($[t]);d=!0}},o(t){g=g.filter(bi);for(let t=0;t<g.length;t+=1)Wt(g[t]);$=$.filter(bi);for(let t=0;t<$.length;t+=1)Wt($[t]);d=!1},d(n){n&&(M(e),M(r),M(i),M(o)),z(g,n),t[65](null),v&&v.d(n),z($,n),t[66](null),t[67](null),h=!1,l(p)}}}function ji(t){let e,n,r=!t[4]&&ki(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),16&n[0]&&Ut(r,1)):(r=ki(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Si(t,e,r){let i,o,a,l,s,c,u,d,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D=n,P=n,j=n,S=n,F=n,N=n,I=n,O=n,T=n;var M,z;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T()));let{json:J={}}=e,{templateContext:B}=e,{origJson:R}=e,{layoutParams:L}=e;const U=wt(pe),W=U.genId("tabs");let H=!1,q=ue([]);p(t,q,(t=>r(19,$=t)));let G,K,X,Y={};const Z=U.getJsonWithVars(J.selected_tab);let Q,tt,et=Z&&Number(Z)||0,nt=12,rt="",it="",ot="",at="",lt="",st="",ct="",ut="",dt="",ht="",pt=0,ft="",gt="",mt=null,vt=!1,yt=!1,$t=et,bt=[],xt=[];async function kt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if($t=et,r(6,et=t),Ft(),r(29,yt=!0),Vt(100*-et),Dt(),async function(){await jt();const t=document.getElementById("".concat(W,"-panel-").concat(et));t&&r(22,K.style.height=ye(t.offsetHeight),K)}(),St(),Ot=-et*K.clientWidth,e){await jt();const t=G.querySelector(".".concat(mi.tabs__item_selected));t&&t.focus()}}function At(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(et)+t;i>=n?i=0:i<0&&(i=n-1),kt(r[i],e)}function Ct(t,e){return et===e||(kt(e),!1)}async function Vt(t){await jt(),r(23,X.style.transform="translate3d(".concat(t,"%,0,0)"),X)}function Dt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,et-1):Math.min(et,$t),n=t?Math.min(i.length-1,et+1):Math.max(et,$t);r(30,bt=bt.map(((t,r)=>t||r>=e&&r<=n))),r(31,xt=xt.map(((t,r)=>r>=e&&r<=n)))}let Pt=null;function St(){Pt&&clearTimeout(Pt),Pt=window.setTimeout((()=>{r(31,xt=i.map(((t,e)=>e===et)))}),400)}function Ft(){vt||(r(28,vt=!0),r(22,K.style.height=ye(K.clientHeight),K),r(23,X.style.transform="translate3d(".concat(100*-$t,"%,0,0)"),X))}let Nt,It,Ot,Tt=null,Mt=null,zt=!1,Jt=!1;return!J.id||H||(null==L?void 0:L.fakeElement)||U.registerInstance(J.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');kt(t)},setPreviousItem(t){let e=et-1;e<0&&(e="ring"===t?i.length-1:et),kt(e)},setNextItem(t){let e=et+1;e>i.length-1&&(e="ring"===t?0:et),kt(e)}}),_t((()=>{J.id&&!(null==L?void 0:L.fakeElement)&&U.unregisterInstance(J.id)})),t.$$set=t=>{"json"in t&&r(0,J=t.json),"templateContext"in t&&r(1,B=t.templateContext),"origJson"in t&&r(2,R=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(18,i=J.items||[]),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=U.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):U.logError(fe(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),q.set(t)}else q.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?r(4,H=!1):(r(4,H=!0),U.logError(fe(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(42,o=U.getDerivedFromVars(J.width)),O(),O=h(o,(t=>r(63,C=t)))),1&t.$$.dirty[0]&&(r(41,a=U.getDerivedFromVars(J.height)),I(),I=h(a,(t=>r(62,A=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==C?void 0:C.type)&&(t.parentHorizontalWrapContent=!0),A&&"wrap_content"!==A.type||(t.parentVerticalWrapContent=!0),r(5,Y=He(t,Y))}if(262225&t.$$.dirty[0]&&!H&&(et<0||et>=i.length)&&(U.logError(fe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab,length:i.length}})),r(6,et=et<0?0:i.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(H||$.some((t=>et===t.index))||(U.logError(fe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab}})),r(6,et=(null===r(52,M=$[0])||void 0===M?void 0:M.index)||0))),1&t.$$.dirty[0]&&(r(40,l=U.getDerivedFromVars(J.tab_title_style)),N(),N=h(l,(t=>r(61,E=t)))),1073741824&t.$$.dirty[1]&&r(56,s=E||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(7,nt=Vn(s.font_size,nt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(s.font_size||s.paddings)){const t=s.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/nt*10,right:(Number(t.right)||0)/nt*10,bottom:(Number(t.bottom)||0)/nt*10,left:(Number(t.left)||0)/nt*10};r(8,rt=Re(e,rt))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=s.line_height;void 0!==t&&sn(t)&&r(24,it=ye(t/nt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=s.letter_spacing;void 0!==t&&Be(t)&&r(25,ot=ye(t/nt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(s.corner_radius||s.corners_radius||s.font_size)){const t=null!==r(53,z=s.corner_radius)&&void 0!==z?z:1e3;s.corners_radius?r(9,at=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!Be(i[t]))return r;return Ye(t,e,n)}(s.corners_radius,t,nt,at)):Be(t)&&r(9,at=ye(t/nt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(10,Q=Pn(s.active_font_weight||s.font_weight,Q)),s.font_family&&"string"==typeof s.font_family?r(26,lt=U.typefaceProvider(s.font_family,{fontWeight:Q||400})):r(26,lt="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(11,tt=Pn(s.inactive_font_weight||s.font_weight,tt)),s.font_family&&"string"==typeof s.font_family?r(27,st=U.typefaceProvider(s.font_family,{fontWeight:tt||400})):r(27,st="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,ct=be(s.active_text_color,1,ct)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,ut=be(s.inactive_text_color,1,ut)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(14,dt=be(s.active_background_color,1,dt)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(15,ht=be(s.inactive_background_color,1,ht)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(16,pt=Le(s.item_spacing,pt)),1&t.$$.dirty[0]&&(r(39,c=U.getDerivedFromVars(J.has_separator)),F(),F=h(c,(t=>r(20,k=t)))),1&t.$$.dirty[0]&&(r(38,u=U.getDerivedFromVars(J.separator_color)),S(),S=h(u,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&(r(37,d=U.getDerivedFromVars(J.separator_paddings)),j(),j=h(d,(t=>r(59,w=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&k&&(x&&r(54,ft=be(x,1,ft)),w&&r(55,gt=Re(w,gt))),25165824&t.$$.dirty[1]&&r(36,f={background:ft,margin:gt}),1&t.$$.dirty[0]&&(r(35,g=U.getDerivedFromVars(J.switch_tabs_by_content_swipe_enabled)),P(),P=h(g,(t=>r(58,b=t)))),134217728&t.$$.dirty[1]&&r(34,m=void 0===b||Boolean(b)),1&t.$$.dirty[0]&&(r(33,v=U.getDerivedFromVars(J.restrict_parent_scroll)),T(),T=h(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(32,y=U.getDerivedFromVars(J.title_paddings)),D(),D=h(y,(t=>r(57,_=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(17,mt=Xe(_||void 0,mt)),262144&t.$$.dirty[0]&&(H||(r(30,bt=i.map(((t,e)=>e===et))),r(31,xt=i.map(((t,e)=>e===et)))))},[J,B,R,L,H,Y,et,nt,rt,at,Q,tt,ct,ut,dt,ht,pt,mt,i,$,k,G,K,X,it,ot,lt,st,vt,yt,bt,xt,y,v,m,g,f,d,u,c,l,a,o,V,W,q,{},Ct,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===vi)At(-1,!0);else if(t.which===yi)At(1,!0);else if(t.which===$i)kt(0,!0);else{if(t.which!==_i)return;kt(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(he["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==K||(zt=!1,Jt=!1,Tt=tn(t),Mt=null,Nt=Date.now(),It=Ot||-et*K.clientWidth,r(29,yt=!1),Pt&&clearTimeout(Pt))},function(t){const e=tn(t);if(!Tt||Mt&&Mt.x===e.x&&Mt.y===e.y)return;Mt=e;const n=K.clientWidth;if(zt){Ot=e.x-Tt.x+It;const t=n*i.length;if(Ot>0)Ot=Ot*n/(Ot+3*n);else if(-Ot+n>t){let e=-Ot+n-t;e=e*n/(e+3*n),Ot=n-t-e}Vt(100*Ot/n)}else Math.abs(e.y-Tt.y)>10?Jt=!0:!Jt&&Math.abs(e.x-Tt.x)>8&&(Ft(),zt=!0,Tt=e,Vt(100*-et),Dt(!0));zt&&t.cancelable&&t.preventDefault()},function(){Jt=!1,Tt=null;let t=et;if(!zt)return;zt=!1;const e=Math.min(512,K.clientWidth);Math.abs(It-Ot)>e/4*Math.min(1,(Date.now()-Nt)/750)&&(t+=It>Ot?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===et?(Ot=-t*e,Vt(100*-t),St()):kt(t)},M,z,ft,gt,s,_,b,w,x,E,A,C,(t,e)=>Ct(0,t),function(t){Et[t?"unshift":"push"]((()=>{G=t,r(21,G)}))},function(t){Et[t?"unshift":"push"]((()=>{X=t,r(23,X)}))},function(t){Et[t?"unshift":"push"]((()=>{K=t,r(22,K)}))}]}const Fi={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ni(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Ii(t){return t*t*t}function Oi(t){const e=t-1;return e*e*e+1}function Ti(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const Mi=Ti([.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]),zi=Ti([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]),Ji={linear:r,ease:Mi,ease_in:Ii,ease_out:Oi,ease_in_out:Ni,spring:zi},Bi=200,Ri=0,Li=0,Ui=0;function Wi(t){return Math.max(...t.map((t=>(Number(t.duration)||Bi)+(Number(t.start_delay)||Ri))))}function Hi(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||Ri,a=Number(t.duration)||Bi,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(Ji[t.interpolator||"ease_in_out"]||Ni)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||Li)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||Ui),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function qi(t,e,n){return t*(1-n)+e*n}const Gi={linear:r,ease:Mi,ease_in:Ii,ease_out:Oi,ease_in_out:Ni,spring:zi},Ki=200,Xi=0;function Yi(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:Xi,duration:null!==(r=l.duration)&&void 0!==r?r:Ki,easing:l.interpolator&&l.interpolator in Gi?Gi[l.interpolator]:Ni,css:t=>["top:".concat(qi(o.top,a.top,t)-i.top,"px"),"left:".concat(qi(o.left,a.left,t)-i.left,"px"),"width:".concat(qi(o.width,a.width,t),"px"),"height:".concat(qi(o.height,a.height,t),"px")].join(";")}}function Zi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Zi(t))})):e.push(t),e}const Qi={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},to={linear:r,ease:Mi,ease_in:Ii,ease_out:Oi,ease_in_out:Ni,spring:zi},eo=300,no=0;function ro(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Ke(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||eo)+(Number(t.start_delay)||no)))));var a;return i.some((t=>"no_animation"===t.name))?{}:{duration:o,css:t=>{const e=t*o,n=i.map((t=>{const n=Number(t.start_delay)||no,i=Number(t.duration)||eo,o=Math.max(0,Math.min(1,(e-n)/i)),a=(to[t.interpolator||"ease_in_out"]||Ni)(o);var l,s;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(l=t.start_value)&&void 0!==l?l:0)+a*("in"===r?1:null!==(s=t.end_value)&&void 0!==s?s:1)};if("translate"===t.name){var c,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u: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 d,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d: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),l=n.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),s=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)),u=[l,c.length?c[c.length-1]:s].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:io}=C;function oo(t){let e,i,o,a,c,u,d,h;return i=new cl({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=J("div"),ne(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);re(i.$$.fragment,n),n.forEach(M),this.h()},h(){H(e,"class",o=Te("tooltip",Qi,t[7])+" "+(t[14]?he.root_platform_desktop:"")),lt(e,"top",t[4]),lt(e,"left",t[3]),lt(e,"width",t[5]),lt(e,"height",t[6])},m(n,r){T(n,e,r),ie(i,e,null),t[27](e),u=!0,d||(h=[W(io,"click",t[18]),W(io,"resize",t[19])],d=!0)},p(n,r){t=n;const a={};1&r[0]&&(a.div=t[0].div),2&r[0]&&(a.templateContext=t[1]),i.$set(a),(!u||16512&r[0]&&o!==(o=Te("tooltip",Qi,t[7])+" "+(t[14]?he.root_platform_desktop:"")))&&H(e,"class",o),16&r[0]&&lt(e,"top",t[4]),8&r[0]&&lt(e,"left",t[3]),32&r[0]&&lt(e,"width",t[5]),64&r[0]&&lt(e,"height",t[6])},i(n){u||(Ut(i.$$.fragment,n),n&&St((()=>{u&&(c&&c.end(1),a=qt(e,ro,{animations:t[15]||t[17],direction:"in"}),a.start())})),u=!0)},o(o){Wt(i.$$.fragment,o),a&&a.invalidate(),o&&(c=function(t,e,i){const o={direction:"out"};let a,c=e(t,i,o),u=!0;const d=Bt;let h;function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:s=n,css:p}=c||Ht;p&&(a=gt(t,1,0,i,e,o,p));const f=w()+e,g=f+i;St((()=>zt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return s(0,1),zt(t,!1,"end"),--d.r||l(d.c),!1;if(e>=f){const t=o((e-f)/i);s(1-t,t)}}return u}))}return d.r+=1,s(c)?Mt().then((()=>{c=c(o),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&mt(t,a),u=!1)}}}(e,ro,{animations:t[16]||t[17],direction:"out"})),u=!1},d(n){n&&M(e),oe(i),t[27](null),n&&c&&c.end(),d=!1,l(h)}}}function ao(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y=n,$=n,_=n,b=n,w=n,x=n;var k,E,A,C;t.$$.on_destroy.push((()=>y())),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:V}=e,{data:D}=e,{internalId:P}=e,{templateContext:j}=e;const S=wt(pe),F=Date.now();let N,I=!1,O="",T="",M="",z="",J=null;function B(){var t,e;if(!N||!V)return;const n=N.parentElement;if(!n)return;const i=N.style.cssText;r(2,N.style.cssText+=";transform: none !important",N);const o=V.getBoundingClientRect(),a=N.getBoundingClientRect(),l=n.getBoundingClientRect();r(2,N.style.cssText=i,N);let s=0,c=0,u=null,h=null,g=0,m=0;const v=S.getJsonWithVars(null===(t=D.div)||void 0===t?void 0:t.width),y=S.getJsonWithVars(null===(e=D.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=o.width,m="match_parent"===(null==y?void 0:y.type)?h=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===f||"bottom-left"===f||"top-left"===f)s=o.left-g;else if("top"===f||"bottom"===f||"center"===f)s=(o.left+o.right)/2-g/2;else{if("right"!==f&&"bottom-right"!==f&&"top-right"!==f)return;s=o.right}if("top"===f||"top-left"===f||"top-right"===f)c=o.top-m;else if("left"===f||"right"===f||"center"===f)c=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==f&&"bottom"!==f&&"bottom-right"!==f)return;c=o.bottom}s-=l.left,c-=l.top,s+=p||0,c+=d||0,r(3,O="".concat(s,"px")),r(4,T="".concat(c,"px")),r(5,M=null!==u?"".concat(u,"px"):""),r(6,z=null!==h?"".concat(h,"px"):""),r(26,I=!0),null===u||null===h?"undefined"==typeof ResizeObserver||J||(J=new ResizeObserver((()=>{requestAnimationFrame(B)})),J.observe(N)):null==J||J.disconnect()}var R;return $t((()=>{if(S.tooltipRoot){const t=window.getComputedStyle(N);r(2,N.style.fontSize=t.fontSize,N),r(2,N.style.fontFamily=t.fontFamily,N),r(2,N.style.lineHeight=t.lineHeight,N),S.tooltipRoot.appendChild(N)}})),R=()=>{I||B()},yt().$$.after_update.push(R),_t((()=>{null==J||J.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(20,V=t.ownerNode),"data"in t&&r(0,D=t.data),"internalId"in t&&r(21,P=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,o=S.getDerivedFromVars(D.position)),_(),_=h(o,(t=>r(31,f=t)))),12582913&t.$$.dirty[0]&&(r(11,a=S.getDerivedFromVars(null===r(23,E=null===r(22,k=D.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),$(),$=h(a,(t=>r(30,p=t)))),50331649&t.$$.dirty[0]&&(r(10,l=S.getDerivedFromVars(null===r(25,C=null===r(24,A=D.offset)||void 0===A?void 0:A.y)||void 0===C?void 0:C.value)),y(),y=h(l,(t=>r(29,d=t)))),1&t.$$.dirty[0]&&(r(9,s=S.getDerivedFromVars(D.animation_in)),w(),w=h(s,(t=>r(15,m=t)))),1&t.$$.dirty[0]&&(r(8,c=S.getDerivedFromVars(D.animation_out)),x(),x=h(c,(t=>r(16,v=t)))),67108864&t.$$.dirty[0]&&r(7,u={visible:I})},r(13,i=S.isDesktop),b(),b=h(i,(t=>r(14,g=t))),[D,j,N,O,T,M,z,u,c,s,l,a,o,i,g,m,v,{name:"set",items:[{name:"translate"},{name:"fade"}]},function(t){Date.now()-F<100||t.composedPath().includes(N)||S.onTooltipClose(P)},function(){B()},V,P,k,E,A,C,I,function(t){Et[t?"unshift":"push"]((()=>{N=t,r(2,N)}))}]}const lo=class extends se{constructor(t){super(),ae(this,t,ao,oo,d,{ownerNode:20,data:0,internalId:21,templateContext:1},null,[-1,-1])}},{Map:so}=C;function co(t,e,n){const r=t.slice();return r[30]=e[n],r}function uo(t,e,n){const r=t.slice();return r[30]=e[n],r}function ho(t){var e;let n,r,i,o;n=new An({props:{cls:Fi.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[yo]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&$o(t);return{c(){ne(n.$$.fragment),r=L(),a&&a.c(),i=U()},l(t){re(n.$$.fragment,t),r=it(t),a&&a.l(t),i=U()},m(t,e){ie(n,t,e),T(t,r,e),a&&a.m(t,e),T(t,i,e),o=!0},p(t,e){var r;const o={};1&e[0]&&(o.json=t[0]),4&e[0]&&(o.origJson=t[2]),2&e[0]&&(o.templateContext=t[1]),8&e[0]&&(o.layoutParams=t[3]),210&e[0]|16&e[1]&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),null!==(r=t[3])&&void 0!==r&&r.tooltips?a?(a.p(t,e),8&e[0]&&Ut(a,1)):(a=$o(t),a.c(),Ut(a,1),a.m(i.parentNode,i)):a&&(Rt(),Wt(a,1,1,(()=>{a=null})),Lt())},i(t){o||(Ut(n.$$.fragment,t),Ut(a),o=!0)},o(t){Wt(n.$$.fragment,t),Wt(a),o=!1},d(t){t&&(M(r),M(i)),oe(n,t),a&&a.d(t)}}}function po(t){let e,r,i=t[7],o=fo(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){128&r[0]&&d(i,i=t[7])?(Rt(),Wt(o,1,1,n),Lt(),o=fo(t),o.c(),Ut(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ut(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function fo(t){let e,n;return e=new cl({props:{div:t[7].div,templateContext:t[1]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.div=t[7].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function go(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[30])}return r=new cl({props:{div:t[30].json,templateContext:t[30].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=J("div"),n=J("div"),ne(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);re(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Fi["state__animation-child-inner"]),H(e,"class",a=Fi["state__animation-child"])},m(t,i){T(t,e,i),I(e,n),ie(r,n,null),I(e,o),s=!0,c||(u=W(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[30].json),64&n[0]&&(i.templateContext=t[30].templateContext),r.$set(i)},i(n){s||(Ut(r.$$.fragment,n),l||St((()=>{l=qt(e,Yi,t[30]),l.start()})),s=!0)},o(t){Wt(r.$$.fragment,t),s=!1},d(t){t&&M(e),oe(r),c=!1,u()}}}function mo(t){let e,n,r,i,o,a,l,s,c,u,d="".concat(t[30].offsetLeft,"px"),h="".concat(t[30].offsetTop,"px"),p="".concat(t[30].width,"px"),f="".concat(t[30].height,"px");function g(){return t[10](t[30])}return r=new cl({props:{div:t[30].json,templateContext:t[30].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=J("div"),n=J("div"),ne(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);re(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Fi["state__animation-child-inner"]),H(e,"class",a=Fi["state__animation-child"]),lt(e,"left",d),lt(e,"top",h),lt(e,"width",p),lt(e,"height",f)},m(t,i){T(t,e,i),I(e,n),ie(r,n,null),I(e,o),s=!0,c||(u=W(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[30].json),64&i[0]&&(o.templateContext=t[30].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[30].offsetLeft,"px"))&&lt(e,"left",d),64&i[0]&&h!==(h="".concat(t[30].offsetTop,"px"))&&lt(e,"top",h),64&i[0]&&p!==(p="".concat(t[30].width,"px"))&&lt(e,"width",p),64&i[0]&&f!==(f="".concat(t[30].height,"px"))&&lt(e,"height",f)},i(n){s||(Ut(r.$$.fragment,n),l||St((()=>{l=qt(e,Hi,t[30]),l.start()})),s=!0)},o(t){Wt(r.$$.fragment,t),s=!1},d(t){t&&M(e),oe(r),c=!1,u()}}}function vo(t,e){let n,r,i,o,a;const l=[mo,go],s=[];function c(t,e){return"direction"in t[30]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=U(),i.c(),o=U(),this.h()},l(t){n=U(),i.l(t),o=U(),this.h()},h(){this.first=n},m(t,e){T(t,n,e),s[r].m(t,e),T(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Rt(),Wt(s[a],1,1,(()=>{s[a]=null})),Lt(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),Ut(i,1),i.m(o.parentNode,o))},i(t){a||(Ut(i),a=!0)},o(t){Wt(i),a=!1},d(t){t&&(M(n),M(o)),s[r].d(t)}}}function yo(t){var e;let n,r,i,o,a=[],l=new so,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&po(t),c=Gt(t[6]);const u=t=>t[30];for(let e=0;e<c.length;e+=1){let n=uo(t,c,e),r=u(n);l.set(r,a[e]=vo(r,n))}return{c(){s&&s.c(),n=L(),r=J("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=it(t),r=et(t,"DIV",{class:!0,"aria-hidden":!0});var e=Y(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(M),this.h()},h(){H(r,"class",i=Fi.state__animations),H(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),T(e,n,i),T(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e[0]&&Ut(s,1)):(s=po(t),s.c(),Ut(s,1),s.m(n.parentNode,n)):s&&(Rt(),Wt(s,1,1,(()=>{s=null})),Lt()),320&e[0]&&(c=Gt(t[6]),Rt(),a=Xt(a,e,u,1,t,c,l,r,Kt,vo,null,uo),Lt())},i(t){if(!o){Ut(s);for(let t=0;t<c.length;t+=1)Ut(a[t]);o=!0}},o(t){Wt(s);for(let t=0;t<a.length;t+=1)Wt(a[t]);o=!1},d(e){e&&(M(n),M(r)),s&&s.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function $o(t){var e;let n,r,i=[],o=new so,a=Gt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const l=t=>t[30].internalId;for(let e=0;e<a.length;e+=1){let n=co(t,a,e),r=l(n);o.set(r,i[e]=_o(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=U()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);T(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Gt(null===(r=t[3])||void 0===r?void 0:r.tooltips),Rt(),i=Xt(i,e,l,1,t,a,o,n.parentNode,Kt,_o,n,co),Lt())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Ut(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)Wt(i[t]);r=!1},d(t){t&&M(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function _o(t,e){let n,r,i;return r=new lo({props:{ownerNode:e[30].ownerNode,data:e[30].desc,internalId:e[30].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=U(),ne(r.$$.fragment),this.h()},l(t){n=U(),re(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),ie(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[30].ownerNode),8&n[0]&&(i.data=e[30].desc),8&n[0]&&(i.internalId=e[30].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Ut(r.$$.fragment,t),i=!0)},o(t){Wt(r.$$.fragment,t),i=!1},d(t){t&&M(n),oe(r,t)}}}function bo(t){let e,n,r=!t[5]&&ho(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[5]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),32&n[0]&&Ut(r,1)):(r=ho(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function wo(t){return"change_bounds"===t.type?t:"set"===t.type?wo(t.items[0]):null}function xo(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=wt(pe),c=wt(Me);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Zi(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;async function b(t){if(w===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(w=t,null==A||A.setValue(w),n(7,x=o)):s.logError(fe(new Error("Cannot find state with id"),{additional:{stateId:t}})),await jt(),!u)return;const a=u.getBoundingClientRect();let l=m.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,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,Wi(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:wo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)}let w;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{setState:b,getChild(t){if(f&&f.has(t))return f.get(t);s.logError(fe(new Error("Missing state block with id"),{additional:{id:t}}))}}),bt(Me,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(fe(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=Wi(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(fe(new Error('Missing "id" prop for div "state"'))));let x=null;const k=s.getJsonWithVars(i.default_state_id),E=i.state_id_variable,A=E?s.getVariable(E,"string"):null;let C=!1;function V(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return _t((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&i&&(h=new Set),1&t.$$.dirty[0]&&n(9,r=i.states||[]),512&t.$$.dirty[0]&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(fe(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty[0]&&function(t){if(!C&&(C=!0,t.length)){const e=(null==A?void 0:A.getValue())||k;e?(w=e,n(7,x=t.find((t=>t.state_id===w))||null),x||s.logError(fe(new Error("Cannot find state for default_state_id"),{additional:{selectedId:w}}))):(n(7,x=t[0]),w=x.state_id),A&&(A.setValue(w),A.subscribe((t=>{b(t)})))}}(r)},[i,o,a,l,u,p,g,x,V,r,t=>V(t),t=>V(t),function(t){Et[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const ko={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Eo}=C;function Ao(t,e,n){const r=t.slice();return r[49]=e[n],r}function Co(t){let e,n;return e=new An({props:{cls:Te("pager",ko,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[16],$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Te("pager",ko,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),33336&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Vo(t){var e;let n,r,i,o,a;return r=new cl({props:{div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=J("div"),ne(r.$$.fragment),i=L(),this.h()},l(t){n=et(t,"DIV",{class:!0});var e=Y(n);re(r.$$.fragment,e),i=it(e),e.forEach(M),this.h()},h(){H(n,"class",o=ko.pager__item)},m(t,e){T(t,n,e),ie(r,n,null),I(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[49].json),16&e[0]&&(i.templateContext=t[49].templateContext),16&e[0]&&(i.origJson=t[49].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Ut(r.$$.fragment,t),a=!0)},o(t){Wt(r.$$.fragment,t),a=!1},d(t){t&&M(n),oe(r)}}}function Do(t){let e,n,r=Gt(t[4]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Vo(Ao(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(24&n[0]){let a;for(r=Gt(t[4]),a=0;a<r.length;a+=1){const o=Ao(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Vo(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Eo);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Po(t){let e,r,i,o,a,l,s=t[4],c=Do(t);return{c(){e=J("div"),c.c(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=Y(e);c.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=ko.pager__items+" "+(t[15]?he["root_restrict-scroll"]:"")),H(e,"style",i=ve(t[9]))},m(n,r){T(n,e,r),c.m(e,null),t[37](e),o=!0,a||(l=W(e,"scroll",t[17]),a=!0)},p(t,a){16&a[0]&&d(s,s=t[4])?(Rt(),Wt(c,1,1,n),Lt(),c=Do(t),c.c(),Ut(c,1),c.m(e,null)):c.p(t,a),(!o||32768&a[0]&&r!==(r=ko.pager__items+" "+(t[15]?he["root_restrict-scroll"]:"")))&&H(e,"class",r),(!o||512&a[0]&&i!==(i=ve(t[9])))&&H(e,"style",i)},i(t){o||(Ut(c),o=!0)},o(t){Wt(c),o=!1},d(n){n&&M(e),c.d(n),t[37](null),a=!1,l()}}}function jo(t){let e,n,r=!t[7]&&Co(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[7]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),128&n[0]&&Ut(r,1)):(r=Co(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function So(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y,_,b,w,x=n,k=n,E=n,A=n,C=n,V=n;var D,P,j,S,F,N,I;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V()));let{json:O={}}=e,{templateContext:T}=e,{origJson:M}=e,{layoutParams:z}=e;const J=wt(pe),B=J.genId("pager");let R,L=!1,U=!1,W=0,H=0,q=!1,G="horizontal",K="",X="",Y="";const Z=ni((function(){if(!L)return;const t=function(){const t=Array.from(R.children),e=R.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===G?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:W}();t!==W&&r(26,W=t)}),50);function Q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===G,i=R.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";R.scroll({[a]:i[o],behavior:e}),r(26,W=t)}return O.id&&!(null==z?void 0:z.fakeElement)&&J.registerInstance(O.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Q(t)},setPreviousItem(t){let e=W-1;e<0&&(e="ring"===t?i.length-1:W),Q(e)},setNextItem(t){let e=W+1;e>i.length-1&&(e="ring"===t?0:W),Q(e)}}),$t((()=>{if(L=!0,Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...R.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),_t((()=>{L=!1,O.id&&!(null==z?void 0:z.fakeElement)&&J.unregisterInstance(O.id)})),t.$$set=t=>{"json"in t&&r(0,O=t.json),"templateContext"in t&&r(1,T=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,z=t.layoutParams)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&((null===r(18,D=O.items)||void 0===D?void 0:D.length)&&Array.isArray(O.items)?r(25,U=!1):(r(25,U=!0),J.logError(fe(new Error('Incorrect or empty "items" prop for div "pager"'))))),33554435&t.$$.dirty[0]&&r(4,i=(!U&&O.items||[]).map((t=>{let e=t,n=T;return({templateContext:n,json:e}=J.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,o=J.getDerivedFromVars(O.layout_mode)),k(),k=h(o,(t=>r(33,v=t)))),4&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(27,q=!0),J.logError(fe(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(27,q=!1):(r(27,q=!0),J.logError(fe(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=J.getDerivedFromVars(O.orientation)),C(),C=h(a,(t=>r(36,b=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(28,G=Ar(b,G)),1&t.$$.dirty[0]&&(r(12,l=J.getDerivedFromVars(O.item_spacing)),A(),A=h(l,(t=>r(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.value;t&&Be(t)&&r(29,K=ye(t||0))}if(1&t.$$.dirty[0]&&(r(11,s=J.getDerivedFromVars(O.paddings)),E(),E=h(s,(t=>r(34,y=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(30,X=Re(y,X)),1&t.$$.dirty[0]&&(r(10,c=J.getDerivedFromVars(O.restrict_parent_scroll)),V(),V=h(c,(t=>r(15,w=t)))),268435456&t.$$.dirty[0]&&r(32,u="horizontal"===G?"grid-auto-columns":"grid-auto-rows"),838336513&t.$$.dirty[0]|4&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=$e("horizontal"===G?((null===r(19,P=O.paddings)||void 0===P?void 0:P.left)||0)+((null===r(20,j=O.paddings)||void 0===j?void 0:j.right)||0):((null===r(21,S=O.paddings)||void 0===S?void 0:S.top)||0)+((null===r(22,F=O.paddings)||void 0===F?void 0:F.bottom)||0)),e=null===r(23,N=v.neighbour_page_width)||void 0===N?void 0:N.value;r(31,Y=e?"calc(100% + ".concat(t," - 2 * ").concat($e(e)," - 2 * ").concat(K,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(24,I=v.page_width)||void 0===I?void 0:I.value;r(31,Y="".concat(Number(t),"%"))}1610612736&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,d={"grid-gap":K,padding:X,[u]:Y}),268435456&t.$$.dirty[0]&&r(8,p={orientation:G}),167772160&t.$$.dirty[0]&&r(7,f=U||q),67108880&t.$$.dirty[0]&&function(t,e){const n=O.id;if(n){const r=new Map(m);$(g,m=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:Q}),m)}}(i.length,W),67108864&t.$$.dirty[0]&&function(t){var e;if(t===H)return;H=t;const n=J.getJsonWithVars(null===(e=i[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&J.execAnyActions(n)}(W)},r(6,g=J.getStore("pagers")),x(),x=h(g,(t=>r(40,m=t))),[O,T,M,z,i,R,g,f,p,d,c,s,l,a,o,w,function(t){r(0,O=Object.assign(Object.assign({},O),{items:t}))},Z,D,P,j,S,F,N,I,U,W,q,G,K,X,Y,u,v,y,_,b,function(t){Et[t?"unshift":"push"]((()=>{R=t,r(5,R)}))}]}const Fo={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_placement_stretch:"divkit-b6bd3"};function No(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Io(t){let e,n=Gt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Oo(No(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=U()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=U()},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,i){if(25169920&i[0]){let o;for(n=Gt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=No(t,n,o);r[o]?r[o].p(a,i):(r[o]=Oo(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&M(e),z(r,t)}}}function Oo(t){let e,n,r,i,o,a,s,c;function u(){return t[36](t[46])}return{c(){e=J("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(){H(e,"class",n=Te("indicator__item",Fo,{active:t[44]})+" "+he.root__clickable),H(e,"role","tab"),H(e,"id",r=t[12].instId+"-tab-"+t[46]),H(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),H(e,"aria-selected",o=t[44]?"true":"false"),H(e,"tabindex",a=t[44]?0:-1)},m(n,r){T(n,e,r),s||(c=[W(e,"click",u),W(e,"keydown",t[24])],s=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=Te("indicator__item",Fo,{active:t[44]})+" "+he.root__clickable)&&H(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&H(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&H(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&H(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&H(e,"tabindex",a)},d(t){t&&M(e),s=!1,l(c)}}}function To(t){let e,n,r,i,o=t[12]&&Io(t);return{c(){e=J("div"),n=J("div"),o&&o.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0,role:!0});var i=Y(n);o&&o.l(i),i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Fo.indicator__items),H(n,"role","tablist"),lt(n,"margin","default"===t[6]?"0 ".concat(ye(Math.max(0,t[4].width-t[5].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",ye(t[5].width)),lt(n,"--divkit-indicator-inactive-height",ye(t[5].height)),lt(n,"--divkit-indicator-inactive-border-radius",ye(t[5].borderRadius)),lt(n,"--divkit-indicator-inactive-background",t[5].background||""),lt(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),lt(n,"--divkit-indicator-active-width",ye(t[4].width)),lt(n,"--divkit-indicator-active-height",ye(t[4].height)),lt(n,"--divkit-indicator-active-border-radius",ye(t[4].borderRadius)),lt(n,"--divkit-indicator-active-background",t[4].background||""),lt(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),lt(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),lt(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ye((t[7]-t[5].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ye(t[9]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ye((t[8]-1)*t[9]):""),H(e,"class",i=Fo.indicator__scroller)},m(r,i){T(r,e,i),I(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Io(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&lt(n,"margin","default"===t[6]?"0 ".concat(ye(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&lt(n,"--divkit-indicator-inactive-width",ye(t[5].width)),32&e[0]&&lt(n,"--divkit-indicator-inactive-height",ye(t[5].height)),32&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",ye(t[5].borderRadius)),32&e[0]&&lt(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&lt(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&lt(n,"--divkit-indicator-active-width",ye(t[4].width)),16&e[0]&&lt(n,"--divkit-indicator-active-height",ye(t[4].height)),16&e[0]&&lt(n,"--divkit-indicator-active-border-radius",ye(t[4].borderRadius)),16&e[0]&&lt(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&lt(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&lt(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&lt(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ye((t[7]-t[5].width)/2)):""),576&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ye(t[9]):""),320&e[0]&&lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ye((t[8]-1)*t[9]):"")},d(n){n&&M(e),o&&o.d(),t[37](null),t[38](null)}}}function Mo(t){let e,n;return e=new An({props:{cls:Te("indicator",Fo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[To]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Te("indicator",Fo,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function zo(t,e,r){let i,o,a,l,s,c,u,d,p,f,g,m,v,y,$,_,b,w,x,k=n,E=n,A=n,C=n,V=n,D=n,P=n,j=n,S=n;var F,N;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:O}=e,{origJson:T}=e,{layoutParams:M}=e;const z=["rounded_rectangle","circle"],J=wt(pe);let B,R,L,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,G=10,K=5;function X(t){t!==L.currentItem&&L.scrollToPagerItem(t)}async function Y(t){L.scrollToPagerItem(t),await jt();const e=R.querySelector(".".concat(Fo.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,I=t.json),"templateContext"in t&&r(1,O=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(22,i=J.getDerivedFromVars(I.shape)),D(),D=h(i,(t=>r(32,_=t)))),1&t.$$.dirty[0]&&(r(21,o=J.getDerivedFromVars(I.active_item_color)),C(),C=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=J.getDerivedFromVars(I.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,l=J.getDerivedFromVars(I.active_item_size)),P(),P=h(l,(t=>r(33,b=t)))),1&t.$$.dirty[0]&&(r(18,s=J.getDerivedFromVars(I.active_shape)),S(),S=h(s,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=J.getDerivedFromVars(I.inactive_shape)),j(),j=h(c,(t=>r(34,w=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,U=ir({type:"shape_drawable",shape:x},z,U)),w&&r(5,W=ir({type:"shape_drawable",shape:w},z,W)),!x&&!w&&_)){const t=Vn(b,1.3);r(5,W=ir({type:"shape_drawable",shape:_,color:W.background},z,W)),r(5,W.background=be($,1,W.background),W),r(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),r(4,U.background=be(y,1,U.background),U)}if(1&t.$$.dirty[0]&&(r(16,u=J.getDerivedFromVars(I.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=J.getDerivedFromVars(I.items_placement)),A(),A=h(d,(t=>r(29,v=t)))),905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,q=Le(m.value,q));else if(r(6,H=v.type),"default"===H)r(7,q=Le(null===r(25,F=v.space_between_centers)||void 0===F?void 0:F.value,q));else if("stretch"===H){const t=v;r(8,G=Vn(t.max_visible_items,G)),r(9,K=Le(null===r(26,N=t.item_spacing)||void 0===N?void 0:N.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(r(12,L=t.get(I.pager_id)),await jt(),R)){const t=R.children[L.currentItem].offsetLeft;B.scroll({left:t-B.clientWidth/2,behavior:"smooth"})}}(g),64&t.$$.dirty[0]&&r(13,f={placement:H})},r(14,p=J.getStore("pagers")),k(),k=h(p,(t=>r(27,g=t))),[I,O,T,M,U,W,H,q,G,K,B,R,L,f,p,d,u,c,s,l,a,o,i,X,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=L;if(t.which===vi)Y(n-1<0?n:n-1);else if(t.which===yi)Y(n+1>=e?n:n+1);else if(t.which===$i)Y(0);else{if(t.which!==_i)return;Y(e-1)}t.preventDefault()},F,N,g,m,v,y,$,_,b,w,x,t=>X(t),function(t){Et[t?"unshift":"push"]((()=>{R=t,r(11,R)}))},function(t){Et[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Jo={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",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 Bo(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&be(t.text_color)||"#000",i=Dn(t.font_weight);if(sn(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:ye(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.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 Ro(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Lo="function"==typeof BigInt;function Uo(t){return Lo?BigInt(t):Number(t)}const Wo=Uo("9223372036854775807"),Ho=Uo("-9223372036854775808");function qo(t){const e=Uo(t);if(e>Wo||e<Ho)throw new Error("Integer overflow.");return e}const Go=qo(0);function Ko(t){let e=t;return e<0&&(e=-e),e}function Xo(t){let e=0;return t>0?e=1:t<0&&(e=-1),qo(e)}class Yo{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=ue(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}}const Zo={string:class extends Yo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends Yo{convertValue(t){if("number"!=typeof t||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"}},integer:class extends Yo{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Wo||t<Ho)throw new Error("Incorrect variable value");return qo(t)}fromString(t){const e=qo(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends Yo{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"}},color:class extends Yo{convertValue(t){if("string"!=typeof t||!we(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends Yo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends Yo{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"}},array:class extends Yo{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"}}};function Qo(t,e,n){if(!(e in Zo))throw new Error("Unsupported variable type");return new Zo[e](t,n)}function ta(t,e,n){const r=t.slice();return r[78]=e[n],r}function ea(t,e,n){const r=t.slice();return r[78]=e[n],r}function na(t){let e,n;return e=new An({props:{cls:Te("slider",Jo,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[la]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=Te("slider",Jo,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function ra(t){let e,n;return{c(){e=J("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Jo.slider__tick+" "+Jo.slider__tick_active),lt(e,"--divkit-slider-tick",t[78])},m(t,n){T(t,e,n)},p(t,n){131072&n[0]&&lt(e,"--divkit-slider-tick",t[78])},d(t){t&&M(e)}}}function ia(t){let e,n;return{c(){e=J("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Jo.slider__tick+" "+Jo.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[78])},m(t,n){T(t,e,n)},p(t,n){262144&n[0]&&lt(e,"--divkit-slider-tick",t[78])},d(t){t&&M(e)}}}function oa(t){let e,n,r,i,o;return{c(){e=J("div"),n=J("div"),r=R(t[6]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);r=rt(a,t[6]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,l;H(n,"class",i=Jo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000"),H(e,"class",o=Jo["slider__thumb-text"])},m(t,i){T(t,e,i),I(e,n),I(n,r)},p(t,e){var i,o,a;64&e[0]&&at(r,t[6]),4096&e[0]&&lt(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&lt(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&lt(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function aa(t){let e,n,r,i,o;return{c(){e=J("div"),n=J("div"),r=R(t[7]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);r=rt(a,t[7]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,l;H(n,"class",i=Jo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000"),H(e,"class",o=Jo["slider__thumb-text"]+" "+Jo["slider__thumb-text_secondary"])},m(t,i){T(t,e,i),I(e,n),I(n,r)},p(t,e){var i,o,a;128&e[0]&&at(r,t[7]),8192&e[0]&&lt(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&lt(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&lt(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function la(t){let e,n,r,i,o,a,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k=Gt(t[17]),E=[];for(let e=0;e<k.length;e+=1)E[e]=ra(ea(t,k,e));let A=Gt(t[18]),C=[];for(let e=0;e<A.length;e+=1)C[e]=ia(ta(t,A,e));let V=t[12]&&oa(t),D=t[37]&&function(t){let e,n,r=t[13]&&aa(t);return{c(){e=J("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(){H(e,"class",n=Jo.slider__thumb+" "+Jo.slider__thumb_secondary),lt(e,"border-radius",ye(t[9].borderRadius)),lt(e,"background",t[9].background),lt(e,"box-shadow",t[9].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=aa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&lt(e,"border-radius",ye(t[9].borderRadius)),512&n[0]&&lt(e,"background",t[9].background),512&n[0]&&lt(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}(t),P=t[37]&&function(t){let e,n,r,i,o;return{c(){e=J("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(){H(e,"type","range"),H(e,"class",n=t[16]?Jo.slider__input:"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary)),H(e,"min",t[4]),H(e,"max",t[5]),H(e,"step","1"),e.value=r=t[16]?t[6]:t[7],H(e,"aria-label",t[20])},m(n,r){T(n,e,r),i||(o=[W(e,"input",t[68]),W(e,"mousedown",t[37]?t[40]:null),W(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?Jo.slider__input:"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary))&&H(e,"class",n),16&i[0]&&H(e,"min",t[4]),32&i[0]&&H(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&H(e,"aria-label",t[20])},d(t){t&&M(e),i=!1,l(o)}}}(t);return{c(){e=J("div"),n=J("div"),r=J("div"),o=L(),a=J("div"),c=L();for(let t=0;t<E.length;t+=1)E[t].c();u=L();for(let t=0;t<C.length;t+=1)C[t].c();d=L(),h=J("div"),V&&V.c(),f=L(),D&&D.c(),g=L(),m=J("input"),$=L(),P&&P.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var l=Y(n);r=et(l,"DIV",{class:!0}),Y(r).forEach(M),o=it(l),a=et(l,"DIV",{class:!0}),Y(a).forEach(M),c=it(l);for(let t=0;t<E.length;t+=1)E[t].l(l);u=it(l);for(let t=0;t<C.length;t+=1)C[t].l(l);d=it(l),h=et(l,"DIV",{class:!0});var s=Y(h);V&&V.l(s),s.forEach(M),f=it(l),D&&D.l(l),g=it(l),m=et(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),$=it(l),P&&P.l(l),l.forEach(M),i.forEach(M),this.h()},h(){H(r,"class",i=Jo.slider__track),lt(r,"height",ye(t[10].height)),lt(r,"border-radius",ye(t[10].borderRadius)),lt(r,"background",t[10].background),lt(r,"box-shadow",t[10].boxShadow||""),H(a,"class",s=Jo["slider__active-track"]),lt(a,"left",(100*t[23]).toFixed(2)+"%"),lt(a,"width",(100*t[24]).toFixed(2)+"%"),lt(a,"height",ye(t[11].height)),lt(a,"border-radius",ye(t[11].borderRadius)),lt(a,"background",t[11].background),lt(a,"box-shadow",t[11].boxShadow||""),H(h,"class",p=Jo.slider__thumb),lt(h,"border-radius",ye(t[8].borderRadius)),lt(h,"background",t[8].background),lt(h,"box-shadow",t[8].boxShadow||""),H(m,"type","range"),H(m,"class",v=t[16]?"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary):Jo.slider__input),H(m,"min",t[4]),H(m,"max",t[5]),H(m,"step","1"),m.value=y=t[16]?t[7]:t[6],H(m,"aria-label",t[19]),H(n,"class",_=Jo["slider__tracks-inner"]),H(e,"class",b=Jo["slider__tracks-wrapper"])},m(i,l){T(i,e,l),I(e,n),I(n,r),I(n,o),I(n,a),I(n,c);for(let t=0;t<E.length;t+=1)E[t]&&E[t].m(n,null);I(n,u);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);I(n,d),I(n,h),V&&V.m(h,null),I(n,f),D&&D.m(n,null),I(n,g),I(n,m),I(n,$),P&&P.m(n,null),t[69](n),w||(x=W(m,"input",t[67]),w=!0)},p(t,e){if(1024&e[0]&&lt(r,"height",ye(t[10].height)),1024&e[0]&&lt(r,"border-radius",ye(t[10].borderRadius)),1024&e[0]&&lt(r,"background",t[10].background),1024&e[0]&&lt(r,"box-shadow",t[10].boxShadow||""),8388608&e[0]&&lt(a,"left",(100*t[23]).toFixed(2)+"%"),16777216&e[0]&&lt(a,"width",(100*t[24]).toFixed(2)+"%"),2048&e[0]&&lt(a,"height",ye(t[11].height)),2048&e[0]&&lt(a,"border-radius",ye(t[11].borderRadius)),2048&e[0]&&lt(a,"background",t[11].background),2048&e[0]&&lt(a,"box-shadow",t[11].boxShadow||""),131072&e[0]){let r;for(k=Gt(t[17]),r=0;r<k.length;r+=1){const i=ea(t,k,r);E[r]?E[r].p(i,e):(E[r]=ra(i),E[r].c(),E[r].m(n,u))}for(;r<E.length;r+=1)E[r].d(1);E.length=k.length}if(262144&e[0]){let r;for(A=Gt(t[18]),r=0;r<A.length;r+=1){const i=ta(t,A,r);C[r]?C[r].p(i,e):(C[r]=ia(i),C[r].c(),C[r].m(n,d))}for(;r<C.length;r+=1)C[r].d(1);C.length=A.length}t[12]?V?V.p(t,e):(V=oa(t),V.c(),V.m(h,null)):V&&(V.d(1),V=null),256&e[0]&&lt(h,"border-radius",ye(t[8].borderRadius)),256&e[0]&&lt(h,"background",t[8].background),256&e[0]&&lt(h,"box-shadow",t[8].boxShadow||""),t[37]&&D.p(t,e),65536&e[0]&&v!==(v=t[16]?"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary):Jo.slider__input)&&H(m,"class",v),16&e[0]&&H(m,"min",t[4]),32&e[0]&&H(m,"max",t[5]),65728&e[0]&&y!==(y=t[16]?t[7]:t[6])&&(m.value=y),524288&e[0]&&H(m,"aria-label",t[19]),t[37]&&P.p(t,e)},d(n){n&&M(e),z(E,n),z(C,n),V&&V.d(),D&&D.d(),P&&P.d(),t[69](null),w=!1,x()}}}function sa(t){let e,n,r,i,o=!t[14]&&na(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(a,l){o&&o.m(a,l),T(a,e,l),n=!0,r||(i=W(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(Rt(),Wt(o,1,1,(()=>{o=null})),Lt()):o?(o.p(t,n),16384&n[0]&&Ut(o,1)):(o=na(t),o.c(),Ut(o,1),o.m(e.parentNode,e))},i(t){n||(Ut(o),n=!0)},o(t){Wt(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}function ca(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function ua(t,e,r){let i,o,a,l,s,c,u,d,f,g,m,v,y,$,_,b,w,x,k,E,A,C,V,D,P,j,S,F,N,I,O,T,M,z,J=n,B=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,X=n,Y=n;var Z,Q,tt,et;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const at={width:10,height:10,borderRadius:5,background:"#000"},lt=["rounded_rectangle","circle"],st=["rounded_rectangle"],ct=wt(pe),ut=wt(Qe);let dt,ht=!1,pt=0,ft=100;const gt=nt.thumb_value_variable,mt=nt.thumb_secondary_value_variable;let vt=gt&&ct.getVariable(gt,"integer")||Qo("temp","integer",0);p(t,vt,(t=>r(64,T=t)));let yt=mt&&ct.getVariable(mt,"integer")||Qo("temp","integer",0);p(t,yt,(t=>r(63,O=t)));let _t,bt,xt,kt=Ro(T||0,pt,ft),At=Ro(O||0,pt,ft),Ct=at,Vt=Ct,Dt=at,Pt=at,jt=null,St=null,Ft=xt,Nt="",It="",Ot=!1;function Tt(t,e){const n=Number(t.target.value);ht===("first"===e)?(r(7,At=n),yt.setValue(n)):(r(6,kt=n),vt.setValue(n))}let Mt=!1;function zt(){if(!dt)return;const t=ft-pt,e=(null==jt?void 0:jt.width)||0,n=(null==St?void 0:St.width)||0;Math.max(e,n)*t>=(null==dt?void 0:dt.clientWidth)?Mt||(ct.logError(fe(new Error("Slider ticks overlap each other"),{level:"warn"})),Mt=!0):Mt=!1}const Jt=ni(zt,50);return $t((()=>{zt()})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,rt=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(36,i=ct.getDerivedFromVars(nt.min_value)),Y(),Y=h(i,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(35,o=ct.getDerivedFromVars(nt.max_value)),X(),X=h(o,(t=>r(65,M=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(r(4,pt=Ge(z,pt)),r(5,ft=Ge(M,ft)),zt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Ro(T||0,pt,ft);t!==kt&&r(6,kt=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=Ro(O||0,pt,ft);t!==At&&r(7,At=t)}if(1&t.$$.dirty[0]&&(r(34,a=ct.getDerivedFromVars(nt.thumb_style)),K(),K=h(a,(t=>r(62,I=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,Ct=ir(I,lt,Ct)),1&t.$$.dirty[0]&&(r(33,l=ct.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=h(l,(t=>r(61,N=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(9,Vt=ir(N,lt,Ct)),1&t.$$.dirty[0]&&(r(32,s=ct.getDerivedFromVars(nt.track_inactive_style)),q(),q=h(s,(t=>r(60,F=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(10,Dt=ir(F,st,Dt)),1&t.$$.dirty[0]&&(r(31,c=ct.getDerivedFromVars(nt.track_active_style)),H(),H=h(c,(t=>r(59,S=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,Pt=ir(S,st,Pt)),1&t.$$.dirty[0]&&(r(30,u=ct.getDerivedFromVars(nt.tick_mark_active_style)),W(),W=h(u,(t=>r(58,j=t)))),134217728&t.$$.dirty[1]){let t=ir(j,lt,at);t!==at&&r(47,jt=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(jt?(r(17,_t=mt?ca(Math.min(kt,At),Math.max(kt,At)+1,pt,ft,!0):ca(pt,kt,pt,ft,!0)),zt()):r(17,_t=[])),1&t.$$.dirty[0]&&(r(29,d=ct.getDerivedFromVars(nt.tick_mark_inactive_style)),U(),U=h(d,(t=>r(57,P=t)))),67108864&t.$$.dirty[1]){let t=ir(P,lt,at);t!==at&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,bt=mt?ca(Math.min(kt,At),Math.max(kt,At)+1,pt,ft,!1):ca(kt+1,ft+1,pt,ft,!0)),zt()):r(18,bt=[])),1&t.$$.dirty[0]&&(r(28,f=ct.getDerivedFromVars(nt.thumb_text_style)),L(),L=h(f,(t=>r(56,D=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,xt=Bo(D,xt)),1&t.$$.dirty[0]&&(r(27,g=ct.getDerivedFromVars(nt.thumb_secondary_text_style)),R(),R=h(g,(t=>r(55,V=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&r(13,Ft=Bo(V,xt)),1&t.$$.dirty[0]&&(r(26,m=ct.getDerivedFromVars(nt.accessibility)),B(),B=h(m,(t=>r(54,C=t)))),8388608&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(19,Nt=C.description):ct.logError(fe(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(25,v=ct.getDerivedFromVars(nt.secondary_value_accessibility)),J(),J=h(v,(t=>r(53,A=t)))),4194304&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(20,It=A.description):mt&&ct.logError(fe(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;ut.hasAction()?(ct.logError(fe(new Error('Cannot show "slider" inside component with action'))),t=!0):Ct===at?(ct.logError(fe(new Error('Missing "thumb_style" in slider'))),t=!0):Pt===at?(ct.logError(fe(new Error('Missing "track_active_style" in slider'))),t=!0):Dt===at&&(ct.logError(fe(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&r(14,Ot=t)}768&t.$$.dirty[0]&&r(52,y=ye(Math.max(...[Ct.width,Vt.width,0].filter(Be)))),768&t.$$.dirty[0]&&r(51,$=ye(Math.max(...[Ct.height,Vt.height,0].filter(Be)))),112&t.$$.dirty[0]&&r(50,_=(kt-pt)/(ft-pt)),176&t.$$.dirty[0]&&r(49,b=mt?(At-pt)/(ft-pt):void 0),786432&t.$$.dirty[1]&&r(24,w=void 0!==b?Math.abs(b-_):_),786432&t.$$.dirty[1]&&r(23,x=void 0!==b?Math.min(b,_):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&r(22,k={"--divkit-slider-thumb-width":ye(Ct.width),"--divkit-slider-thumb-height":ye(Ct.height),"--divkit-slider-thumb-secondary-width":ye(Vt.width),"--divkit-slider-thumb-secondary-height":ye(Vt.height),"--divkit-slider-text-offset-x":(null===r(43,Z=null==xt?void 0:xt.offset)||void 0===Z?void 0:Z.x)?$e(xt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(44,Q=null==xt?void 0:xt.offset)||void 0===Q?void 0:Q.y)?$e(xt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(45,tt=null==Ft?void 0:Ft.offset)||void 0===tt?void 0:tt.x)?$e(Ft.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(46,et=null==Ft?void 0:Ft.offset)||void 0===et?void 0:et.y)?$e(Ft.offset.y):void 0,"--divkit-slider-tick-active-width":jt?ye(jt.width):void 0,"--divkit-slider-tick-active-height":jt?ye(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?ye(jt.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==jt?void 0:jt.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==jt?void 0:jt.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":St?ye(St.width):void 0,"--divkit-slider-tick-inactive-height":St?ye(St.height):void 0,"--divkit-slider-tick-inactive-border-radius":St?ye(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":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":_,"--divkit-slider-track-secondary-part":b})},r(21,E={}),[nt,rt,it,ot,pt,ft,kt,At,Ct,Vt,Dt,Pt,xt,Ft,Ot,dt,ht,_t,bt,Nt,It,E,k,x,w,v,m,g,f,d,u,c,s,l,a,o,i,mt,vt,yt,function(t){var e,n;const i="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===i)return;const o=dt.getBoundingClientRect(),a=(i-o.left)/o.width,l=(ft-pt)*a,s=Math.round(Ro(l,pt,ft));r(16,ht=s<(kt+At)/2==kt<At)},Tt,Jt,Z,Q,tt,et,jt,St,b,_,$,y,A,C,V,D,P,j,S,F,N,I,O,T,M,z,t=>Tt(t,"first"),t=>Tt(t,"second"),function(t){Et[t?"unshift":"push"]((()=>{dt=t,r(15,dt)}))}]}const da={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","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 ha(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=ha(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function pa(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 fa{constructor(t){this.char=t}}class ga{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class ma{constructor(t){pa(this,"filters",new Map),pa(this,"destructedValue",[]),pa(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 fa)t+=n.char;else if(n instanceof ga)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 ga&&!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(fe(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 ga(null,this.filters.get(e.key),e.placeholder):new fa(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=ha(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=i?this.calculateMaxShift(i,o):void 0;this.replaceChars(r,o,a);const l=this.firstEmptyHolderIndex();this.replaceChars(i,l),this.calculateCursorPosition(n,l)}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 ga&&++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 ga&&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 ga&&(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 i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ga);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();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 ga&&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 i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof ga&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ga);)++e;return e}}class va extends ma{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function ya(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 $a extends ma{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}),ya(this,"currencyFormatter",new Intl.NumberFormat),ya(this,"decimalSeparator","."),ya(this,"localeDigits",{}),ya(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(fe(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=ha(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const l=this.parseFormat(a)||0;o&&this.invalidateMaskDataForFormatted(l),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 i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;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 i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const l=t.includes(this.decimalSeparator)||-1!==i,s=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=s.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&l?a>0&&(s.push(u),a--):s.push(u):d&&-1===n&&r===i?(s.push(this.decimalSeparator),c=!0):!d||u!==this.decimalSeparator||n!==r&&-1!==n||(s.push(this.decimalSeparator),c=!0,n=r),r--}return s.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 _a=3;function ba(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 wa(t,e){if(t.nodeType!==_a)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=ba(r);if(e<=i)return void wa(r,e);e-=i}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 xa(t){let e,n;return e=new An({props:{cls:Te("input",da,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ca,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{89:e,90:n,91:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?134217728:0)|(n?268435456:0)|(r?536870912:0)]}]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Te("input",da,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802672&n[0]|2013265920&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function ka(t){let e,n,r,i,o;return{c(){e=J("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(){H(e,"type",t[9]),H(e,"inputmode",t[10]),H(e,"class",n=Te("input__input",da,{"has-custom-focus":t[91],singleline:!0})),H(e,"autocomplete","off"),H(e,"autocapitalize","off"),H(e,"aria-label",t[11]),H(e,"style",r=ve(t[13])),H(e,"placeholder",t[18]),e.value=t[4]},m(n,r){T(n,e,r),t[76](e),i||(o=[W(e,"input",t[37]),W(e,"mousedown",(function(){s(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),W(e,"click",(function(){s(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),W(e,"focus",(function(){s(t[89])&&t[89].apply(this,arguments)})),W(e,"blur",(function(){s(t[90])&&t[90].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&H(e,"type",t[9]),1024&o[0]&&H(e,"inputmode",t[10]),536870912&o[2]&&n!==(n=Te("input__input",da,{"has-custom-focus":t[91],singleline:!0}))&&H(e,"class",n),2048&o[0]&&H(e,"aria-label",t[11]),8192&o[0]&&r!==(r=ve(t[13]))&&H(e,"style",r),262144&o[0]&&H(e,"placeholder",t[18]),16&o[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&M(e),t[76](null),i=!1,l(o)}}}function Ea(t){let e,n,r,i,o,a,c,u,d,h,p,f,g=!t[8]&&t[18]&&Aa(t);return{c(){e=J("span"),g&&g.c(),n=L(),r=J("span"),i=R("​"),a=L(),c=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var o=Y(e);g&&g.l(o),n=it(o),r=et(o,"SPAN",{"aria-hidden":!0,style:!0});var l=Y(r);i=rt(l,"​"),l.forEach(M),a=it(o),c=et(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Y(c).forEach(M),o.forEach(M),this.h()},h(){H(r,"aria-hidden","true"),H(r,"style",o=ve(t[12])),H(c,"class",u=Te("input__input",da,{"has-custom-focus":t[91],multiline:!0})),H(c,"autocapitalize","off"),H(c,"contenteditable","true"),H(c,"aria-label",t[11]),H(c,"style",d=ve(t[13])),void 0===t[8]&&St((()=>t[75].call(c))),H(e,"class",h=da["input__scroll-wrapper"])},m(o,l){T(o,e,l),g&&g.m(e,null),I(e,n),I(e,r),I(r,i),I(e,a),I(e,c),t[74](c),void 0!==t[8]&&(c.innerText=t[8]),p||(f=[W(c,"input",t[75]),W(c,"input",t[37]),W(c,"paste",Da),W(c,"mousedown",(function(){s(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),W(c,"click",(function(){s(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),W(c,"focus",(function(){s(t[89])&&t[89].apply(this,arguments)})),W(c,"blur",(function(){s(t[90])&&t[90].apply(this,arguments)}))],p=!0)},p(i,a){!(t=i)[8]&&t[18]?g?g.p(t,a):(g=Aa(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),4096&a[0]&&o!==(o=ve(t[12]))&&H(r,"style",o),536870912&a[2]&&u!==(u=Te("input__input",da,{"has-custom-focus":t[91],multiline:!0}))&&H(c,"class",u),2048&a[0]&&H(c,"aria-label",t[11]),8192&a[0]&&d!==(d=ve(t[13]))&&H(c,"style",d),256&a[0]&&t[8]!==c.innerText&&(c.innerText=t[8])},d(n){n&&M(e),g&&g.d(),t[74](null),p=!1,l(f)}}}function Aa(t){let e,n,r,i;return{c(){e=J("div"),n=R(t[18]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=Y(e);n=rt(i,t[18]),i.forEach(M),this.h()},h(){H(e,"class",r=da.input__placeholder),H(e,"aria-hidden","true"),H(e,"style",i=ve(t[13]))},m(t,r){T(t,e,r),I(e,n)},p(t,r){262144&r[0]&&at(n,t[18]),8192&r[0]&&i!==(i=ve(t[13]))&&H(e,"style",i)},d(t){t&&M(e)}}}function Ca(t){let e;function n(t,e){return t[5]?Ea:ka}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function Va(t){let e,n,r=!t[7]&&xa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[7]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),128&n[0]&&Ut(r,1)):(r=xa(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Da(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Pa(t,e,r){let i,o,a,l,s,c,u,d,f,g,m,v,y,_,b,w,x,k,E,A,C,V,D,P,j,S,F,N=n,I=n;var O;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{json:T={}}=e,{templateContext:M}=e,{origJson:z}=e,{layoutParams:J}=e;const B=wt(pe);let R,L=!1,U=null;const W=T.text_variable,H=null===(O=T.mask)||void 0===O?void 0:O.raw_text_variable;let q=!1;W||(q=!0,B.logError(fe(new Error('Missing "text_variable" in "input"'))));let G=W&&B.getVariable(W,"string")||Qo("temp","string","");p(t,G,(t=>r(56,f=t)));let K=H&&B.getVariable(H,"string")||Qo("temp","string","");p(t,K,(t=>r(57,g=t)));let X="",Y="";const Z=B.getDerivedFromVars(T.mask);p(t,Z,(t=>r(61,_=t)));const Q=B.getDerivedFromVars(T.hint_text);p(t,Q,(t=>r(73,S=t)));const tt=B.getDerivedFromVars(T.hint_color);p(t,tt,(t=>r(72,j=t)));let et="";const nt=B.getDerivedFromVars(T.font_size);p(t,nt,(t=>r(71,P=t)));let rt=12;const it=B.getDerivedFromVars(T.font_weight);p(t,it,(t=>r(70,D=t)));const ot=B.getDerivedFromVars(T.font_family);let at;p(t,ot,(t=>r(69,V=t)));let lt="";const st=B.getDerivedFromVars(T.line_height);let ct;p(t,st,(t=>r(68,C=t)));const ut=B.getDerivedFromVars(T.letter_spacing);p(t,ut,(t=>r(67,A=t)));let dt="";const ht=B.getDerivedFromVars(T.text_color);p(t,ht,(t=>r(66,E=t)));let pt="#000";const ft=B.getDerivedFromVars(T.highlight_color);p(t,ft,(t=>r(65,k=t)));let gt="";const mt=B.getDerivedFromVars(T.text_alignment_horizontal);p(t,mt,(t=>r(64,x=t)));let vt="left";const yt=B.getDerivedFromVars(T.text_alignment_vertical);p(t,yt,(t=>r(63,w=t)));let _t="center";const bt=B.getDerivedFromVars(T.keyboard_type);p(t,bt,(t=>r(62,b=t)));const xt={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let kt="multi_line_text",At="text";const Ct="undefined"!=typeof document&&"inputMode"in document.createElement("input");let Vt;const Dt=B.getDerivedFromVars(T.max_visible_lines);p(t,Dt,(t=>r(60,y=t)));let Pt="",St=null,Ft="",Nt="",It="";const Ot=B.getDerivedFromVars(T.select_all_on_focus);function Tt(t){R instanceof HTMLInputElement?r(6,R.selectionStart=r(6,R.selectionEnd=t,R),R):wa(R,t)}async function Mt(){if(!R||!U)return;U.overrideRawValue(g),K.set(U.rawValue),$(G,f=r(4,X=r(8,Y=U.value)),f);const t=U.cursorPosition;await jt(),document.activeElement===R&&Tt(t)}return p(t,Ot,(t=>r(19,F=t))),$t((()=>{R&&U&&g&&(U.overrideRawValue(g),$(G,f=r(4,X=r(8,Y=U.value)),f))})),t.$$set=t=>{"json"in t&&r(0,T=t.json),"templateContext"in t&&r(1,M=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,J=t.layoutParams)},t.$$.update=()=>{if(1073741824&t.$$.dirty[1]&&("fixed_length"===(null==(e=_)?void 0:e.type)?r(40,U=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 va(r,e)}return n||null}(e,B.logError,U)):"currency"===(null==e?void 0:e.type)&&r(40,U=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new $a(t.locale,e)}(e,B.logError,U)),U&&Mt()),16&t.$$.dirty[0]|33554944&t.$$.dirty[1]&&(U||X===f||r(4,X=r(8,Y=f))),67109376&t.$$.dirty[1]&&U&&U.rawValue!==g&&Mt(),2048&t.$$.dirty[2]&&r(18,i=S),1024&t.$$.dirty[1]|1024&t.$$.dirty[2]&&r(41,et=be(j,1,et)),2048&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(42,rt=Vn(P,rt)),4096&t.$$.dirty[1]|384&t.$$.dirty[2]&&(r(43,at=Pn(D,at)),r(44,lt=V&&"string"==typeof V?B.typefaceProvider(V,{fontWeight:at||400}):"")),2048&t.$$.dirty[1]|64&t.$$.dirty[2]){const t=C;sn(t)&&r(45,ct=t/rt)}var e;32&t.$$.dirty[2]&&Je(A)&&r(46,dt=ye(A)),65536&t.$$.dirty[1]|16&t.$$.dirty[2]&&r(47,pt=be(E,1,pt)),131072&t.$$.dirty[1]|8&t.$$.dirty[2]&&r(48,gt=be(k,1,gt)),262144&t.$$.dirty[1]|4&t.$$.dirty[2]&&r(49,vt=On(x,vt)),524288&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(50,_t=Tn(w,_t)),1073741824&t.$$.dirty[1]|1&t.$$.dirty[2]&&(b&&b in xt&&(r(9,At=xt[b]),r(51,kt=b)),"currency"===(null==_?void 0:_.type)&&(r(9,At=Ct?"text":"tel"),r(10,Vt="decimal"))),1048576&t.$$.dirty[1]&&r(5,o="multi_line_text"===kt),1&t.$$.dirty[0]&&(r(17,a=B.getDerivedFromVars(T.paddings)),I(),I=h(a,(t=>r(59,v=t)))),809519104&t.$$.dirty[1]&&(sn(y)&&r(52,Pt="calc(".concat(y*(ct||1.25)*(rt/10)+"em"," + ").concat($e(Le(null==v?void 0:v.top,0)+Le(null==v?void 0:v.bottom,0)),")")),r(53,St=Xe(v||void 0,St)),r(54,Ft=St?ze({top:(Number(St.top)||0)/rt*10,right:(Number(St.right)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10,left:(Number(St.left)||0)/rt*10}):""),r(55,Nt=St?ze({top:(Number(St.top)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10}):"")),1&t.$$.dirty[0]&&(r(16,l=B.getDerivedFromVars(T.accessibility)),N(),N=h(l,(t=>r(58,m=t)))),134217728&t.$$.dirty[1]&&((null==m?void 0:m.description)?r(11,It=m.description):B.logError(fe(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|917504&t.$$.dirty[1]&&r(15,s={"highlight-color":Boolean(gt),multiline:o,"alignment-horizontal":vt,"alignment-vertical":_t}),2356224&t.$$.dirty[1]&&r(14,c={"--divkit-input-hint-color":et,"--divkit-input-highlight-color":gt,"--divkit-input-line-height":ct,"font-weight":at,"font-family":lt,"letter-spacing":dt,color:pt,"max-height":Pt}),8390656&t.$$.dirty[1]&&r(13,u={"font-size":ye(rt),padding:Ft}),16779264&t.$$.dirty[1]&&r(12,d={"font-size":ye(rt),padding:Nt})},[T,M,z,J,X,o,R,q,Y,At,Vt,It,d,u,c,s,l,a,i,F,G,K,Z,Q,tt,nt,it,ot,st,ut,ht,ft,mt,yt,bt,Dt,Ot,function(t){let e=(o?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),X!==e&&(r(4,X=r(8,Y=e)),G.setValue(e),U&&async function(){if(!R||!U)return;U.applyChangeFrom(X,R instanceof HTMLInputElement?null===R.selectionEnd?void 0:R.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=ba(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=ba(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===_a||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(R)),K.set(U.rawValue),$(G,f=r(4,X=r(8,Y=U.value)),f);const t=U.cursorPosition;await jt(),document.activeElement===R&&Tt(t)}())},function(){L=!1,setTimeout((()=>{L=!0}),250)},function(){if(!L)if(R instanceof HTMLInputElement)R.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(R),t&&(t.removeAllRanges(),t.addRange(e))}},U,et,rt,at,lt,ct,dt,pt,gt,vt,_t,kt,Pt,St,Ft,Nt,f,g,m,v,y,_,b,w,x,k,E,A,C,V,D,P,j,S,function(t){Et[t?"unshift":"push"]((()=>{R=t,r(6,R)}))},function(){Y=this.innerText,r(8,Y),r(40,U),r(4,X),r(56,f)},function(t){Et[t?"unshift":"push"]((()=>{R=t,r(6,R)}))}]}const ja={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 Sa(t,e,n){const r=t.slice();return r[52]=e[n],r}function Fa(t){let e,n;return e=new An({props:{cls:Te("select",ja,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ia,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{49:e,50:n,51:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?262144:0)|(n?524288:0)|(r?1048576:0)]}]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Te("select",ja,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),9136&n[0]|18612224&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Na(t){let e,r,i,o,a=(t[52].text||t[52].value)+"";return{c(){e=J("option"),r=R(a),this.h()},l(t){e=et(t,"OPTION",{class:!0});var n=Y(e);r=rt(n,a),n.forEach(M),this.h()},h(){var n,r;H(e,"class",i=ja.select__option),e.__value=o=t[52].value,n=e,r=e.__value,n.value=null==r?"":r},m(t,n){T(t,e,n),I(e,r)},p:n,d(t){t&&M(e)}}}function Ia(t){let e,n,r,i,o,a,c,u,d,h,p=(t[4]||t[13]||"​")+"",f=Gt(t[16]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Na(Sa(t,f,e));return{c(){e=J("span"),n=R(p),o=L(),a=J("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),o=it(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=Y(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(M),this.h()},h(){H(e,"class",r=ja["select__select-text"]),H(e,"style",i=ve(t[9])),H(e,"aria-hidden","true"),H(a,"class",c=Te("select__select",ja,{"has-custom-focus":t[49]})),H(a,"aria-label",t[7]),H(a,"style",u=ve(t[8])),void 0===t[5]&&St((()=>t[44].call(a)))},m(r,i){T(r,e,i),I(e,n),T(r,o,i),T(r,a,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);st(a,t[5],!0),d||(h=[W(a,"change",t[44]),W(a,"focus",(function(){s(t[50])&&t[50].apply(this,arguments)})),W(a,"blur",(function(){s(t[51])&&t[51].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,8208&o[0]&&p!==(p=(t[4]||t[13]||"​")+"")&&at(n,p),512&o[0]&&i!==(i=ve(t[9]))&&H(e,"style",i),65536&o[0]){let e;for(f=Gt(t[16]),e=0;e<f.length;e+=1){const n=Sa(t,f,e);g[e]?g[e].p(n,o):(g[e]=Na(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}262144&o[1]&&c!==(c=Te("select__select",ja,{"has-custom-focus":t[49]}))&&H(a,"class",c),128&o[0]&&H(a,"aria-label",t[7]),256&o[0]&&u!==(u=ve(t[8]))&&H(a,"style",u),65568&o[0]&&st(a,t[5])},d(t){t&&(M(e),M(o),M(a)),z(g,t),d=!1,l(h)}}}function Oa(t){let e,n,r=!t[6]&&Fa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[6]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),64&n[0]&&Ut(r,1)):(r=Fa(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ta(t,e,r){let i,o,a,l,s,c,u,d,f,g,m,v,y,$,_,b,w,x,k=n,E=n;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:A={}}=e,{templateContext:C}=e,{origJson:V}=e,{layoutParams:D}=e;const P=wt(pe),j=A.value_variable;let S=!1;j||(S=!0,P.logError(fe(new Error('Missing "value_variable" in "select"'))));let F=j&&P.getVariable(j,"string")||Qo("temp","string","");p(t,F,(t=>r(5,x=t)));let N="";const I=A.options,O=Array.isArray(I)&&I.filter((t=>"string"==typeof t.value))||[];Array.isArray(O)&&O.length||P.logError(fe(new Error('Empty selection "items" in "select"')));let T="",M=null,z="";const J=P.getDerivedFromVars(A.hint_text);p(t,J,(t=>r(42,b=t)));const B=P.getDerivedFromVars(A.hint_color);p(t,B,(t=>r(41,_=t)));let R="rgba(0,0,0,.45)";const L=P.getDerivedFromVars(A.font_size);p(t,L,(t=>r(40,$=t)));let U=12;const W=P.getDerivedFromVars(A.font_weight);p(t,W,(t=>r(39,y=t)));const H=P.getDerivedFromVars(A.font_family);let q;p(t,H,(t=>r(38,v=t)));let G="";const K=P.getDerivedFromVars(A.line_height);let X;p(t,K,(t=>r(37,m=t)));const Y=P.getDerivedFromVars(A.letter_spacing);p(t,Y,(t=>r(36,g=t)));let Z="";const Q=P.getDerivedFromVars(A.text_color);p(t,Q,(t=>r(35,f=t)));let tt="#000",et="";return t.$$set=t=>{"json"in t&&r(0,A=t.json),"templateContext"in t&&r(1,C=t.templateContext),"origJson"in t&&r(2,V=t.origJson),"layoutParams"in t&&r(3,D=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(N=x),32&t.$$.dirty[0]){const t=O.find((t=>t.value===x));t?r(4,T="string"==typeof t.text?t.text:t.value):(r(4,T=""),x&&P.logError(fe(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(r(14,i=P.getDerivedFromVars(A.paddings)),E(),E=h(i,(t=>r(43,w=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(28,U=Vn($,U)),301989888&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(r(25,M=Xe(w||void 0,M)),r(26,z=M?ze({top:(Number(M.top)||0)/U*10,right:(Number(M.right)||0)/U*10,bottom:(Number(M.bottom)||0)/U*10,left:(Number(M.left)||0)/U*10}):"")),2048&t.$$.dirty[1]&&r(13,o=b),134217728&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(27,R=be(_,1,R)),536870912&t.$$.dirty[0]|384&t.$$.dirty[1]&&(r(29,q=Pn(y,q)),r(30,G=v&&"string"==typeof v?P.typefaceProvider(v,{fontWeight:q||400}):"")),268435456&t.$$.dirty[0]|64&t.$$.dirty[1]){const t=m;sn(t)&&r(31,X=t/U)}268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&Je(g)&&r(32,Z=ye(g/U*10)),20&t.$$.dirty[1]&&r(33,tt=be(f,1,tt)),1&t.$$.dirty[0]&&(r(12,a=P.getDerivedFromVars(A.accessibility)),k(),k=h(a,(t=>r(34,d=t)))),8&t.$$.dirty[1]&&((null==d?void 0:d.description)?r(7,et=d.description):P.logError(fe(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&r(11,l={hint:!T}),1744830464&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(10,s={"--divkit-input-hint-color":R,"font-weight":q,"font-family":G,color:tt}),335544320&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,c={padding:z,"font-size":ye(U),"line-height":X,"letter-spacing":Z}),268435456&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(8,u={"font-size":ye(U),"line-height":X,"letter-spacing":Z})},[A,C,V,D,T,x,S,et,u,c,s,l,a,o,i,F,O,J,B,L,W,H,K,Y,Q,M,z,R,U,q,G,X,Z,tt,d,f,g,m,v,y,$,_,b,w,function(){x=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),F.set(x),r(16,O)}]}const Ma={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function za(t,e,n){const r=t.slice();return r[41]=e[n],r}function Ja(t,e,n){const r=t.slice();return r[41]=e[n],r}function Ba(t){let e,n;return e=new An({props:{cls:Te("video",Ma,t[13]),customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ha]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Te("video",Ma,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),15344&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ra(t){let e,n,r,i,o,a=Gt(t[4]),s=[];for(let e=0;e<a.length;e+=1)s[e]=Ua(za(t,a,e));return{c(){e=J("video");for(let t=0;t<s.length;t+=1)s[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<s.length;t+=1)s[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",n=Ma.video__video),H(e,"style",r=ve(t[12])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],H(e,"poster",t[8])},m(n,r){T(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[36](e),i||(o=[W(e,"timeupdate",t[21]),W(e,"ended",t[22]),W(e,"playing",t[23]),W(e,"pause",t[24]),W(e,"waiting",t[25]),W(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(a=Gt(t[4]),r=0;r<a.length;r+=1){const i=za(t,a,r);s[r]?s[r].p(i,n):(s[r]=Ua(i),s[r].c(),s[r].m(e,null))}for(;r<s.length;r+=1)s[r].d(1);s.length=a.length}4096&n[0]&&r!==(r=ve(t[12]))&&H(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]&&H(e,"poster",t[8])},d(n){n&&M(e),z(s,n),t[36](null),i=!1,l(o)}}}function La(t){let e,n,r,i,o,a,s,c="".concat(t[9],"%"),u=Gt(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Wa(Ja(t,u,e));return{c(){e=J("div"),n=J("video");for(let t=0;t<d.length;t+=1)d[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 i=Y(n);for(let t=0;t<d.length;t+=1)d[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ma.video__video),H(n,"style",i=ve(t[12])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],H(n,"poster",t[8]),H(e,"class",o=Ma["video__aspect-wrapper"]),lt(e,"padding-bottom",c)},m(r,i){T(r,e,i),I(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[35](n),a||(s=[W(n,"timeupdate",t[21]),W(n,"ended",t[22]),W(n,"playing",t[23]),W(n,"pause",t[24]),W(n,"waiting",t[25]),W(n,"error",t[26])],a=!0)},p(t,r){if(67108880&r[0]){let e;for(u=Gt(t[4]),e=0;e<u.length;e+=1){const i=Ja(t,u,e);d[e]?d[e].p(i,r):(d[e]=Wa(i),d[e].c(),d[e].m(n,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}4096&r[0]&&i!==(i=ve(t[12]))&&H(n,"style",i),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),256&r[0]&&H(n,"poster",t[8]),512&r[0]&&c!==(c="".concat(t[9],"%"))&&lt(e,"padding-bottom",c)},d(n){n&&M(e),z(d,n),t[35](null),a=!1,l(s)}}}function Ua(t){let e,n,r,i,o;return{c(){e=J("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[41].src)||H(e,"src",n),H(e,"type",r=t[41].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[41].src)&&H(e,"src",n),16&i[0]&&r!==(r=t[41].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function Wa(t){let e,n,r,i,o;return{c(){e=J("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[41].src)||H(e,"src",n),H(e,"type",r=t[41].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[41].src)&&H(e,"src",n),16&i[0]&&r!==(r=t[41].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function Ha(t){let e;function n(t,e){return t[13].aspect?La:Ra}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function qa(t){let e,n,r=!t[10]&&Ba(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[10]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),1024&n[0]&&Ut(r,1)):(r=Ba(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ga(t,e,r){let i,o,a,l,s,c,u,d,f,g,m,v=n,y=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=wt(pe);let k,E=!1,A=!1;const C=x.getDerivedFromVars($.video_sources);p(t,C,(t=>r(34,m=t)));let V=[];const D=x.getDerivedFromVars($.repeatable);p(t,D,(t=>r(33,g=t)));let P=!1;const j=x.getDerivedFromVars($.autostart);p(t,j,(t=>r(32,f=t)));let S=!1;const F=x.getDerivedFromVars($.muted);p(t,F,(t=>r(31,d=t)));let N=!1;const I=x.getDerivedFromVars($.preview);let O;p(t,I,(t=>r(30,u=t)));let T="fit",M="0";const z=$.elapsed_time_variable;let J=z&&x.getVariable(z,"integer")||Qo("temp","integer",0);return J.subscribe((t=>{A?A=!1:k&&r(11,k.currentTime=Number(t)/1e3,k)})),!$.id||E||(null==w?void 0:w.fakeElement)||x.registerInstance($.id,{pause(){null==k||k.pause()},start(){const t=null==k?void 0:k.play();t&&t.catch((t=>{x.logError(fe(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),_t((()=>{!$.id||E||(null==w?void 0:w.fakeElement)||x.unregisterInstance($.id)})),t.$$set=t=>{"json"in t&&r(0,$=t.json),"templateContext"in t&&r(1,_=t.templateContext),"origJson"in t&&r(2,b=t.origJson),"layoutParams"in t&&r(3,w=t.layoutParams)},t.$$.update=()=>{var e,n;if(16&t.$$.dirty[0]|8&t.$$.dirty[1]&&(r(4,(e=m,n=V,V=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)),V.length?r(10,E=!1):(r(10,E=!0),x.logError(fe(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(5,P=Mn(g,P)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,S=Mn(f,S)),128&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(7,N=Mn(d,N)),1073742080&t.$$.dirty[0]&&r(8,O="string"==typeof u?Sr(u):O),1&t.$$.dirty[0]&&(r(15,i=x.getDerivedFromVars($.scale)),y(),y=h(i,(t=>r(29,c=t)))),671088640&t.$$.dirty[0]&&r(27,T=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(c)||T),1&t.$$.dirty[0]&&(r(14,o=x.getDerivedFromVars($.aspect)),v(),v=h(o,(t=>r(28,s=t)))),268435456&t.$$.dirty[0]){const t=null==s?void 0:s.ratio;t&&sn(t)?r(9,M=(100/Number(t)).toFixed(2)):r(9,M="0")}512&t.$$.dirty[0]&&r(13,a={aspect:"0"!==M}),134217728&t.$$.dirty[0]&&r(12,l={"object-fit":T})},[$,_,b,w,V,P,S,N,O,M,E,k,l,a,o,i,C,D,j,F,I,function(){k&&(A=!0,J.setValue(Math.floor(1e3*k.currentTime)))},function(){const t=x.getJsonWithVars($.end_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.resume_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.pause_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.buffering_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.fatal_actions);x.execAnyActions(t)},T,s,c,u,d,f,g,m,function(t){Et[t?"unshift":"push"]((()=>{k=t,r(11,k)}))},function(t){Et[t?"unshift":"push"]((()=>{k=t,r(11,k)}))}]}function Ka(t,e,n){const r=t.slice();return r[15]=e[n],r}function Xa(t){let e,n;return e=new An({props:{json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[nl]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),266225&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ya(t){let e,n,r=[t[9]],o={};for(let t=0;t<r.length;t+=1)o=i(o,r[t]);return{c(){e=J("template"),n=new ut(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=Y(e.content);n=function(t,e){const n=ot(t,"HTML_TAG_START",0),r=ot(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new ut(false);Z(t);const i=t.splice(n,r-n+1);M(i[0]),M(i[i.length-1]);const o=i.slice(1,i.length-1);for(const e of o)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new ut(false,o)}(r),r.forEach(M),this.h()},h(){n.a=null,G(e,o)},m(r,i){T(r,e,i),n.m(t[8],e.content)},p(t,i){256&i&&n.p(t[8]),G(e,o=Yt(r,[512&i&&t[9]]))},d(t){t&&M(e)}}}function Za(t){let e,r,i=t[6],o=tl(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){64&r&&d(i,i=t[6])?(Rt(),Wt(o,1,1,n),Lt(),o=tl(t),o.c(),Ut(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ut(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function Qa(t){let e,n;return e=new cl({props:{layoutParams:t[10],div:t[15].json,templateContext:t[15].templateContext,origJson:t[15].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n&&(r.layoutParams=t[10]),2048&n&&(r.div=t[15].json),2048&n&&(r.templateContext=t[15].templateContext),2048&n&&(r.origJson=t[15].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function tl(t){let e,n,r=Gt(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Qa(Ka(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(3072&n){let a;for(r=Gt(t[11]),a=0;a<r.length;a+=1){const o=Ka(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Qa(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function el(t){let e,n,r,o=t[8]&&Ya(t),a=!t[5]&&t[6]&&Za(t),l=[t[0].custom_props||{}],s={};for(let t=0;t<l.length;t+=1)s=i(s,l[t]);return{c(){e=J(t[4].element),o&&o.c(),n=L(),a&&a.c(),this.h()},l(r){e=et(r,(t[4].element||"null").toUpperCase(),{});var i=Y(e);o&&o.l(i),n=it(i),a&&a.l(i),i.forEach(M),this.h()},h(){X(t[4].element)(e,s)},m(i,l){T(i,e,l),o&&o.m(e,null),I(e,n),a&&a.m(e,null),t[13](e),r=!0},p(t,r){t[8]?o?o.p(t,r):(o=Ya(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!t[5]&&t[6]?a?(a.p(t,r),96&r&&Ut(a,1)):(a=Za(t),a.c(),Ut(a,1),a.m(e,null)):a&&(Rt(),Wt(a,1,1,(()=>{a=null})),Lt()),X(t[4].element)(e,s=Yt(l,[1&r&&(t[0].custom_props||{})]))},i(t){r||(Ut(a),r=!0)},o(t){Wt(a),r=!1},d(n){n&&M(e),o&&o.d(),a&&a.d(),t[13](null)}}}function nl(t){let e,r,i=t[4].element,o=t[4].element&&el(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){t[4].element?i?d(i,t[4].element)?(o.d(1),o=el(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):o.p(t,n):(o=el(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):i&&(o.d(1),o=null,i=t[4].element)},i:n,o(t){Wt(o,t),r=!1},d(t){t&&M(e),o&&o.d(t)}}}function rl(t){let e,n,r=t[4]&&Xa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[4]?r?(r.p(t,i),16&i&&Ut(r,1)):(r=Xa(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function il(t,e,n){let r,i,o;var a;let{json:l={}}=e,{templateContext:s}=e,{origJson:c}=e,{layoutParams:u}=e;const d=wt(pe);let h,p=null,f="",g={},m=!1;return $t((()=>{if(h&&"divKitApiCallback"in h&&"function"==typeof h.divKitApiCallback){const t=d.getExtensionContext();h.divKitApiCallback(t)}})),t.$$set=t=>{"json"in t&&n(0,l=t.json),"templateContext"in t&&n(1,s=t.templateContext),"origJson"in t&&n(2,c=t.origJson),"layoutParams"in t&&n(3,u=t.layoutParams)},t.$$.update=()=>{if(4113&t.$$.dirty)if("string"==typeof l.custom_type&&l.custom_type&&(null===n(12,a=d.customComponents)||void 0===a?void 0:a.has(l.custom_type))){if(n(4,p=d.customComponents.get(l.custom_type)),"function"==typeof p.template){const t=d.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(8,f=p.template({props:l.custom_props,variables:e}))}else p.template&&"string"==typeof p.template?n(8,f=p.template):n(8,f="");n(9,g={shadowrootmode:p.shadowRootMode||"open"})}else n(4,p=null),n(8,f=";"),d.logError(fe(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(6,r=l.items),64&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(5,m=!1):(n(5,m=!0),d.logError(fe(new Error('Incorrect "items" prop for div "custom"'))))),98&t.$$.dirty&&n(11,i=(!m&&r||[]).map((t=>{let e=t,n=s;return({templateContext:n,json:e}=d.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8&t.$$.dirty&&n(10,o={fakeElement:null==u?void 0:u.fakeElement})},[l,s,c,u,p,m,r,h,f,g,o,i,a,function(t){Et[t?"unshift":"push"]((()=>{h=t,n(7,h)}))}]}const ol={};function al(t){let e,n,r;var i=t[5];function o(t,e){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=dt(i,o(t))),{c(){e&&ne(e.$$.fragment),n=U()},l(t){e&&re(e.$$.fragment,t),n=U()},m(t,i){e&&ie(e,t,i),T(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){Rt();const t=e;Wt(t.$$.fragment,1,0,(()=>{oe(t,1)})),Lt()}i?(e=dt(i,o(t)),ne(e.$$.fragment),Ut(e.$$.fragment,1),ie(e,n.parentNode,n)):e=null}else if(i){const n={};8&r&&(n.json=t[3]),16&r&&(n.templateContext=t[4]),4&r&&(n.layoutParams=t[2]),3&r&&(n.origJson=t[1]||t[0]),e.$set(n)}},i(t){r||(e&&Ut(e.$$.fragment,t),r=!0)},o(t){e&&Wt(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&oe(e,t)}}}function ll(t){let e,n,r=t[5]&&al(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Ut(r,1)):(r=al(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function sl(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=wt(pe);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&ol[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&ol[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(fe(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}ol.text=class extends se{constructor(t){super(),ae(this,t,Yn,Xn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.container=class extends se{constructor(t){super(),ae(this,t,kr,xr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.separator=class extends se{constructor(t){super(),ae(this,t,Pr,Dr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},ol.image=Rr,ol.gif=Rr,ol.grid=class extends se{constructor(t){super(),ae(this,t,Qr,Zr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.gallery=class extends se{constructor(t){super(),ae(this,t,gi,fi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ol.tabs=class extends se{constructor(t){super(),ae(this,t,Si,ji,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},ol.state=class extends se{constructor(t){super(),ae(this,t,xo,bo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.pager=class extends se{constructor(t){super(),ae(this,t,So,jo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.indicator=class extends se{constructor(t){super(),ae(this,t,zo,Mo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.slider=class extends se{constructor(t){super(),ae(this,t,ua,sa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ol.input=class extends se{constructor(t){super(),ae(this,t,Pa,Va,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},ol.select=class extends se{constructor(t){super(),ae(this,t,Ta,Oa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.video=class extends se{constructor(t){super(),ae(this,t,Ga,qa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},ol.custom=class extends se{constructor(t){super(),ae(this,t,il,rl,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}};const cl=class extends se{constructor(t){super(),ae(this,t,sl,ll,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},ul={"root-svg-filters":"divkit-dc22b"};function dl(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function hl(t){let e,n,r,i=Gt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=ml(dl(t,i,e));return{c(){e=B("svg"),n=B("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=Y(e);n=nt(r,"defs",{});var i=Y(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(e,"class",r=ul["root-svg-filters"]),H(e,"aria-hidden","true")},m(t,r){T(t,e,r),I(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=Gt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=dl(t,i,r);o[r]?o[r].p(a,e):(o[r]=ml(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&M(e),z(o,t)}}}function pl(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(){H(e,"in2","SourceGraphic"),H(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&H(e,"mode",n)},d(t){t&&M(e)}}}function fl(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(){H(e,"in2","SourceGraphic"),H(e,"operator","arithmetic"),H(e,"k1","1"),H(e,"k2","0"),H(e,"k3","0"),H(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&M(e)}}}function gl(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(){H(e,"in2","SourceGraphic"),H(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])&&H(e,"operator",n)},d(t){t&&M(e)}}}function ml(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?gl:"multiply"===t[3]?fl:pl}let a=o(t),l=a(t);return{c(){e=B("filter"),n=B("feFlood"),l.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),l.l(r),r.forEach(M),this.h()},h(){H(n,"flood-color",r=t[2]),H(e,"id",i=t[0][t[1]])},m(t,r){T(t,e,r),I(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&H(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&H(e,"id",i)},d(t){t&&M(e),l.d()}}}function vl(t){let e,r=Object.keys(t[0]).length,i=r&&hl(t);return{c(){i&&i.c(),e=U()},l(t){i&&i.l(t),e=U()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=hl(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){t&&M(e),i&&i.d(t)}}}function yl(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const $l=class extends se{constructor(t){super(),ae(this,t,yl,vl,d,{svgFiltersMap:0})}};function _l(t,e,n,r){const i=n[t.type];if(!i)return r(fe(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function bl(){}function wl(t){return{subscribe:e=>(e(t),bl)}}function xl(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function kl(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function El(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 Al(t){try{return qo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Cl(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Vl(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Vl.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Dl(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Pl(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ce,JsonStringContents:function(){var t,e,n;for(t=fe,e=[],n=Ve();n!==r;)e.push(n),n=Ve();return ge=t,e=jt(e)}},a=Ce,l="@{",s="}",c="@{}",u="\\",d="?",h=":",p="||",f="&&",g="==",m="!=",v=">=",y=">",$="<=",_="<",b="+",w="-",x="/",k="*",E="%",A="!",C="(",V=")",D=",",P="'",j=".",S="e",F="E",N="true",I="false",O=/^[^}]/,T=/^[^'}]/,M=/^[0-9]/,z=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,B=/^[ \t\r\n]/,R=be("@{",!1),L=be("}",!1),U=be("@{}",!1),W=be("\\",!1),H={type:"any"},q=we(["}"],!0,!1),G=be("?",!1),K=be(":",!1),X=be("||",!1),Y=be("&&",!1),Z=be("==",!1),Q=be("!=",!1),tt=be(">=",!1),et=be(">",!1),nt=be("<=",!1),rt=be("<",!1),it=be("+",!1),ot=be("-",!1),at=be("/",!1),lt=be("*",!1),st=be("%",!1),ct=be("!",!1),ut=be("(",!1),dt=be(")",!1),ht=be(",",!1),pt=xe("string"),ft=be("'",!1),gt=we(["'","}"],!0,!1),mt=xe("integer"),vt=we([["0","9"]],!1,!1),yt=xe("number"),$t=be(".",!1),_t=be("e",!1),bt=be("E",!1),wt=xe("boolean"),xt=be("true",!1),kt=be("false",!1),Et=we([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),At=xe("identifier"),Ct=we([["a","z"],["A","Z"],"_"],!1,!1),Vt=xe("whitespace"),Dt=we([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},jt=function(t){return El(t)},St=function(t){return t},Ft=function(){return""},Nt=function(){return _e()},It=function(){throw new Error("Error tokenizing '"+t+"'.")},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},Tt=function(t){return t},Mt=function(t){return Cl(t)},zt=function(){throw new Error("Error tokenizing '"+t+"'.")},Jt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Bt=function(t,e){return kl(t,e)},Rt=function(t,e){return kl(t,e)},Lt=function(t,e){return xl(t,e)},Ut=function(t,e){return xl(t,e)},Wt=function(t,e){return xl(t,e)},Ht=function(t,e){return xl(t,e)},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t){return{type:"Variable",id:t}},Xt=function(t,e){return[t,...e]},Yt=function(t){return t},Zt=function(t){return t},Qt=function(t){return El(t)},te=function(t){return t},ee=function(){return""},ne=function(){return _e()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ae=function(t){return Cl(t)},le=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){return{type:"IntegerLiteral",value:Al(_e())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},ue=function(){return{type:"NumberLiteral",value:parseFloat(_e())}},de=function(){return{type:"BooleanLiteral",value:!0}},he=function(){return{type:"BooleanLiteral",value:!1}},pe=function(){return{type:"Identifier",name:_e()}},fe=0,ge=0,me=[{line:1,column:1}],ve=0,ye=[],$e=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function _e(){return t.substring(ge,fe)}function be(t,e){return{type:"literal",text:t,ignoreCase:e}}function we(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function xe(t){return{type:"other",description:t}}function ke(e){var n,r=me[e];if(r)return r;for(n=e-1;!me[n];)n--;for(r={line:(r=me[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return me[e]=r,r}function Ee(t,e,n){var r=ke(t),o=ke(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ae(t){fe<ve||(fe>ve&&(ve=fe,ye=[]),ye.push(t))}function Ce(){var t,e;return t=fe,Be(),(e=De())!==r?(Be(),ge=t,t=Pt(e)):(fe=t,t=r),t}function Ve(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ae(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=s,fe++):(a=r,0===$e&&Ae(L)),a!==r?(ge=e,e=St(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ae(U)),n!==r&&(ge=e,n=Ft()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ae(W)),i===r&&(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ae(R))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=Nt()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ae(R)),n!==r){if(i=[],O.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(q)),o!==r)for(;o!==r;)i.push(o),O.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(q));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=s,fe++):(o=r,0===$e&&Ae(L)),o!==r?(ge=e,e=It()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ae(R)),n!==r&&(ge=e,n=Ot()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ae(R)),i!==r?(ge=e,e=Tt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=Mt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r&&(ge=e,n=zt()),e=n))))}return e}function De(){var e,n,i,o,a,l;return e=fe,(n=Pe())!==r?(Be(),63===t.charCodeAt(fe)?(i=d,fe++):(i=r,0===$e&&Ae(G)),i!==r?(Be(),(o=De())!==r?(Be(),58===t.charCodeAt(fe)?(a=h,fe++):(a=r,0===$e&&Ae(K)),a!==r?(Be(),(l=De())!==r?(ge=e,e=Jt(n,o,l)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,i,o,a,l,s,c;if(e=fe,(n=je())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===p?(l=p,fe+=2):(l=r,0===$e&&Ae(X)),l!==r?(s=Be(),(c=je())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===p?(l=p,fe+=2):(l=r,0===$e&&Ae(X)),l!==r?(s=Be(),(c=je())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Bt(n,i)}else fe=e,e=r;return e}function je(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Se())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===f?(l=f,fe+=2):(l=r,0===$e&&Ae(Y)),l!==r?(s=Be(),(c=Se())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===f?(l=f,fe+=2):(l=r,0===$e&&Ae(Y)),l!==r?(s=Be(),(c=Se())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Rt(n,i)}else fe=e,e=r;return e}function Se(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Fe())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===g?(l=g,fe+=2):(l=r,0===$e&&Ae(Z)),l===r&&(t.substr(fe,2)===m?(l=m,fe+=2):(l=r,0===$e&&Ae(Q))),l!==r?(s=Be(),(c=Fe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===g?(l=g,fe+=2):(l=r,0===$e&&Ae(Z)),l===r&&(t.substr(fe,2)===m?(l=m,fe+=2):(l=r,0===$e&&Ae(Q))),l!==r?(s=Be(),(c=Fe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Lt(n,i)}else fe=e,e=r;return e}function Fe(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Ne())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===v?(l=v,fe+=2):(l=r,0===$e&&Ae(tt)),l===r&&(62===t.charCodeAt(fe)?(l=y,fe++):(l=r,0===$e&&Ae(et)),l===r&&(t.substr(fe,2)===$?(l=$,fe+=2):(l=r,0===$e&&Ae(nt)),l===r&&(60===t.charCodeAt(fe)?(l=_,fe++):(l=r,0===$e&&Ae(rt))))),l!==r?(s=Be(),(c=Ne())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===v?(l=v,fe+=2):(l=r,0===$e&&Ae(tt)),l===r&&(62===t.charCodeAt(fe)?(l=y,fe++):(l=r,0===$e&&Ae(et)),l===r&&(t.substr(fe,2)===$?(l=$,fe+=2):(l=r,0===$e&&Ae(nt)),l===r&&(60===t.charCodeAt(fe)?(l=_,fe++):(l=r,0===$e&&Ae(rt))))),l!==r?(s=Be(),(c=Ne())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ut(n,i)}else fe=e,e=r;return e}function Ne(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Ie())!==r){for(i=[],o=fe,a=Be(),43===t.charCodeAt(fe)?(l=b,fe++):(l=r,0===$e&&Ae(it)),l===r&&(45===t.charCodeAt(fe)?(l=w,fe++):(l=r,0===$e&&Ae(ot))),l!==r?(s=Be(),(c=Ie())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),43===t.charCodeAt(fe)?(l=b,fe++):(l=r,0===$e&&Ae(it)),l===r&&(45===t.charCodeAt(fe)?(l=w,fe++):(l=r,0===$e&&Ae(ot))),l!==r?(s=Be(),(c=Ie())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Wt(n,i)}else fe=e,e=r;return e}function Ie(){var e,n,i,o,a,l,s,c;if(e=fe,(n=Oe())!==r){for(i=[],o=fe,a=Be(),47===t.charCodeAt(fe)?(l=x,fe++):(l=r,0===$e&&Ae(at)),l===r&&(42===t.charCodeAt(fe)?(l=k,fe++):(l=r,0===$e&&Ae(lt)),l===r&&(37===t.charCodeAt(fe)?(l=E,fe++):(l=r,0===$e&&Ae(st)))),l!==r?(s=Be(),(c=Oe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),47===t.charCodeAt(fe)?(l=x,fe++):(l=r,0===$e&&Ae(at)),l===r&&(42===t.charCodeAt(fe)?(l=k,fe++):(l=r,0===$e&&Ae(lt)),l===r&&(37===t.charCodeAt(fe)?(l=E,fe++):(l=r,0===$e&&Ae(st)))),l!==r?(s=Be(),(c=Oe())!==r?o=a=[a,l,s,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ht(n,i)}else fe=e,e=r;return e}function Oe(){var e,n,i;return(e=ze())===r&&(e=Me())===r&&(e=fe,33===t.charCodeAt(fe)?(n=A,fe++):(n=r,0===$e&&Ae(ct)),n===r&&(43===t.charCodeAt(fe)?(n=b,fe++):(n=r,0===$e&&Ae(it)),n===r&&(45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)))),n!==r?(Be(),(i=Oe())!==r?(ge=e,e=qt(n,i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=fe,(n=Je())!==r?(Be(),40===t.charCodeAt(fe)?(i=C,fe++):(i=r,0===$e&&Ae(ut)),i!==r?(Be(),o=function(){var e,n,i,o,a,l;if(e=fe,(n=De())!==r){for(i=[],o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ae(ht)),a!==r?(Be(),(l=De())!==r?o=l:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ae(ht)),a!==r?(Be(),(l=De())!==r?o=l:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Xt(n,i)}else fe=e,e=r;return e===r&&(e=Be()),e}(),o!==r?(Be(),41===t.charCodeAt(fe)?(a=V,fe++):(a=r,0===$e&&Ae(dt)),a!==r?(ge=e,e=Gt(n,o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,(n=Je())!==r&&(ge=e,n=Kt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return $e++,e=fe,39===t.charCodeAt(fe)?(n=P,fe++):(n=r,0===$e&&Ae(ft)),n!==r?(i=function(){var t,e,n;for(t=fe,e=[],n=Te();n!==r;)e.push(n),n=Te();return ge=t,t=e=Qt(e)}(),39===t.charCodeAt(fe)?(o=P,fe++):(o=r,0===$e&&Ae(ft)),o!==r?(ge=e,e=Zt(i)):(fe=e,e=r)):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ae(pt)),e}(),e===r&&(e=ze())===r&&(e=Me())===r&&(e=function(){var e,n;return $e++,e=fe,t.substr(fe,4)===N?(n=N,fe+=4):(n=r,0===$e&&Ae(xt)),n!==r&&(ge=e,n=de()),(e=n)===r&&(e=fe,t.substr(fe,5)===I?(n=I,fe+=5):(n=r,0===$e&&Ae(kt)),n!==r&&(ge=e,n=he()),e=n),$e--,e===r&&(n=r,0===$e&&Ae(wt)),e}(),e===r&&(e=fe,40===t.charCodeAt(fe)?(n=C,fe++):(n=r,0===$e&&Ae(ut)),n!==r&&(i=De())!==r?(41===t.charCodeAt(fe)?(o=V,fe++):(o=r,0===$e&&Ae(dt)),o!==r?(ge=e,e=Yt(i)):(fe=e,e=r)):(fe=e,e=r))),e}())),e}())),e}function Te(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ae(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=s,fe++):(a=r,0===$e&&Ae(L)),a!==r?(ge=e,e=te(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ae(U)),n!==r&&(ge=e,n=ee()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ae(W)),i===r&&(39===t.charCodeAt(fe)?(i=P,fe++):(i=r,0===$e&&Ae(ft)),i===r&&(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ae(R)))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=ne()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ae(R)),n!==r){if(i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(gt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(gt));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=s,fe++):(o=r,0===$e&&Ae(L)),o!==r?(ge=e,e=re()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===l?(n=l,fe+=2):(n=r,0===$e&&Ae(R)),n!==r&&(ge=e,n=ie()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.substr(fe,2)===l?(i=l,fe+=2):(i=r,0===$e&&Ae(R)),i!==r?(ge=e,e=oe(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=ae(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r&&(ge=e,n=le()),e=n))))}return e}function Me(){var e,n,i,o;if($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)),n===r&&(n=null),i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));else i=r;return i!==r?(ge=e,e=se()):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ae(mt)),e}function ze(){var e,n,i,o,a,l,s,c,u,d;for($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)),n===r&&(n=null),i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));if(46===t.charCodeAt(fe)?(o=j,fe++):(o=r,0===$e&&Ae($t)),o!==r){if(a=[],M.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ae(vt)),l!==r)for(;l!==r;)a.push(l),M.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ae(vt));else a=r;if(a!==r){if(l=fe,101===t.charCodeAt(fe)?(s=S,fe++):(s=r,0===$e&&Ae(_t)),s===r&&(69===t.charCodeAt(fe)?(s=F,fe++):(s=r,0===$e&&Ae(bt))),s!==r){if(43===t.charCodeAt(fe)?(c=b,fe++):(c=r,0===$e&&Ae(it)),c===r&&(45===t.charCodeAt(fe)?(c=w,fe++):(c=r,0===$e&&Ae(ot))),c===r&&(c=null),u=[],M.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ae(vt)),d!==r)for(;d!==r;)u.push(d),M.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ae(vt));else u=r;u!==r?l=s=[s,c,u]:(fe=l,l=r)}else fe=l,l=r;l===r&&(l=null),ge=e,e=ce()}else fe=e,e=r}else fe=e,e=r;if(e===r){if(e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)),n===r&&(n=null),i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));else i=r;if(i!==r)if(101===t.charCodeAt(fe)?(o=S,fe++):(o=r,0===$e&&Ae(_t)),o===r&&(69===t.charCodeAt(fe)?(o=F,fe++):(o=r,0===$e&&Ae(bt))),o!==r){if(43===t.charCodeAt(fe)?(a=b,fe++):(a=r,0===$e&&Ae(it)),a===r&&(45===t.charCodeAt(fe)?(a=w,fe++):(a=r,0===$e&&Ae(ot))),a===r&&(a=null),l=[],M.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ae(vt)),s!==r)for(;s!==r;)l.push(s),M.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ae(vt));else l=r;l!==r?(ge=e,e=ue()):(fe=e,e=r)}else fe=e,e=r;else fe=e,e=r}return $e--,e===r&&(n=r,0===$e&&Ae(yt)),e}function Je(){var e,n,i,o,a;if($e++,e=fe,n=fe,$e++,i=function(){var e,n,i,o;return e=fe,t.substr(fe,4)===N?(n=N,fe+=4):(n=r,0===$e&&Ae(xt)),n===r&&(t.substr(fe,5)===I?(n=I,fe+=5):(n=r,0===$e&&Ae(kt))),n!==r?(i=fe,$e++,z.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(Et)),$e--,o===r?i=void 0:(fe=i,i=r),i!==r?e=n=[n,i]:(fe=e,e=r)):(fe=e,e=r),e}(),$e--,i===r?n=void 0:(fe=n,n=r),n!==r)if(J.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(Ct)),i!==r){for(o=[],z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ae(Et));a!==r;)o.push(a),z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ae(Et));ge=e,e=pe()}else fe=e,e=r;else fe=e,e=r;return $e--,e===r&&(n=r,0===$e&&Ae(At)),e}function Be(){var e,n;for($e++,e=[],B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ae(Dt));n!==r;)e.push(n),B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ae(Dt));return $e--,n=r,0===$e&&Ae(Vt),e}if((n=a())!==r&&fe===t.length)return n;throw n!==r&&fe<t.length&&Ae({type:"end"}),function(t,e,n){return new Vl(Vl.buildMessage(t,e),t,e,n)}(ye,ve<t.length?t.charAt(ve):null,ve<t.length?Ee(ve,ve+1):Ee(ve,ve))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Vl,Error),Vl.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 i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var l=this.location.end,s=Dl("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===l.line?l.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+s+" |\n"+o.line+" | "+c+"\n"+s+" | "+Dl("",i.column-1," ")+Dl("",u,"^")}else e+="\n at "+a}return e},Vl.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(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 i(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 o(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?'"'+i(t)+'"':"end of input"}(e)+" found."};const jl=new Map,Sl=new Map;function Fl(t,e,n){const r={args:e,cb:n},i=jl.get(t)||[];jl.has(t)||jl.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Sl.set(o,r)}function Nl(t,e){let n=t.args.length,r=t.args.length;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!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function Il(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=>{Il(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Il(t.left,e),Il(t.right,e);break;case"UnaryExpression":Il(t.argument,e);break;case"ConditionalExpression":Il(t.test,e),Il(t.consequent,e),Il(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Il(t,e)}))}}function Ol(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Tl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ml(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 Tl(t.value);if("color"===t.type)return Hl(Wl(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 zl(t){let e=Ml(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Jl(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Bl(t,e){if(Lo)return qo(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Rl(t,e){if(e<Ho||e>Wo)throw new Error("Integer overflow.");!Lo&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Ll(t){const e=[];return Il(t,{Variable(t){e.push(t.id.name)}}),e}function Ul(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Wl(t){const e=we(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Hl(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 _e(Math.round(t).toString(16),2)})).join("").toUpperCase())}function ql(t){return Hl(Wl(t))}const Gl=Number.MAX_VALUE,Kl=Number.MIN_VALUE,Xl="string",Yl="integer",Zl="number",Ql="boolean",ts="color",es="url",ns="datetime",rs="dict",is="array";function os(t,e){return{type:Xl,value:Ml(e)}}function as(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Zl,value:n}}function ls(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=ql(o)),{type:r,value:o}}function ss(t,e,n){return ls(t,e,n,n.type)}function cs(t,e,n){return ls(t,e,n,"color")}function us(t,e,n){return ls(t,e,n,"url")}const ds=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Yl,value:qo(r)}},hs=ds("getUTCFullYear"),ps=ds("getUTCMonth"),fs=ds("getUTCDate"),gs=ds("getUTCDay"),ms=ds("getUTCHours"),vs=ds("getUTCMinutes"),ys=ds("getUTCSeconds"),$s=ds("getUTCMilliseconds");function _s(t,e,n,r){if(!r.value.length)return t.warnings.push(fe(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===Xl?e.value:Ml(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function bs(t,e,n,r){const i=_s(t,e,n,r);return{type:Xl,value:i+Ml(e)}}function ws(t,e,n,r){const i=_s(t,e,n,r);return{type:Xl,value:Ml(e)+i}}function xs(t){return(e,n)=>{const r=Wl(n.value);return{type:Zl,value:r[t]/255}}}function ks(t){return(e,n,r)=>{const i=Wl(n.value);return i[t]=255*r.value,{type:ts,value:Hl(i)}}}const Es=xs("a"),As=xs("r"),Cs=xs("g"),Vs=xs("b"),Ds=ks("a"),Ps=ks("r"),js=ks("g"),Ss=ks("b");function Fs(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=qo(e.value)/qo(n);return Rl(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=qo(i)%qo(r)),{type:Yl,value:i}}const Ns=36e5;function Is(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];let l=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,o.map((t=>t.value))),s=typeof l;if(s!==t)throw"object"===s&&(s=Array.isArray(l)?"array":null===l?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(s,'".'));if("number"===t&&"integer"===e){if(l!==Math.round(l))throw new Error("Cannot convert value to integer.");Rl(n,l)}return"string"===t&&"color"===e&&(l=ql(l)),{type:e,value:l}}}function Os(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=ql(n)),{type:e,value:n}}}}const Ts=Is("string","string"),Ms=Is("number","number"),zs=Is("number","integer"),Js=Is("boolean","boolean"),Bs=Is("string","color"),Rs=Is("string","url"),Ls=Os(Ts,"string"),Us=Os(Ms,"number"),Ws=Os(zs,"integer"),Hs=Os(Js,"boolean"),qs=Os(Bs,"color"),Gs=Os(Rs,"url");function Ks(t,e){return(n,r,i)=>{if(i.value<0||i.value>=r.value.length)throw new Error("Requested index (".concat(i.value,") out of bounds array size (").concat(r.value.length,")."));let o=r.value[Number(i.value)],a=typeof o;if("array"===t&&!Array.isArray(o)||"array"!==t&&a!==t||"obejct"===a&&null===o)throw"object"===a&&(a=Array.isArray(o)?"array":null===o?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){if(o!==Math.round(o))throw new Error("Cannot convert value to integer.");Rl(n,o)}return"string"===t&&"color"===e&&(o=ql(o)),{type:e,value:o}}}function Xs(t,e){return(n,r,i,o)=>{try{return t(n,r,i)}catch(t){let n=o.value;return"color"===e&&(n=ql(n)),{type:e,value:n}}}}const Ys=Ks("string","string"),Zs=Ks("number","number"),Qs=Ks("number","integer"),tc=Ks("boolean","boolean"),ec=Ks("string","color"),nc=Ks("string","url"),rc=Ks("array","array"),ic=Ks("object","dict"),oc=Xs(Ys,"string"),ac=Xs(Zs,"number"),lc=Xs(Qs,"integer"),sc=Xs(tc,"boolean"),cc=Xs(ec,"color"),uc=Xs(nc,"url");function dc(t){return t.map(zl).join(", ")}Fl("toString",[Yl],os),Fl("toString",[Zl],os),Fl("toString",[Ql],os),Fl("toString",[ts],os),Fl("toString",[es],os),Fl("toNumber",[Yl],as),Fl("toNumber",[Xl],as),Fl("toInteger",[Zl],(function(t,e){if(e.value>Wo||e.value<Ho)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Yl,value:qo(n)}})),Fl("toInteger",[Xl],(function(t,e){let n;try{n=qo(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>Wo||n<Ho)throw new Error("Unable to convert value to Integer.");return{type:Yl,value:n}})),Fl("toInteger",[Ql],(function(t,e){return{type:Yl,value:qo(e.value?1:0)}})),Fl("toBoolean",[Yl],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Ql,value:n}})),Fl("toBoolean",[Xl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Ql,value:"true"===e.value?1:0}})),Fl("toColor",[Xl],(function(t,e){return{type:ts,value:ql(e.value)}})),Fl("toUrl",[Xl],(function(t,e){return{type:es,value:e.value}})),Fl("encodeUri",[Xl],(function(t,e){try{return{type:Xl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Fl("decodeUri",[Xl],(function(t,e){try{return{type:Xl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Fl("getIntegerValue",[Xl,Yl],ss),Fl("getNumberValue",[Xl,Zl],ss),Fl("getBooleanValue",[Xl,Ql],ss),Fl("getStringValue",[Xl,Xl],ss),Fl("getColorValue",[Xl,ts],cs),Fl("getColorValue",[Xl,Xl],cs),Fl("getUrlValue",[Xl,es],us),Fl("getUrlValue",[Xl,Xl],us),Fl("parseUnixTime",[Yl],(function(t,e){return{type:ns,value:new Date(1e3*Number(e.value))}})),Fl("nowLocal",[],(function(){return{type:ns,value:new Date}})),Fl("addMillis",[ns,Yl],(function(t,e,n){return{type:ns,value:new Date(e.value.getTime()+Number(n.value))}})),Fl("setYear",[ns,Yl],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:ns,value:r}})),Fl("setMonth",[ns,Yl],(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 i=new Date(e.value);return i.setUTCMonth(r-1),{type:ns,value:i}})),Fl("setDay",[ns,Yl],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>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(i," for date ").concat(Ml(e),"."));return r.setUTCDate(-1===i?0:i),{type:ns,value:r}})),Fl("setHours",[ns,Yl],(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 i=new Date(e.value);return i.setUTCHours(r),{type:ns,value:i}})),Fl("setMinutes",[ns,Yl],(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 i=new Date(e.value);return i.setUTCMinutes(r),{type:ns,value:i}})),Fl("setSeconds",[ns,Yl],(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 i=new Date(e.value);return i.setUTCSeconds(r),{type:ns,value:i}})),Fl("setMillis",[ns,Yl],(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 i=new Date(e.value);return i.setUTCMilliseconds(r),{type:ns,value:i}})),Fl("getYear",[ns],hs),Fl("getMonth",[ns],ps),Fl("getDay",[ns],fs),Fl("getDayOfWeek",[ns],gs),Fl("getHours",[ns],ms),Fl("getMinutes",[ns],vs),Fl("getSeconds",[ns],ys),Fl("getMillis",[ns],$s),Fl("getIntervalSeconds",[Yl],(function(t,e){return Fs(t,e,1e3,60)})),Fl("getIntervalTotalSeconds",[Yl],(function(t,e){return Fs(t,e,1e3)})),Fl("getIntervalMinutes",[Yl],(function(t,e){return Fs(t,e,6e4,60)})),Fl("getIntervalTotalMinutes",[Yl],(function(t,e){return Fs(t,e,6e4)})),Fl("getIntervalHours",[Yl],(function(t,e){return Fs(t,e,Ns,24)})),Fl("getIntervalTotalHours",[Yl],(function(t,e){return Fs(t,e,Ns)})),Fl("getIntervalTotalDays",[Yl],(function(t,e){return Fs(t,e,864e5)})),Fl("getIntervalTotalWeeks",[Yl],(function(t,e){return Fs(t,e,6048e5)})),Fl("len",[Xl],(function(t,e){return{type:Yl,value:qo(e.value.length)}})),Fl("contains",[Xl,Xl],(function(t,e,n){return{type:Ql,value:e.value.includes(n.value)?1:0}})),Fl("substring",[Xl,Yl,Yl],(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:Xl,value:e.value.substring(Number(n.value),Number(r.value))}})),Fl("replaceAll",[Xl,Xl,Xl],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:Xl,value:i}})),Fl("index",[Xl,Xl],(function(t,e,n){return{type:Yl,value:qo(e.value.indexOf(n.value))}})),Fl("lastIndex",[Xl,Xl],(function(t,e,n){return{type:Yl,value:qo(e.value.lastIndexOf(n.value))}})),Fl("trim",[Xl],(function(t,e){return{type:Xl,value:e.value.trim()}})),Fl("trimLeft",[Xl],(function(t,e){return{type:Xl,value:e.value.replace(/^\s+/,"")}})),Fl("trimRight",[Xl],(function(t,e){return{type:Xl,value:e.value.replace(/\s+$/,"")}})),Fl("toUpperCase",[Xl],(function(t,e){return{type:Xl,value:e.value.toUpperCase()}})),Fl("toLowerCase",[Xl],(function(t,e){return{type:Xl,value:e.value.toLowerCase()}})),Fl("padStart",[Xl,Yl,Xl],bs),Fl("padStart",[Yl,Yl,Xl],bs),Fl("padEnd",[Xl,Yl,Xl],ws),Fl("padEnd",[Yl,Yl,Xl],ws),Fl("testRegex",[Xl,Xl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Ql,value:r.test(e.value)?1:0}})),Fl("div",[Yl,Yl],(function(t,e,n){if(n.value===Go)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=Bl(0,r),Rl(t,r),{type:Yl,value:r}})),Fl("div",[Zl,Zl],(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:Zl,value:r}})),Fl("mod",[Yl,Yl],(function(t,e,n){if(n.value===Go)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=Bl(0,r),Rl(t,r),{type:Yl,value:r}})),Fl("mod",[Zl,Zl],(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:Zl,value:r}})),Fl("mul",[{type:Yl,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 i=n.length?n[0].value:Go;for(let e=1;e<n.length;++e)i*=n[e].value,i=Bl(0,i),Rl(t,i);return{type:Yl,value:i}})),Fl("mul",[{type:Zl,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:Zl,value:i}})),Fl("sub",[{type:Yl,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 i=n.length?n[0].value:Go;for(let e=1;e<n.length;++e)i-=n[e].value,i=Bl(0,i),Rl(t,i);return{type:Yl,value:i}})),Fl("sub",[{type:Zl,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:Zl,value:i}})),Fl("sum",[{type:Yl,isVararg:!0}],(function(t){let e=Go;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=Bl(0,e),Rl(t,e);return{type:Yl,value:e}})),Fl("sum",[{type:Zl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:Zl,value:e}})),Fl("abs",[Yl],(function(t,e){const n=Ko(e.value);return Rl(t,n),{type:e.type,value:n}})),Fl("abs",[Zl],(function(t,e){const n=Math.abs(e.value);return{type:Zl,value:n}})),Fl("max",[{type:Yl,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:Yl,value:i}})),Fl("max",[{type:Zl,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:Zl,value:Math.max(...n.map((t=>t.value)))}})),Fl("min",[{type:Yl,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:Yl,value:i}})),Fl("min",[{type:Zl,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:Zl,value:Math.min(...n.map((t=>t.value)))}})),Fl("maxNumber",[],(function(){return{type:Zl,value:Gl}})),Fl("minNumber",[],(function(){return{type:Zl,value:Kl}})),Fl("maxInteger",[],(function(t){return Rl(t,Wo),{type:Yl,value:Wo}})),Fl("minInteger",[],(function(t){return Rl(t,Ho),{type:Yl,value:Ho}})),Fl("round",[Zl],(function(t,e){const n=Math.sign(e.value);return{type:Zl,value:n*Math.round(Math.abs(e.value))}})),Fl("floor",[Zl],(function(t,e){return{type:Zl,value:Math.floor(e.value)}})),Fl("ceil",[Zl],(function(t,e){return{type:Zl,value:Math.ceil(e.value)}})),Fl("signum",[Yl],(function(t,e){return{type:Yl,value:Xo(e.value)}})),Fl("signum",[Zl],(function(t,e){return{type:Zl,value:Math.sign(e.value)}})),Fl("copySign",[Yl,Yl],(function(t,e,n){let r;if(n.value===Go)r=e.value;else if(e.value===Go)r=0;else{const t=Xo(n.value);r=Ko(e.value)*t}return Rl(t,r),{type:Yl,value:r}})),Fl("copySign",[Zl,Zl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:Zl,value:i}})),Fl("getColorAlpha",[Xl],Es),Fl("getColorAlpha",[ts],Es),Fl("getColorRed",[Xl],As),Fl("getColorRed",[ts],As),Fl("getColorGreen",[Xl],Cs),Fl("getColorGreen",[ts],Cs),Fl("getColorBlue",[Xl],Vs),Fl("getColorBlue",[ts],Vs),Fl("setColorAlpha",[Xl,Zl],Ds),Fl("setColorAlpha",[ts,Zl],Ds),Fl("setColorRed",[Xl,Zl],Ps),Fl("setColorRed",[ts,Zl],Ps),Fl("setColorGreen",[Xl,Zl],js),Fl("setColorGreen",[ts,Zl],js),Fl("setColorBlue",[Xl,Zl],Ss),Fl("setColorBlue",[ts,Zl],Ss),Fl("rgb",[Zl,Zl,Zl],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:ts,value:Hl(i)}})),Fl("argb",[Zl,Zl,Zl,Zl],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:ts,value:Hl(o)}})),Fl("getDictString",[rs,{type:Xl,isVararg:!0}],Ts),Fl("getStringFromDict",[rs,{type:Xl,isVararg:!0}],Ts),Fl("getDictNumber",[rs,{type:Xl,isVararg:!0}],Ms),Fl("getNumberFromDict",[rs,{type:Xl,isVararg:!0}],Ms),Fl("getDictInteger",[rs,{type:Xl,isVararg:!0}],zs),Fl("getIntegerFromDict",[rs,{type:Xl,isVararg:!0}],zs),Fl("getDictBoolean",[rs,{type:Xl,isVararg:!0}],Js),Fl("getBooleanFromDict",[rs,{type:Xl,isVararg:!0}],Js),Fl("getDictColor",[rs,{type:Xl,isVararg:!0}],Bs),Fl("getColorFromDict",[rs,{type:Xl,isVararg:!0}],Bs),Fl("getDictUrl",[rs,{type:Xl,isVararg:!0}],Rs),Fl("getUrlFromDict",[rs,{type:Xl,isVararg:!0}],Rs),Fl("getDictOptString",[Xl,rs,{type:Xl,isVararg:!0}],Ls),Fl("getOptStringFromDict",[Xl,rs,{type:Xl,isVararg:!0}],Ls),Fl("getDictOptNumber",[Zl,rs,{type:Xl,isVararg:!0}],Us),Fl("getOptNumberFromDict",[Zl,rs,{type:Xl,isVararg:!0}],Us),Fl("getDictOptInteger",[Yl,rs,{type:Xl,isVararg:!0}],Ws),Fl("getOptIntegerFromDict",[Yl,rs,{type:Xl,isVararg:!0}],Ws),Fl("getDictOptBoolean",[Ql,rs,{type:Xl,isVararg:!0}],Hs),Fl("getOptBooleanFromDict",[Ql,rs,{type:Xl,isVararg:!0}],Hs),Fl("getDictOptColor",[ts,rs,{type:Xl,isVararg:!0}],qs),Fl("getOptColorFromDict",[ts,rs,{type:Xl,isVararg:!0}],qs),Fl("getDictOptColor",[Xl,rs,{type:Xl,isVararg:!0}],qs),Fl("getOptColorFromDict",[Xl,rs,{type:Xl,isVararg:!0}],qs),Fl("getDictOptUrl",[Xl,rs,{type:Xl,isVararg:!0}],Gs),Fl("getOptUrlFromDict",[Xl,rs,{type:Xl,isVararg:!0}],Gs),Fl("getDictOptUrl",[es,rs,{type:Xl,isVararg:!0}],Gs),Fl("getOptUrlFromDict",[es,rs,{type:Xl,isVararg:!0}],Gs),Fl("getArrayString",[is,Yl],Ys),Fl("getStringFromArray",[is,Yl],Ys),Fl("getArrayNumber",[is,Yl],Zs),Fl("getNumberFromArray",[is,Yl],Zs),Fl("getArrayInteger",[is,Yl],Qs),Fl("getIntegerFromArray",[is,Yl],Qs),Fl("getArrayBoolean",[is,Yl],tc),Fl("getBooleanFromArray",[is,Yl],tc),Fl("getArrayColor",[is,Yl],ec),Fl("getColorFromArray",[is,Yl],ec),Fl("getArrayUrl",[is,Yl],nc),Fl("getUrlFromArray",[is,Yl],nc),Fl("getArrayFromArray",[is,Yl],rc),Fl("getDictFromArray",[is,Yl],ic),Fl("getArrayOptString",[is,Yl,Xl],oc),Fl("getOptStringFromArray",[is,Yl,Xl],oc),Fl("getArrayOptNumber",[is,Yl,Zl],ac),Fl("getOptNumberFromArray",[is,Yl,Zl],ac),Fl("getArrayOptInteger",[is,Yl,Yl],lc),Fl("getOptIntegerFromArray",[is,Yl,Yl],lc),Fl("getArrayOptBoolean",[is,Yl,Ql],sc),Fl("getOptBooleanFromArray",[is,Yl,Ql],sc),Fl("getArrayOptColor",[is,Yl,ts],cc),Fl("getOptColorFromArray",[is,Yl,ts],cc),Fl("getArrayOptColor",[is,Yl,Xl],cc),Fl("getOptColorFromArray",[is,Yl,Xl],cc),Fl("getArrayOptUrl",[is,Yl,es],uc),Fl("getOptUrlFromArray",[is,Yl,es],uc),Fl("getArrayOptUrl",[is,Yl,Xl],uc),Fl("getOptUrlFromArray",[is,Yl,Xl],uc),Fl("getOptArrayFromArray",[is,Yl],(function(t,e,n){try{return rc(t,e,n)}catch(t){return{type:"array",value:[]}}})),Fl("getOptDictFromArray",[is,Yl],(function(t,e,n){try{return ic(t,e,n)}catch(t){return{type:"dict",value:{}}}}));const hc={StringLiteral:function(t,e){return{type:Xl,value:e.value}},NumberLiteral:function(t,e){return{type:Zl,value:e.value}},IntegerLiteral:function(t,e){return Rl(t,e.value),{type:Yl,value:e.value}},BooleanLiteral:function(t,e){return{type:Ql,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Ol(pc(t,e.argument));switch(e.operator){case"!":if(n.type===Ql)return{type:Ql,value:n.value?0:1};Ul("".concat(e.operator).concat(zl(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Yl){const e=n.value*qo(r);return Rl(t,e),{type:Yl,value:e}}if(n.type===Zl)return{type:Zl,value:n.value*r};Ul("".concat(e.operator).concat(zl(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Ol(pc(t,e.test));if(n.type===Ql)return n.value?pc(t,e.consequent):pc(t,e.alternate);Ul("".concat(zl(n)," ? ").concat(zl(pc(t,e.consequent))," : ").concat(zl(pc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return pc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ml(pc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Xl,value:n}},LogicalExpression:function(t,e){const n=Ol(pc(t,e.left));if(n.type!==Ql&&Ul("".concat(zl(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:Ql,value:0};const r=Ol(pc(t,e.right));return r.type!==Ql&&Ul("".concat(zl(n)," ").concat(e.operator," ").concat(zl(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Jl(r.type),".")),{type:Ql,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=pc(t,e.left),i=pc(t,e.right);if(r.type!==i.type&&Ul("".concat(zl(r)," ").concat(e.operator," ").concat(zl(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Jl(r.type)," and ").concat(Jl(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===ns&&n.type===ns?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Ql,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Zl&&e.type!==Yl&&e.type!==ns&&Ul("".concat(zl(e)," ").concat(t," ").concat(zl(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Jl(e.type)," type."));const i=e.type===ns?e.value.getTime():e.value,o=n.type===ns?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:Ql,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Xl&&n.type!==Zl&&n.type!==Yl&&Ul("".concat(zl(n)," ").concat(e," ").concat(zl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Jl(n.type)," type.")),n.type===Xl)return"-"===e&&Ul("".concat(zl(n)," - ").concat(zl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Jl(n.type)," type.")),{type:Xl,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===Yl)try{i=Bl(0,i),Rl(t,i)}catch(t){Ul("".concat(zl(n)," ").concat(e," ").concat(zl(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==Yl&&n.type!==Zl&&Ul("".concat(zl(n)," ").concat(e," ").concat(zl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Jl(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Ul("".concat(zl(n)," ").concat(e," ").concat(zl(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===Yl)try{i=Bl(0,i),Rl(t,i)}catch(t){Ul("".concat(zl(n)," ").concat(e," ").concat(zl(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>pc(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(Sl.has(o))r=Sl.get(o);else{const t=function(t,e){const n=jl.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Nl(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>Jl(t.type))).join(", "),r="".concat(n,"(").concat(dc(i),")");"few"===t.type&&0===i.length?Ul(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?Ul(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):Ul(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){Ul("".concat(n,"(").concat(dc(i),")"),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 pc(t,e){if(e.type in hc)return hc[e.type](t,e);throw new Error("Unsupported expression")}function fc(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(Il(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=pc(n,e);return n.safeIntegerOverflow&&n.warnings.push(fe(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 gc{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return Il(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=fc(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(fe(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Tl(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=we(String(i));if(t)return Hl(t);e(fe(new Error("Expression execution error")))}if("integer"===r.type)return i>2147483647||i<-2147483648?void e(fe(new Error("Expression result is out of 32-bit int range"))):Number(i);if("array"===r.type||"dict"===r.type)try{return JSON.stringify(i)}catch(t){return e(fe(new Error("Failed to stringify ".concat(r.type)))),"<".concat(r.type,">")}return i}catch(t){return void e(fe(new Error("Expression execution error")))}}}function mc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Pl(t,{startRule:"JsonStringContents"}),r=Ll(n);return e.vars.push(...r),new gc(n)}catch(e){return void n(fe(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>mc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=mc(t[i],e,n);return r}}var r;return t}function vc(t,e,n){if(t){if(t instanceof gc)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>vc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=vc(t[i],e,n);return r}}return t}function yc(t,e){const n={vars:[],hasExpression:!1},r=mc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>vc(r,t,e)}}const $c={pagers:function(){return ue(new Map)}},_c=new Map,bc=new Map;function wc(t){const e=_c.get(t)||ue("");return _c.has(t)||_c.set(t,e),e}function xc(t){const e=bc.get(t)||new Map;return bc.has(t)||bc.set(t,e),e}class kc{setVariable(t){const e=t.getName(),n=xc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),wc(this).set(e)}getVariable(t){return xc(this).get(t)}}function Ec(){return new kc}function Ac(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 Cc=new Set(["start","stop","pause","resume","cancel","reset"]);class Vc{constructor(t){Ac(this,"timers",new Map),Ac(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(fe(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(fe(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Cc.has(e)))return void this.logError(fe(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((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&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(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(fe(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(fe(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(fe(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(fe(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(fe(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(fe(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(fe(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(fe(new Error("The timer is already running"))):this.logError(fe(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))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!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 Dc(t,e,n,r){const{variable_name:i}=n;if(!i)return void e(fe(new Error("Incorrect ".concat(n.type," action")),{additional:{name:i}}));const o=t.get(i);if(!o)return void e(fe(new Error("Cannot find variable"),{additional:{name:i}}));const a=o.getType();"array"===a?r(o):e(fe(new Error("Trying to insert value into the non-array"),{additional:{name:i,type:a}}))}function Pc(t){let e,n,r,i,o,a,l,s;return n=new $l({props:{svgFiltersMap:t[3]}}),i=new cl({props:{div:t[4],templateContext:t[7],layoutParams:{tooltips:t[2]}}}),{c(){e=J("div"),ne(n.$$.fragment),r=L(),ne(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);re(n.$$.fragment,o),r=it(o),re(i.$$.fragment,o),o.forEach(M),this.h()},h(){H(e,"class",o=""+(he.root+(t[5]?" ".concat(he.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){T(t,e,o),ie(n,e,null),I(e,r),ie(i,e,null),a=!0,l||(s=W(e,"touchstart",Oc,{passive:!0}),l=!0)},p(t,r){const l={};8&r[0]&&(l.svgFiltersMap=t[3]),n.$set(l);const s={};16&r[0]&&(s.div=t[4]),4&r[0]&&(s.layoutParams={tooltips:t[2]}),i.$set(s),(!a||33&r[0]&&o!==(o=""+(he.root+(t[5]?" ".concat(he.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&H(e,"class",o)},i(t){a||(Ut(n.$$.fragment,t),Ut(i.$$.fragment,t),a=!0)},o(t){Wt(n.$$.fragment,t),Wt(i.$$.fragment,t),a=!1},d(t){t&&M(e),oe(n),oe(i),l=!1,s()}}}function jc(t){let e,n,r=!t[1]&&t[4]&&Pc(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),18&n[0]&&Ut(r,1)):(r=Pc(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let Sc=ue(!0),Fc=0;function Nc(){Sc.set(!1)}function Ic(){Sc.set(!0)}function Oc(){}function Tc(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new kc}=e,{mix:f=""}=e,{customization:g={}}=e,{builtinProtocols:m=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,{typefaceProvider:w=(t=>"")}=e,{fetchInit:x={}}=e,{tooltipRoot:k}=e,{customComponents:E}=e,A=ue("desktop"===u);if(p(t,A,(t=>n(5,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");A.set(!t.matches),t.addListener((()=>{A.set(!t.matches)}))}let C="light",V=null;function D(){"system"===d&&V&&n(27,C=V.matches?"dark":"light")}const P=new Set(m);let j=!1;c||(j=!0,U(fe(new Error('"json" prop is required')))),s||(j=!0,U(fe(new Error('"id" prop is required'))));let S=function(t){if(!t)return fe(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return fe(new Error("Missing card"));if(!e.states||!e.states.length)return fe(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in ol)return fe(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return fe(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return fe(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const F=c.templates||{};S&&(j=!0,U(S));const N={stateChange:!1},I=wc(h),O=xc(h),T=new Map,M=new Map,z=new Map;let J=null,B=0,R=[];function L(t){const e=yc(t,U);return e.hasExpression?e.applyVars(M):t}function U(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function W(t,e){$&&$({type:t,action:e})}let H=0;function q(t){return"".concat(s,"-").concat(H++)}let G={},K={};function X(t){const e=t.url?String(t.url):"",r=t.typed;if(e)try{const r=e.replace(/div-action:\/\//,""),i=/([^?]+)\?(.+)/.exec(r);if(!i)return;const o=new URLSearchParams(i[2]);switch(i[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=ot,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],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(o.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=nt(t);n&&n.setCurrentItem(Number(e))}(o.get("id"),o.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=nt(t);n&&n.setPreviousItem(e)}(o.get("id"),o.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=nt(t);n&&n.setNextItem(e)}(o.get("id"),o.get("overflow"));break;case"set_variable":const i=o.get("name"),a=o.get("value");if(i&&null!==a){const t=M.get(i);if(t){const e=t.getType();"dict"===e||"array"===e?U(fe(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:i}})):t.set(a)}else U(fe(new Error("Cannot find variable"),{additional:{name:i}}))}else U(fe(new Error("Incorrect set_variable_action"),{additional:{url:r}}));break;case"timer":const l=o.get("action"),s=o.get("id");J?J.execTimerAction(s,l):U(fe(new Error("Incorrect timer action"),{additional:{id:s,action:l}}));break;case"video":!function(t,e){if(t){const n=nt(t);n?"start"===e?n.start():"pause"===e?n.pause():U(fe(new Error("Unknown video action"),{additional:{id:t,action:e}})):U(fe(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else U(fe(new Error("Missing id in video action"),{additional:{action:e}}))}(o.get("id"),o.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof x?x(t):x,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var r,i,o;if(n){if(n.templates)for(const t in n.templates)F.hasOwnProperty(t)||(F[t]=n.templates[t]);if(Array.isArray(null===(r=n.patch)||void 0===r?void 0:r.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>!tt.has(t.id)));if(r)return U(fe(new Error("Skipping transactional, child is not found"),{additional:{url:t,id:r.id}})),void Y(null===(i=e.download_callbacks)||void 0===i?void 0:i.on_fail_actions)}n.patch.changes.forEach((t=>{const e=tt.get(t.id);e&&e.replaceWith(t.id,t.items)})),Y(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_success_actions)}}else U(fe(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;U(fe(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Y(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else U(fe(new Error("Missing url in download action"),{additional:{url:t}}))}(o.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void U(fe(new Error("Missing id in show_tooltip action")));const i=et.get(t);if(!i)return void U(fe(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&R.some((e=>e.desc.id===t)))return;const o={internalId:++B,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(2,R=[...R,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(2,R=R.filter((t=>t.internalId!==o.internalId)))}),a))}(o.get("id"),o.get("multiple"));break;case"hide_tooltip":!function(t){t?n(2,R=R.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):U(fe(new Error("Missing id in hide_tooltip action")))}(o.get("id"));break;default:U(fe(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){U(fe(t,{additional:{url:e}}))}else if(r)switch(r.type){case"set_variable":{const{variable_name:t,value:e}=r;if(t&&e){const n=M.get(t);n?n.getType()===e.type?n.setValue(e.value):U(fe(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):U(fe(new Error("Cannot find variable"),{additional:{name:t}}))}else U(fe(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:i,value:o}=n;!o||"number"!=typeof i&&void 0!==i?e(fe(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Dc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof i&&(i<0||i>a.length))e(fe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:a.length}}));else{const e=a.slice();"number"==typeof i?e.splice(i,0,o.value):e.push(o.value),t.setValue(e)}}))}(M,U,r);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:i}=n;"number"==typeof i?Dc(t,e,n,(t=>{const o=t.getValue();if("number"==typeof i&&(i<0||i>=o.length))e(fe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:o.length}}));else{const e=o.slice();e.splice(i,1),t.setValue(e)}})):e(fe(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(M,U,r);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(fe(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(fe(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(fe(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(U,r);break;default:U(fe(new Error("Unknown type of action"),{additional:{type:r.type}}))}}async function Y(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url,o=r.typed;if(i){const t=Pe(i);if(t)if(je(t,P)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(X(r),await jt()):r.log_id&&(Z(r),await jt())}else o&&X(r)}t.forEach((t=>{t.log_id&&W("click",t)}))}}function Z(t){null==_||_(t)}const Q=new Map,tt=new Map,et=new Map;function nt(t){if(Q.has(t))return Q.get(t);U(fe(new Error("Missing instance with id"),{additional:{id:t}}))}const rt=new Map;function it(t){for(const e of t)M.has(e)&&t.delete(e);return t}bt(pe,{logError:U,logStat:W,hasTemplate:function(t){return t in F},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in F;){if(({json:t,templateContext:e}=_l(t,e,F,U)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:q,genClass:function(t){return"divkit-".concat(q())},execAction:X,execAnyActions:Y,execCustomAction:Z,isRunning:function(t){return N[t]},setRunning:function(t,e){N[t]=e},registerInstance:function(t,e){Q.has(t)?U(fe(new Error("Duplicate instance id"),{additional:{id:t}})):Q.set(t,e)},unregisterInstance:function(t){Q.delete(t)},registerParentOf:function(t,e){tt.set(t,e)},unregisterParentOf:function(t){tt.delete(t)},registerTooltip:function(t,e){et.has(e.id)&&U(fe(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),et.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){et.delete(t.id),R.some((e=>e.desc.id===t.id))&&n(2,R=R.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(2,R=R.filter((e=>e.internalId!==t)))},tooltipRoot:k,addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(K[r]=K[r]||0,++K[r],G[r])return G[r];const i="".concat(q(),"-svg-filter");return n(3,G=Object.assign(Object.assign({},G),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);K[r]&&0==--K[r]&&n(3,G=Object.keys(G).reduce(((t,e)=>(K[e]&&(t[e]=G[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return wl(t);const e=yc(t,U);return e.vars.length?de(e.vars.map((t=>M.get(t)||function(t){const e=z.get(t)||ue(void 0);return z.has(t)||z.set(t,e),e}(t))).filter(ke),(()=>e.applyVars(M))):e.hasExpression?wl(e.applyVars(M)):wl(t)},getJsonWithVars:L,getStore:function(t){return rt.has(t)||function(t){rt.has(t)||rt.set(t,$c[t]())}(t),rt.get(t)},getVariable:function(t,e){const n=M.get(t);if(n){const r=n.getType();if(r!==e)return void U(fe(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==g?void 0:g[t]},getBuiltinProtocols:function(){return P},getExtension:function(t,e){const n=v.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:M,logError:U}},typefaceProvider:w,isDesktop:A,isPointerFocus:Sc,customComponents:E,registerComponent:void 0,unregisterComponent:void 0}),bt(Qe,{hasAction:()=>!1});const ot={setState(t){throw new Error("Not implemented")},getChild(t){if(at&&at.has(t))return at.get(t);U(fe(new Error("Missing state block with id"),{additional:{id:t}}))}};let at=null;bt(Me,{registerInstance(t,e){at||(at=new Map),at.has(t)?U(fe(new Error("Duplicate state with id"),{additional:{id:t}})):at.set(t,e)},unregisterInstance(t){null==at||at.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>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 lt=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(lt)&&lt.forEach((t=>{if(t&&t.type in Zo&&t.name){if(T.has(t.name))return void U(fe(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&U(fe(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Qo(t.name,t.type,t.value);T.set(t.name,e),M.set(t.name,e)}catch(e){U(fe(e,{additional:{name:t.name}}))}}}));const st=c.palette;st&&st[C].forEach((t=>{if(T.has(t.name))U(fe(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Qo(t.name,"color",t.color);T.set(t.name,e),M.set(t.name,e)}catch(e){U(fe(e,{additional:{name:t.name}}))}}));for(const[t,e]of O)M.has(t)||M.set(t,e);I.subscribe((t=>{if(t&&!M.has(t)){const e=O.get(t);M.set(t,e);const n=z.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const ct=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(ct)&&ct.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void U(fe(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=Pl(t.condition,{startRule:"JsonStringContents"}),i=Ll(r);if(!i.length)return void U(fe(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return it(e),e.size?new Promise((t=>{const n=I.subscribe((()=>{it(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{de(i.map((t=>M.get(t))).filter(ke),(()=>{const t=fc(M,r);return t.warnings.forEach(U),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=L(t);e.log_id&&X(e)})),e=Boolean(r.value)):U(fe(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){U(fe(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else U(fe(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const ut=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(ut){const t=J=new Vc({logError:U,applyVars:L,hasVariableWithType:function(t,e){const n=M.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=M.get(t);n?n.setValue(e):U(fe(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Y});ut.forEach((e=>t.createTimer(e)))}const dt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let ht;return dt&&!j&&(ht={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:dt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),$t((()=>{Fc++,1===Fc&&(window.addEventListener("keydown",Nc),window.addEventListener("pointerdown",Ic))})),_t((()=>{Fc--,Fc||(window.removeEventListener("keydown",Nc),window.removeEventListener("pointerdown",Ic)),J&&J.destroy(),R.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(9,s=t.id),"json"in t&&n(10,c=t.json),"platform"in t&&n(11,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(12,h=t.globalVariablesController),"mix"in t&&n(0,f=t.mix),"customization"in t&&n(13,g=t.customization),"builtinProtocols"in t&&n(14,m=t.builtinProtocols),"extensions"in t&&n(15,v=t.extensions),"onError"in t&&n(16,y=t.onError),"onStat"in t&&n(17,$=t.onStat),"onCustomAction"in t&&n(18,_=t.onCustomAction),"onComponent"in t&&n(19,b=t.onComponent),"typefaceProvider"in t&&n(20,w=t.typefaceProvider),"fetchInit"in t&&n(21,x=t.fetchInit),"tooltipRoot"in t&&n(22,k=t.tooltipRoot),"customComponents"in t&&n(23,E=t.customComponents)},t.$$.update=()=>{268435712&t.$$.dirty[0]&&("light"===d||"dark"===d?n(27,C=d):"system"===d?"undefined"!=typeof matchMedia?(V||(n(28,V=matchMedia("(prefers-color-scheme: dark)")),V.addListener(D)),n(27,C=V.matches?"dark":"light")):n(27,C="light"):U(fe(new Error("Unsupported theme")))),134217728&t.$$.dirty[0]&&C&&st&&st[C].forEach((t=>{const e=M.get(t.name);e&&e.setValue(t.color)}))},[f,j,R,G,ht,r,A,{},d,s,c,u,h,g,m,v,y,$,_,b,w,x,k,E,function(t){n(8,d=t)},function(){},function(t){X(L(t))},C,V]}const Mc=class extends se{constructor(t){super(),ae(this,t,Tc,jc,d,{id:9,json:10,platform:11,theme:8,globalVariablesController:12,mix:0,customization:13,builtinProtocols:14,extensions:15,onError:16,onStat:17,onCustomAction:18,onComponent:19,typefaceProvider:20,fetchInit:21,tooltipRoot:22,customComponents:23,setTheme:24,getDebugVariables:25,execAction:26},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[24]}get getDebugVariables(){return this.$$.ctx[25]}get execAction(){return this.$$.ctx[26]}};class zc{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 jt()}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 Jc(t){return t instanceof HTMLElement}function Bc(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Jc);r.forEach((t=>{t.style.display="none"})),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),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}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)}}}const Rc=["target","hydrate"];function Lc(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Rc);return new Mc({target:e,props:r,hydrate:n})}var Uc=exports;for(var Wc in e)Uc[Wc]=e[Wc];e.__esModule&&Object.defineProperty(Uc,"__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:()=>zc,createGlobalVariablesController:()=>Ec,createVariable:()=>Qo,lottieExtensionBuilder:()=>Bc,render:()=>Lc});const r=t=>t;function i(t,e){for(const n in e)t[n]=e[n];return t}function o(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(o)}function l(t){return"function"==typeof t}let c;function u(t,e){return t===e||(c||(c=document.createElement("a")),c.href=e,t===c.href)}function d(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),i=1;i<e;i++)r[i-1]=arguments[i];if(null==t){for(const t of r)t(void 0);return n}const o=t.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const i=g(t,e,n,r);return t[0](i)}}function g(t,e,n,r){return t[1]&&r?i(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function v(t,e,n,r,i,o){if(i){const a=g(e,n,r,o);t.p(a,i)}}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 b(t){return t&&l(t.destroy)?t.destroy:n}const _="undefined"!=typeof window;let w=_?()=>window.performance.now():()=>Date.now(),x=_?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 A(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 C="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function V(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 D{constructor(t){V(this,"_listeners","WeakMap"in C?new WeakMap:void 0),V(this,"_observer",void 0),V(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;D.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function P(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}D.entries="WeakMap"in C?new WeakMap:void 0;let j=!1;function F(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}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 I(t){const e=J("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 N(t,e){if(j){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 i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:F(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,i=Math.max(s,i)}const o=[],a=[];let s=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[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){j&&!n?N(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 J(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function L(){return R(" ")}function U(){return R("")}function W(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const q=["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===q.indexOf(r)?t[r]=e[r]:H(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:H(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 i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}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 i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function et(t,e,n){return tt(t,e,n,J)}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}),(()=>R(e)),!0)}function it(t){return rt(t," ")}function ot(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,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function lt(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 ct{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];P(this,"is_svg",!1),P(this,"e",void 0),P(this,"n",void 0),P(this,"t",void 0),P(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=J(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 ct{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),P(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 dt(t,e){return new t(e)}const ht=new Map;let pt,ft=0;function gt(t,e,n,r,i,o,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)*o(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const u=c+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u),"_").concat(s),h=S(t),{stylesheet:p,rules:f}=ht.get(h)||function(t,e){const n={stylesheet:I(e),rules:{}};return ht.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule("@keyframes ".concat(d," ").concat(u),p.cssRules.length));const g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(d," ").concat(r,"ms linear ").concat(i,"ms 1 both"),ft+=1,d}function mt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),ft-=i,ft||x((()=>{ft||(ht.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),ht.clear())})))}function vt(t){pt=t}function yt(){if(!pt)throw new Error("Function called outside component initialization");return pt}function $t(t){yt().$$.on_mount.push(t)}function bt(t){yt().$$.on_destroy.push(t)}function _t(t,e){return yt().$$.context.set(t,e),e}function wt(t){return yt().$$.context.get(t)}function xt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const kt=[],Et=[];let At=[];const Ct=[],Vt=Promise.resolve();let Dt=!1;function Pt(){Dt||(Dt=!0,Vt.then(Ot))}function jt(){return Pt(),Vt}function Ft(t){At.push(t)}const St=new Set;let It,Nt=0;function Ot(){if(0!==Nt)return;const t=pt;do{try{for(;Nt<kt.length;){const t=kt[Nt];Nt++,vt(t),Tt(t.$$)}}catch(t){throw kt.length=0,Nt=0,t}for(vt(null),kt.length=0,Nt=0;Et.length;)Et.pop()();for(let t=0;t<At.length;t+=1){const e=At[t];St.has(e)||(St.add(e),e())}At.length=0}while(kt.length);for(;Ct.length;)Ct.pop()();Dt=!1,St.clear(),vt(t)}function Tt(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(Ft)}}function Mt(){return It||(It=Promise.resolve(),It.then((()=>{It=null}))),It}function zt(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 Jt=new Set;let Bt;function Rt(){Bt={r:0,c:[],p:Bt}}function Lt(){Bt.r||s(Bt.c),Bt=Bt.p}function Ut(t,e){t&&t.i&&(Jt.delete(t),t.i(e))}function Wt(t,e,n,r){if(t&&t.o){if(Jt.has(t))return;Jt.add(t),Bt.c.push((()=>{Jt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Ht={duration:0};function qt(t,e,i){const o={direction:"in"};let a,s,c=e(t,i,o),u=!1,d=0;function h(){a&&mt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||Ht;p&&(a=gt(t,0,1,i,e,o,p,d++)),l(0,1);const f=w()+e,g=f+i;s&&s.abort(),u=!0,Ft((()=>zt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),zt(t,!0,"end"),h(),u=!1;if(e>=f){const t=o((e-f)/i);l(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,mt(t),l(c)?(c=c(o),Mt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Gt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Kt(t,e){Wt(t,1,1,(()=>{e.delete(t.key)}))}function Xt(t,e,n,r,i,o,a,l,c,u,d,h){let p=t.length,f=o.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=f;g--;){const t=h(i,o,g),s=n(t);let l=a.get(s);l?r&&b.push((()=>l.p(t,e))):(l=u(s,t),l.c()),y.set(s,v[g]=l),s in m&&$.set(s,Math.abs(g-m[s]))}const _=new Set,w=new Set;function x(t){Ut(t,1),t.m(l,d),a.set(t.key,t),d=t.first,f--}for(;p&&f;){const e=v[f-1],n=t[p-1],r=e.key,i=n.key;e===n?(d=e.first,p--,f--):y.has(i)?!a.has(r)||_.has(r)?x(e):w.has(i)?p--:$.get(r)>$.get(i)?(w.add(r),x(e)):(_.add(i),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(b),v}function Yt(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],s=e[o];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[o]=s}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Zt;function Qt(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 te(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qt(Object(n),!0).forEach((function(e){ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ee(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 ne(t){t&&t.c()}function re(t,e){t&&t.l(e)}function ie(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),Ft((()=>{const e=t.$$.on_mount.map(o).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),i.forEach(Ft)}function oe(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];At.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),At=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ae(t,e,r,i,o,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=pt;vt(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:o,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:u,skip_bound:!1,root:e.target||d.$$.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&&o(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]&&(kt.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=!!i&&i(h.ctx),e.target){if(e.hydrate){j=!0;const t=Y(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&Ut(t.$$.fragment),ie(t,e.target,e.anchor),j=!1,Ot()}vt(d)}function se(t,e,n,r){var i;const o=null===(i=n[t])||void 0===i?void 0:i.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(o){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(o){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&&(Zt=class extends HTMLElement{constructor(t,e,n){super(),ee(this,"$$ctor",void 0),ee(this,"$$s",void 0),ee(this,"$$c",void 0),ee(this,"$$cn",!1),ee(this,"$$d",{}),ee(this,"$$r",!1),ee(this,"$$p_d",{}),ee(this,"$$l",{}),ee(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=J("slot"),"default"!==t&&H(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 i of this.$$s)i in n&&(e[i]=[t(i)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=se(a,o.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:te(te({},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=se(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]=se(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 le{constructor(){ee(this,"$$",void 0),ee(this,"$$set",void 0)}$destroy(){oe(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 ce=[];function ue(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const i=new Set;function o(n){if(o=n,((r=t)!=r?o==o:r!==o||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ce.length;for(const e of i)e[1](),ce.push(e,t);if(e){for(let t=0;t<ce.length;t+=2)ce[t][0](ce[t+1]);ce.length=0}}var r,o}function a(e){o(e(t))}return{set:o,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return i.add(l),1===i.size&&(e=r(o,a)||n),s(t),()=>{i.delete(l),0===i.size&&e&&(e(),e=null)}}}}function de(t,e,r){const i=!Array.isArray(t),o=i?[t]:t;if(!o.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 u=[];let d=0,p=n;const f=()=>{if(d)return;p();const o=e(i?u[0]:u,t,r);a?t(o):p=l(o)?o:n},g=o.map(((t,e)=>h(t,(t=>{u[e]=t,d&=~(1<<e),c&&f()}),(()=>{d|=1<<e}))));return c=!0,f(),function(){s(g),p(),c=!1}},{subscribe:ue(r,c).subscribe};var c}const he={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"},pe=Symbol("root");function fe(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 ge={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",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"},me={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 ve(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 ye(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function $e(t){let e=ye(t);return"0"===e&&(e+="em"),e}function be(t,e){for(;t.length<e;)t="0"+t;return t}function _e(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=we(t);return r?(r.a*=e,function(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>be(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 we(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,i,o]=e,a=2===r.length?r:r+r,s=2===i.length?i:i+i,l=2===o.length?o:o+o,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,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function xe(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 ke=Boolean;function Ee(t){if(1===t.length&&"solid"===t[0].type)return{color:_e(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=_e(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(ke);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>_e(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:Ve(t.bg.scale),pos:De(t.bg),image:'url("'+xe(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(ke);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=$e(r.value):"relative"===r.type&&(i=Ae[r.value]));const o=Ce(t.bg.center_x),a=Ce(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>_e(t))).join(",")+")"}}({bg:t}):void 0)).filter(ke).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 Ae={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ce(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return $e(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Ve(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function De(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 je(t,e){return e.has(t)}function Fe(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 Se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fe(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ie(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 Ne(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Oe(t,e){e&&t.push(e)}function Te(t,e,n){const r=[];Oe(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Oe(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Me=Symbol("state");function ze(t){const e=t.top||0,n=t.right||0,r=t.bottom||0,i=t.left||0;return 0===e&&0===n&&0===r&&0===i?"":ye(e)+" "+ye(n)+" "+ye(r)+" "+ye(i)}function Je(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Be(t){return Je(t)&&t>=0}function Re(t,e){if(!t)return e;const n=[t.top,t.right,t.bottom,t.left];for(let t=0;t<n.length;++t)if(n[t]&&!Be(n[t]))return e;return ze(t)}function Le(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ue=Object.prototype.hasOwnProperty;function We(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 i=n[r];if(!Ue.call(e,i)||!We(t[i],e[i]))return!1}return!0}function He(t,e){return We(t,e)?e:t}function qe(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 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]]&&!Be(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=>ye((t||e)/n*10))).join(" ")}function Ze(){}const Qe=Symbol("action");function tn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function en(t){var e;let n,r,o,a,l,c,u,d;const h=t[17].default,p=f(h,t,t[16],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?he.root__clickable:he["root__clickable-no-transition"]," ").concat(he.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?he["root_disabled-context-menu"]:"")},{style:t[2]},{role:o=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=i($,g[t]);return{c(){n=J("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[25](n),c=!0,u||(d=[b(l=t[4].call(null,n)),W(n,"click",t[21]),W(n,"keydown",t[10]),W(n,"focus",t[22]),W(n,"blur",t[23])],u=!0)},p(t,e){var i;p&&p.p&&(!c||65536&e[0])&&v(p,h,t,t[16],c?m(h,t[16],e,null):y(t[16]),null),G(n,$=Yt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?he.root__clickable:he["root__clickable-no-transition"]," ").concat(he.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?he["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&o!==(o=t[8]?"button":null))&&{role:o},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Ut(p,t),c=!0)},o(t){Wt(p,t),c=!1},d(e){e&&M(n),p&&p.d(e),t[25](null),u=!1,s(d)}}}function nn(t){var e;let n,r,o,a,l,c;const u=t[17].default,d=f(u,t,t[16],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?he.root__clickable:he["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?he["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=i(p,h[t]);return{c(){n=J("a"),d&&d.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=Y(n);d&&d.l(e),e.forEach(M),this.h()},h(){G(n,p)},m(e,r){T(e,n,r),d&&d.m(n,null),t[24](n),a=!0,l||(c=[b(o=t[4].call(null,n)),W(n,"click",t[18]),W(n,"keydown",t[10]),W(n,"focus",t[19]),W(n,"blur",t[20])],l=!0)},p(t,e){var i;d&&d.p&&(!a||65536&e[0])&&v(d,u,t,t[16],a?m(u,t[16],e,null):y(t[16]),null),G(n,p=Yt(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]?he.root__clickable:he["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?he["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Ut(d,t),a=!0)},o(t){Wt(d,t),a=!1},d(e){e&&M(n),d&&d.d(e),t[24](null),l=!1,s(c)}}}function rn(t){let e,n,r,i;const o=[nn,en],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=o[e](t),{c(){n.c(),r=U()},l(t){n.l(t),r=U()},m(t,n){a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?a[e].p(t,i):(Rt(),Wt(a[l],1,1,(()=>{a[l]=null})),Lt(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ut(n,1),n.m(r.parentNode,r))},i(t){i||(Ut(n),i=!0)},o(t){Wt(n),i=!1},d(t){t&&M(r),a[e].d(t)}}}function on(t,e,n){let{$$slots:r={},$$scope:i}=e,{id:o=""}=e,{actions:a}=e,{doubleTapActions:s}=e,{longTapActions:l}=e,{cls:c=""}=e,{style:u=null}=e,{attrs:d}=e,{use:h=Ze}=e,{customAction:p=null}=e,{isNativeActionAnimation:f=!0}=e,{hasInnerFocusable:g=!1}=e;const m=wt(pe),v=wt(Qe);let y;_t(Qe,{hasAction:()=>Boolean(v.hasAction()||(null==a?void 0:a.length))});let $,b="",_=-1,w=null,x=!1,k=!1;async function E(t){v.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==p?void 0:p(t))?t.preventDefault():a&&(a.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&&!je(n,m.getBuiltinProtocols())}))&&t.preventDefault(),m.execAnyActions(a)))}function A(t){v.hasAction()||void 0!==t.button&&0!==t.button||m.execAnyActions(s,!0)}function C(t){t.touches.length>1||(w=tn(t),x=!1,_=Date.now())}function V(t){if(!w)return;const e=tn(t);(Math.abs(w.x-e.x)>8||Math.abs(w.y-e.y)>8)&&(x=!0)}function D(){!w||_<0||(!x&&Date.now()-_>=400&&m.execAnyActions(l,!0),w=null,_=-1)}return $t((()=>{o&&!g&&m.registerFocusable(o,{focus(){y&&(b||k)&&y.focus()}})})),bt((()=>{o&&!g&&m.unregisterFocusable(o)})),t.$$set=t=>{"id"in t&&n(11,o=t.id),"actions"in t&&n(12,a=t.actions),"doubleTapActions"in t&&n(13,s=t.doubleTapActions),"longTapActions"in t&&n(0,l=t.longTapActions),"cls"in t&&n(1,c=t.cls),"style"in t&&n(2,u=t.style),"attrs"in t&&n(3,d=t.attrs),"use"in t&&n(4,h=t.use),"customAction"in t&&n(14,p=t.customAction),"isNativeActionAnimation"in t&&n(5,f=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(15,g=t.hasInnerFocusable),"$$scope"in t&&n(16,i=t.$$scope)},t.$$.update=()=>{if(20608&t.$$.dirty[0]){if(Array.isArray(a)&&(null==a?void 0:a.length))for(let t=0;t<a.length;++t){const e=a[t].url;if(e){n(7,b=e),n(9,$=a[t].target||void 0);break}}Array.isArray(a)&&(null==a?void 0:a.length)&&v.hasAction()&&(n(7,b=""),m.logError(fe(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),n(8,k=Boolean(p)),b&&!je(Pe(b),m.getBuiltinProtocols())?(n(7,b=""),n(8,k=!0)):!b&&Array.isArray(a)&&(null==a?void 0:a.length)&&(n(8,k=!0),a.some((t=>t.url||t.typed))||m.logError(fe(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:a}})))}8641&t.$$.dirty[0]&&y&&(b||k?y.addEventListener("click",E):y.removeEventListener("click",E),(null==s?void 0:s.length)?y.addEventListener("dblclick",A):y.removeEventListener("dblclick",A),(null==l?void 0:l.length)?(y.addEventListener("touchstart",C,{passive:!0}),y.addEventListener("touchmove",V,{passive:!0}),y.addEventListener("touchend",D,{passive:!0}),y.addEventListener("touchcancel",D,{passive:!0})):(y.removeEventListener("touchstart",C),y.removeEventListener("touchmove",V),y.removeEventListener("touchend",D),y.removeEventListener("touchcancel",D)))},[l,c,u,d,h,f,y,b,k,$,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(a)&&a.length&&(m.execAnyActions(a),t.preventDefault())},o,a,s,p,g,i,r,function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(e){xt.call(this,t,e)},function(t){Et[t?"unshift":"push"]((()=>{y=t,n(6,y)}))},function(t){Et[t?"unshift":"push"]((()=>{y=t,n(6,y)}))}]}const an=class extends le{constructor(t){super(),ae(this,t,on,rn,d,{id:11,actions:12,doubleTapActions:13,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:14,isNativeActionAnimation:5,hasInnerFocusable:15},null,[-1,-1])}},sn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function ln(t){return Je(t)&&t>0}function cn(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(ln(t.radius))return"blur(".concat($e(t.radius/2),")")}else e(fe(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function un(t,e,n){const r=t.slice();return r[5]=e[n],r}function dn(t){let e,n,r;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=sn["outer-background__item"]),H(e,"style",r=ve(t[5].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=ve(t[5].style))&&H(e,"style",r)},d(t){t&&M(e)}}}function hn(t){let e,n,r,i,o,a;return{c(){e=J("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(){u(e.src,n=t[5].image_url)||H(e,"src",n),H(e,"alt",""),H(e,"aria-hidden","true"),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"class",r=sn["outer-background__item"]),H(e,"style",i=ve(t[5].style))},m(n,r){T(n,e,r),o||(a=W(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&H(e,"src",n),2&r&&i!==(i=ve(t[5].style))&&H(e,"style",i)},d(t){t&&M(e),o=!1,a()}}}function pn(t){let e;function n(t,e){return t[5].image_url?hn:dn}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function fn(t){let e,r,i=Gt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=pn(un(t,i,e));return{c(){e=J("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=Y(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(M),this.h()},h(){H(e,"class",r=sn["outer-background"]+(t[0]?" "+sn["outer-background_clip"]:"")),st(e,"border-radius",t[0])},m(t,n){T(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(i=Gt(t[1]),n=0;n<i.length;n+=1){const r=un(t,i,n);o[n]?o[n].p(r,a):(o[n]=pn(r),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=i.length}1&a&&r!==(r=sn["outer-background"]+(t[0]?" "+sn["outer-background_clip"]:""))&&H(e,"class",r),1&a&&st(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(o,t)}}}function gn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=wt(pe);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.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=Ee([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=cn(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(sn["outer-background__item_hidden"])},i]}const mn=class extends le{constructor(t){super(),ae(this,t,gn,fn,d,{background:3,radius:0})}},vn=t=>({hasCustomFocus:256&t[0]}),yn=t=>({focusHandler:t[38],blurHandler:t[39],hasCustomFocus:t[8]});function $n(t){let e,n;return e=new an({props:{id:t[0].id,use:t[37],cls:t[1]+" "+Te("outer",me,t[19]),style:ve(t[17]),actions:t[13],doubleTapActions:t[14],longTapActions:t[15],attrs:t[9],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||kn(t[7]),$$slots:{default:[wn]},$$scope:{ctx:t}}}),e.$on("focus",t[38]),e.$on("blur",t[39]),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.id=t[0].id),524290&n[0]&&(r.cls=t[1]+" "+Te("outer",me,t[19])),131072&n[0]&&(r.style=ve(t[17])),8192&n[0]&&(r.actions=t[13]),16384&n[0]&&(r.doubleTapActions=t[14]),32768&n[0]&&(r.longTapActions=t[15]),512&n[0]&&(r.attrs=t[9]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||kn(t[7])),1400&n[0]|8388608&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function bn(t){let e,n;return e=new mn({props:{background:t[5],radius:t[4]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function _n(t){let e,n,r;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=me.outer__border),H(e,"style",r=ve(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=ve(t[3]))&&H(e,"style",r)},d(t){t&&M(e)}}}function wn(t){let e,n,r,i=t[6]&&bn(t);const o=t[115].default,a=f(o,t,t[116],yn);let s=t[10]&&_n(t);return{c(){i&&i.c(),e=U(),a&&a.c(),s&&s.c(),n=U()},l(t){i&&i.l(t),e=U(),a&&a.l(t),s&&s.l(t),n=U()},m(t,o){i&&i.m(t,o),T(t,e,o),a&&a.m(t,o),s&&s.m(t,o),T(t,n,o),r=!0},p(t,l){t[6]?i?(i.p(t,l),64&l[0]&&Ut(i,1)):(i=bn(t),i.c(),Ut(i,1),i.m(e.parentNode,e)):i&&(Rt(),Wt(i,1,1,(()=>{i=null})),Lt()),a&&a.p&&(!r||256&l[0]|8388608&l[3])&&v(a,o,t,t[116],r?m(o,t[116],l,vn):y(t[116]),yn),t[10]?s?s.p(t,l):(s=_n(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Ut(i),Ut(a,t),r=!0)},o(t){Wt(i),Wt(a,t),r=!1},d(t){t&&(M(e),M(n)),i&&i.d(t),a&&a.d(t),s&&s.d(t)}}}function xn(t){let e,n,r=!t[11]&&!t[12]&&$n(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[11]||t[12]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),6144&n[0]&&Ut(r,1)):(r=$n(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function kn(t){return t.some((t=>"native"===t.name))}function En(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,P,j,F,S,I,N,O,T,M,z,J,B,R,L,U,W,H,q,G,K,X=n,Y=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,it=n,ot=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n;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((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft()));let{$$slots:gt={},$$scope:mt}=e,{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:_t=""}=e,{style:xt}=e,{layoutParams:kt={}}=e,{customDescription:Et=!1}=e,{customPaddings:At=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:Vt=null}=e,{heightByAspect:Dt=!1}=e,{parentOf:Pt}=e,{replaceItems:Ft}=e,{hasInnerFocusable:St=!1}=e;const It={left:"start",center:"center",right:"end"},Nt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Ot=wt(pe),Tt=wt(Me);let Mt,zt,Jt=null,Bt=[];function Rt(t,e){if(!Array.isArray(Pt)||!Ft)return;const n=Pt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Pt.slice();i.splice(n,1,...e||[]),r(40,Pt=i),Ft(i)}let Lt,Ut,Wt,Ht,qt,Gt,Kt,Xt,Yt,Zt,Qt={},te={},ee=!1,ne=1,re="transparent",ie=0,oe={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ae="",se=null,le="",ce={},ue=0,de=0,he=0,ge=!1,me=!1,ve={},be=0,we=0,xe=0,Ae=!1,Ce=!1,Ve=1;const De=kt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],Fe=-1!==De.indexOf("state_change")&&vt.id,Ie=-1!==De.indexOf("visibility_change")&&vt.id;let Oe,Te,Je,Ue,We,Ze,Qe,tn=[],en=[],nn=[],rn=[],on=[],an=[],sn="";function ln(t){const e=Ge(t.start_value,1),n=Ge(t.end_value,1),i=Le(t.start_delay,0),o=Le(t.duration,300),a=qe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(82,Ue=e),r(83,We=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(84,Ze=e),r(85,Qe=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Ot.logError(fe(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let cn,un,dn,hn=!1,pn="visible",fn=0,gn=0;return bt((()=>{var t;Bt.forEach((t=>{Ot.unregisterParentOf(t)})),r(51,Bt=[]),null===(t=vt.tooltips)||void 0===t||t.forEach((t=>{Ot.unregisterTooltip(t)}))})),t.$$set=t=>{"json"in t&&r(0,vt=t.json),"origJson"in t&&r(41,yt=t.origJson),"templateContext"in t&&r(42,$t=t.templateContext),"cls"in t&&r(1,_t=t.cls),"style"in t&&r(43,xt=t.style),"layoutParams"in t&&r(44,kt=t.layoutParams),"customDescription"in t&&r(45,Et=t.customDescription),"customPaddings"in t&&r(46,At=t.customPaddings),"customActions"in t&&r(47,Ct=t.customActions),"additionalPaddings"in t&&r(48,Vt=t.additionalPaddings),"heightByAspect"in t&&r(49,Dt=t.heightByAspect),"parentOf"in t&&r(40,Pt=t.parentOf),"replaceItems"in t&&r(50,Ft=t.replaceItems),"hasInnerFocusable"in t&&r(2,St=t.hasInnerFocusable),"$$scope"in t&&r(116,mt=t.$$scope)},t.$$.update=()=>{if(1049088&t.$$.dirty[1]&&(Bt.forEach((t=>{Ot.unregisterParentOf(t)})),r(51,Bt=[]),Pt&&Pt.forEach((t=>{t.id&&(Bt.push(t.id),Ot.registerParentOf(t.id,{replaceWith:Rt}))}))),1&t.$$.dirty[0]&&(r(36,i=Ot.getDerivedFromVars(vt.focus)),tt(),tt=h(i,(t=>r(100,N=t)))),1&t.$$.dirty[0]&&(r(35,o=Ot.getDerivedFromVars(vt.border)),ft(),ft=h(o,(t=>r(114,K=t)))),264&t.$$.dirty[0]|65011712&t.$$.dirty[1]|2097280&t.$$.dirty[3]){const t=dn&&(null==N?void 0:N.border)?N.border:K;let e={},n={},i=!1,o="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,i,o,a;return ye((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+ye((null===(r=t.offset)||void 0===r||null===(i=r.y)||void 0===i?void 0:i.value)||0)+" "+ye(null!==(o=t.blur)&&void 0!==o?o:2)+" "+_e(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&&(i=!0,r(53,ne=Le(t.stroke.width,ne)),r(54,re=_e(t.stroke.color,1,re)),n.border="".concat(ye(ne)," solid ").concat(re)),t.corners_radius?(r(56,oe=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]&&!Be(n[t]))return e;return t}(t.corners_radius,oe)),n["border-radius"]=e["border-radius"]=Ye(oe)):t.corner_radius&&(r(55,ie=Le(t.corner_radius,ie)),r(56,oe={"top-left":ie,"top-right":ie,"bottom-right":ie,"bottom-left":ie}),n["border-radius"]=e["border-radius"]=ye(ie)),i&&ne&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},oe);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ne/2})),o=Ye(t)}}r(52,Qt=He(e,Qt)),r(3,te=He(n,te)),r(10,ee=i),r(4,ae=o)}if(1&t.$$.dirty[0]&&(r(34,a=Ot.getDerivedFromVars(vt.paddings)),pt(),pt=h(a,(t=>r(113,G=t)))),67141632&t.$$.dirty[1]|1048576&t.$$.dirty[3]&&r(57,se=Xe(G&&!At?G:void 0,se)),67239936&t.$$.dirty[1]&&r(93,s=ze(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(se,Vt))),1&t.$$.dirty[0]&&(r(33,l=Ot.getDerivedFromVars(vt.margins)),dt(),dt=h(l,(t=>r(111,H=t)))),134217728&t.$$.dirty[1]|262144&t.$$.dirty[3]&&r(58,le=Re(H,le)),1&t.$$.dirty[0]&&(r(32,c=Ot.getDerivedFromVars(vt.width)),ct(),ct=h(c,(t=>r(109,U=t)))),1&t.$$.dirty[0]&&(r(31,u=Ot.getDerivedFromVars(vt.alignment_horizontal)),ht(),ht=h(u,(t=>r(112,q=t)))),268443648&t.$$.dirty[1]|2&t.$$.dirty[2]|851968&t.$$.dirty[3]){let t,e,n,i,o={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if("fixed"===u)r(63,ue=Le(null==U?void 0:U.value,ue)),e=ye(ue);else if("wrap_content"!==u&&(kt.overlapParent||"match_parent"!==u&&u||!kt.parentHorizontalWrapContent))t="parent","vertical"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,Ot.logError(fe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===kt.parentLayoutOrientation?e="calc(100% - ".concat($e(((null==H?void 0:H.left)||0)+((null==H?void 0:H.right)||0)),")"):"horizontal"===kt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,kt.parentContainerWrap&&(l=!0));else{if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&kt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;t.min_size&&Be(t.min_size.value)&&(n=ye(t.min_size.value)),t.max_size&&Be(t.max_size.value)&&(i=ye(t.max_size.value))}"match_parent"!==u&&u||Ot.logError(fe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?It[t]:kt.parentHAlign||"start"}t&&(o.width=t),r(60,Lt=e),r(61,Ut=n),r(62,Wt=i),r(64,de=a),r(65,he=s),r(59,ce=He(o,ce)),r(66,ge=l),r(11,me=c)}if(1&t.$$.dirty[0]&&(r(30,d=Ot.getDerivedFromVars(vt.height)),lt(),lt=h(d,(t=>r(108,L=t)))),1&t.$$.dirty[0]&&(r(29,p=Ot.getDerivedFromVars(vt.alignment_vertical)),ut(),ut=h(p,(t=>r(110,W=t)))),270336&t.$$.dirty[1]|544&t.$$.dirty[2]|425984&t.$$.dirty[3]){let t,e,n,i,o={},a=0,s=0,l=!1,c=!1;const u=null==L?void 0:L.type;if(Dt);else if("fixed"===u)r(71,be=Le(null==L?void 0:L.value,be)),e=ye(be);else if("match_parent"!==u||!kt.overlapParent&&kt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&kt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===kt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Be(t.min_size.value)&&(n=ye(t.min_size.value)),(null==t?void 0:t.max_size)&&Be(t.max_size.value)&&(i=ye(t.max_size.value))}"match_parent"===u&&Ot.logError(fe(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===kt.parentContainerOrientation&&kt.parentContainerWrap&&(c=!0,Ot.logError(fe(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===kt.parentLayoutOrientation?e="calc(100% - ".concat($e(((null==H?void 0:H.top)||0)+((null==H?void 0:H.bottom)||0)),")"):"vertical"===kt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,kt.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===kt.parentContainerOrientation?o["valign-self"]=Nt[t]:o["valign-self"]=kt.parentVAlign||"start"}t&&(o.height=t),r(68,Ht=e),r(69,qt=n),r(70,Gt=i),r(72,we=a),r(73,xe=s),r(67,ve=He(o,ve)),r(74,Ae=l),r(12,Ce=c)}var e,n;if(8192&t.$$.dirty[1]&&r(96,f=!!kt.overlapParent||void 0),8192&t.$$.dirty[1]|98304&t.$$.dirty[3]&&r(95,g=kt.overlapParent&&(!U||"match_parent"===U.type)&&"match_parent"===(null==L?void 0:L.type)),8192&t.$$.dirty[1]&&r(94,m=kt.gridArea?"".concat(kt.gridArea.y+1,"/").concat(kt.gridArea.x+1,"/span ").concat(kt.gridArea.rowSpan,"/span ").concat(kt.gridArea.colSpan):void 0),1&t.$$.dirty[0]&&(r(28,v=Ot.getDerivedFromVars(vt.alpha)),st(),st=h(v,(t=>r(107,R=t)))),8192&t.$$.dirty[2]|16384&t.$$.dirty[3]&&(r(75,(n=Ve,Ve=!Be(e=R)||void 0===e||e>1?n:Number(e))),r(76,Kt=1===Ve?void 0:Ve)),1&t.$$.dirty[0]&&(r(27,y=Ot.getDerivedFromVars(vt.accessibility)),at(),at=h(y,(t=>r(106,B=t)))),16384&t.$$.dirty[1]|8192&t.$$.dirty[3]&&(r(9,zt=void 0),B&&!Et&&B.description&&(r(9,zt={}),r(9,zt["aria-label"]=B.description,zt))),1&t.$$.dirty[0]&&(r(26,$=Ot.getDerivedFromVars(vt.background)),ot(),ot=h($,(t=>r(105,J=t)))),368&t.$$.dirty[0]|4224&t.$$.dirty[3]&&(r(5,Xt=dn&&(null==N?void 0:N.background)?N.background:J),r(77,Yt={}),r(6,Zt=!1),Array.isArray(Xt)&&(r(6,Zt=Xt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ae)),!Zt))){const t=Ee(Xt);r(77,Yt["background-color"]=t.color,Yt),r(77,Yt["background-image"]=t.image,Yt),r(77,Yt["background-size"]=t.size,Yt),r(77,Yt["background-position"]=t.position,Yt),r(77,Yt["background-repeat"]="no-repeat",Yt)}if(1&t.$$.dirty[0]&&(r(78,Oe=void 0),Fe&&vt.transition_in&&Ot.isRunning("stateChange")&&r(78,Oe=!0)),1&t.$$.dirty[0]&&(r(80,Je=void 0),Fe&&vt.transition_change&&Ot.isRunning("stateChange")&&Tt.hasTransitionChange(vt.id)&&r(80,Je=!0)),1&t.$$.dirty[0]&&(r(25,b=Ot.getDerivedFromVars(vt.action)),rt(),rt=h(b,(t=>r(103,M=t)))),1&t.$$.dirty[0]&&(r(24,_=Ot.getDerivedFromVars(vt.actions)),it(),it=h(_,(t=>r(104,z=t)))),1&t.$$.dirty[0]&&(r(23,w=Ot.getDerivedFromVars(vt.doubletap_actions)),nt(),nt=h(w,(t=>r(102,T=t)))),1&t.$$.dirty[0]&&(r(22,x=Ot.getDerivedFromVars(vt.longtap_actions)),et(),et=h(x,(t=>r(101,O=t)))),73728&t.$$.dirty[1]|3968&t.$$.dirty[3]){let t=z||M&&[M]||[],e=T||[],n=O||[],i=(null==N?void 0:N.on_focus)||[],o=(null==N?void 0:N.on_blur)||[];kt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],Ot.logError(fe(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Ot.logError(fe(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],Ot.logError(fe(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],Ot.logError(fe(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],Ot.logError(fe(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Ct&&(t=[],e=[],n=[],Ot.logError(fe(new Error('Cannot use action on component "'.concat(Ct,'"'))))),r(13,tn=t),r(14,en=e),r(15,nn=n),rn=i,on=o}if(1&t.$$.dirty[0]&&(r(21,k=Ot.getDerivedFromVars(vt.action_animation)),Q(),Q=h(k,(t=>r(99,I=t)))),128&t.$$.dirty[0]|64&t.$$.dirty[3]&&I&&(r(7,an=Ke(I)),r(81,sn=an.map(ln).filter(Boolean).join(", "))),1&t.$$.dirty[0]&&(r(20,E=Ot.getDerivedFromVars(vt.visibility)),Z(),Z=h(E,(t=>r(98,S=t)))),50331648&t.$$.dirty[2]|32&t.$$.dirty[3]){const t=pn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,pn);t!==e&&(!hn||"visible"!==pn&&"visible"!==e?r(87,pn=e):async function(t){r(87,pn=t);const e="visible"===t?"in":"out",n="in"===e?vt.transition_in:vt.transition_out;Ie&&n&&(await jt(),"in"===e&&r(79,Te=!0),Tt.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,n,Mt,e).then((()=>{"in"===e&&r(79,Te=!1)})).catch((t=>{throw"in"===e&&r(79,Te=!1),t})))}(e)),hn||r(86,hn=!0)}if(257&t.$$.dirty[0]|268443648&t.$$.dirty[1]|34537504&t.$$.dirty[2]|12&t.$$.dirty[3]&&r(19,A=Object.assign(Object.assign(Object.assign({},ce),ve),{"parent-overlap":f,"parent-overlap-absolute":g,"scroll-snap":kt.scrollSnap,"hide-on-transition-in":Oe||Te||Je,visibility:pn,"has-action-animation":Boolean(sn),"parent-flex":kt.parentContainerOrientation||void 0,"parent-grid":Boolean(kt.gridArea)||void 0,"has-custom-focus":Boolean(dn&&vt.focus)})),1&t.$$.dirty[0]&&(r(18,C=Ot.getDerivedFromVars(vt.transform)),Y(),Y=h(C,(t=>r(97,F=t)))),201326592&t.$$.dirty[2]|16&t.$$.dirty[3]&&F&&void 0!==F.rotation){const t=F.pivot_x||{type:"pivot-percentage",value:50};r(88,fn=Ge(t.value,fn));const e="pivot-fixed"===t.type?ye(fn):"".concat(fn,"%"),n=F.pivot_y||{type:"pivot-percentage",value:50};r(89,gn=Ge(n.value,gn));const i="pivot-fixed"===n.type?ye(gn):"".concat(gn,"%");r(90,cn="".concat(e," ").concat(i)),r(91,un="rotate(".concat(F.rotation,"deg)"))}5140&t.$$.dirty[2]&&r(92,V=ge||Ae?"100%":de||we?0:void 0),1746931712&t.$$.dirty[1]|1895353805&t.$$.dirty[2]|3&t.$$.dirty[3]&&r(17,D=Object.assign(Object.assign(Object.assign(Object.assign({},xt),Yt),Qt),{width:Lt,"min-width":Ut,"max-width":Wt,height:Ht,"min-height":qt,"max-height":Gt||(null==xt?void 0:xt["max-height"]),"grid-area":m,padding:s,margin:le,opacity:Kt,transition:sn,"transform-origin":cn,transform:un,"flex-grow":de||we||void 0,"flex-shrink":he||xe?1:void 0,"flex-basis":V,"--divkit-animation-opacity-start":Ue,"--divkit-animation-opacity-end":We,"--divkit-animation-scale-start":Ze,"--divkit-animation-scale-end":Qe}))},r(16,P=Ot.isPointerFocus),X(),X=h(P,(t=>r(121,j=t))),[vt,_t,St,te,ae,Xt,Zt,an,dn,zt,ee,me,Ce,tn,en,nn,P,D,C,A,E,k,x,w,_,b,$,y,v,p,d,u,c,l,a,o,i,function(t){var e;Mt=t,Fe&&vt.transition_in&&Tt.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{r(78,Oe=!1)})).catch((t=>{throw r(78,Oe=!1),t})),Fe&&vt.transition_out&&Tt.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),Fe&&vt.transition_change&&Tt.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{r(80,Je=!1)})).catch((t=>{throw r(80,Je=!1),t}));const n=kt.fakeElement?[]:vt.visibility_actions||vt.visibility_action&&[vt.visibility_action],i=kt.fakeElement?[]:vt.disappear_actions;(Array.isArray(n)&&n.length||Array.isArray(i)&&i.length)&&function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:i}=e;const o=[];n&&n.forEach((t=>{o.push({type:"visibility",index:o.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{o.push({type:"disappear",index:o.length,action:t,visible:!1,count:0,finished:!1})}));const a=o.map((t=>{const e="visibility"===t.type,n=i.getJsonWithVars({visibility_percentage:t.action.visibility_percentage,visibility_duration:e?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit});return Se(Se({},n),{},{visibility_percentage:Ne(e,n.visibility_percentage,e?50:0)})})),s=[...new Set(a.map((t=>t.visibility_percentage/100)))];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=a[e.index],r="visibility"===e.type;let o;o=0===n.visibility_percentage?t.intersectionRatio>=1e-12:t.intersectionRatio>=n.visibility_percentage/100;const s=r?!e.visible&&o:e.visible&&!o,l=r?!o:o;s?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===n.log_limit?1/0:n.log_limit||1;++e.count>=t&&(e.finished=!0);const o=i.getJsonWithVars(e.action),a=o.url,s=o.typed;if(a){const t=Pe(a);t&&!je(t,i.getBuiltinProtocols())&&("div-action"===t?i.execAction(o):o.log_id&&i.execCustomAction(o))}else s&&i.execAction(o);i.logStat(r?"visible":"disappear",o)}),a[e.index].visibility_duration||800)):l&&e.timer&&clearTimeout(e.timer),e.visible=o}))}))}),{threshold:s}).observe(t)}(t,{visibilityActions:n,disappearActions:i,rootCtx:Ot});const o=vt.id;o&&Tt.registerChild(o),null===(e=vt.tooltips)||void 0===e||e.forEach((e=>{Ot.registerTooltip(t,e)}));let a=null;if(Array.isArray(vt.extensions)){const e=Ot.getExtensionContext();Jt=vt.extensions.map((n=>{var r;const i=Ot.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(ke)}return{destroy(){if(o&&Tt.unregisterChild(o),Jt){const e=Ot.getExtensionContext();Jt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Jt=null}a&&a.destroy()}}},function(){vt.focus&&(j||r(8,dn=!0),Ot.execAnyActions(rn))},function(){vt.focus&&(r(8,dn=!1),Ot.execAnyActions(on))},Pt,yt,$t,xt,kt,Et,At,Ct,Vt,Dt,Ft,Bt,Qt,ne,re,ie,oe,se,le,ce,Lt,Ut,Wt,ue,de,he,ge,ve,Ht,qt,Gt,be,we,xe,Ae,Ve,Kt,Yt,Oe,Te,Je,sn,Ue,We,Ze,Qe,hn,pn,fn,gn,cn,un,V,s,m,g,f,F,S,I,N,O,T,M,z,J,B,R,L,U,W,H,q,G,K,gt,mt]}const An=class extends le{constructor(t){super(),ae(this,t,En,xn,d,{json:0,origJson:41,templateContext:42,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:40,replaceItems:50,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Cn={"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 Vn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Dn(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Pn(t,e){return Dn(t)||e}function jn(t){let e,n;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Cn["text-range__top-offset"]),st(e,"margin-top",t[4])},m(t,n){T(t,e,n)},p(t,n){16&n&&st(e,"margin-top",t[4])},d(t){t&&M(e)}}}function Fn(t){let e;return{c(){e=R(t[0])},l(n){e=rt(n,t[0])},m(t,n){T(t,e,n)},p(t,n){1&n&&at(e,t[0])},d(t){t&&M(e)}}}function Sn(t){let e,n,r,i=t[4]&&jn(t);return n=new an({props:{cls:Te("text-range",Cn,t[3]),actions:t[1],style:ve(t[2]),$$slots:{default:[Fn]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=U(),ne(n.$$.fragment)},l(t){i&&i.l(t),e=U(),re(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),T(t,e,o),ie(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=jn(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Te("text-range",Cn,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ve(t[2])),4194305&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Ut(n.$$.fragment,t),r=!0)},o(t){Wt(n.$$.fragment,t),r=!1},d(t){t&&M(e),i&&i.d(t),oe(n,t)}}}function In(t,e,n){let r,i,o,a,s,l;var c,u;let{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e;const m=wt(pe);let v,y="none",$=12,b=1.25,_="",w="",x="",k=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,y=t)}2112&t.$$.dirty&&n(11,$=Vn(p.font_size,$)),2112&t.$$.dirty&&ln(p.line_height)&&n(12,b=Number(p.line_height)/$),64&t.$$.dirty&&Be(p.letter_spacing)&&n(13,_=ye(p.letter_spacing)),16448&t.$$.dirty&&(n(14,v=Pn(p.font_weight,v)),"string"==typeof p.font_family&&p.font_family?n(15,w=m.typefaceProvider(p.font_family,{fontWeight:v||400})):n(15,w="")),65600&t.$$.dirty&&n(16,x=_e(p.text_color,1,x)),64&t.$$.dirty&&n(4,r=p.top_offset?ye(p.top_offset):""),64&t.$$.dirty&&n(19,i=p.background?Ee([p.background]):null),320&t.$$.dirty&&((null===n(8,c=p.border)||void 0===c?void 0:c.stroke)&&p.border.stroke.color&&"transparent"!==_e(p.border.stroke.color)&&ln(p.border.stroke.width)?n(17,k={color:p.border.stroke.color,width:p.border.stroke.width}):n(17,k=null)),576&t.$$.dirty&&n(18,o=Vn(null===n(9,u=p.border)||void 0===u?void 0:u.corner_radius,0)),2112&t.$$.dirty&&n(20,a=p.text_shadow?function(t,e){var n,r,i,o,a,s;return"drop-shadow("+_e(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+ye(10*((null===(r=t.offset)||void 0===r||null===(i=r.x)||void 0===i?void 0:i.value)||0)/e)+" "+ye(10*((null===(o=t.offset)||void 0===o||null===(a=o.y)||void 0===a?void 0:a.value)||0)/e)+" "+ye(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(p.text_shadow,$):void 0),1152&t.$$.dirty&&n(3,s={singleline:f,decoration:y}),2095136&t.$$.dirty&&n(2,l={"font-size":ye(10*$/h),"line-height":b,"letter-spacing":_,"font-weight":v,"font-family":w,filter:a,color:x,background:(null==i?void 0:i.color)||void 0,"box-shadow":k?"inset 0 0 0 ".concat(ye(k.width)," ").concat(k.color):void 0,"border-radius":o?ye(o):void 0})},[d,g,l,s,r,h,p,f,c,u,y,$,b,_,v,w,x,k,o,i,a]}const Nn=class extends le{constructor(t){super(),ae(this,t,In,Sn,d,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function On(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Tn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Mn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function zn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Jn}=C;function Bn(t,e,n){const r=t.slice();return r[58]=e[n],r[60]=n,r}function Rn(t){let e,n;return e=new An({props:{cls:Te("text",ge,t[13])+" "+(t[6]?"":he.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Kn]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=Te("text",ge,t[13])+" "+(t[6]?"":he.root__unselectable)),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),268443312&n[0]|1073741824&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ln(t){let e,n;return e=new Nn({props:{text:t[4],rootFontSize:t[5],textStyles:t[28],singleline:t[7]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),268435456&n[0]&&(r.textStyles=t[28]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Un(t){let e,n,r=Gt(t[10]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Gn(Bn(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(536872608&n[0]){let a;for(r=Gt(t[10]),a=0;a<r.length;a+=1){const o=Bn(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Gn(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Jn);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Wn(t){let e,r,i,o,a,s,l,c;return{c(){e=J("span"),r=J("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(){H(r,"class",i=ge.text__image),u(r.src,o=t[58].image.url)||H(r,"src",o),H(r,"loading","lazy"),H(r,"decoding","async"),H(r,"aria-hidden","true"),H(r,"alt",""),H(r,"style",a=ve({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0})),H(e,"style",s=ve(t[58].image.wrapperStyle))},m(n,i){T(n,e,i),N(e,r),l||(c=W(r,"error",t[29]),l=!0)},p(t,n){1024&n[0]&&!u(r.src,o=t[58].image.url)&&H(r,"src",o),1536&n[0]&&a!==(a=ve({width:t[58].image.width,height:t[58].image.height,"margin-top":t[9]?"-".concat(t[58].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[58].image.height):void 0,filter:t[58].image.svgFilterId?"url(#".concat(t[58].image.svgFilterId,")"):void 0}))&&H(r,"style",a),1024&n[0]&&s!==(s=ve(t[58].image.wrapperStyle))&&H(e,"style",s)},i:n,o:n,d(t){t&&M(e),l=!1,c()}}}function Hn(t){let e,n,r=t[58].text&&qn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[58].text?r?(r.p(t,n),1024&n[0]&&Ut(r,1)):(r=qn(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function qn(t){let e,n;return e=new Nn({props:{text:t[58].text,rootFontSize:t[5],textStyles:t[58].textStyles,singleline:t[7],actions:t[58].actions}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[58].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[58].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[58].actions),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Gn(t){let e,n,r,i;const o=[Hn,Wn],a=[];function s(t,e){return"text"in t[58]?0:t[58].image?1:-1}return~(e=s(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=U()},l(t){n&&n.l(t),r=U()},m(t,n){~e&&a[e].m(t,n),T(t,r,n),i=!0},p(t,i){let l=e;e=s(t),e===l?~e&&a[e].p(t,i):(n&&(Rt(),Wt(a[l],1,1,(()=>{a[l]=null})),Lt()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ut(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Ut(n),i=!0)},o(t){Wt(n),i=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function Kn(t){let e,n,r,i,o,a;const s=[Un,Ln],l=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=l[n]=s[n](t),{c(){e=J("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(){H(e,"class",i=Te("text__inner",ge,t[12])),H(e,"style",o=ve(t[11]))},m(t,r){T(t,e,r),l[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?l[n].p(t,u):(Rt(),Wt(l[d],1,1,(()=>{l[d]=null})),Lt(),r=l[n],r?r.p(t,u):(r=l[n]=s[n](t),r.c()),Ut(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=Te("text__inner",ge,t[12])))&&H(e,"class",i),(!a||2048&u[0]&&o!==(o=ve(t[11])))&&H(e,"style",o)},i(t){a||(Ut(r),a=!0)},o(t){Wt(r),a=!1},d(t){t&&M(e),l[n].d()}}}function Xn(t){let e,n,r=!t[8]&&Rn(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),256&n[0]&&Ut(r,1)):(r=Rn(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Yn(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,P,j,F,S,I,N,O,T,M,z,J=n,B=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,X=n,Y=n,Z=n,Q=n;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),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((()=>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()));let{json:tt={}}=e,{templateContext:et}=e,{origJson:nt}=e,{layoutParams:rt}=e;const it=wt(pe);let ot=!1,at="",st=12,lt=1.25,ct=!1,ut="",dt="",ht=!1,pt="left",ft="top",gt="",mt="",vt="",yt=!1,$t=[],_t=[];return bt((()=>{_t.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,tt=t.json),"templateContext"in t&&r(1,et=t.templateContext),"origJson"in t&&r(2,nt=t.origJson),"layoutParams"in t&&r(3,rt=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&(r(27,i=it.getDerivedFromVars(tt.text)),Q(),Q=h(i,(t=>r(54,z=t)))),16&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(r(4,(e=z,n=at,at=String(null!=e?e:"")||n)),at?r(8,ot=!1):(r(8,ot=!0),it.logError(fe(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(r(26,o=it.getDerivedFromVars(tt.ranges)),B(),B=h(o,(t=>r(43,C=t)))),1&t.$$.dirty[0]&&(r(25,a=it.getDerivedFromVars(tt.images)),J(),J=h(a,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(24,s=it.getDerivedFromVars({font_size:tt.font_size,letter_spacing:tt.letter_spacing,font_weight:tt.font_weight,font_family:tt.font_family,text_color:tt.text_color,underline:tt.underline,strike:tt.strike,line_height:tt.line_height,text_shadow:tt.text_shadow})),R(),R=h(s,(t=>r(28,V=t)))),1&t.$$.dirty[0]&&(r(23,l=it.getDerivedFromVars(tt.font_size)),Z(),Z=h(l,(t=>r(53,M=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(5,st=Vn(M,st)),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(tt.line_height)),Y(),Y=h(c,(t=>r(52,T=t)))),32&t.$$.dirty[0]|2097152&t.$$.dirty[1]){const t=T;ln(t)?(r(30,lt=Number(t)/st),r(9,ct=!0)):r(9,ct=!1)}if(1&t.$$.dirty[0]&&(r(21,u=it.getDerivedFromVars(tt.max_lines)),G(),G=h(u,(t=>r(49,I=t)))),262144&t.$$.dirty[1]&&r(7,d=1===I),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]){let t="",e="",n=!1;if(I&&I>1){let r=Number(I);t=r*lt+"em",e=r,n=!0}r(31,ut=t),r(32,dt=e),r(33,ht=n)}if(1&t.$$.dirty[0]&&(r(20,p=it.getDerivedFromVars(tt.text_alignment_horizontal)),X(),X=h(p,(t=>r(51,O=t)))),1048584&t.$$.dirty[1]&&r(34,pt=On(O,pt)),1&t.$$.dirty[0]&&(r(19,f=it.getDerivedFromVars(tt.text_alignment_vertical)),K(),K=h(f,(t=>r(50,N=t)))),524304&t.$$.dirty[1]&&r(35,ft=Tn(N,ft)),16&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(41,g=!C||at&&1===C.length&&C[0]&&0===C[0].start&&"number"==typeof C[0].end&&C[0].end>=at.length),1&t.$$.dirty[0]&&(r(18,m=it.getDerivedFromVars(tt.text_color)),q(),q=h(m,(t=>r(48,S=t)))),135168&t.$$.dirty[1]&&r(40,v=Boolean(S)!==Boolean(C&&C[0]&&C[0].text_color)),398880&t.$$.dirty[1]){let t="";I&&g&&v&&(t=_e(S||C&&C[0]&&C[0].text_color,1,gt)),r(36,gt=t)}if(1&t.$$.dirty[0]&&(r(17,y=it.getDerivedFromVars(tt.focused_text_color)),H(),H=h(y,(t=>r(47,F=t)))),65600&t.$$.dirty[1]&&r(37,mt=_e(F,1,mt)),1&t.$$.dirty[0]&&(r(16,$=it.getDerivedFromVars(tt.truncate)),W(),W=h($,(t=>r(46,j=t)))),32768&t.$$.dirty[1]&&r(39,b="none"===j?"none":""),1&t.$$.dirty[0]&&(r(15,_=it.getDerivedFromVars(tt.text_gradient)),U(),U=h(_,(t=>r(45,P=t)))),16384&t.$$.dirty[1]){let t="";if(P){const e=Ee([P]);e.image&&(t=e.image)}r(38,vt=t)}1&t.$$.dirty[0]&&(r(14,w=it.getDerivedFromVars(tt.selectable)),L(),L=h(w,(t=>r(44,D=t)))),64&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(6,yt=Mn(D,yt)),16&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,n){let i=[];if(_t.forEach((t=>{let[e,n]=t;it.removeSvgFilter(e,n)})),_t=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(10,$t=[]);const o=t;let a=e||[{start:0,end:o.length}],s=n||[],l=0,c=[],u=[];a.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"}))})),s.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.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;let n="image"===t.type?null:t.range,r=t.index;if(r>l){let n=Object.assign(Object.assign({},V),...c);i.push({text:o.substring(l,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},V),...c),n=ye(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=ye(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":ye(10*(Number(e.font_size)||12)/st)};let a="";const s=t.image.tint_color,l=zn(t.image.tint_mode,"source_in");if(s){const e=_e(t.image.tint_color);a=it.addSvgFilter(e,l),_t.push([e,l])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}l=r})),l<o.length&&i.push({text:o.substring(l),textStyles:Object.assign({},V)}),r(10,$t=i)}(at,C,A),128&t.$$.dirty[0]|348&t.$$.dirty[1]&&r(13,x={singleline:d,multiline:ht,halign:pt,valign:ft,truncate:b,"has-focus-color":Boolean(mt)}),128&t.$$.dirty[1]&&r(12,k={gradient:Boolean(vt)}),1073741856&t.$$.dirty[0]|227&t.$$.dirty[1]&&r(11,E={"font-size":ye(st),"line-height":lt,"max-height":ut,"-webkit-line-clamp":dt,color:gt,"background-image":vt,"--divkit-text-focus-color":mt})},[tt,et,nt,rt,at,st,yt,d,ot,ct,$t,E,k,x,w,_,$,y,m,f,p,u,c,l,s,a,o,i,V,function(t){t.target&&"classList"in t.target&&t.target.classList.add(ge.text__image_hidden)},lt,ut,dt,ht,pt,ft,gt,mt,vt,b,v,g,A,C,D,P,j,F,S,I,N,O,T,M,z]}const Zn={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230","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 Qn(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 tr(t,e,n){const r=((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);null!=e&&e.show_at_start&&(n?t.top=e.style.height+i:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+i:t.right=e.style.width+r)}function er(t,e,n){let r;const i=((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),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+i:0]:[null!=e&&e.show_between?e.style.height+o:0,null!=n&&n.show_between?n.style.width+a:0],r.map(ye).join(" ")}function nr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function rr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ir(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:Le(null===(o=(i=t.shape).item_width)||void 0===o?void 0:o.value,10),height:Le(null===(a=i.item_height)||void 0===a?void 0:a.value,10),radius:Le(null===(s=i.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*Le(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?_e(o.color):"",s=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return i.background=_e(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat(ye(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let or;function ar(){if(void 0!==or)return or;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),or=1===t.scrollHeight,document.body.removeChild(t),or}const sr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:lr}=C;function cr(t,e,n){const r=t.slice();return r[15]=e[n],r}function ur(t){let e,n,r,i,o,a="".concat(t[15].style.width,"px"),s="".concat(t[15].style.height,"px"),l="".concat(t[15].style.borderRadius,"px"),c="".concat(t[15].left,"px"),u="".concat(t[15].top,"px"),d="".concat(t[15].width,"px"),h="".concat(t[15].height,"px");return{c(){e=J("div"),n=J("div"),i=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0}),Y(n).forEach(M),i=it(r),r.forEach(M),this.h()},h(){H(n,"class",r=sr["container-separator__shape"]),st(n,"width",a),st(n,"height",s),st(n,"border-radius",l),st(n,"background",t[15].style.background),st(n,"box-shadow",t[15].style.boxShadow),H(e,"class",o=sr["container-separator__item"]),st(e,"left",c),st(e,"top",u),st(e,"width",d),st(e,"height",h)},m(t,r){T(t,e,r),N(e,n),N(e,i)},p(t,r){2&r&&a!==(a="".concat(t[15].style.width,"px"))&&st(n,"width",a),2&r&&s!==(s="".concat(t[15].style.height,"px"))&&st(n,"height",s),2&r&&l!==(l="".concat(t[15].style.borderRadius,"px"))&&st(n,"border-radius",l),2&r&&st(n,"background",t[15].style.background),2&r&&st(n,"box-shadow",t[15].style.boxShadow),2&r&&c!==(c="".concat(t[15].left,"px"))&&st(e,"left",c),2&r&&u!==(u="".concat(t[15].top,"px"))&&st(e,"top",u),2&r&&d!==(d="".concat(t[15].width,"px"))&&st(e,"width",d),2&r&&h!==(h="".concat(t[15].height,"px"))&&st(e,"height",h)},d(t){t&&M(e)}}}function dr(t){let e,r,i,o,a=Gt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=ur(cr(t,a,e));return{c(){e=J("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(){H(e,"class",r=sr["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[12](e),i||(o=W(lr,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Gt(t[1]),n=0;n<a.length;n+=1){const i=cr(t,a,n);s[n]?s[n].p(i,r):(s[n]=ur(i),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[12](null),i=!1,o()}}}function hr(t,e,n,r,i,o){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;o?t.push({top:n.bottom+l,left:i.left+a,width:Math.max(0,i.right-i.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:i.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,i.bottom-i.top-l-c),style:e.style})}function pr(t,e,n,r,i,o){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"===i||"space-evenly"===i?(s=o.left-e.style.width,l=o.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),hr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let i=0;i<n.length-1;++i)hr(t,e,n[i],n[i+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===i||"space-evenly"===i?(l=o.bottom+e.style.height,c=o.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),hr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function fr(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e;const c=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),c={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,d=[]);let h=[...r.children].filter((t=>t!==u&&!t.classList.contains(me.outer__border))),p=[];for(;h.length;){const t=[],e=h.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.right,o=n.bottom;for(;h.length;){let e=h[0],n=e.getBoundingClientRect();if("vertical"===i){if(n.top<o)break}else if(n.left<r)break;r=Math.max(r,n.right),o=Math.max(o,n.bottom),t.push(e),h.shift()}p.push(t)}const f=[];p.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)));o&&pr(d,o,e,"vertical"===i,"vertical"===i?l:s,c);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)))};f.push(n)})),a&&pr(d,a,f,"horizontal"===i,"vertical"===i?s:l,c),d.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let u,d=[],h=!1,p=null,f=null;function g(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(sr["container-separator__shape"]))&&!(null==n?void 0:n.contains(sr["container-separator"]))}))&&c()}return $t((()=>{n(8,h=!0)})),bt((()=>{n(8,h=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=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)},t.$$.update=()=>{1&t.$$.dirty&&n(11,r=(null==u?void 0:u.parentElement)||null),3840&t.$$.dirty&&(h&&r||p||f)&&(p&&(p.disconnect(),n(9,p=null)),f&&(f.disconnect(),n(10,f=null)),h&&r&&("undefined"!=typeof MutationObserver&&(n(9,p=new MutationObserver(g)),p.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(10,f=new ResizeObserver(c)),f.observe(r)))),2304&t.$$.dirty&&h&&r&&c()},[u,d,c,i,o,a,s,l,h,p,f,r,function(t){Et[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const gr=class extends le{constructor(t){super(),ae(this,t,fr,dr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7})}},{Boolean:mr}=C;function vr(t,e,n){const r=t.slice();return r[51]=e[n],r}function yr(t){let e,n;return e=new An({props:{cls:Te("container",Zn,t[16]),style:t[12],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[20],heightByAspect:Boolean(t[10]),parentOf:t[14],replaceItems:t[27],$$slots:{default:[wr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Te("container",Zn,t[16])),4096&n[0]&&(r.style=t[12]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1048576&n[0]&&(r.additionalPaddings=t[20]),1024&n[0]&&(r.heightByAspect=Boolean(t[10])),16384&n[0]&&(r.parentOf=t[14]),27616&n[0]|8388608&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function $r(t){let e,n;return e=new cs({props:{layoutParams:t[11],div:t[51].json,templateContext:t[51].templateContext,origJson:t[51].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.layoutParams=t[11]),8192&n[0]&&(r.div=t[51].json),8192&n[0]&&(r.templateContext=t[51].templateContext),8192&n[0]&&(r.origJson=t[51].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function br(t){let e,n,r=Gt(t[13]),i=[];for(let e=0;e<r.length;e+=1)i[e]=$r(vr(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(10240&n[0]){let a;for(r=Gt(t[13]),a=0;a<r.length;a+=1){const o=vr(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=$r(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(mr);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function _r(t){let e,n;return e=new gr({props:{separator:t[8],lineSeparator:t[9],orientation:t[5],contentHAlign:t[7],contentVAlign:t[6]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.separator=t[8]),512&n[0]&&(r.lineSeparator=t[9]),32&n[0]&&(r.orientation=t[5]),128&n[0]&&(r.contentHAlign=t[7]),64&n[0]&&(r.contentVAlign=t[6]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function wr(t){let e,r,i,o=t[14],a=br(t),s=(t[8]||t[9])&&_r(t);return{c(){a.c(),e=L(),s&&s.c(),r=U()},l(t){a.l(t),e=it(t),s&&s.l(t),r=U()},m(t,n){a.m(t,n),T(t,e,n),s&&s.m(t,n),T(t,r,n),i=!0},p(t,i){16384&i[0]&&d(o,o=t[14])?(Rt(),Wt(a,1,1,n),Lt(),a=br(t),a.c(),Ut(a,1),a.m(e.parentNode,e)):a.p(t,i),t[8]||t[9]?s?(s.p(t,i),768&i[0]&&Ut(s,1)):(s=_r(t),s.c(),Ut(s,1),s.m(r.parentNode,r)):s&&(Rt(),Wt(s,1,1,(()=>{s=null})),Lt())},i(t){i||(Ut(a),Ut(s),i=!0)},o(t){Wt(a),Wt(s),i=!1},d(t){t&&(M(e),M(r)),a.d(t),s&&s.d(t)}}}function xr(t){let e,n,r=!t[4]&&yr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),16&n[0]&&Ut(r,1)):(r=yr(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function kr(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,P,j,F=n,S=n,I=n,N=n,O=n,T=n,M=n,z=n,J=n,B=n;var R,L,U,W,H,q;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>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((()=>J())),t.$$.on_destroy.push((()=>B()));let{json:G={}}=e,{templateContext:K}=e,{origJson:X}=e,{layoutParams:Y}=e;const Z={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},Q={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},tt=["rounded_rectangle","circle"],et=wt(pe);let nt,rt,it=!1,ot="vertical",at="top",st="left",lt=null,ct=null,ut={};return t.$$set=t=>{"json"in t&&r(0,G=t.json),"templateContext"in t&&r(1,K=t.templateContext),"origJson"in t&&r(2,X=t.origJson),"layoutParams"in t&&r(3,Y=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(14,i=G.items),16384&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(4,it=!1):(r(4,it=!0),et.logError(fe(new Error('Incorrect or empty "items" prop for div "container"'))))),16402&t.$$.dirty[0]&&r(13,o=(!it&&i||[]).map((t=>{let e=t,n=K;return({templateContext:n,json:e}=et.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8192&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(et.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(15,nt=de(t,(t=>[...t]))),z(),z=h(nt,(t=>r(44,D=t)))}if(1&t.$$.dirty[0]&&(r(26,a=et.getDerivedFromVars(G.orientation)),B(),B=h(a,(t=>r(46,j=t)))),32&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(5,ot=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(j,ot)),1&t.$$.dirty[0]&&(r(25,s=et.getDerivedFromVars(G.layout_mode)),J(),J=h(s,(t=>r(45,P=t)))),16384&t.$$.dirty[1]&&r(34,l="wrap"===P),32&t.$$.dirty[0]|8200&t.$$.dirty[1]&&r(35,c="horizontal"!==ot&&!l&&D.some(nr)),32&t.$$.dirty[0]|8200&t.$$.dirty[1]&&r(36,u="vertical"!==ot&&!l&&D.some(rr)),1&t.$$.dirty[0]&&(r(24,d=et.getDerivedFromVars(G.content_alignment_vertical)),M(),M=h(d,(t=>r(43,V=t)))),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(6,at=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(V,at)),1&t.$$.dirty[0]&&(r(23,p=et.getDerivedFromVars(G.content_alignment_horizontal)),T(),T=h(p,(t=>r(42,C=t)))),128&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(7,st=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(C,st)),1&t.$$.dirty[0]&&(r(22,f=et.getDerivedFromVars(G.separator)),O(),O=h(f,(t=>r(41,A=t)))),1879048480&t.$$.dirty[0]|1024&t.$$.dirty[1])if((null==A?void 0:A.style)&&"overlap"!==ot&&ar()){const t=ir(A.style,tt,(null==lt?void 0:lt.style)||null);r(8,lt=t?{show_at_start:Boolean(null!==r(28,R=A.show_at_start)&&void 0!==R&&R),show_at_end:Boolean(null!==r(29,L=A.show_at_end)&&void 0!==L&&L),show_between:Boolean(null===r(30,U=A.show_between)||void 0===U||U),style:t,margins:Qn(A.margins)}:null)}else r(8,lt=null);if(1&t.$$.dirty[0]&&(r(21,g=et.getDerivedFromVars(G.line_separator)),N(),N=h(g,(t=>r(40,E=t)))),544&t.$$.dirty[0]|519&t.$$.dirty[1])if((null==E?void 0:E.style)&&"overlap"!==ot&&ar()){const t=ir(E.style,tt,(null==ct?void 0:ct.style)||null);r(9,ct=t?{show_at_start:Boolean(null!==r(31,W=E.show_at_start)&&void 0!==W&&W),show_at_end:Boolean(null!==r(32,H=E.show_at_end)&&void 0!==H&&H),show_between:Boolean(null===r(33,q=E.show_between)||void 0===q||q),style:t,margins:Qn(E.margins)}:null)}else r(9,ct=null);if(800&t.$$.dirty[0]&&r(20,m=lt||ct?function(t,e,n){const r={};return tr(r,e,"vertical"===t),tr(r,n,"horizontal"===t),r}(ot,lt,ct):null),1&t.$$.dirty[0]&&(r(19,v=et.getDerivedFromVars(G.aspect)),I(),I=h(v,(t=>r(39,k=t)))),256&t.$$.dirty[1]){const t=null==k?void 0:k.ratio;t&&ln(t)?r(10,rt=t):r(10,rt=void 0)}if(1&t.$$.dirty[0]&&(r(18,y=et.getDerivedFromVars(G.width)),F(),F=h(y,(t=>r(37,w=t)))),1&t.$$.dirty[0]&&(r(17,$=et.getDerivedFromVars(G.height)),S(),S=h($,(t=>r(38,x=t)))),3304&t.$$.dirty[0]|248&t.$$.dirty[1]){let t={};(null==Y?void 0:Y.fakeElement)&&(t.fakeElement=!0),"overlap"===ot&&(t.overlapParent=!0),"horizontal"!==ot&&(t.parentHAlign=l?"start":Z[st]),"vertical"!==ot&&(t.parentVAlign=l?"start":Q[at]),rt||u||x&&"wrap_content"!==x.type&&("match_parent"!==x.type||!(null==Y?void 0:Y.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!c&&("wrap_content"===(null==w?void 0:w.type)||"match_parent"===(null==w?void 0:w.type)&&(null==Y?void 0:Y.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===ot&&(t.parentContainerOrientation="horizontal"),"vertical"===ot&&(t.parentContainerOrientation="vertical"),l&&(t.parentContainerWrap=!0),r(11,ut=He(t,ut))}224&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(16,b={orientation:ot,valign:at,halign:st,wrap:l}),1824&t.$$.dirty[0]&&r(12,_={gap:lt||ct?er(ot,lt,ct):void 0,"aspect-ratio":rt})},[G,K,X,Y,it,ot,at,st,lt,ct,rt,ut,_,o,i,nt,b,$,y,v,m,g,f,p,d,s,a,function(t){r(0,G=Object.assign(Object.assign({},G),{items:t}))},R,L,U,W,H,q,l,c,u,w,x,k,E,A,C,V,D,P,j]}const Er={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Ar(t,e){return"vertical"===t||"horizontal"===t?t:e}function Cr(t){let e,n,r;return{c(){e=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Er.separator__inner),H(e,"style",r=ve(t[5]))},m(t,n){T(t,e,n)},p(t,n){32&n&&r!==(r=ve(t[5]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Vr(t){let e,n=t[6]&&Cr(t);return{c(){n&&n.c(),e=U()},l(t){n&&n.l(t),e=U()},m(t,r){n&&n.m(t,r),T(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Cr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Dr(t){let e,n;return e=new An({props:{cls:Te("separator",Er,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Vr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Te("separator",Er,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Pr(t,e,r){let i,o,a,s,l,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{json:p={}}=e,{templateContext:f}=e,{origJson:g}=e,{layoutParams:m}=e;const v=wt(pe);let y="horizontal",$="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&r(0,p=t.json),"templateContext"in t&&r(1,f=t.templateContext),"origJson"in t&&r(2,g=t.origJson),"layoutParams"in t&&r(3,m=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(r(7,i=v.getDerivedFromVars(p.delimiter_style)),d(),d=h(i,(t=>r(12,u=t)))),4352&t.$$.dirty&&r(8,y=Ar(null==u?void 0:u.orientation,y)),4096&t.$$.dirty&&r(6,o=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),4608&t.$$.dirty&&r(9,$=_e(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":ye(1)),256&t.$$.dirty&&r(10,s="horizontal"===y?ye(1):"100%"),3584&t.$$.dirty&&r(5,l={background:$,width:a,height:s}),256&t.$$.dirty&&r(4,c={orientation:y})},[p,f,g,m,c,l,o,i,y,$,s,a,u]}const jr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Fr(t){return t.startsWith("data:")?xe(t):"data:image/jpg;base64,".concat(xe(t))}function Sr(t){let e,n;return e=new An({props:{cls:Te("image",jr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Tr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Te("image",jr,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ir(t){let e,n,r,i,o,a,l;return{c(){e=J("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(){H(e,"class",n=jr.image__image),u(e.src,r=t[4]===Jr?zr:t[5])||H(e,"src",r),H(e,"loading","lazy"),H(e,"decoding","async"),H(e,"style",i=ve(t[9])),H(e,"alt",t[16]),H(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){T(n,e,r),a||(l=[W(e,"load",t[26]),W(e,"error",t[27])],a=!0)},p(t,n){48&n[0]&&!u(e.src,r=t[4]===Jr?zr:t[5])&&H(e,"src",r),512&n[0]&&i!==(i=ve(t[9]))&&H(e,"style",i),65536&n[0]&&H(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&H(e,"aria-hidden",o)},d(t){t&&M(e),a=!1,s(l)}}}function Nr(t){let e,n,r,i,o,a,l,c,d,h="".concat(t[6],"%");return{c(){e=J("span"),n=J("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(){H(n,"class",r=jr.image__image),u(n.src,i=t[4]===Jr?zr:t[5])||H(n,"src",i),H(n,"loading","lazy"),H(n,"decoding","async"),H(n,"style",o=ve(t[9])),H(n,"alt",t[16]),H(n,"aria-hidden",a=t[16]?null:"true"),H(e,"class",l=jr["image__aspect-wrapper"]),st(e,"padding-bottom",h)},m(r,i){T(r,e,i),N(e,n),c||(d=[W(n,"load",t[26]),W(n,"error",t[27])],c=!0)},p(t,r){48&r[0]&&!u(n.src,i=t[4]===Jr?zr:t[5])&&H(n,"src",i),512&r[0]&&o!==(o=ve(t[9]))&&H(n,"style",o),65536&r[0]&&H(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&H(n,"aria-hidden",a),64&r[0]&&h!==(h="".concat(t[6],"%"))&&st(e,"padding-bottom",h)},d(t){t&&M(e),c=!1,s(d)}}}function Or(t){let e;function n(t,e){return t[10].aspect?Nr:Ir}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function Tr(t){let e,n=t[7],r=Or(t);return{c(){r.c(),e=U()},l(t){r.l(t),e=U()},m(t,n){r.m(t,n),T(t,e,n)},p(t,i){128&i[0]&&d(n,n=t[7])?(r.d(1),r=Or(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function Mr(t){let e,n,r=!t[8]&&Sr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[8]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),256&n[0]&&Ut(r,1)):(r=Sr(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const zr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Jr=2;function Br(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,P,j,F,S,I,N,O,T,M=n,z=n,J=n,B=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,X=n,Y=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=wt(pe);let rt,it=0,ot=!1,at="rgba(0,0,0,0.08)",st=!1,lt="",ct="none",ut="50% 50%";let dt,ht="0",pt="source_in",ft="",gt="",mt=0,vt=0,yt=0,$t="",_t="";return bt((()=>{nt.removeSvgFilter(dt,pt)})),t.$$set=t=>{"json"in t&&r(0,Z=t.json),"templateContext"in t&&r(1,Q=t.templateContext),"origJson"in t&&r(2,tt=t.origJson),"layoutParams"in t&&r(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(25,i=nt.getDerivedFromVars(Z.image_url)),X(),X=h(i,(t=>r(55,O=t)))),1&t.$$.dirty[0]&&(r(24,o=nt.getDerivedFromVars(Z.gif_url)),Y(),Y=h(o,(t=>r(56,T=t)))),268435457&t.$$.dirty[0]|50331648&t.$$.dirty[1]){let t="gif"===Z.type?T:O;r(28,ot="empty://"===t),ot&&(t=zr),r(5,rt=t)}if(32&t.$$.dirty[0]&&r(4,it=0),33&t.$$.dirty[0]&&(rt?r(8,st=!1):(r(8,st=!0),nt.logError(fe(new Error('Missing "'.concat("gif"===Z.type?"gif_url":"image_url",'" for "').concat(Z.type,'"')))))),1&t.$$.dirty[0]&&(r(23,a=nt.getDerivedFromVars(Z.width)),K(),K=h(a,(t=>r(54,N=t)))),8388608&t.$$.dirty[1]&&r(42,s="wrap_content"===(null==N?void 0:N.type)),1&t.$$.dirty[0]&&(r(22,l=nt.getDerivedFromVars(Z.height)),G(),G=h(l,(t=>r(53,I=t)))),4194304&t.$$.dirty[1]&&r(41,c="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(r(21,u=nt.getDerivedFromVars(Z.preview)),q(),q=h(u,(t=>r(52,S=t)))),268435472&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&r(30,lt=(0===it||it===Jr||ot)&&S?'url("'.concat(Fr(S),'")'):""),1&t.$$.dirty[0]&&(r(20,d=nt.getDerivedFromVars(Z.placeholder_color)),H(),H=h(d,(t=>r(51,F=t)))),805306384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&r(29,at=0===it||it===Jr||ot?_e(F,1,at):""),1&t.$$.dirty[0]&&(r(19,p=nt.getDerivedFromVars(Z.scale)),W(),W=h(p,(t=>r(50,j=t)))),524289&t.$$.dirty[1]&&r(31,ct=Ve(j)||ct),1&t.$$.dirty[0]&&(r(18,f=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),U(),U=h(f,(t=>r(49,P=t)))),262144&t.$$.dirty[1]&&r(32,ut=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:De(t)}(P,ut)),1&t.$$.dirty[0]&&(r(17,g=nt.getDerivedFromVars(Z.accessibility)),L(),L=h(g,(t=>r(48,D=t)))),131072&t.$$.dirty[1]&&r(16,m=(null==D?void 0:D.description)||""),1&t.$$.dirty[0]&&(r(15,v=nt.getDerivedFromVars(Z.aspect)),R(),R=h(v,(t=>r(47,V=t)))),65536&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&ln(t)?r(6,ht=(100/Number(t)).toFixed(2)):r(6,ht="0")}if(1&t.$$.dirty[0]&&(r(14,y=nt.getDerivedFromVars(Z.tint_color)),B(),B=h(y,(t=>r(46,C=t)))),1&t.$$.dirty[0]&&(r(13,$=nt.getDerivedFromVars(Z.tint_mode)),J(),J=h($,(t=>r(45,A=t)))),49164&t.$$.dirty[1]){const t=C?_e(C):void 0,e=zn(A,pt);t===dt&&e===pt||(nt.removeSvgFilter(dt,pt),r(7,ft=t?nt.addSvgFilter(t,e):""),r(33,dt=t),r(34,pt=e))}if(1&t.$$.dirty[0]&&(r(12,b=nt.getDerivedFromVars(Z.appearance_animation)),z(),z=h(b,(t=>r(44,E=t)))),8192&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;r(35,gt=qe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(38,yt=Le(t.duration,300)),r(37,vt=Le(t.start_delay,0)),r(36,mt=Le(t.alpha,0))}if(1&t.$$.dirty[0]&&(r(11,_=nt.getDerivedFromVars(Z.filters)),M(),M=h(_,(t=>r(43,k=t)))),4096&t.$$.dirty[1]){let t="",e="";Array.isArray(k)&&k.length&&(t=cn(k,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(39,$t=t),r(40,_t=e)}80&t.$$.dirty[0]|3088&t.$$.dirty[1]&&r(10,w={aspect:"0"!==ht,"is-width-content":s,"is-height-content":c,loaded:1===it,"before-appearance":Boolean(gt)&&0===it}),1610612880&t.$$.dirty[0]|1011&t.$$.dirty[1]&&r(9,x={"background-image":lt,"background-color":lt?void 0:at,"background-size":ct,"clip-path":_t||void 0,"object-fit":ct,"object-position":ut,filter:[1===it&&ft?"url(#".concat(ft,")"):"",$t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":gt||void 0,"--divkit-appearance-fade-start":gt?mt:void 0,"--divkit-appearance-delay":gt?"".concat(vt,"ms"):void 0,"--divkit-appearance-duration":gt?"".concat(yt,"ms"):void 0})},[Z,Q,tt,et,it,rt,ht,ft,st,x,w,_,b,$,y,v,m,g,f,p,d,u,l,a,o,i,function(){0===it&&r(4,it=1)},function(){0===it&&r(4,it=Jr)},ot,at,lt,ct,ut,dt,pt,gt,mt,vt,yt,$t,_t,c,s,k,E,A,C,V,D,P,j,F,S,I,N,O,T]}const Rr=class extends le{constructor(t){super(),ae(this,t,Br,Mr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Lr={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Ur(t){return t>0&&t<1}function Wr(t){return String(Math.ceil(1e3*t)/1e3)}function Hr(t,e,n){if(t.some(Ur)){const e=Math.max(...t.filter(Ur).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(ye(r*t[e]/i),",").concat(Wr(t[e]),"fr)"):t[e]?o[e]="".concat(Wr(t[e]),"fr"):o[e]="auto";return o.join(" ")}function qr(t,e,n){const r=t.slice();return r[30]=e[n],r}function Gr(t){let e,n;return e=new An({props:{cls:Te("grid",Lr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],parentOf:t[0].items,replaceItems:t[12],$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Te("grid",Lr,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),128&n[0]&&(r.style=t[7]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),32&n[0]|4&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Kr(t){let e,n;return e=new cs({props:{layoutParams:t[30].layoutParams,div:t[30].json,templateContext:t[30].templateContext,origJson:t[30].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[30].layoutParams),32&n[0]&&(r.div=t[30].json),32&n[0]&&(r.templateContext=t[30].templateContext),32&n[0]&&(r.origJson=t[30].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Xr(t){let e,n,r=Gt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Kr(qr(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=Gt(t[5]),a=0;a<r.length;a+=1){const o=qr(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Kr(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Yr(t){let e,r,i=t[5],o=Xr(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){32&r[0]&&d(i,i=t[5])?(Rt(),Wt(o,1,1,n),Lt(),o=Xr(t),o.c(),Ut(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ut(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function Zr(t){let e,n,r=!t[6]&&Gr(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[6]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),64&n[0]&&Ut(r,1)):(r=Gr(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Qr(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v=n,y=n,$=n,b=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b()));let{json:_={}}=e,{templateContext:w}=e,{origJson:x}=e,{layoutParams:k}=e;const E=wt(pe);let A,C,V=!1,D=1,P=[],j=[],F=[],S=[],I=0,N=!1,O="top",T="left";return t.$$set=t=>{"json"in t&&r(0,_=t.json),"templateContext"in t&&r(1,w=t.templateContext),"origJson"in t&&r(2,x=t.origJson),"layoutParams"in t&&r(3,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(24,i=_.items),16777216&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(13,V=!1):(r(13,V=!0),E.logError(fe(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(_.column_count)),b(),b=h(o,(t=>r(28,m=t)))),268451840&t.$$.dirty[0]&&r(14,D=Vn(m,D)),16785410&t.$$.dirty[0]&&r(23,a=(!V&&i||[]).map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8388608&t.$$.dirty[0]){let t=[];a.forEach((e=>{t.push(E.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(4,A=de(t,(t=>[...t]))),$(),$=h(A,(t=>r(27,g=t)))}if(144162824&t.$$.dirty[0]){const t={};let e=0,n=0;r(15,P=[]),r(16,j=[]),r(17,F=[]),r(18,S=[]),r(20,N=!1),r(5,C=a.map(((i,o)=>{var a,s,l,c;const u=g[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={x:e,y:n,colSpan:d,rowSpan:h},f="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(l=u.width)||void 0===l?void 0:l.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=n;e<n+h;++e)t[i+"_"+e]?r(20,N=!0):(t[i+"_"+e]=!0,(!P[i]||P[i]<f)&&r(15,P[i]=f,P),(!j[e]||j[e]<m)&&r(16,j[e]=m,j),(!F[i]||F[i]<v)&&r(17,F[i]=v,F),(!S[e]||S[e]<y)&&r(18,S[e]=y,S));do{++e,e>=D&&(e=0,++n)}while(t[e+"_"+n]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:p,fakeElement:(null==k?void 0:k.fakeElement)||!1}})}))),0!==e&&r(20,N=!0),N&&E.logError(fe(new Error('Mismatching "grid" rows/columns'))),r(19,I=n)}1&t.$$.dirty[0]&&(r(10,s=E.getDerivedFromVars(_.content_alignment_vertical)),y(),y=h(s,(t=>r(26,f=t)))),69206016&t.$$.dirty[0]&&r(21,O=Tn(f,O)),1&t.$$.dirty[0]&&(r(9,l=E.getDerivedFromVars(_.content_alignment_horizontal)),v(),v=h(l,(t=>r(25,p=t)))),37748736&t.$$.dirty[0]&&r(22,T=On(p,T)),6291456&t.$$.dirty[0]&&r(8,c={valign:O,halign:T}),1032192&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Hr(P,F,D),"grid-template-rows":Hr(j,S,I)}),1056768&t.$$.dirty[0]&&r(6,d=V||N)},[_,w,x,k,A,C,d,u,c,l,s,o,function(t){r(0,_=Object.assign(Object.assign({},_),{items:t}))},V,D,P,j,F,S,I,N,O,T,a,i,p,f,g,m]}const ti={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":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function ei(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function ni(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:ri}=C;function ii(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function oi(t,e,n){const r=t.slice();return r[78]=e[n],r}function ai(t){let e,n;return e=new An({props:{cls:Te("gallery",ti,t[17]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[33],$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=Te("gallery",ti,t[17])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1024&n[0]&&(r.parentOf=t[10]),1342995408&n[0]|524288&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function si(t){let e,n;return e=new cs({props:{layoutParams:t[8],div:t[78].json,templateContext:t[78].templateContext,origJson:t[78].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),268435456&n[0]&&(r.div=t[78].json),268435456&n[0]&&(r.templateContext=t[78].templateContext),268435456&n[0]&&(r.origJson=t[78].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function li(t){let e,n,r,i,o,a=t[77],s=Gt(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=si(oi(t,s,e));const c=t=>Wt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[63](e,a),d=()=>t[63](null,a);return{c(){e=J("div");for(let t=0;t<l.length;t+=1)l[t].c();n=L(),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=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=ti.gallery__items),H(e,"style",i=ve(t[18]))},m(t,r){T(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);N(e,n),u(),o=!0},p(r,h){if(t=r,268435712&h[0]){let r;for(s=Gt(t[75]),r=0;r<s.length;r+=1){const i=oi(t,s,r);l[r]?(l[r].p(i,h),Ut(l[r],1)):(l[r]=si(i),l[r].c(),Ut(l[r],1),l[r].m(e,n))}for(Rt(),r=s.length;r<l.length;r+=1)c(r);Lt()}(!o||262144&h[0]&&i!==(i=ve(t[18])))&&H(e,"style",i),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Ut(l[t]);o=!0}},o(t){l=l.filter(ri);for(let t=0;t<l.length;t+=1)Wt(l[t]);o=!1},d(t){t&&M(e),z(l,t),d()}}}function ci(t){let e,n,r=Gt(t[28]),i=[];for(let e=0;e<r.length;e+=1)i[e]=li(ii(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(268701952&n[0]){let a;for(r=Gt(t[28]),a=0;a<r.length;a+=1){const o=ii(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=li(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(ri);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function ui(t){let e,n,r=t[13]&&t[9]&&di(t),i=t[14]&&t[9]&&hi(t);return{c(){r&&r.c(),e=L(),i&&i.c(),n=U()},l(t){r&&r.l(t),e=it(t),i&&i.l(t),n=U()},m(t,o){r&&r.m(t,o),T(t,e,o),i&&i.m(t,o),T(t,n,o)},p(t,o){t[13]&&t[9]?r?r.p(t,o):(r=di(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[14]&&t[9]?i?i.p(t,o):(i=hi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){t&&(M(e),M(n)),r&&r.d(t),i&&i.d(t)}}}function di(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;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(){H(n,"class",r=ti["gallery__arrow-icon-path"]),H(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),H(e,"class",i=ti["gallery__arrow-icon"]),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=J("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(){H(e,"class",r=t[31]||"".concat(ti.gallery__arrow," ").concat(ti.gallery__arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[66]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function hi(t){let e,r,i,o,a=!t[32]&&function(t){let e,n,r,i;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(){H(n,"class",r=ti["gallery__arrow-icon-path"]),H(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),H(e,"class",i=ti["gallery__arrow-icon"]),H(e,"xmlns","http://www.w3.org/2000/svg"),H(e,"width","32"),H(e,"height","32"),H(e,"viewBox","0 0 32 32"),H(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=J("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(){H(e,"class",r=t[32]||"".concat(ti.gallery__arrow," ").concat(ti.gallery__arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=W(e,"click",t[67]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function pi(t){let e,r,i,o,a,s,c,u,h,p,f,g=t[28],m=ci(t),v="horizontal"===t[6]&&ui(t);return{c(){e=J("div"),r=J("div"),m.c(),c=L(),v&&v.c(),u=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=Y(e);r=et(n,"DIV",{class:!0,style:!0});var i=Y(r);m.l(i),i.forEach(M),n.forEach(M),c=it(t),v&&v.l(t),u=U(),this.h()},h(){H(r,"class",i=ti["gallery__items-grid"]),H(r,"style",o=ve(t[19])),H(e,"class",a=ti.gallery__scroller+" "+(t[30]?he["root_restrict-scroll"]:"")),H(e,"style",s=ve(t[7]))},m(n,i){T(n,e,i),N(e,r),m.m(r,null),t[64](r),t[65](e),T(n,c,i),v&&v.m(n,i),T(n,u,i),h=!0,p||(f=W(e,"scroll",(function(){l(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),p=!0)},p(i,l){t=i,268435456&l[0]&&d(g,g=t[28])?(Rt(),Wt(m,1,1,n),Lt(),m=ci(t),m.c(),Ut(m,1),m.m(r,null)):m.p(t,l),(!h||524288&l[0]&&o!==(o=ve(t[19])))&&H(r,"style",o),(!h||1073741824&l[0]&&a!==(a=ti.gallery__scroller+" "+(t[30]?he["root_restrict-scroll"]:"")))&&H(e,"class",a),(!h||128&l[0]&&s!==(s=ve(t[7])))&&H(e,"style",s),"horizontal"===t[6]?v?v.p(t,l):(v=ui(t),v.c(),v.m(u.parentNode,u)):v&&(v.d(1),v=null)},i(t){h||(Ut(m),h=!0)},o(t){Wt(m),h=!1},d(n){n&&(M(e),M(c),M(u)),m.d(n),t[64](null),t[65](null),v&&v.d(n),p=!1,f()}}}function fi(t){let e,n,r,i,o=!t[5]&&ai(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(a,s){o&&o.m(a,s),T(a,e,s),n=!0,r||(i=W(window,"resize",(function(){l(t[9]?t[36]:null)&&(t[9]?t[36]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Rt(),Wt(o,1,1,(()=>{o=null})),Lt()):o?(o.p(t,r),32&r[0]&&Ut(o,1)):(o=ai(t),o.c(),Ut(o,1),o.m(e.parentNode,e))},i(t){n||(Ut(o),n=!0)},o(t){Wt(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}function gi(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,P,j,F,S,I,N,O=n,T=n,M=n,z=n,J=n,B=n,R=n,L=n,U=n,W=n,H=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((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H()));let{json:q={}}=e,{templateContext:G}=e,{origJson:K}=e,{layoutParams:X}=e;const Y=wt(pe);let Z,Q,tt=[],et=!1,nt=!1,rt=null,it=!1;const ot=Y.getCustomization("galleryLeftClass"),at=Y.getCustomization("galleryRightClass");let st=!1;const lt=Y.isDesktop;p(t,lt,(t=>r(62,I=t)));let ct,ut,dt,ht,pt=1,ft="horizontal",gt="start",mt=8,vt="",yt=[],_t={},xt=!1,kt={},At=0;function Ct(){if(!Z)return;const t=Z.scrollLeft,e=Z.scrollWidth,n=Z.offsetWidth;r(13,et=t>2),r(14,nt=t+n<e-2)}const Vt=ni(Ct,50);function Dt(t){Z.scroll({left:Z.scrollLeft+.75*Z.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Pt(){let t=[],e=tt[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<pt;++e){const r=tt[e].children[n];r&&t.push(r)}return t}function jt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ft,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&Z.scroll({[o]:Math.max(0,a[i]+.01-mt/2),behavior:n})}function Ft(t){const e=Pt(),n=Z.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 i=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()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!q.id||st||(null==X?void 0:X.fakeElement)||Y.registerInstance(q.id,{setCurrentItem(t){const e=Pt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');jt(e,t)},setPreviousItem(t){const e=Ft("prev"),n=Pt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),jt(n,r)},setNextItem(t){const e="horizontal"===ft?Z.scrollLeft+Z.offsetWidth===Z.scrollWidth:Z.scrollTop+Z.offsetHeight===Z.scrollHeight,n=Pt();if(e&&"ring"===t)return void jt(n,0);const r=Ft("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),jt(n,i)}}),$t((()=>{r(39,it=!0),!st&&(Ct(),At)&&jt(Pt(),At,"auto")})),bt((()=>{r(39,it=!1),q.id&&!(null==X?void 0:X.fakeElement)&&Y.unregisterInstance(q.id)})),t.$$set=t=>{"json"in t&&r(0,q=t.json),"templateContext"in t&&r(1,G=t.templateContext),"origJson"in t&&r(2,K=t.origJson),"layoutParams"in t&&r(3,X=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(10,i=q.items),1024&t.$$.dirty[0]&&((null==i?void 0:i.length)&&Array.isArray(i)?r(5,st=!1):(r(5,st=!0),Y.logError(fe(new Error('Incorrect or empty "items" prop for div "gallery"'))))),1058&t.$$.dirty[0]&&r(51,o=(!st&&i||[]).map((t=>{let e=t,n=G;return({templateContext:n,json:e}=Y.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|256&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(9,a=I&&it&&!st),528&t.$$.dirty[0]|128&t.$$.dirty[1]&&(a?"undefined"!=typeof ResizeObserver&&(r(38,rt=new ResizeObserver((()=>{Vt()}))),rt.observe(Q)):rt&&(rt.disconnect(),r(38,rt=null))),1&t.$$.dirty[0]&&(r(29,s=Y.getDerivedFromVars(q.column_count)),W(),W=h(s,(t=>r(61,S=t)))),1073742336&t.$$.dirty[1]&&r(40,pt=Vn(S,pt)),1049088&t.$$.dirty[1]&&r(28,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(o,pt)),1&t.$$.dirty[0]&&(r(27,c=Y.getDerivedFromVars(q.orientation)),U(),U=h(c,(t=>r(60,F=t)))),64&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(6,ft=Ar(F,ft)),1&t.$$.dirty[0]&&(r(26,u=Y.getDerivedFromVars(q.cross_content_alignment)),L(),L=h(u,(t=>r(59,j=t)))),268436480&t.$$.dirty[1]&&r(41,gt=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(j,gt)),1&t.$$.dirty[0]&&(r(25,d=Y.getDerivedFromVars(q.item_spacing)),R(),R=h(d,(t=>r(58,P=t)))),134221824&t.$$.dirty[1]&&(r(43,mt=Le(P,mt)),r(42,ct=ye(mt))),1&t.$$.dirty[0]&&(r(24,f=Y.getDerivedFromVars(q.cross_spacing)),B(),B=h(f,(t=>r(57,D=t)))),67129344&t.$$.dirty[1]&&(r(45,dt=Le(D,mt)),r(44,ut=ye(dt))),1&t.$$.dirty[0]&&(r(23,g=Y.getDerivedFromVars(q.paddings)),J(),J=h(g,(t=>r(56,V=t)))),33587200&t.$$.dirty[1]&&r(46,vt=Re(V,vt)),64&t.$$.dirty[0]&&r(50,m="horizontal"===ft?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|1048576&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===ft?"width":"height";t.push(Y.getDerivedFromVars(e.json[n]))})),r(15,ht=de(t,(t=>t))),z(),z=h(ht,(t=>r(55,C=t)))}if(64&t.$$.dirty[0]|16843264&t.$$.dirty[1]&&(r(47,yt=[]),pt>1?yt.push("auto"):C.forEach((t=>{!t&&"horizontal"===ft||"match_parent"===(null==t?void 0:t.type)?yt.push("100%"):yt.push("max-content")}))),1&t.$$.dirty[0]&&(r(22,v=Y.getDerivedFromVars(q.scroll_mode)),M(),M=h(v,(t=>r(54,A=t)))),456&t.$$.dirty[0]|8394240&t.$$.dirty[1]){const t={};let e={};r(48,xt=!1),(null==X?void 0:X.fakeElement)&&(e.fakeElement=!0),"horizontal"===ft?e.parentVAlign=gt:e.parentHAlign=gt,"paging"===A&&(r(48,xt=!0),e.scrollSnap="start",t["horizontal"===ft?"scroll-padding-left":"scroll-padding-top"]=ye(mt/2)),1===pt&&(e.parentLayoutOrientation=ft),r(7,_t=He(t,_t)),r(8,kt=He(e,kt))}1&t.$$.dirty[0]&&(r(21,y=Y.getDerivedFromVars(q.restrict_parent_scroll)),H(),H=h(y,(t=>r(30,N=t)))),1&t.$$.dirty[0]&&(r(20,$=Y.getDerivedFromVars(q.scrollbar)),T(),T=h($,(t=>r(53,E=t)))),40960&t.$$.dirty[1]&&r(19,b={padding:vt,"grid-gap":ut}),591872&t.$$.dirty[1]&&r(18,_={"grid-gap":ct,[m]:ei(yt)}),64&t.$$.dirty[0]|4325376&t.$$.dirty[1]&&r(17,w={orientation:ft,"scroll-snap":xt,scrollbar:"auto"===E?"auto":"none"}),1&t.$$.dirty[0]&&(r(16,x=Y.getDerivedFromVars(q.default_item)),O(),O=h(x,(t=>r(52,k=t)))),2359296&t.$$.dirty[1]&&r(49,At=Le(k,At))},[q,G,K,X,Q,st,ft,_t,kt,a,i,Z,tt,et,nt,ht,x,w,_,b,$,y,v,g,f,d,u,c,l,s,N,ot,at,function(t){r(0,q=Object.assign(Object.assign({},q),{items:t}))},lt,Ct,Vt,Dt,rt,it,pt,gt,ct,mt,ut,dt,vt,yt,xt,At,m,o,k,E,A,C,V,D,P,j,F,S,I,function(t,e){Et[t?"unshift":"push"]((()=>{tt[e]=t,r(12,tt)}))},function(t){Et[t?"unshift":"push"]((()=>{Q=t,r(4,Q)}))},function(t){Et[t?"unshift":"push"]((()=>{Z=t,r(11,Z)}))},()=>Dt("left"),()=>Dt("right")]}const mi={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__separator:"divkit-b85bf"},vi=37,yi=39,$i=36,bi=35,{Boolean:_i}=C;function wi(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;return r[89]=i,r}function xi(t,e,n){const r=t.slice();r[88]=e[n];const i=r[88].index;r[89]=i;const o=r[89]===r[6];return r[92]=o,r}function ki(t){let e,n;return e=new An({props:{cls:Te("tabs",mi,t[46]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Pi]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),2147483626&n[0]|4137&n[1]|4&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ei(t){let e,n,r=t[88].title+"";return{c(){e=R(r),n=L()},l(t){e=rt(t,r),n=it(t)},m(t,r){T(t,e,r),T(t,n,r)},p(t,n){524288&n[0]&&r!==(r=t[88].title+"")&&at(e,r)},d(t){t&&(M(e),M(n))}}}function Ai(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[64](t[89],...n)}return i=new an({props:{cls:Te("tabs__item",mi,{selected:t[92],actionable:Boolean(t[88].title_click_action)}),actions:!t[88].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[88].title_click_action],attrs:{id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Ei]},$$scope:{ctx:t}}}),{c(){ne(i.$$.fragment)},l(t){re(i.$$.fragment,t)},m(t,e){ie(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};524352&n[0]&&(l.cls=Te("tabs__item",mi,{selected:t[92],actionable:Boolean(t[88].title_click_action)})),524296&n[0]&&(l.actions=!t[88].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[88].title_click_action]),524360&n[0]&&(l.attrs={id:"".concat(t[44],"-tab-").concat(t[89]),"aria-controls":"".concat(t[44],"-panel-").concat(t[89]),role:"tab",tabindex:!t[92]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[88].title_click_action?void 0:"0","aria-selected":t[92]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|4&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Ut(i.$$.fragment,t),o=!0)},o(t){Wt(i.$$.fragment,t),o=!1},d(t){oe(i,t)}}}function Ci(t){let e,n,r;return{c(){e=J("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=mi.tabs__separator),H(e,"style",r=ve(t[36]))},m(t,n){T(t,e,n)},p(t,n){32&n[1]&&r!==(r=ve(t[36]))&&H(e,"style",r)},d(t){t&&M(e)}}}function Vi(t){let e,n;return e=new cs({props:{div:t[18][t[89]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[89]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Di(t){let e,n,r,i,o,a,s=t[30][t[89]]&&Vi(t);return{c(){e=J("div"),s&&s.c(),n=L(),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=it(r),r.forEach(M),this.h()},h(){H(e,"class",r=Te("tabs__panel",mi,{visible:t[31][t[89]]})),H(e,"role","tabpanel"),H(e,"id",i=t[44]+"-panel-"+t[89]),H(e,"aria-labelledby",o=t[44]+"-tab-"+t[89]),st(e,"left",100*t[89]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),N(e,n),a=!0},p(t,l){t[30][t[89]]?s?(s.p(t,l),1074266112&l[0]&&Ut(s,1)):(s=Vi(t),s.c(),Ut(s,1),s.m(e,n)):s&&(Rt(),Wt(s,1,1,(()=>{s=null})),Lt()),(!a||524288&l[0]|1&l[1]&&r!==(r=Te("tabs__panel",mi,{visible:t[31][t[89]]})))&&H(e,"class",r),(!a||524288&l[0]&&i!==(i=t[44]+"-panel-"+t[89]))&&H(e,"id",i),(!a||524288&l[0]&&o!==(o=t[44]+"-tab-"+t[89]))&&H(e,"aria-labelledby",o),(!a||524288&l[0])&&st(e,"left",100*t[89]+"%")},i(t){a||(Ut(s),a=!0)},o(t){Wt(s),a=!1},d(t){t&&M(e),s&&s.d()}}}function Pi(t){let e,n,r,i,o,a,c,u,d,h,p,f=Gt(t[19]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Ai(xi(t,f,e));const m=t=>Wt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&Ci(t),y=Gt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Di(wi(t,y,e));const b=t=>Wt($[t],1,1,(()=>{$[t]=null}));return{c(){e=J("div");for(let t=0;t<g.length;t+=1)g[t].c();r=L(),v&&v.c(),i=L(),o=J("div"),a=J("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=it(t),v&&v.l(t),i=it(t),o=et(t,"DIV",{class:!0});var s=Y(o);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(){H(e,"class",n=mi.tabs__list+" "+(t[43]?he["root_restrict-scroll"]:"")),H(e,"role","tablist"),st(e,"--divkit-tabs-title-padding",t[17]?ze(t[17]):""),st(e,"--divkit-tabs-font-size",ye(t[7])),st(e,"--divkit-tabs-paddings",t[8]),st(e,"--divkit-tabs-line-height",t[24]),st(e,"--divkit-tabs-letter-spacing",t[25]),st(e,"--divkit-tabs-active-font-weight",t[10]||""),st(e,"--divkit-tabs-inactive-font-weight",t[11]||""),st(e,"--divkit-tabs-active-font-family",t[26]||""),st(e,"--divkit-tabs-inactive-font-family",t[27]||""),st(e,"--divkit-tabs-active-text-color",t[12]),st(e,"--divkit-tabs-inactive-text-color",t[13]),st(e,"--divkit-tabs-active-background-color",t[14]),st(e,"--divkit-tabs-inactive-background-color",t[15]),st(e,"--divkit-tabs-border-radius",t[9]),st(e,"--divkit-tabs-items-spacing",t[16]?$e(t[16]):""),H(a,"class",c=Te("tabs__swiper",mi,{inited:t[28],animated:t[29]})),H(o,"class",u=mi.tabs__panels+" "+(t[43]?he["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[65](e),T(n,r,s),v&&v.m(n,s),T(n,i,s),T(n,o,s),N(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[66](a),t[67](o),d=!0,h||(p=[W(e,"keydown",t[48]),W(a,"touchstart",(function(){l(t[34]?t[49]:void 0)&&(t[34]?t[49]:void 0).apply(this,arguments)})),W(a,"touchmove",(function(){l(t[34]?t[50]:void 0)&&(t[34]?t[50]:void 0).apply(this,arguments)})),W(a,"touchend",(function(){l(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)})),W(a,"touchcancel",(function(){l(t[34]?t[51]:void 0)&&(t[34]?t[51]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,524360&s[0]|73728&s[1]){let n;for(f=Gt(t[19]),n=0;n<f.length;n+=1){const r=xi(t,f,n);g[n]?(g[n].p(r,s),Ut(g[n],1)):(g[n]=Ai(r),g[n].c(),Ut(g[n],1),g[n].m(e,null))}for(Rt(),n=f.length;n<g.length;n+=1)m(n);Lt()}if((!d||4096&s[1]&&n!==(n=mi.tabs__list+" "+(t[43]?he["root_restrict-scroll"]:"")))&&H(e,"class",n),131072&s[0]&&st(e,"--divkit-tabs-title-padding",t[17]?ze(t[17]):""),128&s[0]&&st(e,"--divkit-tabs-font-size",ye(t[7])),256&s[0]&&st(e,"--divkit-tabs-paddings",t[8]),16777216&s[0]&&st(e,"--divkit-tabs-line-height",t[24]),33554432&s[0]&&st(e,"--divkit-tabs-letter-spacing",t[25]),1024&s[0]&&st(e,"--divkit-tabs-active-font-weight",t[10]||""),2048&s[0]&&st(e,"--divkit-tabs-inactive-font-weight",t[11]||""),67108864&s[0]&&st(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&s[0]&&st(e,"--divkit-tabs-inactive-font-family",t[27]||""),4096&s[0]&&st(e,"--divkit-tabs-active-text-color",t[12]),8192&s[0]&&st(e,"--divkit-tabs-inactive-text-color",t[13]),16384&s[0]&&st(e,"--divkit-tabs-active-background-color",t[14]),32768&s[0]&&st(e,"--divkit-tabs-inactive-background-color",t[15]),512&s[0]&&st(e,"--divkit-tabs-border-radius",t[9]),65536&s[0]&&st(e,"--divkit-tabs-items-spacing",t[16]?$e(t[16]):""),t[20]?v?v.p(t,s):(v=Ci(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&s[0]|8193&s[1]){let e;for(y=Gt(t[19]),e=0;e<y.length;e+=1){const n=wi(t,y,e);$[e]?($[e].p(n,s),Ut($[e],1)):($[e]=Di(n),$[e].c(),Ut($[e],1),$[e].m(a,null))}for(Rt(),e=y.length;e<$.length;e+=1)b(e);Lt()}(!d||805306368&s[0]&&c!==(c=Te("tabs__swiper",mi,{inited:t[28],animated:t[29]})))&&H(a,"class",c),(!d||4096&s[1]&&u!==(u=mi.tabs__panels+" "+(t[43]?he["root_restrict-scroll"]:"")))&&H(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Ut(g[t]);for(let t=0;t<y.length;t+=1)Ut($[t]);d=!0}},o(t){g=g.filter(_i);for(let t=0;t<g.length;t+=1)Wt(g[t]);$=$.filter(_i);for(let t=0;t<$.length;t+=1)Wt($[t]);d=!1},d(n){n&&(M(e),M(r),M(i),M(o)),z(g,n),t[65](null),v&&v.d(n),z($,n),t[66](null),t[67](null),h=!1,s(p)}}}function ji(t){let e,n,r=!t[4]&&ki(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[4]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),16&n[0]&&Ut(r,1)):(r=ki(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Fi(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D=n,P=n,j=n,F=n,S=n,I=n,N=n,O=n,T=n;var M,z;t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T()));let{json:J={}}=e,{templateContext:B}=e,{origJson:R}=e,{layoutParams:L}=e;const U=wt(pe),W=U.genId("tabs");let H=!1,q=ue([]);p(t,q,(t=>r(19,$=t)));let G,K,X,Y={};const Z=U.getJsonWithVars(J.selected_tab);let Q,tt,et=Z&&Number(Z)||0,nt=12,rt="",it="",ot="",at="",st="",lt="",ct="",ut="",dt="",ht="",pt=0,ft="",gt="",mt=null,vt=!1,yt=!1,$t=et,_t=[],xt=[];async function kt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if($t=et,r(6,et=t),St(),r(29,yt=!0),Vt(100*-et),Dt(),async function(){await jt();const t=document.getElementById("".concat(W,"-panel-").concat(et));t&&r(22,K.style.height=ye(t.offsetHeight),K)}(),Ft(),Ot=-et*K.clientWidth,e){await jt();const t=G.querySelector(".".concat(mi.tabs__item_selected));t&&t.focus()}}function At(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==$?void 0:$.length;if(!n)return;const r=$.map((t=>t.index));let i=r.indexOf(et)+t;i>=n?i=0:i<0&&(i=n-1),kt(r[i],e)}function Ct(t,e){return et===e||(kt(e),!1)}async function Vt(t){await jt(),r(23,X.style.transform="translate3d(".concat(t,"%,0,0)"),X)}function Dt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,et-1):Math.min(et,$t),n=t?Math.min(i.length-1,et+1):Math.max(et,$t);r(30,_t=_t.map(((t,r)=>t||r>=e&&r<=n))),r(31,xt=xt.map(((t,r)=>r>=e&&r<=n)))}let Pt=null;function Ft(){Pt&&clearTimeout(Pt),Pt=window.setTimeout((()=>{r(31,xt=i.map(((t,e)=>e===et)))}),400)}function St(){vt||(r(28,vt=!0),r(22,K.style.height=ye(K.clientHeight),K),r(23,X.style.transform="translate3d(".concat(100*-$t,"%,0,0)"),X))}let It,Nt,Ot,Tt=null,Mt=null,zt=!1,Jt=!1;return!J.id||H||(null==L?void 0:L.fakeElement)||U.registerInstance(J.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');kt(t)},setPreviousItem(t){let e=et-1;e<0&&(e="ring"===t?i.length-1:et),kt(e)},setNextItem(t){let e=et+1;e>i.length-1&&(e="ring"===t?0:et),kt(e)}}),bt((()=>{J.id&&!(null==L?void 0:L.fakeElement)&&U.unregisterInstance(J.id)})),t.$$set=t=>{"json"in t&&r(0,J=t.json),"templateContext"in t&&r(1,B=t.templateContext),"origJson"in t&&r(2,R=t.origJson),"layoutParams"in t&&r(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&r(18,i=J.items||[]),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=U.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):U.logError(fe(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),q.set(t)}else q.set([]);if(524288&t.$$.dirty[0]&&((null==$?void 0:$.length)?r(4,H=!1):(r(4,H=!0),U.logError(fe(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(r(42,o=U.getDerivedFromVars(J.width)),O(),O=h(o,(t=>r(63,C=t)))),1&t.$$.dirty[0]&&(r(41,a=U.getDerivedFromVars(J.height)),N(),N=h(a,(t=>r(62,A=t)))),40&t.$$.dirty[0]|3&t.$$.dirty[2]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==C?void 0:C.type)&&(t.parentHorizontalWrapContent=!0),A&&"wrap_content"!==A.type||(t.parentVerticalWrapContent=!0),r(5,Y=He(t,Y))}if(262225&t.$$.dirty[0]&&!H&&(et<0||et>=i.length)&&(U.logError(fe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab,length:i.length}})),r(6,et=et<0?0:i.length-1)),524369&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&(H||$.some((t=>et===t.index))||(U.logError(fe(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:J.selected_tab}})),r(6,et=(null===r(52,M=$[0])||void 0===M?void 0:M.index)||0))),1&t.$$.dirty[0]&&(r(40,s=U.getDerivedFromVars(J.tab_title_style)),I(),I=h(s,(t=>r(61,E=t)))),1073741824&t.$$.dirty[1]&&r(56,l=E||{}),128&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(7,nt=Vn(l.font_size,nt)),384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/nt*10,right:(Number(t.right)||0)/nt*10,bottom:(Number(t.bottom)||0)/nt*10,left:(Number(t.left)||0)/nt*10};r(8,rt=Re(e,rt))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&ln(t)&&r(24,it=ye(t/nt*10))}if(128&t.$$.dirty[0]|33554432&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Be(t)&&r(25,ot=ye(t/nt*10))}if(640&t.$$.dirty[0]|37748736&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==r(53,z=l.corner_radius)&&void 0!==z?z:1e3;l.corners_radius?r(9,at=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!Be(i[t]))return r;return Ye(t,e,n)}(l.corners_radius,t,nt,at)):Be(t)&&r(9,at=ye(t/nt*10))}1024&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(10,Q=Pn(l.active_font_weight||l.font_weight,Q)),l.font_family&&"string"==typeof l.font_family?r(26,st=U.typefaceProvider(l.font_family,{fontWeight:Q||400})):r(26,st="")),2048&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&(r(11,tt=Pn(l.inactive_font_weight||l.font_weight,tt)),l.font_family&&"string"==typeof l.font_family?r(27,lt=U.typefaceProvider(l.font_family,{fontWeight:tt||400})):r(27,lt="")),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(12,ct=_e(l.active_text_color,1,ct)),8192&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,ut=_e(l.inactive_text_color,1,ut)),16384&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(14,dt=_e(l.active_background_color,1,dt)),32768&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(15,ht=_e(l.inactive_background_color,1,ht)),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(16,pt=Le(l.item_spacing,pt)),1&t.$$.dirty[0]&&(r(39,c=U.getDerivedFromVars(J.has_separator)),S(),S=h(c,(t=>r(20,k=t)))),1&t.$$.dirty[0]&&(r(38,u=U.getDerivedFromVars(J.separator_color)),F(),F=h(u,(t=>r(60,x=t)))),1&t.$$.dirty[0]&&(r(37,d=U.getDerivedFromVars(J.separator_paddings)),j(),j=h(d,(t=>r(59,w=t)))),1048576&t.$$.dirty[0]|830472192&t.$$.dirty[1]&&k&&(x&&r(54,ft=_e(x,1,ft)),w&&r(55,gt=Re(w,gt))),25165824&t.$$.dirty[1]&&r(36,f={background:ft,margin:gt}),1&t.$$.dirty[0]&&(r(35,g=U.getDerivedFromVars(J.switch_tabs_by_content_swipe_enabled)),P(),P=h(g,(t=>r(58,_=t)))),134217728&t.$$.dirty[1]&&r(34,m=void 0===_||Boolean(_)),1&t.$$.dirty[0]&&(r(33,v=U.getDerivedFromVars(J.restrict_parent_scroll)),T(),T=h(v,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(32,y=U.getDerivedFromVars(J.title_paddings)),D(),D=h(y,(t=>r(57,b=t)))),131072&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(17,mt=Xe(b||void 0,mt)),262144&t.$$.dirty[0]&&(H||(r(30,_t=i.map(((t,e)=>e===et))),r(31,xt=i.map(((t,e)=>e===et)))))},[J,B,R,L,H,Y,et,nt,rt,at,Q,tt,ct,ut,dt,ht,pt,mt,i,$,k,G,K,X,it,ot,st,lt,vt,yt,_t,xt,y,v,m,g,f,d,u,c,s,a,o,V,W,q,{},Ct,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===vi)At(-1,!0);else if(t.which===yi)At(1,!0);else if(t.which===$i)kt(0,!0);else{if(t.which!==bi)return;kt(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(he["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==K||(zt=!1,Jt=!1,Tt=tn(t),Mt=null,It=Date.now(),Nt=Ot||-et*K.clientWidth,r(29,yt=!1),Pt&&clearTimeout(Pt))},function(t){const e=tn(t);if(!Tt||Mt&&Mt.x===e.x&&Mt.y===e.y)return;Mt=e;const n=K.clientWidth;if(zt){Ot=e.x-Tt.x+Nt;const t=n*i.length;if(Ot>0)Ot=Ot*n/(Ot+3*n);else if(-Ot+n>t){let e=-Ot+n-t;e=e*n/(e+3*n),Ot=n-t-e}Vt(100*Ot/n)}else Math.abs(e.y-Tt.y)>10?Jt=!0:!Jt&&Math.abs(e.x-Tt.x)>8&&(St(),zt=!0,Tt=e,Vt(100*-et),Dt(!0));zt&&t.cancelable&&t.preventDefault()},function(){Jt=!1,Tt=null;let t=et;if(!zt)return;zt=!1;const e=Math.min(512,K.clientWidth);Math.abs(Nt-Ot)>e/4*Math.min(1,(Date.now()-It)/750)&&(t+=Nt>Ot?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===et?(Ot=-t*e,Vt(100*-t),Ft()):kt(t)},M,z,ft,gt,l,b,_,w,x,E,A,C,(t,e)=>Ct(0,t),function(t){Et[t?"unshift":"push"]((()=>{G=t,r(21,G)}))},function(t){Et[t?"unshift":"push"]((()=>{X=t,r(23,X)}))},function(t){Et[t?"unshift":"push"]((()=>{K=t,r(22,K)}))}]}const Si={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ii(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Ni(t){return t*t*t}function Oi(t){const e=t-1;return e*e*e+1}function Ti(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const Mi=Ti([.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]),zi=Ti([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]),Ji={linear:r,ease:Mi,ease_in:Ni,ease_out:Oi,ease_in_out:Ii,spring:zi},Bi=200,Ri=0,Li=0,Ui=0;function Wi(t){return Math.max(...t.map((t=>(Number(t.duration)||Bi)+(Number(t.start_delay)||Ri))))}function Hi(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Ri,a=Number(t.duration)||Bi,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Ji[t.interpolator||"ease_in_out"]||Ii)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Li)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||Ui),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"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),u=s.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=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=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function qi(t,e,n){return t*(1-n)+e*n}const Gi={linear:r,ease:Mi,ease_in:Ni,ease_out:Oi,ease_in_out:Ii,spring:zi},Ki=200,Xi=0;function Yi(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:Xi,duration:null!==(r=s.duration)&&void 0!==r?r:Ki,easing:s.interpolator&&s.interpolator in Gi?Gi[s.interpolator]:Ii,css:t=>["top:".concat(qi(o.top,a.top,t)-i.top,"px"),"left:".concat(qi(o.left,a.left,t)-i.left,"px"),"width:".concat(qi(o.width,a.width,t),"px"),"height:".concat(qi(o.height,a.height,t),"px")].join(";")}}function Zi(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Zi(t))})):e.push(t),e}const Qi={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},to={linear:r,ease:Mi,ease_in:Ni,ease_out:Oi,ease_in_out:Ii,spring:zi},eo=300,no=0;function ro(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Ke(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||eo)+(Number(t.start_delay)||no)))));var a;return i.some((t=>"no_animation"===t.name))?{}:{duration:o,css:t=>{const e=t*o,n=i.map((t=>{const n=Number(t.start_delay)||no,i=Number(t.duration)||eo,o=Math.max(0,Math.min(1,(e-n)/i)),a=(to[t.interpolator||"ease_in_out"]||Ii)(o);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,u;const e=-("in"===r&&null!==(c=t.start_value)&&void 0!==c?c:10),n=-("in"===r?0:null!==(u=t.end_value)&&void 0!==u?u: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 d,h;const e="in"===r&&null!==(d=t.start_value)&&void 0!==d?d: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)),u=[s,c.length?c[c.length-1]:l].filter(Boolean).join(" ");return"transform:".concat(u||"none",";opacity:").concat(a)}}}const{window:io}=C;function oo(t){let e,i,o,a,c,u,d,h;return i=new cs({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=J("div"),ne(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=Y(e);re(i.$$.fragment,n),n.forEach(M),this.h()},h(){H(e,"class",o=Te("tooltip",Qi,t[7])+" "+(t[14]?he.root_platform_desktop:"")),st(e,"top",t[4]),st(e,"left",t[3]),st(e,"width",t[5]),st(e,"height",t[6])},m(n,r){T(n,e,r),ie(i,e,null),t[27](e),u=!0,d||(h=[W(io,"click",t[18]),W(io,"resize",t[19])],d=!0)},p(n,r){t=n;const a={};1&r[0]&&(a.div=t[0].div),2&r[0]&&(a.templateContext=t[1]),i.$set(a),(!u||16512&r[0]&&o!==(o=Te("tooltip",Qi,t[7])+" "+(t[14]?he.root_platform_desktop:"")))&&H(e,"class",o),16&r[0]&&st(e,"top",t[4]),8&r[0]&&st(e,"left",t[3]),32&r[0]&&st(e,"width",t[5]),64&r[0]&&st(e,"height",t[6])},i(n){u||(Ut(i.$$.fragment,n),n&&Ft((()=>{u&&(c&&c.end(1),a=qt(e,ro,{animations:t[15]||t[17],direction:"in"}),a.start())})),u=!0)},o(o){Wt(i.$$.fragment,o),a&&a.invalidate(),o&&(c=function(t,e,i){const o={direction:"out"};let a,c=e(t,i,o),u=!0;const d=Bt;let h;function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||Ht;p&&(a=gt(t,1,0,i,e,o,p));const f=w()+e,g=f+i;Ft((()=>zt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),zt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=f){const t=o((e-f)/i);l(1-t,t)}}return u}))}return d.r+=1,l(c)?Mt().then((()=>{c=c(o),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&mt(t,a),u=!1)}}}(e,ro,{animations:t[16]||t[17],direction:"out"})),u=!1},d(n){n&&M(e),oe(i),t[27](null),n&&c&&c.end(),d=!1,s(h)}}}function ao(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y=n,$=n,b=n,_=n,w=n,x=n;var k,E,A,C;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x()));let{ownerNode:V}=e,{data:D}=e,{internalId:P}=e,{templateContext:j}=e;const F=wt(pe),S=Date.now();let I,N=!1,O="",T="",M="",z="",J=null;function B(){var t,e;if(!I||!V)return;const n=I.parentElement;if(!n)return;const i=I.style.cssText;r(2,I.style.cssText+=";transform: none !important",I);const o=V.getBoundingClientRect(),a=I.getBoundingClientRect(),s=n.getBoundingClientRect();r(2,I.style.cssText=i,I);let l=0,c=0,u=null,h=null,g=0,m=0;const v=F.getJsonWithVars(null===(t=D.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=D.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=o.width,m="match_parent"===(null==y?void 0:y.type)?h=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===f||"bottom-left"===f||"top-left"===f)l=o.left-g;else if("top"===f||"bottom"===f||"center"===f)l=(o.left+o.right)/2-g/2;else{if("right"!==f&&"bottom-right"!==f&&"top-right"!==f)return;l=o.right}if("top"===f||"top-left"===f||"top-right"===f)c=o.top-m;else if("left"===f||"right"===f||"center"===f)c=(o.top+o.bottom)/2-m/2;else{if("bottom-left"!==f&&"bottom"!==f&&"bottom-right"!==f)return;c=o.bottom}l-=s.left,c-=s.top,l+=p||0,c+=d||0,r(3,O="".concat(l,"px")),r(4,T="".concat(c,"px")),r(5,M=null!==u?"".concat(u,"px"):""),r(6,z=null!==h?"".concat(h,"px"):""),r(26,N=!0),null===u||null===h?"undefined"==typeof ResizeObserver||J||(J=new ResizeObserver((()=>{requestAnimationFrame(B)})),J.observe(I)):null==J||J.disconnect()}var R;return $t((()=>{if(F.tooltipRoot){const t=window.getComputedStyle(I);r(2,I.style.fontSize=t.fontSize,I),r(2,I.style.fontFamily=t.fontFamily,I),r(2,I.style.lineHeight=t.lineHeight,I),F.tooltipRoot.appendChild(I)}})),R=()=>{N||B()},yt().$$.after_update.push(R),bt((()=>{null==J||J.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(20,V=t.ownerNode),"data"in t&&r(0,D=t.data),"internalId"in t&&r(21,P=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,o=F.getDerivedFromVars(D.position)),b(),b=h(o,(t=>r(31,f=t)))),12582913&t.$$.dirty[0]&&(r(11,a=F.getDerivedFromVars(null===r(23,E=null===r(22,k=D.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),$(),$=h(a,(t=>r(30,p=t)))),50331649&t.$$.dirty[0]&&(r(10,s=F.getDerivedFromVars(null===r(25,C=null===r(24,A=D.offset)||void 0===A?void 0:A.y)||void 0===C?void 0:C.value)),y(),y=h(s,(t=>r(29,d=t)))),1&t.$$.dirty[0]&&(r(9,l=F.getDerivedFromVars(D.animation_in)),w(),w=h(l,(t=>r(15,m=t)))),1&t.$$.dirty[0]&&(r(8,c=F.getDerivedFromVars(D.animation_out)),x(),x=h(c,(t=>r(16,v=t)))),67108864&t.$$.dirty[0]&&r(7,u={visible:N})},r(13,i=F.isDesktop),_(),_=h(i,(t=>r(14,g=t))),[D,j,I,O,T,M,z,u,c,l,s,a,o,i,g,m,v,{name:"set",items:[{name:"translate"},{name:"fade"}]},function(t){Date.now()-S<100||t.composedPath().includes(I)||F.onTooltipClose(P)},function(){B()},V,P,k,E,A,C,N,function(t){Et[t?"unshift":"push"]((()=>{I=t,r(2,I)}))}]}const so=class extends le{constructor(t){super(),ae(this,t,ao,oo,d,{ownerNode:20,data:0,internalId:21,templateContext:1},null,[-1,-1])}},{Map:lo}=C;function co(t,e,n){const r=t.slice();return r[30]=e[n],r}function uo(t,e,n){const r=t.slice();return r[30]=e[n],r}function ho(t){var e;let n,r,i,o;n=new An({props:{cls:Si.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[yo]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&$o(t);return{c(){ne(n.$$.fragment),r=L(),a&&a.c(),i=U()},l(t){re(n.$$.fragment,t),r=it(t),a&&a.l(t),i=U()},m(t,e){ie(n,t,e),T(t,r,e),a&&a.m(t,e),T(t,i,e),o=!0},p(t,e){var r;const o={};1&e[0]&&(o.json=t[0]),4&e[0]&&(o.origJson=t[2]),2&e[0]&&(o.templateContext=t[1]),8&e[0]&&(o.layoutParams=t[3]),210&e[0]|16&e[1]&&(o.$$scope={dirty:e,ctx:t}),n.$set(o),null!==(r=t[3])&&void 0!==r&&r.tooltips?a?(a.p(t,e),8&e[0]&&Ut(a,1)):(a=$o(t),a.c(),Ut(a,1),a.m(i.parentNode,i)):a&&(Rt(),Wt(a,1,1,(()=>{a=null})),Lt())},i(t){o||(Ut(n.$$.fragment,t),Ut(a),o=!0)},o(t){Wt(n.$$.fragment,t),Wt(a),o=!1},d(t){t&&(M(r),M(i)),oe(n,t),a&&a.d(t)}}}function po(t){let e,r,i=t[7],o=fo(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){128&r[0]&&d(i,i=t[7])?(Rt(),Wt(o,1,1,n),Lt(),o=fo(t),o.c(),Ut(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ut(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function fo(t){let e,n;return e=new cs({props:{div:t[7].div,templateContext:t[1]}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.div=t[7].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function go(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[11](t[30])}return r=new cs({props:{div:t[30].json,templateContext:t[30].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=J("div"),n=J("div"),ne(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);re(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Si["state__animation-child-inner"]),H(e,"class",a=Si["state__animation-child"])},m(t,i){T(t,e,i),N(e,n),ie(r,n,null),N(e,o),l=!0,c||(u=W(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[30].json),64&n[0]&&(i.templateContext=t[30].templateContext),r.$set(i)},i(n){l||(Ut(r.$$.fragment,n),s||Ft((()=>{s=qt(e,Yi,t[30]),s.start()})),l=!0)},o(t){Wt(r.$$.fragment,t),l=!1},d(t){t&&M(e),oe(r),c=!1,u()}}}function mo(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[30].offsetLeft,"px"),h="".concat(t[30].offsetTop,"px"),p="".concat(t[30].width,"px"),f="".concat(t[30].height,"px");function g(){return t[10](t[30])}return r=new cs({props:{div:t[30].json,templateContext:t[30].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=J("div"),n=J("div"),ne(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var a=Y(n);re(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){H(n,"class",i=Si["state__animation-child-inner"]),H(e,"class",a=Si["state__animation-child"]),st(e,"left",d),st(e,"top",h),st(e,"width",p),st(e,"height",f)},m(t,i){T(t,e,i),N(e,n),ie(r,n,null),N(e,o),l=!0,c||(u=W(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[30].json),64&i[0]&&(o.templateContext=t[30].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[30].offsetLeft,"px"))&&st(e,"left",d),64&i[0]&&h!==(h="".concat(t[30].offsetTop,"px"))&&st(e,"top",h),64&i[0]&&p!==(p="".concat(t[30].width,"px"))&&st(e,"width",p),64&i[0]&&f!==(f="".concat(t[30].height,"px"))&&st(e,"height",f)},i(n){l||(Ut(r.$$.fragment,n),s||Ft((()=>{s=qt(e,Hi,t[30]),s.start()})),l=!0)},o(t){Wt(r.$$.fragment,t),l=!1},d(t){t&&M(e),oe(r),c=!1,u()}}}function vo(t,e){let n,r,i,o,a;const s=[mo,go],l=[];function c(t,e){return"direction"in t[30]?0:1}return r=c(e),i=l[r]=s[r](e),{key:t,first:null,c(){n=U(),i.c(),o=U(),this.h()},l(t){n=U(),i.l(t),o=U(),this.h()},h(){this.first=n},m(t,e){T(t,n,e),l[r].m(t,e),T(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Rt(),Wt(l[a],1,1,(()=>{l[a]=null})),Lt(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Ut(i,1),i.m(o.parentNode,o))},i(t){a||(Ut(i),a=!0)},o(t){Wt(i),a=!1},d(t){t&&(M(n),M(o)),l[r].d(t)}}}function yo(t){var e;let n,r,i,o,a=[],s=new lo,l=(null===(e=t[7])||void 0===e?void 0:e.div)&&po(t),c=Gt(t[6]);const u=t=>t[30];for(let e=0;e<c.length;e+=1){let n=uo(t,c,e),r=u(n);s.set(r,a[e]=vo(r,n))}return{c(){l&&l.c(),n=L(),r=J("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){l&&l.l(t),n=it(t),r=et(t,"DIV",{class:!0,"aria-hidden":!0});var e=Y(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(M),this.h()},h(){H(r,"class",i=Si.state__animations),H(r,"aria-hidden","true")},m(e,i){l&&l.m(e,i),T(e,n,i),T(e,r,i);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?l?(l.p(t,e),128&e[0]&&Ut(l,1)):(l=po(t),l.c(),Ut(l,1),l.m(n.parentNode,n)):l&&(Rt(),Wt(l,1,1,(()=>{l=null})),Lt()),320&e[0]&&(c=Gt(t[6]),Rt(),a=Xt(a,e,u,1,t,c,s,r,Kt,vo,null,uo),Lt())},i(t){if(!o){Ut(l);for(let t=0;t<c.length;t+=1)Ut(a[t]);o=!0}},o(t){Wt(l);for(let t=0;t<a.length;t+=1)Wt(a[t]);o=!1},d(e){e&&(M(n),M(r)),l&&l.d(e);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function $o(t){var e;let n,r,i=[],o=new lo,a=Gt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[30].internalId;for(let e=0;e<a.length;e+=1){let n=co(t,a,e),r=s(n);o.set(r,i[e]=bo(r,n))}return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);n=U()},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);T(t,n,e),r=!0},p(t,e){var r;10&e[0]&&(a=Gt(null===(r=t[3])||void 0===r?void 0:r.tooltips),Rt(),i=Xt(i,e,s,1,t,a,o,n.parentNode,Kt,bo,n,co),Lt())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Ut(i[t]);r=!0}},o(t){for(let t=0;t<i.length;t+=1)Wt(i[t]);r=!1},d(t){t&&M(n);for(let e=0;e<i.length;e+=1)i[e].d(t)}}}function bo(t,e){let n,r,i;return r=new so({props:{ownerNode:e[30].ownerNode,data:e[30].desc,internalId:e[30].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=U(),ne(r.$$.fragment),this.h()},l(t){n=U(),re(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),ie(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[30].ownerNode),8&n[0]&&(i.data=e[30].desc),8&n[0]&&(i.internalId=e[30].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Ut(r.$$.fragment,t),i=!0)},o(t){Wt(r.$$.fragment,t),i=!1},d(t){t&&M(n),oe(r,t)}}}function _o(t){let e,n,r=!t[5]&&ho(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[5]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),32&n[0]&&Ut(r,1)):(r=ho(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function wo(t){return"change_bounds"===t.type?t:"set"===t.type?wo(t.items[0]):null}function xo(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:s}=e;const l=wt(pe),c=wt(Me);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=l.getJsonWithVars(r),o=l.getJsonWithVars(o);const s=Zi(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=s,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:s,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const b=i.div_id||i.id;async function _(t){if(w===t)return;l.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(w=t,null==A||A.setValue(w),n(7,x=o)):l.logError(fe(new Error("Cannot find state with id"),{additional:{stateId:t}})),await jt(),!u)return;const a=u.getBoundingClientRect();let s=m.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,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(s),p=c.reduce(((t,e)=>Math.max(t,Wi(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:wo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),l.setRunning("stateChange",!1)}let w;b?(null==s?void 0:s.fakeElement)||(c.registerInstance(b,{setState:_,getChild(t){if(f&&f.has(t))return f.get(t);l.logError(fe(new Error("Missing state block with id"),{additional:{id:t}}))}}),_t(Me,{registerInstance(t,e){f||(f=new Map),f.has(t)?l.logError(fe(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Wi(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,g=[...g.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,l.logError(fe(new Error('Missing "id" prop for div "state"'))));let x=null;const k=l.getJsonWithVars(i.default_state_id),E=i.state_id_variable,A=E?l.getVariable(E,"string"):null;let C=!1;function V(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return bt((()=>{b&&!(null==s?void 0:s.fakeElement)&&c.unregisterInstance(b)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,s=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&i&&(h=new Set),1&t.$$.dirty[0]&&n(9,r=i.states||[]),512&t.$$.dirty[0]&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),l.logError(fe(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty[0]&&function(t){if(!C&&(C=!0,t.length)){const e=(null==A?void 0:A.getValue())||k;e?(w=e,n(7,x=t.find((t=>t.state_id===w))||null),x||l.logError(fe(new Error("Cannot find state for default_state_id"),{additional:{selectedId:w}}))):(n(7,x=t[0]),w=x.state_id),A&&(A.setValue(w),A.subscribe((t=>{_(t)})))}}(r)},[i,o,a,s,u,p,g,x,V,r,t=>V(t),t=>V(t),function(t){Et[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const ko={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Eo}=C;function Ao(t,e,n){const r=t.slice();return r[49]=e[n],r}function Co(t){let e,n;return e=new An({props:{cls:Te("pager",ko,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[16],$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Te("pager",ko,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),1&n[0]&&(r.parentOf=t[0].items),33336&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Vo(t){var e;let n,r,i,o,a;return r=new cs({props:{div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=J("div"),ne(r.$$.fragment),i=L(),this.h()},l(t){n=et(t,"DIV",{class:!0});var e=Y(n);re(r.$$.fragment,e),i=it(e),e.forEach(M),this.h()},h(){H(n,"class",o=ko.pager__item)},m(t,e){T(t,n,e),ie(r,n,null),N(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[49].json),16&e[0]&&(i.templateContext=t[49].templateContext),16&e[0]&&(i.origJson=t[49].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Ut(r.$$.fragment,t),a=!0)},o(t){Wt(r.$$.fragment,t),a=!1},d(t){t&&M(n),oe(r)}}}function Do(t){let e,n,r=Gt(t[4]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Vo(Ao(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(24&n[0]){let a;for(r=Gt(t[4]),a=0;a<r.length;a+=1){const o=Ao(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Vo(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Eo);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Po(t){let e,r,i,o,a,s,l=t[4],c=Do(t);return{c(){e=J("div"),c.c(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=Y(e);c.l(n),n.forEach(M),this.h()},h(){H(e,"class",r=ko.pager__items+" "+(t[15]?he["root_restrict-scroll"]:"")),H(e,"style",i=ve(t[9]))},m(n,r){T(n,e,r),c.m(e,null),t[37](e),o=!0,a||(s=W(e,"scroll",t[17]),a=!0)},p(t,a){16&a[0]&&d(l,l=t[4])?(Rt(),Wt(c,1,1,n),Lt(),c=Do(t),c.c(),Ut(c,1),c.m(e,null)):c.p(t,a),(!o||32768&a[0]&&r!==(r=ko.pager__items+" "+(t[15]?he["root_restrict-scroll"]:"")))&&H(e,"class",r),(!o||512&a[0]&&i!==(i=ve(t[9])))&&H(e,"style",i)},i(t){o||(Ut(c),o=!0)},o(t){Wt(c),o=!1},d(n){n&&M(e),c.d(n),t[37](null),a=!1,s()}}}function jo(t){let e,n,r=!t[7]&&Co(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[7]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),128&n[0]&&Ut(r,1)):(r=Co(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Fo(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,b,_,w,x=n,k=n,E=n,A=n,C=n,V=n;var D,P,j,F,S,I,N;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V()));let{json:O={}}=e,{templateContext:T}=e,{origJson:M}=e,{layoutParams:z}=e;const J=wt(pe),B=J.genId("pager");let R,L=!1,U=!1,W=0,H=0,q=!1,G="horizontal",K="",X="",Y="";const Z=ni((function(){if(!L)return;const t=function(){const t=Array.from(R.children),e=R.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===G?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:W}();t!==W&&r(26,W=t)}),50);function Q(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===G,i=R.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";R.scroll({[a]:i[o],behavior:e}),r(26,W=t)}return O.id&&!(null==z?void 0:z.fakeElement)&&J.registerInstance(O.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Q(t)},setPreviousItem(t){let e=W-1;e<0&&(e="ring"===t?i.length-1:W),Q(e)},setNextItem(t){let e=W+1;e>i.length-1&&(e="ring"===t?0:W),Q(e)}}),$t((()=>{if(L=!0,Boolean(document.getElementById("".concat(B,"-tab-0")))){const t=[...R.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(B,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(B,"-tab-").concat(e))}})),bt((()=>{L=!1,O.id&&!(null==z?void 0:z.fakeElement)&&J.unregisterInstance(O.id)})),t.$$set=t=>{"json"in t&&r(0,O=t.json),"templateContext"in t&&r(1,T=t.templateContext),"origJson"in t&&r(2,M=t.origJson),"layoutParams"in t&&r(3,z=t.layoutParams)},t.$$.update=()=>{if(262145&t.$$.dirty[0]&&((null===r(18,D=O.items)||void 0===D?void 0:D.length)&&Array.isArray(O.items)?r(25,U=!1):(r(25,U=!0),J.logError(fe(new Error('Incorrect or empty "items" prop for div "pager"'))))),33554435&t.$$.dirty[0]&&r(4,i=(!U&&O.items||[]).map((t=>{let e=t,n=T;return({templateContext:n,json:e}=J.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(r(14,o=J.getDerivedFromVars(O.layout_mode)),k(),k=h(o,(t=>r(33,v=t)))),4&t.$$.dirty[1]&&(v?"percentage"!==v.type&&"fixed"!==v.type?(r(27,q=!0),J.logError(fe(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(27,q=!1):(r(27,q=!0),J.logError(fe(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(r(13,a=J.getDerivedFromVars(O.orientation)),C(),C=h(a,(t=>r(36,_=t)))),268435456&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(28,G=Ar(_,G)),1&t.$$.dirty[0]&&(r(12,s=J.getDerivedFromVars(O.item_spacing)),A(),A=h(s,(t=>r(35,b=t)))),16&t.$$.dirty[1]){const t=null==b?void 0:b.value;t&&Be(t)&&r(29,K=ye(t||0))}if(1&t.$$.dirty[0]&&(r(11,l=J.getDerivedFromVars(O.paddings)),E(),E=h(l,(t=>r(34,y=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(30,X=Re(y,X)),1&t.$$.dirty[0]&&(r(10,c=J.getDerivedFromVars(O.restrict_parent_scroll)),V(),V=h(c,(t=>r(15,w=t)))),268435456&t.$$.dirty[0]&&r(32,u="horizontal"===G?"grid-auto-columns":"grid-auto-rows"),838336513&t.$$.dirty[0]|4&t.$$.dirty[1])if("fixed"===(null==v?void 0:v.type)){const t=$e("horizontal"===G?((null===r(19,P=O.paddings)||void 0===P?void 0:P.left)||0)+((null===r(20,j=O.paddings)||void 0===j?void 0:j.right)||0):((null===r(21,F=O.paddings)||void 0===F?void 0:F.top)||0)+((null===r(22,S=O.paddings)||void 0===S?void 0:S.bottom)||0)),e=null===r(23,I=v.neighbour_page_width)||void 0===I?void 0:I.value;r(31,Y=e?"calc(100% + ".concat(t," - 2 * ").concat($e(e)," - 2 * ").concat(K,")"):"100%")}else if("percentage"===(null==v?void 0:v.type)){const t=null===r(24,N=v.page_width)||void 0===N?void 0:N.value;r(31,Y="".concat(Number(t),"%"))}1610612736&t.$$.dirty[0]|3&t.$$.dirty[1]&&r(9,d={"grid-gap":K,padding:X,[u]:Y}),268435456&t.$$.dirty[0]&&r(8,p={orientation:G}),167772160&t.$$.dirty[0]&&r(7,f=U||q),67108880&t.$$.dirty[0]&&function(t,e){const n=O.id;if(n){const r=new Map(m);$(g,m=r.set(n,{instId:B,size:t,currentItem:e,scrollToPagerItem:Q}),m)}}(i.length,W),67108864&t.$$.dirty[0]&&function(t){var e;if(t===H)return;H=t;const n=J.getJsonWithVars(null===(e=i[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&J.execAnyActions(n)}(W)},r(6,g=J.getStore("pagers")),x(),x=h(g,(t=>r(40,m=t))),[O,T,M,z,i,R,g,f,p,d,c,l,s,a,o,w,function(t){r(0,O=Object.assign(Object.assign({},O),{items:t}))},Z,D,P,j,F,S,I,N,U,W,q,G,K,X,Y,u,v,y,b,_,function(t){Et[t?"unshift":"push"]((()=>{R=t,r(5,R)}))}]}const So={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_placement_stretch:"divkit-b6bd3"};function Io(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function No(t){let e,n=Gt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Oo(Io(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=U()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=U()},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,i){if(25169920&i[0]){let o;for(n=Gt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=Io(t,n,o);r[o]?r[o].p(a,i):(r[o]=Oo(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&M(e),z(r,t)}}}function Oo(t){let e,n,r,i,o,a,l,c;function u(){return t[36](t[46])}return{c(){e=J("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(){H(e,"class",n=Te("indicator__item",So,{active:t[44]})+" "+he.root__clickable),H(e,"role","tab"),H(e,"id",r=t[12].instId+"-tab-"+t[46]),H(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),H(e,"aria-selected",o=t[44]?"true":"false"),H(e,"tabindex",a=t[44]?0:-1)},m(n,r){T(n,e,r),l||(c=[W(e,"click",u),W(e,"keydown",t[24])],l=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=Te("indicator__item",So,{active:t[44]})+" "+he.root__clickable)&&H(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&H(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&H(e,"aria-controls",i),4096&l[0]&&o!==(o=t[44]?"true":"false")&&H(e,"aria-selected",o),4096&l[0]&&a!==(a=t[44]?0:-1)&&H(e,"tabindex",a)},d(t){t&&M(e),l=!1,s(c)}}}function To(t){let e,n,r,i,o=t[12]&&No(t);return{c(){e=J("div"),n=J("div"),o&&o.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=Y(e);n=et(r,"DIV",{class:!0,role:!0});var i=Y(n);o&&o.l(i),i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=So.indicator__items),H(n,"role","tablist"),st(n,"margin","default"===t[6]?"0 ".concat(ye(Math.max(0,t[4].width-t[5].width)/2)):""),st(n,"--divkit-indicator-inactive-width",ye(t[5].width)),st(n,"--divkit-indicator-inactive-height",ye(t[5].height)),st(n,"--divkit-indicator-inactive-border-radius",ye(t[5].borderRadius)),st(n,"--divkit-indicator-inactive-background",t[5].background||""),st(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),st(n,"--divkit-indicator-active-width",ye(t[4].width)),st(n,"--divkit-indicator-active-height",ye(t[4].height)),st(n,"--divkit-indicator-active-border-radius",ye(t[4].borderRadius)),st(n,"--divkit-indicator-active-background",t[4].background||""),st(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),st(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),st(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ye((t[7]-t[5].width)/2)):""),st(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ye(t[9]):""),st(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),st(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ye((t[8]-1)*t[9]):""),H(e,"class",i=So.indicator__scroller)},m(r,i){T(r,e,i),N(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=No(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&st(n,"margin","default"===t[6]?"0 ".concat(ye(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&st(n,"--divkit-indicator-inactive-width",ye(t[5].width)),32&e[0]&&st(n,"--divkit-indicator-inactive-height",ye(t[5].height)),32&e[0]&&st(n,"--divkit-indicator-inactive-border-radius",ye(t[5].borderRadius)),32&e[0]&&st(n,"--divkit-indicator-inactive-background",t[5].background||""),32&e[0]&&st(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||""),16&e[0]&&st(n,"--divkit-indicator-active-width",ye(t[4].width)),16&e[0]&&st(n,"--divkit-indicator-active-height",ye(t[4].height)),16&e[0]&&st(n,"--divkit-indicator-active-border-radius",ye(t[4].borderRadius)),16&e[0]&&st(n,"--divkit-indicator-active-background",t[4].background||""),16&e[0]&&st(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||""),48&e[0]&&st(n,"--divkit-indicator-active-scale",t[4].width/t[5].width),224&e[0]&&st(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(ye((t[7]-t[5].width)/2)):""),576&e[0]&&st(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?ye(t[9]):""),320&e[0]&&st(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),832&e[0]&&st(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?ye((t[8]-1)*t[9]):"")},d(n){n&&M(e),o&&o.d(),t[37](null),t[38](null)}}}function Mo(t){let e,n;return e=new An({props:{cls:Te("indicator",So,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[To]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Te("indicator",So,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function zo(t,e,r){let i,o,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x,k=n,E=n,A=n,C=n,V=n,D=n,P=n,j=n,F=n;var S,I;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>F()));let{json:N={}}=e,{templateContext:O}=e,{origJson:T}=e,{layoutParams:M}=e;const z=["rounded_rectangle","circle"],J=wt(pe);let B,R,L,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",q=15,G=10,K=5;function X(t){t!==L.currentItem&&L.scrollToPagerItem(t)}async function Y(t){L.scrollToPagerItem(t),await jt();const e=R.querySelector(".".concat(So.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&r(0,N=t.json),"templateContext"in t&&r(1,O=t.templateContext),"origJson"in t&&r(2,T=t.origJson),"layoutParams"in t&&r(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(22,i=J.getDerivedFromVars(N.shape)),D(),D=h(i,(t=>r(32,b=t)))),1&t.$$.dirty[0]&&(r(21,o=J.getDerivedFromVars(N.active_item_color)),C(),C=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=J.getDerivedFromVars(N.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,s=J.getDerivedFromVars(N.active_item_size)),P(),P=h(s,(t=>r(33,_=t)))),1&t.$$.dirty[0]&&(r(18,l=J.getDerivedFromVars(N.active_shape)),F(),F=h(l,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=J.getDerivedFromVars(N.inactive_shape)),j(),j=h(c,(t=>r(34,w=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,U=ir({type:"shape_drawable",shape:x},z,U)),w&&r(5,W=ir({type:"shape_drawable",shape:w},z,W)),!x&&!w&&b)){const t=Vn(_,1.3);r(5,W=ir({type:"shape_drawable",shape:b,color:W.background},z,W)),r(5,W.background=_e($,1,W.background),W),r(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),r(4,U.background=_e(y,1,U.background),U)}if(1&t.$$.dirty[0]&&(r(16,u=J.getDerivedFromVars(N.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=J.getDerivedFromVars(N.items_placement)),A(),A=h(d,(t=>r(29,v=t)))),905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,q=Le(m.value,q));else if(r(6,H=v.type),"default"===H)r(7,q=Le(null===r(25,S=v.space_between_centers)||void 0===S?void 0:S.value,q));else if("stretch"===H){const t=v;r(8,G=Vn(t.max_visible_items,G)),r(9,K=Le(null===r(26,I=t.item_spacing)||void 0===I?void 0:I.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(N.pager_id&&t.has(N.pager_id)&&(r(12,L=t.get(N.pager_id)),await jt(),R)){const t=R.children[L.currentItem].offsetLeft;B.scroll({left:t-B.clientWidth/2,behavior:"smooth"})}}(g),64&t.$$.dirty[0]&&r(13,f={placement:H})},r(14,p=J.getStore("pagers")),k(),k=h(p,(t=>r(27,g=t))),[N,O,T,M,U,W,H,q,G,K,B,R,L,f,p,d,u,c,l,s,a,o,i,X,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=L;if(t.which===vi)Y(n-1<0?n:n-1);else if(t.which===yi)Y(n+1>=e?n:n+1);else if(t.which===$i)Y(0);else{if(t.which!==bi)return;Y(e-1)}t.preventDefault()},S,I,g,m,v,y,$,b,_,w,x,t=>X(t),function(t){Et[t?"unshift":"push"]((()=>{R=t,r(11,R)}))},function(t){Et[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Jo={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",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 Bo(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&_e(t.text_color)||"#000",i=Dn(t.font_weight);if(ln(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:ye(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.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 Ro(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Lo="function"==typeof BigInt;function Uo(t){return Lo?BigInt(t):Number(t)}const Wo=Uo("9223372036854775807"),Ho=Uo("-9223372036854775808");function qo(t){const e=Uo(t);if(e>Wo||e<Ho)throw new Error("Integer overflow.");return e}const Go=qo(0);function Ko(t){let e=t;return e<0&&(e=-e),e}function Xo(t){let e=0;return t>0?e=1:t<0&&(e=-1),qo(e)}class Yo{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=ue(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}}const Zo={string:class extends Yo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends Yo{convertValue(t){if("number"!=typeof t||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"}},integer:class extends Yo{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Wo||t<Ho)throw new Error("Incorrect variable value");return qo(t)}fromString(t){const e=qo(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends Yo{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"}},color:class extends Yo{convertValue(t){if("string"!=typeof t||!we(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends Yo{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends Yo{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"}},array:class extends Yo{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"}}};function Qo(t,e,n){if(!(e in Zo))throw new Error("Unsupported variable type");return new Zo[e](t,n)}function ta(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 na(t){let e,n;return e=new An({props:{cls:Te("slider",Jo,t[22]),style:t[23],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$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(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};4194304&n[0]&&(r.cls=Te("slider",Jo,t[22])),8388608&n[0]&&(r.style=t[23]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),54509552&n[0]|34340864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function ra(t){let e,n;return{c(){e=J("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Jo.slider__tick+" "+Jo.slider__tick_active),st(e,"--divkit-slider-tick",t[82])},m(t,n){T(t,e,n)},p(t,n){262144&n[0]&&st(e,"--divkit-slider-tick",t[82])},d(t){t&&M(e)}}}function ia(t){let e,n;return{c(){e=J("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),Y(e).forEach(M),this.h()},h(){H(e,"class",n=Jo.slider__tick+" "+Jo.slider__tick_inactive),st(e,"--divkit-slider-tick",t[82])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&st(e,"--divkit-slider-tick",t[82])},d(t){t&&M(e)}}}function oa(t){let e,n,r,i,o;return{c(){e=J("div"),n=J("div"),r=R(t[6]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);r=rt(a,t[6]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;H(n,"class",i=Jo["slider__thumb-text-inner"]),st(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em"),st(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||""),st(n,"color",(null===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),H(e,"class",o=Jo["slider__thumb-text"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;64&e[0]&&at(r,t[6]),4096&e[0]&&st(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em"),4096&e[0]&&st(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||""),4096&e[0]&&st(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function aa(t){let e,n,r,i,o;return{c(){e=J("div"),n=J("div"),r=R(t[7]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=Y(e);n=et(o,"DIV",{class:!0});var a=Y(n);r=rt(a,t[7]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;H(n,"class",i=Jo["slider__thumb-text-inner"]),st(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em"),st(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||""),st(n,"color",(null===(s=t[13])||void 0===s?void 0:s.textColor)||"#000"),H(e,"class",o=Jo["slider__thumb-text"]+" "+Jo["slider__thumb-text_secondary"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;128&e[0]&&at(r,t[7]),8192&e[0]&&st(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em"),8192&e[0]&&st(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||""),8192&e[0]&&st(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function sa(t){let e,n,r,i,o,a,c,u,d,h,p,f,g,m,v,y,$,b,_,w,x,k,E=Gt(t[18]),A=[];for(let e=0;e<E.length;e+=1)A[e]=ra(ea(t,E,e));let C=Gt(t[19]),V=[];for(let e=0;e<C.length;e+=1)V[e]=ia(ta(t,C,e));let D=t[12]&&oa(t),P=t[38]&&function(t){let e,n,r=t[13]&&aa(t);return{c(){e=J("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(){H(e,"class",n=Jo.slider__thumb+" "+Jo.slider__thumb_secondary),st(e,"border-radius",ye(t[9].borderRadius)),st(e,"background",t[9].background),st(e,"box-shadow",t[9].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=aa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&st(e,"border-radius",ye(t[9].borderRadius)),512&n[0]&&st(e,"background",t[9].background),512&n[0]&&st(e,"box-shadow",t[9].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}(t),j=t[38]&&function(t){let e,n,r,i,o;return{c(){e=J("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(){H(e,"type","range"),H(e,"class",n=t[17]?Jo.slider__input:"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary)),H(e,"min",t[4]),H(e,"max",t[5]),H(e,"step","1"),e.value=r=t[17]?t[6]:t[7],H(e,"aria-label",t[21])},m(n,r){T(n,e,r),i||(o=[W(e,"input",t[70]),W(e,"mousedown",t[38]?t[41]:null),W(e,"touchstart",t[38]?t[41]:null),W(e,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),W(e,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],i=!0)},p(i,o){t=i,131072&o[0]&&n!==(n=t[17]?Jo.slider__input:"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary))&&H(e,"class",n),16&o[0]&&H(e,"min",t[4]),32&o[0]&&H(e,"max",t[5]),131264&o[0]&&r!==(r=t[17]?t[6]:t[7])&&(e.value=r),2097152&o[0]&&H(e,"aria-label",t[21])},d(t){t&&M(e),i=!1,s(o)}}}(t);return{c(){e=J("div"),n=J("div"),r=J("div"),o=L(),a=J("div"),u=L();for(let t=0;t<A.length;t+=1)A[t].c();d=L();for(let t=0;t<V.length;t+=1)V[t].c();h=L(),p=J("div"),D&&D.c(),g=L(),P&&P.c(),m=L(),v=J("input"),b=L(),j&&j.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=Y(e);n=et(i,"DIV",{class:!0});var s=Y(n);r=et(s,"DIV",{class:!0}),Y(r).forEach(M),o=it(s),a=et(s,"DIV",{class:!0}),Y(a).forEach(M),u=it(s);for(let t=0;t<A.length;t+=1)A[t].l(s);d=it(s);for(let t=0;t<V.length;t+=1)V[t].l(s);h=it(s),p=et(s,"DIV",{class:!0});var l=Y(p);D&&D.l(l),l.forEach(M),g=it(s),P&&P.l(s),m=it(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),b=it(s),j&&j.l(s),s.forEach(M),i.forEach(M),this.h()},h(){H(r,"class",i=Jo.slider__track),st(r,"height",ye(t[10].height)),st(r,"border-radius",ye(t[10].borderRadius)),st(r,"background",t[10].background),st(r,"box-shadow",t[10].boxShadow||""),H(a,"class",c=Jo["slider__active-track"]),st(a,"left",(100*t[24]).toFixed(2)+"%"),st(a,"width",(100*t[25]).toFixed(2)+"%"),st(a,"height",ye(t[11].height)),st(a,"border-radius",ye(t[11].borderRadius)),st(a,"background",t[11].background),st(a,"box-shadow",t[11].boxShadow||""),H(p,"class",f=Jo.slider__thumb),st(p,"border-radius",ye(t[8].borderRadius)),st(p,"background",t[8].background),st(p,"box-shadow",t[8].boxShadow||""),H(v,"type","range"),H(v,"class",y=t[17]?"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary):Jo.slider__input),H(v,"min",t[4]),H(v,"max",t[5]),H(v,"step","1"),v.value=$=t[17]?t[7]:t[6],H(v,"aria-label",t[20]),H(n,"class",_=Jo["slider__tracks-inner"]),H(e,"class",w=Jo["slider__tracks-wrapper"])},m(i,s){T(i,e,s),N(e,n),N(n,r),N(n,o),N(n,a),N(n,u);for(let t=0;t<A.length;t+=1)A[t]&&A[t].m(n,null);N(n,d);for(let t=0;t<V.length;t+=1)V[t]&&V[t].m(n,null);N(n,h),N(n,p),D&&D.m(p,null),N(n,g),P&&P.m(n,null),N(n,m),N(n,v),t[69](v),N(n,b),j&&j.m(n,null),t[71](n),x||(k=[W(v,"input",t[68]),W(v,"focus",(function(){l(t[80])&&t[80].apply(this,arguments)})),W(v,"blur",(function(){l(t[81])&&t[81].apply(this,arguments)}))],x=!0)},p(e,i){if(t=e,1024&i[0]&&st(r,"height",ye(t[10].height)),1024&i[0]&&st(r,"border-radius",ye(t[10].borderRadius)),1024&i[0]&&st(r,"background",t[10].background),1024&i[0]&&st(r,"box-shadow",t[10].boxShadow||""),16777216&i[0]&&st(a,"left",(100*t[24]).toFixed(2)+"%"),33554432&i[0]&&st(a,"width",(100*t[25]).toFixed(2)+"%"),2048&i[0]&&st(a,"height",ye(t[11].height)),2048&i[0]&&st(a,"border-radius",ye(t[11].borderRadius)),2048&i[0]&&st(a,"background",t[11].background),2048&i[0]&&st(a,"box-shadow",t[11].boxShadow||""),262144&i[0]){let e;for(E=Gt(t[18]),e=0;e<E.length;e+=1){const r=ea(t,E,e);A[e]?A[e].p(r,i):(A[e]=ra(r),A[e].c(),A[e].m(n,d))}for(;e<A.length;e+=1)A[e].d(1);A.length=E.length}if(524288&i[0]){let e;for(C=Gt(t[19]),e=0;e<C.length;e+=1){const r=ta(t,C,e);V[e]?V[e].p(r,i):(V[e]=ia(r),V[e].c(),V[e].m(n,h))}for(;e<V.length;e+=1)V[e].d(1);V.length=C.length}t[12]?D?D.p(t,i):(D=oa(t),D.c(),D.m(p,null)):D&&(D.d(1),D=null),256&i[0]&&st(p,"border-radius",ye(t[8].borderRadius)),256&i[0]&&st(p,"background",t[8].background),256&i[0]&&st(p,"box-shadow",t[8].boxShadow||""),t[38]&&P.p(t,i),131072&i[0]&&y!==(y=t[17]?"".concat(Jo.slider__input," ").concat(Jo.slider__input_secondary):Jo.slider__input)&&H(v,"class",y),16&i[0]&&H(v,"min",t[4]),32&i[0]&&H(v,"max",t[5]),131264&i[0]&&$!==($=t[17]?t[7]:t[6])&&(v.value=$),1048576&i[0]&&H(v,"aria-label",t[20]),t[38]&&j.p(t,i)},d(n){n&&M(e),z(A,n),z(V,n),D&&D.d(),P&&P.d(),t[69](null),j&&j.d(),t[71](null),x=!1,s(k)}}}function la(t){let e,n,r,i,o=!t[14]&&na(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(a,s){o&&o.m(a,s),T(a,e,s),n=!0,r||(i=W(window,"resize",t[43]),r=!0)},p(t,n){t[14]?o&&(Rt(),Wt(o,1,1,(()=>{o=null})),Lt()):o?(o.p(t,n),16384&n[0]&&Ut(o,1)):(o=na(t),o.c(),Ut(o,1),o.m(e.parentNode,e))},i(t){n||(Ut(o),n=!0)},o(t){Wt(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}function ca(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function ua(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,A,C,V,D,P,j,F,S,I,N,O,T,M,z,J=n,B=n,R=n,L=n,U=n,W=n,H=n,q=n,G=n,K=n,X=n,Y=n;var Z,Q,tt,et;t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),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((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:it}=e,{layoutParams:ot}=e;const at={width:10,height:10,borderRadius:5,background:"#000"},st=["rounded_rectangle","circle"],lt=["rounded_rectangle"],ct=wt(pe),ut=wt(Qe);let dt,ht,pt=!1,ft=0,gt=100;const mt=nt.thumb_value_variable,vt=nt.thumb_secondary_value_variable;let yt=mt&&ct.getVariable(mt,"integer")||Qo("temp","integer",0);p(t,yt,(t=>r(65,T=t)));let _t=vt&&ct.getVariable(vt,"integer")||Qo("temp","integer",0);p(t,_t,(t=>r(64,O=t)));let xt,kt,At,Ct=Ro(T||0,ft,gt),Vt=Ro(O||0,ft,gt),Dt=at,Pt=Dt,jt=at,Ft=at,St=null,It=null,Nt=At,Ot="",Tt="",Mt=!1;function zt(t,e){const n=Number(t.target.value);pt===("first"===e)?(r(7,Vt=n),_t.setValue(n)):(r(6,Ct=n),yt.setValue(n))}let Jt=!1;function Bt(){if(!ht)return;const t=gt-ft,e=(null==St?void 0:St.width)||0,n=(null==It?void 0:It.width)||0;Math.max(e,n)*t>=(null==ht?void 0:ht.clientWidth)?Jt||(ct.logError(fe(new Error("Slider ticks overlap each other"),{level:"warn"})),Jt=!0):Jt=!1}const Rt=ni(Bt,50);return $t((()=>{Bt(),nt.id&&ct.registerFocusable(nt.id,{focus(){dt&&dt.focus()}})})),bt((()=>{nt.id&&ct.unregisterFocusable(nt.id)})),t.$$set=t=>{"json"in t&&r(0,nt=t.json),"templateContext"in t&&r(1,rt=t.templateContext),"origJson"in t&&r(2,it=t.origJson),"layoutParams"in t&&r(3,ot=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(r(37,i=ct.getDerivedFromVars(nt.min_value)),Y(),Y=h(i,(t=>r(67,z=t)))),1&t.$$.dirty[0]&&(r(36,o=ct.getDerivedFromVars(nt.max_value)),X(),X=h(o,(t=>r(66,M=t)))),48&t.$$.dirty[0]|48&t.$$.dirty[2]&&(r(4,ft=Ge(z,ft)),r(5,gt=Ge(M,gt)),Bt()),112&t.$$.dirty[0]|8&t.$$.dirty[2]){const t=Ro(T||0,ft,gt);t!==Ct&&r(6,Ct=t)}if(176&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=Ro(O||0,ft,gt);t!==Vt&&r(7,Vt=t)}if(1&t.$$.dirty[0]&&(r(35,a=ct.getDerivedFromVars(nt.thumb_style)),K(),K=h(a,(t=>r(63,N=t)))),256&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(8,Dt=ir(N,st,Dt)),1&t.$$.dirty[0]&&(r(34,s=ct.getDerivedFromVars(nt.thumb_secondary_style)),G(),G=h(s,(t=>r(62,I=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(9,Pt=ir(I,st,Dt)),1&t.$$.dirty[0]&&(r(33,l=ct.getDerivedFromVars(nt.track_inactive_style)),q(),q=h(l,(t=>r(61,S=t)))),1024&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(10,jt=ir(S,lt,jt)),1&t.$$.dirty[0]&&(r(32,c=ct.getDerivedFromVars(nt.track_active_style)),H(),H=h(c,(t=>r(60,F=t)))),2048&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(11,Ft=ir(F,lt,Ft)),1&t.$$.dirty[0]&&(r(31,u=ct.getDerivedFromVars(nt.tick_mark_active_style)),W(),W=h(u,(t=>r(59,j=t)))),268435456&t.$$.dirty[1]){let t=ir(j,st,at);t!==at&&r(48,St=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(St?(r(18,xt=vt?ca(Math.min(Ct,Vt),Math.max(Ct,Vt)+1,ft,gt,!0):ca(ft,Ct,ft,gt,!0)),Bt()):r(18,xt=[])),1&t.$$.dirty[0]&&(r(30,d=ct.getDerivedFromVars(nt.tick_mark_inactive_style)),U(),U=h(d,(t=>r(58,P=t)))),134217728&t.$$.dirty[1]){let t=ir(P,st,at);t!==at&&r(49,It=t)}if(240&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(It?(r(19,kt=vt?ca(Math.min(Ct,Vt),Math.max(Ct,Vt)+1,ft,gt,!1):ca(Ct+1,gt+1,ft,gt,!0)),Bt()):r(19,kt=[])),1&t.$$.dirty[0]&&(r(29,f=ct.getDerivedFromVars(nt.thumb_text_style)),L(),L=h(f,(t=>r(57,D=t)))),4096&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&r(12,At=Bo(D,At)),1&t.$$.dirty[0]&&(r(28,g=ct.getDerivedFromVars(nt.thumb_secondary_text_style)),R(),R=h(g,(t=>r(56,V=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&r(13,Nt=Bo(V,At)),1&t.$$.dirty[0]&&(r(27,m=ct.getDerivedFromVars(nt.accessibility)),B(),B=h(m,(t=>r(55,C=t)))),16777216&t.$$.dirty[1]&&((null==C?void 0:C.description)?r(20,Ot=C.description):ct.logError(fe(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(r(26,v=ct.getDerivedFromVars(nt.secondary_value_accessibility)),J(),J=h(v,(t=>r(54,A=t)))),8388608&t.$$.dirty[1]&&((null==A?void 0:A.description)?r(21,Tt=A.description):vt&&ct.logError(fe(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;ut.hasAction()?(ct.logError(fe(new Error('Cannot show "slider" inside component with action'))),t=!0):Dt===at?(ct.logError(fe(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===at?(ct.logError(fe(new Error('Missing "track_active_style" in slider'))),t=!0):jt===at&&(ct.logError(fe(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Mt&&r(14,Mt=t)}768&t.$$.dirty[0]&&r(53,y=ye(Math.max(...[Dt.width,Pt.width,0].filter(Be)))),768&t.$$.dirty[0]&&r(52,$=ye(Math.max(...[Dt.height,Pt.height,0].filter(Be)))),112&t.$$.dirty[0]&&r(51,b=(Ct-ft)/(gt-ft)),176&t.$$.dirty[0]&&r(50,_=vt?(Vt-ft)/(gt-ft):void 0),1572864&t.$$.dirty[1]&&r(25,w=void 0!==_?Math.abs(_-b):b),1572864&t.$$.dirty[1]&&r(24,x=void 0!==_?Math.min(_,b):0),13056&t.$$.dirty[0]|8380416&t.$$.dirty[1]&&r(23,k={"--divkit-slider-thumb-width":ye(Dt.width),"--divkit-slider-thumb-height":ye(Dt.height),"--divkit-slider-thumb-secondary-width":ye(Pt.width),"--divkit-slider-thumb-secondary-height":ye(Pt.height),"--divkit-slider-text-offset-x":(null===r(44,Z=null==At?void 0:At.offset)||void 0===Z?void 0:Z.x)?$e(At.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,Q=null==At?void 0:At.offset)||void 0===Q?void 0:Q.y)?$e(At.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,tt=null==Nt?void 0:Nt.offset)||void 0===tt?void 0:tt.x)?$e(Nt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,et=null==Nt?void 0:Nt.offset)||void 0===et?void 0:et.y)?$e(Nt.offset.y):void 0,"--divkit-slider-tick-active-width":St?ye(St.width):void 0,"--divkit-slider-tick-active-height":St?ye(St.height):void 0,"--divkit-slider-tick-active-border-radius":St?ye(St.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==St?void 0:St.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==St?void 0:St.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":It?ye(It.width):void 0,"--divkit-slider-tick-inactive-height":It?ye(It.height):void 0,"--divkit-slider-tick-inactive-border-radius":It?ye(It.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==It?void 0:It.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==It?void 0:It.boxShadow)||void 0,"--divkit-slider-max-thumb-width":y,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":b,"--divkit-slider-track-secondary-part":_})},r(22,E={}),[nt,rt,it,ot,ft,gt,Ct,Vt,Dt,Pt,jt,Ft,At,Nt,Mt,dt,ht,pt,xt,kt,Ot,Tt,E,k,x,w,v,m,g,f,d,u,c,l,s,a,o,i,vt,yt,_t,function(t){var e,n;const i="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===i)return;const o=ht.getBoundingClientRect(),a=(i-o.left)/o.width,s=(gt-ft)*a,l=Math.round(Ro(s,ft,gt));r(17,pt=l<(Ct+Vt)/2==Ct<Vt)},zt,Rt,Z,Q,tt,et,St,It,_,b,$,y,A,C,V,D,P,j,F,S,I,N,O,T,M,z,t=>zt(t,"first"),function(t){Et[t?"unshift":"push"]((()=>{dt=t,r(15,dt)}))},t=>zt(t,"second"),function(t){Et[t?"unshift":"push"]((()=>{ht=t,r(16,ht)}))}]}const da={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_right":"divkit-e8038",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_top":"divkit-bdccd","input_alignment-vertical_bottom":"divkit-fc670","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 ha(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=ha(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function pa(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 fa{constructor(t){this.char=t}}class ga{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class ma{constructor(t){pa(this,"filters",new Map),pa(this,"destructedValue",[]),pa(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 fa)t+=n.char;else if(n instanceof ga)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 ga&&!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(fe(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 ga(null,this.filters.get(e.key),e.placeholder):new fa(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=ha(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=i?this.calculateMaxShift(i,o):void 0;this.replaceChars(r,o,a);const s=this.firstEmptyHolderIndex();this.replaceChars(i,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 ga&&++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 ga&&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 ga&&(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 i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ga);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();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 ga&&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 i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof ga&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ga);)++e;return e}}class va extends ma{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function ya(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 $a extends ma{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}),ya(this,"currencyFormatter",new Intl.NumberFormat),ya(this,"decimalSeparator","."),ya(this,"localeDigits",{}),ya(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(fe(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=ha(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),i=t.lastIndexOf(this.decimalSeparator),o=r!==i||-1===r&&-1===i,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;o&&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 i=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(i=e.start);const o=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=o;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 i=t[r];i===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(i)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==i,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=o;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===i?(l.push(this.decimalSeparator),c=!0):!d||u!==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 ba=3;function _a(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 wa(t,e){if(t.nodeType!==ba)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,i=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,i),n.setEnd(r,i),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],i=_a(r);if(e<=i)return void wa(r,e);e-=i}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 xa(t){let e,n;return e=new An({props:{cls:Te("input",da,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ca,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{89:e,90:n,91:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?134217728:0)|(n?268435456:0)|(r?536870912:0)]}]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Te("input",da,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),802672&n[0]|2013265920&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function ka(t){let e,n,r,i,o;return{c(){e=J("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(){H(e,"type",t[9]),H(e,"inputmode",t[10]),H(e,"class",n=Te("input__input",da,{"has-custom-focus":t[91],singleline:!0})),H(e,"autocomplete","off"),H(e,"autocapitalize","off"),H(e,"aria-label",t[11]),H(e,"style",r=ve(t[13])),H(e,"placeholder",t[18]),e.value=t[4]},m(n,r){T(n,e,r),t[76](e),i||(o=[W(e,"input",t[37]),W(e,"mousedown",(function(){l(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),W(e,"click",(function(){l(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),W(e,"focus",(function(){l(t[89])&&t[89].apply(this,arguments)})),W(e,"blur",(function(){l(t[90])&&t[90].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&H(e,"type",t[9]),1024&o[0]&&H(e,"inputmode",t[10]),536870912&o[2]&&n!==(n=Te("input__input",da,{"has-custom-focus":t[91],singleline:!0}))&&H(e,"class",n),2048&o[0]&&H(e,"aria-label",t[11]),8192&o[0]&&r!==(r=ve(t[13]))&&H(e,"style",r),262144&o[0]&&H(e,"placeholder",t[18]),16&o[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&M(e),t[76](null),i=!1,s(o)}}}function Ea(t){let e,n,r,i,o,a,c,u,d,h,p,f,g=!t[8]&&t[18]&&Aa(t);return{c(){e=J("span"),g&&g.c(),n=L(),r=J("span"),i=R("​"),a=L(),c=J("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var o=Y(e);g&&g.l(o),n=it(o),r=et(o,"SPAN",{"aria-hidden":!0,style:!0});var s=Y(r);i=rt(s,"​"),s.forEach(M),a=it(o),c=et(o,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),Y(c).forEach(M),o.forEach(M),this.h()},h(){H(r,"aria-hidden","true"),H(r,"style",o=ve(t[12])),H(c,"class",u=Te("input__input",da,{"has-custom-focus":t[91],multiline:!0})),H(c,"autocapitalize","off"),H(c,"contenteditable","true"),H(c,"aria-label",t[11]),H(c,"style",d=ve(t[13])),void 0===t[8]&&Ft((()=>t[75].call(c))),H(e,"class",h=da["input__scroll-wrapper"])},m(o,s){T(o,e,s),g&&g.m(e,null),N(e,n),N(e,r),N(r,i),N(e,a),N(e,c),t[74](c),void 0!==t[8]&&(c.innerText=t[8]),p||(f=[W(c,"input",t[75]),W(c,"input",t[37]),W(c,"paste",Da),W(c,"mousedown",(function(){l(t[19]?t[38]:void 0)&&(t[19]?t[38]:void 0).apply(this,arguments)})),W(c,"click",(function(){l(t[19]?t[39]:void 0)&&(t[19]?t[39]:void 0).apply(this,arguments)})),W(c,"focus",(function(){l(t[89])&&t[89].apply(this,arguments)})),W(c,"blur",(function(){l(t[90])&&t[90].apply(this,arguments)}))],p=!0)},p(i,a){!(t=i)[8]&&t[18]?g?g.p(t,a):(g=Aa(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),4096&a[0]&&o!==(o=ve(t[12]))&&H(r,"style",o),536870912&a[2]&&u!==(u=Te("input__input",da,{"has-custom-focus":t[91],multiline:!0}))&&H(c,"class",u),2048&a[0]&&H(c,"aria-label",t[11]),8192&a[0]&&d!==(d=ve(t[13]))&&H(c,"style",d),256&a[0]&&t[8]!==c.innerText&&(c.innerText=t[8])},d(n){n&&M(e),g&&g.d(),t[74](null),p=!1,s(f)}}}function Aa(t){let e,n,r,i;return{c(){e=J("div"),n=R(t[18]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=Y(e);n=rt(i,t[18]),i.forEach(M),this.h()},h(){H(e,"class",r=da.input__placeholder),H(e,"aria-hidden","true"),H(e,"style",i=ve(t[13]))},m(t,r){T(t,e,r),N(e,n)},p(t,r){262144&r[0]&&at(n,t[18]),8192&r[0]&&i!==(i=ve(t[13]))&&H(e,"style",i)},d(t){t&&M(e)}}}function Ca(t){let e;function n(t,e){return t[5]?Ea:ka}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function Va(t){let e,n,r=!t[7]&&xa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[7]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),128&n[0]&&Ut(r,1)):(r=xa(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Da(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function Pa(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,A,C,V,D,P,j,F,S,I=n,N=n;var O;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N()));let{json:T={}}=e,{templateContext:M}=e,{origJson:z}=e,{layoutParams:J}=e;const B=wt(pe);let R,L=!1,U=null;const W=T.text_variable,H=null===(O=T.mask)||void 0===O?void 0:O.raw_text_variable;let q=!1;W||(q=!0,B.logError(fe(new Error('Missing "text_variable" in "input"'))));let G=W&&B.getVariable(W,"string")||Qo("temp","string","");p(t,G,(t=>r(56,f=t)));let K=H&&B.getVariable(H,"string")||Qo("temp","string","");p(t,K,(t=>r(57,g=t)));let X="",Y="";const Z=B.getDerivedFromVars(T.mask);p(t,Z,(t=>r(61,b=t)));const Q=B.getDerivedFromVars(T.hint_text);p(t,Q,(t=>r(73,F=t)));const tt=B.getDerivedFromVars(T.hint_color);p(t,tt,(t=>r(72,j=t)));let et="";const nt=B.getDerivedFromVars(T.font_size);p(t,nt,(t=>r(71,P=t)));let rt=12;const it=B.getDerivedFromVars(T.font_weight);p(t,it,(t=>r(70,D=t)));const ot=B.getDerivedFromVars(T.font_family);let at;p(t,ot,(t=>r(69,V=t)));let st="";const lt=B.getDerivedFromVars(T.line_height);let ct;p(t,lt,(t=>r(68,C=t)));const ut=B.getDerivedFromVars(T.letter_spacing);p(t,ut,(t=>r(67,A=t)));let dt="";const ht=B.getDerivedFromVars(T.text_color);p(t,ht,(t=>r(66,E=t)));let pt="#000";const ft=B.getDerivedFromVars(T.highlight_color);p(t,ft,(t=>r(65,k=t)));let gt="";const mt=B.getDerivedFromVars(T.text_alignment_horizontal);p(t,mt,(t=>r(64,x=t)));let vt="left";const yt=B.getDerivedFromVars(T.text_alignment_vertical);p(t,yt,(t=>r(63,w=t)));let _t="center";const xt=B.getDerivedFromVars(T.keyboard_type);p(t,xt,(t=>r(62,_=t)));const kt={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let At="multi_line_text",Ct="text";const Vt="undefined"!=typeof document&&"inputMode"in document.createElement("input");let Dt;const Pt=B.getDerivedFromVars(T.max_visible_lines);p(t,Pt,(t=>r(60,y=t)));let Ft="",St=null,It="",Nt="",Ot="";const Tt=B.getDerivedFromVars(T.select_all_on_focus);function Mt(t){R instanceof HTMLInputElement?r(6,R.selectionStart=r(6,R.selectionEnd=t,R),R):wa(R,t)}async function zt(){if(!R||!U)return;U.overrideRawValue(g),K.set(U.rawValue),$(G,f=r(4,X=r(8,Y=U.value)),f);const t=U.cursorPosition;await jt(),document.activeElement===R&&Mt(t)}return p(t,Tt,(t=>r(19,S=t))),$t((()=>{R&&U&&g&&(U.overrideRawValue(g),$(G,f=r(4,X=r(8,Y=U.value)),f)),T.id&&B.registerFocusable(T.id,{focus(){R&&R.focus()}})})),bt((()=>{T.id&&B.unregisterFocusable(T.id)})),t.$$set=t=>{"json"in t&&r(0,T=t.json),"templateContext"in t&&r(1,M=t.templateContext),"origJson"in t&&r(2,z=t.origJson),"layoutParams"in t&&r(3,J=t.layoutParams)},t.$$.update=()=>{if(1073741824&t.$$.dirty[1]&&("fixed_length"===(null==(e=b)?void 0:e.type)?r(40,U=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 va(r,e)}return n||null}(e,B.logError,U)):"currency"===(null==e?void 0:e.type)&&r(40,U=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new $a(t.locale,e)}(e,B.logError,U)),U&&zt()),16&t.$$.dirty[0]|33554944&t.$$.dirty[1]&&(U||X===f||r(4,X=r(8,Y=f))),67109376&t.$$.dirty[1]&&U&&U.rawValue!==g&&zt(),2048&t.$$.dirty[2]&&r(18,i=F),1024&t.$$.dirty[1]|1024&t.$$.dirty[2]&&r(41,et=_e(j,1,et)),2048&t.$$.dirty[1]|512&t.$$.dirty[2]&&r(42,rt=Vn(P,rt)),4096&t.$$.dirty[1]|384&t.$$.dirty[2]&&(r(43,at=Pn(D,at)),r(44,st=V&&"string"==typeof V?B.typefaceProvider(V,{fontWeight:at||400}):"")),2048&t.$$.dirty[1]|64&t.$$.dirty[2]){const t=C;ln(t)&&r(45,ct=t/rt)}var e;32&t.$$.dirty[2]&&Je(A)&&r(46,dt=ye(A)),65536&t.$$.dirty[1]|16&t.$$.dirty[2]&&r(47,pt=_e(E,1,pt)),131072&t.$$.dirty[1]|8&t.$$.dirty[2]&&r(48,gt=_e(k,1,gt)),262144&t.$$.dirty[1]|4&t.$$.dirty[2]&&r(49,vt=On(x,vt)),524288&t.$$.dirty[1]|2&t.$$.dirty[2]&&r(50,_t=Tn(w,_t)),1073741824&t.$$.dirty[1]|1&t.$$.dirty[2]&&(_&&_ in kt&&(r(9,Ct=kt[_]),r(51,At=_)),"currency"===(null==b?void 0:b.type)&&(r(9,Ct=Vt?"text":"tel"),r(10,Dt="decimal"))),1048576&t.$$.dirty[1]&&r(5,o="multi_line_text"===At),1&t.$$.dirty[0]&&(r(17,a=B.getDerivedFromVars(T.paddings)),N(),N=h(a,(t=>r(59,v=t)))),809519104&t.$$.dirty[1]&&(ln(y)&&r(52,Ft="calc(".concat(y*(ct||1.25)*(rt/10)+"em"," + ").concat($e(Le(null==v?void 0:v.top,0)+Le(null==v?void 0:v.bottom,0)),")")),r(53,St=Xe(v||void 0,St)),r(54,It=St?ze({top:(Number(St.top)||0)/rt*10,right:(Number(St.right)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10,left:(Number(St.left)||0)/rt*10}):""),r(55,Nt=St?ze({top:(Number(St.top)||0)/rt*10,bottom:(Number(St.bottom)||0)/rt*10}):"")),1&t.$$.dirty[0]&&(r(16,s=B.getDerivedFromVars(T.accessibility)),I(),I=h(s,(t=>r(58,m=t)))),134217728&t.$$.dirty[1]&&((null==m?void 0:m.description)?r(11,Ot=m.description):B.logError(fe(new Error('Missing accessibility "description" for input'),{level:"warn"}))),32&t.$$.dirty[0]|917504&t.$$.dirty[1]&&r(15,l={"highlight-color":Boolean(gt),multiline:o,"alignment-horizontal":vt,"alignment-vertical":_t}),2356224&t.$$.dirty[1]&&r(14,c={"--divkit-input-hint-color":et,"--divkit-input-highlight-color":gt,"--divkit-input-line-height":ct,"font-weight":at,"font-family":st,"letter-spacing":dt,color:pt,"max-height":Ft}),8390656&t.$$.dirty[1]&&r(13,u={"font-size":ye(rt),padding:It}),16779264&t.$$.dirty[1]&&r(12,d={"font-size":ye(rt),padding:Nt})},[T,M,z,J,X,o,R,q,Y,Ct,Dt,Ot,d,u,c,l,s,a,i,S,G,K,Z,Q,tt,nt,it,ot,lt,ut,ht,ft,mt,yt,xt,Pt,Tt,function(t){let e=(o?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),X!==e&&(r(4,X=r(8,Y=e)),G.setValue(e),U&&async function(){if(!R||!U)return;U.applyChangeFrom(X,R instanceof HTMLInputElement?null===R.selectionEnd?void 0:R.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const i=r.getRangeAt(0);let o;if(i){if(!i.collapsed)return 0;n+=i.endOffset,o=i.endContainer}if(o instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,o.childNodes.length);e<r;++e)t+=_a(o.childNodes[e]);n=t}for(;o&&o!==t;){var e;const t=o.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(o);for(let e=0;e<r;++e)n+=_a(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===ba||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(R)),K.set(U.rawValue),$(G,f=r(4,X=r(8,Y=U.value)),f);const t=U.cursorPosition;await jt(),document.activeElement===R&&Mt(t)}())},function(){L=!1,setTimeout((()=>{L=!0}),250)},function(){if(!L)if(R instanceof HTMLInputElement)R.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(R),t&&(t.removeAllRanges(),t.addRange(e))}},U,et,rt,at,st,ct,dt,pt,gt,vt,_t,At,Ft,St,It,Nt,f,g,m,v,y,b,_,w,x,k,E,A,C,V,D,P,j,F,function(t){Et[t?"unshift":"push"]((()=>{R=t,r(6,R)}))},function(){Y=this.innerText,r(8,Y),r(40,U),r(4,X),r(56,f)},function(t){Et[t?"unshift":"push"]((()=>{R=t,r(6,R)}))}]}const ja={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 Fa(t,e,n){const r=t.slice();return r[54]=e[n],r}function Sa(t){let e,n;return e=new An({props:{cls:Te("select",ja,t[12]),style:t[11],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Na,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{51:e,52:n,53:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?1048576:0)|(n?2097152:0)|(r?4194304:0)]}]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Te("select",ja,t[12])),2048&n[0]&&(r.style=t[11]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),18288&n[0]|74448896&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ia(t){let e,r,i,o,a=(t[54].text||t[54].value)+"";return{c(){e=J("option"),r=R(a),this.h()},l(t){e=et(t,"OPTION",{class:!0});var n=Y(e);r=rt(n,a),n.forEach(M),this.h()},h(){var n,r;H(e,"class",i=ja.select__option),e.__value=o=t[54].value,n=e,r=e.__value,n.value=null==r?"":r},m(t,n){T(t,e,n),N(e,r)},p:n,d(t){t&&M(e)}}}function Na(t){let e,n,r,i,o,a,c,u,d,h,p=(t[4]||t[14]||"​")+"",f=Gt(t[17]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Ia(Fa(t,f,e));return{c(){e=J("span"),n=R(p),o=L(),a=J("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),o=it(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=Y(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(M),this.h()},h(){H(e,"class",r=ja["select__select-text"]),H(e,"style",i=ve(t[10])),H(e,"aria-hidden","true"),H(a,"class",c=Te("select__select",ja,{"has-custom-focus":t[51]})),H(a,"aria-label",t[8]),H(a,"style",u=ve(t[9])),void 0===t[5]&&Ft((()=>t[46].call(a)))},m(r,i){T(r,e,i),N(e,n),T(r,o,i),T(r,a,i);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[45](a),lt(a,t[5],!0),d||(h=[W(a,"change",t[46]),W(a,"focus",(function(){l(t[52])&&t[52].apply(this,arguments)})),W(a,"blur",(function(){l(t[53])&&t[53].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,16400&o[0]&&p!==(p=(t[4]||t[14]||"​")+"")&&at(n,p),1024&o[0]&&i!==(i=ve(t[10]))&&H(e,"style",i),131072&o[0]){let e;for(f=Gt(t[17]),e=0;e<f.length;e+=1){const n=Fa(t,f,e);g[e]?g[e].p(n,o):(g[e]=Ia(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}1048576&o[1]&&c!==(c=Te("select__select",ja,{"has-custom-focus":t[51]}))&&H(a,"class",c),256&o[0]&&H(a,"aria-label",t[8]),512&o[0]&&u!==(u=ve(t[9]))&&H(a,"style",u),131104&o[0]&&lt(a,t[5])},d(n){n&&(M(e),M(o),M(a)),z(g,n),t[45](null),d=!1,s(h)}}}function Oa(t){let e,n,r=!t[7]&&Sa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[7]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),128&n[0]&&Ut(r,1)):(r=Sa(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ta(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k=n,E=n;t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:A={}}=e,{templateContext:C}=e,{origJson:V}=e,{layoutParams:D}=e;const P=wt(pe),j=A.value_variable;let F,S=!1;j||(S=!0,P.logError(fe(new Error('Missing "value_variable" in "select"'))));let I=j&&P.getVariable(j,"string")||Qo("temp","string","");p(t,I,(t=>r(5,x=t)));let N="";const O=A.options,T=Array.isArray(O)&&O.filter((t=>"string"==typeof t.value))||[];Array.isArray(T)&&T.length||P.logError(fe(new Error('Empty selection "items" in "select"')));let M="",z=null,J="";const B=P.getDerivedFromVars(A.hint_text);p(t,B,(t=>r(43,_=t)));const R=P.getDerivedFromVars(A.hint_color);p(t,R,(t=>r(42,b=t)));let L="rgba(0,0,0,.45)";const U=P.getDerivedFromVars(A.font_size);p(t,U,(t=>r(41,$=t)));let W=12;const H=P.getDerivedFromVars(A.font_weight);p(t,H,(t=>r(40,y=t)));const q=P.getDerivedFromVars(A.font_family);let G;p(t,q,(t=>r(39,v=t)));let K="";const X=P.getDerivedFromVars(A.line_height);let Y;p(t,X,(t=>r(38,m=t)));const Z=P.getDerivedFromVars(A.letter_spacing);p(t,Z,(t=>r(37,g=t)));let Q="";const tt=P.getDerivedFromVars(A.text_color);p(t,tt,(t=>r(36,f=t)));let et="#000",nt="";return $t((()=>{A.id&&P.registerFocusable(A.id,{focus(){F&&F.focus()}})})),bt((()=>{A.id&&P.unregisterFocusable(A.id)})),t.$$set=t=>{"json"in t&&r(0,A=t.json),"templateContext"in t&&r(1,C=t.templateContext),"origJson"in t&&r(2,V=t.origJson),"layoutParams"in t&&r(3,D=t.layoutParams)},t.$$.update=()=>{if(32&t.$$.dirty[0]&&(N=x),32&t.$$.dirty[0]){const t=T.find((t=>t.value===x));t?r(4,M="string"==typeof t.text?t.text:t.value):(r(4,M=""),x&&P.logError(fe(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(r(15,i=P.getDerivedFromVars(A.paddings)),E(),E=h(i,(t=>r(44,w=t)))),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]&&r(29,W=Vn($,W)),603979776&t.$$.dirty[0]|8192&t.$$.dirty[1]&&(r(26,z=Xe(w||void 0,z)),r(27,J=z?ze({top:(Number(z.top)||0)/W*10,right:(Number(z.right)||0)/W*10,bottom:(Number(z.bottom)||0)/W*10,left:(Number(z.left)||0)/W*10}):"")),4096&t.$$.dirty[1]&&r(14,o=_),268435456&t.$$.dirty[0]|2048&t.$$.dirty[1]&&r(28,L=_e(b,1,L)),1073741824&t.$$.dirty[0]|768&t.$$.dirty[1]&&(r(30,G=Pn(y,G)),r(31,K=v&&"string"==typeof v?P.typefaceProvider(v,{fontWeight:G||400}):"")),536870912&t.$$.dirty[0]|128&t.$$.dirty[1]){const t=m;ln(t)&&r(32,Y=t/W)}536870912&t.$$.dirty[0]|64&t.$$.dirty[1]&&Je(g)&&r(33,Q=ye(g/W*10)),40&t.$$.dirty[1]&&r(34,et=_e(f,1,et)),1&t.$$.dirty[0]&&(r(13,a=P.getDerivedFromVars(A.accessibility)),k(),k=h(a,(t=>r(35,d=t)))),16&t.$$.dirty[1]&&((null==d?void 0:d.description)?r(8,nt=d.description):P.logError(fe(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&r(12,s={hint:!M}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(11,l={"--divkit-input-hint-color":L,"font-weight":G,"font-family":K,color:et}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(10,c={padding:J,"font-size":ye(W),"line-height":Y,"letter-spacing":Q}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,u={"font-size":ye(W),"line-height":Y,"letter-spacing":Q})},[A,C,V,D,M,x,F,S,nt,u,c,l,s,a,o,i,I,T,B,R,U,H,q,X,Z,tt,z,J,L,W,G,K,Y,Q,et,d,f,g,m,v,y,$,b,_,w,function(t){Et[t?"unshift":"push"]((()=>{F=t,r(6,F)}))},function(){x=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),I.set(x),r(17,T)}]}const Ma={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function za(t,e,n){const r=t.slice();return r[41]=e[n],r}function Ja(t,e,n){const r=t.slice();return r[41]=e[n],r}function Ba(t){let e,n;return e=new An({props:{cls:Te("video",Ma,t[13]),customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ha]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Te("video",Ma,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),15344&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ra(t){let e,n,r,i,o,a=Gt(t[4]),l=[];for(let e=0;e<a.length;e+=1)l[e]=Ua(za(t,a,e));return{c(){e=J("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(){H(e,"class",n=Ma.video__video),H(e,"style",r=ve(t[12])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],H(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[36](e),i||(o=[W(e,"timeupdate",t[21]),W(e,"ended",t[22]),W(e,"playing",t[23]),W(e,"pause",t[24]),W(e,"waiting",t[25]),W(e,"error",t[26])],i=!0)},p(t,n){if(67108880&n[0]){let r;for(a=Gt(t[4]),r=0;r<a.length;r+=1){const i=za(t,a,r);l[r]?l[r].p(i,n):(l[r]=Ua(i),l[r].c(),l[r].m(e,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=a.length}4096&n[0]&&r!==(r=ve(t[12]))&&H(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]&&H(e,"poster",t[8])},d(n){n&&M(e),z(l,n),t[36](null),i=!1,s(o)}}}function La(t){let e,n,r,i,o,a,l,c="".concat(t[9],"%"),u=Gt(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Wa(Ja(t,u,e));return{c(){e=J("div"),n=J("video");for(let t=0;t<d.length;t+=1)d[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 i=Y(n);for(let t=0;t<d.length;t+=1)d[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(n,"class",r=Ma.video__video),H(n,"style",i=ve(t[12])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],H(n,"poster",t[8]),H(e,"class",o=Ma["video__aspect-wrapper"]),st(e,"padding-bottom",c)},m(r,i){T(r,e,i),N(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[35](n),a||(l=[W(n,"timeupdate",t[21]),W(n,"ended",t[22]),W(n,"playing",t[23]),W(n,"pause",t[24]),W(n,"waiting",t[25]),W(n,"error",t[26])],a=!0)},p(t,r){if(67108880&r[0]){let e;for(u=Gt(t[4]),e=0;e<u.length;e+=1){const i=Ja(t,u,e);d[e]?d[e].p(i,r):(d[e]=Wa(i),d[e].c(),d[e].m(n,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}4096&r[0]&&i!==(i=ve(t[12]))&&H(n,"style",i),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),256&r[0]&&H(n,"poster",t[8]),512&r[0]&&c!==(c="".concat(t[9],"%"))&&st(e,"padding-bottom",c)},d(n){n&&M(e),z(d,n),t[35](null),a=!1,s(l)}}}function Ua(t){let e,n,r,i,o;return{c(){e=J("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[41].src)||H(e,"src",n),H(e,"type",r=t[41].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[41].src)&&H(e,"src",n),16&i[0]&&r!==(r=t[41].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function Wa(t){let e,n,r,i,o;return{c(){e=J("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[41].src)||H(e,"src",n),H(e,"type",r=t[41].type)},m(n,r){T(n,e,r),i||(o=W(e,"error",t[26]),i=!0)},p(t,i){16&i[0]&&!u(e.src,n=t[41].src)&&H(e,"src",n),16&i[0]&&r!==(r=t[41].type)&&H(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function Ha(t){let e;function n(t,e){return t[13].aspect?La:Ra}let r=n(t),i=r(t);return{c(){i.c(),e=U()},l(t){i.l(t),e=U()},m(t,n){i.m(t,n),T(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){t&&M(e),i.d(t)}}}function qa(t){let e,n,r=!t[10]&&Ba(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){t[10]?r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt()):r?(r.p(t,n),1024&n[0]&&Ut(r,1)):(r=Ba(t),r.c(),Ut(r,1),r.m(e.parentNode,e))},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ga(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v=n,y=n;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:b}=e,{origJson:_}=e,{layoutParams:w}=e;const x=wt(pe);let k,E=!1,A=!1;const C=x.getDerivedFromVars($.video_sources);p(t,C,(t=>r(34,m=t)));let V=[];const D=x.getDerivedFromVars($.repeatable);p(t,D,(t=>r(33,g=t)));let P=!1;const j=x.getDerivedFromVars($.autostart);p(t,j,(t=>r(32,f=t)));let F=!1;const S=x.getDerivedFromVars($.muted);p(t,S,(t=>r(31,d=t)));let I=!1;const N=x.getDerivedFromVars($.preview);let O;p(t,N,(t=>r(30,u=t)));let T="fit",M="0";const z=$.elapsed_time_variable;let J=z&&x.getVariable(z,"integer")||Qo("temp","integer",0);return J.subscribe((t=>{A?A=!1:k&&r(11,k.currentTime=Number(t)/1e3,k)})),!$.id||E||(null==w?void 0:w.fakeElement)||x.registerInstance($.id,{pause(){null==k||k.pause()},start(){const t=null==k?void 0:k.play();t&&t.catch((t=>{x.logError(fe(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}}),bt((()=>{!$.id||E||(null==w?void 0:w.fakeElement)||x.unregisterInstance($.id)})),t.$$set=t=>{"json"in t&&r(0,$=t.json),"templateContext"in t&&r(1,b=t.templateContext),"origJson"in t&&r(2,_=t.origJson),"layoutParams"in t&&r(3,w=t.layoutParams)},t.$$.update=()=>{var e,n;if(16&t.$$.dirty[0]|8&t.$$.dirty[1]&&(r(4,(e=m,n=V,V=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)),V.length?r(10,E=!1):(r(10,E=!0),x.logError(fe(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(5,P=Mn(g,P)),64&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(6,F=Mn(f,F)),128&t.$$.dirty[0]|1&t.$$.dirty[1]&&r(7,I=Mn(d,I)),1073742080&t.$$.dirty[0]&&r(8,O="string"==typeof u?Fr(u):O),1&t.$$.dirty[0]&&(r(15,i=x.getDerivedFromVars($.scale)),y(),y=h(i,(t=>r(29,c=t)))),671088640&t.$$.dirty[0]&&r(27,T=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(c)||T),1&t.$$.dirty[0]&&(r(14,o=x.getDerivedFromVars($.aspect)),v(),v=h(o,(t=>r(28,l=t)))),268435456&t.$$.dirty[0]){const t=null==l?void 0:l.ratio;t&&ln(t)?r(9,M=(100/Number(t)).toFixed(2)):r(9,M="0")}512&t.$$.dirty[0]&&r(13,a={aspect:"0"!==M}),134217728&t.$$.dirty[0]&&r(12,s={"object-fit":T})},[$,b,_,w,V,P,F,I,O,M,E,k,s,a,o,i,C,D,j,S,N,function(){k&&(A=!0,J.setValue(Math.floor(1e3*k.currentTime)))},function(){const t=x.getJsonWithVars($.end_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.resume_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.pause_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.buffering_actions);x.execAnyActions(t)},function(){const t=x.getJsonWithVars($.fatal_actions);x.execAnyActions(t)},T,l,c,u,d,f,g,m,function(t){Et[t?"unshift":"push"]((()=>{k=t,r(11,k)}))},function(t){Et[t?"unshift":"push"]((()=>{k=t,r(11,k)}))}]}function Ka(t,e,n){const r=t.slice();return r[15]=e[n],r}function Xa(t){let e,n;return e=new An({props:{json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ns]},$$scope:{ctx:t}}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),266225&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function Ya(t){let e,n,r=[t[9]],o={};for(let t=0;t<r.length;t+=1)o=i(o,r[t]);return{c(){e=J("template"),n=new ut(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=Y(e.content);n=function(t,e){const n=ot(t,"HTML_TAG_START",0),r=ot(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new ut(false);Z(t);const i=t.splice(n,r-n+1);M(i[0]),M(i[i.length-1]);const o=i.slice(1,i.length-1);for(const e of o)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new ut(false,o)}(r),r.forEach(M),this.h()},h(){n.a=null,G(e,o)},m(r,i){T(r,e,i),n.m(t[8],e.content)},p(t,i){256&i&&n.p(t[8]),G(e,o=Yt(r,[512&i&&t[9]]))},d(t){t&&M(e)}}}function Za(t){let e,r,i=t[6],o=ts(t);return{c(){o.c(),e=U()},l(t){o.l(t),e=U()},m(t,n){o.m(t,n),T(t,e,n),r=!0},p(t,r){64&r&&d(i,i=t[6])?(Rt(),Wt(o,1,1,n),Lt(),o=ts(t),o.c(),Ut(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ut(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function Qa(t){let e,n;return e=new cs({props:{layoutParams:t[10],div:t[15].json,templateContext:t[15].templateContext,origJson:t[15].origJson}}),{c(){ne(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n&&(r.layoutParams=t[10]),2048&n&&(r.div=t[15].json),2048&n&&(r.templateContext=t[15].templateContext),2048&n&&(r.origJson=t[15].origJson),e.$set(r)},i(t){n||(Ut(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){oe(e,t)}}}function ts(t){let e,n,r=Gt(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Qa(Ka(t,r,e));const o=t=>Wt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=U()},m(t,r){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,r);T(t,e,r),n=!0},p(t,n){if(3072&n){let a;for(r=Gt(t[11]),a=0;a<r.length;a+=1){const o=Ka(t,r,a);i[a]?(i[a].p(o,n),Ut(i[a],1)):(i[a]=Qa(o),i[a].c(),Ut(i[a],1),i[a].m(e.parentNode,e))}for(Rt(),a=r.length;a<i.length;a+=1)o(a);Lt()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ut(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function es(t){let e,n,r,o=t[8]&&Ya(t),a=!t[5]&&t[6]&&Za(t),s=[t[0].custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=i(l,s[t]);return{c(){e=J(t[4].element),o&&o.c(),n=L(),a&&a.c(),this.h()},l(r){e=et(r,(t[4].element||"null").toUpperCase(),{});var i=Y(e);o&&o.l(i),n=it(i),a&&a.l(i),i.forEach(M),this.h()},h(){X(t[4].element)(e,l)},m(i,s){T(i,e,s),o&&o.m(e,null),N(e,n),a&&a.m(e,null),t[13](e),r=!0},p(t,r){t[8]?o?o.p(t,r):(o=Ya(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!t[5]&&t[6]?a?(a.p(t,r),96&r&&Ut(a,1)):(a=Za(t),a.c(),Ut(a,1),a.m(e,null)):a&&(Rt(),Wt(a,1,1,(()=>{a=null})),Lt()),X(t[4].element)(e,l=Yt(s,[1&r&&(t[0].custom_props||{})]))},i(t){r||(Ut(a),r=!0)},o(t){Wt(a),r=!1},d(n){n&&M(e),o&&o.d(),a&&a.d(),t[13](null)}}}function ns(t){let e,r,i=t[4].element,o=t[4].element&&es(t);return{c(){o&&o.c(),e=U()},l(t){o&&o.l(t),e=U()},m(t,n){o&&o.m(t,n),T(t,e,n)},p(t,n){t[4].element?i?d(i,t[4].element)?(o.d(1),o=es(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):o.p(t,n):(o=es(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):i&&(o.d(1),o=null,i=t[4].element)},i:n,o(t){Wt(o,t),r=!1},d(t){t&&M(e),o&&o.d(t)}}}function rs(t){let e,n,r=t[4]&&Xa(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[4]?r?(r.p(t,i),16&i&&Ut(r,1)):(r=Xa(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function is(t,e,n){let r,i,o;var a;let{json:s={}}=e,{templateContext:l}=e,{origJson:c}=e,{layoutParams:u}=e;const d=wt(pe);let h,p=null,f="",g={},m=!1;return $t((()=>{if(h&&"divKitApiCallback"in h&&"function"==typeof h.divKitApiCallback){const t=d.getExtensionContext();h.divKitApiCallback(t)}})),t.$$set=t=>{"json"in t&&n(0,s=t.json),"templateContext"in t&&n(1,l=t.templateContext),"origJson"in t&&n(2,c=t.origJson),"layoutParams"in t&&n(3,u=t.layoutParams)},t.$$.update=()=>{if(4113&t.$$.dirty)if("string"==typeof s.custom_type&&s.custom_type&&(null===n(12,a=d.customComponents)||void 0===a?void 0:a.has(s.custom_type))){if(n(4,p=d.customComponents.get(s.custom_type)),"function"==typeof p.template){const t=d.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(8,f=p.template({props:s.custom_props,variables:e}))}else p.template&&"string"==typeof p.template?n(8,f=p.template):n(8,f="");n(9,g={shadowrootmode:p.shadowRootMode||"open"})}else n(4,p=null),n(8,f=";"),d.logError(fe(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(6,r=s.items),64&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(5,m=!1):(n(5,m=!0),d.logError(fe(new Error('Incorrect "items" prop for div "custom"'))))),98&t.$$.dirty&&n(11,i=(!m&&r||[]).map((t=>{let e=t,n=l;return({templateContext:n,json:e}=d.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),8&t.$$.dirty&&n(10,o={fakeElement:null==u?void 0:u.fakeElement})},[s,l,c,u,p,m,r,h,f,g,o,i,a,function(t){Et[t?"unshift":"push"]((()=>{h=t,n(7,h)}))}]}const os={};function as(t){let e,n,r;var i=t[5];function o(t,e){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=dt(i,o(t))),{c(){e&&ne(e.$$.fragment),n=U()},l(t){e&&re(e.$$.fragment,t),n=U()},m(t,i){e&&ie(e,t,i),T(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){Rt();const t=e;Wt(t.$$.fragment,1,0,(()=>{oe(t,1)})),Lt()}i?(e=dt(i,o(t)),ne(e.$$.fragment),Ut(e.$$.fragment,1),ie(e,n.parentNode,n)):e=null}else if(i){const n={};8&r&&(n.json=t[3]),16&r&&(n.templateContext=t[4]),4&r&&(n.layoutParams=t[2]),3&r&&(n.origJson=t[1]||t[0]),e.$set(n)}},i(t){r||(e&&Ut(e.$$.fragment,t),r=!0)},o(t){e&&Wt(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&oe(e,t)}}}function ss(t){let e,n,r=t[5]&&as(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Ut(r,1)):(r=as(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function ls(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=wt(pe);let l,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,l=r),n(4,c=i),n(5,u=l&&os[l.type]||void 0),!u&&(n(4,({templateContext:c,json:l}=s.processTemplate(l,c)),c,(n(3,l),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=l&&os[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(fe(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}os.text=class extends le{constructor(t){super(),ae(this,t,Yn,Xn,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.container=class extends le{constructor(t){super(),ae(this,t,kr,xr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.separator=class extends le{constructor(t){super(),ae(this,t,Pr,Dr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},os.image=Rr,os.gif=Rr,os.grid=class extends le{constructor(t){super(),ae(this,t,Qr,Zr,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.gallery=class extends le{constructor(t){super(),ae(this,t,gi,fi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},os.tabs=class extends le{constructor(t){super(),ae(this,t,Fi,ji,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},os.state=class extends le{constructor(t){super(),ae(this,t,xo,_o,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.pager=class extends le{constructor(t){super(),ae(this,t,Fo,jo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.indicator=class extends le{constructor(t){super(),ae(this,t,zo,Mo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.slider=class extends le{constructor(t){super(),ae(this,t,ua,la,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},os.input=class extends le{constructor(t){super(),ae(this,t,Pa,Va,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},os.select=class extends le{constructor(t){super(),ae(this,t,Ta,Oa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.video=class extends le{constructor(t){super(),ae(this,t,Ga,qa,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},os.custom=class extends le{constructor(t){super(),ae(this,t,is,rs,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}};const cs=class extends le{constructor(t){super(),ae(this,t,ls,ss,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},us={"root-svg-filters":"divkit-dc22b"};function ds(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function hs(t){let e,n,r,i=Gt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=ms(ds(t,i,e));return{c(){e=B("svg"),n=B("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=Y(e);n=nt(r,"defs",{});var i=Y(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){H(e,"class",r=us["root-svg-filters"]),H(e,"aria-hidden","true")},m(t,r){T(t,e,r),N(e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=Gt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=ds(t,i,r);o[r]?o[r].p(a,e):(o[r]=ms(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&M(e),z(o,t)}}}function ps(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(){H(e,"in2","SourceGraphic"),H(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&H(e,"mode",n)},d(t){t&&M(e)}}}function fs(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(){H(e,"in2","SourceGraphic"),H(e,"operator","arithmetic"),H(e,"k1","1"),H(e,"k2","0"),H(e,"k3","0"),H(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(){H(e,"in2","SourceGraphic"),H(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])&&H(e,"operator",n)},d(t){t&&M(e)}}}function ms(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?gs:"multiply"===t[3]?fs:ps}let a=o(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(){H(n,"flood-color",r=t[2]),H(e,"id",i=t[0][t[1]])},m(t,r){T(t,e,r),N(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&H(n,"flood-color",r),a===(a=o(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&i!==(i=t[0][t[1]])&&H(e,"id",i)},d(t){t&&M(e),s.d()}}}function vs(t){let e,r=Object.keys(t[0]).length,i=r&&hs(t);return{c(){i&&i.c(),e=U()},l(t){i&&i.l(t),e=U()},m(t,n){i&&i.m(t,n),T(t,e,n)},p(t,n){let[o]=n;1&o&&(r=Object.keys(t[0]).length),r?i?i.p(t,o):(i=hs(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:n,o:n,d(t){t&&M(e),i&&i.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 $s=class extends le{constructor(t){super(),ae(this,t,ys,vs,d,{svgFiltersMap:0})}};function bs(t,e,n,r){const i=n[t.type];if(!i)return r(fe(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(s[o]=t[o]);return{json:s,templateContext:a}}function _s(){}function ws(t){return{subscribe:e=>(e(t),_s)}}function xs(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function ks(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function Es(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 As(t){try{return qo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Cs(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Vs(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Vs.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Ds(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Ps(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ce,JsonStringContents:function(){var t,e,n;for(t=fe,e=[],n=Ve();n!==r;)e.push(n),n=Ve();return ge=t,e=jt(e)}},a=Ce,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="||",f="&&",g="==",m="!=",v=">=",y=">",$="<=",b="<",_="+",w="-",x="/",k="*",E="%",A="!",C="(",V=")",D=",",P="'",j=".",F="e",S="E",I="true",N="false",O=/^[^}]/,T=/^[^'}]/,M=/^[0-9]/,z=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,B=/^[ \t\r\n]/,R=_e("@{",!1),L=_e("}",!1),U=_e("@{}",!1),W=_e("\\",!1),H={type:"any"},q=we(["}"],!0,!1),G=_e("?",!1),K=_e(":",!1),X=_e("||",!1),Y=_e("&&",!1),Z=_e("==",!1),Q=_e("!=",!1),tt=_e(">=",!1),et=_e(">",!1),nt=_e("<=",!1),rt=_e("<",!1),it=_e("+",!1),ot=_e("-",!1),at=_e("/",!1),st=_e("*",!1),lt=_e("%",!1),ct=_e("!",!1),ut=_e("(",!1),dt=_e(")",!1),ht=_e(",",!1),pt=xe("string"),ft=_e("'",!1),gt=we(["'","}"],!0,!1),mt=xe("integer"),vt=we([["0","9"]],!1,!1),yt=xe("number"),$t=_e(".",!1),bt=_e("e",!1),_t=_e("E",!1),wt=xe("boolean"),xt=_e("true",!1),kt=_e("false",!1),Et=we([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),At=xe("identifier"),Ct=we([["a","z"],["A","Z"],"_"],!1,!1),Vt=xe("whitespace"),Dt=we([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},jt=function(t){return Es(t)},Ft=function(t){return t},St=function(){return""},It=function(){return be()},Nt=function(){throw new Error("Error tokenizing '"+t+"'.")},Ot=function(){throw new Error("Error tokenizing '"+t+"'.")},Tt=function(t){return t},Mt=function(t){return Cs(t)},zt=function(){throw new Error("Error tokenizing '"+t+"'.")},Jt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Bt=function(t,e){return ks(t,e)},Rt=function(t,e){return ks(t,e)},Lt=function(t,e){return xs(t,e)},Ut=function(t,e){return xs(t,e)},Wt=function(t,e){return xs(t,e)},Ht=function(t,e){return xs(t,e)},qt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Gt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Kt=function(t){return{type:"Variable",id:t}},Xt=function(t,e){return[t,...e]},Yt=function(t){return t},Zt=function(t){return t},Qt=function(t){return Es(t)},te=function(t){return t},ee=function(){return""},ne=function(){return be()},re=function(){throw new Error("Error tokenizing '"+t+"'.")},ie=function(){throw new Error("Error tokenizing '"+t+"'.")},oe=function(t){return t},ae=function(t){return Cs(t)},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(){return{type:"IntegerLiteral",value:As(be())}},ce=function(){return{type:"NumberLiteral",value:parseFloat(be())}},ue=function(){return{type:"NumberLiteral",value:parseFloat(be())}},de=function(){return{type:"BooleanLiteral",value:!0}},he=function(){return{type:"BooleanLiteral",value:!1}},pe=function(){return{type:"Identifier",name:be()}},fe=0,ge=0,me=[{line:1,column:1}],ve=0,ye=[],$e=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function be(){return t.substring(ge,fe)}function _e(t,e){return{type:"literal",text:t,ignoreCase:e}}function we(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function xe(t){return{type:"other",description:t}}function ke(e){var n,r=me[e];if(r)return r;for(n=e-1;!me[n];)n--;for(r={line:(r=me[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return me[e]=r,r}function Ee(t,e,n){var r=ke(t),o=ke(e),a={source:i,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:o.line,column:o.column}};return n&&i&&"function"==typeof i.offset&&(a.start=i.offset(a.start),a.end=i.offset(a.end)),a}function Ae(t){fe<ve||(fe>ve&&(ve=fe,ye=[]),ye.push(t))}function Ce(){var t,e;return t=fe,Be(),(e=De())!==r?(Be(),ge=t,t=Pt(e)):(fe=t,t=r),t}function Ve(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===$e&&Ae(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=l,fe++):(a=r,0===$e&&Ae(L)),a!==r?(ge=e,e=Ft(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ae(U)),n!==r&&(ge=e,n=St()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ae(W)),i===r&&(t.substr(fe,2)===s?(i=s,fe+=2):(i=r,0===$e&&Ae(R))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=It()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===$e&&Ae(R)),n!==r){if(i=[],O.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(q)),o!==r)for(;o!==r;)i.push(o),O.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(q));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=l,fe++):(o=r,0===$e&&Ae(L)),o!==r?(ge=e,e=Nt()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===$e&&Ae(R)),n!==r&&(ge=e,n=Ot()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.substr(fe,2)===s?(i=s,fe+=2):(i=r,0===$e&&Ae(R)),i!==r?(ge=e,e=Tt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=Mt(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r&&(ge=e,n=zt()),e=n))))}return e}function De(){var e,n,i,o,a,s;return e=fe,(n=Pe())!==r?(Be(),63===t.charCodeAt(fe)?(i=d,fe++):(i=r,0===$e&&Ae(G)),i!==r?(Be(),(o=De())!==r?(Be(),58===t.charCodeAt(fe)?(a=h,fe++):(a=r,0===$e&&Ae(K)),a!==r?(Be(),(s=De())!==r?(ge=e,e=Jt(n,o,s)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=Pe()),e}function Pe(){var e,n,i,o,a,s,l,c;if(e=fe,(n=je())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===p?(s=p,fe+=2):(s=r,0===$e&&Ae(X)),s!==r?(l=Be(),(c=je())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===p?(s=p,fe+=2):(s=r,0===$e&&Ae(X)),s!==r?(l=Be(),(c=je())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Bt(n,i)}else fe=e,e=r;return e}function je(){var e,n,i,o,a,s,l,c;if(e=fe,(n=Fe())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===f?(s=f,fe+=2):(s=r,0===$e&&Ae(Y)),s!==r?(l=Be(),(c=Fe())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===f?(s=f,fe+=2):(s=r,0===$e&&Ae(Y)),s!==r?(l=Be(),(c=Fe())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Rt(n,i)}else fe=e,e=r;return e}function Fe(){var e,n,i,o,a,s,l,c;if(e=fe,(n=Se())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===g?(s=g,fe+=2):(s=r,0===$e&&Ae(Z)),s===r&&(t.substr(fe,2)===m?(s=m,fe+=2):(s=r,0===$e&&Ae(Q))),s!==r?(l=Be(),(c=Se())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===g?(s=g,fe+=2):(s=r,0===$e&&Ae(Z)),s===r&&(t.substr(fe,2)===m?(s=m,fe+=2):(s=r,0===$e&&Ae(Q))),s!==r?(l=Be(),(c=Se())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Lt(n,i)}else fe=e,e=r;return e}function Se(){var e,n,i,o,a,s,l,c;if(e=fe,(n=Ie())!==r){for(i=[],o=fe,a=Be(),t.substr(fe,2)===v?(s=v,fe+=2):(s=r,0===$e&&Ae(tt)),s===r&&(62===t.charCodeAt(fe)?(s=y,fe++):(s=r,0===$e&&Ae(et)),s===r&&(t.substr(fe,2)===$?(s=$,fe+=2):(s=r,0===$e&&Ae(nt)),s===r&&(60===t.charCodeAt(fe)?(s=b,fe++):(s=r,0===$e&&Ae(rt))))),s!==r?(l=Be(),(c=Ie())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),t.substr(fe,2)===v?(s=v,fe+=2):(s=r,0===$e&&Ae(tt)),s===r&&(62===t.charCodeAt(fe)?(s=y,fe++):(s=r,0===$e&&Ae(et)),s===r&&(t.substr(fe,2)===$?(s=$,fe+=2):(s=r,0===$e&&Ae(nt)),s===r&&(60===t.charCodeAt(fe)?(s=b,fe++):(s=r,0===$e&&Ae(rt))))),s!==r?(l=Be(),(c=Ie())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ut(n,i)}else fe=e,e=r;return e}function Ie(){var e,n,i,o,a,s,l,c;if(e=fe,(n=Ne())!==r){for(i=[],o=fe,a=Be(),43===t.charCodeAt(fe)?(s=_,fe++):(s=r,0===$e&&Ae(it)),s===r&&(45===t.charCodeAt(fe)?(s=w,fe++):(s=r,0===$e&&Ae(ot))),s!==r?(l=Be(),(c=Ne())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),43===t.charCodeAt(fe)?(s=_,fe++):(s=r,0===$e&&Ae(it)),s===r&&(45===t.charCodeAt(fe)?(s=w,fe++):(s=r,0===$e&&Ae(ot))),s!==r?(l=Be(),(c=Ne())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Wt(n,i)}else fe=e,e=r;return e}function Ne(){var e,n,i,o,a,s,l,c;if(e=fe,(n=Oe())!==r){for(i=[],o=fe,a=Be(),47===t.charCodeAt(fe)?(s=x,fe++):(s=r,0===$e&&Ae(at)),s===r&&(42===t.charCodeAt(fe)?(s=k,fe++):(s=r,0===$e&&Ae(st)),s===r&&(37===t.charCodeAt(fe)?(s=E,fe++):(s=r,0===$e&&Ae(lt)))),s!==r?(l=Be(),(c=Oe())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,a=Be(),47===t.charCodeAt(fe)?(s=x,fe++):(s=r,0===$e&&Ae(at)),s===r&&(42===t.charCodeAt(fe)?(s=k,fe++):(s=r,0===$e&&Ae(st)),s===r&&(37===t.charCodeAt(fe)?(s=E,fe++):(s=r,0===$e&&Ae(lt)))),s!==r?(l=Be(),(c=Oe())!==r?o=a=[a,s,l,c]:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Ht(n,i)}else fe=e,e=r;return e}function Oe(){var e,n,i;return(e=ze())===r&&(e=Me())===r&&(e=fe,33===t.charCodeAt(fe)?(n=A,fe++):(n=r,0===$e&&Ae(ct)),n===r&&(43===t.charCodeAt(fe)?(n=_,fe++):(n=r,0===$e&&Ae(it)),n===r&&(45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)))),n!==r?(Be(),(i=Oe())!==r?(ge=e,e=qt(n,i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=fe,(n=Je())!==r?(Be(),40===t.charCodeAt(fe)?(i=C,fe++):(i=r,0===$e&&Ae(ut)),i!==r?(Be(),o=function(){var e,n,i,o,a,s;if(e=fe,(n=De())!==r){for(i=[],o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ae(ht)),a!==r?(Be(),(s=De())!==r?o=s:(fe=o,o=r)):(fe=o,o=r);o!==r;)i.push(o),o=fe,Be(),44===t.charCodeAt(fe)?(a=D,fe++):(a=r,0===$e&&Ae(ht)),a!==r?(Be(),(s=De())!==r?o=s:(fe=o,o=r)):(fe=o,o=r);ge=e,e=Xt(n,i)}else fe=e,e=r;return e===r&&(e=Be()),e}(),o!==r?(Be(),41===t.charCodeAt(fe)?(a=V,fe++):(a=r,0===$e&&Ae(dt)),a!==r?(ge=e,e=Gt(n,o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,(n=Je())!==r&&(ge=e,n=Kt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return $e++,e=fe,39===t.charCodeAt(fe)?(n=P,fe++):(n=r,0===$e&&Ae(ft)),n!==r?(i=function(){var t,e,n;for(t=fe,e=[],n=Te();n!==r;)e.push(n),n=Te();return ge=t,t=e=Qt(e)}(),39===t.charCodeAt(fe)?(o=P,fe++):(o=r,0===$e&&Ae(ft)),o!==r?(ge=e,e=Zt(i)):(fe=e,e=r)):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ae(pt)),e}(),e===r&&(e=ze())===r&&(e=Me())===r&&(e=function(){var e,n;return $e++,e=fe,t.substr(fe,4)===I?(n=I,fe+=4):(n=r,0===$e&&Ae(xt)),n!==r&&(ge=e,n=de()),(e=n)===r&&(e=fe,t.substr(fe,5)===N?(n=N,fe+=5):(n=r,0===$e&&Ae(kt)),n!==r&&(ge=e,n=he()),e=n),$e--,e===r&&(n=r,0===$e&&Ae(wt)),e}(),e===r&&(e=fe,40===t.charCodeAt(fe)?(n=C,fe++):(n=r,0===$e&&Ae(ut)),n!==r&&(i=De())!==r?(41===t.charCodeAt(fe)?(o=V,fe++):(o=r,0===$e&&Ae(dt)),o!==r?(ge=e,e=Yt(i)):(fe=e,e=r)):(fe=e,e=r))),e}())),e}())),e}function Te(){var e,n,i,o,a;if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===$e&&Ae(R)),n!==r?(i=Be(),(o=De())!==r?(Be(),125===t.charCodeAt(fe)?(a=l,fe++):(a=r,0===$e&&Ae(L)),a!==r?(ge=e,e=te(o)):(fe=e,e=r)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,t.substr(fe,3)===c?(n=c,fe+=3):(n=r,0===$e&&Ae(U)),n!==r&&(ge=e,n=ee()),(e=n)===r&&(e=fe,n=fe,$e++,92===t.charCodeAt(fe)?(i=u,fe++):(i=r,0===$e&&Ae(W)),i===r&&(39===t.charCodeAt(fe)?(i=P,fe++):(i=r,0===$e&&Ae(ft)),i===r&&(t.substr(fe,2)===s?(i=s,fe+=2):(i=r,0===$e&&Ae(R)))),$e--,i===r?n=void 0:(fe=n,n=r),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=ne()):(fe=e,e=r)):(fe=e,e=r),e===r))){if(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===$e&&Ae(R)),n!==r){if(i=[],T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(gt)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(gt));else i=r;i!==r?(125===t.charCodeAt(fe)?(o=l,fe++):(o=r,0===$e&&Ae(L)),o!==r?(ge=e,e=re()):(fe=e,e=r)):(fe=e,e=r)}else fe=e,e=r;e===r&&(e=fe,t.substr(fe,2)===s?(n=s,fe+=2):(n=r,0===$e&&Ae(R)),n!==r&&(ge=e,n=ie()),(e=n)===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.substr(fe,2)===s?(i=s,fe+=2):(i=r,0===$e&&Ae(R)),i!==r?(ge=e,e=oe(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r?(t.length>fe?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(H)),i!==r?(ge=e,e=ae(i)):(fe=e,e=r)):(fe=e,e=r),e===r&&(e=fe,92===t.charCodeAt(fe)?(n=u,fe++):(n=r,0===$e&&Ae(W)),n!==r&&(ge=e,n=se()),e=n))))}return e}function Me(){var e,n,i,o;if($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)),n===r&&(n=null),i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));else i=r;return i!==r?(ge=e,e=le()):(fe=e,e=r),$e--,e===r&&(n=r,0===$e&&Ae(mt)),e}function ze(){var e,n,i,o,a,s,l,c,u,d;for($e++,e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)),n===r&&(n=null),i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));if(46===t.charCodeAt(fe)?(o=j,fe++):(o=r,0===$e&&Ae($t)),o!==r){if(a=[],M.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ae(vt)),s!==r)for(;s!==r;)a.push(s),M.test(t.charAt(fe))?(s=t.charAt(fe),fe++):(s=r,0===$e&&Ae(vt));else a=r;if(a!==r){if(s=fe,101===t.charCodeAt(fe)?(l=F,fe++):(l=r,0===$e&&Ae(bt)),l===r&&(69===t.charCodeAt(fe)?(l=S,fe++):(l=r,0===$e&&Ae(_t))),l!==r){if(43===t.charCodeAt(fe)?(c=_,fe++):(c=r,0===$e&&Ae(it)),c===r&&(45===t.charCodeAt(fe)?(c=w,fe++):(c=r,0===$e&&Ae(ot))),c===r&&(c=null),u=[],M.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ae(vt)),d!==r)for(;d!==r;)u.push(d),M.test(t.charAt(fe))?(d=t.charAt(fe),fe++):(d=r,0===$e&&Ae(vt));else u=r;u!==r?s=l=[l,c,u]:(fe=s,s=r)}else fe=s,s=r;s===r&&(s=null),ge=e,e=ce()}else fe=e,e=r}else fe=e,e=r;if(e===r){if(e=fe,45===t.charCodeAt(fe)?(n=w,fe++):(n=r,0===$e&&Ae(ot)),n===r&&(n=null),i=[],M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(vt));else i=r;if(i!==r)if(101===t.charCodeAt(fe)?(o=F,fe++):(o=r,0===$e&&Ae(bt)),o===r&&(69===t.charCodeAt(fe)?(o=S,fe++):(o=r,0===$e&&Ae(_t))),o!==r){if(43===t.charCodeAt(fe)?(a=_,fe++):(a=r,0===$e&&Ae(it)),a===r&&(45===t.charCodeAt(fe)?(a=w,fe++):(a=r,0===$e&&Ae(ot))),a===r&&(a=null),s=[],M.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ae(vt)),l!==r)for(;l!==r;)s.push(l),M.test(t.charAt(fe))?(l=t.charAt(fe),fe++):(l=r,0===$e&&Ae(vt));else s=r;s!==r?(ge=e,e=ue()):(fe=e,e=r)}else fe=e,e=r;else fe=e,e=r}return $e--,e===r&&(n=r,0===$e&&Ae(yt)),e}function Je(){var e,n,i,o,a;if($e++,e=fe,n=fe,$e++,i=function(){var e,n,i,o;return e=fe,t.substr(fe,4)===I?(n=I,fe+=4):(n=r,0===$e&&Ae(xt)),n===r&&(t.substr(fe,5)===N?(n=N,fe+=5):(n=r,0===$e&&Ae(kt))),n!==r?(i=fe,$e++,z.test(t.charAt(fe))?(o=t.charAt(fe),fe++):(o=r,0===$e&&Ae(Et)),$e--,o===r?i=void 0:(fe=i,i=r),i!==r?e=n=[n,i]:(fe=e,e=r)):(fe=e,e=r),e}(),$e--,i===r?n=void 0:(fe=n,n=r),n!==r)if(J.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=r,0===$e&&Ae(Ct)),i!==r){for(o=[],z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ae(Et));a!==r;)o.push(a),z.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=r,0===$e&&Ae(Et));ge=e,e=pe()}else fe=e,e=r;else fe=e,e=r;return $e--,e===r&&(n=r,0===$e&&Ae(At)),e}function Be(){var e,n;for($e++,e=[],B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ae(Dt));n!==r;)e.push(n),B.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=r,0===$e&&Ae(Dt));return $e--,n=r,0===$e&&Ae(Vt),e}if((n=a())!==r&&fe===t.length)return n;throw n!==r&&fe<t.length&&Ae({type:"end"}),function(t,e,n){return new Vs(Vs.buildMessage(t,e),t,e,n)}(ye,ve<t.length?t.charAt(ve):null,ve<t.length?Ee(ve,ve+1):Ee(ve,ve))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Vs,Error),Vs.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 i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,a=this.location.source+":"+o.line+":"+o.column;if(r){var s=this.location.end,l=Ds("",o.line.toString().length," "),c=r[i.line-1],u=(i.line===s.line?s.column:c.length+1)-i.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+o.line+" | "+c+"\n"+l+" | "+Ds("",i.column-1," ")+Ds("",u,"^")}else e+="\n at "+a}return e},Vs.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(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 i(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 o(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?'"'+i(t)+'"':"end of input"}(e)+" found."};const js=new Map,Fs=new Map;function Ss(t,e,n){const r={args:e,cb:n},i=js.get(t)||[];js.has(t)||js.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");Fs.set(o,r)}function Is(t,e){let n=t.args.length,r=t.args.length;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!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function Ns(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=>{Ns(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Ns(t.left,e),Ns(t.right,e);break;case"UnaryExpression":Ns(t.argument,e);break;case"ConditionalExpression":Ns(t.test,e),Ns(t.consequent,e),Ns(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Ns(t,e)}))}}function Os(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Ts(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Ms(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 Ts(t.value);if("color"===t.type)return Hs(Ws(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 zs(t){let e=Ms(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function Js(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function Bs(t,e){if(Lo)return qo(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function Rs(t,e){if(e<Ho||e>Wo)throw new Error("Integer overflow.");!Lo&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function Ls(t){const e=[];return Ns(t,{Variable(t){e.push(t.id.name)}}),e}function Us(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function Ws(t){const e=we(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function Hs(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 be(Math.round(t).toString(16),2)})).join("").toUpperCase())}function qs(t){return Hs(Ws(t))}const Gs=Number.MAX_VALUE,Ks=Number.MIN_VALUE,Xs="string",Ys="integer",Zs="number",Qs="boolean",tl="color",el="url",nl="datetime",rl="dict",il="array";function ol(t,e){return{type:Xs,value:Ms(e)}}function al(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Zs,value:n}}function sl(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=qs(o)),{type:r,value:o}}function ll(t,e,n){return sl(t,e,n,n.type)}function cl(t,e,n){return sl(t,e,n,"color")}function ul(t,e,n){return sl(t,e,n,"url")}const dl=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:Ys,value:qo(r)}},hl=dl("getUTCFullYear"),pl=dl("getUTCMonth"),fl=dl("getUTCDate"),gl=dl("getUTCDay"),ml=dl("getUTCHours"),vl=dl("getUTCMinutes"),yl=dl("getUTCSeconds"),$l=dl("getUTCMilliseconds");function bl(t,e,n,r){if(!r.value.length)return t.warnings.push(fe(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===Xs?e.value:Ms(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function _l(t,e,n,r){const i=bl(t,e,n,r);return{type:Xs,value:i+Ms(e)}}function wl(t,e,n,r){const i=bl(t,e,n,r);return{type:Xs,value:Ms(e)+i}}function xl(t){return(e,n)=>{const r=Ws(n.value);return{type:Zs,value:r[t]/255}}}function kl(t){return(e,n,r)=>{const i=Ws(n.value);return i[t]=255*r.value,{type:tl,value:Hs(i)}}}const El=xl("a"),Al=xl("r"),Cl=xl("g"),Vl=xl("b"),Dl=kl("a"),Pl=kl("r"),jl=kl("g"),Fl=kl("b");function Sl(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=qo(e.value)/qo(n);return Rs(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=qo(i)%qo(r)),{type:Ys,value:i}}const Il=36e5;function Nl(t,e){return function(n,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[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,o.map((t=>t.value))),l=typeof s;if(l!==t)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){if(s!==Math.round(s))throw new Error("Cannot convert value to integer.");Rs(n,s)}return"string"===t&&"color"===e&&(s=qs(s)),{type:e,value:s}}}function Ol(t,e){return function(n,r,i){try{for(var o=arguments.length,a=new Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return t(n,i,...a)}catch(t){let n=r.value;return"color"===e&&(n=qs(n)),{type:e,value:n}}}}const Tl=Nl("string","string"),Ml=Nl("number","number"),zl=Nl("number","integer"),Jl=Nl("boolean","boolean"),Bl=Nl("string","color"),Rl=Nl("string","url"),Ll=Ol(Tl,"string"),Ul=Ol(Ml,"number"),Wl=Ol(zl,"integer"),Hl=Ol(Jl,"boolean"),ql=Ol(Bl,"color"),Gl=Ol(Rl,"url");function Kl(t,e){return(n,r,i)=>{if(i.value<0||i.value>=r.value.length)throw new Error("Requested index (".concat(i.value,") out of bounds array size (").concat(r.value.length,")."));let o=r.value[Number(i.value)],a=typeof o;if("array"===t&&!Array.isArray(o)||"array"!==t&&a!==t||"obejct"===a&&null===o)throw"object"===a&&(a=Array.isArray(o)?"array":null===o?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){if(o!==Math.round(o))throw new Error("Cannot convert value to integer.");Rs(n,o)}return"string"===t&&"color"===e&&(o=qs(o)),{type:e,value:o}}}function Xl(t,e){return(n,r,i,o)=>{try{return t(n,r,i)}catch(t){let n=o.value;return"color"===e&&(n=qs(n)),{type:e,value:n}}}}const Yl=Kl("string","string"),Zl=Kl("number","number"),Ql=Kl("number","integer"),tc=Kl("boolean","boolean"),ec=Kl("string","color"),nc=Kl("string","url"),rc=Kl("array","array"),ic=Kl("object","dict"),oc=Xl(Yl,"string"),ac=Xl(Zl,"number"),sc=Xl(Ql,"integer"),lc=Xl(tc,"boolean"),cc=Xl(ec,"color"),uc=Xl(nc,"url");function dc(t){return t.map(zs).join(", ")}Ss("toString",[Ys],ol),Ss("toString",[Zs],ol),Ss("toString",[Qs],ol),Ss("toString",[tl],ol),Ss("toString",[el],ol),Ss("toNumber",[Ys],al),Ss("toNumber",[Xs],al),Ss("toInteger",[Zs],(function(t,e){if(e.value>Wo||e.value<Ho)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:Ys,value:qo(n)}})),Ss("toInteger",[Xs],(function(t,e){let n;try{n=qo(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>Wo||n<Ho)throw new Error("Unable to convert value to Integer.");return{type:Ys,value:n}})),Ss("toInteger",[Qs],(function(t,e){return{type:Ys,value:qo(e.value?1:0)}})),Ss("toBoolean",[Ys],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Qs,value:n}})),Ss("toBoolean",[Xs],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Qs,value:"true"===e.value?1:0}})),Ss("toColor",[Xs],(function(t,e){return{type:tl,value:qs(e.value)}})),Ss("toUrl",[Xs],(function(t,e){return{type:el,value:e.value}})),Ss("encodeUri",[Xs],(function(t,e){try{return{type:Xs,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Ss("decodeUri",[Xs],(function(t,e){try{return{type:Xs,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Ss("getIntegerValue",[Xs,Ys],ll),Ss("getNumberValue",[Xs,Zs],ll),Ss("getBooleanValue",[Xs,Qs],ll),Ss("getStringValue",[Xs,Xs],ll),Ss("getColorValue",[Xs,tl],cl),Ss("getColorValue",[Xs,Xs],cl),Ss("getUrlValue",[Xs,el],ul),Ss("getUrlValue",[Xs,Xs],ul),Ss("parseUnixTime",[Ys],(function(t,e){return{type:nl,value:new Date(1e3*Number(e.value))}})),Ss("nowLocal",[],(function(){return{type:nl,value:new Date}})),Ss("addMillis",[nl,Ys],(function(t,e,n){return{type:nl,value:new Date(e.value.getTime()+Number(n.value))}})),Ss("setYear",[nl,Ys],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:nl,value:r}})),Ss("setMonth",[nl,Ys],(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 i=new Date(e.value);return i.setUTCMonth(r-1),{type:nl,value:i}})),Ss("setDay",[nl,Ys],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>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(i," for date ").concat(Ms(e),"."));return r.setUTCDate(-1===i?0:i),{type:nl,value:r}})),Ss("setHours",[nl,Ys],(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 i=new Date(e.value);return i.setUTCHours(r),{type:nl,value:i}})),Ss("setMinutes",[nl,Ys],(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 i=new Date(e.value);return i.setUTCMinutes(r),{type:nl,value:i}})),Ss("setSeconds",[nl,Ys],(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 i=new Date(e.value);return i.setUTCSeconds(r),{type:nl,value:i}})),Ss("setMillis",[nl,Ys],(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 i=new Date(e.value);return i.setUTCMilliseconds(r),{type:nl,value:i}})),Ss("getYear",[nl],hl),Ss("getMonth",[nl],pl),Ss("getDay",[nl],fl),Ss("getDayOfWeek",[nl],gl),Ss("getHours",[nl],ml),Ss("getMinutes",[nl],vl),Ss("getSeconds",[nl],yl),Ss("getMillis",[nl],$l),Ss("getIntervalSeconds",[Ys],(function(t,e){return Sl(t,e,1e3,60)})),Ss("getIntervalTotalSeconds",[Ys],(function(t,e){return Sl(t,e,1e3)})),Ss("getIntervalMinutes",[Ys],(function(t,e){return Sl(t,e,6e4,60)})),Ss("getIntervalTotalMinutes",[Ys],(function(t,e){return Sl(t,e,6e4)})),Ss("getIntervalHours",[Ys],(function(t,e){return Sl(t,e,Il,24)})),Ss("getIntervalTotalHours",[Ys],(function(t,e){return Sl(t,e,Il)})),Ss("getIntervalTotalDays",[Ys],(function(t,e){return Sl(t,e,864e5)})),Ss("getIntervalTotalWeeks",[Ys],(function(t,e){return Sl(t,e,6048e5)})),Ss("len",[Xs],(function(t,e){return{type:Ys,value:qo(e.value.length)}})),Ss("contains",[Xs,Xs],(function(t,e,n){return{type:Qs,value:e.value.includes(n.value)?1:0}})),Ss("substring",[Xs,Ys,Ys],(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:Xs,value:e.value.substring(Number(n.value),Number(r.value))}})),Ss("replaceAll",[Xs,Xs,Xs],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:Xs,value:i}})),Ss("index",[Xs,Xs],(function(t,e,n){return{type:Ys,value:qo(e.value.indexOf(n.value))}})),Ss("lastIndex",[Xs,Xs],(function(t,e,n){return{type:Ys,value:qo(e.value.lastIndexOf(n.value))}})),Ss("trim",[Xs],(function(t,e){return{type:Xs,value:e.value.trim()}})),Ss("trimLeft",[Xs],(function(t,e){return{type:Xs,value:e.value.replace(/^\s+/,"")}})),Ss("trimRight",[Xs],(function(t,e){return{type:Xs,value:e.value.replace(/\s+$/,"")}})),Ss("toUpperCase",[Xs],(function(t,e){return{type:Xs,value:e.value.toUpperCase()}})),Ss("toLowerCase",[Xs],(function(t,e){return{type:Xs,value:e.value.toLowerCase()}})),Ss("padStart",[Xs,Ys,Xs],_l),Ss("padStart",[Ys,Ys,Xs],_l),Ss("padEnd",[Xs,Ys,Xs],wl),Ss("padEnd",[Ys,Ys,Xs],wl),Ss("testRegex",[Xs,Xs],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Qs,value:r.test(e.value)?1:0}})),Ss("div",[Ys,Ys],(function(t,e,n){if(n.value===Go)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=Bs(0,r),Rs(t,r),{type:Ys,value:r}})),Ss("div",[Zs,Zs],(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:Zs,value:r}})),Ss("mod",[Ys,Ys],(function(t,e,n){if(n.value===Go)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=Bs(0,r),Rs(t,r),{type:Ys,value:r}})),Ss("mod",[Zs,Zs],(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:Zs,value:r}})),Ss("mul",[{type:Ys,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 i=n.length?n[0].value:Go;for(let e=1;e<n.length;++e)i*=n[e].value,i=Bs(0,i),Rs(t,i);return{type:Ys,value:i}})),Ss("mul",[{type:Zs,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:Zs,value:i}})),Ss("sub",[{type:Ys,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 i=n.length?n[0].value:Go;for(let e=1;e<n.length;++e)i-=n[e].value,i=Bs(0,i),Rs(t,i);return{type:Ys,value:i}})),Ss("sub",[{type:Zs,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 i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:Zs,value:i}})),Ss("sum",[{type:Ys,isVararg:!0}],(function(t){let e=Go;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=Bs(0,e),Rs(t,e);return{type:Ys,value:e}})),Ss("sum",[{type:Zs,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:Zs,value:e}})),Ss("abs",[Ys],(function(t,e){const n=Ko(e.value);return Rs(t,n),{type:e.type,value:n}})),Ss("abs",[Zs],(function(t,e){const n=Math.abs(e.value);return{type:Zs,value:n}})),Ss("max",[{type:Ys,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:Ys,value:i}})),Ss("max",[{type:Zs,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:Zs,value:Math.max(...n.map((t=>t.value)))}})),Ss("min",[{type:Ys,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 i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:Ys,value:i}})),Ss("min",[{type:Zs,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:Zs,value:Math.min(...n.map((t=>t.value)))}})),Ss("maxNumber",[],(function(){return{type:Zs,value:Gs}})),Ss("minNumber",[],(function(){return{type:Zs,value:Ks}})),Ss("maxInteger",[],(function(t){return Rs(t,Wo),{type:Ys,value:Wo}})),Ss("minInteger",[],(function(t){return Rs(t,Ho),{type:Ys,value:Ho}})),Ss("round",[Zs],(function(t,e){const n=Math.sign(e.value);return{type:Zs,value:n*Math.round(Math.abs(e.value))}})),Ss("floor",[Zs],(function(t,e){return{type:Zs,value:Math.floor(e.value)}})),Ss("ceil",[Zs],(function(t,e){return{type:Zs,value:Math.ceil(e.value)}})),Ss("signum",[Ys],(function(t,e){return{type:Ys,value:Xo(e.value)}})),Ss("signum",[Zs],(function(t,e){return{type:Zs,value:Math.sign(e.value)}})),Ss("copySign",[Ys,Ys],(function(t,e,n){let r;if(n.value===Go)r=e.value;else if(e.value===Go)r=0;else{const t=Xo(n.value);r=Ko(e.value)*t}return Rs(t,r),{type:Ys,value:r}})),Ss("copySign",[Zs,Zs],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:Zs,value:i}})),Ss("getColorAlpha",[Xs],El),Ss("getColorAlpha",[tl],El),Ss("getColorRed",[Xs],Al),Ss("getColorRed",[tl],Al),Ss("getColorGreen",[Xs],Cl),Ss("getColorGreen",[tl],Cl),Ss("getColorBlue",[Xs],Vl),Ss("getColorBlue",[tl],Vl),Ss("setColorAlpha",[Xs,Zs],Dl),Ss("setColorAlpha",[tl,Zs],Dl),Ss("setColorRed",[Xs,Zs],Pl),Ss("setColorRed",[tl,Zs],Pl),Ss("setColorGreen",[Xs,Zs],jl),Ss("setColorGreen",[tl,Zs],jl),Ss("setColorBlue",[Xs,Zs],Fl),Ss("setColorBlue",[tl,Zs],Fl),Ss("rgb",[Zs,Zs,Zs],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:tl,value:Hs(i)}})),Ss("argb",[Zs,Zs,Zs,Zs],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:tl,value:Hs(o)}})),Ss("getDictString",[rl,{type:Xs,isVararg:!0}],Tl),Ss("getStringFromDict",[rl,{type:Xs,isVararg:!0}],Tl),Ss("getDictNumber",[rl,{type:Xs,isVararg:!0}],Ml),Ss("getNumberFromDict",[rl,{type:Xs,isVararg:!0}],Ml),Ss("getDictInteger",[rl,{type:Xs,isVararg:!0}],zl),Ss("getIntegerFromDict",[rl,{type:Xs,isVararg:!0}],zl),Ss("getDictBoolean",[rl,{type:Xs,isVararg:!0}],Jl),Ss("getBooleanFromDict",[rl,{type:Xs,isVararg:!0}],Jl),Ss("getDictColor",[rl,{type:Xs,isVararg:!0}],Bl),Ss("getColorFromDict",[rl,{type:Xs,isVararg:!0}],Bl),Ss("getDictUrl",[rl,{type:Xs,isVararg:!0}],Rl),Ss("getUrlFromDict",[rl,{type:Xs,isVararg:!0}],Rl),Ss("getDictOptString",[Xs,rl,{type:Xs,isVararg:!0}],Ll),Ss("getOptStringFromDict",[Xs,rl,{type:Xs,isVararg:!0}],Ll),Ss("getDictOptNumber",[Zs,rl,{type:Xs,isVararg:!0}],Ul),Ss("getOptNumberFromDict",[Zs,rl,{type:Xs,isVararg:!0}],Ul),Ss("getDictOptInteger",[Ys,rl,{type:Xs,isVararg:!0}],Wl),Ss("getOptIntegerFromDict",[Ys,rl,{type:Xs,isVararg:!0}],Wl),Ss("getDictOptBoolean",[Qs,rl,{type:Xs,isVararg:!0}],Hl),Ss("getOptBooleanFromDict",[Qs,rl,{type:Xs,isVararg:!0}],Hl),Ss("getDictOptColor",[tl,rl,{type:Xs,isVararg:!0}],ql),Ss("getOptColorFromDict",[tl,rl,{type:Xs,isVararg:!0}],ql),Ss("getDictOptColor",[Xs,rl,{type:Xs,isVararg:!0}],ql),Ss("getOptColorFromDict",[Xs,rl,{type:Xs,isVararg:!0}],ql),Ss("getDictOptUrl",[Xs,rl,{type:Xs,isVararg:!0}],Gl),Ss("getOptUrlFromDict",[Xs,rl,{type:Xs,isVararg:!0}],Gl),Ss("getDictOptUrl",[el,rl,{type:Xs,isVararg:!0}],Gl),Ss("getOptUrlFromDict",[el,rl,{type:Xs,isVararg:!0}],Gl),Ss("getArrayString",[il,Ys],Yl),Ss("getStringFromArray",[il,Ys],Yl),Ss("getArrayNumber",[il,Ys],Zl),Ss("getNumberFromArray",[il,Ys],Zl),Ss("getArrayInteger",[il,Ys],Ql),Ss("getIntegerFromArray",[il,Ys],Ql),Ss("getArrayBoolean",[il,Ys],tc),Ss("getBooleanFromArray",[il,Ys],tc),Ss("getArrayColor",[il,Ys],ec),Ss("getColorFromArray",[il,Ys],ec),Ss("getArrayUrl",[il,Ys],nc),Ss("getUrlFromArray",[il,Ys],nc),Ss("getArrayFromArray",[il,Ys],rc),Ss("getDictFromArray",[il,Ys],ic),Ss("getArrayOptString",[il,Ys,Xs],oc),Ss("getOptStringFromArray",[il,Ys,Xs],oc),Ss("getArrayOptNumber",[il,Ys,Zs],ac),Ss("getOptNumberFromArray",[il,Ys,Zs],ac),Ss("getArrayOptInteger",[il,Ys,Ys],sc),Ss("getOptIntegerFromArray",[il,Ys,Ys],sc),Ss("getArrayOptBoolean",[il,Ys,Qs],lc),Ss("getOptBooleanFromArray",[il,Ys,Qs],lc),Ss("getArrayOptColor",[il,Ys,tl],cc),Ss("getOptColorFromArray",[il,Ys,tl],cc),Ss("getArrayOptColor",[il,Ys,Xs],cc),Ss("getOptColorFromArray",[il,Ys,Xs],cc),Ss("getArrayOptUrl",[il,Ys,el],uc),Ss("getOptUrlFromArray",[il,Ys,el],uc),Ss("getArrayOptUrl",[il,Ys,Xs],uc),Ss("getOptUrlFromArray",[il,Ys,Xs],uc),Ss("getOptArrayFromArray",[il,Ys],(function(t,e,n){try{return rc(t,e,n)}catch(t){return{type:"array",value:[]}}})),Ss("getOptDictFromArray",[il,Ys],(function(t,e,n){try{return ic(t,e,n)}catch(t){return{type:"dict",value:{}}}}));const hc={StringLiteral:function(t,e){return{type:Xs,value:e.value}},NumberLiteral:function(t,e){return{type:Zs,value:e.value}},IntegerLiteral:function(t,e){return Rs(t,e.value),{type:Ys,value:e.value}},BooleanLiteral:function(t,e){return{type:Qs,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Os(pc(t,e.argument));switch(e.operator){case"!":if(n.type===Qs)return{type:Qs,value:n.value?0:1};Us("".concat(e.operator).concat(zs(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===Ys){const e=n.value*qo(r);return Rs(t,e),{type:Ys,value:e}}if(n.type===Zs)return{type:Zs,value:n.value*r};Us("".concat(e.operator).concat(zs(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Os(pc(t,e.test));if(n.type===Qs)return n.value?pc(t,e.consequent):pc(t,e.alternate);Us("".concat(zs(n)," ? ").concat(zs(pc(t,e.consequent))," : ").concat(zs(pc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return pc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Ms(pc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Xs,value:n}},LogicalExpression:function(t,e){const n=Os(pc(t,e.left));if(n.type!==Qs&&Us("".concat(zs(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:Qs,value:0};const r=Os(pc(t,e.right));return r.type!==Qs&&Us("".concat(zs(n)," ").concat(e.operator," ").concat(zs(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(Js(r.type),".")),{type:Qs,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=pc(t,e.left),i=pc(t,e.right);if(r.type!==i.type&&Us("".concat(zs(r)," ").concat(e.operator," ").concat(zs(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(Js(r.type)," and ").concat(Js(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===nl&&n.type===nl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Qs,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Zs&&e.type!==Ys&&e.type!==nl&&Us("".concat(zs(e)," ").concat(t," ").concat(zs(n)),"Operator '".concat(t,"' cannot be applied to ").concat(Js(e.type)," type."));const i=e.type===nl?e.value.getTime():e.value,o=n.type===nl?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:Qs,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Xs&&n.type!==Zs&&n.type!==Ys&&Us("".concat(zs(n)," ").concat(e," ").concat(zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Js(n.type)," type.")),n.type===Xs)return"-"===e&&Us("".concat(zs(n)," - ").concat(zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Js(n.type)," type.")),{type:Xs,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===Ys)try{i=Bs(0,i),Rs(t,i)}catch(t){Us("".concat(zs(n)," ").concat(e," ").concat(zs(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==Ys&&n.type!==Zs&&Us("".concat(zs(n)," ").concat(e," ").concat(zs(r)),"Operator '".concat(e,"' cannot be applied to ").concat(Js(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&Us("".concat(zs(n)," ").concat(e," ").concat(zs(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===Ys)try{i=Bs(0,i),Rs(t,i)}catch(t){Us("".concat(zs(n)," ").concat(e," ").concat(zs(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>pc(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(Fs.has(o))r=Fs.get(o);else{const t=function(t,e){const n=js.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Is(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>Js(t.type))).join(", "),r="".concat(n,"(").concat(dc(i),")");"few"===t.type&&0===i.length?Us(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?Us(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):Us(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){Us("".concat(n,"(").concat(dc(i),")"),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 pc(t,e){if(e.type in hc)return hc[e.type](t,e);throw new Error("Unsupported expression")}function fc(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(Ns(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=pc(n,e);return n.safeIntegerOverflow&&n.warnings.push(fe(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 gc{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return Ns(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=fc(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(fe(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Ts(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=we(String(i));if(t)return Hs(t);e(fe(new Error("Expression execution error")))}if("integer"===r.type)return i>2147483647||i<-2147483648?void e(fe(new Error("Expression result is out of 32-bit int range"))):Number(i);if("array"===r.type||"dict"===r.type)try{return JSON.stringify(i)}catch(t){return e(fe(new Error("Failed to stringify ".concat(r.type)))),"<".concat(r.type,">")}return i}catch(t){return void e(fe(new Error("Expression execution error")))}}}function mc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Ps(t,{startRule:"JsonStringContents"}),r=Ls(n);return e.vars.push(...r),new gc(n)}catch(e){return void n(fe(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>mc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=mc(t[i],e,n);return r}}var r;return t}function vc(t,e,n){if(t){if(t instanceof gc)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>vc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=vc(t[i],e,n);return r}}return t}function yc(t,e){const n={vars:[],hasExpression:!1},r=mc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>vc(r,t,e)}}const $c={pagers:function(){return ue(new Map)}},bc=new Map,_c=new Map;function wc(t){const e=bc.get(t)||ue("");return bc.has(t)||bc.set(t,e),e}function xc(t){const e=_c.get(t)||new Map;return _c.has(t)||_c.set(t,e),e}class kc{setVariable(t){const e=t.getName(),n=xc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),wc(this).set(e)}getVariable(t){return xc(this).get(t)}}function Ec(){return new kc}function Ac(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 Cc=new Set(["start","stop","pause","resume","cancel","reset"]);class Vc{constructor(t){Ac(this,"timers",new Map),Ac(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(fe(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(fe(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Cc.has(e)))return void this.logError(fe(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((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&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(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(fe(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(fe(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(fe(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(fe(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(fe(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(fe(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(fe(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(fe(new Error("The timer is already running"))):this.logError(fe(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))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!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 Dc(t,e,n,r){const{variable_name:i}=n;if(!i)return void e(fe(new Error("Incorrect ".concat(n.type," action")),{additional:{name:i}}));const o=t.get(i);if(!o)return void e(fe(new Error("Cannot find variable"),{additional:{name:i}}));const a=o.getType();"array"===a?r(o):e(fe(new Error("Trying to insert value into the non-array"),{additional:{name:i,type:a}}))}function Pc(t){let e,n,r,i,o,a,s,l;return n=new $s({props:{svgFiltersMap:t[3]}}),i=new cs({props:{div:t[4],templateContext:t[7],layoutParams:{tooltips:t[2]}}}),{c(){e=J("div"),ne(n.$$.fragment),r=L(),ne(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=Y(e);re(n.$$.fragment,o),r=it(o),re(i.$$.fragment,o),o.forEach(M),this.h()},h(){H(e,"class",o=""+(he.root+(t[5]?" ".concat(he.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){T(t,e,o),ie(n,e,null),N(e,r),ie(i,e,null),a=!0,s||(l=W(e,"touchstart",Oc,{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.div=t[4]),4&r[0]&&(l.layoutParams={tooltips:t[2]}),i.$set(l),(!a||33&r[0]&&o!==(o=""+(he.root+(t[5]?" ".concat(he.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&H(e,"class",o)},i(t){a||(Ut(n.$$.fragment,t),Ut(i.$$.fragment,t),a=!0)},o(t){Wt(n.$$.fragment,t),Wt(i.$$.fragment,t),a=!1},d(t){t&&M(e),oe(n),oe(i),s=!1,l()}}}function jc(t){let e,n,r=!t[1]&&t[4]&&Pc(t);return{c(){r&&r.c(),e=U()},l(t){r&&r.l(t),e=U()},m(t,i){r&&r.m(t,i),T(t,e,i),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),18&n[0]&&Ut(r,1)):(r=Pc(t),r.c(),Ut(r,1),r.m(e.parentNode,e)):r&&(Rt(),Wt(r,1,1,(()=>{r=null})),Lt())},i(t){n||(Ut(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let Fc=ue(!0),Sc=0;function Ic(){Fc.set(!1)}function Nc(){Fc.set(!0)}function Oc(){}function Tc(t,e,n){let r;var i,o,a,s;let{id:l}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new kc}=e,{mix:f=""}=e,{customization:g={}}=e,{builtinProtocols:m=["http","https","tel","mailto","intent"]}=e,{extensions:v=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:b}=e,{onComponent:_}=e,{typefaceProvider:w=(t=>"")}=e,{fetchInit:x={}}=e,{tooltipRoot:k}=e,{customComponents:E}=e,A=ue("desktop"===u);if(p(t,A,(t=>n(5,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");A.set(!t.matches),t.addListener((()=>{A.set(!t.matches)}))}let C="light",V=null;function D(){"system"===d&&V&&n(27,C=V.matches?"dark":"light")}const P=new Set(m);let j=!1;c||(j=!0,U(fe(new Error('"json" prop is required')))),l||(j=!0,U(fe(new Error('"id" prop is required'))));let F=function(t){if(!t)return fe(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return fe(new Error("Missing card"));if(!e.states||!e.states.length)return fe(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in os)return fe(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return fe(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return fe(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const S=c.templates||{};F&&(j=!0,U(F));const I={stateChange:!1},N=wc(h),O=xc(h),T=new Map,M=new Map,z=new Map;let J=null,B=0,R=[];function L(t){const e=yc(t,U);return e.hasExpression?e.applyVars(M):t}function U(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function W(t,e){$&&$({type:t,action:e})}let H=0;function q(t){return"".concat(l,"-").concat(H++)}let G={},K={};function X(t){const e=t.url?String(t.url):"",r=t.typed;if(e)try{const r=e.replace(/div-action:\/\//,""),i=/([^?]+)\?(.+)/.exec(r);if(!i)return;const o=new URLSearchParams(i[2]);switch(i[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=at,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],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(o.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=rt(t);n&&n.setCurrentItem(Number(e))}(o.get("id"),o.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=rt(t);n&&n.setPreviousItem(e)}(o.get("id"),o.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=rt(t);n&&n.setNextItem(e)}(o.get("id"),o.get("overflow"));break;case"set_variable":const i=o.get("name"),a=o.get("value");if(i&&null!==a){const t=M.get(i);if(t){const e=t.getType();"dict"===e||"array"===e?U(fe(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:i}})):t.set(a)}else U(fe(new Error("Cannot find variable"),{additional:{name:i}}))}else U(fe(new Error("Incorrect set_variable_action"),{additional:{url:r}}));break;case"timer":const s=o.get("action"),l=o.get("id");J?J.execTimerAction(l,s):U(fe(new Error("Incorrect timer action"),{additional:{id:l,action:s}}));break;case"video":!function(t,e){if(t){const n=rt(t);n?"start"===e?n.start():"pause"===e?n.pause():U(fe(new Error("Unknown video action"),{additional:{id:t,action:e}})):U(fe(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else U(fe(new Error("Missing id in video action"),{additional:{action:e}}))}(o.get("id"),o.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof x?x(t):x,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var r,i,o;if(n){if(n.templates)for(const t in n.templates)S.hasOwnProperty(t)||(S[t]=n.templates[t]);if(Array.isArray(null===(r=n.patch)||void 0===r?void 0:r.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>!tt.has(t.id)));if(r)return U(fe(new Error("Skipping transactional, child is not found"),{additional:{url:t,id:r.id}})),void Y(null===(i=e.download_callbacks)||void 0===i?void 0:i.on_fail_actions)}n.patch.changes.forEach((t=>{const e=tt.get(t.id);e&&e.replaceWith(t.id,t.items)})),Y(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_success_actions)}}else U(fe(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;U(fe(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Y(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else U(fe(new Error("Missing url in download action"),{additional:{url:t}}))}(o.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void U(fe(new Error("Missing id in show_tooltip action")));const i=nt.get(t);if(!i)return void U(fe(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&R.some((e=>e.desc.id===t)))return;const o={internalId:++B,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(2,R=[...R,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(2,R=R.filter((t=>t.internalId!==o.internalId)))}),a))}(o.get("id"),o.get("multiple"));break;case"hide_tooltip":!function(t){t?n(2,R=R.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):U(fe(new Error("Missing id in hide_tooltip action")))}(o.get("id"));break;default:U(fe(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){U(fe(t,{additional:{url:e}}))}else if(r)switch(r.type){case"set_variable":{const{variable_name:t,value:e}=r;if(t&&e){const n=M.get(t);n?n.getType()===e.type?n.setValue(e.value):U(fe(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):U(fe(new Error("Cannot find variable"),{additional:{name:t}}))}else U(fe(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:i,value:o}=n;!o||"number"!=typeof i&&void 0!==i?e(fe(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Dc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof i&&(i<0||i>a.length))e(fe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:a.length}}));else{const e=a.slice();"number"==typeof i?e.splice(i,0,o.value):e.push(o.value),t.setValue(e)}}))}(M,U,r);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:i}=n;"number"==typeof i?Dc(t,e,n,(t=>{const o=t.getValue();if("number"==typeof i&&(i<0||i>=o.length))e(fe(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:i,length:o.length}}));else{const e=o.slice();e.splice(i,1),t.setValue(e)}})):e(fe(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(M,U,r);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(fe(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(fe(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(fe(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(U,r);break;case"focus_element":{const t=r.element_id&&et.get(r.element_id);t?t.focus():U(fe(new Error("Incorrect focus_element action"),{additional:{elementId:r.element_id}}));break}default:U(fe(new Error("Unknown type of action"),{additional:{type:r.type}}))}}async function Y(t,e){if(t&&Array.isArray(t)){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url,o=r.typed;if(i){const t=Pe(i);if(t)if(je(t,P)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(X(r),await jt()):r.log_id&&(Z(r),await jt())}else o&&X(r)}t.forEach((t=>{t.log_id&&W("click",t)}))}}function Z(t){null==b||b(t)}const Q=new Map,tt=new Map,et=new Map,nt=new Map;function rt(t){if(Q.has(t))return Q.get(t);U(fe(new Error("Missing instance with id"),{additional:{id:t}}))}const it=new Map;function ot(t){for(const e of t)M.has(e)&&t.delete(e);return t}_t(pe,{logError:U,logStat:W,hasTemplate:function(t){return t in S},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in S;){if(({json:t,templateContext:e}=bs(t,e,S,U)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:q,genClass:function(t){return"divkit-".concat(q())},execAction:X,execAnyActions:Y,execCustomAction:Z,isRunning:function(t){return I[t]},setRunning:function(t,e){I[t]=e},registerInstance:function(t,e){Q.has(t)?U(fe(new Error("Duplicate instance id"),{additional:{id:t}})):Q.set(t,e)},unregisterInstance:function(t){Q.delete(t)},registerParentOf:function(t,e){tt.set(t,e)},unregisterParentOf:function(t){tt.delete(t)},registerTooltip:function(t,e){nt.has(e.id)&&U(fe(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),nt.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){nt.delete(t.id),R.some((e=>e.desc.id===t.id))&&n(2,R=R.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(2,R=R.filter((e=>e.internalId!==t)))},tooltipRoot:k,registerFocusable:function(t,e){et.set(t,e)},unregisterFocusable:function(t){et.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(K[r]=K[r]||0,++K[r],G[r])return G[r];const i="".concat(q(),"-svg-filter");return n(3,G=Object.assign(Object.assign({},G),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);K[r]&&0==--K[r]&&n(3,G=Object.keys(G).reduce(((t,e)=>(K[e]&&(t[e]=G[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return ws(t);const e=yc(t,U);return e.vars.length?de(e.vars.map((t=>M.get(t)||function(t){const e=z.get(t)||ue(void 0);return z.has(t)||z.set(t,e),e}(t))).filter(ke),(()=>e.applyVars(M))):e.hasExpression?ws(e.applyVars(M)):ws(t)},getJsonWithVars:L,getStore:function(t){return it.has(t)||function(t){it.has(t)||it.set(t,$c[t]())}(t),it.get(t)},getVariable:function(t,e){const n=M.get(t);if(n){const r=n.getType();if(r!==e)return void U(fe(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==g?void 0:g[t]},getBuiltinProtocols:function(){return P},getExtension:function(t,e){const n=v.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:M,logError:U}},typefaceProvider:w,isDesktop:A,isPointerFocus:Fc,customComponents:E,registerComponent:void 0,unregisterComponent:void 0}),_t(Qe,{hasAction:()=>!1});const at={setState(t){throw new Error("Not implemented")},getChild(t){if(st&&st.has(t))return st.get(t);U(fe(new Error("Missing state block with id"),{additional:{id:t}}))}};let st=null;_t(Me,{registerInstance(t,e){st||(st=new Map),st.has(t)?U(fe(new Error("Duplicate state with id"),{additional:{id:t}})):st.set(t,e)},unregisterInstance(t){null==st||st.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>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 lt=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(lt)&&lt.forEach((t=>{if(t&&t.type in Zo&&t.name){if(T.has(t.name))return void U(fe(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&U(fe(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=Qo(t.name,t.type,t.value);T.set(t.name,e),M.set(t.name,e)}catch(e){U(fe(e,{additional:{name:t.name}}))}}}));const ct=c.palette;ct&&ct[C].forEach((t=>{if(T.has(t.name))U(fe(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Qo(t.name,"color",t.color);T.set(t.name,e),M.set(t.name,e)}catch(e){U(fe(e,{additional:{name:t.name}}))}}));for(const[t,e]of O)M.has(t)||M.set(t,e);N.subscribe((t=>{if(t&&!M.has(t)){const e=O.get(t);M.set(t,e);const n=z.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const ut=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(ut)&&ut.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void U(fe(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=Ps(t.condition,{startRule:"JsonStringContents"}),i=Ls(r);if(!i.length)return void U(fe(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return ot(e),e.size?new Promise((t=>{const n=N.subscribe((()=>{ot(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{de(i.map((t=>M.get(t))).filter(ke),(()=>{const t=fc(M,r);return t.warnings.forEach(U),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=L(t);e.log_id&&X(e)})),e=Boolean(r.value)):U(fe(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){U(fe(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else U(fe(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const dt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(dt){const t=J=new Vc({logError:U,applyVars:L,hasVariableWithType:function(t,e){const n=M.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=M.get(t);n?n.setValue(e):U(fe(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Y});dt.forEach((e=>t.createTimer(e)))}const ht=null===(s=null==c?void 0:c.card)||void 0===s?void 0:s.states;let pt;return ht&&!j&&(pt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:ht.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),$t((()=>{Sc++,1===Sc&&(window.addEventListener("keydown",Ic),window.addEventListener("pointerdown",Nc))})),bt((()=>{Sc--,Sc||(window.removeEventListener("keydown",Ic),window.removeEventListener("pointerdown",Nc)),J&&J.destroy(),R.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(9,l=t.id),"json"in t&&n(10,c=t.json),"platform"in t&&n(11,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(12,h=t.globalVariablesController),"mix"in t&&n(0,f=t.mix),"customization"in t&&n(13,g=t.customization),"builtinProtocols"in t&&n(14,m=t.builtinProtocols),"extensions"in t&&n(15,v=t.extensions),"onError"in t&&n(16,y=t.onError),"onStat"in t&&n(17,$=t.onStat),"onCustomAction"in t&&n(18,b=t.onCustomAction),"onComponent"in t&&n(19,_=t.onComponent),"typefaceProvider"in t&&n(20,w=t.typefaceProvider),"fetchInit"in t&&n(21,x=t.fetchInit),"tooltipRoot"in t&&n(22,k=t.tooltipRoot),"customComponents"in t&&n(23,E=t.customComponents)},t.$$.update=()=>{268435712&t.$$.dirty[0]&&("light"===d||"dark"===d?n(27,C=d):"system"===d?"undefined"!=typeof matchMedia?(V||(n(28,V=matchMedia("(prefers-color-scheme: dark)")),V.addListener(D)),n(27,C=V.matches?"dark":"light")):n(27,C="light"):U(fe(new Error("Unsupported theme")))),134217728&t.$$.dirty[0]&&C&&ct&&ct[C].forEach((t=>{const e=M.get(t.name);e&&e.setValue(t.color)}))},[f,j,R,G,pt,r,A,{},d,l,c,u,h,g,m,v,y,$,b,_,w,x,k,E,function(t){n(8,d=t)},function(){},function(t){X(L(t))},C,V]}const Mc=class extends le{constructor(t){super(),ae(this,t,Tc,jc,d,{id:9,json:10,platform:11,theme:8,globalVariablesController:12,mix:0,customization:13,builtinProtocols:14,extensions:15,onError:16,onStat:17,onCustomAction:18,onComponent:19,typefaceProvider:20,fetchInit:21,tooltipRoot:22,customComponents:23,setTheme:24,getDebugVariables:25,execAction:26},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[24]}get getDebugVariables(){return this.$$.ctx[25]}get execAction(){return this.$$.ctx[26]}};class zc{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 jt()}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 Jc(t){return t instanceof HTMLElement}function Bc(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(Jc);r.forEach((t=>{t.style.display="none"})),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),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}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)}}}const Rc=["target","hydrate"];function Lc(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,Rc);return new Mc({target:e,props:r,hydrate:n})}var Uc=exports;for(var Wc in e)Uc[Wc]=e[Wc];e.__esModule&&Object.defineProperty(Uc,"__esModule",{value:!0})})();
2
2
  //# sourceMappingURL=client-hydratable.js.map