@divkitframework/divkit 29.3.0 → 29.4.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
- 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)},e={};function n(){}t.d(e,{Hy:()=>tu,M:()=>Bc,Os:()=>oa,_0:()=>nu,sY:()=>iu});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 _(t){return t&&l(t.destroy)?t.destroy:n}const b="undefined"!=typeof window;let w=b?()=>window.performance.now():()=>Date.now(),x=b?t=>requestAnimationFrame(t):n;const k=new Set;function E(t){k.forEach((e=>{e.c(t)||(k.delete(e),e.f())})),0!==k.size&&x(E)}function 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 j(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}D.entries="WeakMap"in C?new WeakMap:void 0;let F=!1;function P(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function I(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function S(t){const e=B("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(I(t),e),e.sheet}function N(t,e){if(F){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let 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:P(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){F&&!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 B(t){return document.createElement(t)}function J(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 H(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function W(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]:W(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:W(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?K:G}function X(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,B)}function nt(t,e,n){return tt(t,e,n,J)}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){t.value=null==e?"":e}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ct(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}class ut{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];j(this,"is_svg",!1),j(this,"e",void 0),j(this,"n",void 0),j(this,"t",void 0),j(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=J(e.nodeName):this.e=B(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 dt extends ut{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),j(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}}function ht(t,e){return new t(e)}const pt=new Map;let ft,gt=0;function mt(t,e,n,r,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=I(t),{stylesheet:p,rules:f}=pt.get(h)||function(t,e){const n={stylesheet:S(e),rules:{}};return pt.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"),gt+=1,d}function vt(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(", "),gt-=i,gt||x((()=>{gt||(pt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&M(e)})),pt.clear())})))}function yt(t){ft=t}function $t(){if(!ft)throw new Error("Function called outside component initialization");return ft}function _t(t){$t().$$.on_mount.push(t)}function bt(t){$t().$$.on_destroy.push(t)}function wt(t,e){return $t().$$.context.set(t,e),e}function xt(t){return $t().$$.context.get(t)}function kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Et=[],At=[];let Ct=[];const Vt=[],Dt=Promise.resolve();let jt=!1;function Ft(){jt||(jt=!0,Dt.then(Tt))}function Pt(){return Ft(),Dt}function It(t){Ct.push(t)}const St=new Set;let Nt,Ot=0;function Tt(){if(0!==Ot)return;const t=ft;do{try{for(;Ot<Et.length;){const t=Et[Ot];Ot++,yt(t),Mt(t.$$)}}catch(t){throw Et.length=0,Ot=0,t}for(yt(null),Et.length=0,Ot=0;At.length;)At.pop()();for(let t=0;t<Ct.length;t+=1){const e=Ct[t];St.has(e)||(St.add(e),e())}Ct.length=0}while(Et.length);for(;Vt.length;)Vt.pop()();jt=!1,St.clear(),yt(t)}function Mt(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(It)}}function zt(){return Nt||(Nt=Promise.resolve(),Nt.then((()=>{Nt=null}))),Nt}function Bt(t,e,n){t.dispatchEvent(function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}("".concat(e?"intro":"outro").concat(n)))}const Jt=new Set;let Rt;function Lt(){Rt={r:0,c:[],p:Rt}}function Ut(){Rt.r||s(Rt.c),Rt=Rt.p}function Ht(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),Rt.c.push((()=>{Jt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const qt={duration:0};function Gt(t,e,i){const o={direction:"in"};let a,s,c=e(t,i,o),u=!1,d=0;function h(){a&&vt(t,a)}function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||qt;p&&(a=mt(t,0,1,i,e,o,p,d++)),l(0,1);const f=w()+e,g=f+i;s&&s.abort(),u=!0,It((()=>Bt(t,!0,"start"))),s=A((e=>{if(u){if(e>=g)return l(1,0),Bt(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,vt(t),l(c)?(c=c(o),zt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Kt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Yt(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,_=[];for(g=f;g--;){const t=h(i,o,g),s=n(t);let l=a.get(s);l?r&&_.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 b=new Set,w=new Set;function x(t){Ht(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)||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 s(_),v}function Zt(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 Qt;function te(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 ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(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 re(t){t&&t.c()}function ie(t,e){t&&t.l(e)}function oe(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),It((()=>{const e=t.$$.on_mount.map(o).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),i.forEach(It)}function ae(t,e){const n=t.$$;null!==n.fragment&&(function(t){const e=[],n=[];Ct.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),Ct=e}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function se(t,e,r,i,o,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=ft;yt(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]&&(Et.push(t),Ft(),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){F=!0;const t=X(e.target);h.fragment&&h.fragment.l(t),t.forEach(M)}else h.fragment&&h.fragment.c();e.intro&&Ht(t.$$.fragment),oe(t,e.target,e.anchor),F=!1,Tt()}yt(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&&(Qt=class extends HTMLElement{constructor(t,e,n){super(),ne(this,"$$ctor",void 0),ne(this,"$$s",void 0),ne(this,"$$c",void 0),ne(this,"$$cn",!1),ne(this,"$$d",{}),ne(this,"$$r",!1),ne(this,"$$p_d",{}),ne(this,"$$l",{}),ne(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=B("slot"),"default"!==t&&W(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:ee(ee({},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 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]=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 ce{constructor(){ne(this,"$$",void 0),ne(this,"$$set",void 0)}$destroy(){ae(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ue=[];function de(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=!ue.length;for(const e of i)e[1](),ue.push(e,t);if(e){for(let t=0;t<ue.length;t+=2)ue[t][0](ue[t+1]);ue.length=0}}var r,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 he(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:de(r,c).subscribe};var c}const pe={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"},fe=Symbol("root");function ge(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 me={"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"},ve={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 ye(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function $e(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function _e(t){let e=$e(t);return"0"===e&&(e+="em"),e}function be(t,e){for(;t.length<e;)t="0"+t;return t}function we(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=xe(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 xe(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 ke(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 Ee=Boolean;function Ae(t){if(1===t.length&&"solid"===t[0].type)return{color:we(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=we(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(Ee);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>we(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:De(t.bg.scale),pos:je(t.bg),image:'url("'+ke(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(Ee);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=Ce[r.value]));const o=Ve(t.bg.center_x),a=Ve(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=>we(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ee).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 Ce={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Ve(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return _e(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function De(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function je(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 Fe(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Pe(t,e){return e.has(t)}function Ie(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Se(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Ne(t,e){e&&t.push(e)}function Oe(t,e,n){const r=[];Ne(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Ne(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Te=Symbol("state");function Me(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?"":$e(e)+" "+$e(n)+" "+$e(r)+" "+$e(i)}function ze(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Be(t){return ze(t)&&t>=0}function Je(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 Me(t)}function Re(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Le=Object.prototype.hasOwnProperty;function Ue(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(!Le.call(e,i)||!Ue(t[i],e[i]))return!1}return!0}function He(t,e){return Ue(t,e)?e:t}function We(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function qe(t,e){const n=Number(t);return isNaN(n)?e:n}function Ge(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ge(t))})):e.push(t),e}function Ke(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=>$e((t||e)/n*10))).join(" ")}function Xe(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Ze;function Qe(){return"undefined"!=typeof matchMedia&&(Ze||(Ze=window.matchMedia("(prefers-reduced-motion)")),Ze.matches)}function tn(){}const en=Symbol("action");function nn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function rn(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]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["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=B("span"),p&&p.c(),this.h()},l(t){n=et(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=X(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=[_(l=t[4].call(null,n)),H(n,"click",t[21]),H(n,"keydown",t[10]),H(n,"focus",t[22]),H(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,$=Zt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(i=t[0])&&void 0!==i&&i.length?pe["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||(Ht(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 on(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]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=i(p,h[t]);return{c(){n=B("a"),d&&d.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=X(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=[_(o=t[4].call(null,n)),H(n,"click",t[18]),H(n,"keydown",t[10]),H(n,"focus",t[19]),H(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=Zt(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]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(i=t[0])&&void 0!==i&&i.length?pe["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Ht(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 an(t){let e,n,r,i;const o=[on,rn],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):(Lt(),Wt(a[l],1,1,(()=>{a[l]=null})),Ut(),n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ht(n,1),n.m(r.parentNode,r))},i(t){i||(Ht(n),i=!0)},o(t){Wt(n),i=!1},d(t){t&&M(r),a[e].d(t)}}}function sn(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=tn}=e,{customAction:p=null}=e,{isNativeActionAnimation:f=!0}=e,{hasInnerFocusable:g=!1}=e;const m=xt(fe),v=xt(en);let y;wt(en,{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=Fe(e);return n&&!Pe(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=nn(t),x=!1,b=Date.now())}function V(t){if(!w)return;const e=nn(t);(Math.abs(w.x-e.x)>8||Math.abs(w.y-e.y)>8)&&(x=!0)}function D(){!w||b<0||(!x&&Date.now()-b>=400&&m.execAnyActions(l,!0),w=null,b=-1)}return _t((()=>{o&&!g&&m.registerFocusable(o,{focus(){y&&(_||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,_=e),n(9,$=a[t].target||void 0);break}}Array.isArray(a)&&(null==a?void 0:a.length)&&v.hasAction()&&(n(7,_=""),m.logError(ge(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:a}}))),n(8,k=Boolean(p)),_&&!Pe(Fe(_),m.getBuiltinProtocols())?(n(7,_=""),n(8,k=!0)):!_&&Array.isArray(a)&&(null==a?void 0:a.length)&&(n(8,k=!0),a.some((t=>t.url||t.typed))||m.logError(ge(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&&(_||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,_,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){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(t){At[t?"unshift":"push"]((()=>{y=t,n(6,y)}))},function(t){At[t?"unshift":"push"]((()=>{y=t,n(6,y)}))}]}const ln=class extends ce{constructor(t){super(),se(this,t,sn,an,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])}},cn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function un(t){return ze(t)&&t>0}function dn(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(un(t.radius))return"blur(".concat(_e(t.radius/2),")")}else e(ge(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function hn(t,e,n){const r=t.slice();return r[5]=e[n],r}function pn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=cn["outer-background__item"]),W(e,"style",r=ye(t[5].style))},m(t,n){T(t,e,n)},p(t,n){2&n&&r!==(r=ye(t[5].style))&&W(e,"style",r)},d(t){t&&M(e)}}}function fn(t){let e,n,r,i,o,a;return{c(){e=B("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)||W(e,"src",n),W(e,"alt",""),W(e,"aria-hidden","true"),W(e,"loading","lazy"),W(e,"decoding","async"),W(e,"class",r=cn["outer-background__item"]),W(e,"style",i=ye(t[5].style))},m(n,r){T(n,e,r),o||(a=H(e,"error",t[2]),o=!0)},p(t,r){2&r&&!u(e.src,n=t[5].image_url)&&W(e,"src",n),2&r&&i!==(i=ye(t[5].style))&&W(e,"style",i)},d(t){t&&M(e),o=!1,a()}}}function gn(t){let e;function n(t,e){return t[5].image_url?fn:pn}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 mn(t){let e,r,i=Kt(t[1]),o=[];for(let e=0;e<i.length;e+=1)o[e]=gn(hn(t,i,e));return{c(){e=B("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=X(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(M),this.h()},h(){W(e,"class",r=cn["outer-background"]+(t[0]?" "+cn["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=Kt(t[1]),n=0;n<i.length;n+=1){const r=hn(t,i,n);o[n]?o[n].p(r,a):(o[n]=gn(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=cn["outer-background"]+(t[0]?" "+cn["outer-background_clip"]:""))&&W(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&M(e),z(o,t)}}}function vn(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=xt(fe);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=Ae([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=dn(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(cn["outer-background__item_hidden"])},i]}const yn=class extends ce{constructor(t){super(),se(this,t,vn,mn,d,{background:3,radius:0})}},$n=t=>({hasCustomFocus:256&t[0]}),_n=t=>({focusHandler:t[38],blurHandler:t[39],hasCustomFocus:t[8]});function bn(t){let e,n;return e=new ln({props:{id:t[0].id,use:t[37],cls:t[1]+" "+Oe("outer",ve,t[17]),style:ye(t[16]),actions:t[13],doubleTapActions:t[14],longTapActions:t[15],attrs:t[9],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Vn(t[7]),$$slots:{default:[kn]},$$scope:{ctx:t}}}),e.$on("focus",t[38]),e.$on("blur",t[39]),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.id=t[0].id),131074&n[0]&&(r.cls=t[1]+" "+Oe("outer",ve,t[17])),65536&n[0]&&(r.style=ye(t[16])),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||Vn(t[7])),1400&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wn(t){let e,n;return e=new yn({props:{background:t[5],radius:t[4]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(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||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function xn(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=ve.outer__border),W(e,"style",r=ye(t[3]))},m(t,n){T(t,e,n)},p(t,n){8&n[0]&&r!==(r=ye(t[3]))&&W(e,"style",r)},d(t){t&&M(e)}}}function kn(t){let e,n,r,i=t[6]&&wn(t);const o=t[120].default,a=f(o,t,t[121],_n);let s=t[10]&&xn(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]&&Ht(i,1)):(i=wn(t),i.c(),Ht(i,1),i.m(e.parentNode,e)):i&&(Lt(),Wt(i,1,1,(()=>{i=null})),Ut()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&v(a,o,t,t[121],r?m(o,t[121],l,$n):y(t[121]),_n),t[10]?s?s.p(t,l):(s=xn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Ht(i),Ht(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 En(t){let e,n,r=!t[11]&&!t[12]&&bn(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),6144&n[0]&&Ht(r,1)):(r=bn(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const An={left:"start",center:"center",right:"end"},Cn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Vn(t){return t.some((t=>"native"===t.name))}function Dn(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,j,F,P,I,S,N,O,T,M,z,B,J,R,L,U,H,W,q,G,K,Y=n,X=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;t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),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()));let{$$slots:ft={},$$scope:gt}=e,{json:mt={}}=e,{origJson:vt}=e,{templateContext:yt}=e,{cls:$t=""}=e,{style:_t}=e,{layoutParams:wt={}}=e,{customDescription:kt=!1}=e,{customPaddings:Et=!1}=e,{customActions:At=""}=e,{additionalPaddings:Ct=null}=e,{heightByAspect:Vt=!1}=e,{parentOf:Dt}=e,{parentOfSimpleMode:jt}=e,{replaceItems:Ft}=e,{hasInnerFocusable:It=!1}=e;const St=xt(fe),Nt=xt(Te),Ot=St.isPointerFocus;let Tt,Mt;p(t,Ot,(t=>r(127,F=t)));let zt,Bt,Jt,Rt,Lt,Ut,Ht,Wt,qt,Gt,Kt,Yt,Xt,Zt,Qt,te,ee,ne,re,ie,oe=null,ae=[],se={},le={},ce=!1,ue=1,de="transparent",pe=0,me={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ve="",ye=null,be="",xe={},ke=0,Ce=0,Ve=0,De=!1,je=!1,Ne={},Oe=0,ze=0,Le=0,Ze=!1,tn=!1,en=1,nn=[],rn=!1,on=!1,an=[],sn=[],ln=[],cn=[],un=[],dn=[],hn="",pn=!1,fn="visible",gn=0,mn=0,vn=!1,yn=null;function $n(t,e){if(!Array.isArray(Dt)||!Ft)return;if(jt&&1!==(Array.isArray(e)&&e.length||0))return;const n=Dt.findIndex((e=>(null==e?void 0:e.id)===t)),i=Dt.slice();i.splice(n,1,...e||[]),r(40,Dt=i),Ft(i)}function _n(t){const e=qe(t.start_value,1),n=qe(t.end_value,1),i=Re(t.start_delay,0),o=Qe()?0:Re(t.duration,300),a=We(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(86,Zt=e),r(87,Qt=n),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return r(88,te=e),r(89,ee=n),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return St.logError(ge(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function bn(){if(oe&&Tt){const t=St.getExtensionContext();oe.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Tt,t)})),oe=null}}return bt((()=>{var t;ae.forEach((t=>{St.unregisterParentOf(t)})),r(53,ae=[]),null===(t=mt.tooltips)||void 0===t||t.forEach((t=>{St.unregisterTooltip(t)})),bn()})),t.$$set=t=>{"json"in t&&r(0,mt=t.json),"origJson"in t&&r(41,vt=t.origJson),"templateContext"in t&&r(42,yt=t.templateContext),"cls"in t&&r(1,$t=t.cls),"style"in t&&r(43,_t=t.style),"layoutParams"in t&&r(44,wt=t.layoutParams),"customDescription"in t&&r(45,kt=t.customDescription),"customPaddings"in t&&r(46,Et=t.customPaddings),"customActions"in t&&r(47,At=t.customActions),"additionalPaddings"in t&&r(48,Ct=t.additionalPaddings),"heightByAspect"in t&&r(49,Vt=t.heightByAspect),"parentOf"in t&&r(40,Dt=t.parentOf),"parentOfSimpleMode"in t&&r(50,jt=t.parentOfSimpleMode),"replaceItems"in t&&r(51,Ft=t.replaceItems),"hasInnerFocusable"in t&&r(2,It=t.hasInnerFocusable),"$$scope"in t&&r(121,gt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&mt&&wt&&(r(59,ye=null),r(60,be=""),r(77,en=1),r(90,pn=!1),r(91,fn="visible"),r(92,gn=0),r(93,mn=0),r(94,ne=void 0),r(95,re=void 0),r(80,nn=wt.fakeElement?[]:mt.transition_triggers||["state_change","visibility_change"]),r(81,rn=Boolean(-1!==nn.indexOf("state_change")&&mt.id)),on=Boolean(-1!==nn.indexOf("visibility_change")&&mt.id)),1&t.$$.dirty[0]&&(r(35,i=St.getDerivedFromVars(mt.focus)),Q(),Q=h(i,(t=>r(105,N=t)))),1&t.$$.dirty[0]&&(r(34,o=St.getDerivedFromVars(mt.border)),pt(),pt=h(o,(t=>r(119,K=t)))),1&t.$$.dirty[0]&&(r(33,a=St.getDerivedFromVars(mt.paddings)),ht(),ht=h(a,(t=>r(118,G=t)))),1&t.$$.dirty[0]&&(r(32,s=St.getDerivedFromVars(mt.margins)),ut(),ut=h(s,(t=>r(116,W=t)))),1&t.$$.dirty[0]&&(r(31,l=St.getDerivedFromVars(mt.width)),lt(),lt=h(l,(t=>r(114,U=t)))),1&t.$$.dirty[0]&&(r(30,c=St.getDerivedFromVars(mt.alignment_horizontal)),dt(),dt=h(c,(t=>r(117,q=t)))),1&t.$$.dirty[0]&&(r(29,u=St.getDerivedFromVars(mt.height)),st(),st=h(u,(t=>r(113,L=t)))),1&t.$$.dirty[0]&&(r(28,d=St.getDerivedFromVars(mt.alignment_vertical)),ct(),ct=h(d,(t=>r(115,H=t)))),1&t.$$.dirty[0]&&(r(27,f=St.getDerivedFromVars(mt.alpha)),at(),at=h(f,(t=>r(112,R=t)))),1&t.$$.dirty[0]&&(r(26,g=St.getDerivedFromVars(mt.accessibility)),ot(),ot=h(g,(t=>r(111,J=t)))),1&t.$$.dirty[0]&&(r(25,m=St.getDerivedFromVars(mt.background)),it(),it=h(m,(t=>r(110,B=t)))),1&t.$$.dirty[0]&&(r(24,v=St.getDerivedFromVars(mt.action)),nt(),nt=h(v,(t=>r(108,M=t)))),1&t.$$.dirty[0]&&(r(23,y=St.getDerivedFromVars(mt.actions)),rt(),rt=h(y,(t=>r(109,z=t)))),1&t.$$.dirty[0]&&(r(22,$=St.getDerivedFromVars(mt.doubletap_actions)),et(),et=h($,(t=>r(107,T=t)))),1&t.$$.dirty[0]&&(r(21,_=St.getDerivedFromVars(mt.longtap_actions)),tt(),tt=h(_,(t=>r(106,O=t)))),1&t.$$.dirty[0]&&(r(20,b=St.getDerivedFromVars(mt.action_animation)),Z(),Z=h(b,(t=>r(104,S=t)))),1&t.$$.dirty[0]&&(r(19,w=St.getDerivedFromVars(mt.visibility)),X(),X=h(w,(t=>r(103,I=t)))),1&t.$$.dirty[0]&&(r(18,x=St.getDerivedFromVars(mt.transform)),Y(),Y=h(x,(t=>r(102,P=t)))),4719104&t.$$.dirty[1]&&(ae.forEach((t=>{St.unregisterParentOf(t)})),r(53,ae=[]),Dt&&Dt.forEach((t=>{(null==t?void 0:t.id)&&(ae.push(t.id),St.registerParentOf(t.id,{replaceWith:$n,isSingleMode:Boolean(jt)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=vn&&(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 $e((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+$e((null===(r=t.offset)||void 0===r||null===(i=r.y)||void 0===i?void 0:i.value)||0)+" "+$e(null!==(o=t.blur)&&void 0!==o?o:2)+" "+we(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(55,ue=Re(t.stroke.width,ue)),r(56,de=we(t.stroke.color,1,de)),n.border="".concat($e(ue)," solid ").concat(de)),t.corners_radius?(r(58,me=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,me)),n["border-radius"]=e["border-radius"]=Ye(me)):t.corner_radius&&(r(57,pe=Re(t.corner_radius,pe)),r(58,me={"top-left":pe,"top-right":pe,"bottom-right":pe,"bottom-left":pe}),n["border-radius"]=e["border-radius"]=$e(pe)),i&&ue&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},me);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ue/2})),o=Ye(t)}}r(54,se=He(e,se)),r(3,le=He(n,le)),r(10,ce=i),r(4,ve=o)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&r(59,ye=Ke(G&&!Et?G:void 0,ye)),268566528&t.$$.dirty[1]&&r(98,k=Me(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}(ye,Ct))),536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&r(60,be=Je(W,be)),1073750016&t.$$.dirty[1]|8&t.$$.dirty[2]|27262976&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(65,ke=Re(null==U?void 0:U.value,ke)),e=$e(ke);else if("wrap_content"===u||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===wt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;t.min_size&&Be(t.min_size.value)&&(n=$e(t.min_size.value)),t.max_size&&Be(t.max_size.value)&&(i=$e(t.max_size.value))}"match_parent"!==u&&u||St.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,St.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(_e(((null==W?void 0:W.left)||0)+((null==W?void 0:W.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=U&&"weight"in U&&U.weight||1,wt.parentContainerWrap&&(l=!0));if("parent"===t)o["halign-self"]="stretch";else{const t=q;o["halign-self"]="left"===t||"center"===t||"right"===t?An[t]:wt.parentHAlign||"start"}t&&(o.width=t),r(62,zt=e),r(63,Bt=n),r(64,Jt=i),r(66,Ce=a),r(67,Ve=s),r(61,xe=He(o,xe)),r(68,De=l),r(11,je=c)}if(270336&t.$$.dirty[1]|2176&t.$$.dirty[2]|13631488&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(Vt);else if("fixed"===u)r(73,Oe=Re(null==L?void 0:L.value,Oe)),e=$e(Oe);else if("match_parent"!==u||wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==L?void 0:L.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===wt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=L;(null==t?void 0:t.min_size)&&Be(t.min_size.value)&&(n=$e(t.min_size.value)),(null==t?void 0:t.max_size)&&Be(t.max_size.value)&&(i=$e(t.max_size.value))}"match_parent"===u&&St.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,St.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(_e(((null==W?void 0:W.top)||0)+((null==W?void 0:W.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==L?void 0:L.weight)||1,wt.parentContainerWrap&&(l=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=H;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?o["valign-self"]=Cn[t]:o["valign-self"]=wt.parentVAlign||"start"}t&&(o.height=t),r(70,Rt=e),r(71,Lt=n),r(72,Ut=i),r(74,ze=a),r(75,Le=s),r(69,Ne=He(o,Ne)),r(76,Ze=l),r(12,tn=c)}var e,n;if(8192&t.$$.dirty[1]&&r(101,E=!!wt.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,A=wt.overlapParent&&(!U||"match_parent"===U.type)&&!wt.parentHorizontalWrapContent&&"match_parent"===(null==L?void 0:L.type)&&!wt.parentVerticalWrapContent),8192&t.$$.dirty[1]&&r(99,C=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(77,(n=en,en=!Be(e=R)||void 0===e||e>1?n:Number(e))),r(78,Ht=1===en?void 0:en)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(9,Mt=void 0),J&&!kt&&J.description&&(r(9,Mt={}),r(9,Mt["aria-label"]=J.description,Mt))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(5,Wt=vn&&(null==N?void 0:N.background)?N.background:B),r(79,qt={}),r(6,Gt=!1),Array.isArray(Wt)&&(r(6,Gt=Wt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ve)),!Gt))){const t=Ae(Wt);r(79,qt["background-color"]=t.color,qt),r(79,qt["background-image"]=t.image,qt),r(79,qt["background-size"]=t.size,qt),r(79,qt["background-position"]=t.position,qt),r(79,qt["background-repeat"]="no-repeat",qt)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(82,Kt=void 0),rn&&mt.transition_in&&St.isRunning("stateChange")&&r(82,Kt=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(84,Xt=void 0),rn&&mt.transition_change&&St.isRunning("stateChange")&&Nt.hasTransitionChange(mt.id)&&r(84,Xt=!0)),73728&t.$$.dirty[1]|126976&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)||[];wt.fakeElement?(t=[],e=[],n=[],i=[],o=[]):(Array.isArray(t)||(t=[],St.logError(ge(new Error("Actions should be array")))),Array.isArray(e)||(e=[],St.logError(ge(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],St.logError(ge(new Error("LongTapActions should be array")))),Array.isArray(i)||(i=[],St.logError(ge(new Error("FocusActions should be array")))),Array.isArray(o)||(o=[],St.logError(ge(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&At&&(t=[],e=[],n=[],St.logError(ge(new Error('Cannot use action on component "'.concat(At,'"'))))),r(13,an=t.filter(Xe)),r(14,sn=e.filter(Xe)),r(15,ln=n.filter(Xe)),cn=i.filter(Xe),un=o.filter(Xe)}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&S&&(r(7,dn=Ge(S)),r(85,hn=dn.map(_n).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=fn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(I,fn);t!==e&&(!pn||"visible"!==fn&&"visible"!==e?r(91,fn=e):async function(t){r(91,fn=t);const e="visible"===t?"in":"out",n="in"===e?mt.transition_in:mt.transition_out;on&&n&&(await Pt(),"in"===e&&r(83,Yt=!0),Nt.runVisibilityTransition(Object.assign(Object.assign({},mt),{visibility:"visible"}),yt,n,Tt,e).then((()=>{"in"===e&&r(83,Yt=!1)})).catch((t=>{throw"in"===e&&r(83,Yt=!1),t})))}(e)),pn||r(90,pn=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&&mt&&Tt&&!Ue(mt.extensions,ie)){let t=r(96,ie=mt.extensions);Pt().then((()=>{if(t===ie&&Tt&&(bn(),Array.isArray(mt.extensions))){const t=St.getExtensionContext();oe=mt.extensions.map((e=>{var n;const r=St.getExtension(e.id,e.params);return r&&(null===(n=r.mountView)||void 0===n||n.call(r,Tt,t)),r})).filter(Ee)}}))}if(1&t.$$.dirty[0]|3072&t.$$.dirty[1]&&mt&&vt&&yt&&yn&&yn.update({json:mt,origJson:vt,templateContext:yt}),257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(17,V=Object.assign(Object.assign(Object.assign({},xe),Ne),{"parent-overlap":E,"parent-overlap-absolute":A,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":Kt||Yt||Xt,visibility:fn,"has-action-animation":Boolean(hn),"parent-flex":wt.parentContainerOrientation||void 0,"parent-grid":Boolean(wt.gridArea)||void 0,"has-custom-focus":Boolean(vn&&mt.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&P&&void 0!==P.rotation){const t=P.pivot_x||{type:"pivot-percentage",value:50};r(92,gn=qe(t.value,gn));const e="pivot-fixed"===t.type?$e(gn):"".concat(gn,"%"),n=P.pivot_y||{type:"pivot-percentage",value:50};r(93,mn=qe(n.value,mn));const i="pivot-fixed"===n.type?$e(mn):"".concat(mn,"%");r(94,ne="".concat(e," ").concat(i)),r(95,re="rotate(".concat(P.rotation,"deg)"))}20560&t.$$.dirty[2]&&r(97,D=De||Ze?"100%":Ce||ze?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&r(16,j=Object.assign(Object.assign(Object.assign(Object.assign({},_t),qt),se),{width:zt,"min-width":Bt,"max-width":Jt,height:Rt,"min-height":Lt,"max-height":Ut||(null==_t?void 0:_t["max-height"]),"grid-area":C,padding:k,margin:be,opacity:Ht,transition:hn,"transform-origin":ne,transform:re,"flex-grow":Ce||ze||void 0,"flex-shrink":Ve||Le?1:void 0,"flex-basis":D,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[mt,$t,It,le,ve,Wt,Gt,dn,vn,Mt,ce,je,tn,an,sn,ln,j,V,x,w,b,_,$,y,v,m,g,f,d,u,c,l,s,a,o,i,Ot,function(t){var e;r(52,Tt=t),rn&&mt.transition_in&&Nt.registerChildWithTransitionIn(mt,yt,mt.transition_in,t).then((()=>{r(82,Kt=!1)})).catch((t=>{throw r(82,Kt=!1),t})),rn&&mt.transition_out&&Nt.registerChildWithTransitionOut(mt,yt,mt.transition_out,t),rn&&mt.transition_change&&Nt.registerChildWithTransitionChange(mt,yt,mt.transition_change,t).then((()=>{r(84,Xt=!1)})).catch((t=>{throw r(84,Xt=!1),t}));const n=wt.fakeElement?[]:mt.visibility_actions||mt.visibility_action&&[mt.visibility_action],i=wt.fakeElement?[]:mt.disappear_actions;let o;(Array.isArray(n)&&n.length||Array.isArray(i)&&i.length)&&(o=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,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let s;const l=()=>{s&&s.disconnect(),o.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},c=he(a,(t=>t)).subscribe((e=>{const n=e.filter(Se),r={};n.forEach((t=>{r[t.index]=t})),l();const a=[...new Set(n.map((t=>{const e="visibility"===o[t.index].type;return Ie(e,t.visibility_percentage,e?50:0)/100})))];a.length&&(s=new IntersectionObserver((t=>{t.forEach((t=>{n.forEach((e=>{const n=o[e.index],r="visibility"===n.type,a=Ie(r,e.visibility_percentage,r?50:0);let s;s=0===a?t.intersectionRatio>=1e-12:t.intersectionRatio>=a/100;const l=r?!n.visible&&s:n.visible&&!s,c=r?!s:s;l?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0);const o=i.getJsonWithVars(n.action),a=o.url,s=o.typed;if(a){const t=Fe(a);t&&!Pe(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)}),e.visibility_duration||800)):c&&n.timer&&clearTimeout(n.timer),n.visible=s}))}))}),{threshold:a}),s.observe(t))}));return{destroy(){l(),c()}}}(t,{visibilityActions:n,disappearActions:i,rootCtx:St}));const a=mt.id;return a&&Nt.registerChild(a),null===(e=mt.tooltips)||void 0===e||e.forEach((e=>{St.registerTooltip(t,e)})),{destroy(){a&&Nt.unregisterChild(a),o&&o.destroy(),yn&&yn.destroy()}}},function(){mt.focus&&(F||r(8,vn=!0),St.execAnyActions(cn))},function(){mt.focus&&(r(8,vn=!1),St.execAnyActions(un))},Dt,vt,yt,_t,wt,kt,Et,At,Ct,Vt,jt,Ft,Tt,ae,se,ue,de,pe,me,ye,be,xe,zt,Bt,Jt,ke,Ce,Ve,De,Ne,Rt,Lt,Ut,Oe,ze,Le,Ze,en,Ht,qt,nn,rn,Kt,Yt,Xt,hn,Zt,Qt,te,ee,pn,fn,gn,mn,ne,re,ie,D,k,C,A,E,P,I,S,N,O,T,M,z,B,J,R,L,U,H,W,q,G,K,ft,gt]}const jn=class extends ce{constructor(t){super(),se(this,t,Dn,En,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,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Fn={"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 Pn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function In(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Sn(t,e){return In(t)||e}function Nn(t){let e,n;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=Fn["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 On(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 Tn(t){let e,n,r,i=t[4]&&Nn(t);return n=new ln({props:{cls:Oe("text-range",Fn,t[3]),actions:t[1],style:ye(t[2]),$$slots:{default:[On]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=U(),re(n.$$.fragment)},l(t){i&&i.l(t),e=U(),ie(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),T(t,e,o),oe(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Nn(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Oe("text-range",Fn,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=ye(t[2])),8388609&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Ht(n.$$.fragment,t),r=!0)},o(t){Wt(n.$$.fragment,t),r=!1},d(t){t&&M(e),i&&i.d(t),ae(n,t)}}}function Mn(t,e,n){let r,i,o,a,s,l;var c,u;let{json:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=xt(fe);let y,$="none",_=12,b=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"json"in t&&n(5,d=t.json),"text"in t&&n(0,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(1,m=t.actions)},t.$$.update=()=>{if(32&t.$$.dirty&&d&&(n(11,$="none"),n(12,_=12),n(13,b=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,_=Pn(f.font_size,_)),4224&t.$$.dirty&&un(f.line_height)&&n(13,b=Number(f.line_height)/_),128&t.$$.dirty&&Be(f.letter_spacing)&&n(14,w=$e(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=Sn(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=we(f.text_color,1,k)),128&t.$$.dirty&&n(4,r=f.top_offset?$e(f.top_offset):""),128&t.$$.dirty&&n(20,i=f.background?Ae([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==we(f.border.stroke.color)&&un(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,o=Pn(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,i,o,a,s;return"drop-shadow("+we(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+$e(10*((null===(r=t.offset)||void 0===r||null===(i=r.x)||void 0===i?void 0:i.value)||0)/e)+" "+$e(10*((null===(o=t.offset)||void 0===o||null===(a=o.y)||void 0===a?void 0:a.value)||0)/e)+" "+$e(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,_):void 0),2304&t.$$.dirty&&n(3,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(2,l={"font-size":$e(10*_/p),"line-height":b,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==i?void 0:i.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat($e(E.width)," ").concat(E.color):void 0,"border-radius":o?$e(o):void 0})},[h,m,l,s,r,d,p,f,g,c,u,$,_,b,w,y,x,k,E,o,i,a]}const zn=class extends ce{constructor(t){super(),se(this,t,Mn,Tn,d,{json:5,text:0,rootFontSize:6,textStyles:7,singleline:8,actions:1})}};function Bn(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Jn(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Rn(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Ln(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Un(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)}}function Hn(t,e){let n=null;const r=()=>{t.style.webkitLineClamp="",t.style.maxHeight="";const e=t.offsetHeight,n=t.scrollHeight,r=parseFloat(getComputedStyle(t).lineHeight);if(n<=e+1e-9)return;const i=Math.max(1,Math.floor(e/r));t.style.webkitLineClamp=String(i),t.style.maxHeight=r*i+"px"},i=Un(r,50),o=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(o(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(i);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){o()}}}const{Boolean:Wn}=C;function qn(t,e,n){const r=t.slice();return r[59]=e[n],r}function Gn(t){let e,n;return e=new zn({props:{json:t[0],text:t[4],rootFontSize:t[5],textStyles:t[30],singleline:t[8]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),1073741824&n[0]&&(r.textStyles=t[30]),256&n[0]&&(r.singleline=t[8]),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Kn(t){let e,n,r=Kt(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=Qn(qn(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(3361&n[0]|1&n[1]){let a;for(r=Kt(t[11]),a=0;a<r.length;a+=1){const o=qn(t,r,a);i[a]?(i[a].p(o,n),Ht(i[a],1)):(i[a]=Qn(o),i[a].c(),Ht(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ht(i[t]);n=!0}},o(t){i=i.filter(Wn);for(let t=0;t<i.length;t+=1)Wt(i[t]);n=!1},d(t){t&&M(e),z(i,t)}}}function Yn(t){let e,r,i,o,a,s,l,c;return{c(){e=B("span"),r=B("img"),this.h()},l(t){e=et(t,"SPAN",{style:!0});var n=X(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(){W(r,"class",i=me.text__image),u(r.src,o=t[59].image.url)||W(r,"src",o),W(r,"loading","lazy"),W(r,"decoding","async"),W(r,"aria-hidden","true"),W(r,"alt",""),W(r,"style",a=ye({width:t[59].image.width,height:t[59].image.height,"margin-top":t[10]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[10]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),W(e,"style",s=ye(t[59].image.wrapperStyle))},m(n,i){T(n,e,i),N(e,r),l||(c=H(r,"error",t[31]),l=!0)},p(t,n){2048&n[0]&&!u(r.src,o=t[59].image.url)&&W(r,"src",o),3072&n[0]&&a!==(a=ye({width:t[59].image.width,height:t[59].image.height,"margin-top":t[10]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[10]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&W(r,"style",a),2048&n[0]&&s!==(s=ye(t[59].image.wrapperStyle))&&W(e,"style",s)},i:n,o:n,d(t){t&&M(e),l=!1,c()}}}function Xn(t){let e,n,r=t[59].text&&Zn(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[59].text?r?(r.p(t,n),2048&n[0]&&Ht(r,1)):(r=Zn(t),r.c(),Ht(r,1),r.m(e.parentNode,e)):r&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Zn(t){let e,n;return e=new zn({props:{json:t[0],text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[8],actions:t[59].actions}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),2048&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),2048&n[0]&&(r.textStyles=t[59].textStyles),256&n[0]&&(r.singleline=t[8]),2048&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Qn(t){let e,n,r,i;const o=[Xn,Yn],a=[];function s(t,e){return"text"in t[59]?0:t[59].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&&(Lt(),Wt(a[l],1,1,(()=>{a[l]=null})),Ut()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ht(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Ht(n),i=!0)},o(t){Wt(n),i=!1},d(t){t&&M(r),~e&&a[e].d(t)}}}function tr(t){let e,n,r,i,o,a,s,c,u;const d=[Kn,Gn],h=[];function p(t,e){return t[11].length?0:1}return n=p(t),r=h[n]=d[n](t),{c(){e=B("span"),r.c(),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0});var n=X(e);r.l(n),n.forEach(M),this.h()},h(){W(e,"class",i=Oe("text__inner",me,t[13])),W(e,"style",o=ye(t[12]))},m(r,i){T(r,e,i),h[n].m(e,null),s=!0,c||(u=_(a=Hn.call(null,e,{enabled:t[9],lineClamp:"number"==typeof t[6]?t[6]:void 0})),c=!0)},p(t,c){let u=n;n=p(t),n===u?h[n].p(t,c):(Lt(),Wt(h[u],1,1,(()=>{h[u]=null})),Ut(),r=h[n],r?r.p(t,c):(r=h[n]=d[n](t),r.c()),Ht(r,1),r.m(e,null)),(!s||8192&c[0]&&i!==(i=Oe("text__inner",me,t[13])))&&W(e,"class",i),(!s||4096&c[0]&&o!==(o=ye(t[12])))&&W(e,"style",o),a&&l(a.update)&&576&c[0]&&a.update.call(null,{enabled:t[9],lineClamp:"number"==typeof t[6]?t[6]:void 0})},i(t){s||(Ht(r),s=!0)},o(t){Wt(r),s=!1},d(t){t&&M(e),h[n].d(),c=!1,u()}}}function er(t){let e,n;return e=new jn({props:{cls:Oe("text",me,t[14])+" "+(t[7]?"":pe.root__unselectable),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[tr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};16512&n[0]&&(r.cls=Oe("text",me,t[14])+" "+(t[7]?"":pe.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]),1073758065&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function nr(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,j,F,P,I,S,N,O,T,M,z,B,J,R=n,L=n,U=n,H=n,W=n,q=n,G=n,K=n,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n;t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt()));let{json:rt={}}=e,{templateContext:it}=e,{origJson:ot}=e,{layoutParams:at}=e;const st=xt(fe);let lt="",ct=12,ut=1.25,dt=!1,ht="",pt="",ft=!1,gt="left",mt="top",vt="",yt="",$t="",_t=!1,wt=[],kt=[];return bt((()=>{kt.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&r(0,rt=t.json),"templateContext"in t&&r(1,it=t.templateContext),"origJson"in t&&r(2,ot=t.origJson),"layoutParams"in t&&r(3,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&rt&&(r(5,ct=12),r(32,ut=1.25),r(10,dt=!1),r(33,ht=""),r(6,pt=""),r(34,ft=!1),r(35,gt="left"),r(36,mt="top"),r(37,vt=""),r(39,$t=""),r(7,_t=!1)),1&t.$$.dirty[0]&&(r(29,i=st.getDerivedFromVars(rt.text)),nt(),nt=h(i,(t=>r(55,J=t)))),1&t.$$.dirty[0]&&(r(28,o=st.getDerivedFromVars(rt.ranges)),L(),L=h(o,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(27,a=st.getDerivedFromVars(rt.images)),R(),R=h(a,(t=>r(43,C=t)))),1&t.$$.dirty[0]&&(r(26,s=st.getDerivedFromVars({font_size:rt.font_size,letter_spacing:rt.letter_spacing,font_weight:rt.font_weight,font_family:rt.font_family,text_color:rt.text_color,underline:rt.underline,strike:rt.strike,line_height:rt.line_height,text_shadow:rt.text_shadow})),U(),U=h(s,(t=>r(30,D=t)))),1&t.$$.dirty[0]&&(r(25,l=st.getDerivedFromVars(rt.font_size)),et(),et=h(l,(t=>r(54,B=t)))),1&t.$$.dirty[0]&&(r(24,c=st.getDerivedFromVars(rt.line_height)),tt(),tt=h(c,(t=>r(53,z=t)))),1&t.$$.dirty[0]&&(r(23,u=st.getDerivedFromVars(rt.max_lines)),Y(),Y=h(u,(t=>r(50,N=t)))),1&t.$$.dirty[0]&&(r(22,d=st.getDerivedFromVars(rt.text_alignment_horizontal)),Z(),Z=h(d,(t=>r(52,T=t)))),1&t.$$.dirty[0]&&(r(21,p=st.getDerivedFromVars(rt.text_alignment_vertical)),X(),X=h(p,(t=>r(51,O=t)))),1&t.$$.dirty[0]&&(r(20,f=st.getDerivedFromVars(rt.text_color)),K(),K=h(f,(t=>r(49,S=t)))),1&t.$$.dirty[0]&&(r(19,g=st.getDerivedFromVars(rt.focused_text_color)),G(),G=h(g,(t=>r(48,I=t)))),1&t.$$.dirty[0]&&(r(18,m=st.getDerivedFromVars(rt.truncate)),q(),q=h(m,(t=>r(47,P=t)))),1&t.$$.dirty[0]&&(r(17,v=st.getDerivedFromVars(rt.text_gradient)),W(),W=h(v,(t=>r(46,F=t)))),1&t.$$.dirty[0]&&(r(16,y=st.getDerivedFromVars(rt.selectable)),H(),H=h(y,(t=>r(45,j=t)))),1&t.$$.dirty[0]&&(r(15,$=st.getDerivedFromVars(rt.auto_ellipsize)),Q(),Q=h($,(t=>r(9,M=t)))),16777216&t.$$.dirty[1]&&r(4,(e=J,lt=String(null!=e?e:""))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&r(5,ct=Pn(B,ct)),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=z;un(t)?(r(32,ut=Number(t)/ct),r(10,dt=!0)):r(10,dt=!1)}if(524288&t.$$.dirty[1]&&r(8,_=1===N),512&t.$$.dirty[0]|524290&t.$$.dirty[1]){let t="",e="",n=!1;if(N&&N>1){let r=Number(N);t=r*ut+"em",e=r,n=!0}else M&&1!==N&&(n=!0);r(33,ht=t),r(6,pt=e),r(34,ft=n)}if(2097168&t.$$.dirty[1]&&r(35,gt=Bn(T,gt)),1048608&t.$$.dirty[1]&&r(36,mt=Jn(O,mt)),16&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(42,b=!V||lt&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=lt.length),270336&t.$$.dirty[1]&&r(41,w=Boolean(S)!==Boolean(V&&V[0]&&V[0].text_color)),797760&t.$$.dirty[1]){let t="";N&&b&&w&&(t=we(S||V&&V[0]&&V[0].text_color,1,vt)),r(37,vt=t)}if(131200&t.$$.dirty[1]&&r(38,yt=we(I,1,yt)),65536&t.$$.dirty[1]&&r(40,x="none"===P?"none":""),32768&t.$$.dirty[1]){let t="";if(F){const e=Ae([F]);e.image&&(t=e.image)}r(39,$t=t)}128&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(7,_t=Rn(j,_t)),16&t.$$.dirty[0]|12288&t.$$.dirty[1]&&function(t,e,n){let i=[];if(kt.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),kt=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(11,wt=[]);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,n;let r="image"===t.type?null:t.range,a=t.index;if(a>l){let r=Object.assign(Object.assign({},D),...c);i.push({text:o.substring(l,a),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Xe))||void 0})}if("rangeStart"===t.type&&r)c.push(r);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},D),...c),n=$e(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=$e(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":$e(10*(Number(e.font_size)||12)/ct)};let a="";const s=t.image.tint_color,l=Ln(t.image.tint_mode,"source_in");if(s){const e=we(t.image.tint_color);a=st.addSvgFilter(e,l),kt.push([e,l])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}l=a})),l<o.length&&i.push({text:o.substring(l),textStyles:Object.assign({},D)}),r(11,wt=i)}(lt,V,C),256&t.$$.dirty[0]|696&t.$$.dirty[1]&&r(14,k={singleline:_,multiline:ft,halign:gt,valign:mt,truncate:x,"has-focus-color":Boolean(yt)}),256&t.$$.dirty[1]&&r(13,E={gradient:Boolean($t)}),96&t.$$.dirty[0]|454&t.$$.dirty[1]&&r(12,A={"font-size":$e(ct),"line-height":ut,"max-height":ht,"-webkit-line-clamp":pt,color:vt,"background-image":$t,"--divkit-text-focus-color":yt})},[rt,it,ot,at,lt,ct,pt,_t,_,M,dt,wt,A,E,k,$,y,v,m,g,f,p,d,u,c,l,s,a,o,i,D,function(t){t.target&&"classList"in t.target&&t.target.classList.add(me.text__image_hidden)},ut,ht,ft,gt,mt,vt,yt,$t,x,w,b,C,V,j,F,P,I,S,N,O,T,z,B,J]}const rr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",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 ir(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 or(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 ar(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($e).join(" ")}function sr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function lr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function cr(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:Re(null===(o=(i=t.shape).item_width)||void 0===o?void 0:o.value,10),height:Re(null===(a=i.item_height)||void 0===a?void 0:a.value,10),radius:Re(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*Re(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?we(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=we(l),a&&s&&(i.boxShadow="inset 0 0 0 ".concat($e(s)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}let ur;function dr(){if("undefined"==typeof document&&(ur=!0),void 0!==ur)return ur;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),ur=1===t.scrollHeight,document.body.removeChild(t),ur}const hr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:pr}=C;function fr(t,e,n){const r=t.slice();return r[15]=e[n],r}function gr(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=B("div"),n=B("div"),i=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0}),X(n).forEach(M),i=it(r),r.forEach(M),this.h()},h(){W(n,"class",r=hr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",s),lt(n,"border-radius",l),lt(n,"background",t[15].style.background),lt(n,"box-shadow",t[15].style.boxShadow),W(e,"class",o=hr["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),N(e,n),N(e,i)},p(t,r){2&r&&a!==(a="".concat(t[15].style.width,"px"))&&lt(n,"width",a),2&r&&s!==(s="".concat(t[15].style.height,"px"))&&lt(n,"height",s),2&r&&l!==(l="".concat(t[15].style.borderRadius,"px"))&&lt(n,"border-radius",l),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 mr(t){let e,r,i,o,a=Kt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=gr(fr(t,a,e));return{c(){e=B("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=X(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(M),this.h()},h(){W(e,"class",r=hr["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=H(pr,"resize",t[2]),i=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Kt(t[1]),n=0;n<a.length;n+=1){const i=fr(t,a,n);s[n]?s[n].p(i,r):(s[n]=gr(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 vr(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 yr(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),vr(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)vr(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),vr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function $r(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(ve.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&&yr(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&&yr(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(hr["container-separator__shape"]))&&!(null==n?void 0:n.contains(hr["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){At[t?"unshift":"push"]((()=>{u=t,n(0,u)}))}]}const _r=class extends ce{constructor(t){super(),se(this,t,$r,mr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7})}},{Boolean:br}=C;function wr(t,e,n){const r=t.slice();return r[49]=e[n],r}function xr(t){let e,n;return e=new ks({props:{layoutParams:t[10],div:t[49].json,templateContext:t[49].templateContext,origJson:t[49].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.layoutParams=t[10]),4096&n[0]&&(r.div=t[49].json),4096&n[0]&&(r.templateContext=t[49].templateContext),4096&n[0]&&(r.origJson=t[49].origJson),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function kr(t){let e,n;return e=new _r({props:{separator:t[7],lineSeparator:t[8],orientation:t[4],contentHAlign:t[6],contentVAlign:t[5]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.separator=t[7]),256&n[0]&&(r.lineSeparator=t[8]),16&n[0]&&(r.orientation=t[4]),64&n[0]&&(r.contentHAlign=t[6]),32&n[0]&&(r.contentVAlign=t[5]),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Er(t){let e,n,r,i=Kt(t[12]),o=[];for(let e=0;e<i.length;e+=1)o[e]=xr(wr(t,i,e));const a=t=>Wt(o[t],1,1,(()=>{o[t]=null}));let s=(t[7]||t[8])&&kr(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=L(),s&&s.c(),n=U()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=it(t),s&&s.l(t),n=U()},m(t,i){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);T(t,e,i),s&&s.m(t,i),T(t,n,i),r=!0},p(t,r){if(5120&r[0]){let n;for(i=Kt(t[12]),n=0;n<i.length;n+=1){const a=wr(t,i,n);o[n]?(o[n].p(a,r),Ht(o[n],1)):(o[n]=xr(a),o[n].c(),Ht(o[n],1),o[n].m(e.parentNode,e))}for(Lt(),n=i.length;n<o.length;n+=1)a(n);Ut()}t[7]||t[8]?s?(s.p(t,r),384&r[0]&&Ht(s,1)):(s=kr(t),s.c(),Ht(s,1),s.m(n.parentNode,n)):s&&(Lt(),Wt(s,1,1,(()=>{s=null})),Ut())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Ht(o[t]);Ht(s),r=!0}},o(t){o=o.filter(br);for(let t=0;t<o.length;t+=1)Wt(o[t]);Wt(s),r=!1},d(t){t&&(M(e),M(n)),z(o,t),s&&s.d(t)}}}function Ar(t){let e,n;return e=new jn({props:{cls:Oe("container",rr,t[15]),style:t[11],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[16],heightByAspect:Boolean(t[9]),parentOf:t[13],replaceItems:t[27],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Oe("container",rr,t[15])),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]),65536&n[0]&&(r.additionalPaddings=t[16]),512&n[0]&&(r.heightByAspect=Boolean(t[9])),8192&n[0]&&(r.parentOf=t[13]),5616&n[0]|2097152&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const Cr={left:"start",center:"center",right:"end","space-between":"start","space-around":"start","space-evenly":"start"},Vr={top:"start",center:"center",bottom:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Dr=["rounded_rectangle","circle"];function jr(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,j,F,P,I,S=n,N=n,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n;var H,W,q,G,K,Y;t.$$.on_destroy.push((()=>S())),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((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U()));let{json:X={}}=e,{templateContext:Z}=e,{origJson:Q}=e,{layoutParams:tt}=e;const et=xt(fe);let nt,rt,it="vertical",ot="top",at="left",st=null,lt=null,ct={};return t.$$set=t=>{"json"in t&&r(0,X=t.json),"templateContext"in t&&r(1,Z=t.templateContext),"origJson"in t&&r(2,Q=t.origJson),"layoutParams"in t&&r(3,tt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&X&&(r(4,it="vertical"),r(5,ot="top"),r(6,at="left"),r(9,rt=void 0)),1&t.$$.dirty[0]&&r(13,i=X.items),1&t.$$.dirty[0]&&(r(26,o=et.getDerivedFromVars(X.orientation)),U(),U=h(o,(t=>r(47,I=t)))),1&t.$$.dirty[0]&&(r(25,a=et.getDerivedFromVars(X.layout_mode)),L(),L=h(a,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(24,s=et.getDerivedFromVars(X.content_alignment_vertical)),J(),J=h(s,(t=>r(44,j=t)))),1&t.$$.dirty[0]&&(r(23,l=et.getDerivedFromVars(X.content_alignment_horizontal)),B(),B=h(l,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(22,c=et.getDerivedFromVars(X.separator)),z(),z=h(c,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(21,u=et.getDerivedFromVars(X.line_separator)),M(),M=h(u,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(20,d=et.getDerivedFromVars(X.aspect)),T(),T=h(d,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(19,p=et.getDerivedFromVars(X.width)),N(),N=h(p,(t=>r(38,k=t)))),1&t.$$.dirty[0]&&(r(18,f=et.getDerivedFromVars(X.height)),O(),O=h(f,(t=>r(39,E=t)))),1&t.$$.dirty[0]&&(r(17,g=et.getDerivedFromVars(X.clip_to_bounds)),S(),S=h(g,(t=>r(37,x=t)))),8194&t.$$.dirty[0]&&r(12,m=(i||[]).map((t=>{let e=t,n=Z;return({templateContext:n,json:e}=et.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4096&t.$$.dirty[0]){let t=[];m.forEach((e=>{t.push(et.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(14,nt=he(t,(t=>[...t]))),R(),R=h(nt,(t=>r(45,F=t)))}if(16&t.$$.dirty[0]|65536&t.$$.dirty[1]&&r(4,it=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(I,it)),32768&t.$$.dirty[1]&&r(34,v="wrap"===P),16&t.$$.dirty[0]|16392&t.$$.dirty[1]&&r(35,y="horizontal"!==it&&!v&&F.some(sr)),16&t.$$.dirty[0]|16392&t.$$.dirty[1]&&r(36,$="vertical"!==it&&!v&&F.some(lr)),32&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(5,ot=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(j,ot)),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(6,at=function(t,e){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?t:e}(D,at)),1879048336&t.$$.dirty[0]|2048&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==it&&dr()){const t=cr(V.style,Dr,(null==st?void 0:st.style)||null);r(7,st=t?{show_at_start:Boolean(null!==r(28,H=V.show_at_start)&&void 0!==H&&H),show_at_end:Boolean(null!==r(29,W=V.show_at_end)&&void 0!==W&&W),show_between:Boolean(null===r(30,q=V.show_between)||void 0===q||q),style:t,margins:ir(V.margins)}:null)}else r(7,st=null);if(272&t.$$.dirty[0]|1031&t.$$.dirty[1])if((null==C?void 0:C.style)&&"overlap"!==it&&dr()){const t=cr(C.style,Dr,(null==lt?void 0:lt.style)||null);r(8,lt=t?{show_at_start:Boolean(null!==r(31,G=C.show_at_start)&&void 0!==G&&G),show_at_end:Boolean(null!==r(32,K=C.show_at_end)&&void 0!==K&&K),show_between:Boolean(null===r(33,Y=C.show_between)||void 0===Y||Y),style:t,margins:ir(C.margins)}:null)}else r(8,lt=null);if(400&t.$$.dirty[0]&&r(16,_=st||lt?function(t,e,n){const r={};return or(r,e,"vertical"===t),or(r,n,"horizontal"===t),r}(it,st,lt):null),512&t.$$.dirty[1]){const t=null==A?void 0:A.ratio;t&&un(t)?r(9,rt=t):r(9,rt=void 0)}if(1656&t.$$.dirty[0]|440&t.$$.dirty[1]){let t={};(null==tt?void 0:tt.fakeElement)&&(t.fakeElement=!0),"overlap"===it&&(t.overlapParent=!0),"horizontal"!==it&&(t.parentHAlign=v?"start":Cr[at]),"vertical"!==it&&(t.parentVAlign=v?"start":Vr[ot]),rt||$||E&&"wrap_content"!==E.type&&("match_parent"!==E.type||!(null==tt?void 0:tt.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!y&&("wrap_content"===(null==k?void 0:k.type)||"match_parent"===(null==k?void 0:k.type)&&(null==tt?void 0:tt.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===it&&(t.parentContainerOrientation="horizontal"),"vertical"===it&&(t.parentContainerOrientation="vertical"),v&&(t.parentContainerWrap=!0),r(10,ct=He(t,ct))}112&t.$$.dirty[0]|72&t.$$.dirty[1]&&r(15,b={orientation:it,valign:ot,halign:at,wrap:v,overflow:!1===x||0===x?"visible":void 0}),912&t.$$.dirty[0]&&r(11,w={gap:st||lt?ar(it,st,lt):void 0,"aspect-ratio":rt})},[X,Z,Q,tt,it,ot,at,st,lt,rt,ct,w,m,i,nt,b,_,g,f,p,d,u,c,l,s,a,o,function(t){r(0,X=Object.assign(Object.assign({},X),{items:t.filter(Ee)}))},H,W,q,G,K,Y,v,y,$,x,k,E,A,C,V,D,j,F,P,I]}const Fr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Pr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Ir(t){let e,n,r;return{c(){e=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=Fr.separator__inner),W(e,"style",r=ye(t[5]))},m(t,n){T(t,e,n)},p(t,n){32&n&&r!==(r=ye(t[5]))&&W(e,"style",r)},d(t){t&&M(e)}}}function Sr(t){let e,n=t[6]&&Ir(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=Ir(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&M(e),n&&n.d(t)}}}function Nr(t){let e,n;return e=new jn({props:{cls:Oe("separator",Fr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Sr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Oe("separator",Fr,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||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Or(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=xt(fe);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&&p&&(r(8,y="horizontal"),r(9,$="rgba(0,0,0,0.08)")),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=Pr(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,$=we(null==u?void 0:u.color,1,$)),256&t.$$.dirty&&r(11,a="horizontal"===y?"100%":$e(1)),256&t.$$.dirty&&r(10,s="horizontal"===y?$e(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 Tr={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 Mr(t){return t.startsWith("data:")?ke(t):"data:image/jpg;base64,".concat(ke(t))}function zr(t){let e,n;return e=new jn({props:{cls:Oe("image",Tr,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Lr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Oe("image",Tr,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]),7664&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Br(t){let e,n,r,i,o,a,l;return{c(){e=B("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(){W(e,"class",n=Tr.image__image),u(e.src,r=t[5]===Wr?Hr:t[6])||W(e,"src",r),W(e,"loading","lazy"),W(e,"decoding","async"),W(e,"style",i=ye(t[10])),W(e,"alt",t[12]),W(e,"aria-hidden",o=t[12]?null:"true")},m(n,r){T(n,e,r),t[59](e),a||(l=[H(e,"load",t[27]),H(e,"error",t[28])],a=!0)},p(t,n){96&n[0]&&!u(e.src,r=t[5]===Wr?Hr:t[6])&&W(e,"src",r),1024&n[0]&&i!==(i=ye(t[10]))&&W(e,"style",i),4096&n[0]&&W(e,"alt",t[12]),4096&n[0]&&o!==(o=t[12]?null:"true")&&W(e,"aria-hidden",o)},d(n){n&&M(e),t[59](null),a=!1,s(l)}}}function Jr(t){let e,n,r,i,o,a,l,c,d,h="".concat(t[7],"%");return{c(){e=B("span"),n=B("img"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var r=X(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(){W(n,"class",r=Tr.image__image),u(n.src,i=t[5]===Wr?Hr:t[6])||W(n,"src",i),W(n,"loading","lazy"),W(n,"decoding","async"),W(n,"style",o=ye(t[10])),W(n,"alt",t[12]),W(n,"aria-hidden",a=t[12]?null:"true"),W(e,"class",l=Tr["image__aspect-wrapper"]),lt(e,"padding-bottom",h)},m(r,i){T(r,e,i),N(e,n),t[58](n),c||(d=[H(n,"load",t[27]),H(n,"error",t[28])],c=!0)},p(t,r){96&r[0]&&!u(n.src,i=t[5]===Wr?Hr:t[6])&&W(n,"src",i),1024&r[0]&&o!==(o=ye(t[10]))&&W(n,"style",o),4096&r[0]&&W(n,"alt",t[12]),4096&r[0]&&a!==(a=t[12]?null:"true")&&W(n,"aria-hidden",a),128&r[0]&&h!==(h="".concat(t[7],"%"))&&lt(e,"padding-bottom",h)},d(n){n&&M(e),t[58](null),c=!1,s(d)}}}function Rr(t){let e;function n(t,e){return t[11].aspect?Jr:Br}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 Lr(t){let e,n=t[8],r=Rr(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){256&i[0]&&d(n,n=t[8])?(r.d(1),r=Rr(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function Ur(t){let e,n,r=!t[9]&&zr(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]?r&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),512&n[0]&&Ht(r,1)):(r=zr(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Hr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Wr=2;function qr(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,j,F,P,I,S,N,O,T,M=n,z=n,B=n,J=n,R=n,L=n,U=n,H=n,W=n,q=n,G=n,K=n,Y=n,X=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=xt(fe);let rt,it,ot,at=0,st=!1,lt="rgba(0,0,0,0.08)",ct=!1,ut="",dt="none",ht="50% 50%",pt="0",ft="source_in",gt="",mt="",vt=0,yt=0,$t=0,_t="",wt="";return bt((()=>{nt.removeSvgFilter(ot,ft)})),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]&&Z&&(r(32,dt="none"),r(33,ht="50% 50%"),r(35,ft="source_in")),1&t.$$.dirty[0]&&(r(26,i=nt.getDerivedFromVars(Z.image_url)),Y(),Y=h(i,(t=>r(56,O=t)))),1&t.$$.dirty[0]&&(r(25,o=nt.getDerivedFromVars(Z.gif_url)),X(),X=h(o,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(24,a=nt.getDerivedFromVars(Z.width)),K(),K=h(a,(t=>r(55,N=t)))),1&t.$$.dirty[0]&&(r(23,s=nt.getDerivedFromVars(Z.height)),G(),G=h(s,(t=>r(54,S=t)))),1&t.$$.dirty[0]&&(r(22,l=nt.getDerivedFromVars(Z.preview)),q(),q=h(l,(t=>r(53,I=t)))),1&t.$$.dirty[0]&&(r(21,c=nt.getDerivedFromVars(Z.placeholder_color)),W(),W=h(c,(t=>r(52,P=t)))),1&t.$$.dirty[0]&&(r(20,u=nt.getDerivedFromVars(Z.scale)),H(),H=h(u,(t=>r(51,F=t)))),1&t.$$.dirty[0]&&(r(19,d=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),U(),U=h(d,(t=>r(50,j=t)))),1&t.$$.dirty[0]&&(r(18,p=nt.getDerivedFromVars(Z.accessibility)),L(),L=h(p,(t=>r(49,D=t)))),1&t.$$.dirty[0]&&(r(17,f=nt.getDerivedFromVars(Z.aspect)),R(),R=h(f,(t=>r(48,V=t)))),1&t.$$.dirty[0]&&(r(16,g=nt.getDerivedFromVars(Z.tint_color)),J(),J=h(g,(t=>r(47,C=t)))),1&t.$$.dirty[0]&&(r(15,m=nt.getDerivedFromVars(Z.tint_mode)),B(),B=h(m,(t=>r(46,A=t)))),1&t.$$.dirty[0]&&(r(14,v=nt.getDerivedFromVars(Z.appearance_animation)),z(),z=h(v,(t=>r(45,E=t)))),1&t.$$.dirty[0]&&(r(13,y=nt.getDerivedFromVars(Z.filters)),M(),M=h(y,(t=>r(44,k=t)))),536870913&t.$$.dirty[0]|100663296&t.$$.dirty[1]){let t="gif"===Z.type?T:O;r(29,st="empty://"===t),st&&(t=Hr),r(6,it=t)}if(64&t.$$.dirty[0]&&r(5,at=0),65&t.$$.dirty[0]&&(it?r(9,ct=!1):(r(9,ct=!0),nt.logError(ge(new Error('Missing "'.concat("gif"===Z.type?"gif_url":"image_url",'" for "').concat(Z.type,'"')))))),16777216&t.$$.dirty[1]&&r(43,$="wrap_content"===(null==N?void 0:N.type)),8388608&t.$$.dirty[1]&&r(42,_="wrap_content"===(null==S?void 0:S.type)),536870944&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(31,ut=(0===at||at===Wr||st)&&I?'url("'.concat(Mr(I),'")'):""),1610612768&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&r(30,lt=0===at||at===Wr||st?we(P,1,lt):""),1048578&t.$$.dirty[1]&&r(32,dt=De(F)||dt),524288&t.$$.dirty[1]&&r(33,ht=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:je(t)}(j,ht)),262144&t.$$.dirty[1]&&r(12,b=(null==D?void 0:D.description)||""),131072&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&un(t)?r(7,pt=(100/Number(t)).toFixed(2)):r(7,pt="0")}if(98328&t.$$.dirty[1]){const t=C?we(C):void 0,e=Ln(A,ft);t===ot&&e===ft||(nt.removeSvgFilter(ot,ft),r(8,gt=t?nt.addSvgFilter(t,e):""),r(34,ot=t),r(35,ft=e))}if(16384&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;r(36,mt=We(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(39,$t=Re(t.duration,300)),r(38,yt=Re(t.start_delay,0)),r(37,vt=Re(t.alpha,0))}if(8192&t.$$.dirty[1]){let t="",e="";Array.isArray(k)&&k.length&&(t=dn(k,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(40,_t=t),r(41,wt=e)}160&t.$$.dirty[0]|6176&t.$$.dirty[1]&&r(11,w={aspect:"0"!==pt,"is-width-content":$,"is-height-content":_,loaded:1===at,"before-appearance":Boolean(mt)&&0===at}),1073742112&t.$$.dirty[0]|2023&t.$$.dirty[1]&&r(10,x={"background-image":ut,"background-color":ut?void 0:lt,"background-size":dt,"clip-path":wt||void 0,"object-fit":dt,"object-position":ht,filter:[1===at&&gt?"url(#".concat(gt,")"):"",_t].filter(Boolean).join(" "),"--divkit-appearance-interpolator":mt||void 0,"--divkit-appearance-fade-start":mt?vt:void 0,"--divkit-appearance-delay":mt?"".concat(yt,"ms"):void 0,"--divkit-appearance-duration":mt?"".concat($t,"ms"):void 0})},[Z,Q,tt,et,rt,at,it,pt,gt,ct,x,w,b,y,v,m,g,f,p,d,u,c,l,s,a,o,i,function(){0===at&&r(5,at=1)},function(){0===at&&r(5,at=Wr)},st,lt,ut,dt,ht,ot,ft,mt,vt,yt,$t,_t,wt,_,$,k,E,A,C,V,D,j,F,P,I,S,N,O,T,function(t){At[t?"unshift":"push"]((()=>{rt=t,r(4,rt),r(0,Z),r(57,T),r(56,O),r(29,st)}))},function(t){At[t?"unshift":"push"]((()=>{rt=t,r(4,rt),r(0,Z),r(57,T),r(56,O),r(29,st)}))}]}const Gr=class extends ce{constructor(t){super(),se(this,t,qr,Ur,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Kr={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 Yr(t){return t>0&&t<1}function Xr(t){return String(Math.ceil(1e3*t)/1e3)}function Zr(t,e,n){if(t.some(Yr)){const e=Math.max(...t.filter(Yr).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($e(r*t[e]/i),",").concat(Xr(t[e]),"fr)"):t[e]?o[e]="".concat(Xr(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Qr(t,e,n){const r=t.slice();return r[29]=e[n],r}function ti(t){let e,n;return e=new jn({props:{cls:Oe("grid",Kr,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:[ni]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Oe("grid",Kr,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]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ei(t){let e,n;return e=new ks({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[29].layoutParams),32&n[0]&&(r.div=t[29].json),32&n[0]&&(r.templateContext=t[29].templateContext),32&n[0]&&(r.origJson=t[29].origJson),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ni(t){let e,n,r=Kt(t[5]),i=[];for(let e=0;e<r.length;e+=1)i[e]=ei(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=Kt(t[5]),a=0;a<r.length;a+=1){const o=Qr(t,r,a);i[a]?(i[a].p(o,n),Ht(i[a],1)):(i[a]=ei(o),i[a].c(),Ht(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ht(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 ri(t){let e,n,r=!t[6]&&ti(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),64&n[0]&&Ht(r,1)):(r=ti(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function ii(t,e,r){let i,o,a,s,l,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=xt(fe);let A,C,V=1,D=[],j=[],F=[],P=[],I=0,S=!1,N="top",O="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]&&b&&(r(13,V=1),r(20,N="top"),r(21,O="left")),1&t.$$.dirty[0]&&r(23,i=Array.isArray(b.items)&&b.items||[]),1&t.$$.dirty[0]&&(r(11,o=E.getDerivedFromVars(b.column_count)),_(),_=h(o,(t=>r(27,m=t)))),1&t.$$.dirty[0]&&(r(10,a=E.getDerivedFromVars(b.content_alignment_vertical)),y(),y=h(a,(t=>r(25,f=t)))),1&t.$$.dirty[0]&&(r(9,s=E.getDerivedFromVars(b.content_alignment_horizontal)),v(),v=h(s,(t=>r(24,p=t)))),134225920&t.$$.dirty[0]&&r(13,V=Pn(m,V)),8388610&t.$$.dirty[0]&&r(22,l=i.map((t=>{let e=t,n=w;return({templateContext:n,json:e}=E.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];l.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=he(t,(t=>[...t]))),$(),$=h(A,(t=>r(26,g=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,D=[]),r(15,j=[]),r(16,F=[]),r(17,P=[]),r(19,S=!1),r(5,C=l.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(19,S=!0):(t[i+"_"+e]=!0,(!D[i]||D[i]<f)&&r(14,D[i]=f,D),(!j[e]||j[e]<m)&&r(15,j[e]=m,j),(!F[i]||F[i]<v)&&r(16,F[i]=v,F),(!P[e]||P[e]<y)&&r(17,P[e]=y,P));do{++e,e>=V&&(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(19,S=!0),S&&E.logError(ge(new Error('Mismatching "grid" rows/columns'))),r(18,I=n)}34603008&t.$$.dirty[0]&&r(20,N=Jn(f,N)),18874368&t.$$.dirty[0]&&r(21,O=Bn(p,O)),3145728&t.$$.dirty[0]&&r(8,c={valign:N,halign:O}),516096&t.$$.dirty[0]&&r(7,u={"grid-template-columns":Zr(D,F,V),"grid-template-rows":Zr(j,P,I)}),524288&t.$$.dirty[0]&&r(6,d=S)},[b,w,x,k,A,C,d,u,c,s,a,o,function(t){r(0,b=Object.assign(Object.assign({},b),{items:t.filter(Ee)}))},V,D,j,F,P,I,S,N,O,l,i,p,f,g,m]}const oi={gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},ai={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function si(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(" ")}const{Boolean:li}=C;function ci(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function ui(t,e,n){const r=t.slice();return r[78]=e[n],r}function di(t){let e,n;return e=new ks({props:{layoutParams:t[8],div:t[78].json,templateContext:t[78].templateContext,origJson:t[78].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),262144&n[0]&&(r.div=t[78].json),262144&n[0]&&(r.templateContext=t[78].templateContext),262144&n[0]&&(r.origJson=t[78].origJson),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function hi(t){let e,n,r,i,o,a=t[77],s=Kt(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=di(ui(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=B("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=X(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=it(r),r.forEach(M),this.h()},h(){W(e,"class",r=oi.gallery__items),W(e,"style",i=ye(t[16]))},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,262400&h[0]){let r;for(s=Kt(t[75]),r=0;r<s.length;r+=1){const i=ui(t,s,r);l[r]?(l[r].p(i,h),Ht(l[r],1)):(l[r]=di(i),l[r].c(),Ht(l[r],1),l[r].m(e,n))}for(Lt(),r=s.length;r<l.length;r+=1)c(r);Ut()}(!o||65536&h[0]&&i!==(i=ye(t[16])))&&W(e,"style",i),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!o){for(let t=0;t<s.length;t+=1)Ht(l[t]);o=!0}},o(t){l=l.filter(li);for(let t=0;t<l.length;t+=1)Wt(l[t]);o=!1},d(t){t&&M(e),z(l,t),d()}}}function pi(t){let e,n,r=t[12]&&t[9]&&fi(t),i=t[13]&&t[9]&&gi(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[12]&&t[9]?r?r.p(t,o):(r=fi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=gi(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 fi(t){let e,r,i,o,a=!t[30]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){W(n,"class",r=oi["gallery__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",i=ai.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){W(e,"class",r=t[30]||"".concat(oi.gallery__arrow," ").concat(ai.arrow," ").concat(ai.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=H(e,"click",t[66]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function gi(t){let e,r,i,o,a=!t[31]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){W(n,"class",r=oi["gallery__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",i=ai.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){W(e,"class",r=t[31]||"".concat(oi.gallery__arrow," ").concat(ai.arrow," ").concat(ai.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=H(e,"click",t[67]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function mi(t){let e,n,r,i,o,a,s,c,u,d,h,p=Kt(t[18]),f=[];for(let e=0;e<p.length;e+=1)f[e]=hi(ci(t,p,e));const g=t=>Wt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[6]&&pi(t);return{c(){e=B("div"),n=B("div");for(let t=0;t<f.length;t+=1)f[t].c();s=L(),m&&m.c(),c=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);n=et(r,"DIV",{class:!0,style:!0});var i=X(n);for(let t=0;t<f.length;t+=1)f[t].l(i);i.forEach(M),r.forEach(M),s=it(t),m&&m.l(t),c=U(),this.h()},h(){W(n,"class",r=oi["gallery__items-grid"]),W(n,"style",i=ye(t[17])),W(e,"class",o=oi.gallery__scroller+" "+(t[29]?pe["root_restrict-scroll"]:"")),W(e,"style",a=ye(t[7]))},m(r,i){T(r,e,i),N(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[64](n),t[65](e),T(r,s,i),m&&m.m(r,i),T(r,c,i),u=!0,d||(h=H(e,"scroll",(function(){l(t[9]?t[34]:null)&&(t[9]?t[34]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,329984&s[0]){let e;for(p=Kt(t[18]),e=0;e<p.length;e+=1){const r=ci(t,p,e);f[e]?(f[e].p(r,s),Ht(f[e],1)):(f[e]=hi(r),f[e].c(),Ht(f[e],1),f[e].m(n,null))}for(Lt(),e=p.length;e<f.length;e+=1)g(e);Ut()}(!u||131072&s[0]&&i!==(i=ye(t[17])))&&W(n,"style",i),(!u||536870912&s[0]&&o!==(o=oi.gallery__scroller+" "+(t[29]?pe["root_restrict-scroll"]:"")))&&W(e,"class",o),(!u||128&s[0]&&a!==(a=ye(t[7])))&&W(e,"style",a),"horizontal"===t[6]?m?m.p(t,s):(m=pi(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<p.length;t+=1)Ht(f[t]);u=!0}},o(t){f=f.filter(li);for(let t=0;t<f.length;t+=1)Wt(f[t]);u=!1},d(n){n&&(M(e),M(s),M(c)),z(f,n),t[64](null),t[65](null),m&&m.d(n),d=!1,h()}}}function vi(t){let e,n,r,i;return e=new jn({props:{cls:Oe("gallery",oi,t[15]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",parentOf:t[10],replaceItems:t[32],$$slots:{default:[mi]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(o,a){oe(e,o,a),n=!0,r||(i=H(window,"resize",(function(){l(t[9]?t[35]:null)&&(t[9]?t[35]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const i={};32768&r[0]&&(i.cls=Oe("gallery",oi,t[15])),1&r[0]&&(i.json=t[0]),4&r[0]&&(i.origJson=t[2]),2&r[0]&&(i.templateContext=t[1]),8&r[0]&&(i.layoutParams=t[3]),1024&r[0]&&(i.parentOf=t[10]),537345008&r[0]|524288&r[2]&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t),r=!1,i()}}}function yi(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,j,F,P,I,S,N,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n,H=n,W=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((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W()));let{json:q={}}=e,{templateContext:G}=e,{origJson:K}=e,{layoutParams:Y}=e;const X=xt(fe);let Z,Q,tt=[],et=!1,nt=!1,rt=null,it=!1;const ot=X.getCustomization("galleryLeftClass"),at=X.getCustomization("galleryRightClass");let st,lt,ct,ut,dt,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,wt={},kt=0;const Et=X.isDesktop;function Ct(){if(!Z)return;const t=Z.scrollLeft,e=Z.scrollWidth,n=Z.offsetWidth;r(12,et=t>2),r(13,nt=t+n<e-2)}p(t,Et,(t=>r(62,S=t)));const Vt=Un(Ct,50);function Dt(t){Z.scroll({left:Z.scrollLeft+.75*Z.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function jt(){let t=[],e=tt[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=tt[e].children[n];r&&t.push(r)}return t}function Ft(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,i=r?"offsetLeft":"offsetTop",o=r?"left":"top",a=t[e];a&&Z.scroll({[o]:Math.max(0,a[i]+.01-gt/2),behavior:n})}function Pt(t){const e=jt(),n=Z.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const i=e.map((t=>function(t,e){return"horizontal"===pt?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return _t((()=>{r(38,it=!0),Ct(),kt&&Ft(jt(),kt,"auto")})),bt((()=>{r(38,it=!1),st&&!(null==Y?void 0:Y.fakeElement)&&(X.unregisterInstance(st),r(39,st=void 0))})),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,Y=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&q&&(r(40,ht=1),r(6,pt="horizontal"),r(41,ft="start"),r(43,gt=8),r(46,mt="")),1&t.$$.dirty[0]&&r(10,i=Array.isArray(q.items)&&q.items||[]),1&t.$$.dirty[0]&&(r(28,o=X.getDerivedFromVars(q.column_count)),H(),H=h(o,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(27,a=X.getDerivedFromVars(q.orientation)),U(),U=h(a,(t=>r(60,P=t)))),1&t.$$.dirty[0]&&(r(26,s=X.getDerivedFromVars(q.cross_content_alignment)),L(),L=h(s,(t=>r(59,F=t)))),1&t.$$.dirty[0]&&(r(25,l=X.getDerivedFromVars(q.item_spacing)),R(),R=h(l,(t=>r(58,j=t)))),1&t.$$.dirty[0]&&(r(24,c=X.getDerivedFromVars(q.cross_spacing)),J(),J=h(c,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(23,u=X.getDerivedFromVars(q.paddings)),B(),B=h(u,(t=>r(56,V=t)))),1&t.$$.dirty[0]&&(r(22,d=X.getDerivedFromVars(q.scroll_mode)),M(),M=h(d,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(21,f=X.getDerivedFromVars(q.restrict_parent_scroll)),W(),W=h(f,(t=>r(29,N=t)))),1&t.$$.dirty[0]&&(r(20,g=X.getDerivedFromVars(q.scrollbar)),T(),T=h(g,(t=>r(53,E=t)))),1&t.$$.dirty[0]&&(r(19,m=X.getDerivedFromVars(q.default_item)),O(),O=h(m,(t=>r(52,k=t)))),1026&t.$$.dirty[0]&&r(51,v=i.map((t=>{let e=t,n=G;return({templateContext:n,json:e}=X.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),128&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(9,y=S&&it),544&t.$$.dirty[0]|64&t.$$.dirty[1]&&(y?"undefined"!=typeof ResizeObserver&&(r(37,rt=new ResizeObserver((()=>{Vt()}))),rt.observe(Q)):rt&&(rt.disconnect(),r(37,rt=null))),1073742336&t.$$.dirty[1]&&r(40,ht=Pn(I,ht)),1049088&t.$$.dirty[1]&&r(18,$=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}(v,ht)),64&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(6,pt=Pr(P,pt)),268436480&t.$$.dirty[1]&&r(41,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(F,ft)),134221824&t.$$.dirty[1]&&(r(43,gt=Re(j,gt)),r(42,lt=$e(gt))),67129344&t.$$.dirty[1]&&(r(45,ut=Re(D,gt)),r(44,ct=$e(ut))),33587200&t.$$.dirty[1]&&r(46,mt=Je(V,mt)),64&t.$$.dirty[0]&&r(50,_="horizontal"===pt?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|1048576&t.$$.dirty[1]){let t=[];v.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(X.getDerivedFromVars(e.json[n]))})),r(14,dt=he(t,(t=>t))),z(),z=h(dt,(t=>r(55,C=t)))}if(64&t.$$.dirty[0]|16843264&t.$$.dirty[1]&&(r(47,vt=[]),ht>1?vt.push("auto"):C.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),456&t.$$.dirty[0]|8394240&t.$$.dirty[1]){const t={};let e={};r(48,$t=!1),(null==Y?void 0:Y.fakeElement)&&(e.fakeElement=!0),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===A&&(r(48,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=$e(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(7,yt=He(t,yt)),r(8,wt=He(e,wt))}40960&t.$$.dirty[1]&&r(17,b={padding:mt,"grid-gap":ct}),591872&t.$$.dirty[1]&&r(16,w={"grid-gap":lt,[_]:si(vt)}),64&t.$$.dirty[0]|4325376&t.$$.dirty[1]&&r(15,x={orientation:pt,"scroll-snap":$t,scrollbar:"auto"===E?"auto":"none"}),2359296&t.$$.dirty[1]&&r(49,kt=Re(k,kt)),1&t.$$.dirty[0]&&q&&Vt(),89&t.$$.dirty[0]|256&t.$$.dirty[1]&&q&&(st&&(X.unregisterInstance(st),r(39,st=void 0)),q.id&&!(null==Y?void 0:Y.fakeElement)&&(r(39,st=q.id),X.registerInstance(q.id,{setCurrentItem(t){const e=jt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Ft(e,t)},setPreviousItem(t){const e=Pt("prev"),n=jt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Ft(n,r)},setNextItem(t){const e="horizontal"===pt?Z.scrollLeft+Z.offsetWidth===Z.scrollWidth:Z.scrollTop+Z.offsetHeight===Z.scrollHeight,n=jt();if(e&&"ring"===t)return void Ft(n,0);const r=Pt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),Ft(n,i)}})))},[q,G,K,Y,Z,Q,pt,yt,wt,y,i,tt,et,nt,dt,x,w,b,$,m,g,f,d,u,c,l,s,a,o,N,ot,at,function(t){r(0,q=Object.assign(Object.assign({},q),{items:t.filter(Ee)}))},Et,Ct,Vt,Dt,rt,it,st,ht,ft,lt,gt,ct,ut,mt,vt,$t,kt,_,v,k,E,A,C,V,D,j,F,P,I,S,function(t,e){At[t?"unshift":"push"]((()=>{tt[e]=t,r(11,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(5,Q)}))},function(t){At[t?"unshift":"push"]((()=>{Z=t,r(4,Z)}))},()=>Dt("left"),()=>Dt("right")]}const $i={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"},_i=37,bi=39,wi=36,xi=35,{Boolean:ki}=C;function Ei(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;return r[92]=i,r}function Ai(t,e,n){const r=t.slice();r[91]=e[n];const i=r[91].index;r[92]=i;const o=r[92]===r[17];return r[95]=o,r}function Ci(t){let e,n;return e=new jn({props:{cls:Oe("tabs",$i,t[47]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",parentOf:t[43],parentOfSimpleMode:!0,replaceItems:t[48],$$slots:{default:[Ii]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(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]),4096&n[1]&&(r.parentOf=t[43]),2147483626&n[0]|8199&n[1]|32&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Vi(t){let e,n,r=t[91].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[91].title+"")&&at(e,r)},d(t){t&&(M(e),M(n))}}}function Di(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[68](t[92],...n)}return i=new ln({props:{cls:Oe("tabs__item",$i,{selected:t[95],actionable:Boolean(t[91].title_click_action)}),actions:!t[91].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[91].title_click_action].filter(Xe),attrs:{id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Vi]},$$scope:{ctx:t}}}),{c(){re(i.$$.fragment)},l(t){ie(i.$$.fragment,t)},m(t,e){oe(i,t,e),o=!0},p(e,n){var r,o,s;t=e;const l={};655360&n[0]&&(l.cls=Oe("tabs__item",$i,{selected:t[95],actionable:Boolean(t[91].title_click_action)})),524296&n[0]&&(l.actions=!t[91].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[91].title_click_action].filter(Xe)),655368&n[0]&&(l.attrs={id:"".concat(t[45],"-tab-").concat(t[92]),"aria-controls":"".concat(t[45],"-panel-").concat(t[92]),role:"tab",tabindex:!t[95]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[91].title_click_action?void 0:"0","aria-selected":t[95]?"true":"false"}),524296&n[0]&&(l.customAction=null!==(s=t[3])&&void 0!==s&&s.fakeElement?null:a),524288&n[0]|32&n[3]&&(l.$$scope={dirty:n,ctx:t}),i.$set(l)},i(t){o||(Ht(i.$$.fragment,t),o=!0)},o(t){Wt(i.$$.fragment,t),o=!1},d(t){ae(i,t)}}}function ji(t){let e,n,r;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=$i.tabs__separator),W(e,"style",r=ye(t[33]))},m(t,n){T(t,e,n)},p(t,n){4&n[1]&&r!==(r=ye(t[33]))&&W(e,"style",r)},d(t){t&&M(e)}}}function Fi(t){let e,n;return e=new ks({props:{div:t[18][t[92]].div,templateContext:t[1],layoutParams:t[5]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};786432&n[0]&&(r.div=t[18][t[92]].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Pi(t){let e,n,r,i,o,a,s=t[30][t[92]]&&Fi(t);return{c(){e=B("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=X(e);s&&s.l(r),n=it(r),r.forEach(M),this.h()},h(){W(e,"class",r=Oe("tabs__panel",$i,{visible:t[31][t[92]]})),W(e,"role","tabpanel"),W(e,"id",i=t[45]+"-panel-"+t[92]),W(e,"aria-labelledby",o=t[45]+"-tab-"+t[92]),lt(e,"left",100*t[92]+"%")},m(t,r){T(t,e,r),s&&s.m(e,null),N(e,n),a=!0},p(t,l){t[30][t[92]]?s?(s.p(t,l),1074266112&l[0]&&Ht(s,1)):(s=Fi(t),s.c(),Ht(s,1),s.m(e,n)):s&&(Lt(),Wt(s,1,1,(()=>{s=null})),Ut()),(!a||524288&l[0]|1&l[1]&&r!==(r=Oe("tabs__panel",$i,{visible:t[31][t[92]]})))&&W(e,"class",r),(!a||524288&l[0]&&i!==(i=t[45]+"-panel-"+t[92]))&&W(e,"id",i),(!a||524288&l[0]&&o!==(o=t[45]+"-tab-"+t[92]))&&W(e,"aria-labelledby",o),(!a||524288&l[0])&&lt(e,"left",100*t[92]+"%")},i(t){a||(Ht(s),a=!0)},o(t){Wt(s),a=!1},d(t){t&&M(e),s&&s.d()}}}function Ii(t){let e,n,r,i,o,a,c,u,d,h,p,f=Kt(t[19]),g=[];for(let e=0;e<f.length;e+=1)g[e]=Di(Ai(t,f,e));const m=t=>Wt(g[t],1,1,(()=>{g[t]=null}));let v=t[20]&&ji(t),y=Kt(t[19]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Pi(Ei(t,y,e));const _=t=>Wt($[t],1,1,(()=>{$[t]=null}));return{c(){e=B("div");for(let t=0;t<g.length;t+=1)g[t].c();r=L(),v&&v.c(),i=L(),o=B("div"),a=B("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=X(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=X(o);a=et(s,"DIV",{class:!0});var l=X(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(M),s.forEach(M),this.h()},h(){W(e,"class",n=$i.tabs__list+" "+(t[44]?pe["root_restrict-scroll"]:"")),W(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[16]?Me(t[16]):""),lt(e,"--divkit-tabs-font-size",$e(t[6])),lt(e,"--divkit-tabs-paddings",t[7]),lt(e,"--divkit-tabs-line-height",t[24]),lt(e,"--divkit-tabs-letter-spacing",t[25]),lt(e,"--divkit-tabs-active-font-weight",t[9]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[10]||""),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[11]),lt(e,"--divkit-tabs-inactive-text-color",t[12]),lt(e,"--divkit-tabs-active-background-color",t[13]),lt(e,"--divkit-tabs-inactive-background-color",t[14]),lt(e,"--divkit-tabs-border-radius",t[8]),lt(e,"--divkit-tabs-items-spacing",t[15]?_e(t[15]):""),W(a,"class",c=Oe("tabs__swiper",$i,{inited:t[28],animated:t[29]})),W(o,"class",u=$i.tabs__panels+" "+(t[44]?pe["root_restrict-scroll"]:""))},m(n,s){T(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[69](e),T(n,r,s),v&&v.m(n,s),T(n,i,s),T(n,o,s),N(o,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[70](a),t[71](o),d=!0,h||(p=[H(e,"keydown",t[50]),H(a,"touchstart",(function(){l(t[32]?t[51]:void 0)&&(t[32]?t[51]:void 0).apply(this,arguments)})),H(a,"touchmove",(function(){l(t[32]?t[52]:void 0)&&(t[32]?t[52]:void 0).apply(this,arguments)})),H(a,"touchend",(function(){l(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)})),H(a,"touchcancel",(function(){l(t[32]?t[53]:void 0)&&(t[32]?t[53]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,655368&s[0]|278528&s[1]){let n;for(f=Kt(t[19]),n=0;n<f.length;n+=1){const r=Ai(t,f,n);g[n]?(g[n].p(r,s),Ht(g[n],1)):(g[n]=Di(r),g[n].c(),Ht(g[n],1),g[n].m(e,null))}for(Lt(),n=f.length;n<g.length;n+=1)m(n);Ut()}if((!d||8192&s[1]&&n!==(n=$i.tabs__list+" "+(t[44]?pe["root_restrict-scroll"]:"")))&&W(e,"class",n),65536&s[0]&&lt(e,"--divkit-tabs-title-padding",t[16]?Me(t[16]):""),64&s[0]&&lt(e,"--divkit-tabs-font-size",$e(t[6])),128&s[0]&&lt(e,"--divkit-tabs-paddings",t[7]),16777216&s[0]&&lt(e,"--divkit-tabs-line-height",t[24]),33554432&s[0]&&lt(e,"--divkit-tabs-letter-spacing",t[25]),512&s[0]&&lt(e,"--divkit-tabs-active-font-weight",t[9]||""),1024&s[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[10]||""),67108864&s[0]&&lt(e,"--divkit-tabs-active-font-family",t[26]||""),134217728&s[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[27]||""),2048&s[0]&&lt(e,"--divkit-tabs-active-text-color",t[11]),4096&s[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[12]),8192&s[0]&&lt(e,"--divkit-tabs-active-background-color",t[13]),16384&s[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[14]),256&s[0]&&lt(e,"--divkit-tabs-border-radius",t[8]),32768&s[0]&&lt(e,"--divkit-tabs-items-spacing",t[15]?_e(t[15]):""),t[20]?v?v.p(t,s):(v=ji(t),v.c(),v.m(i.parentNode,i)):v&&(v.d(1),v=null),1074528290&s[0]|16385&s[1]){let e;for(y=Kt(t[19]),e=0;e<y.length;e+=1){const n=Ei(t,y,e);$[e]?($[e].p(n,s),Ht($[e],1)):($[e]=Pi(n),$[e].c(),Ht($[e],1),$[e].m(a,null))}for(Lt(),e=y.length;e<$.length;e+=1)_(e);Ut()}(!d||805306368&s[0]&&c!==(c=Oe("tabs__swiper",$i,{inited:t[28],animated:t[29]})))&&W(a,"class",c),(!d||8192&s[1]&&u!==(u=$i.tabs__panels+" "+(t[44]?pe["root_restrict-scroll"]:"")))&&W(o,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Ht(g[t]);for(let t=0;t<y.length;t+=1)Ht($[t]);d=!0}},o(t){g=g.filter(ki);for(let t=0;t<g.length;t+=1)Wt(g[t]);$=$.filter(ki);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[69](null),v&&v.d(n),z($,n),t[70](null),t[71](null),h=!1,s(p)}}}function Si(t){let e,n,r=!t[4]&&Ci(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Ht(r,1)):(r=Ci(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ni(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,j,F,P=n,I=n,S=n,N=n,O=n,T=n,M=n,z=n,B=n;var J,R;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>S())),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((()=>B()));let{json:L={}}=e,{templateContext:U}=e,{origJson:H}=e,{layoutParams:W}=e;const q=xt(fe),G=q.genId("tabs");let K,Y=!1,X=de([]);p(t,X,(t=>r(19,w=t)));let Z,Q,tt,et,nt,rt,it,ot,at,st={},lt=12,ct="",ut="",dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t=0,_t="",wt="",kt=null,Et=!1,Ct=!1,Vt=[],Dt=[],jt=null,Ft=null,It=null,St=!1,Nt=!1;async function Ot(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(rt=y,r(17,y=t),Rt(),r(29,Ct=!0),zt(100*-y),Bt(),async function(){await Pt();const t=document.getElementById("".concat(G,"-panel-").concat(y));t&&r(22,Q.style.height=$e(t.offsetHeight),Q)}(),Jt(),at=-y*Q.clientWidth,e){await Pt();const t=Z.querySelector(".".concat($i.tabs__item_selected));t&&t.focus()}}function Tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==w?void 0:w.length;if(!n)return;const r=w.map((t=>t.index));let i=r.indexOf(y)+t;i>=n?i=0:i<0&&(i=n-1),Ot(r[i],e)}function Mt(t,e){return y===e||(Ot(e),!1)}async function zt(t){await Pt(),r(23,tt.style.transform="translate3d(".concat(t,"%,0,0)"),tt)}function Bt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,y-1):Math.min(y,null!=rt?rt:y),n=t?Math.min(i.length-1,y+1):Math.max(y,null!=rt?rt:y);r(30,Vt=Vt.map(((t,r)=>t||r>=e&&r<=n))),r(31,Dt=Dt.map(((t,r)=>r>=e&&r<=n)))}function Jt(){jt&&clearTimeout(jt),jt=window.setTimeout((()=>{r(31,Dt=i.map(((t,e)=>e===y)))}),400)}function Rt(){Et||(r(28,Et=!0),r(22,Q.style.height=$e(Q.clientHeight),Q),r(23,tt.style.transform="translate3d(".concat(100*-(null!=rt?rt:y),"%,0,0)"),tt))}return bt((()=>{K&&(q.unregisterInstance(K),r(56,K=void 0))})),t.$$set=t=>{"json"in t&&r(0,L=t.json),"templateContext"in t&&r(1,U=t.templateContext),"origJson"in t&&r(2,H=t.origJson),"layoutParams"in t&&r(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&L&&(r(6,lt=12),r(7,ct=""),r(8,ht=""),r(9,et=void 0),r(26,pt=""),r(10,nt=void 0),r(27,ft=""),r(11,gt=""),r(12,mt=""),r(13,vt=""),r(14,yt=""),r(15,$t=0),r(57,_t=""),r(58,wt=""),r(16,kt=null)),1&t.$$.dirty[0]&&r(18,i=L.items||[]),262144&t.$$.dirty[0]&&r(43,o=i.map((t=>t.div))),1&t.$$.dirty[0]&&(r(42,a=q.getDerivedFromVars(L.width)),z(),z=h(a,(t=>r(67,j=t)))),1&t.$$.dirty[0]&&(r(41,s=q.getDerivedFromVars(L.height)),M(),M=h(s,(t=>r(66,D=t)))),1&t.$$.dirty[0]&&r(60,l=q.getJsonWithVars(L.selected_tab)),1&t.$$.dirty[0]&&(r(40,c=q.getDerivedFromVars(L.tab_title_style)),T(),T=h(c,(t=>r(65,V=t)))),1&t.$$.dirty[0]&&(r(39,u=q.getDerivedFromVars(L.has_separator)),O(),O=h(u,(t=>r(20,C=t)))),1&t.$$.dirty[0]&&(r(38,d=q.getDerivedFromVars(L.separator_color)),N(),N=h(d,(t=>r(64,A=t)))),1&t.$$.dirty[0]&&(r(37,f=q.getDerivedFromVars(L.separator_paddings)),S(),S=h(f,(t=>r(63,E=t)))),1&t.$$.dirty[0]&&(r(36,g=q.getDerivedFromVars(L.switch_tabs_by_content_swipe_enabled)),I(),I=h(g,(t=>r(62,k=t)))),1&t.$$.dirty[0]&&(r(35,m=q.getDerivedFromVars(L.restrict_parent_scroll)),B(),B=h(m,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(34,v=q.getDerivedFromVars(L.title_paddings)),P(),P=h(v,(t=>r(61,x=t)))),536870912&t.$$.dirty[1]&&r(17,y=l&&Number(l)||0),262144&t.$$.dirty[0])if(Array.isArray(i)&&i.length){let t=[];i.forEach(((e,n)=>{const r=q.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):q.logError(ge(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),X.set(t)}else X.set([]);if(524288&t.$$.dirty[0]&&((null==w?void 0:w.length)?r(4,Y=!1):(r(4,Y=!0),q.logError(ge(new Error('Incorrect or empty "items" prop for div "tabs"'))))),40&t.$$.dirty[0]|48&t.$$.dirty[2]){let t={};(null==W?void 0:W.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==j?void 0:j.type)&&(t.parentHorizontalWrapContent=!0),D&&"wrap_content"!==D.type||(t.parentVerticalWrapContent=!0),r(5,st=He(t,st))}if(393233&t.$$.dirty[0]&&!Y&&(y<0||y>=i.length)&&(q.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.selected_tab,length:i.length}})),r(17,y=y<0?0:i.length-1)),655377&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&(Y||w.some((t=>y===t.index))||(q.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:L.selected_tab}})),r(17,y=(null===r(54,J=w[0])||void 0===J?void 0:J.index)||0))),8&t.$$.dirty[2]&&r(59,$=V||{}),64&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(6,lt=Pn($.font_size,lt)),192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&($.font_size||$.paddings)){const t=$.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/lt*10,right:(Number(t.right)||0)/lt*10,bottom:(Number(t.bottom)||0)/lt*10,left:(Number(t.left)||0)/lt*10};r(7,ct=Je(e,ct))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.line_height;void 0!==t&&un(t)&&r(24,ut=$e(t/lt*10))}if(64&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.letter_spacing;void 0!==t&&Be(t)&&r(25,dt=$e(t/lt*10))}if(320&t.$$.dirty[0]|285212672&t.$$.dirty[1]&&($.corner_radius||$.corners_radius||$.font_size)){const t=null!==r(55,R=$.corner_radius)&&void 0!==R?R:1e3;$.corners_radius?r(8,ht=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)}($.corners_radius,t,lt,ht)):Be(t)&&r(8,ht=$e(t/lt*10))}512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(9,et=Sn($.active_font_weight||$.font_weight,et)),$.font_family&&"string"==typeof $.font_family?r(26,pt=q.typefaceProvider($.font_family,{fontWeight:et||400})):r(26,pt="")),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(10,nt=Sn($.inactive_font_weight||$.font_weight,nt)),$.font_family&&"string"==typeof $.font_family?r(27,ft=q.typefaceProvider($.font_family,{fontWeight:nt||400})):r(27,ft="")),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,gt=we($.active_text_color,1,gt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,mt=we($.inactive_text_color,1,mt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,vt=we($.active_background_color,1,vt)),16384&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(14,yt=we($.inactive_background_color,1,yt)),32768&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(15,$t=Re($.item_spacing,$t)),1048576&t.$$.dirty[0]|201326592&t.$$.dirty[1]|6&t.$$.dirty[2]&&C&&(A&&r(57,_t=we(A,1,_t)),E&&r(58,wt=Je(E,wt))),201326592&t.$$.dirty[1]&&r(33,_={background:_t,margin:wt}),1&t.$$.dirty[2]&&r(32,b=void 0===k||Boolean(k)),65536&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(16,kt=Ke(x||void 0,kt)),262144&t.$$.dirty[0]&&(Y||(r(30,Vt=i.map(((t,e)=>e===y))),r(31,Dt=i.map(((t,e)=>e===y))))),393241&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&L&&(K&&(q.unregisterInstance(K),r(56,K=void 0)),!L.id||Y||(null==W?void 0:W.fakeElement)||(r(56,K=L.id),q.registerInstance(L.id,{setCurrentItem(t){if(t<0||t>i.length-1)throw new Error('Item is out of range in "set-current-item" action');Ot(t)},setPreviousItem(t){let e=y-1;e<0&&(e="ring"===t?i.length-1:y),Ot(e)},setNextItem(t){let e=y+1;e>i.length-1&&(e="ring"===t?0:y),Ot(e)}})))},[L,U,H,W,Y,st,lt,ct,ht,et,nt,gt,mt,vt,yt,$t,kt,y,i,w,C,Z,Q,tt,ut,dt,pt,ft,Et,Ct,Vt,Dt,b,_,v,m,g,f,d,u,c,s,a,o,F,G,X,{},function(t){L.items&&r(0,L=Object.assign(Object.assign({},L),{items:L.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))}))},Mt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&i){if(t.which===_i)Tt(-1,!0);else if(t.which===bi)Tt(1,!0);else if(t.which===wi)Ot(0,!0);else{if(t.which!==xi)return;Ot(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(pe["root_restrict-scroll"]));i.length<2||t.touches.length>1||o&&o!==Q||(St=!1,Nt=!1,Ft=nn(t),It=null,it=Date.now(),ot=at||-y*Q.clientWidth,r(29,Ct=!1),jt&&clearTimeout(jt))},function(t){const e=nn(t);if(!Ft||It&&It.x===e.x&&It.y===e.y)return;It=e;const n=Q.clientWidth;if(St){at=e.x-Ft.x+ot;const t=n*i.length;if(at>0)at=at*n/(at+3*n);else if(-at+n>t){let e=-at+n-t;e=e*n/(e+3*n),at=n-t-e}zt(100*at/n)}else Math.abs(e.y-Ft.y)>10?Nt=!0:!Nt&&Math.abs(e.x-Ft.x)>8&&(Rt(),St=!0,Ft=e,zt(100*-y),Bt(!0));St&&t.cancelable&&t.preventDefault()},function(){Nt=!1,Ft=null;let t=y;if(!St)return;St=!1;const e=Math.min(512,Q.clientWidth);Math.abs(ot-at)>e/4*Math.min(1,(Date.now()-it)/750)&&(t+=ot>at?1:-1),t>=i.length?t=i.length-1:t<0&&(t=0),t===y?(at=-t*e,zt(100*-t),Jt()):Ot(t)},J,R,K,_t,wt,$,l,x,k,E,A,V,D,j,(t,e)=>Mt(0,t),function(t){At[t?"unshift":"push"]((()=>{Z=t,r(21,Z)}))},function(t){At[t?"unshift":"push"]((()=>{tt=t,r(23,tt)}))},function(t){At[t?"unshift":"push"]((()=>{Q=t,r(22,Q)}))}]}const Oi={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Ti(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Mi(t){return t*t*t}function zi(t){const e=t-1;return e*e*e+1}function Bi(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 Ji=Bi([.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]),Ri=Bi([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]),Li={linear:r,ease:Ji,ease_in:Mi,ease_out:zi,ease_in_out:Ti,spring:Ri},Ui=200,Hi=0,Wi=0,qi=0;function Gi(t){return Math.max(...t.map((t=>(Number(t.duration)||Ui)+(Number(t.start_delay)||Hi))))}function Ki(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:Qe()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Hi,a=Number(t.duration)||Ui,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-s:s,u=(Li[t.interpolator||"ease_in_out"]||Ti)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Wi)};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||qi),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 Yi(t,e,n){return t*(1-n)+e*n}const Xi={linear:r,ease:Ji,ease_in:Mi,ease_out:zi,ease_in_out:Ti,spring:Ri},Zi=200,Qi=0;function to(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:Qi,duration:Qe()?0:null!==(r=s.duration)&&void 0!==r?r:Zi,easing:s.interpolator&&s.interpolator in Xi?Xi[s.interpolator]:Ti,css:t=>["top:".concat(Yi(o.top,a.top,t)-i.top,"px"),"left:".concat(Yi(o.left,a.left,t)-i.left,"px"),"width:".concat(Yi(o.width,a.width,t),"px"),"height:".concat(Yi(o.height,a.height,t),"px")].join(";")}}function eo(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...eo(t))})):e.push(t),e}const no={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},ro={linear:r,ease:Ji,ease_in:Mi,ease_out:zi,ease_in_out:Ti,spring:Ri},io=300,oo=0;function ao(t,e){let{animations:n,direction:r}=e;if(!n)return{};const i=Ge(n),o=(a=i,Math.max(...a.map((t=>(Number(t.duration)||io)+(Number(t.start_delay)||oo)))));var a;return i.some((t=>"no_animation"===t.name))?{}:{duration:Qe()?0:o,css:t=>{const e=t*o,n=i.map((t=>{const n=Number(t.start_delay)||oo,i=Number(t.duration)||io,o=Math.max(0,Math.min(1,(e-n)/i)),a=(ro[t.interpolator||"ease_in_out"]||Ti)(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:so}=C;function lo(t){let e,i,o,a,c,u,d,h;return i=new ks({props:{div:t[0].div,templateContext:t[1]}}),{c(){e=B("div"),re(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);ie(i.$$.fragment,n),n.forEach(M),this.h()},h(){W(e,"class",o=Oe("tooltip",no,t[7])+" "+(t[13]?pe.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),oe(i,e,null),t[26](e),u=!0,d||(h=[H(so,"click",t[17]),H(so,"resize",t[18])],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||8320&r[0]&&o!==(o=Oe("tooltip",no,t[7])+" "+(t[13]?pe.root_platform_desktop:"")))&&W(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||(Ht(i.$$.fragment,n),n&&It((()=>{u&&(c&&c.end(1),a=Gt(e,ao,{animations:t[14]||co,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=Rt;let h;function p(){const{delay:e=0,duration:i=300,easing:o=r,tick:l=n,css:p}=c||qt;p&&(a=mt(t,1,0,i,e,o,p));const f=w()+e,g=f+i;It((()=>Bt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),A((e=>{if(u){if(e>=g)return l(0,1),Bt(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)?zt().then((()=>{c=c(o),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&vt(t,a),u=!1)}}}(e,ao,{animations:t[15]||co,direction:"out"})),u=!1},d(n){n&&M(e),ae(i),t[26](null),n&&c&&c.end(),d=!1,s(h)}}}const co={name:"set",items:[{name:"translate"},{name:"fade"}]};function uo(t,e,r){let i,o,a,s,l,c,u,d,f,g,m,v,y=n,$=n,_=n,b=n,w=n;var x,k,E,A;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w()));let{ownerNode:C}=e,{data:V}=e,{internalId:D}=e,{templateContext:j}=e;const F=xt(fe),P=F.isDesktop;p(t,P,(t=>r(13,g=t)));const I=Date.now();let S,N=!1,O="",T="",M="",z="",B=null;function J(){var t,e;if(!S||!C)return;const n=S.parentElement;if(!n)return;const i=S.style.cssText;r(2,S.style.cssText+=";transform: none !important",S);const o=C.getBoundingClientRect(),a=S.getBoundingClientRect(),s=n.getBoundingClientRect();r(2,S.style.cssText=i,S);let l=0,c=0,h=null,p=null,g=0,m=0;const v=F.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(g=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?h=v.value:a.width:h=o.width,m="match_parent"===(null==y?void 0:y.type)?p=o.height:"fixed"===(null==y?void 0:y.type)&&y.value?p=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+=d||0,c+=u||0,r(3,O="".concat(l,"px")),r(4,T="".concat(c,"px")),r(5,M=null!==h?"".concat(h,"px"):""),r(6,z=null!==p?"".concat(p,"px"):""),r(25,N=!0),null===h||null===p?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(J)})),B.observe(S)):null==B||B.disconnect()}var R;return _t((()=>{if(F.tooltipRoot){const t=window.getComputedStyle(S);r(2,S.style.fontSize=t.fontSize,S),r(2,S.style.fontFamily=t.fontFamily,S),r(2,S.style.lineHeight=t.lineHeight,S),F.tooltipRoot.appendChild(S)}})),R=()=>{N||J()},$t().$$.after_update.push(R),bt((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(19,C=t.ownerNode),"data"in t&&r(0,V=t.data),"internalId"in t&&r(20,D=t.internalId),"templateContext"in t&&r(1,j=t.templateContext)},t.$$.update=()=>{1&t.$$.dirty[0]&&(r(12,i=F.getDerivedFromVars(V.position)),_(),_=h(i,(t=>r(30,f=t)))),6291457&t.$$.dirty[0]&&(r(11,o=F.getDerivedFromVars(null===r(22,k=null===r(21,x=V.offset)||void 0===x?void 0:x.x)||void 0===k?void 0:k.value)),$(),$=h(o,(t=>r(29,d=t)))),25165825&t.$$.dirty[0]&&(r(10,a=F.getDerivedFromVars(null===r(24,A=null===r(23,E=V.offset)||void 0===E?void 0:E.y)||void 0===A?void 0:A.value)),y(),y=h(a,(t=>r(28,u=t)))),1&t.$$.dirty[0]&&(r(9,s=F.getDerivedFromVars(V.animation_in)),b(),b=h(s,(t=>r(14,m=t)))),1&t.$$.dirty[0]&&(r(8,l=F.getDerivedFromVars(V.animation_out)),w(),w=h(l,(t=>r(15,v=t)))),33554432&t.$$.dirty[0]&&r(7,c={visible:N})},[V,j,S,O,T,M,z,c,l,s,a,o,i,g,m,v,P,function(t){Date.now()-I<100||t.composedPath().includes(S)||F.onTooltipClose(D)},function(){J()},C,D,x,k,E,A,N,function(t){At[t?"unshift":"push"]((()=>{S=t,r(2,S)}))}]}const ho=class extends ce{constructor(t){super(),se(this,t,uo,lo,d,{ownerNode:19,data:0,internalId:20,templateContext:1},null,[-1,-1])}},{Map:po}=C;function fo(t,e,n){const r=t.slice();return r[34]=e[n],r}function go(t,e,n){const r=t.slice();return r[34]=e[n],r}function mo(t){var e;let n,r,i,o;n=new jn({props:{cls:Oi.state,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],parentOf:t[9],parentOfSimpleMode:!0,replaceItems:t[10],$$slots:{default:[wo]},$$scope:{ctx:t}}});let a=(null===(e=t[3])||void 0===e?void 0:e.tooltips)&&xo(t);return{c(){re(n.$$.fragment),r=L(),a&&a.c(),i=U()},l(t){ie(n.$$.fragment,t),r=it(t),a&&a.l(t),i=U()},m(t,e){oe(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]),512&e[0]&&(o.parentOf=t[9]),482&e[0]|256&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]&&Ht(a,1)):(a=xo(t),a.c(),Ht(a,1),a.m(i.parentNode,i)):a&&(Lt(),Wt(a,1,1,(()=>{a=null})),Ut())},i(t){o||(Ht(n.$$.fragment,t),Ht(a),o=!0)},o(t){Wt(n.$$.fragment,t),Wt(a),o=!1},d(t){t&&(M(r),M(i)),ae(n,t),a&&a.d(t)}}}function vo(t){let e,r,i=t[7],o=yo(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])?(Lt(),Wt(o,1,1,n),Ut(),o=yo(t),o.c(),Ht(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ht(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function yo(t){let e,n;return e=new ks({props:{div:t[8].div,templateContext:t[1]}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.div=t[8].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function $o(t){let e,n,r,i,o,a,s,l,c,u;function d(){return t[18](t[34])}return r=new ks({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=B("div"),n=B("div"),re(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);ie(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){W(n,"class",i=Oi["state__animation-child-inner"]),W(e,"class",a=Oi["state__animation-child"])},m(t,i){T(t,e,i),N(e,n),oe(r,n,null),N(e,o),l=!0,c||(u=H(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n[0]&&(i.div=t[34].json),64&n[0]&&(i.templateContext=t[34].templateContext),r.$set(i)},i(n){l||(Ht(r.$$.fragment,n),s||It((()=>{s=Gt(e,to,t[34]),s.start()})),l=!0)},o(t){Wt(r.$$.fragment,t),l=!1},d(t){t&&M(e),ae(r),c=!1,u()}}}function _o(t){let e,n,r,i,o,a,s,l,c,u,d="".concat(t[34].offsetLeft,"px"),h="".concat(t[34].offsetTop,"px"),p="".concat(t[34].width,"px"),f="".concat(t[34].height,"px");function g(){return t[17](t[34])}return r=new ks({props:{div:t[34].json,templateContext:t[34].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=B("div"),n=B("div"),re(r.$$.fragment),o=L(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);ie(r.$$.fragment,a),a.forEach(M),o=it(i),i.forEach(M),this.h()},h(){W(n,"class",i=Oi["state__animation-child-inner"]),W(e,"class",a=Oi["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),N(e,n),oe(r,n,null),N(e,o),l=!0,c||(u=H(e,"introend",g),c=!0)},p(n,i){t=n;const o={};64&i[0]&&(o.div=t[34].json),64&i[0]&&(o.templateContext=t[34].templateContext),r.$set(o),64&i[0]&&d!==(d="".concat(t[34].offsetLeft,"px"))&&lt(e,"left",d),64&i[0]&&h!==(h="".concat(t[34].offsetTop,"px"))&&lt(e,"top",h),64&i[0]&&p!==(p="".concat(t[34].width,"px"))&&lt(e,"width",p),64&i[0]&&f!==(f="".concat(t[34].height,"px"))&&lt(e,"height",f)},i(n){l||(Ht(r.$$.fragment,n),s||It((()=>{s=Gt(e,Ki,t[34]),s.start()})),l=!0)},o(t){Wt(r.$$.fragment,t),l=!1},d(t){t&&M(e),ae(r),c=!1,u()}}}function bo(t,e){let n,r,i,o,a;const s=[_o,$o],l=[];function c(t,e){return"direction"in t[34]?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):(Lt(),Wt(l[a],1,1,(()=>{l[a]=null})),Ut(),i=l[r],i?i.p(e,n):(i=l[r]=s[r](e),i.c()),Ht(i,1),i.m(o.parentNode,o))},i(t){a||(Ht(i),a=!0)},o(t){Wt(i),a=!1},d(t){t&&(M(n),M(o)),l[r].d(t)}}}function wo(t){var e;let n,r,i,o,a=[],s=new po,l=(null===(e=t[8])||void 0===e?void 0:e.div)&&vo(t),c=Kt(t[6]);const u=t=>t[34];for(let e=0;e<c.length;e+=1){let n=go(t,c,e),r=u(n);s.set(r,a[e]=bo(r,n))}return{c(){l&&l.c(),n=L(),r=B("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=X(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(M),this.h()},h(){W(r,"class",i=Oi.state__animations),W(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[19](r),o=!0},p(t,e){var i;null!==(i=t[8])&&void 0!==i&&i.div?l?(l.p(t,e),256&e[0]&&Ht(l,1)):(l=vo(t),l.c(),Ht(l,1),l.m(n.parentNode,n)):l&&(Lt(),Wt(l,1,1,(()=>{l=null})),Ut()),2112&e[0]&&(c=Kt(t[6]),Lt(),a=Xt(a,e,u,1,t,c,s,r,Yt,bo,null,go),Ut())},i(t){if(!o){Ht(l);for(let t=0;t<c.length;t+=1)Ht(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[19](null)}}}function xo(t){var e;let n,r,i=[],o=new po,a=Kt(null===(e=t[3])||void 0===e?void 0:e.tooltips);const s=t=>t[34].internalId;for(let e=0;e<a.length;e+=1){let n=fo(t,a,e),r=s(n);o.set(r,i[e]=ko(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=Kt(null===(r=t[3])||void 0===r?void 0:r.tooltips),Lt(),i=Xt(i,e,s,1,t,a,o,n.parentNode,Yt,ko,n,fo),Ut())},i(t){if(!r){for(let t=0;t<a.length;t+=1)Ht(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 ko(t,e){let n,r,i;return r=new ho({props:{ownerNode:e[34].ownerNode,data:e[34].desc,internalId:e[34].internalId,templateContext:e[1]}}),{key:t,first:null,c(){n=U(),re(r.$$.fragment),this.h()},l(t){n=U(),ie(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){T(t,n,e),oe(r,t,e),i=!0},p(t,n){e=t;const i={};8&n[0]&&(i.ownerNode=e[34].ownerNode),8&n[0]&&(i.data=e[34].desc),8&n[0]&&(i.internalId=e[34].internalId),2&n[0]&&(i.templateContext=e[1]),r.$set(i)},i(t){i||(Ht(r.$$.fragment,t),i=!0)},o(t){Wt(r.$$.fragment,t),i=!1},d(t){t&&M(n),ae(r,t)}}}function Eo(t){let e,n,r=!t[4]&&mo(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Ht(r,1)):(r=mo(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ao(t){return"change_bounds"===t.type?t:"set"===t.type?Ao(t.items[0]):null}function Co(t,e,n){let r,i,o,a,s,l,{json:c={}}=e,{templateContext:u}=e,{origJson:d}=e,{layoutParams:h}=e;const p=xt(fe),f=xt(Te);let g,m,v,y=!1,$=new Map,_=new Set,b=null,w=[],x=[],k=[],E=[],A=null,C=!1;function V(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=p.getJsonWithVars(r),o=p.getJsonWithVars(o);const s=eo(o),l=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(c=s,c.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var c}async function D(t){if(v===t)return;p.setRunning("stateChange",!0);const e=new Set(_);w.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,w=[]);let r=[];if(g){const t=g.getBoundingClientRect();r=k.map((e=>V(t,e,"out")))}E.forEach((t=>{$.set(t.id,t.node.getBoundingClientRect())})),x=[],k=[],E=[];const i=s.find((e=>e.state_id===t))||null;if(i?(n(7,v=t),null==a||a.setValue(v),n(8,A=i)):p.logError(ge(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Pt(),!g)return;const o=g.getBoundingClientRect();let l=x.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>V(o,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||_.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=r.concat(l),u=c.reduce(((t,e)=>Math.max(t,Gi(e.transitions))),0),d=E.filter((t=>$.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:o,beforeBbox:$.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:p.getJsonWithVars(Ao(t.transitions)),resolvePromise:t.resolvePromise})));n(6,w=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:u}))),...d]),$.clear(),p.setRunning("stateChange",!1)}function j(t){if(b&&b.has(t))return b.get(t);p.logError(ge(new Error("Missing state block with id"),{additional:{id:t}}))}function F(t){n(6,w=w.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return wt(Te,{registerInstance(t,e){b||(b=new Map),b.has(t)?p.logError(ge(new Error("Duplicate state with id"),{additional:{id:t}})):b.set(t,e)},unregisterInstance(t){null==b||b.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!g)return Promise.resolve();const a=V(g.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),s=Gi(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(6,w=[...w.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 x.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return k.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 E.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&$.has(t),registerChild(t){_.add(t)},unregisterChild(t){_.delete(t)}}),bt((()=>{m&&f.unregisterInstance(m)})),t.$$set=t=>{"json"in t&&n(0,c=t.json),"templateContext"in t&&n(1,u=t.templateContext),"origJson"in t&&n(2,d=t.origJson),"layoutParams"in t&&n(3,h=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(15,r=c.div_id||c.id),1&t.$$.dirty[0]&&(i=p.getJsonWithVars(c.default_state_id)),1&t.$$.dirty[0]&&n(16,o=c.state_id_variable),65536&t.$$.dirty[0]&&(a=o?p.getVariable(o,"string"):null),1&t.$$.dirty[0]&&c&&n(13,C=!1),32768&t.$$.dirty[0]&&(r?n(4,y=!1):(n(4,y=!0),p.logError(ge(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c&&(_=new Set),1&t.$$.dirty[0]&&n(14,s=c.states||[]),16384&t.$$.dirty[0]&&n(9,l=s.map((t=>t.div))),16384&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(4,y=!1):(n(4,y=!0),p.logError(ge(new Error('Empty "states" prop for div "state"'))))),36873&t.$$.dirty[0]&&c&&(m&&(f.unregisterInstance(m),n(12,m=void 0)),r&&!(null==h?void 0:h.fakeElement)&&(n(12,m=r),f.registerInstance(r,{setState:D,getChild:j}))),24576&t.$$.dirty[0]&&!C&&function(t){if(!C&&(n(13,C=!0),t.length)){const e=(null==a?void 0:a.getValue())||i;e?(n(7,v=e),n(8,A=t.find((t=>t.state_id===v))||null),A||p.logError(ge(new Error("Cannot find state for default_state_id"),{additional:{selectedId:v}}))):(n(8,A=t[0]),n(7,v=A.state_id)),a&&(a.setValue(v),a.subscribe((t=>{D(t)})))}}(s)},[c,u,d,h,y,g,w,v,A,l,function(t){const e=c.states;if(!e)return;const r=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})));n(0,c=Object.assign(Object.assign({},c),{states:r})),v&&n(8,A=r.find((t=>t.state_id===v))||null)},F,m,C,s,r,o,t=>F(t),t=>F(t),function(t){At[t?"unshift":"push"]((()=>{g=t,n(5,g)}))}]}const Vo={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Do}=C;function jo(t,e,n){const r=t.slice();return r[59]=e[n],r}function Fo(t){let e,n;return e=new jn({props:{cls:Oe("pager",Vo,t[11]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,parentOf:t[0].items,replaceItems:t[23],$$slots:{default:[No]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Oe("pager",Vo,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]),1&n[0]&&(r.parentOf=t[0].items),268120&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Po(t){var e;let n,r,i,o,a;return r=new ks({props:{div:t[59].json,templateContext:t[59].templateContext,origJson:t[59].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=B("div"),re(r.$$.fragment),i=L(),this.h()},l(t){n=et(t,"DIV",{class:!0});var e=X(n);ie(r.$$.fragment,e),i=it(e),e.forEach(M),this.h()},h(){W(n,"class",o=Vo.pager__item)},m(t,e){T(t,n,e),oe(r,n,null),N(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[59].json),16&e[0]&&(i.templateContext=t[59].templateContext),16&e[0]&&(i.origJson=t[59].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||(Ht(r.$$.fragment,t),a=!0)},o(t){Wt(r.$$.fragment,t),a=!1},d(t){t&&M(n),ae(r)}}}function Io(t){let e,r,i,o,a=!t[19]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){W(n,"class",r=Vo["pager__arrow-icon-path"]),W(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),W(e,"class",i=ai.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){W(e,"class",r=t[19]||"".concat(Vo.pager__arrow," ").concat(ai.arrow," ").concat(ai.arrow_left))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=H(e,"click",t[47]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function So(t){let e,r,i,o,a=!t[20]&&function(t){let e,n,r,i;return{c(){e=J("svg"),n=J("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(M),r.forEach(M),this.h()},h(){W(n,"class",r=Vo["pager__arrow-icon-path"]),W(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),W(e,"class",i=ai.arrow__icon),W(e,"xmlns","http://www.w3.org/2000/svg"),W(e,"width","32"),W(e,"height","32"),W(e,"viewBox","0 0 32 32"),W(e,"fill","none")},m(t,r){T(t,e,r),N(e,n)},d(t){t&&M(e)}}}();return{c(){e=B("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(M),this.h()},h(){W(e,"class",r=t[20]||"".concat(Vo.pager__arrow," ").concat(ai.arrow," ").concat(ai.arrow_right))},m(n,r){T(n,e,r),a&&a.m(e,null),i||(o=H(e,"click",t[48]),i=!0)},p:n,d(t){t&&M(e),a&&a.d(),i=!1,o()}}}function No(t){let e,n,r,i,o,a,s,l,c,u=Kt(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Po(jo(t,u,e));const h=t=>Wt(d[t],1,1,(()=>{d[t]=null}));let p=t[9]&&t[10]&&Io(t),f=t[8]&&t[10]&&So(t);return{c(){e=B("div");for(let t=0;t<d.length;t+=1)d[t].c();i=L(),p&&p.c(),o=L(),f&&f.c(),a=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=X(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(M),i=it(t),p&&p.l(t),o=it(t),f&&f.l(t),a=U(),this.h()},h(){W(e,"class",n=Vo.pager__items+" "+(t[18]?pe["root_restrict-scroll"]:"")),W(e,"style",r=ye(t[12]))},m(n,r){T(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[46](e),T(n,i,r),p&&p.m(n,r),T(n,o,r),f&&f.m(n,r),T(n,a,r),s=!0,l||(c=H(e,"scroll",t[22]),l=!0)},p(t,i){if(24&i[0]){let n;for(u=Kt(t[4]),n=0;n<u.length;n+=1){const r=jo(t,u,n);d[n]?(d[n].p(r,i),Ht(d[n],1)):(d[n]=Po(r),d[n].c(),Ht(d[n],1),d[n].m(e,null))}for(Lt(),n=u.length;n<d.length;n+=1)h(n);Ut()}(!s||262144&i[0]&&n!==(n=Vo.pager__items+" "+(t[18]?pe["root_restrict-scroll"]:"")))&&W(e,"class",n),(!s||4096&i[0]&&r!==(r=ye(t[12])))&&W(e,"style",r),t[9]&&t[10]?p?p.p(t,i):(p=Io(t),p.c(),p.m(o.parentNode,o)):p&&(p.d(1),p=null),t[8]&&t[10]?f?f.p(t,i):(f=So(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Ht(d[t]);s=!0}},o(t){d=d.filter(Do);for(let t=0;t<d.length;t+=1)Wt(d[t]);s=!1},d(n){n&&(M(e),M(i),M(o),M(a)),z(d,n),t[46](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function Oo(t){let e,n,r=!t[5]&&Fo(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),32&n[0]&&Ht(r,1)):(r=Fo(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function To(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=n,D=n,j=n,F=n,P=n,I=n;var S,N,O,T,M,z;t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>I()));let{json:B={}}=e,{templateContext:J}=e,{origJson:R}=e,{layoutParams:L}=e;const U=xt(fe),H=U.genId("pager"),W=U.getCustomization("pagerLeftClass"),q=U.getCustomization("pagerRightClass"),G=U.isDesktop;p(t,G,(t=>r(41,w=t)));const K=Un((function(){if(!Z)return;const t=function(){const t=Array.from(X.children),e=X.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===nt?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:Q}();t!==Q&&r(34,Q=t)}),50);let Y,X,Z=!1,Q=0,tt=0,et=!1,nt="horizontal",rt="",it="",ot="";function at(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===nt,i=X.children[t],o=n?"offsetLeft":"offsetTop",a=n?"left":"top";X.scroll({[a]:i[o],behavior:e}),r(34,Q=t)}function st(t){let e=Q-1;e<0&&(e="ring"===t?c.length-1:Q),at(e)}function lt(t){let e=Q+1;e>c.length-1&&(e="ring"===t?0:Q),at(e)}return _t((()=>{if(r(33,Z=!0),Boolean(document.getElementById("".concat(H,"-tab-0")))){const t=[...X.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(H,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(H,"-tab-").concat(e))}})),bt((()=>{r(33,Z=!1),Y&&(U.unregisterInstance(Y),r(32,Y=void 0))})),t.$$set=t=>{"json"in t&&r(0,B=t.json),"templateContext"in t&&r(1,J=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]&&B&&r(38,it=""),1&t.$$.dirty[0]&&(r(17,i=U.getDerivedFromVars(B.layout_mode)),D(),D=h(i,(t=>r(42,x=t)))),1&t.$$.dirty[0]&&(r(16,o=U.getDerivedFromVars(B.orientation)),P(),P=h(o,(t=>r(45,A=t)))),1&t.$$.dirty[0]&&(r(15,a=U.getDerivedFromVars(B.item_spacing)),F(),F=h(a,(t=>r(44,E=t)))),1&t.$$.dirty[0]&&(r(14,s=U.getDerivedFromVars(B.paddings)),j(),j=h(s,(t=>r(43,k=t)))),1&t.$$.dirty[0]&&(r(13,l=U.getDerivedFromVars(B.restrict_parent_scroll)),I(),I=h(l,(t=>r(18,C=t)))),3&t.$$.dirty[0]&&r(4,c=(Array.isArray(B.items)&&B.items||[]).map((t=>{let e=t,n=J;return({templateContext:n,json:e}=U.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),2048&t.$$.dirty[1]&&(x?"percentage"!==x.type&&"fixed"!==x.type?(r(35,et=!0),U.logError(ge(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(35,et=!1):(r(35,et=!0),U.logError(ge(new Error('Empty "layout_mode" prop for div "pager"'))))),16416&t.$$.dirty[1]&&r(36,nt=Pr(A,nt)),8192&t.$$.dirty[1]){const t=null==E?void 0:E.value;t&&Be(t)&&r(37,rt=$e(t||0))}if(4224&t.$$.dirty[1]&&r(38,it=Je(k,it)),32&t.$$.dirty[1]&&r(40,u="horizontal"===nt?"grid-auto-columns":"grid-auto-rows"),2080374785&t.$$.dirty[0]|2145&t.$$.dirty[1])if("fixed"===(null==x?void 0:x.type)){const t=_e("horizontal"===nt?((null===r(26,S=B.paddings)||void 0===S?void 0:S.left)||0)+((null===r(27,N=B.paddings)||void 0===N?void 0:N.right)||0):((null===r(28,O=B.paddings)||void 0===O?void 0:O.top)||0)+((null===r(29,T=B.paddings)||void 0===T?void 0:T.bottom)||0)),e=null===r(30,M=x.neighbour_page_width)||void 0===M?void 0:M.value;r(39,ot=e?"calc(100% + ".concat(t," - 2 * ").concat(_e(e)," - 2 * ").concat(rt,")"):"100%")}else if("percentage"===(null==x?void 0:x.type)){const t=null===r(31,z=x.page_width)||void 0===z?void 0:z.value;r(39,ot="".concat(Number(t),"%"))}960&t.$$.dirty[1]&&r(12,d={"grid-gap":rt,padding:it,[u]:ot}),32&t.$$.dirty[1]&&r(11,f={orientation:nt}),16&t.$$.dirty[1]&&r(5,g=et),32&t.$$.dirty[0]|1028&t.$$.dirty[1]&&r(10,m=w&&Z&&!g),8&t.$$.dirty[1]&&r(9,v=Q>0),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(8,y=Q+1<c.length),16&t.$$.dirty[0]|8&t.$$.dirty[1]&&function(t,e){const n=B.id;if(n){const r=new Map(b);$(_,b=r.set(n,{instId:H,size:t,currentItem:e,scrollToPagerItem:at}),b)}}(c.length,Q),8&t.$$.dirty[1]&&function(t){var e;if(t===tt)return;tt=t;const n=U.getJsonWithVars(null===(e=c[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&U.execAnyActions(n)}(Q),25&t.$$.dirty[0]|2&t.$$.dirty[1]&&B&&(Y&&(U.unregisterInstance(Y),r(32,Y=void 0)),B.id&&!(null==L?void 0:L.fakeElement)&&(r(32,Y=B.id),U.registerInstance(B.id,{setCurrentItem(t){if(t<0||t>c.length-1)throw new Error('Item is out of range in "set-current-item" action');at(t)},setPreviousItem:st,setNextItem:lt})))},r(7,_=U.getStore("pagers")),V(),V=h(_,(t=>r(50,b=t))),[B,J,R,L,c,g,X,_,y,v,m,f,d,l,s,a,o,i,C,W,q,G,K,function(t){r(0,B=Object.assign(Object.assign({},B),{items:t.filter(Ee)}))},st,lt,S,N,O,T,M,z,Y,Z,Q,et,nt,rt,it,ot,u,w,x,k,E,A,function(t){At[t?"unshift":"push"]((()=>{X=t,r(6,X)}))},()=>st("clamp"),()=>lt("clamp")]}const Mo={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 zo(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const i=r[45]===r[12].currentItem;return r[43]=i,r}function Bo(t){let e,n=Kt(Array(t[12].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Jo(zo(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=Kt(Array(t[12].size)),o=0;o<n.length;o+=1){const a=zo(t,n,o);r[o]?r[o].p(a,i):(r[o]=Jo(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 Jo(t){let e,n,r,i,o,a,l,c;function u(){return t[36](t[45])}return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=Oe("indicator__item",Mo,{active:t[43]})+" "+pe.root__clickable),W(e,"role","tab"),W(e,"id",r=t[12].instId+"-tab-"+t[45]),W(e,"aria-controls",i=t[12].instId+"-panel-"+t[45]),W(e,"aria-selected",o=t[43]?"true":"false"),W(e,"tabindex",a=t[43]?0:-1)},m(n,r){T(n,e,r),l||(c=[H(e,"click",u),H(e,"keydown",t[24])],l=!0)},p(s,l){t=s,4096&l[0]&&n!==(n=Oe("indicator__item",Mo,{active:t[43]})+" "+pe.root__clickable)&&W(e,"class",n),4096&l[0]&&r!==(r=t[12].instId+"-tab-"+t[45])&&W(e,"id",r),4096&l[0]&&i!==(i=t[12].instId+"-panel-"+t[45])&&W(e,"aria-controls",i),4096&l[0]&&o!==(o=t[43]?"true":"false")&&W(e,"aria-selected",o),4096&l[0]&&a!==(a=t[43]?0:-1)&&W(e,"tabindex",a)},d(t){t&&M(e),l=!1,s(c)}}}function Ro(t){let e,n,r,i,o=t[12]&&Bo(t);return{c(){e=B("div"),n=B("div"),o&&o.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0,role:!0});var i=X(n);o&&o.l(i),i.forEach(M),r.forEach(M),this.h()},h(){W(n,"class",r=Mo.indicator__items),W(n,"role","tablist"),lt(n,"margin","default"===t[6]?"0 ".concat($e(Math.max(0,t[4].width-t[5].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",$e(t[5].width)),lt(n,"--divkit-indicator-inactive-height",$e(t[5].height)),lt(n,"--divkit-indicator-inactive-border-radius",$e(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",$e(t[4].width)),lt(n,"--divkit-indicator-active-height",$e(t[4].height)),lt(n,"--divkit-indicator-active-border-radius",$e(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($e((t[7]-t[5].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?$e(t[9]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?$e((t[8]-1)*t[9]):""),W(e,"class",i=Mo.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=Bo(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&lt(n,"margin","default"===t[6]?"0 ".concat($e(Math.max(0,t[4].width-t[5].width)/2)):""),32&e[0]&&lt(n,"--divkit-indicator-inactive-width",$e(t[5].width)),32&e[0]&&lt(n,"--divkit-indicator-inactive-height",$e(t[5].height)),32&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",$e(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",$e(t[4].width)),16&e[0]&&lt(n,"--divkit-indicator-active-height",$e(t[4].height)),16&e[0]&&lt(n,"--divkit-indicator-active-border-radius",$e(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($e((t[7]-t[5].width)/2)):""),576&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?$e(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]?$e((t[8]-1)*t[9]):"")},d(n){n&&M(e),o&&o.d(),t[37](null),t[38](null)}}}function Lo(t){let e,n;return e=new jn({props:{cls:Oe("indicator",Mo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ro]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Oe("indicator",Mo,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]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const Uo=["rounded_rectangle","circle"];function Ho(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,j=n,F=n,P=n;var I,S;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((()=>j())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P()));let{json:N={}}=e,{templateContext:O}=e,{origJson:T}=e,{layoutParams:M}=e;const z=xt(fe);let B,J,R,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},U={width:10,height:10,borderRadius:5,background:"#33919cb5"},H="default",W=15,q=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function Y(t){R.scrollToPagerItem(t),await Pt();const e=J.querySelector(".".concat(Mo.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]&&N&&(r(6,H="default"),r(7,W=15),r(8,q=10),r(9,G=5),r(4,L={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(5,U={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(22,i=z.getDerivedFromVars(N.shape)),D(),D=h(i,(t=>r(32,_=t)))),1&t.$$.dirty[0]&&(r(21,o=z.getDerivedFromVars(N.active_item_color)),C(),C=h(o,(t=>r(30,y=t)))),1&t.$$.dirty[0]&&(r(20,a=z.getDerivedFromVars(N.inactive_item_color)),V(),V=h(a,(t=>r(31,$=t)))),1&t.$$.dirty[0]&&(r(19,s=z.getDerivedFromVars(N.active_item_size)),j(),j=h(s,(t=>r(33,b=t)))),1&t.$$.dirty[0]&&(r(18,l=z.getDerivedFromVars(N.active_shape)),P(),P=h(l,(t=>r(35,x=t)))),1&t.$$.dirty[0]&&(r(17,c=z.getDerivedFromVars(N.inactive_shape)),F(),F=h(c,(t=>r(34,w=t)))),1&t.$$.dirty[0]&&(r(16,u=z.getDerivedFromVars(N.space_between_centers)),E(),E=h(u,(t=>r(28,m=t)))),1&t.$$.dirty[0]&&(r(15,d=z.getDerivedFromVars(N.items_placement)),A(),A=h(d,(t=>r(29,v=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(x&&r(4,L=cr({type:"shape_drawable",shape:x},Uo,L)),w&&r(5,U=cr({type:"shape_drawable",shape:w},Uo,U)),!x&&!w&&_)){const t=Pn(b,1.3);r(5,U=cr({type:"shape_drawable",shape:_,color:U.background},Uo,U)),r(5,U.background=we($,1,U.background),U),r(4,L=Object.assign(Object.assign({},U),{width:U.width*t,height:U.height*t,borderRadius:U.borderRadius*t,background:L.background})),r(4,L.background=we(y,1,L.background),L)}if(905970624&t.$$.dirty[0])if(!v||"default"!==v.type&&"stretch"!==v.type)r(6,H="default"),m&&r(7,W=Re(m.value,W));else if(r(6,H=v.type),"default"===H)r(7,W=Re(null===r(25,I=v.space_between_centers)||void 0===I?void 0:I.value,W));else if("stretch"===H){const t=v;r(8,q=Pn(t.max_visible_items,q)),r(9,G=Re(null===r(26,S=t.item_spacing)||void 0===S?void 0:S.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(N.pager_id&&t.has(N.pager_id)&&(r(12,R=t.get(N.pager_id)),await Pt(),J)){const t=J.children[R.currentItem];if(t){const e=t.offsetLeft;B.scroll({left:e-B.clientWidth/2,behavior:"smooth"})}}}(g),64&t.$$.dirty[0]&&r(13,f={placement:H})},r(14,p=z.getStore("pagers")),k(),k=h(p,(t=>r(27,g=t))),[N,O,T,M,L,U,H,W,q,G,B,J,R,f,p,d,u,c,l,s,a,o,i,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(t.which===_i)Y(n-1<0?n:n-1);else if(t.which===bi)Y(n+1>=e?n:n+1);else if(t.which===wi)Y(0);else{if(t.which!==xi)return;Y(e-1)}t.preventDefault()},I,S,g,m,v,y,$,_,b,w,x,t=>K(t),function(t){At[t?"unshift":"push"]((()=>{J=t,r(11,J)}))},function(t){At[t?"unshift":"push"]((()=>{B=t,r(10,B)}))}]}const Wo={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 qo(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&we(t.text_color)||"#000",i=In(t.font_weight);if(un(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:$e(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 Go(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Ko="function"==typeof BigInt;function Yo(t){return Ko?BigInt(t):Number(t)}const Xo=Yo("9223372036854775807"),Zo=Yo("-9223372036854775808");function Qo(t){const e=Yo(t);if(e>Xo||e<Zo)throw new Error("Integer overflow.");return e}const ta=Qo(0);function ea(t){let e=t;return e<0&&(e=-e),e}function na(t){let e=0;return t>0?e=1:t<0&&(e=-1),Qo(e)}class ra{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=de(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 ia={string:class extends ra{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends ra{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 ra{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>Xo||t<Zo)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 ra{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 ra{convertValue(t){if("string"!=typeof t||!xe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends ra{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}},dict:class extends ra{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 ra{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 oa(t,e,n){if(!(e in ia))throw new Error("Unsupported variable type");return new ia[e](t,n)}function aa(t,e,n){const r=t.slice();return r[80]=e[n],r}function sa(t,e,n){const r=t.slice();return r[80]=e[n],r}function la(t){let e,n;return e=new jn({props:{cls:Oe("slider",Wo,t[25]),style:t[26],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ga,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};33554432&n[0]&&(r.cls=Oe("slider",Wo,t[25])),67108864&n[0]&&(r.style=t[26]),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]),411033584&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ca(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=Wo.slider__tick+" "+Wo.slider__tick_active),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){524288&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function ua(t){let e,n;return{c(){e=B("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(M),this.h()},h(){W(e,"class",n=Wo.slider__tick+" "+Wo.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[80])},m(t,n){T(t,e,n)},p(t,n){1048576&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&M(e)}}}function da(t){let e,n,r,i,o;return{c(){e=B("div"),n=B("div"),r=R(t[14]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);r=rt(a,t[14]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;W(n,"class",i=Wo["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[11])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[11])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[11])||void 0===s?void 0:s.textColor)||"#000"),W(e,"class",o=Wo["slider__thumb-text"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;16384&e[0]&&at(r,t[14]),2048&e[0]&&lt(n,"font-size",(null===(i=t[11])||void 0===i?void 0:i.fontSize)||"1em"),2048&e[0]&&lt(n,"font-weight",(null===(o=t[11])||void 0===o?void 0:o.fontWeight)||""),2048&e[0]&&lt(n,"color",(null===(a=t[11])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&M(e)}}}function ha(t){let e,n,r=t[12]&&pa(t);return{c(){e=B("div"),r&&r.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);r&&r.l(n),n.forEach(M),this.h()},h(){W(e,"class",n=Wo.slider__thumb+" "+Wo.slider__thumb_secondary),lt(e,"border-radius",$e(t[8].borderRadius)),lt(e,"background",t[8].background),lt(e,"box-shadow",t[8].boxShadow||"")},m(t,n){T(t,e,n),r&&r.m(e,null)},p(t,n){t[12]?r?r.p(t,n):(r=pa(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),256&n[0]&&lt(e,"border-radius",$e(t[8].borderRadius)),256&n[0]&&lt(e,"background",t[8].background),256&n[0]&&lt(e,"box-shadow",t[8].boxShadow||"")},d(t){t&&M(e),r&&r.d()}}}function pa(t){let e,n,r,i,o;return{c(){e=B("div"),n=B("div"),r=R(t[15]),this.h()},l(i){e=et(i,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);r=rt(a,t[15]),a.forEach(M),o.forEach(M),this.h()},h(){var r,a,s;W(n,"class",i=Wo["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===(s=t[12])||void 0===s?void 0:s.textColor)||"#000"),W(e,"class",o=Wo["slider__thumb-text"]+" "+Wo["slider__thumb-text_secondary"])},m(t,i){T(t,e,i),N(e,n),N(n,r)},p(t,e){var i,o,a;32768&e[0]&&at(r,t[15]),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 fa(t){let e,n,r,i,o;return{c(){e=B("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(){W(e,"type","range"),W(e,"class",n=t[18]?Wo.slider__input:"".concat(Wo.slider__input," ").concat(Wo.slider__input_secondary)),W(e,"min",t[5]),W(e,"max",t[6]),W(e,"step","1"),e.value=r=t[18]?t[14]:t[15],W(e,"aria-label",t[22])},m(n,r){T(n,e,r),i||(o=[H(e,"input",t[72]),H(e,"mousedown",(function(){l(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),H(e,"touchstart",(function(){l(t[16]?t[41]:null)&&(t[16]?t[41]:null).apply(this,arguments)})),H(e,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),H(e,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],i=!0)},p(i,o){t=i,262144&o[0]&&n!==(n=t[18]?Wo.slider__input:"".concat(Wo.slider__input," ").concat(Wo.slider__input_secondary))&&W(e,"class",n),32&o[0]&&W(e,"min",t[5]),64&o[0]&&W(e,"max",t[6]),311296&o[0]&&r!==(r=t[18]?t[14]:t[15])&&(e.value=r),4194304&o[0]&&W(e,"aria-label",t[22])},d(t){t&&M(e),i=!1,s(o)}}}function ga(t){let e,n,r,i,o,a,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E=Kt(t[19]),A=[];for(let e=0;e<E.length;e+=1)A[e]=ca(sa(t,E,e));let C=Kt(t[20]),V=[];for(let e=0;e<C.length;e+=1)V[e]=ua(aa(t,C,e));let D=t[11]&&da(t),j=t[16]&&ha(t),F=t[16]&&fa(t);return{c(){e=B("div"),n=B("div"),r=B("div"),o=L(),a=B("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=B("div"),D&&D.c(),g=L(),j&&j.c(),m=L(),v=B("input"),_=L(),F&&F.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var s=X(n);r=et(s,"DIV",{class:!0}),X(r).forEach(M),o=it(s),a=et(s,"DIV",{class:!0}),X(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=X(p);D&&D.l(l),l.forEach(M),g=it(s),j&&j.l(s),m=it(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),_=it(s),F&&F.l(s),s.forEach(M),i.forEach(M),this.h()},h(){W(r,"class",i=Wo.slider__track),lt(r,"height",$e(t[9].height)),lt(r,"border-radius",$e(t[9].borderRadius)),lt(r,"background",t[9].background),lt(r,"box-shadow",t[9].boxShadow||""),W(a,"class",c=Wo["slider__active-track"]),lt(a,"left",(100*t[27]).toFixed(2)+"%"),lt(a,"width",(100*t[28]).toFixed(2)+"%"),lt(a,"height",$e(t[10].height)),lt(a,"border-radius",$e(t[10].borderRadius)),lt(a,"background",t[10].background),lt(a,"box-shadow",t[10].boxShadow||""),W(p,"class",f=Wo.slider__thumb),lt(p,"border-radius",$e(t[7].borderRadius)),lt(p,"background",t[7].background),lt(p,"box-shadow",t[7].boxShadow||""),W(v,"type","range"),W(v,"class",y=t[18]?"".concat(Wo.slider__input," ").concat(Wo.slider__input_secondary):Wo.slider__input),W(v,"min",t[5]),W(v,"max",t[6]),W(v,"step","1"),v.value=$=t[18]?t[15]:t[14],W(v,"aria-label",t[21]),W(n,"class",b=Wo["slider__tracks-inner"]),W(e,"class",w=Wo["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),j&&j.m(n,null),N(n,m),N(n,v),t[71](v),N(n,_),F&&F.m(n,null),t[73](n),x||(k=[H(v,"input",t[70]),H(v,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),H(v,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],x=!0)},p(e,i){if(t=e,512&i[0]&&lt(r,"height",$e(t[9].height)),512&i[0]&&lt(r,"border-radius",$e(t[9].borderRadius)),512&i[0]&&lt(r,"background",t[9].background),512&i[0]&&lt(r,"box-shadow",t[9].boxShadow||""),134217728&i[0]&&lt(a,"left",(100*t[27]).toFixed(2)+"%"),268435456&i[0]&&lt(a,"width",(100*t[28]).toFixed(2)+"%"),1024&i[0]&&lt(a,"height",$e(t[10].height)),1024&i[0]&&lt(a,"border-radius",$e(t[10].borderRadius)),1024&i[0]&&lt(a,"background",t[10].background),1024&i[0]&&lt(a,"box-shadow",t[10].boxShadow||""),524288&i[0]){let e;for(E=Kt(t[19]),e=0;e<E.length;e+=1){const r=sa(t,E,e);A[e]?A[e].p(r,i):(A[e]=ca(r),A[e].c(),A[e].m(n,d))}for(;e<A.length;e+=1)A[e].d(1);A.length=E.length}if(1048576&i[0]){let e;for(C=Kt(t[20]),e=0;e<C.length;e+=1){const r=aa(t,C,e);V[e]?V[e].p(r,i):(V[e]=ua(r),V[e].c(),V[e].m(n,h))}for(;e<V.length;e+=1)V[e].d(1);V.length=C.length}t[11]?D?D.p(t,i):(D=da(t),D.c(),D.m(p,null)):D&&(D.d(1),D=null),128&i[0]&&lt(p,"border-radius",$e(t[7].borderRadius)),128&i[0]&&lt(p,"background",t[7].background),128&i[0]&&lt(p,"box-shadow",t[7].boxShadow||""),t[16]?j?j.p(t,i):(j=ha(t),j.c(),j.m(n,m)):j&&(j.d(1),j=null),262144&i[0]&&y!==(y=t[18]?"".concat(Wo.slider__input," ").concat(Wo.slider__input_secondary):Wo.slider__input)&&W(v,"class",y),32&i[0]&&W(v,"min",t[5]),64&i[0]&&W(v,"max",t[6]),311296&i[0]&&$!==($=t[18]?t[15]:t[14])&&(v.value=$),2097152&i[0]&&W(v,"aria-label",t[21]),t[16]?F?F.p(t,i):(F=fa(t),F.c(),F.m(n,null)):F&&(F.d(1),F=null)},d(n){n&&M(e),z(A,n),z(V,n),D&&D.d(),j&&j.d(),t[71](null),F&&F.d(),t[73](null),x=!1,s(k)}}}function ma(t){let e,n,r,i,o=!t[13]&&la(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=H(window,"resize",t[43]),r=!0)},p(t,n){t[13]?o&&(Lt(),Wt(o,1,1,(()=>{o=null})),Ut()):o?(o.p(t,n),8192&n[0]&&Ht(o,1)):(o=la(t),o.c(),Ht(o,1),o.m(e.parentNode,e))},i(t){n||(Ht(o),n=!0)},o(t){Wt(o),n=!1},d(t){t&&M(e),o&&o.d(t),r=!1,i()}}}const va={width:10,height:10,borderRadius:5,background:"#000"},ya=["rounded_rectangle","circle"],$a=["rounded_rectangle"];function _a(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 ba(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,j,F,P,I,S,N,O,T,M,z,B,J,R,L=n,U=n,H=n,W=n,q=n,G=n,K=n,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n;var rt,it,ot,at;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt()));let{json:st={}}=e,{templateContext:lt}=e,{origJson:ct}=e,{layoutParams:ut}=e;const dt=xt(fe),ht=xt(en);let pt,ft,gt,mt,vt,yt,$t=!1,wt=0,kt=100,Et=va,Ct=Et,Vt=va,Dt=va,jt=null,Ft=null,Pt=yt,It="",St="",Nt=!1,Ot=Go(B||0,wt,kt),Tt=Go(z||0,wt,kt);function Mt(t,e){const n=Number(t.target.value);$t===("first"===e)?(r(15,Tt=n),s.setValue(n)):(r(14,Ot=n),a.setValue(n))}let zt=!1;function Bt(){if(!gt)return;const t=kt-wt,e=(null==jt?void 0:jt.width)||0,n=(null==Ft?void 0:Ft.width)||0;Math.max(e,n)*t>=(null==gt?void 0:gt.clientWidth)?zt||(dt.logError(ge(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Jt=Un(Bt,50);return _t((()=>{Bt()})),bt((()=>{pt&&(dt.unregisterFocusable(pt),r(48,pt=void 0))})),t.$$set=t=>{"json"in t&&r(0,st=t.json),"templateContext"in t&&r(1,lt=t.templateContext),"origJson"in t&&r(2,ct=t.origJson),"layoutParams"in t&&r(3,ut=t.layoutParams)},t.$$.update=()=>{if(129&t.$$.dirty[0]&&st&&(r(7,Et=va),r(8,Ct=Et),r(9,Vt=va),r(10,Dt=va),r(49,jt=null),r(50,Ft=null),r(11,yt=void 0),r(12,Pt=void 0),r(21,It=""),r(22,St="")),1&t.$$.dirty[0]&&r(55,i=st.thumb_value_variable),1&t.$$.dirty[0]&&r(16,o=st.thumb_secondary_value_variable),16777216&t.$$.dirty[1]&&(r(23,a=i&&dt.getVariable(i,"integer")||oa("temp","integer",0)),tt(),tt=h(a,(t=>r(67,B=t)))),65536&t.$$.dirty[0]&&(r(24,s=o&&dt.getVariable(o,"integer")||oa("temp","integer",0)),Q(),Q=h(s,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(40,l=dt.getDerivedFromVars(st.min_value)),nt(),nt=h(l,(t=>r(69,R=t)))),1&t.$$.dirty[0]&&(r(39,c=dt.getDerivedFromVars(st.max_value)),et(),et=h(c,(t=>r(68,J=t)))),1&t.$$.dirty[0]&&(r(38,u=dt.getDerivedFromVars(st.thumb_style)),Z(),Z=h(u,(t=>r(65,M=t)))),1&t.$$.dirty[0]&&(r(37,d=dt.getDerivedFromVars(st.thumb_secondary_style)),X(),X=h(d,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(36,p=dt.getDerivedFromVars(st.track_inactive_style)),Y(),Y=h(p,(t=>r(63,O=t)))),1&t.$$.dirty[0]&&(r(35,f=dt.getDerivedFromVars(st.track_active_style)),K(),K=h(f,(t=>r(62,N=t)))),1&t.$$.dirty[0]&&(r(34,g=dt.getDerivedFromVars(st.tick_mark_active_style)),G(),G=h(g,(t=>r(61,S=t)))),1&t.$$.dirty[0]&&(r(33,m=dt.getDerivedFromVars(st.tick_mark_inactive_style)),q(),q=h(m,(t=>r(60,I=t)))),1&t.$$.dirty[0]&&(r(32,v=dt.getDerivedFromVars(st.thumb_text_style)),W(),W=h(v,(t=>r(59,P=t)))),1&t.$$.dirty[0]&&(r(31,y=dt.getDerivedFromVars(st.thumb_secondary_text_style)),H(),H=h(y,(t=>r(58,F=t)))),1&t.$$.dirty[0]&&(r(30,$=dt.getDerivedFromVars(st.accessibility)),U(),U=h($,(t=>r(57,j=t)))),1&t.$$.dirty[0]&&(r(29,_=dt.getDerivedFromVars(st.secondary_value_accessibility)),L(),L=h(_,(t=>r(56,D=t)))),96&t.$$.dirty[0]|192&t.$$.dirty[2]&&(r(5,wt=qe(R,wt)),r(6,kt=qe(J,kt)),Bt()),16480&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Go(B||0,wt,kt);t!==Ot&&r(14,Ot=t)}if(32864&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=Go(z||0,wt,kt);t!==Tt&&r(15,Tt=t)}if(128&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(7,Et=cr(M,ya,Et)),128&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(8,Ct=cr(T,ya,Et)),512&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(9,Vt=cr(O,$a,Vt)),1024&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(10,Dt=cr(N,$a,Dt)),1073741824&t.$$.dirty[1]){let t=cr(S,ya,va);t!==va&&r(49,jt=t)}if(114784&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(jt?(r(19,mt=o?_a(Math.min(Ot,Tt),Math.max(Ot,Tt)+1,wt,kt,!0):_a(wt,Ot,wt,kt,!0)),Bt()):r(19,mt=[])),536870912&t.$$.dirty[1]){let t=cr(I,ya,va);t!==va&&r(50,Ft=t)}if(114784&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Ft?(r(20,vt=o?_a(Math.min(Ot,Tt),Math.max(Ot,Tt)+1,wt,kt,!1):_a(Ot+1,kt+1,wt,kt,!0)),Bt()):r(20,vt=[])),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,yt=qo(P,yt)),2048&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(12,Pt=qo(F,yt)),67108864&t.$$.dirty[1]&&((null==j?void 0:j.description)?r(21,It=j.description):dt.logError(ge(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),65536&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==D?void 0:D.description)?r(22,St=D.description):o&&dt.logError(ge(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),9856&t.$$.dirty[0]){let t=!1;ht.hasAction()?(dt.logError(ge(new Error('Cannot show "slider" inside component with action'))),t=!0):Et===va?(dt.logError(ge(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===va?(dt.logError(ge(new Error('Missing "track_active_style" in slider'))),t=!0):Vt===va&&(dt.logError(ge(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Nt&&r(13,Nt=t)}384&t.$$.dirty[0]&&r(54,b=$e(Math.max(...[Et.width,Ct.width,0].filter(Be)))),384&t.$$.dirty[0]&&r(53,w=$e(Math.max(...[Et.height,Ct.height,0].filter(Be)))),16480&t.$$.dirty[0]&&r(52,x=(Ot-wt)/(kt-wt)),98400&t.$$.dirty[0]&&r(51,k=o?(Tt-wt)/(kt-wt):void 0),3145728&t.$$.dirty[1]&&r(28,E=void 0!==k?Math.abs(k-x):x),3145728&t.$$.dirty[1]&&r(27,A=void 0!==k?Math.min(k,x):0),6528&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(26,C={"--divkit-slider-thumb-width":$e(Et.width),"--divkit-slider-thumb-height":$e(Et.height),"--divkit-slider-thumb-secondary-width":$e(Ct.width),"--divkit-slider-thumb-secondary-height":$e(Ct.height),"--divkit-slider-text-offset-x":(null===r(44,rt=null==yt?void 0:yt.offset)||void 0===rt?void 0:rt.x)?_e(yt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,it=null==yt?void 0:yt.offset)||void 0===it?void 0:it.y)?_e(yt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,ot=null==Pt?void 0:Pt.offset)||void 0===ot?void 0:ot.x)?_e(Pt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,at=null==Pt?void 0:Pt.offset)||void 0===at?void 0:at.y)?_e(Pt.offset.y):void 0,"--divkit-slider-tick-active-width":jt?$e(jt.width):void 0,"--divkit-slider-tick-active-height":jt?$e(jt.height):void 0,"--divkit-slider-tick-active-border-radius":jt?$e(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":Ft?$e(Ft.width):void 0,"--divkit-slider-tick-inactive-height":Ft?$e(Ft.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ft?$e(Ft.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Ft?void 0:Ft.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Ft?void 0:Ft.boxShadow)||void 0,"--divkit-slider-max-thumb-width":b,"--divkit-slider-max-thumb-height":w,"--divkit-slider-track-part":x,"--divkit-slider-track-secondary-part":k}),25&t.$$.dirty[0]|131072&t.$$.dirty[1]&&st&&ft&&(pt&&(dt.unregisterFocusable(pt),r(48,pt=void 0)),st.id&&!(null==ut?void 0:ut.fakeElement)&&(r(48,pt=st.id),dt.registerFocusable(st.id,{focus(){ft&&ft.focus()}})))},r(25,V={}),[st,lt,ct,ut,ft,wt,kt,Et,Ct,Vt,Dt,yt,Pt,Nt,Ot,Tt,o,gt,$t,mt,vt,It,St,a,s,V,C,A,E,_,$,y,v,m,g,f,p,d,u,c,l,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=gt.getBoundingClientRect(),a=(i-o.left)/o.width,s=(kt-wt)*a,l=Math.round(Go(s,wt,kt));r(18,$t=l<(Ot+Tt)/2==Ot<Tt)},Mt,Jt,rt,it,ot,at,pt,jt,Ft,k,x,w,b,i,D,j,F,P,I,S,N,O,T,M,z,B,J,R,t=>Mt(t,"first"),function(t){At[t?"unshift":"push"]((()=>{ft=t,r(4,ft)}))},t=>Mt(t,"second"),function(t){At[t?"unshift":"push"]((()=>{gt=t,r(17,gt)}))}]}const wa={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 xa(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=xa(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 ka(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 Ea{constructor(t){this.char=t}}class Aa{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ca{constructor(t){ka(this,"filters",new Map),ka(this,"destructedValue",[]),ka(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 Ea)t+=n.char;else if(n instanceof Aa)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 Aa&&!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(ge(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 Aa(null,this.filters.get(e.key),e.placeholder):new Ea(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=xa(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 Aa&&++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 Aa&&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 Aa&&(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 Aa);)++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 Aa&&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 Aa&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof Aa);)++e;return e}}class Va extends Ca{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Da(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 ja extends Ca{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}),Da(this,"currencyFormatter",new Intl.NumberFormat),Da(this,"decimalSeparator","."),Da(this,"localeDigits",{}),Da(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(ge(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=xa(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 Fa=3;function Pa(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 Ia(t,e){if(t.nodeType!==Fa)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=Pa(r);if(e<=i)return void Ia(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 Sa(t){let e,n;return e=new jn({props:{cls:Oe("input",wa,t[17]),style:t[16],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ma,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};131072&n[0]&&(r.cls=Oe("input",wa,t[17])),65536&n[0]&&(r.style=t[16]),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]),315120&n[0]|32&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Na(t){let e,n,r,i,o;return{c(){e=B("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(){W(e,"type",t[9]),W(e,"inputmode",t[10]),W(e,"class",n=Oe("input__input",wa,{"has-custom-focus":t[90],singleline:!0})),W(e,"autocomplete","off"),W(e,"autocapitalize","off"),W(e,"aria-label",t[11]),W(e,"style",r=ye(t[15])),W(e,"placeholder",t[18]),e.value=t[5]},m(n,r){T(n,e,r),t[80](e),i||(o=[H(e,"input",t[37]),H(e,"mousedown",(function(){l(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),H(e,"click",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),H(e,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),H(e,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],i=!0)},p(i,o){t=i,512&o[0]&&W(e,"type",t[9]),1024&o[0]&&W(e,"inputmode",t[10]),268435456&o[2]&&n!==(n=Oe("input__input",wa,{"has-custom-focus":t[90],singleline:!0}))&&W(e,"class",n),2048&o[0]&&W(e,"aria-label",t[11]),32768&o[0]&&r!==(r=ye(t[15]))&&W(e,"style",r),262144&o[0]&&W(e,"placeholder",t[18]),32&o[0]&&e.value!==t[5]&&(e.value=t[5])},d(n){n&&M(e),t[80](null),i=!1,s(o)}}}function Oa(t){let e,n,r,i,o,a,c,u,d,h,p,f,g=!t[7]&&t[18]&&Ta(t);return{c(){e=B("span"),g&&g.c(),n=L(),r=B("span"),i=R("​"),a=L(),c=B("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var o=X(e);g&&g.l(o),n=it(o),r=et(o,"SPAN",{"aria-hidden":!0,style:!0});var s=X(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}),X(c).forEach(M),o.forEach(M),this.h()},h(){W(r,"aria-hidden","true"),W(r,"style",o=ye(t[14])),W(c,"class",u=Oe("input__input",wa,{"has-custom-focus":t[90],multiline:!0})),W(c,"autocapitalize","off"),W(c,"contenteditable","true"),W(c,"aria-label",t[11]),W(c,"style",d=ye(t[15])),void 0===t[7]&&It((()=>t[79].call(c))),W(e,"class",h=wa["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[78](c),void 0!==t[7]&&(c.innerText=t[7]),p||(f=[H(c,"input",t[79]),H(c,"input",t[37]),H(c,"paste",Ra),H(c,"mousedown",(function(){l(t[36]?t[38]:void 0)&&(t[36]?t[38]:void 0).apply(this,arguments)})),H(c,"click",(function(){l(t[36]?t[39]:void 0)&&(t[36]?t[39]:void 0).apply(this,arguments)})),H(c,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),H(c,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],p=!0)},p(i,a){!(t=i)[7]&&t[18]?g?g.p(t,a):(g=Ta(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),16384&a[0]&&o!==(o=ye(t[14]))&&W(r,"style",o),268435456&a[2]&&u!==(u=Oe("input__input",wa,{"has-custom-focus":t[90],multiline:!0}))&&W(c,"class",u),2048&a[0]&&W(c,"aria-label",t[11]),32768&a[0]&&d!==(d=ye(t[15]))&&W(c,"style",d),128&a[0]&&t[7]!==c.innerText&&(c.innerText=t[7])},d(n){n&&M(e),g&&g.d(),t[78](null),p=!1,s(f)}}}function Ta(t){let e,n,r,i;return{c(){e=B("div"),n=R(t[18]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var i=X(e);n=rt(i,t[18]),i.forEach(M),this.h()},h(){W(e,"class",r=wa.input__placeholder),W(e,"aria-hidden","true"),W(e,"style",i=ye(t[15]))},m(t,r){T(t,e,r),N(e,n)},p(t,r){262144&r[0]&&at(n,t[18]),32768&r[0]&&i!==(i=ye(t[15]))&&W(e,"style",i)},d(t){t&&M(e)}}}function Ma(t){let e;function n(t,e){return t[6]?Oa:Na}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 za(t){let e,n,r=!t[8]&&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[8]?r&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),256&n[0]&&Ht(r,1)):(r=Sa(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}const Ba="undefined"!=typeof document&&"inputMode"in document.createElement("input"),Ja={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};function Ra(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function La(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,j,F,P,I,S,N,O,T,M,z,B,J,R,L,U,H,W,q,G,K,Y,X,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,gt=n,mt=n;var vt;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())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt()));let{json:yt={}}=e,{templateContext:$t}=e,{origJson:wt}=e,{layoutParams:kt}=e;const Et=xt(fe);let Ct,Vt,Dt,jt,Ft,It=!1,St=null,Nt="",Ot="",Tt=!1,Mt="",zt=12,Bt="",Jt="",Rt="#000",Lt="",Ut="left",Ht="center",Wt="multi_line_text",qt="text",Gt="",Kt=null,Yt="",Xt="",Zt="";function Qt(t){Vt instanceof HTMLInputElement?r(4,Vt.selectionStart=r(4,Vt.selectionEnd=t,Vt),Vt):Ia(Vt,t)}async function te(){if(!Vt||!St)return;St.overrideRawValue(S),s.set(St.rawValue),$(a,I=r(5,Nt=r(7,Ot=St.value)),I);const t=St.cursorPosition;await Pt(),document.activeElement===Vt&&Qt(t)}return _t((()=>{Vt&&St&&S&&(St.overrideRawValue(S),$(a,I=r(5,Nt=r(7,Ot=St.value)),I))})),bt((()=>{Ct&&(Et.unregisterFocusable(Ct),r(41,Ct=void 0))})),t.$$set=t=>{"json"in t&&r(0,yt=t.json),"templateContext"in t&&r(1,$t=t.templateContext),"origJson"in t&&r(2,wt=t.origJson),"layoutParams"in t&&r(3,kt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&yt&&(r(43,Mt=""),r(44,zt=12),r(45,Dt=void 0),r(46,Bt=""),r(47,jt=void 0),r(49,Rt="#000"),r(50,Lt=""),r(51,Ut="left"),r(52,Ht="center"),r(53,Wt="multi_line_text"),r(9,qt="text"),r(10,Ft=void 0)),1&t.$$.dirty[0]&&r(58,i=yt.text_variable),1&t.$$.dirty[0]|512&t.$$.dirty[1]&&r(59,o=null===r(40,vt=yt.mask)||void 0===vt?void 0:vt.raw_text_variable),134217728&t.$$.dirty[1]&&(r(13,a=i&&Et.getVariable(i,"string")||oa("temp","string","")),Z(),Z=h(a,(t=>r(60,I=t)))),268435456&t.$$.dirty[1]&&(r(12,s=o&&Et.getVariable(o,"string")||oa("temp","string","")),Q(),Q=h(s,(t=>r(61,S=t)))),1&t.$$.dirty[0]&&(r(35,l=Et.getDerivedFromVars(yt.hint_text)),gt(),gt=h(l,(t=>r(77,Y=t)))),1&t.$$.dirty[0]&&(r(34,c=Et.getDerivedFromVars(yt.hint_color)),ft(),ft=h(c,(t=>r(76,K=t)))),1&t.$$.dirty[0]&&(r(33,u=Et.getDerivedFromVars(yt.font_size)),pt(),pt=h(u,(t=>r(75,G=t)))),1&t.$$.dirty[0]&&(r(32,d=Et.getDerivedFromVars(yt.font_weight)),ht(),ht=h(d,(t=>r(74,q=t)))),1&t.$$.dirty[0]&&(r(31,p=Et.getDerivedFromVars(yt.font_family)),dt(),dt=h(p,(t=>r(73,W=t)))),1&t.$$.dirty[0]&&(r(30,f=Et.getDerivedFromVars(yt.line_height)),ut(),ut=h(f,(t=>r(72,H=t)))),1&t.$$.dirty[0]&&(r(29,g=Et.getDerivedFromVars(yt.letter_spacing)),ct(),ct=h(g,(t=>r(71,U=t)))),1&t.$$.dirty[0]&&(r(28,m=Et.getDerivedFromVars(yt.text_color)),lt(),lt=h(m,(t=>r(70,L=t)))),1&t.$$.dirty[0]&&(r(27,v=Et.getDerivedFromVars(yt.highlight_color)),st(),st=h(v,(t=>r(69,R=t)))),1&t.$$.dirty[0]&&(r(26,y=Et.getDerivedFromVars(yt.text_alignment_horizontal)),at(),at=h(y,(t=>r(68,J=t)))),1&t.$$.dirty[0]&&(r(25,_=Et.getDerivedFromVars(yt.text_alignment_vertical)),ot(),ot=h(_,(t=>r(67,B=t)))),1&t.$$.dirty[0]&&(r(24,b=Et.getDerivedFromVars(yt.keyboard_type)),it(),it=h(b,(t=>r(66,z=t)))),1&t.$$.dirty[0]&&(r(23,w=Et.getDerivedFromVars(yt.mask)),rt(),rt=h(w,(t=>r(65,M=t)))),1&t.$$.dirty[0]&&(r(22,x=Et.getDerivedFromVars(yt.max_visible_lines)),nt(),nt=h(x,(t=>r(64,T=t)))),1&t.$$.dirty[0]&&(r(21,k=Et.getDerivedFromVars(yt.paddings)),et(),et=h(k,(t=>r(63,O=t)))),1&t.$$.dirty[0]&&(r(20,E=Et.getDerivedFromVars(yt.accessibility)),tt(),tt=h(E,(t=>r(62,N=t)))),1&t.$$.dirty[0]&&(r(19,A=Et.getDerivedFromVars(yt.select_all_on_focus)),mt(),mt=h(A,(t=>r(36,X=t)))),134217728&t.$$.dirty[1]&&(i?r(8,Tt=!1):(r(8,Tt=!0),Et.logError(ge(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=M)?void 0:e.type)?r(42,St=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,Et.logError,St)):"currency"===(null==e?void 0:e.type)&&r(42,St=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new ja(t.locale,e)}(e,Et.logError,St)),St&&te()),32&t.$$.dirty[0]|536872960&t.$$.dirty[1]&&(St||Nt===I||r(5,Nt=r(7,Ot=I))),1073743872&t.$$.dirty[1]&&St&&St.rawValue!==S&&te(),32768&t.$$.dirty[2]&&r(18,C=Y),4096&t.$$.dirty[1]|16384&t.$$.dirty[2]&&r(43,Mt=we(K,1,Mt)),8192&t.$$.dirty[1]|8192&t.$$.dirty[2]&&r(44,zt=Pn(G,zt)),16384&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(r(45,Dt=Sn(q,Dt)),r(46,Bt=W&&"string"==typeof W?Et.typefaceProvider(W,{fontWeight:Dt||400}):"")),8192&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=H;un(t)&&r(47,jt=t/zt)}var e;512&t.$$.dirty[2]&&ze(U)&&r(48,Jt=$e(U)),262144&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(49,Rt=we(L,1,Rt)),524288&t.$$.dirty[1]|128&t.$$.dirty[2]&&r(50,Lt=we(R,1,Lt)),1048576&t.$$.dirty[1]|64&t.$$.dirty[2]&&r(51,Ut=Bn(J,Ut)),2097152&t.$$.dirty[1]|32&t.$$.dirty[2]&&r(52,Ht=Jn(B,Ht)),24&t.$$.dirty[2]&&(z&&z in Ja&&(r(9,qt=Ja[z]),r(53,Wt=z)),"currency"===(null==M?void 0:M.type)&&(r(9,qt=Ba?"text":"tel"),r(10,Ft="decimal"))),4194304&t.$$.dirty[1]&&r(6,V="multi_line_text"===Wt),16850944&t.$$.dirty[1]|6&t.$$.dirty[2]&&(un(T)?r(54,Gt="calc(".concat(T*(jt||1.25)*(zt/10)+"em"," + ").concat(_e(Re(null==O?void 0:O.top,0)+Re(null==O?void 0:O.bottom,0)),")")):r(54,Gt=""),r(55,Kt=Ke(O||void 0,Kt)),r(56,Yt=Kt?Me({top:(Number(Kt.top)||0)/zt*10,right:(Number(Kt.right)||0)/zt*10,bottom:(Number(Kt.bottom)||0)/zt*10,left:(Number(Kt.left)||0)/zt*10}):""),r(57,Xt=Kt?Me({top:(Number(Kt.top)||0)/zt*10,bottom:(Number(Kt.bottom)||0)/zt*10}):"")),1&t.$$.dirty[2]&&((null==N?void 0:N.description)?r(11,Zt=N.description):Et.logError(ge(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|3670016&t.$$.dirty[1]&&r(17,D={"highlight-color":Boolean(Lt),multiline:V,"alignment-horizontal":Ut,"alignment-vertical":Ht}),9424896&t.$$.dirty[1]&&r(16,j={"--divkit-input-hint-color":Mt,"--divkit-input-highlight-color":Lt,"--divkit-input-line-height":jt,"font-weight":Dt,"font-family":Bt,"letter-spacing":Jt,color:Rt,"max-height":Gt}),33562624&t.$$.dirty[1]&&r(15,F={"font-size":$e(zt),padding:Yt}),67117056&t.$$.dirty[1]&&r(14,P={"font-size":$e(zt),padding:Xt}),25&t.$$.dirty[0]|1024&t.$$.dirty[1]&&Vt&&yt&&(Ct&&(Et.unregisterFocusable(Ct),r(41,Ct=void 0)),yt.id&&!(null==kt?void 0:kt.fakeElement)&&(r(41,Ct=yt.id),Et.registerFocusable(yt.id,{focus(){Vt&&Vt.focus()}})))},[yt,$t,wt,kt,Vt,Nt,V,Ot,Tt,qt,Ft,Zt,s,a,P,F,j,D,C,A,E,k,x,w,b,_,y,v,m,g,f,p,d,u,c,l,X,function(t){let e=(V?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Nt!==e&&(r(5,Nt=r(7,Ot=e)),a.setValue(e),St&&async function(){if(!Vt||!St)return;St.applyChangeFrom(Nt,Vt instanceof HTMLInputElement?null===Vt.selectionEnd?void 0:Vt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const 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+=Pa(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+=Pa(t.childNodes[e]);o instanceof HTMLElement&&("DIV"===o.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Fa||"BR"===o.tagName)&&++n,o=t}return n}catch(t){return 0}}(Vt)),s.set(St.rawValue),$(a,I=r(5,Nt=r(7,Ot=St.value)),I);const t=St.cursorPosition;await Pt(),document.activeElement===Vt&&Qt(t)}())},function(){It=!1,setTimeout((()=>{It=!0}),250)},function(){if(!It)if(Vt instanceof HTMLInputElement)Vt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Vt),t&&(t.removeAllRanges(),t.addRange(e))}},vt,Ct,St,Mt,zt,Dt,Bt,jt,Jt,Rt,Lt,Ut,Ht,Wt,Gt,Kt,Yt,Xt,i,o,I,S,N,O,T,M,z,B,J,R,L,U,H,W,q,G,K,Y,function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(4,Vt)}))},function(){Ot=this.innerText,r(7,Ot),r(42,St),r(5,Nt),r(60,I)},function(t){At[t?"unshift":"push"]((()=>{Vt=t,r(4,Vt)}))}]}const Ua={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 Ha(t,e,n){const r=t.slice();return r[53]=e[n],r}function Wa(t){let e,n;return e=new jn({props:{cls:Oe("select",Ua,t[13]),style:t[12],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ga,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Oe("select",Ua,t[13])),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]),33558256&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function qa(t){let e,n,r,i,o=(t[53].text||t[53].value)+"";return{c(){e=B("option"),n=R(o),this.h()},l(t){e=et(t,"OPTION",{class:!0});var r=X(e);n=rt(r,o),r.forEach(M),this.h()},h(){W(e,"class",r=Ua.select__option),e.__value=i=t[53].value,st(e,e.__value)},m(t,r){T(t,e,r),N(e,n)},p(t,r){64&r[0]&&o!==(o=(t[53].text||t[53].value)+"")&&at(n,o),64&r[0]&&i!==(i=t[53].value)&&(e.__value=i,st(e,e.__value))},d(t){t&&M(e)}}}function Ga(t){let e,n,r,i,o,a,c,u,d,h,p=(t[5]||t[25]||"​")+"",f=Kt(t[6]),g=[];for(let e=0;e<f.length;e+=1)g[e]=qa(Ha(t,f,e));return{c(){e=B("span"),n=R(p),o=L(),a=B("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=X(e);n=rt(r,p),r.forEach(M),o=it(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var i=X(a);for(let t=0;t<g.length;t+=1)g[t].l(i);i.forEach(M),this.h()},h(){W(e,"class",r=Ua["select__select-text"]),W(e,"style",i=ye(t[11])),W(e,"aria-hidden","true"),W(a,"class",c=Oe("select__select",Ua,{"has-custom-focus":t[50]})),W(a,"aria-label",t[9]),W(a,"style",u=ye(t[10])),void 0===t[7]&&It((()=>t[48].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[47](a),ct(a,t[7],!0),d||(h=[H(a,"change",t[48]),H(a,"focus",(function(){l(t[51])&&t[51].apply(this,arguments)})),H(a,"blur",(function(){l(t[52])&&t[52].apply(this,arguments)}))],d=!0)},p(r,o){if(t=r,33554464&o[0]&&p!==(p=(t[5]||t[25]||"​")+"")&&at(n,p),2048&o[0]&&i!==(i=ye(t[11]))&&W(e,"style",i),64&o[0]){let e;for(f=Kt(t[6]),e=0;e<f.length;e+=1){const n=Ha(t,f,e);g[e]?g[e].p(n,o):(g[e]=qa(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}524288&o[1]&&c!==(c=Oe("select__select",Ua,{"has-custom-focus":t[50]}))&&W(a,"class",c),512&o[0]&&W(a,"aria-label",t[9]),1024&o[0]&&u!==(u=ye(t[10]))&&W(a,"style",u),192&o[0]&&ct(a,t[7])},d(n){n&&(M(e),M(o),M(a)),z(g,n),t[47](null),d=!1,s(h)}}}function Ka(t){let e,n,r=!t[8]&&Wa(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),256&n[0]&&Ht(r,1)):(r=Wa(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function Ya(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,j,F,P,I,S=n,N=n,O=n,T=n,M=n,z=n,B=n,J=n,R=n,L=n,U=n;t.$$.on_destroy.push((()=>S())),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((()=>B())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U()));let{json:H={}}=e,{templateContext:W}=e,{origJson:q}=e,{layoutParams:G}=e;const K=xt(fe);let Y,X,Z,Q,tt=!1,et="",nt=null,rt="",it="rgba(0,0,0,.45)",ot=12,at="",st="",lt="#000",ct="";return bt((()=>{Y&&(K.unregisterFocusable(Y),r(26,Y=void 0))})),t.$$set=t=>{"json"in t&&r(0,H=t.json),"templateContext"in t&&r(1,W=t.templateContext),"origJson"in t&&r(2,q=t.origJson),"layoutParams"in t&&r(3,G=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&H&&(r(27,nt=null),r(29,it="rgba(0,0,0,.45)"),r(30,ot=12),r(31,Z=void 0),r(32,at=""),r(33,Q=void 0),r(34,st=""),r(35,lt="#000"),r(9,ct="")),1&t.$$.dirty[0]&&r(36,i=H.value_variable),1&t.$$.dirty[0]&&r(37,o=H.options),64&t.$$.dirty[1]&&r(6,a=Array.isArray(o)&&o.filter((t=>"string"==typeof t.value))||[]),32&t.$$.dirty[1]&&(r(24,s=i&&K.getVariable(i,"string")||oa("temp","string","")),L(),L=h(s,(t=>r(7,P=t)))),1&t.$$.dirty[0]&&(r(23,l=K.getDerivedFromVars(H.paddings)),R(),R=h(l,(t=>r(46,F=t)))),1&t.$$.dirty[0]&&(r(22,c=K.getDerivedFromVars(H.hint_text)),U(),U=h(c,(t=>r(25,I=t)))),1&t.$$.dirty[0]&&(r(21,u=K.getDerivedFromVars(H.hint_color)),J(),J=h(u,(t=>r(45,j=t)))),1&t.$$.dirty[0]&&(r(20,d=K.getDerivedFromVars(H.font_size)),B(),B=h(d,(t=>r(44,D=t)))),1&t.$$.dirty[0]&&(r(19,p=K.getDerivedFromVars(H.font_weight)),z(),z=h(p,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(18,f=K.getDerivedFromVars(H.font_family)),M(),M=h(f,(t=>r(42,C=t)))),1&t.$$.dirty[0]&&(r(17,g=K.getDerivedFromVars(H.line_height)),T(),T=h(g,(t=>r(41,A=t)))),1&t.$$.dirty[0]&&(r(16,m=K.getDerivedFromVars(H.letter_spacing)),O(),O=h(m,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(15,v=K.getDerivedFromVars(H.text_color)),N(),N=h(v,(t=>r(39,k=t)))),1&t.$$.dirty[0]&&(r(14,y=K.getDerivedFromVars(H.accessibility)),S(),S=h(y,(t=>r(38,x=t)))),64&t.$$.dirty[0]&&(Array.isArray(a)&&a.length||K.logError(ge(new Error('Empty selection "items" in "select"')))),32&t.$$.dirty[1]&&(i?r(8,tt=!1):(r(8,tt=!0),K.logError(ge(new Error('Missing "value_variable" in "select"'))))),192&t.$$.dirty[0]){const t=a.find((t=>t.value===P));t?r(5,et="string"==typeof t.text?t.text:t.value):(r(5,et=""),P&&K.logError(ge(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1073741824&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(30,ot=Pn(D,ot)),1207959552&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(r(27,nt=Ke(F||void 0,nt)),r(28,rt=nt?Me({top:(Number(nt.top)||0)/ot*10,right:(Number(nt.right)||0)/ot*10,bottom:(Number(nt.bottom)||0)/ot*10,left:(Number(nt.left)||0)/ot*10}):"")),536870912&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(29,it=we(j,1,it)),6145&t.$$.dirty[1]&&(r(31,Z=Sn(V,Z)),r(32,at=C&&"string"==typeof C?K.typefaceProvider(C,{fontWeight:Z||400}):"")),1073741824&t.$$.dirty[0]|1024&t.$$.dirty[1]){const t=A;un(t)&&r(33,Q=t/ot)}1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&ze(E)&&r(34,st=$e(E/ot*10)),272&t.$$.dirty[1]&&r(35,lt=we(k,1,lt)),128&t.$$.dirty[1]&&((null==x?void 0:x.description)?r(9,ct=x.description):K.logError(ge(new Error('Missing accessibility "description" for select'),{level:"warn"}))),32&t.$$.dirty[0]&&r(13,$={hint:!et}),536870912&t.$$.dirty[0]|19&t.$$.dirty[1]&&r(12,_={"--divkit-input-hint-color":it,"font-weight":Z,"font-family":at,color:lt}),1342177280&t.$$.dirty[0]|12&t.$$.dirty[1]&&r(11,b={padding:rt,"font-size":$e(ot),"line-height":Q,"letter-spacing":st}),1073741824&t.$$.dirty[0]|12&t.$$.dirty[1]&&r(10,w={"font-size":$e(ot),"line-height":Q,"letter-spacing":st}),67108889&t.$$.dirty[0]&&H&&X&&(Y&&(K.unregisterFocusable(Y),r(26,Y=void 0)),H.id&&!(null==G?void 0:G.fakeElement)&&(r(26,Y=H.id),K.registerFocusable(H.id,{focus(){X&&X.focus()}})))},[H,W,q,G,X,et,a,P,tt,ct,w,b,_,$,y,v,m,g,f,p,d,u,c,l,s,I,Y,nt,rt,it,ot,Z,at,Q,st,lt,i,o,x,k,E,A,C,V,D,j,F,function(t){At[t?"unshift":"push"]((()=>{X=t,r(4,X)}))},function(){P=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),s.set(P),r(6,a),r(37,o),r(0,H)}]}const Xa={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function Za(t,e,n){const r=t.slice();return r[46]=e[n],r}function Qa(t,e,n){const r=t.slice();return r[46]=e[n],r}function ts(t){let e,n;return e=new jn({props:{cls:Oe("video",Xa,t[13]),customActions:"video",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ss]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Oe("video",Xa,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]),16352&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function es(t){let e,n,r,i,o,a=Kt(t[6]),l=[];for(let e=0;e<a.length;e+=1)l[e]=is(Za(t,a,e));return{c(){e=B("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=X(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(M),this.h()},h(){W(e,"class",n=Xa.video__video),W(e,"style",r=ye(t[12])),e.playsInline=!0,e.loop=t[7],e.autoplay=t[8],e.muted=t[9],W(e,"poster",t[10])},m(n,r){T(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[40](e),i||(o=[H(e,"timeupdate",t[21]),H(e,"ended",t[22]),H(e,"playing",t[23]),H(e,"pause",t[24]),H(e,"waiting",t[25]),H(e,"error",t[26])],i=!0)},p(t,n){if(67108928&n[0]){let r;for(a=Kt(t[6]),r=0;r<a.length;r+=1){const i=Za(t,a,r);l[r]?l[r].p(i,n):(l[r]=is(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=ye(t[12]))&&W(e,"style",r),128&n[0]&&(e.loop=t[7]),256&n[0]&&(e.autoplay=t[8]),512&n[0]&&(e.muted=t[9]),1024&n[0]&&W(e,"poster",t[10])},d(n){n&&M(e),z(l,n),t[40](null),i=!1,s(o)}}}function ns(t){let e,n,r,i,o,a,l,c="".concat(t[11],"%"),u=Kt(t[6]),d=[];for(let e=0;e<u.length;e+=1)d[e]=as(Qa(t,u,e));return{c(){e=B("div"),n=B("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=X(e);n=et(r,"VIDEO",{class:!0,style:!0,poster:!0});var i=X(n);for(let t=0;t<d.length;t+=1)d[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){W(n,"class",r=Xa.video__video),W(n,"style",i=ye(t[12])),n.playsInline=!0,n.loop=t[7],n.autoplay=t[8],n.muted=t[9],W(n,"poster",t[10]),W(e,"class",o=Xa["video__aspect-wrapper"]),lt(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[39](n),a||(l=[H(n,"timeupdate",t[21]),H(n,"ended",t[22]),H(n,"playing",t[23]),H(n,"pause",t[24]),H(n,"waiting",t[25]),H(n,"error",t[26])],a=!0)},p(t,r){if(67108928&r[0]){let e;for(u=Kt(t[6]),e=0;e<u.length;e+=1){const i=Qa(t,u,e);d[e]?d[e].p(i,r):(d[e]=as(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=ye(t[12]))&&W(n,"style",i),128&r[0]&&(n.loop=t[7]),256&r[0]&&(n.autoplay=t[8]),512&r[0]&&(n.muted=t[9]),1024&r[0]&&W(n,"poster",t[10]),2048&r[0]&&c!==(c="".concat(t[11],"%"))&&lt(e,"padding-bottom",c)},d(n){n&&M(e),z(d,n),t[39](null),a=!1,s(l)}}}function rs(t){let e,n,r,i,o;return{c(){e=B("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[46].src)||W(e,"src",n),W(e,"type",r=t[46].type)},m(n,r){T(n,e,r),i||(o=H(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!u(e.src,n=t[46].src)&&W(e,"src",n),64&i[0]&&r!==(r=t[46].type)&&W(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function is(t){let e,n=t[46],r=rs(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[46])?(r.d(1),r=rs(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function os(t){let e,n,r,i,o;return{c(){e=B("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[46].src)||W(e,"src",n),W(e,"type",r=t[46].type)},m(n,r){T(n,e,r),i||(o=H(e,"error",t[26]),i=!0)},p(t,i){64&i[0]&&!u(e.src,n=t[46].src)&&W(e,"src",n),64&i[0]&&r!==(r=t[46].type)&&W(e,"type",r)},d(t){t&&M(e),i=!1,o()}}}function as(t){let e,n=t[46],r=os(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[46])?(r.d(1),r=os(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&M(e),r.d(t)}}}function ss(t){let e;function n(t,e){return t[13].aspect?ns:es}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 ls(t){let e,n,r=!t[4]&&ts(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&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),16&n[0]&&Ht(r,1)):(r=ts(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function cs(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,D=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())),t.$$.on_destroy.push((()=>D()));let{json:j={}}=e,{templateContext:F}=e,{origJson:P}=e,{layoutParams:I}=e;const S=xt(fe);let N,O,T,M,z=!1,B=!1,J=[],R=!1,L=!1,U=!1,H="fit",W="0";function q(t){B?B=!1:O&&r(5,O.currentTime=Number(t)/1e3,O)}function G(){null==O||O.pause()}function K(){const t=null==O?void 0:O.play();t&&t.catch((t=>{S.logError(ge(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return bt((()=>{N&&(S.unregisterInstance(N),r(27,N=void 0)),M&&(M(),r(29,M=void 0))})),t.$$set=t=>{"json"in t&&r(0,j=t.json),"templateContext"in t&&r(1,F=t.templateContext),"origJson"in t&&r(2,P=t.origJson),"layoutParams"in t&&r(3,I=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&j&&(r(7,R=!1),r(8,L=!1),r(9,U=!1),r(10,T=void 0),r(28,H="fit")),1&t.$$.dirty[0]&&r(31,i=j.elapsed_time_variable),1&t.$$.dirty[1]&&r(30,o=i&&S.getVariable(i,"integer")||oa("temp","integer",0)),1610612736&t.$$.dirty[0]&&o&&(M&&M(),r(29,M=o.subscribe(q))),1&t.$$.dirty[0]&&(r(20,a=S.getDerivedFromVars(j.video_sources)),D(),D=h(a,(t=>r(38,w=t)))),1&t.$$.dirty[0]&&(r(19,s=S.getDerivedFromVars(j.repeatable)),V(),V=h(s,(t=>r(37,b=t)))),1&t.$$.dirty[0]&&(r(18,l=S.getDerivedFromVars(j.autostart)),x(),x=h(l,(t=>r(32,m=t)))),1&t.$$.dirty[0]&&(r(17,c=S.getDerivedFromVars(j.muted)),C(),C=h(c,(t=>r(36,_=t)))),1&t.$$.dirty[0]&&(r(16,u=S.getDerivedFromVars(j.preview)),A(),A=h(u,(t=>r(35,$=t)))),1&t.$$.dirty[0]&&(r(15,d=S.getDerivedFromVars(j.scale)),E(),E=h(d,(t=>r(34,y=t)))),1&t.$$.dirty[0]&&(r(14,p=S.getDerivedFromVars(j.aspect)),k(),k=h(p,(t=>r(33,v=t)))),64&t.$$.dirty[0]|128&t.$$.dirty[1]&&(r(6,(e=w,n=J,J=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)),J.length?r(4,z=!1):(r(4,z=!0),S.logError(ge(new Error('Missing "video_sources" in "video"'))))),128&t.$$.dirty[0]|64&t.$$.dirty[1]&&r(7,R=Rn(b,R)),256&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(8,L=Rn(m,L)),512&t.$$.dirty[0]|32&t.$$.dirty[1]&&r(9,U=Rn(_,U)),1024&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(10,T="string"==typeof $?Mr($):T),268435456&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(28,H=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(y)||H),4&t.$$.dirty[1]){const t=null==v?void 0:v.ratio;t&&un(t)?r(11,W=(100/Number(t)).toFixed(2)):r(11,W="0")}134217753&t.$$.dirty[0]&&j&&(N&&(S.unregisterInstance(N),r(27,N=void 0)),!j.id||z||(null==I?void 0:I.fakeElement)||(r(27,N=j.id),S.registerInstance(j.id,{pause:G,start:K}))),33&t.$$.dirty[0]|2&t.$$.dirty[1]&&j&&m&&O&&K(),2048&t.$$.dirty[0]&&r(13,f={aspect:"0"!==W}),268435456&t.$$.dirty[0]&&r(12,g={"object-fit":H})},[j,F,P,I,z,O,J,R,L,U,T,W,g,f,p,d,u,c,l,s,a,function(){O&&(B=!0,o.setValue(Math.floor(1e3*O.currentTime)))},function(){const t=S.getJsonWithVars(j.end_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(j.resume_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(j.pause_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(j.buffering_actions);S.execAnyActions(t)},function(){const t=S.getJsonWithVars(j.fatal_actions);S.execAnyActions(t)},N,H,M,o,i,m,v,y,$,_,b,w,function(t){At[t?"unshift":"push"]((()=>{O=t,r(5,O)}))},function(t){At[t?"unshift":"push"]((()=>{O=t,r(5,O)}))}]}function us(t,e,n){const r=t.slice();return r[15]=e[n],r}function ds(t){let e,n;return e=new jn({props:{json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[vs]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(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||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function hs(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=B("template"),n=new dt(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=X(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 dt(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 dt(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=Zt(r,[512&i&&t[9]]))},d(t){t&&M(e)}}}function ps(t){let e,r,i=t[6],o=gs(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])?(Lt(),Wt(o,1,1,n),Ut(),o=gs(t),o.c(),Ht(o,1),o.m(e.parentNode,e)):o.p(t,r)},i(t){r||(Ht(o),r=!0)},o(t){Wt(o),r=!1},d(t){t&&M(e),o.d(t)}}}function fs(t){let e,n;return e=new ks({props:{layoutParams:t[10],div:t[15].json,templateContext:t[15].templateContext,origJson:t[15].origJson}}),{c(){re(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,r){oe(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||(Ht(e.$$.fragment,t),n=!0)},o(t){Wt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function gs(t){let e,n,r=Kt(t[11]),i=[];for(let e=0;e<r.length;e+=1)i[e]=fs(us(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=Kt(t[11]),a=0;a<r.length;a+=1){const o=us(t,r,a);i[a]?(i[a].p(o,n),Ht(i[a],1)):(i[a]=fs(o),i[a].c(),Ht(i[a],1),i[a].m(e.parentNode,e))}for(Lt(),a=r.length;a<i.length;a+=1)o(a);Ut()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ht(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 ms(t){let e,n,r,o=t[8]&&hs(t),a=!t[5]&&t[6]&&ps(t),s=[t[0].custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=i(l,s[t]);return{c(){e=B(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=X(e);o&&o.l(i),n=it(i),a&&a.l(i),i.forEach(M),this.h()},h(){Y(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=hs(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),!t[5]&&t[6]?a?(a.p(t,r),96&r&&Ht(a,1)):(a=ps(t),a.c(),Ht(a,1),a.m(e,null)):a&&(Lt(),Wt(a,1,1,(()=>{a=null})),Ut()),Y(t[4].element)(e,l=Zt(s,[1&r&&(t[0].custom_props||{})]))},i(t){r||(Ht(a),r=!0)},o(t){Wt(a),r=!1},d(n){n&&M(e),o&&o.d(),a&&a.d(),t[13](null)}}}function vs(t){let e,r,i=t[4].element,o=t[4].element&&ms(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=ms(t),i=t[4].element,o.c(),o.m(e.parentNode,e)):o.p(t,n):(o=ms(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 ys(t){let e,n,r=t[4]&&ds(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&&Ht(r,1)):(r=ds(t),r.c(),Ht(r,1),r.m(e.parentNode,e)):r&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function $s(t,e,n){let r,i,o;var a;let{json:s={}}=e,{templateContext:l}=e,{origJson:c}=e,{layoutParams:u}=e;const d=xt(fe);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(ge(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(ge(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){At[t?"unshift":"push"]((()=>{h=t,n(7,h)}))}]}const _s={};function bs(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=ht(i,o(t))),{c(){e&&re(e.$$.fragment),n=U()},l(t){e&&ie(e.$$.fragment,t),n=U()},m(t,i){e&&oe(e,t,i),T(t,n,i),r=!0},p(t,r){if(32&r&&i!==(i=t[5])){if(e){Lt();const t=e;Wt(t.$$.fragment,1,0,(()=>{ae(t,1)})),Ut()}i?(e=ht(i,o(t)),re(e.$$.fragment),Ht(e.$$.fragment,1),oe(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&&Ht(e.$$.fragment,t),r=!0)},o(t){e&&Wt(e.$$.fragment,t),r=!1},d(t){t&&M(n),e&&ae(e,t)}}}function ws(t){let e,n,r=t[5]&&bs(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&&Ht(r,1)):(r=bs(t),r.c(),Ht(r,1),r.m(e.parentNode,e)):r&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut())},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}function xs(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const s=xt(fe);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&&_s[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&&_s[l.type]||void 0),!u))){let t;t=(null==l?void 0:l.type)&&s.hasTemplate(l.type)?"Recursive template":"Unknown component",s.logError(ge(new Error(t),{additional:{component:(null==l?void 0:l.type)||"<missing>"}}))}},[r,o,a,l,c,u,i]}_s.text=class extends ce{constructor(t){super(),se(this,t,nr,er,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},_s.container=class extends ce{constructor(t){super(),se(this,t,jr,Ar,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},_s.separator=class extends ce{constructor(t){super(),se(this,t,Or,Nr,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}},_s.image=Gr,_s.gif=Gr,_s.grid=class extends ce{constructor(t){super(),se(this,t,ii,ri,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},_s.gallery=class extends ce{constructor(t){super(),se(this,t,yi,vi,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},_s.tabs=class extends ce{constructor(t){super(),se(this,t,Ni,Si,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1,-1])}},_s.state=class extends ce{constructor(t){super(),se(this,t,Co,Eo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},_s.pager=class extends ce{constructor(t){super(),se(this,t,To,Oo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},_s.indicator=class extends ce{constructor(t){super(),se(this,t,Ho,Lo,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},_s.slider=class extends ce{constructor(t){super(),se(this,t,ba,ma,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},_s.input=class extends ce{constructor(t){super(),se(this,t,La,za,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},_s.select=class extends ce{constructor(t){super(),se(this,t,Ya,Ka,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},_s.video=class extends ce{constructor(t){super(),se(this,t,cs,ls,d,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},_s.custom=class extends ce{constructor(t){super(),se(this,t,$s,ys,d,{json:0,templateContext:1,origJson:2,layoutParams:3})}};const ks=class extends ce{constructor(t){super(),se(this,t,xs,ws,d,{div:0,templateContext:6,origJson:1,layoutParams:2})}},Es={"root-svg-filters":"divkit-dc22b"};function As(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 Cs(t){let e,n,r,i=Kt([...Object.keys(t[0])]),o=[];for(let e=0;e<i.length;e+=1)o[e]=Fs(As(t,i,e));return{c(){e=J("svg"),n=J("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=X(e);n=nt(r,"defs",{});var i=X(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(M),r.forEach(M),this.h()},h(){W(e,"class",r=Es["root-svg-filters"]),W(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=Kt([...Object.keys(t[0])]),r=0;r<i.length;r+=1){const a=As(t,i,r);o[r]?o[r].p(a,e):(o[r]=Fs(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 Vs(t){let e,n;return{c(){e=J("feBlend"),this.h()},l(t){e=nt(t,"feBlend",{in2:!0,mode:!0}),X(e).forEach(M),this.h()},h(){W(e,"in2","SourceGraphic"),W(e,"mode",n=t[3])},m(t,n){T(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&W(e,"mode",n)},d(t){t&&M(e)}}}function Ds(t){let e;return{c(){e=J("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),X(e).forEach(M),this.h()},h(){W(e,"in2","SourceGraphic"),W(e,"operator","arithmetic"),W(e,"k1","1"),W(e,"k2","0"),W(e,"k3","0"),W(e,"k4","0")},m(t,n){T(t,e,n)},p:n,d(t){t&&M(e)}}}function js(t){let e,n;return{c(){e=J("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0}),X(e).forEach(M),this.h()},h(){W(e,"in2","SourceGraphic"),W(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])&&W(e,"operator",n)},d(t){t&&M(e)}}}function Fs(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?js:"multiply"===t[3]?Ds:Vs}let a=o(t),s=a(t);return{c(){e=J("filter"),n=J("feFlood"),s.c(),this.h()},l(t){e=nt(t,"filter",{id:!0});var r=X(e);n=nt(r,"feFlood",{"flood-color":!0}),X(n).forEach(M),s.l(r),r.forEach(M),this.h()},h(){W(n,"flood-color",r=t[2]),W(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])&&W(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]])&&W(e,"id",i)},d(t){t&&M(e),s.d()}}}function Ps(t){let e,r=Object.keys(t[0]).length,i=r&&Cs(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=Cs(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 Is(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ss=class extends ce{constructor(t){super(),se(this,t,Is,Ps,d,{svgFiltersMap:0})}};function Ns(t,e,n,r){const i=n[t.type];if(!i)return r(ge(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 Os(){}function Ts(t){return{subscribe:e=>(e(t),Os)}}function Ms(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function zs(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function Bs(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 Js(t){try{return Qo(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function Rs(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function Ls(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Ls.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function Us(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function Hs(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:je,JsonStringContents:function(){var t,e,n;for(t=ve,e=[],n=Fe();n!==r;)e.push(n),n=Fe();return ye=t,e=It(e)}},a=je,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",_="<=",b="<",w="+",x="-",k="/",E="*",A="%",C="!",V="(",D=")",j=",",F="'",P=".",I="e",S="E",N="true",O="false",T=/^[^}]/,M=/^[^'}]/,z=/^[0-9]/,B=/^[a-zA-Z_0-9.]/,J=/^[a-zA-Z_]/,R=/^[ \t\r\n]/,L=ke("@{",!1),U=ke("}",!1),H=ke("@{}",!1),W=ke("\\",!1),q={type:"any"},G=Ee(["}"],!0,!1),K=ke("?",!1),Y=ke(":",!1),X=ke("!:",!1),Z=ke("||",!1),Q=ke("&&",!1),tt=ke("==",!1),et=ke("!=",!1),nt=ke(">=",!1),rt=ke(">",!1),it=ke("<=",!1),ot=ke("<",!1),at=ke("+",!1),st=ke("-",!1),lt=ke("/",!1),ct=ke("*",!1),ut=ke("%",!1),dt=ke("!",!1),ht=ke("(",!1),pt=ke(")",!1),ft=ke(",",!1),gt=Ae("string"),mt=ke("'",!1),vt=Ee(["'","}"],!0,!1),yt=Ae("integer"),$t=Ee([["0","9"]],!1,!1),_t=Ae("number"),bt=ke(".",!1),wt=ke("e",!1),xt=ke("E",!1),kt=Ae("boolean"),Et=ke("true",!1),At=ke("false",!1),Ct=Ee([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),Vt=Ae("identifier"),Dt=Ee([["a","z"],["A","Z"],"_"],!1,!1),jt=Ae("whitespace"),Ft=Ee([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},It=function(t){return Bs(t)},St=function(t){return t},Nt=function(){return""},Ot=function(){return xe()},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Bt=function(t){return Rs(t)},Jt=function(){throw new Error("Error tokenizing '"+t+"'.")},Rt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Lt=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Ut=function(t,e){return zs(t,e)},Ht=function(t,e){return zs(t,e)},Wt=function(t,e){return Ms(t,e)},qt=function(t,e){return Ms(t,e)},Gt=function(t,e){return Ms(t,e)},Kt=function(t,e){return Ms(t,e)},Yt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Xt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Zt=function(t){return{type:"Variable",id:t}},Qt=function(t,e){return[t,...e]},te=function(t){return t},ee=function(t){return t},ne=function(t){return Bs(t)},re=function(t){return t},ie=function(){return""},oe=function(){return xe()},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(t){return t},ce=function(t){return Rs(t)},ue=function(){throw new Error("Error tokenizing '"+t+"'.")},de=function(){return{type:"IntegerLiteral",value:Js(xe())}},he=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},pe=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},fe=function(){return{type:"BooleanLiteral",value:!0}},ge=function(){return{type:"BooleanLiteral",value:!1}},me=function(){return{type:"Identifier",name:xe()}},ve=0,ye=0,$e=[{line:1,column:1}],_e=0,be=[],we=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function xe(){return t.substring(ye,ve)}function ke(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ee(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ae(t){return{type:"other",description:t}}function Ce(e){var n,r=$e[e];if(r)return r;for(n=e-1;!$e[n];)n--;for(r={line:(r=$e[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return $e[e]=r,r}function Ve(t,e,n){var r=Ce(t),o=Ce(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 De(t){ve<_e||(ve>_e&&(_e=ve,be=[]),be.push(t))}function je(){var t,e;return t=ve,He(),(e=Pe())!==r?(He(),ye=t,t=Pt(e)):(ve=t,t=r),t}function Fe(){var e,n,i,o,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r?(i=He(),(o=Pe())!==r?(He(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&De(U)),a!==r?(ye=e,e=St(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&De(H)),n!==r&&(ye=e,n=Nt()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(i=u,ve++):(i=r,0===we&&De(W)),i===r&&(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L))),we--,i===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=Ot()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r){if(i=[],T.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(G)),o!==r)for(;o!==r;)i.push(o),T.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(G));else i=r;i!==r?(125===t.charCodeAt(ve)?(o=l,ve++):(o=r,0===we&&De(U)),o!==r?(ye=e,e=Tt()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r&&(ye=e,n=Mt()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(W)),n!==r?(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)),i!==r?(ye=e,e=zt(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(W)),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=Bt(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(W)),n!==r&&(ye=e,n=Jt()),e=n))))}return e}function Pe(){var e,n,i,o,a,s;return e=ve,(n=Ie())!==r?(He(),63===t.charCodeAt(ve)?(i=d,ve++):(i=r,0===we&&De(K)),i!==r?(He(),(o=Pe())!==r?(He(),58===t.charCodeAt(ve)?(a=h,ve++):(a=r,0===we&&De(Y)),a!==r?(He(),(s=Pe())!==r?(ye=e,e=Rt(n,o,s)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Ie()),e}function Ie(){var e,n,i,o;return e=ve,(n=Se())!==r?(He(),t.substr(ve,2)===p?(i=p,ve+=2):(i=r,0===we&&De(X)),i!==r?(He(),(o=Pe())!==r?(ye=e,e=Lt(n,o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Se()),e}function Se(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Ne())!==r){for(i=[],o=ve,a=He(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&De(Z)),s!==r?(l=He(),(c=Ne())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=He(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&De(Z)),s!==r?(l=He(),(c=Ne())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Ut(n,i)}else ve=e,e=r;return e}function Ne(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Oe())!==r){for(i=[],o=ve,a=He(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&De(Q)),s!==r?(l=He(),(c=Oe())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=He(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&De(Q)),s!==r?(l=He(),(c=Oe())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Ht(n,i)}else ve=e,e=r;return e}function Oe(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Te())!==r){for(i=[],o=ve,a=He(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&De(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&De(et))),s!==r?(l=He(),(c=Te())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=He(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&De(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&De(et))),s!==r?(l=He(),(c=Te())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Wt(n,i)}else ve=e,e=r;return e}function Te(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Me())!==r){for(i=[],o=ve,a=He(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&De(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&De(rt)),s===r&&(t.substr(ve,2)===_?(s=_,ve+=2):(s=r,0===we&&De(it)),s===r&&(60===t.charCodeAt(ve)?(s=b,ve++):(s=r,0===we&&De(ot))))),s!==r?(l=He(),(c=Me())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=He(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&De(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&De(rt)),s===r&&(t.substr(ve,2)===_?(s=_,ve+=2):(s=r,0===we&&De(it)),s===r&&(60===t.charCodeAt(ve)?(s=b,ve++):(s=r,0===we&&De(ot))))),s!==r?(l=He(),(c=Me())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=qt(n,i)}else ve=e,e=r;return e}function Me(){var e,n,i,o,a,s,l,c;if(e=ve,(n=ze())!==r){for(i=[],o=ve,a=He(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&De(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&De(st))),s!==r?(l=He(),(c=ze())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=He(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&De(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&De(st))),s!==r?(l=He(),(c=ze())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Gt(n,i)}else ve=e,e=r;return e}function ze(){var e,n,i,o,a,s,l,c;if(e=ve,(n=Be())!==r){for(i=[],o=ve,a=He(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&De(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&De(ct)),s===r&&(37===t.charCodeAt(ve)?(s=A,ve++):(s=r,0===we&&De(ut)))),s!==r?(l=He(),(c=Be())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,a=He(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&De(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&De(ct)),s===r&&(37===t.charCodeAt(ve)?(s=A,ve++):(s=r,0===we&&De(ut)))),s!==r?(l=He(),(c=Be())!==r?o=a=[a,s,l,c]:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Kt(n,i)}else ve=e,e=r;return e}function Be(){var e,n,i;return(e=Le())===r&&(e=Re())===r&&(e=ve,33===t.charCodeAt(ve)?(n=C,ve++):(n=r,0===we&&De(dt)),n===r&&(43===t.charCodeAt(ve)?(n=w,ve++):(n=r,0===we&&De(at)),n===r&&(45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)))),n!==r?(He(),(i=Be())!==r?(ye=e,e=Yt(n,i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=ve,(n=Ue())!==r?(He(),40===t.charCodeAt(ve)?(i=V,ve++):(i=r,0===we&&De(ht)),i!==r?(He(),o=function(){var e,n,i,o,a,s;if(e=ve,(n=Pe())!==r){for(i=[],o=ve,He(),44===t.charCodeAt(ve)?(a=j,ve++):(a=r,0===we&&De(ft)),a!==r?(He(),(s=Pe())!==r?o=s:(ve=o,o=r)):(ve=o,o=r);o!==r;)i.push(o),o=ve,He(),44===t.charCodeAt(ve)?(a=j,ve++):(a=r,0===we&&De(ft)),a!==r?(He(),(s=Pe())!==r?o=s:(ve=o,o=r)):(ve=o,o=r);ye=e,e=Qt(n,i)}else ve=e,e=r;return e===r&&(e=He()),e}(),o!==r?(He(),41===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&De(pt)),a!==r?(ye=e,e=Xt(n,o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,(n=Ue())!==r&&(ye=e,n=Zt(n)),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return we++,e=ve,39===t.charCodeAt(ve)?(n=F,ve++):(n=r,0===we&&De(mt)),n!==r?(i=function(){var t,e,n;for(t=ve,e=[],n=Je();n!==r;)e.push(n),n=Je();return ye=t,t=e=ne(e)}(),39===t.charCodeAt(ve)?(o=F,ve++):(o=r,0===we&&De(mt)),o!==r?(ye=e,e=ee(i)):(ve=e,e=r)):(ve=e,e=r),we--,e===r&&(n=r,0===we&&De(gt)),e}(),e===r&&(e=Le())===r&&(e=Re())===r&&(e=function(){var e,n;return we++,e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&De(Et)),n!==r&&(ye=e,n=fe()),(e=n)===r&&(e=ve,t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&De(At)),n!==r&&(ye=e,n=ge()),e=n),we--,e===r&&(n=r,0===we&&De(kt)),e}(),e===r&&(e=ve,40===t.charCodeAt(ve)?(n=V,ve++):(n=r,0===we&&De(ht)),n!==r?(He(),(i=Pe())!==r?(He(),41===t.charCodeAt(ve)?(o=D,ve++):(o=r,0===we&&De(pt)),o!==r?(ye=e,e=te(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r))),e}())),e}())),e}function Je(){var e,n,i,o,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r?(i=He(),(o=Pe())!==r?(He(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&De(U)),a!==r?(ye=e,e=re(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&De(H)),n!==r&&(ye=e,n=ie()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(i=u,ve++):(i=r,0===we&&De(W)),i===r&&(39===t.charCodeAt(ve)?(i=F,ve++):(i=r,0===we&&De(mt)),i===r&&(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)))),we--,i===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=oe()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r){if(i=[],M.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(vt)),o!==r)for(;o!==r;)i.push(o),M.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(vt));else i=r;i!==r?(125===t.charCodeAt(ve)?(o=l,ve++):(o=r,0===we&&De(U)),o!==r?(ye=e,e=ae()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&De(L)),n!==r&&(ye=e,n=se()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(W)),n!==r?(t.substr(ve,2)===s?(i=s,ve+=2):(i=r,0===we&&De(L)),i!==r?(ye=e,e=le(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(W)),n!==r?(t.length>ve?(i=t.charAt(ve),ve++):(i=r,0===we&&De(q)),i!==r?(ye=e,e=ce(i)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&De(W)),n!==r&&(ye=e,n=ue()),e=n))))}return e}function Re(){var e,n,i,o;if(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));else i=r;return i!==r?(ye=e,e=de()):(ve=e,e=r),we--,e===r&&(n=r,0===we&&De(yt)),e}function Le(){var e,n,i,o,a,s,l,c,u,d;for(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));if(46===t.charCodeAt(ve)?(o=P,ve++):(o=r,0===we&&De(bt)),o!==r){if(a=[],z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&De($t)),s!==r)for(;s!==r;)a.push(s),z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&De($t));else a=r;if(a!==r){if(s=ve,101===t.charCodeAt(ve)?(l=I,ve++):(l=r,0===we&&De(wt)),l===r&&(69===t.charCodeAt(ve)?(l=S,ve++):(l=r,0===we&&De(xt))),l!==r){if(43===t.charCodeAt(ve)?(c=w,ve++):(c=r,0===we&&De(at)),c===r&&(45===t.charCodeAt(ve)?(c=x,ve++):(c=r,0===we&&De(st))),c===r&&(c=null),u=[],z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&De($t)),d!==r)for(;d!==r;)u.push(d),z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&De($t));else u=r;u!==r?s=l=[l,c,u]:(ve=s,s=r)}else ve=s,s=r;s===r&&(s=null),ye=e,e=he()}else ve=e,e=r}else ve=e,e=r;if(e===r){if(e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&De(st)),n===r&&(n=null),i=[],z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t)),o!==r)for(;o!==r;)i.push(o),z.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De($t));else i=r;if(i!==r)if(101===t.charCodeAt(ve)?(o=I,ve++):(o=r,0===we&&De(wt)),o===r&&(69===t.charCodeAt(ve)?(o=S,ve++):(o=r,0===we&&De(xt))),o!==r){if(43===t.charCodeAt(ve)?(a=w,ve++):(a=r,0===we&&De(at)),a===r&&(45===t.charCodeAt(ve)?(a=x,ve++):(a=r,0===we&&De(st))),a===r&&(a=null),s=[],z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&De($t)),l!==r)for(;l!==r;)s.push(l),z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&De($t));else s=r;s!==r?(ye=e,e=pe()):(ve=e,e=r)}else ve=e,e=r;else ve=e,e=r}return we--,e===r&&(n=r,0===we&&De(_t)),e}function Ue(){var e,n,i,o,a;if(we++,e=ve,n=ve,we++,i=function(){var e,n,i,o;return e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&De(Et)),n===r&&(t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&De(At))),n!==r?(i=ve,we++,B.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&De(Ct)),we--,o===r?i=void 0:(ve=i,i=r),i!==r?e=n=[n,i]:(ve=e,e=r)):(ve=e,e=r),e}(),we--,i===r?n=void 0:(ve=n,n=r),n!==r)if(J.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&De(Dt)),i!==r){for(o=[],B.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&De(Ct));a!==r;)o.push(a),B.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&De(Ct));ye=e,e=me()}else ve=e,e=r;else ve=e,e=r;return we--,e===r&&(n=r,0===we&&De(Vt)),e}function He(){var e,n;for(we++,e=[],R.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&De(Ft));n!==r;)e.push(n),R.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&De(Ft));return we--,n=r,0===we&&De(jt),e}if((n=a())!==r&&ve===t.length)return n;throw n!==r&&ve<t.length&&De({type:"end"}),function(t,e,n){return new Ls(Ls.buildMessage(t,e),t,e,n)}(be,_e<t.length?t.charAt(_e):null,_e<t.length?Ve(_e,_e+1):Ve(_e,_e))}Ts(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(Ls,Error),Ls.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=Us("",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+" | "+Us("",i.column-1," ")+Us("",u,"^")}else e+="\n at "+a}return e},Ls.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 Ws=new Map,qs=new Map;function Gs(t,e,n){const r={args:e,cb:n},i=Ws.get(t)||[];Ws.has(t)||Ws.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");qs.set(o,r)}function Ks(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 Ys(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=>{Ys(t,e)}));break;case"BinaryExpression":case"LogicalExpression":Ys(t.left,e),Ys(t.right,e);break;case"UnaryExpression":Ys(t.argument,e);break;case"ConditionalExpression":Ys(t.test,e),Ys(t.consequent,e),Ys(t.alternate,e);break;case"TryExpression":Ys(t.test,e),Ys(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{Ys(t,e)}))}}function Xs(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function Zs(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function Qs(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 Zs(t.value);if("color"===t.type)return sl(al(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 tl(t){let e=Qs(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function el(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function nl(t,e){if(Ko)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<Zo||e>Xo)throw new Error("Integer overflow.");!Ko&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function il(t){const e=[];return Ys(t,{Variable(t){e.push(t.id.name)}}),e}function ol(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function al(t){const e=xe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function sl(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 ll(t){return sl(al(t))}const cl=Number.MAX_VALUE,ul=Number.MIN_VALUE,dl="string",hl="integer",pl="number",fl="boolean",gl="color",ml="url",vl="datetime",yl="dict",$l="array";function _l(t,e){return{type:dl,value:Qs(e)}}function bl(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:pl,value:n}}function wl(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=ll(o)),{type:r,value:o}}function xl(t,e,n){return wl(t,e,n,n.type)}function kl(t,e,n){return wl(t,e,n,"color")}function El(t,e,n){return wl(t,e,n,"url")}const Al=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:hl,value:Qo(r)}},Cl=Al("getUTCFullYear"),Vl=Al("getUTCMonth"),Dl=Al("getUTCDate"),jl=Al("getUTCDay"),Fl=Al("getUTCHours"),Pl=Al("getUTCMinutes"),Il=Al("getUTCSeconds"),Sl=Al("getUTCMilliseconds");function Nl(t,e,n,r){if(!r.value.length)return t.warnings.push(ge(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===dl?e.value:Qs(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 Ol(t,e,n,r){const i=Nl(t,e,n,r);return{type:dl,value:i+Qs(e)}}function Tl(t,e,n,r){const i=Nl(t,e,n,r);return{type:dl,value:Qs(e)+i}}function Ml(t){return(e,n)=>{const r=al(n.value);return{type:pl,value:r[t]/255}}}function zl(t){return(e,n,r)=>{const i=al(n.value);return i[t]=255*r.value,{type:gl,value:sl(i)}}}const Bl=Ml("a"),Jl=Ml("r"),Rl=Ml("g"),Ll=Ml("b"),Ul=zl("a"),Hl=zl("r"),Wl=zl("g"),ql=zl("b");function Gl(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:hl,value:i}}const Kl=36e5;function Yl(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.");rl(n,s),s=Qo(s)}return"string"===t&&"color"===e&&(s=ll(s)),{type:e,value:s}}}function Xl(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=ll(n)),{type:e,value:n}}}}const Zl=Yl("string","string"),Ql=Yl("number","number"),tc=Yl("number","integer"),ec=Yl("boolean","boolean"),nc=Yl("string","color"),rc=Yl("string","url"),ic=Xl(Zl,"string"),oc=Xl(Ql,"number"),ac=Xl(tc,"integer"),sc=Xl(ec,"boolean"),lc=Xl(nc,"color"),cc=Xl(rc,"url");function uc(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||"object"===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),o=Qo(o)}return"string"===t&&"color"===e&&(o=ll(o)),{type:e,value:o}}}function dc(t,e){return(n,r,i,o)=>{try{return t(n,r,i)}catch(t){let n=o.value;return"color"===e&&(n=ll(n)),{type:e,value:n}}}}const hc=uc("string","string"),pc=uc("number","number"),fc=uc("number","integer"),gc=uc("boolean","boolean"),mc=uc("string","color"),vc=uc("string","url"),yc=uc("array","array"),$c=uc("object","dict"),_c=dc(hc,"string"),bc=dc(pc,"number"),wc=dc(fc,"integer"),xc=dc(gc,"boolean"),kc=dc(mc,"color"),Ec=dc(vc,"url");function Ac(t){return t.map(tl).join(", ")}Gs("toString",[hl],_l),Gs("toString",[pl],_l),Gs("toString",[fl],_l),Gs("toString",[gl],_l),Gs("toString",[ml],_l),Gs("toNumber",[hl],bl),Gs("toNumber",[dl],bl),Gs("toInteger",[pl],(function(t,e){if(e.value>Xo||e.value<Zo)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:hl,value:Qo(n)}})),Gs("toInteger",[dl],(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>Xo||n<Zo)throw new Error("Unable to convert value to Integer.");return{type:hl,value:n}})),Gs("toInteger",[fl],(function(t,e){return{type:hl,value:Qo(e.value?1:0)}})),Gs("toBoolean",[hl],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:fl,value:n}})),Gs("toBoolean",[dl],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:fl,value:"true"===e.value?1:0}})),Gs("toColor",[dl],(function(t,e){return{type:gl,value:ll(e.value)}})),Gs("toUrl",[dl],(function(t,e){return{type:ml,value:e.value}})),Gs("encodeUri",[dl],(function(t,e){try{return{type:dl,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),Gs("decodeUri",[dl],(function(t,e){try{return{type:dl,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),Gs("getIntegerValue",[dl,hl],xl),Gs("getNumberValue",[dl,pl],xl),Gs("getBooleanValue",[dl,fl],xl),Gs("getStringValue",[dl,dl],xl),Gs("getColorValue",[dl,gl],kl),Gs("getColorValue",[dl,dl],kl),Gs("getUrlValue",[dl,ml],El),Gs("getUrlValue",[dl,dl],El),Gs("parseUnixTime",[hl],(function(t,e){return{type:vl,value:new Date(1e3*Number(e.value))}})),Gs("nowLocal",[],(function(){return{type:vl,value:new Date}})),Gs("addMillis",[vl,hl],(function(t,e,n){return{type:vl,value:new Date(e.value.getTime()+Number(n.value))}})),Gs("setYear",[vl,hl],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:vl,value:r}})),Gs("setMonth",[vl,hl],(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:vl,value:i}})),Gs("setDay",[vl,hl],(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(Qs(e),"."));return r.setUTCDate(-1===i?0:i),{type:vl,value:r}})),Gs("setHours",[vl,hl],(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:vl,value:i}})),Gs("setMinutes",[vl,hl],(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:vl,value:i}})),Gs("setSeconds",[vl,hl],(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:vl,value:i}})),Gs("setMillis",[vl,hl],(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:vl,value:i}})),Gs("getYear",[vl],Cl),Gs("getMonth",[vl],Vl),Gs("getDay",[vl],Dl),Gs("getDayOfWeek",[vl],jl),Gs("getHours",[vl],Fl),Gs("getMinutes",[vl],Pl),Gs("getSeconds",[vl],Il),Gs("getMillis",[vl],Sl),Gs("getIntervalSeconds",[hl],(function(t,e){return Gl(t,e,1e3,60)})),Gs("getIntervalTotalSeconds",[hl],(function(t,e){return Gl(t,e,1e3)})),Gs("getIntervalMinutes",[hl],(function(t,e){return Gl(t,e,6e4,60)})),Gs("getIntervalTotalMinutes",[hl],(function(t,e){return Gl(t,e,6e4)})),Gs("getIntervalHours",[hl],(function(t,e){return Gl(t,e,Kl,24)})),Gs("getIntervalTotalHours",[hl],(function(t,e){return Gl(t,e,Kl)})),Gs("getIntervalTotalDays",[hl],(function(t,e){return Gl(t,e,864e5)})),Gs("getIntervalTotalWeeks",[hl],(function(t,e){return Gl(t,e,6048e5)})),Gs("len",[dl],(function(t,e){return{type:hl,value:Qo(e.value.length)}})),Gs("contains",[dl,dl],(function(t,e,n){return{type:fl,value:e.value.includes(n.value)?1:0}})),Gs("substring",[dl,hl,hl],(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:dl,value:e.value.substring(Number(n.value),Number(r.value))}})),Gs("replaceAll",[dl,dl,dl],(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:dl,value:i}})),Gs("index",[dl,dl],(function(t,e,n){return{type:hl,value:Qo(e.value.indexOf(n.value))}})),Gs("lastIndex",[dl,dl],(function(t,e,n){return{type:hl,value:Qo(e.value.lastIndexOf(n.value))}})),Gs("trim",[dl],(function(t,e){return{type:dl,value:e.value.trim()}})),Gs("trimLeft",[dl],(function(t,e){return{type:dl,value:e.value.replace(/^\s+/,"")}})),Gs("trimRight",[dl],(function(t,e){return{type:dl,value:e.value.replace(/\s+$/,"")}})),Gs("toUpperCase",[dl],(function(t,e){return{type:dl,value:e.value.toUpperCase()}})),Gs("toLowerCase",[dl],(function(t,e){return{type:dl,value:e.value.toLowerCase()}})),Gs("padStart",[dl,hl,dl],Ol),Gs("padStart",[hl,hl,dl],Ol),Gs("padEnd",[dl,hl,dl],Tl),Gs("padEnd",[hl,hl,dl],Tl),Gs("testRegex",[dl,dl],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:fl,value:r.test(e.value)?1:0}})),Gs("div",[hl,hl],(function(t,e,n){if(n.value===ta)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=nl(0,r),rl(t,r),{type:hl,value:r}})),Gs("div",[pl,pl],(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:pl,value:r}})),Gs("mod",[hl,hl],(function(t,e,n){if(n.value===ta)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=nl(0,r),rl(t,r),{type:hl,value:r}})),Gs("mod",[pl,pl],(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:pl,value:r}})),Gs("mul",[{type:hl,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:ta;for(let e=1;e<n.length;++e)i*=n[e].value,i=nl(0,i),rl(t,i);return{type:hl,value:i}})),Gs("mul",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:pl,value:i}})),Gs("sub",[{type:hl,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:ta;for(let e=1;e<n.length;++e)i-=n[e].value,i=nl(0,i),rl(t,i);return{type:hl,value:i}})),Gs("sub",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:pl,value:i}})),Gs("sum",[{type:hl,isVararg:!0}],(function(t){let e=ta;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=nl(0,e),rl(t,e);return{type:hl,value:e}})),Gs("sum",[{type:pl,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:pl,value:e}})),Gs("abs",[hl],(function(t,e){const n=ea(e.value);return rl(t,n),{type:e.type,value:n}})),Gs("abs",[pl],(function(t,e){const n=Math.abs(e.value);return{type:pl,value:n}})),Gs("max",[{type:hl,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:hl,value:i}})),Gs("max",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:pl,value:Math.max(...n.map((t=>t.value)))}})),Gs("min",[{type:hl,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:hl,value:i}})),Gs("min",[{type:pl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:pl,value:Math.min(...n.map((t=>t.value)))}})),Gs("maxNumber",[],(function(){return{type:pl,value:cl}})),Gs("minNumber",[],(function(){return{type:pl,value:ul}})),Gs("maxInteger",[],(function(t){return rl(t,Xo),{type:hl,value:Xo}})),Gs("minInteger",[],(function(t){return rl(t,Zo),{type:hl,value:Zo}})),Gs("round",[pl],(function(t,e){const n=Math.sign(e.value);return{type:pl,value:n*Math.round(Math.abs(e.value))}})),Gs("floor",[pl],(function(t,e){return{type:pl,value:Math.floor(e.value)}})),Gs("ceil",[pl],(function(t,e){return{type:pl,value:Math.ceil(e.value)}})),Gs("signum",[hl],(function(t,e){return{type:hl,value:na(e.value)}})),Gs("signum",[pl],(function(t,e){return{type:pl,value:Math.sign(e.value)}})),Gs("copySign",[hl,hl],(function(t,e,n){let r;if(n.value===ta)r=e.value;else if(e.value===ta)r=Qo(0);else{const t=na(n.value);r=ea(e.value)*t}return rl(t,r),{type:hl,value:r}})),Gs("copySign",[pl,pl],(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:pl,value:i}})),Gs("getColorAlpha",[dl],Bl),Gs("getColorAlpha",[gl],Bl),Gs("getColorRed",[dl],Jl),Gs("getColorRed",[gl],Jl),Gs("getColorGreen",[dl],Rl),Gs("getColorGreen",[gl],Rl),Gs("getColorBlue",[dl],Ll),Gs("getColorBlue",[gl],Ll),Gs("setColorAlpha",[dl,pl],Ul),Gs("setColorAlpha",[gl,pl],Ul),Gs("setColorRed",[dl,pl],Hl),Gs("setColorRed",[gl,pl],Hl),Gs("setColorGreen",[dl,pl],Wl),Gs("setColorGreen",[gl,pl],Wl),Gs("setColorBlue",[dl,pl],ql),Gs("setColorBlue",[gl,pl],ql),Gs("rgb",[pl,pl,pl],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:gl,value:sl(i)}})),Gs("argb",[pl,pl,pl,pl],(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:gl,value:sl(o)}})),Gs("getDictString",[yl,{type:dl,isVararg:!0}],Zl),Gs("getStringFromDict",[yl,{type:dl,isVararg:!0}],Zl),Gs("getDictNumber",[yl,{type:dl,isVararg:!0}],Ql),Gs("getNumberFromDict",[yl,{type:dl,isVararg:!0}],Ql),Gs("getDictInteger",[yl,{type:dl,isVararg:!0}],tc),Gs("getIntegerFromDict",[yl,{type:dl,isVararg:!0}],tc),Gs("getDictBoolean",[yl,{type:dl,isVararg:!0}],ec),Gs("getBooleanFromDict",[yl,{type:dl,isVararg:!0}],ec),Gs("getDictColor",[yl,{type:dl,isVararg:!0}],nc),Gs("getColorFromDict",[yl,{type:dl,isVararg:!0}],nc),Gs("getDictUrl",[yl,{type:dl,isVararg:!0}],rc),Gs("getUrlFromDict",[yl,{type:dl,isVararg:!0}],rc),Gs("getDictOptString",[dl,yl,{type:dl,isVararg:!0}],ic),Gs("getOptStringFromDict",[dl,yl,{type:dl,isVararg:!0}],ic),Gs("getDictOptNumber",[pl,yl,{type:dl,isVararg:!0}],oc),Gs("getOptNumberFromDict",[pl,yl,{type:dl,isVararg:!0}],oc),Gs("getDictOptInteger",[hl,yl,{type:dl,isVararg:!0}],ac),Gs("getOptIntegerFromDict",[hl,yl,{type:dl,isVararg:!0}],ac),Gs("getDictOptBoolean",[fl,yl,{type:dl,isVararg:!0}],sc),Gs("getOptBooleanFromDict",[fl,yl,{type:dl,isVararg:!0}],sc),Gs("getDictOptColor",[gl,yl,{type:dl,isVararg:!0}],lc),Gs("getOptColorFromDict",[gl,yl,{type:dl,isVararg:!0}],lc),Gs("getDictOptColor",[dl,yl,{type:dl,isVararg:!0}],lc),Gs("getOptColorFromDict",[dl,yl,{type:dl,isVararg:!0}],lc),Gs("getDictOptUrl",[dl,yl,{type:dl,isVararg:!0}],cc),Gs("getOptUrlFromDict",[dl,yl,{type:dl,isVararg:!0}],cc),Gs("getDictOptUrl",[ml,yl,{type:dl,isVararg:!0}],cc),Gs("getOptUrlFromDict",[ml,yl,{type:dl,isVararg:!0}],cc),Gs("getArrayString",[$l,hl],hc),Gs("getStringFromArray",[$l,hl],hc),Gs("getArrayNumber",[$l,hl],pc),Gs("getNumberFromArray",[$l,hl],pc),Gs("getArrayInteger",[$l,hl],fc),Gs("getIntegerFromArray",[$l,hl],fc),Gs("getArrayBoolean",[$l,hl],gc),Gs("getBooleanFromArray",[$l,hl],gc),Gs("getArrayColor",[$l,hl],mc),Gs("getColorFromArray",[$l,hl],mc),Gs("getArrayUrl",[$l,hl],vc),Gs("getUrlFromArray",[$l,hl],vc),Gs("getArrayFromArray",[$l,hl],yc),Gs("getDictFromArray",[$l,hl],$c),Gs("getArrayOptString",[$l,hl,dl],_c),Gs("getOptStringFromArray",[$l,hl,dl],_c),Gs("getArrayOptNumber",[$l,hl,pl],bc),Gs("getOptNumberFromArray",[$l,hl,pl],bc),Gs("getArrayOptInteger",[$l,hl,hl],wc),Gs("getOptIntegerFromArray",[$l,hl,hl],wc),Gs("getArrayOptBoolean",[$l,hl,fl],xc),Gs("getOptBooleanFromArray",[$l,hl,fl],xc),Gs("getArrayOptColor",[$l,hl,gl],kc),Gs("getOptColorFromArray",[$l,hl,gl],kc),Gs("getArrayOptColor",[$l,hl,dl],kc),Gs("getOptColorFromArray",[$l,hl,dl],kc),Gs("getArrayOptUrl",[$l,hl,ml],Ec),Gs("getOptUrlFromArray",[$l,hl,ml],Ec),Gs("getArrayOptUrl",[$l,hl,dl],Ec),Gs("getOptUrlFromArray",[$l,hl,dl],Ec),Gs("getOptArrayFromArray",[$l,hl],(function(t,e,n){try{return yc(t,e,n)}catch(t){return{type:$l,value:[]}}})),Gs("getOptDictFromArray",[$l,hl],(function(t,e,n){try{return $c(t,e,n)}catch(t){return{type:yl,value:{}}}})),Gs("len",[$l],(function(t,e){return{type:hl,value:Qo(e.value.length)}}));const Cc={StringLiteral:function(t,e){return{type:dl,value:e.value}},NumberLiteral:function(t,e){return{type:pl,value:e.value}},IntegerLiteral:function(t,e){return rl(t,e.value),{type:hl,value:e.value}},BooleanLiteral:function(t,e){return{type:fl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=Xs(Vc(t,e.argument));switch(e.operator){case"!":if(n.type===fl)return{type:fl,value:n.value?0:1};ol("".concat(e.operator).concat(tl(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===hl){const e=n.value*Qo(r);return rl(t,e),{type:hl,value:e}}if(n.type===pl)return{type:pl,value:n.value*r};ol("".concat(e.operator).concat(tl(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=Xs(Vc(t,e.test));if(n.type===fl)return n.value?Vc(t,e.consequent):Vc(t,e.alternate);ol("".concat(tl(n)," ? ").concat(tl(Vc(t,e.consequent))," : ").concat(tl(Vc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return Vc(t,e.test)}catch(n){return Vc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return Vc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=Qs(Vc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:dl,value:n}},LogicalExpression:function(t,e){const n=Xs(Vc(t,e.left));if(n.type!==fl&&ol("".concat(tl(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:fl,value:0};const r=Xs(Vc(t,e.right));return r.type!==fl&&ol("".concat(tl(n)," ").concat(e.operator," ").concat(tl(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(el(r.type),".")),{type:fl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=Vc(t,e.left),i=Vc(t,e.right);if(r.type!==i.type&&ol("".concat(tl(r)," ").concat(e.operator," ").concat(tl(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(el(r.type)," and ").concat(el(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===vl&&n.type===vl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:fl,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==pl&&e.type!==hl&&e.type!==vl&&ol("".concat(tl(e)," ").concat(t," ").concat(tl(n)),"Operator '".concat(t,"' cannot be applied to ").concat(el(e.type)," type."));const i=e.type===vl?e.value.getTime():e.value,o=n.type===vl?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:fl,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==dl&&n.type!==pl&&n.type!==hl&&ol("".concat(tl(n)," ").concat(e," ").concat(tl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(el(n.type)," type.")),n.type===dl)return"-"===e&&ol("".concat(tl(n)," - ").concat(tl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(el(n.type)," type.")),{type:dl,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===hl)try{i=nl(0,i),rl(t,i)}catch(t){ol("".concat(tl(n)," ").concat(e," ").concat(tl(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!==hl&&n.type!==pl&&ol("".concat(tl(n)," ").concat(e," ").concat(tl(r)),"Operator '".concat(e,"' cannot be applied to ").concat(el(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&ol("".concat(tl(n)," ").concat(e," ").concat(tl(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===hl)try{i=nl(0,i),rl(t,i)}catch(t){ol("".concat(tl(n)," ").concat(e," ").concat(tl(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=>Vc(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(qs.has(o))r=qs.get(o);else{const t=function(t,e){const n=Ws.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=Ks(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=>el(t.type))).join(", "),r="".concat(n,"(").concat(Ac(i),")");"few"===t.type&&0===i.length?ol(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?ol(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):ol(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){ol("".concat(n,"(").concat(Ac(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 Vc(t,e){if(e.type in Cc)return Cc[e.type](t,e);throw new Error("Unsupported expression")}function Dc(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=Vc(n,e);return n.safeIntegerOverflow&&n.warnings.push(ge(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 jc{constructor(t){this.ast=t}apply(t,e){try{const n=Dc(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(ge(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return Zs(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=xe(String(i));if(t)return sl(t);e(ge(new Error("Expression execution error")))}if("integer"===r.type)return i>2147483647||i<-2147483648?void e(ge(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(ge(new Error("Failed to stringify ".concat(r.type)))),"<".concat(r.type,">")}return i}catch(t){return void e(ge(new Error("Expression execution error")))}}}function Fc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=Hs(t,{startRule:"JsonStringContents"}),r=il(n);return e.vars.push(...r),new jc(n)}catch(e){return void n(ge(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Fc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Fc(t[i],e,n);return r}}var r;return t}function Pc(t,e,n){if(t){if(t instanceof jc)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Pc(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Pc(t[i],e,n);return r}}return t}function Ic(t,e){const n={vars:[],hasExpression:!1},r=Fc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Pc(r,t,e)}}const Sc={pagers:function(){return de(new Map)}},Nc=new Map,Oc=new Map;function Tc(t){const e=Nc.get(t)||de("");return Nc.has(t)||Nc.set(t,e),e}function Mc(t){const e=Oc.get(t)||new Map;return Oc.has(t)||Oc.set(t,e),e}class zc{setVariable(t){const e=t.getName(),n=Mc(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Tc(this).set(e)}getVariable(t){return Mc(this).get(t)}list(){return Mc(this).values()}}function Bc(){return new zc}function Jc(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 Rc=new Set(["start","stop","pause","resume","cancel","reset"]);class Lc{constructor(t){Jc(this,"timers",new Map),Jc(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(ge(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ge(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Rc.has(e)))return void this.logError(ge(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(ge(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ge(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(ge(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(ge(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(ge(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ge(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ge(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(ge(new Error("The timer is already running"))):this.logError(ge(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 Uc(t,e,n,r){const{variable_name:i}=n;if(!i)return void e(ge(new Error("Incorrect ".concat(n.type," action")),{additional:{name:i}}));const o=t.get(i);if(!o)return void e(ge(new Error("Cannot find variable"),{additional:{name:i}}));const a=o.getType();"array"===a?r(o):e(ge(new Error("Trying to insert value into the non-array"),{additional:{name:i,type:a}}))}function Hc(t){let e,n,r,i,o,a,s,l;return n=new Ss({props:{svgFiltersMap:t[4]}}),i=new ks({props:{div:t[5],templateContext:t[8],layoutParams:{tooltips:t[3]}}}),{c(){e=B("div"),re(n.$$.fragment),r=L(),re(i.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);ie(n.$$.fragment,o),r=it(o),ie(i.$$.fragment,o),o.forEach(M),this.h()},h(){W(e,"class",o=""+(pe.root+(t[6]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){T(t,e,o),oe(n,e,null),N(e,r),oe(i,e,null),a=!0,s||(l=H(e,"touchstart",Xc,{passive:!0}),s=!0)},p(t,r){const s={};16&r[0]&&(s.svgFiltersMap=t[4]),n.$set(s);const l={};32&r[0]&&(l.div=t[5]),8&r[0]&&(l.layoutParams={tooltips:t[3]}),i.$set(l),(!a||65&r[0]&&o!==(o=""+(pe.root+(t[6]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&W(e,"class",o)},i(t){a||(Ht(n.$$.fragment,t),Ht(i.$$.fragment,t),a=!0)},o(t){Wt(n.$$.fragment,t),Wt(i.$$.fragment,t),a=!1},d(t){t&&M(e),ae(n),ae(i),s=!1,l()}}}function Wc(t){let e,n,r=!t[1]&&!t[2]&&t[5]&&Hc(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[2]||!t[5]?r&&(Lt(),Wt(r,1,1,(()=>{r=null})),Ut()):r?(r.p(t,n),38&n[0]&&Ht(r,1)):(r=Hc(t),r.c(),Ht(r,1),r.m(e.parentNode,e))},i(t){n||(Ht(r),n=!0)},o(t){Wt(r),n=!1},d(t){t&&M(e),r&&r.d(t)}}}let qc=de(!0),Gc=0;function Kc(){qc.set(!1)}function Yc(){qc.set(!0)}function Xc(){}function Zc(t,e,n){let r,i,o;var a,s,l,c;let{id:u}=e,{json:d={}}=e,{platform:h="auto"}=e,{theme:f="system"}=e,{globalVariablesController:g=new zc}=e,{mix:m=""}=e,{customization:v={}}=e,{builtinProtocols:y=["http","https","tel","mailto","intent"]}=e,{extensions:$=new Map}=e,{onError:_}=e,{onStat:b}=e,{onCustomAction:w}=e,{onComponent:x}=e,{typefaceProvider:k=(t=>"")}=e,{fetchInit:E={}}=e,{tooltipRoot:A}=e,{customComponents:C}=e,V=de("desktop"===h);if(p(t,V,(t=>n(6,o=t))),"auto"===h&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");V.set(!t.matches),t.addListener((()=>{V.set(!t.matches)}))}let D="light",j=null;function F(){"system"===f&&j&&n(32,D=j.matches?"dark":"light")}const P=new Set(y);let I=!1,S=!1;u||(S=!0,H(ge(new Error('"id" prop is required'))));const N={stateChange:!1},O=Tc(g),T=Mc(g),M=new Map,z=new Map,B=new Map;let J=null,R=0,L=[];function U(t){const e=Ic(t,H);return e.hasExpression?e.applyVars(z):t}function H(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function W(t,e){b&&b({type:t,action:e})}let q=0;function G(t){return"".concat(u,"-").concat(q++)}let K={},Y={};function X(t){const e=t.url?String(t.url):"",i=t.typed;if(Xe(t))if(e)try{const i=e.replace(/div-action:\/\//,""),o=/([^?]+)\?(.+)/.exec(i);if(!o)return;const a=new URLSearchParams(o[2]);switch(o[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=st,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}}(a.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=it(t);n&&n.setCurrentItem(Number(e))}(a.get("id"),a.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=it(t);n&&n.setPreviousItem(e)}(a.get("id"),a.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=it(t);n&&n.setNextItem(e)}(a.get("id"),a.get("overflow"));break;case"set_variable":const o=a.get("name"),s=a.get("value");if(o&&null!==s){const t=z.get(o);if(t){const e=t.getType();"dict"===e||"array"===e?H(ge(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:o}})):t.set(s)}else H(ge(new Error("Cannot find variable"),{additional:{name:o}}))}else H(ge(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const l=a.get("action"),c=a.get("id");J?J.execTimerAction(c,l):H(ge(new Error("Incorrect timer action"),{additional:{id:c,action:l}}));break;case"video":!function(t,e){if(t){const n=it(t);n?"start"===e?n.start():"pause"===e?n.pause():H(ge(new Error("Unknown video action"),{additional:{id:t,action:e}})):H(ge(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else H(ge(new Error("Missing id in video action"),{additional:{action:e}}))}(a.get("id"),a.get("action"));break;case"download":!function(t,e){if(t){let n;n="function"==typeof E?E(t):E,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,o,a;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=et.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return H(ge(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void Z(null===(o=e.download_callbacks)||void 0===o?void 0:o.on_fail_actions)}n.patch.changes.forEach((t=>{const e=et.get(t.id);e&&e.replaceWith(t.id,t.items)})),Z(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_success_actions)}}else H(ge(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;H(ge(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),Z(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else H(ge(new Error("Missing url in download action"),{additional:{url:t}}))}(a.get("url"),t);break;case"show_tooltip":!function(t,e){var r;if(!t)return void H(ge(new Error("Missing id in show_tooltip action")));const i=rt.get(t);if(!i)return void H(ge(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&L.some((e=>e.desc.id===t)))return;const o={internalId:++R,ownerNode:i.onwerNode,desc:i.tooltip,timeoutId:0};n(3,L=[...L,o]);const a=null!==(r=i.tooltip.duration)&&void 0!==r?r:5e3;a&&(o.timeoutId=window.setTimeout((()=>{o.timeoutId=0,n(3,L=L.filter((t=>t.internalId!==o.internalId)))}),a))}(a.get("id"),a.get("multiple"));break;case"hide_tooltip":!function(t){t?n(3,L=L.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):H(ge(new Error("Missing id in hide_tooltip action")))}(a.get("id"));break;default:H(ge(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){H(ge(t,{additional:{url:e}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=z.get(t);n?n.getType()===e.type?n.setValue(e.value):H(ge(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):H(ge(new Error("Cannot find variable"),{additional:{name:t}}))}else H(ge(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(ge(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):Uc(t,e,n,(t=>{const a=t.getValue();if("number"==typeof i&&(i<0||i>a.length))e(ge(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)}}))}(z,H,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:i}=n;"number"==typeof i?Uc(t,e,n,(t=>{const o=t.getValue();if("number"==typeof i&&(i<0||i>=o.length))e(ge(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(ge(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(z,H,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(ge(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(ge(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(ge(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(H,i);break;case"focus_element":{const t=i.element_id&&nt.get(i.element_id);t?t.focus():H(ge(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:H(ge(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function Z(t,e){if(!t||!Array.isArray(t))return;const n=t.filter(Xe);for(let t=0;t<n.length;++t){let r=n[t];const i=r.url,o=r.typed;if(i){const t=Fe(i);if(t)if(Pe(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 Pt()):r.log_id&&(Q(r),await Pt())}else o&&X(r)}n.forEach((t=>{t.log_id&&W("click",t)}))}function Q(t){null==w||w(t)}const tt=new Map,et=new Map,nt=new Map,rt=new Map;function it(t){if(tt.has(t))return tt.get(t);H(ge(new Error("Missing instance with id"),{additional:{id:t}}))}const ot=new Map;function at(t){const e=B.get(t)||de(void 0);return B.has(t)||B.set(t,e),e}wt(fe,{logError:H,logStat:W,hasTemplate:function(t){return t in r},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in r;){if(({json:t,templateContext:e}=Ns(t,e,r,H)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:G,genClass:function(t){return"divkit-".concat(G())},execAction:X,execAnyActions:Z,execCustomAction:Q,isRunning:function(t){return N[t]},setRunning:function(t,e){N[t]=e},registerInstance:function(t,e){tt.has(t)?H(ge(new Error("Duplicate instance id"),{additional:{id:t}})):tt.set(t,e)},unregisterInstance:function(t){tt.delete(t)},registerParentOf:function(t,e){et.set(t,e)},unregisterParentOf:function(t){et.delete(t)},registerTooltip:function(t,e){rt.has(e.id)&&H(ge(new Error("Duplicate tooltip id"),{additional:{id:e.id}})),rt.set(e.id,{onwerNode:t,tooltip:e})},unregisterTooltip:function(t){rt.delete(t.id),L.some((e=>e.desc.id===t.id))&&n(3,L=L.filter((e=>e.desc.id!==t.id)))},onTooltipClose:function(t){n(3,L=L.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){nt.set(t,e)},unregisterFocusable:function(t){nt.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(Y[r]=Y[r]||0,++Y[r],K[r])return K[r];const i="".concat(G(),"-svg-filter");return n(4,K=Object.assign(Object.assign({},K),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);Y[r]&&0==--Y[r]&&n(4,K=Object.keys(K).reduce(((t,e)=>(Y[e]&&(t[e]=K[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Ts(t);const e=Ic(t,H);return e.vars.length?he(e.vars.map((t=>z.get(t)||at(t))).filter(Ee),(()=>e.applyVars(z))):e.hasExpression?Ts(e.applyVars(z)):Ts(t)},getJsonWithVars:U,getStore:function(t){return ot.has(t)||function(t){ot.has(t)||ot.set(t,Sc[t]())}(t),ot.get(t)},getVariable:function(t,e){const n=z.get(t);if(n){const r=n.getType();if(r!==e)return void H(ge(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==v?void 0:v[t]},getBuiltinProtocols:function(){return P},getExtension:function(t,e){const n=$.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:z,logError:H}},typefaceProvider:k,isDesktop:V,isPointerFocus:qc,customComponents:C,componentDevtool:void 0}),wt(en,{hasAction:()=>!1});const st={setState(t){throw new Error("Not implemented")},getChild(t){if(lt&&lt.has(t))return lt.get(t);H(ge(new Error("Missing state block with id"),{additional:{id:t}}))}};let lt=null;function ct(t){if(t.type in ia){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&H(ge(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=oa(t.name,t.type,t.value);M.set(t.name,e),z.set(t.name,e)}catch(e){H(ge(e,{additional:{name:t.name}}))}}}wt(Te,{registerInstance(t,e){lt||(lt=new Map),lt.has(t)?H(ge(new Error("Duplicate state with id"),{additional:{id:t}})):lt.set(t,e)},unregisterInstance(t){null==lt||lt.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 ut=null===(a=null==d?void 0:d.card)||void 0===a?void 0:a.variables;Array.isArray(ut)&&ut.forEach((t=>{if(t&&t.name){if(M.has(t.name))return void H(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));ct(t)}}));const dt=d.palette;dt&&dt[D].forEach((t=>{if(M.has(t.name))H(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=oa(t.name,"color",t.color);M.set(t.name,e),z.set(t.name,e)}catch(e){H(ge(e,{additional:{name:t.name}}))}}));for(const[t,e]of T)z.has(t)||z.set(t,e);O.subscribe((t=>{if(t&&!z.has(t)){const e=T.get(t);z.set(t,e);const n=B.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const ht=null===(l=null==d?void 0:d.card)||void 0===l?void 0:l.timers;if(ht&&"undefined"!=typeof document){const t=J=new Lc({logError:H,applyVars:U,hasVariableWithType:function(t,e){const n=z.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=z.get(t);n?n.setValue(e):H(ge(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:Z});ht.forEach((e=>t.createTimer(e)))}let pt;return _t((()=>{Gc++,1===Gc&&(window.addEventListener("keydown",Kc),window.addEventListener("pointerdown",Yc)),(()=>{var t;const e=null===(t=null==d?void 0:d.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void H(ge(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=Hs(t.condition,{startRule:"JsonStringContents"}),i=il(r);if(!i.length)return void H(ge(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));he(i.map((t=>z.get(t)||at(t))),(()=>{const t=Dc(z,r);return t.warnings.forEach(H),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=U(t);e.log_id&&X(e)})),e=Boolean(r.value)):H(ge(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){H(ge(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else H(ge(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),bt((()=>{Gc--,Gc||(window.removeEventListener("keydown",Kc),window.removeEventListener("pointerdown",Yc)),J&&J.destroy(),L.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,u=t.id),"json"in t&&n(9,d=t.json),"platform"in t&&n(12,h=t.platform),"theme"in t&&n(10,f=t.theme),"globalVariablesController"in t&&n(13,g=t.globalVariablesController),"mix"in t&&n(0,m=t.mix),"customization"in t&&n(14,v=t.customization),"builtinProtocols"in t&&n(15,y=t.builtinProtocols),"extensions"in t&&n(16,$=t.extensions),"onError"in t&&n(17,_=t.onError),"onStat"in t&&n(18,b=t.onStat),"onCustomAction"in t&&n(19,w=t.onCustomAction),"onComponent"in t&&n(20,x=t.onComponent),"typefaceProvider"in t&&n(21,k=t.typefaceProvider),"fetchInit"in t&&n(22,E=t.fetchInit),"tooltipRoot"in t&&n(23,A=t.tooltipRoot),"customComponents"in t&&n(24,C=t.customComponents)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|4&t.$$.dirty[1]&&("light"===f||"dark"===f?n(32,D=f):"system"===f?"undefined"!=typeof matchMedia?(j||(n(33,j=matchMedia("(prefers-color-scheme: dark)")),j.addListener(F)),n(32,D=j.matches?"dark":"light")):n(32,D="light"):H(ge(new Error("Unsupported theme")))),2&t.$$.dirty[1]&&D&&(dt&&dt[D].forEach((t=>{const e=z.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,I=!1);const t=function(t){if(!t)return ge(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ge(new Error("Missing card"));if(!e.states||!e.states.length)return ge(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in _s)return ge(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ge(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ge(new Error("Missing state_id"),{additional:{index:t}})}return null}(d);t&&(n(1,I=!0),H(t))}512&t.$$.dirty[0]&&(r=d.templates||{}),1073742336&t.$$.dirty[0]&&(null===n(30,s=null==d?void 0:d.card)||void 0===s?void 0:s.variables)&&Array.isArray(d.card.variables)&&d.card.variables!==ut&&d.card.variables.forEach((t=>{t&&t.name&&!M.has(t.name)&&ct(t)})),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(34,i=null===n(31,c=null==d?void 0:d.card)||void 0===c?void 0:c.states),6&t.$$.dirty[0]|8&t.$$.dirty[1]&&(!i||I||S||n(5,pt={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:i.map((t=>({state_id:t.state_id.toString(),div:t.div})))}))},[m,I,S,L,K,pt,o,V,{},d,f,u,h,g,v,y,$,_,b,w,x,k,E,A,C,function(t){n(10,f=t)},function(){return new Map},function(){return new Map},function(t){n(9,d=t)},function(t){X(U(t))},s,c,D,j,i]}const Qc=class extends ce{constructor(t){super(),se(this,t,Zc,Wc,d,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,setTheme:25,getDebugVariables:26,getDebugAllVariables:27,setData:28,execAction:29},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[25]}get getDebugVariables(){return this.$$.ctx[26]}get getDebugAllVariables(){return this.$$.ctx[27]}get setData(){return this.$$.ctx[28]}get execAction(){return this.$$.ctx[29]}};class tu{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 Pt()}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 eu(t){return t instanceof HTMLElement}function nu(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(eu);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const i=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const o=Number(this.params.repeat_count||-1),a=()=>{var t,i;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(i=this.wrapper.parentNode)||void 0===i||i.removeChild(this.wrapper),this.wrapper=void 0);const o=new Error("Failed to load lottie animation");o.level="error",o.additional={url:this.params.lottie_url},n.logError(o)};this.loadData().then((e=>{const n=this.animItem=t({container:i,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==o){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==o&&e===o?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const ru=["target","hydrate"];function iu(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,ru),i=new Qc({target:e,props:r,hydrate:n});return{$destroy(){i.$destroy()},execAction(t){i.execAction(t)},setTheme(t){i.setTheme(t)},setData(t){i.setData(t)}}}var ou=e.Hy,au=e.M,su=e.Os,lu=e._0,cu=e.sY;export{ou as SizeProvider,au as createGlobalVariablesController,su as createVariable,lu as lottieExtensionBuilder,cu as render};
1
+ 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)},e={};function n(){}t.d(e,{Hy:()=>$u,M:()=>ou,Os:()=>va,_0:()=>_u,sY:()=>xu});const r=t=>t;function o(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(i)}function l(t){return"function"==typeof t}let c;function 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),o=1;o<e;o++)r[o-1]=arguments[o];if(null==t){for(const t of r)t(void 0);return n}const i=t.subscribe(...r);return i.unsubscribe?()=>i.unsubscribe():i}function p(t,e,n){t.$$.on_destroy.push(h(e,n))}function f(t,e,n,r){if(t){const o=g(t,e,n,r);return t[0](o)}}function g(t,e,n,r){return t[1]&&r?o(n.ctx.slice(),t[1](r(e))):n.ctx}function m(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function v(t,e,n,r,o,i){if(o){const a=g(e,n,r,i);t.p(a,o)}}function y(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function $(t,e,n){return t.set(n),e}function 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 C(t){let e;return 0===k.size&&x(E),{promise:new Promise((n=>{k.add(e={c:t,f:n})})),abort(){k.delete(e)}}}const A="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function j(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class V{constructor(t){j(this,"_listeners","WeakMap"in A?new WeakMap:void 0),j(this,"_observer",void 0),j(this,"options",void 0),this.options=t}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{for(const n of t){var e;V.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}}))}}function D(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}V.entries="WeakMap"in A?new WeakMap:void 0;let F=!1;function P(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function S(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function I(t){const e=R("style");return e.textContent="/* empty */",function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(S(t),e),e.sheet}function N(t,e){if(F){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:P(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const s=a+1;n[s]=t,o=Math.max(s,o)}const i=[],a=[];let s=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function O(t,e,n){t.insertBefore(e,n||null)}function M(t,e,n){F&&!n?N(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function T(t){t.parentNode&&t.parentNode.removeChild(t)}function z(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function R(t){return document.createElement(t)}function B(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function U(){return L(" ")}function H(){return L("")}function W(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function q(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const J=["width","height"];function G(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)null==e[r]?t.removeAttribute(r):"style"===r?t.style.cssText=e[r]:"__value"===r?t.value=t[r]=e[r]:n[r]&&n[r].set&&-1===J.indexOf(r)?t[r]=e[r]:q(t,r,e[r])}function K(t,e){Object.keys(e).forEach((n=>{!function(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:q(t,e,n)}(t,n,e[n])}))}function Y(t){return/-/.test(t)?K:G}function X(t){return Array.from(t.childNodes)}function Z(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Z(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function tt(t,e,n,r){return Q(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function et(t,e,n){return tt(t,e,n,R)}function nt(t,e,n){return tt(t,e,n,B)}function rt(t,e){return Q(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>L(e)),!0)}function ot(t){return rt(t," ")}function it(t,e,n){for(let r=n;r<t.length;r+=1){const n=t[r];if(8===n.nodeType&&n.textContent.trim()===e)return r}return-1}function at(t,e){e=""+e,t.data!==e&&(t.data=e)}function st(t,e){t.value=null==e?"":e}function lt(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function ct(t,e,n){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}n&&void 0===e||(t.selectedIndex=-1)}class ut{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];D(this,"is_svg",!1),D(this,"e",void 0),D(this,"n",void 0),D(this,"t",void 0),D(this,"a",void 0),this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=B(e.nodeName):this.e=R(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)O(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(T)}}class dt extends ut{constructor(){let t=arguments.length>1?arguments[1]:void 0;super(arguments.length>0&&void 0!==arguments[0]&&arguments[0]),D(this,"l",void 0),this.e=this.n=null,this.l=t}c(t){this.l?this.n=this.l:super.c(t)}i(t){for(let e=0;e<this.n.length;e+=1)M(this.t,this.n[e],t)}}function ht(t,e){return new t(e)}const pt=new Map;let ft,gt=0;function mt(t,e,n,r,o,i,a){let s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;const l=16.666/r;let c="{\n";for(let t=0;t<=1;t+=l){const r=e+(n-e)*i(t);c+=100*t+"%{".concat(a(r,1-r),"}\n")}const 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}=pt.get(h)||function(t,e){const n={stylesheet:I(e),rules:{}};return pt.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(o,"ms 1 both"),gt+=1,d}function vt(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),gt-=o,gt||x((()=>{gt||(pt.forEach((t=>{const{ownerNode:e}=t.stylesheet;e&&T(e)})),pt.clear())})))}function yt(t){ft=t}function $t(){if(!ft)throw new Error("Function called outside component initialization");return ft}function bt(t){$t().$$.on_mount.push(t)}function _t(t){$t().$$.on_destroy.push(t)}function wt(t,e){return $t().$$.context.set(t,e),e}function xt(t){return $t().$$.context.get(t)}function kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Et=[],Ct=[];let At=[];const jt=[],Vt=Promise.resolve();let Dt=!1;function Ft(){Dt||(Dt=!0,Vt.then(Mt))}function Pt(){return Ft(),Vt}function St(t){At.push(t)}const It=new Set;let Nt,Ot=0;function Mt(){if(0!==Ot)return;const t=ft;do{try{for(;Ot<Et.length;){const t=Et[Ot];Ot++,yt(t),Tt(t.$$)}}catch(t){throw Et.length=0,Ot=0,t}for(yt(null),Et.length=0,Ot=0;Ct.length;)Ct.pop()();for(let t=0;t<At.length;t+=1){const e=At[t];It.has(e)||(It.add(e),e())}At.length=0}while(Et.length);for(;jt.length;)jt.pop()();Dt=!1,It.clear(),yt(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(St)}}function zt(){return Nt||(Nt=Promise.resolve(),Nt.then((()=>{Nt=null}))),Nt}function Rt(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 Bt=new Set;let Lt;function Ut(){Lt={r:0,c:[],p:Lt}}function Ht(){Lt.r||s(Lt.c),Lt=Lt.p}function Wt(t,e){t&&t.i&&(Bt.delete(t),t.i(e))}function qt(t,e,n,r){if(t&&t.o){if(Bt.has(t))return;Bt.add(t),Lt.c.push((()=>{Bt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Jt={duration:0};function Gt(t,e,o){const i={direction:"in"};let a,s,c=e(t,o,i),u=!1,d=0;function h(){a&&vt(t,a)}function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Jt;p&&(a=mt(t,0,1,o,e,i,p,d++)),l(0,1);const f=w()+e,g=f+o;s&&s.abort(),u=!0,St((()=>Rt(t,!0,"start"))),s=C((e=>{if(u){if(e>=g)return l(1,0),Rt(t,!0,"end"),h(),u=!1;if(e>=f){const t=i((e-f)/o);l(t,1-t)}}return u}))}let f=!1;return{start(){f||(f=!0,vt(t),l(c)?(c=c(i),zt().then(p)):p())},invalidate(){f=!1},end(){u&&(h(),u=!1)}}}function Kt(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function Yt(t,e){qt(t,1,1,(()=>{e.delete(t.key)}))}function Xt(t,e,n,r,o,i,a,l,c,u,d,h){let p=t.length,f=i.length,g=p;const m={};for(;g--;)m[t[g].key]=g;const v=[],y=new Map,$=new Map,b=[];for(g=f;g--;){const t=h(o,i,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){Wt(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,o=n.key;e===n?(d=e.first,p--,f--):y.has(o)?!a.has(r)||_.has(r)?x(e):w.has(o)?p--:$.get(r)>$.get(o)?(w.add(r),x(e)):(_.add(o),p--):(c(n,a),p--)}for(;p--;){const e=t[p];y.has(e.key)||c(e,a)}for(;f;)x(v[f-1]);return s(b),v}function Zt(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],s=e[i];if(s){for(const t in a)t in s||(r[t]=1);for(const t in s)o[t]||(n[t]=s[t],o[t]=1);t[i]=s}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Qt;function te(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 ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(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 re(t){t&&t.c()}function oe(t,e){t&&t.l(e)}function ie(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),St((()=>{const e=t.$$.on_mount.map(i).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):s(e),t.$$.on_mount=[]})),o.forEach(St)}function ae(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 se(t,e,r,o,i,l,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=ft;yt(t);const h=t.$$={fragment:null,ctx:[],props:l,update:n,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(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&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&function(t,e){-1===t.$$.dirty[0]&&(Et.push(t),Ft(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,s(h.before_update),h.fragment=!!o&&o(h.ctx),e.target){if(e.hydrate){F=!0;const t=X(e.target);h.fragment&&h.fragment.l(t),t.forEach(T)}else h.fragment&&h.fragment.c();e.intro&&Wt(t.$$.fragment),ie(t,e.target,e.anchor),F=!1,Mt()}yt(d)}function le(t,e,n,r){var o;const i=null===(o=n[t])||void 0===o?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(Qt=class extends HTMLElement{constructor(t,e,n){super(),ne(this,"$$ctor",void 0),ne(this,"$$s",void 0),ne(this,"$$c",void 0),ne(this,"$$cn",!1),ne(this,"$$d",{}),ne(this,"$$r",!1),ne(this,"$$p_d",{}),ne(this,"$$l",{}),ne(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn)return;function t(t){return()=>{let e;return{c:function(){e=R("slot"),"default"!==t&&q(e,"name",t)},m:function(t,n){O(t,e,n)},d:function(t){t&&T(e)}}}}const e={},n=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const o of this.$$s)o in n&&(e[o]=[t(o)]);for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=le(a,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ee(ee({},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 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]=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 ce{constructor(){ne(this,"$$",void 0),ne(this,"$$set",void 0)}$destroy(){ae(this,1),this.$destroy=n}$on(t,e){if(!l(e))return n;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ue=[];function de(t){let e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const o=new Set;function i(n){if(i=n,((r=t)!=r?i==i:r!==i||r&&"object"==typeof r||"function"==typeof r)&&(t=n,e)){const e=!ue.length;for(const e of o)e[1](),ue.push(e,t);if(e){for(let t=0;t<ue.length;t+=2)ue[t][0](ue[t+1]);ue.length=0}}var r,i}function a(e){i(e(t))}return{set:i,update:a,subscribe:function(s){const l=[s,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n];return o.add(l),1===o.size&&(e=r(i,a)||n),s(t),()=>{o.delete(l),0===o.size&&e&&(e(),e=null)}}}}function he(t,e,r){const o=!Array.isArray(t),i=o?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return c=(t,r)=>{let c=!1;const u=[];let d=0,p=n;const f=()=>{if(d)return;p();const i=e(o?u[0]:u,t,r);a?t(i):p=l(i)?i:n},g=i.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:de(r,c).subscribe};var c}const pe={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"},fe=Symbol("root");function ge(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 me={"text-range":"divkit-faf07",text:"divkit-d9b0e",text_halign_start:"divkit-e70de",text_halign_center:"divkit-e1659",text_halign_end:"divkit-e48b4",text_valign_start:"divkit-b7b70",text_valign_center:"divkit-ef58e",text_valign_end:"divkit-d4206",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_multiline:"divkit-ee8e3",text_truncate_none:"divkit-c6ea1",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002","text_has-focus-color":"divkit-cb341"},ve={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 ye(t){if(!t)return;let e="";for(const n in t)if(t.hasOwnProperty(n)){if(!t[n]&&0!==t[n])continue;e&&(e+=";"),e+=n+":"+String(t[n])}return e||void 0}function $e(t){if("number"!=typeof t&&"string"!=typeof t||!t)return"0";const e=Number(t);return isNaN(e)?"0":Math.ceil(1e3*e)/1e4+"em"}function be(t){let e=$e(t);return"0"===e&&(e+="em"),e}function _e(t,e){for(;t.length<e;)t="0"+t;return t}function we(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=xe(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 xe(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,o,i]=e,a=2===r.length?r:r+r,s=2===o.length?o:o+o,l=2===i.length?i:i+i,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(s,16),b:parseInt(l,16)}}const[t,n,r,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,s=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(s,16)}}return null}function ke(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 Ee=Boolean;function Ce(t){if(1===t.length&&"solid"===t[0].type)return{color:we(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=we(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(Ee);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>we(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("'+ke(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(Ee);if(!n.length)return;const r=t.bg.radius;let o;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?o=be(r.value):"relative"===r.type&&(o=Ae[r.value]));const i=je(t.bg.center_x),a=je(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(o||"farthest-corner"," at ").concat(i," ").concat(a)+","+n.map((t=>we(t))).join(",")+")"}}({bg:t}):void 0)).filter(Ee).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 je(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return be(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function 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 Fe(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Pe(t,e){return e.has(t)}function Se(t,e,n){return"number"==typeof e&&(t&&e>0&&e<=100||!t&&e>=0&&e<100)?e:n}function Ie(t){return 0!==t.is_enabled&&!1!==t.is_enabled&&void 0!==t.index}function Ne(t,e){e&&t.push(e)}function Oe(t,e,n){const r=[];Ne(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Ne(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const Me=Symbol("state");function Te(t,e){var n,r;const o=t.top||0,i=(null!==(n="ltr"===e?t.end:t.start)&&void 0!==n?n:t.right)||0,a=t.bottom||0,s=(null!==(r="ltr"===e?t.start:t.end)&&void 0!==r?r:t.left)||0;return 0===o&&0===i&&0===a&&0===s?"":$e(o)+" "+$e(i)+" "+$e(a)+" "+$e(s)}function ze(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Re(t){return ze(t)&&t>=0}function Be(t,e,n){var r,o;if(!t)return n;const i=[t.top,null!==(r="ltr"===e?t.end:t.start)&&void 0!==r?r:t.right,t.bottom,null!==(o="ltr"===e?t.start:t.end)&&void 0!==o?o:t.left];for(let t=0;t<i.length;++t)if(i[t]&&!Re(i[t]))return n;return Te(t,e)}function Le(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Ue=Object.prototype.hasOwnProperty;function He(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Ue.call(e,o)||!He(t[o],e[o]))return!1}return!0}function We(t,e){return He(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 Je(t,e){const n=Number(t);return isNaN(n)?e:n}function Ge(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Ge(t))})):e.push(t),e}function Ke(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]]&&!Re(t[n[r]]))return e;return t}function Ye(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]].map((t=>$e((t||e)/n*10))).join(" ")}function Xe(t){return 0!==t.is_enabled&&!1!==t.is_enabled}let Ze;function Qe(){return"undefined"!=typeof matchMedia&&(Ze||(Ze=window.matchMedia("(prefers-reduced-motion)")),Ze.matches)}function tn(){}const en=Symbol("action");function nn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function rn(t){var e;let n,r,i,a,l,c,u,d;const h=t[18].default,p=f(h,t,t[17],null);let g=[{class:r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["root_disabled-context-menu"]:"")},{style:t[2]},{role:i=t[8]?"button":null},{tabindex:a=t[8]?0:null},t[3]],$={};for(let t=0;t<g.length;t+=1)$=o($,g[t]);return{c(){n=R("span"),p&&p.c(),this.h()},l(t){n=et(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=X(n);p&&p.l(e),e.forEach(T),this.h()},h(){G(n,$)},m(e,r){M(e,n,r),p&&p.m(n,null),t[26](n),c=!0,u||(d=[b(l=t[4].call(null,n)),W(n,"click",t[22]),W(n,"keydown",t[10]),W(n,"focus",t[23]),W(n,"blur",t[24])],u=!0)},p(t,e){var o;p&&p.p&&(!c||131072&e[0])&&v(p,h,t,t[17],c?m(h,t[17],e,null):y(t[17]),null),G(n,$=Zt(g,[(!c||291&e[0]&&r!==(r=t[1]+(t[8]?" ".concat(t[5]?pe.root__clickable:pe["root__clickable-no-transition"]," ").concat(pe.root__unselectable):"")+" "+(null!==(o=t[0])&&void 0!==o&&o.length?pe["root_disabled-context-menu"]:"")))&&{class:r},(!c||4&e[0])&&{style:t[2]},(!c||256&e[0]&&i!==(i=t[8]?"button":null))&&{role:i},(!c||256&e[0]&&a!==(a=t[8]?0:null))&&{tabindex:a},8&e[0]&&t[3]]))},i(t){c||(Wt(p,t),c=!0)},o(t){qt(p,t),c=!1},d(e){e&&T(n),p&&p.d(e),t[26](null),u=!1,s(d)}}}function on(t){var e;let n,r,i,a,l,c;const u=t[18].default,d=f(u,t,t[17],null);let h=[{href:t[7]},{target:t[9]},{style:t[2]},{class:r=t[1]+" "+(t[5]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(e=t[0])&&void 0!==e&&e.length?pe["root_disabled-context-menu"]:"")},t[3]],p={};for(let t=0;t<h.length;t+=1)p=o(p,h[t]);return{c(){n=R("a"),d&&d.c(),this.h()},l(t){n=et(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=X(n);d&&d.l(e),e.forEach(T),this.h()},h(){G(n,p)},m(e,r){M(e,n,r),d&&d.m(n,null),t[25](n),a=!0,l||(c=[b(i=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])],l=!0)},p(t,e){var o;d&&d.p&&(!a||131072&e[0])&&v(d,u,t,t[17],a?m(u,t[17],e,null):y(t[17]),null),G(n,p=Zt(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]?pe.root__clickable:pe["root__clickable-no-transition"])+" "+(null!==(o=t[0])&&void 0!==o&&o.length?pe["root_disabled-context-menu"]:"")))&&{class:r},8&e[0]&&t[3]]))},i(t){a||(Wt(d,t),a=!0)},o(t){qt(d,t),a=!1},d(e){e&&T(n),d&&d.d(e),t[25](null),l=!1,s(c)}}}function an(t){let e,n,r,o;const i=[on,rn],a=[];function s(t,e){return t[7]?0:1}return e=s(t),n=a[e]=i[e](t),{c(){n.c(),r=H()},l(t){n.l(t),r=H()},m(t,n){a[e].m(t,n),M(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?a[e].p(t,o):(Ut(),qt(a[l],1,1,(()=>{a[l]=null})),Ht(),n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Wt(n,1),n.m(r.parentNode,r))},i(t){o||(Wt(n),o=!0)},o(t){qt(n),o=!1},d(t){t&&T(r),a[e].d(t)}}}function sn(t,e,n){let{$$slots:r={},$$scope:o}=e,{componentContext:i}=e,{id:a=""}=e,{actions:s}=e,{doubleTapActions:l}=e,{longTapActions:c}=e,{cls:u=""}=e,{style:d=null}=e,{attrs:h}=e,{use:p=tn}=e,{customAction:f=null}=e,{isNativeActionAnimation:g=!0}=e,{hasInnerFocusable:m=!1}=e;const v=xt(fe),y=xt(en);let $;wt(en,{hasAction:()=>Boolean(y.hasAction()||(null==s?void 0:s.length))});let b,_="",w=-1,x=null,k=!1,E=!1;async function C(t){y.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==f?void 0:f(t))?t.preventDefault():s&&(s.some((t=>{if(null==t?void 0:t.typed)return!0;const e=null==t?void 0:t.url;if(!e)return!1;const n=Fe(e);return n&&!Pe(n,v.getBuiltinProtocols())}))&&t.preventDefault(),i.execAnyActions(s)))}function A(t){y.hasAction()||void 0!==t.button&&0!==t.button||i.execAnyActions(l,{processUrls:!0})}function j(t){t.touches.length>1||(x=nn(t),k=!1,w=Date.now())}function V(t){if(!x)return;const e=nn(t);(Math.abs(x.x-e.x)>8||Math.abs(x.y-e.y)>8)&&(k=!0)}function D(){!x||w<0||(!k&&Date.now()-w>=400&&i.execAnyActions(c,{processUrls:!0}),x=null,w=-1)}return bt((()=>{a&&!m&&v.registerFocusable(a,{focus(){$&&(_||E)&&$.focus()}})})),_t((()=>{a&&!m&&v.unregisterFocusable(a)})),t.$$set=t=>{"componentContext"in t&&n(11,i=t.componentContext),"id"in t&&n(12,a=t.id),"actions"in t&&n(13,s=t.actions),"doubleTapActions"in t&&n(14,l=t.doubleTapActions),"longTapActions"in t&&n(0,c=t.longTapActions),"cls"in t&&n(1,u=t.cls),"style"in t&&n(2,d=t.style),"attrs"in t&&n(3,h=t.attrs),"use"in t&&n(4,p=t.use),"customAction"in t&&n(15,f=t.customAction),"isNativeActionAnimation"in t&&n(5,g=t.isNativeActionAnimation),"hasInnerFocusable"in t&&n(16,m=t.hasInnerFocusable),"$$scope"in t&&n(17,o=t.$$scope)},t.$$.update=()=>{if(43136&t.$$.dirty[0]){if(Array.isArray(s)&&(null==s?void 0:s.length))for(let t=0;t<s.length;++t){const e=s[t].url;if(e){n(7,_=e),n(9,b=s[t].target||void 0);break}}Array.isArray(s)&&(null==s?void 0:s.length)&&y.hasAction()&&(n(7,_=""),i.logError(ge(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:s}}))),n(8,E=Boolean(f)),_&&!Pe(Fe(_),v.getBuiltinProtocols())?(n(7,_=""),n(8,E=!0)):!_&&Array.isArray(s)&&(null==s?void 0:s.length)&&(n(8,E=!0),s.some((t=>t.url||t.typed))||i.logError(ge(new Error("The component has a list of actions, but does not have a real action"),{level:"warn",additional:{actions:s}})))}16833&t.$$.dirty[0]&&$&&(_||E?$.addEventListener("click",C):$.removeEventListener("click",C),(null==l?void 0:l.length)?$.addEventListener("dblclick",A):$.removeEventListener("dblclick",A),(null==c?void 0:c.length)?($.addEventListener("touchstart",j,{passive:!0}),$.addEventListener("touchmove",V,{passive:!0}),$.addEventListener("touchend",D,{passive:!0}),$.addEventListener("touchcancel",D,{passive:!0})):($.removeEventListener("touchstart",j),$.removeEventListener("touchmove",V),$.removeEventListener("touchend",D),$.removeEventListener("touchcancel",D)))},[c,u,d,h,p,g,$,_,E,b,function(t){const e=t.target;e instanceof HTMLElement&&("INPUT"===e.tagName||"true"===e.contentEditable)||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(s)&&s.length&&(i.execAnyActions(s),t.preventDefault())},i,a,s,l,f,m,o,r,function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(e){kt.call(this,t,e)},function(t){Ct[t?"unshift":"push"]((()=>{$=t,n(6,$)}))},function(t){Ct[t?"unshift":"push"]((()=>{$=t,n(6,$)}))}]}const ln=class extends ce{constructor(t){super(),se(this,t,sn,an,d,{componentContext:11,id:12,actions:13,doubleTapActions:14,longTapActions:0,cls:1,style:2,attrs:3,use:4,customAction:15,isNativeActionAnimation:5,hasInnerFocusable:16},null,[-1,-1])}},cn={"outer-background":"divkit-bf253","outer-background_clip":"divkit-dcad7","outer-background__item":"divkit-b921d","outer-background__item_hidden":"divkit-cd613"};function un(t){return ze(t)&&t>0}function dn(t,e){return t.map((t=>{if(t)if("blur"===t.type){if(un(t.radius))return"blur(".concat(be(t.radius/2),")")}else{if("rtl_mirror"===t.type)return;e(ge(new Error("Unknown filter"),{level:"warn",additional:{filter:t.type}}))}else e(ge(new Error("Incorrect filter"),{level:"warn"}))})).filter(Boolean).join(" ")}function hn(t,e,n){const r=t.slice();return r[7]=e[n],r}function pn(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=cn["outer-background__item"]),q(e,"style",r=ye(t[7].style))},m(t,n){M(t,e,n)},p(t,n){2&n&&r!==(r=ye(t[7].style))&&q(e,"style",r)},d(t){t&&T(e)}}}function fn(t){let e,n,r,o,i,a;return{c(){e=R("img"),this.h()},l(t){e=et(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){u(e.src,n=t[7].image_url)||q(e,"src",n),q(e,"alt",""),q(e,"aria-hidden","true"),q(e,"loading","lazy"),q(e,"decoding","async"),q(e,"class",r=cn["outer-background__item"]),q(e,"style",o=ye(t[7].style))},m(n,r){M(n,e,r),i||(a=W(e,"error",t[2]),i=!0)},p(t,r){2&r&&!u(e.src,n=t[7].image_url)&&q(e,"src",n),2&r&&o!==(o=ye(t[7].style))&&q(e,"style",o)},d(t){t&&T(e),i=!1,a()}}}function gn(t){let e;function n(t,e){return t[7].image_url?fn:pn}let r=n(t),o=r(t);return{c(){o.c(),e=H()},l(t){o.l(t),e=H()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&T(e),o.d(t)}}}function mn(t){let e,r,o=Kt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=gn(hn(t,o,e));return{c(){e=R("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0});var n=X(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(T),this.h()},h(){q(e,"class",r=cn["outer-background"]+(t[0]?" "+cn["outer-background_clip"]:"")),lt(e,"border-radius",t[0])},m(t,n){M(t,e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null)},p(t,n){let[a]=n;if(6&a){let n;for(o=Kt(t[1]),n=0;n<o.length;n+=1){const r=hn(t,o,n);i[n]?i[n].p(r,a):(i[n]=gn(r),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=o.length}1&a&&r!==(r=cn["outer-background"]+(t[0]?" "+cn["outer-background_clip"]:""))&&q(e,"class",r),1&a&&lt(e,"border-radius",t[0])},i:n,o:n,d(t){t&&T(e),z(i,t)}}}function vn(t,e,n){let r,{direction:o}=e,{componentContext:i}=e,{background:a=[]}=e,{radius:s=""}=e;return xt(fe),t.$$set=t=>{"direction"in t&&n(3,o=t.direction),"componentContext"in t&&n(4,i=t.componentContext),"background"in t&&n(5,a=t.background),"radius"in t&&n(0,s=t.radius)},t.$$.update=()=>{56&t.$$.dirty&&n(1,r=a.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=Ce([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=dn(t.filters,i.logError),"rtl"===o&&t.filters.some((t=>"rtl_mirror"===t.type))&&(e.transform="scale(-1,1)")))}return n})))},[s,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add(cn["outer-background__item_hidden"])},o,i,a]}const yn=class extends ce{constructor(t){super(),se(this,t,vn,mn,d,{direction:3,componentContext:4,background:5,radius:0})}},$n=t=>({hasCustomFocus:256&t[0]}),bn=t=>({focusHandler:t[40],blurHandler:t[41],hasCustomFocus:t[8]});function _n(t){let e,n;return e=new ln({props:{componentContext:t[0],id:t[0].json.id,use:t[39],cls:t[1]+" "+Oe("outer",ve,t[18]),style:ye(t[17]),actions:t[14],doubleTapActions:t[15],longTapActions:t[16],attrs:t[10],hasInnerFocusable:t[2],isNativeActionAnimation:!t[7].length||Vn(t[7]),$$slots:{default:[kn]},$$scope:{ctx:t}}}),e.$on("focus",t[40]),e.$on("blur",t[41]),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),1&n[0]&&(r.id=t[0].json.id),262146&n[0]&&(r.cls=t[1]+" "+Oe("outer",ve,t[18])),131072&n[0]&&(r.style=ye(t[17])),16384&n[0]&&(r.actions=t[14]),32768&n[0]&&(r.doubleTapActions=t[15]),65536&n[0]&&(r.longTapActions=t[16]),1024&n[0]&&(r.attrs=t[10]),4&n[0]&&(r.hasInnerFocusable=t[2]),128&n[0]&&(r.isNativeActionAnimation=!t[7].length||Vn(t[7])),2937&n[0]|268435456&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wn(t){let e,n;return e=new yn({props:{componentContext:t[0],direction:t[9],background:t[5],radius:t[4]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.direction=t[9]),32&n[0]&&(r.background=t[5]),16&n[0]&&(r.radius=t[4]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function xn(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=ve.outer__border),q(e,"style",r=ye(t[3]))},m(t,n){M(t,e,n)},p(t,n){8&n[0]&&r!==(r=ye(t[3]))&&q(e,"style",r)},d(t){t&&T(e)}}}function kn(t){let e,n,r,o=t[6]&&wn(t);const i=t[120].default,a=f(i,t,t[121],bn);let s=t[11]&&xn(t);return{c(){o&&o.c(),e=H(),a&&a.c(),s&&s.c(),n=H()},l(t){o&&o.l(t),e=H(),a&&a.l(t),s&&s.l(t),n=H()},m(t,i){o&&o.m(t,i),M(t,e,i),a&&a.m(t,i),s&&s.m(t,i),M(t,n,i),r=!0},p(t,l){t[6]?o?(o.p(t,l),64&l[0]&&Wt(o,1)):(o=wn(t),o.c(),Wt(o,1),o.m(e.parentNode,e)):o&&(Ut(),qt(o,1,1,(()=>{o=null})),Ht()),a&&a.p&&(!r||256&l[0]|268435456&l[3])&&v(a,i,t,t[121],r?m(i,t[121],l,$n):y(t[121]),bn),t[11]?s?s.p(t,l):(s=xn(t),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},i(t){r||(Wt(o),Wt(a,t),r=!0)},o(t){qt(o),qt(a,t),r=!1},d(t){t&&(T(e),T(n)),o&&o.d(t),a&&a.d(t),s&&s.d(t)}}}function En(t){let e,n,r=!t[12]&&!t[13]&&_n(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[12]||t[13]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),12288&n[0]&&Wt(r,1)):(r=_n(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}const Cn={left:"start",center:"center",right:"end",start:"start",end:"end"},An={left:"end",center:"center",right:"start",start:"start",end:"end"},jn={top:"start",center:"center",bottom:"end",baseline:"baseline"};function Vn(t){return t.some((t=>"native"===t.name))}function Dn(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H,W,q,J,G,K,Y,X=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n;t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>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,{componentContext:vt}=e,{cls:yt=""}=e,{style:$t}=e,{layoutParams:bt={}}=e,{customDescription:wt=!1}=e,{customPaddings:kt=!1}=e,{customActions:Et=""}=e,{additionalPaddings:Ct=null}=e,{heightByAspect:At=!1}=e,{parentOf:jt}=e,{parentOfSimpleMode:Vt}=e,{replaceItems:Dt}=e,{hasInnerFocusable:Ft=!1}=e;const St=xt(fe),It=xt(Me),Nt=St.isPointerFocus;p(t,Nt,(t=>r(127,F=t)));const Ot=St.direction;let Mt,Tt;p(t,Ot,(t=>r(9,J=t)));let zt,Rt,Bt,Lt,Ut,Ht,Wt,qt,Jt,Gt,Kt,Yt,Xt,Zt,Qt,te,ee,ne,re,oe,ie=null,ae=[],se={},le={},ce=!1,ue=1,de="transparent",pe=0,me={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},ve="",ye=null,_e="",xe={},ke=0,Ae=0,je=0,Ve=!1,De=!1,Ne={},Oe=0,ze=0,Ue=0,Ze=!1,tn=!1,en=1,nn=[],rn=!1,on=!1,an=[],sn=[],ln=[],cn=[],un=[],dn=[],hn="",pn=!1,fn="visible",gn=0,mn=0,vn=!1,yn=null;function $n(t,e){if(!Array.isArray(jt)||!Dt)return;if(Vt&&1!==(Array.isArray(e)&&e.length||0))return;const n=jt.findIndex((e=>(null==e?void 0:e.id)===t)),o=jt.slice();o.splice(n,1,...e||[]),r(42,jt=o),Dt(o)}function bn(t){const e=Je(t.start_value,1),n=Je(t.end_value,1),o=Le(t.start_delay,0),i=Qe()?0:Le(t.duration,300),a=qe(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return r(86,Zt=e),r(87,Qt=n),"opacity ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"scale":return r(88,te=e),r(89,ee=n),"transform ".concat(i,"ms ").concat(a," ").concat(o,"ms");case"native":case"no_animation":return"";default:return vt.logError(ge(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}function _n(){if(ie&&Mt){const t=St.getExtensionContext();ie.forEach((e=>{var n;null===(n=e.unmountView)||void 0===n||n.call(e,Mt,t)})),ie=null}}return _t((()=>{var t;ae.forEach((t=>{St.unregisterParentOf(t)})),r(53,ae=[]),null===(t=vt.json.tooltips)||void 0===t||t.forEach((t=>{St.unregisterTooltip(t)})),_n()})),t.$$set=t=>{"componentContext"in t&&r(0,vt=t.componentContext),"cls"in t&&r(1,yt=t.cls),"style"in t&&r(43,$t=t.style),"layoutParams"in t&&r(44,bt=t.layoutParams),"customDescription"in t&&r(45,wt=t.customDescription),"customPaddings"in t&&r(46,kt=t.customPaddings),"customActions"in t&&r(47,Et=t.customActions),"additionalPaddings"in t&&r(48,Ct=t.additionalPaddings),"heightByAspect"in t&&r(49,At=t.heightByAspect),"parentOf"in t&&r(42,jt=t.parentOf),"parentOfSimpleMode"in t&&r(50,Vt=t.parentOfSimpleMode),"replaceItems"in t&&r(51,Dt=t.replaceItems),"hasInnerFocusable"in t&&r(2,Ft=t.hasInnerFocusable),"$$scope"in t&&r(121,mt=t.$$scope)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]|262144&t.$$.dirty[2]&&vt.json&&bt&&(r(59,ye=null),r(60,_e=""),r(77,en=1),r(90,pn=!1),r(91,fn="visible"),r(92,gn=0),r(93,mn=0),r(94,ne=void 0),r(95,re=void 0),r(80,nn=vt.fakeElement?[]:vt.json.transition_triggers||["state_change","visibility_change"]),r(81,rn=Boolean(-1!==nn.indexOf("state_change")&&vt.json.id)),on=Boolean(-1!==nn.indexOf("visibility_change")&&vt.json.id)),1&t.$$.dirty[0]&&(r(36,o=vt.getDerivedFromVars(vt.json.focus)),tt(),tt=h(o,(t=>r(105,N=t)))),1&t.$$.dirty[0]&&(r(35,i=vt.getDerivedFromVars(vt.json.border)),ft(),ft=h(i,(t=>r(119,Y=t)))),1&t.$$.dirty[0]&&(r(34,a=vt.getDerivedFromVars(vt.json.paddings)),pt(),pt=h(a,(t=>r(118,K=t)))),1&t.$$.dirty[0]&&(r(33,s=vt.getDerivedFromVars(vt.json.margins)),dt(),dt=h(s,(t=>r(116,q=t)))),1&t.$$.dirty[0]&&(r(32,l=vt.getDerivedFromVars(vt.json.width)),ct(),ct=h(l,(t=>r(114,H=t)))),1&t.$$.dirty[0]&&(r(31,c=vt.getDerivedFromVars(vt.json.alignment_horizontal)),ht(),ht=h(c,(t=>r(117,G=t)))),1&t.$$.dirty[0]&&(r(30,u=vt.getDerivedFromVars(vt.json.height)),lt(),lt=h(u,(t=>r(113,U=t)))),1&t.$$.dirty[0]&&(r(29,d=vt.getDerivedFromVars(vt.json.alignment_vertical)),ut(),ut=h(d,(t=>r(115,W=t)))),1&t.$$.dirty[0]&&(r(28,f=vt.getDerivedFromVars(vt.json.alpha)),st(),st=h(f,(t=>r(112,L=t)))),1&t.$$.dirty[0]&&(r(27,g=vt.getDerivedFromVars(vt.json.accessibility)),at(),at=h(g,(t=>r(111,B=t)))),1&t.$$.dirty[0]&&(r(26,m=vt.getDerivedFromVars(vt.json.background)),it(),it=h(m,(t=>r(110,R=t)))),1&t.$$.dirty[0]&&(r(25,v=vt.getDerivedFromVars(vt.json.action)),rt(),rt=h(v,(t=>r(108,T=t)))),1&t.$$.dirty[0]&&(r(24,y=vt.getDerivedFromVars(vt.json.actions)),ot(),ot=h(y,(t=>r(109,z=t)))),1&t.$$.dirty[0]&&(r(23,$=vt.getDerivedFromVars(vt.json.doubletap_actions)),nt(),nt=h($,(t=>r(107,M=t)))),1&t.$$.dirty[0]&&(r(22,b=vt.getDerivedFromVars(vt.json.longtap_actions)),et(),et=h(b,(t=>r(106,O=t)))),1&t.$$.dirty[0]&&(r(21,_=vt.getDerivedFromVars(vt.json.action_animation)),Q(),Q=h(_,(t=>r(104,I=t)))),1&t.$$.dirty[0]&&(r(20,w=vt.getDerivedFromVars(vt.json.visibility)),Z(),Z=h(w,(t=>r(103,S=t)))),1&t.$$.dirty[0]&&(r(19,x=vt.getDerivedFromVars(vt.json.transform)),X(),X=h(x,(t=>r(102,P=t)))),4720640&t.$$.dirty[1]&&(ae.forEach((t=>{St.unregisterParentOf(t)})),r(53,ae=[]),jt&&jt.forEach((t=>{(null==t?void 0:t.id)&&(ae.push(t.id),St.registerParentOf(t.id,{replaceWith:$n,isSingleMode:Boolean(Vt)}))}))),264&t.$$.dirty[0]|260046848&t.$$.dirty[1]|67112960&t.$$.dirty[3]){const t=vn&&(null==N?void 0:N.border)?N.border:Y;let e={},n={},o=!1,i="";if(t){if(t.has_shadow){const n=t.shadow;e["box-shadow"]=n?function(t){var e,n,r,o,i,a;return $e((null===(e=t.offset)||void 0===e||null===(n=e.x)||void 0===n?void 0:n.value)||0)+" "+$e((null===(r=t.offset)||void 0===r||null===(o=r.y)||void 0===o?void 0:o.value)||0)+" "+$e(null!==(i=t.blur)&&void 0!==i?i:2)+" "+we(t.color||"#000000",null!==(a=t.alpha)&&void 0!==a?a:.19)}(n):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(t.stroke&&(o=!0,r(55,ue=Le(t.stroke.width,ue)),r(56,de=we(t.stroke.color,1,de)),n.border="".concat($e(ue)," solid ").concat(de)),t.corners_radius?(r(58,me=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]&&!Re(n[t]))return e;return t}(t.corners_radius,me)),n["border-radius"]=e["border-radius"]=Ye(me)):t.corner_radius&&(r(57,pe=Le(t.corner_radius,pe)),r(58,me={"top-left":pe,"top-right":pe,"bottom-right":pe,"bottom-left":pe}),n["border-radius"]=e["border-radius"]=$e(pe)),o&&ue&&(t.corners_radius||t.corner_radius)){let t=Object.assign({},me);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+ue/2})),i=Ye(t)}}r(54,se=We(e,se)),r(3,le=We(n,le)),r(11,ce=o),r(4,ve=i)}if(268468224&t.$$.dirty[1]|33554432&t.$$.dirty[3]&&r(59,ye=Ke(K&&!kt?K:void 0,ye)),512&t.$$.dirty[0]|268566528&t.$$.dirty[1]&&r(98,k=Te(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left","start","end"].forEach((r=>{const o=t[r];o&&(n[r]=o);const i=e[r];i&&(n[r]=(n[r]||0)+i)})),n}(ye,Ct),J)),512&t.$$.dirty[0]|536870912&t.$$.dirty[1]|8388608&t.$$.dirty[3]&&r(60,_e=Be(q,J,_e)),513&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|8&t.$$.dirty[2]|27262976&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==H?void 0:H.type;if("fixed"===u)r(65,ke=Le(null==H?void 0:H.value,ke)),e=$e(ke);else if("wrap_content"===u||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent){if(t="content",("wrap_content"===u&&(null==H?void 0:H.constrained)||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent)&&(i["width-constrained"]=!0,"horizontal"===bt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=H;t.min_size&&Re(t.min_size.value)&&(n=$e(t.min_size.value)),t.max_size&&Re(t.max_size.value)&&(o=$e(t.max_size.value))}"match_parent"!==u&&u||vt.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","vertical"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,vt.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===bt.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==q?void 0:q.left)||0)+((null==q?void 0:q.right)||0)),")"):"horizontal"===bt.parentContainerOrientation&&(a=H&&"weight"in H&&H.weight||1,bt.parentContainerWrap&&(l=!0));if("parent"===t)i["halign-self"]="stretch";else{const t=G;i["halign-self"]="left"===t||"center"===t||"right"===t||"start"===t||"end"===t?("ltr"===J?Cn:An)[t]:bt.parentHAlign||"start"}t&&(i.width=t),r(62,zt=e),r(63,Rt=n),r(64,Bt=o),r(66,Ae=a),r(67,je=s),r(61,xe=We(i,xe)),r(68,Ve=l),r(12,De=c)}if(1&t.$$.dirty[0]|270336&t.$$.dirty[1]|2176&t.$$.dirty[2]|13631488&t.$$.dirty[3]){let t,e,n,o,i={},a=0,s=0,l=!1,c=!1;const u=null==U?void 0:U.type;if(At);else if("fixed"===u)r(73,Oe=Le(null==U?void 0:U.value,Oe)),e=$e(Oe);else if("match_parent"!==u||bt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==U?void 0:U.constrained)||"match_parent"===u&&bt.parentVerticalWrapContent)&&(i["height-constrained"]=!0,"vertical"===bt.parentContainerOrientation&&(s=1)),"wrap_content"===u){const t=U;(null==t?void 0:t.min_size)&&Re(t.min_size.value)&&(n=$e(t.min_size.value)),(null==t?void 0:t.max_size)&&Re(t.max_size.value)&&(o=$e(t.max_size.value))}"match_parent"===u&&vt.logError(ge(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,vt.logError(ge(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===bt.parentLayoutOrientation?e="calc(100% - ".concat(be(((null==q?void 0:q.top)||0)+((null==q?void 0:q.bottom)||0)),")"):"vertical"===bt.parentContainerOrientation&&(a=(null==U?void 0:U.weight)||1,bt.parentContainerWrap&&(l=!0));if("parent"===t)i["valign-self"]="stretch";else{const t=W;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===bt.parentContainerOrientation?i["valign-self"]=jn[t]:i["valign-self"]=bt.parentVAlign||"start"}t&&(i.height=t),r(70,Lt=e),r(71,Ut=n),r(72,Ht=o),r(74,ze=a),r(75,Ue=s),r(69,Ne=We(i,Ne)),r(76,Ze=l),r(13,tn=c)}var e,n;if(8192&t.$$.dirty[1]&&r(101,E=!!bt.overlapParent||void 0),8192&t.$$.dirty[1]|3145728&t.$$.dirty[3]&&r(100,C=bt.overlapParent&&(!H||"match_parent"===H.type)&&!bt.parentHorizontalWrapContent&&"match_parent"===(null==U?void 0:U.type)&&!bt.parentVerticalWrapContent),8192&t.$$.dirty[1]&&r(99,A=bt.gridArea?"".concat(bt.gridArea.y+1,"/").concat(bt.gridArea.x+1,"/span ").concat(bt.gridArea.rowSpan,"/span ").concat(bt.gridArea.colSpan):void 0),32768&t.$$.dirty[2]|524288&t.$$.dirty[3]&&(r(77,(n=en,en=!Re(e=L)||void 0===e||e>1?n:Number(e))),r(78,Wt=1===en?void 0:en)),16384&t.$$.dirty[1]|262144&t.$$.dirty[3]&&(r(10,Tt=void 0),B&&!wt&&B.description&&(r(10,Tt={}),r(10,Tt["aria-label"]=B.description,Tt))),368&t.$$.dirty[0]|135168&t.$$.dirty[3]&&(r(5,qt=vn&&(null==N?void 0:N.background)?N.background:R),r(79,Jt={}),r(6,Gt=!1),Array.isArray(qt)&&(r(6,Gt=qt.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(ve)),!Gt))){const t=Ce(qt);r(79,Jt["background-color"]=t.color,Jt),r(79,Jt["background-image"]=t.image,Jt),r(79,Jt["background-size"]=t.size,Jt),r(79,Jt["background-position"]=t.position,Jt),r(79,Jt["background-repeat"]="no-repeat",Jt)}if(1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(82,Kt=void 0),rn&&vt.json.transition_in&&St.isRunning("stateChange")&&r(82,Kt=!0)),1&t.$$.dirty[0]|524288&t.$$.dirty[2]&&(r(84,Xt=void 0),rn&&vt.json.transition_change&&St.isRunning("stateChange")&&It.hasTransitionChange(vt.json.id)&&r(84,Xt=!0)),1&t.$$.dirty[0]|65536&t.$$.dirty[1]|126976&t.$$.dirty[3]){let t=z||T&&[T]||[],e=M||[],n=O||[],o=(null==N?void 0:N.on_focus)||[],i=(null==N?void 0:N.on_blur)||[];vt.fakeElement?(t=[],e=[],n=[],o=[],i=[]):(Array.isArray(t)||(t=[],vt.logError(ge(new Error("Actions should be array")))),Array.isArray(e)||(e=[],vt.logError(ge(new Error("DoubleTapActions should be array")))),Array.isArray(n)||(n=[],vt.logError(ge(new Error("LongTapActions should be array")))),Array.isArray(o)||(o=[],vt.logError(ge(new Error("FocusActions should be array")))),Array.isArray(i)||(i=[],vt.logError(ge(new Error("BlurActions should be array"))))),(t.length||e.length||n.length)&&Et&&(t=[],e=[],n=[],vt.logError(ge(new Error('Cannot use action on component "'.concat(Et,'"'))))),r(14,an=t.filter(Xe)),r(15,sn=e.filter(Xe)),r(16,ln=n.filter(Xe)),cn=o.filter(Xe),un=i.filter(Xe)}if(128&t.$$.dirty[0]|2048&t.$$.dirty[3]&&I&&(r(7,dn=Ge(I)),r(85,hn=dn.map(bn).filter(Boolean).join(", "))),805306368&t.$$.dirty[2]|1024&t.$$.dirty[3]){const t=fn,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(S,fn);t!==e&&(!pn||"visible"!==fn&&"visible"!==e?r(91,fn=e):async function(t){r(91,fn=t);const e="visible"===t?"in":"out",n="in"===e?vt.json.transition_in:vt.json.transition_out;on&&n&&(await Pt(),"in"===e&&r(83,Yt=!0),It.runVisibilityTransition(Object.assign(Object.assign({},vt.json),{visibility:"visible"}),vt,n,Mt,e).then((()=>{"in"===e&&r(83,Yt=!1)})).catch((t=>{throw"in"===e&&r(83,Yt=!1),t})))}(e)),pn||r(90,pn=!0)}if(1&t.$$.dirty[0]|2097152&t.$$.dirty[1]|8&t.$$.dirty[3]&&vt.json&&Mt&&!He(vt.json.extensions,oe)){let t=r(96,oe=vt.json.extensions);Pt().then((()=>{if(t===oe&&Mt&&(_n(),Array.isArray(vt.json.extensions))){const t=St.getExtensionContext();ie=vt.json.extensions.map((e=>{var n;const r=e.id;if(!r)return;const o=St.getExtension(r,e.params);return o&&(null===(n=o.mountView)||void 0===n||n.call(o,Mt,t)),o})).filter(Ee)}}))}if(1&t.$$.dirty[0]&&vt&&yn&&yn.update(vt),257&t.$$.dirty[0]|1073750016&t.$$.dirty[1]|552599680&t.$$.dirty[2]|384&t.$$.dirty[3]&&r(18,j=Object.assign(Object.assign(Object.assign({},xe),Ne),{"parent-overlap":E,"parent-overlap-absolute":C,"scroll-snap":bt.scrollSnap,"hide-on-transition-in":Kt||Yt||Xt,visibility:fn,"has-action-animation":Boolean(hn),"parent-flex":bt.parentContainerOrientation||void 0,"parent-grid":Boolean(bt.gridArea)||void 0,"has-custom-focus":Boolean(vn&&vt.json.focus)})),1073741824&t.$$.dirty[2]|513&t.$$.dirty[3]&&P&&void 0!==P.rotation){const t=P.pivot_x||{type:"pivot-percentage",value:50};r(92,gn=Je(t.value,gn));const e="pivot-fixed"===t.type?$e(gn):"".concat(gn,"%"),n=P.pivot_y||{type:"pivot-percentage",value:50};r(93,mn=Je(n.value,mn));const o="pivot-fixed"===n.type?$e(mn):"".concat(mn,"%");r(94,ne="".concat(e," ").concat(o)),r(95,re="rotate(".concat(P.rotation,"deg)"))}20560&t.$$.dirty[2]&&r(97,V=Ve||Ze?"100%":Ae||ze?0:void 0),545263616&t.$$.dirty[1]|260257591&t.$$.dirty[2]|118&t.$$.dirty[3]&&r(17,D=Object.assign(Object.assign(Object.assign(Object.assign({},$t),Jt),se),{width:zt,"min-width":Rt,"max-width":Bt,height:Lt,"min-height":Ut,"max-height":Ht||(null==$t?void 0:$t["max-height"]),"grid-area":A,padding:k,margin:_e,opacity:Wt,transition:hn,"transform-origin":ne,transform:re,"flex-grow":Ae||ze||void 0,"flex-shrink":je||Ue?1:void 0,"flex-basis":V,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[vt,yt,Ft,le,ve,qt,Gt,dn,vn,J,Tt,ce,De,tn,an,sn,ln,D,j,x,w,_,b,$,y,v,m,g,f,d,u,c,l,s,a,i,o,Nt,Ot,function(t){var e;r(52,Mt=t),rn&&vt.json.transition_in&&It.registerChildWithTransitionIn(vt.json,vt,vt.json.transition_in,t).then((()=>{r(82,Kt=!1)})).catch((t=>{throw r(82,Kt=!1),t})),rn&&vt.json.transition_out&&It.registerChildWithTransitionOut(vt.json,vt,vt.json.transition_out,t),rn&&vt.json.transition_change&&It.registerChildWithTransitionChange(vt.json,vt,vt.json.transition_change,t).then((()=>{r(84,Xt=!1)})).catch((t=>{throw r(84,Xt=!1),t}));const n=vt.fakeElement?[]:vt.json.visibility_actions||vt.json.visibility_action&&[vt.json.visibility_action],o=vt.fakeElement?[]:vt.json.disappear_actions;let i;(Array.isArray(n)&&n.length||Array.isArray(o)&&o.length)&&(i=function(t,e){let{visibilityActions:n,disappearActions:r,rootCtx:o,componentContext:i}=e;const a=[];n&&n.forEach((t=>{a.push({type:"visibility",index:a.length,action:t,visible:!1,count:0,finished:!1})})),r&&r.forEach((t=>{a.push({type:"disappear",index:a.length,action:t,visible:!1,count:0,finished:!1})}));const s=a.map(((t,e)=>{const n="visibility"===t.type;return i.getDerivedFromVars({index:e,visibility_percentage:t.action.visibility_percentage,visibility_duration:n?t.action.visibility_duration:t.action.disappear_duration,log_limit:t.action.log_limit,is_enabled:t.action.is_enabled})}));let l;const c=()=>{l&&l.disconnect(),a.forEach((t=>{t.timer&&clearTimeout(t.timer)}))},u=he(s,(t=>t)).subscribe((e=>{const n=e.filter(Ie),r={};n.forEach((t=>{r[t.index]=t})),c();const s=[...new Set(n.map((t=>{const e="visibility"===a[t.index].type;return Se(e,t.visibility_percentage,e?50:0)/100})))];s.length&&(l=new IntersectionObserver((t=>{t.forEach((t=>{n.forEach((e=>{const n=a[e.index],r="visibility"===n.type,s=Se(r,e.visibility_percentage,r?50:0);let l;l=0===s?t.intersectionRatio>=1e-12:t.intersectionRatio>=s/100;const c=r?!n.visible&&l:n.visible&&!l,u=r?!l:l;c?n.finished||(n.timer=setTimeout((()=>{++n.count;const t=0===e.log_limit?1/0:e.log_limit||1;++n.count>=t&&(n.finished=!0);const a=i.getJsonWithVars(n.action),s=a.url,l=a.typed;if(s){const t=Fe(s);t&&!Pe(t,o.getBuiltinProtocols())&&("div-action"===t?o.execAction(a):a.log_id&&o.execCustomAction(a))}else l&&o.execAction(a);o.logStat(r?"visible":"disappear",a)}),e.visibility_duration||800)):u&&n.timer&&clearTimeout(n.timer),n.visible=l}))}))}),{threshold:s}),l.observe(t))}));return{destroy(){c(),u()}}}(t,{visibilityActions:n,disappearActions:o,rootCtx:St,componentContext:vt}));const a=vt.json.id;return a&&It.registerChild(a),null===(e=vt.json.tooltips)||void 0===e||e.forEach((e=>{St.registerTooltip(t,e)})),{destroy(){a&&It.unregisterChild(a),i&&i.destroy(),yn&&yn.destroy()}}},function(){vt.json.focus&&(F||r(8,vn=!0),vt.execAnyActions(cn))},function(){vt.json.focus&&(r(8,vn=!1),vt.execAnyActions(un))},jt,$t,bt,wt,kt,Et,Ct,At,Vt,Dt,Mt,ae,se,ue,de,pe,me,ye,_e,xe,zt,Rt,Bt,ke,Ae,je,Ve,Ne,Lt,Ut,Ht,Oe,ze,Ue,Ze,en,Wt,Jt,nn,rn,Kt,Yt,Xt,hn,Zt,Qt,te,ee,pn,fn,gn,mn,ne,re,oe,V,k,A,C,E,P,S,I,N,O,M,T,z,R,B,L,U,H,W,q,G,K,Y,gt,mt]}const Fn=class extends ce{constructor(t){super(),se(this,t,Dn,En,d,{componentContext:0,cls:1,style:43,layoutParams:44,customDescription:45,customPaddings:46,customActions:47,additionalPaddings:48,heightByAspect:49,parentOf:42,parentOfSimpleMode:50,replaceItems:51,hasInnerFocusable:2},null,[-1,-1,-1,-1,-1])}},Pn={"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 Sn(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function In(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Nn(t,e){return In(t)||e}function On(t){let e,n;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=Pn["text-range__top-offset"]),lt(e,"margin-top",t[5])},m(t,n){M(t,e,n)},p(t,n){32&n&&lt(e,"margin-top",t[5])},d(t){t&&T(e)}}}function Mn(t){let e;return{c(){e=L(t[1])},l(n){e=rt(n,t[1])},m(t,n){M(t,e,n)},p(t,n){2&n&&at(e,t[1])},d(t){t&&T(e)}}}function Tn(t){let e,n,r,o=t[5]&&On(t);return n=new ln({props:{componentContext:t[0],cls:Oe("text-range",Pn,t[4]),actions:t[2],style:ye(t[3]),$$slots:{default:[Mn]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=H(),re(n.$$.fragment)},l(t){o&&o.l(t),e=H(),oe(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),M(t,e,i),ie(n,t,i),r=!0},p(t,r){let[i]=r;t[5]?o?o.p(t,i):(o=On(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};1&i&&(a.componentContext=t[0]),16&i&&(a.cls=Oe("text-range",Pn,t[4])),4&i&&(a.actions=t[2]),8&i&&(a.style=ye(t[3])),8388610&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Wt(n.$$.fragment,t),r=!0)},o(t){qt(n.$$.fragment,t),r=!1},d(t){t&&T(e),o&&o.d(t),ae(n,t)}}}function zn(t,e,n){let r,o,i,a,s,l;var c,u;let{componentContext:d}=e,{text:h}=e,{rootFontSize:p}=e,{textStyles:f={}}=e,{singleline:g=!1}=e,{actions:m}=e;const v=xt(fe);let y,$="none",b=12,_=1.25,w="",x="",k="",E=null;return t.$$set=t=>{"componentContext"in t&&n(0,d=t.componentContext),"text"in t&&n(1,h=t.text),"rootFontSize"in t&&n(6,p=t.rootFontSize),"textStyles"in t&&n(7,f=t.textStyles),"singleline"in t&&n(8,g=t.singleline),"actions"in t&&n(2,m=t.actions)},t.$$.update=()=>{if(1&t.$$.dirty&&d.json&&(n(11,$="none"),n(12,b=12),n(13,_=1.25),n(14,w=""),n(15,y=void 0),n(16,x=""),n(17,k=""),n(18,E=null)),128&t.$$.dirty){let t="none";(f.underline||f.strike)&&("single"===f.underline&&"single"===f.strike?t="both":"single"===f.underline?t="underline":"single"===f.strike&&(t="strike")),n(11,$=t)}4224&t.$$.dirty&&n(12,b=Sn(f.font_size,b)),4224&t.$$.dirty&&un(f.line_height)&&n(13,_=Number(f.line_height)/b),128&t.$$.dirty&&Re(f.letter_spacing)&&n(14,w=$e(f.letter_spacing)),32896&t.$$.dirty&&(n(15,y=Nn(f.font_weight,y)),"string"==typeof f.font_family&&f.font_family?n(16,x=v.typefaceProvider(f.font_family,{fontWeight:y||400})):n(16,x="")),131200&t.$$.dirty&&n(17,k=we(f.text_color,1,k)),128&t.$$.dirty&&n(5,r=f.top_offset?$e(f.top_offset):""),128&t.$$.dirty&&n(20,o=f.background?Ce([f.background]):null),640&t.$$.dirty&&((null===n(9,c=f.border)||void 0===c?void 0:c.stroke)&&f.border.stroke.color&&"transparent"!==we(f.border.stroke.color)&&un(f.border.stroke.width)?n(18,E={color:f.border.stroke.color,width:f.border.stroke.width}):n(18,E=null)),1152&t.$$.dirty&&n(19,i=Sn(null===n(10,u=f.border)||void 0===u?void 0:u.corner_radius,0)),4224&t.$$.dirty&&n(21,a=f.text_shadow?function(t,e){var n,r,o,i,a,s;return"drop-shadow("+we(t.color||"#000000",null!==(n=t.alpha)&&void 0!==n?n:.19)+" "+$e(10*((null===(r=t.offset)||void 0===r||null===(o=r.x)||void 0===o?void 0:o.value)||0)/e)+" "+$e(10*((null===(i=t.offset)||void 0===i||null===(a=i.y)||void 0===a?void 0:a.value)||0)/e)+" "+$e(10*(null!==(s=t.blur)&&void 0!==s?s:2)/e)+")"}(f.text_shadow,b):void 0),2304&t.$$.dirty&&n(4,s={singleline:g,decoration:$}),4190272&t.$$.dirty&&n(3,l={"font-size":$e(10*b/p),"line-height":_,"letter-spacing":w,"font-weight":y,"font-family":x,filter:a,color:k,background:(null==o?void 0:o.color)||void 0,"box-shadow":E?"inset 0 0 0 ".concat($e(E.width)," ").concat(E.color):void 0,"border-radius":i?$e(i):void 0})},[d,h,m,l,s,r,p,f,g,c,u,$,b,_,w,y,x,k,E,i,o,a]}const Rn=class extends ce{constructor(t){super(),se(this,t,zn,Tn,d,{componentContext:0,text:1,rootFontSize:6,textStyles:7,singleline:8,actions:2})}};function Bn(t,e,n){return"left"===t||"center"===t||"right"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}function Ln(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?"top"===t?"start":"bottom"===t?"end":t:e}function Un(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}function Hn(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}function Wn(t,e){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,o),n=null}),e)}}function qn(t,e){let n=null;const r=()=>{t.style.webkitLineClamp="",t.style.maxHeight="";const e=t.offsetHeight,n=t.scrollHeight,r=parseFloat(getComputedStyle(t).lineHeight);if(n<=e+1e-9)return;const o=Math.max(1,Math.floor(e/r));t.style.webkitLineClamp=String(o),t.style.maxHeight=r*o+"px"},o=Wn(r,50),i=()=>{n&&(n.disconnect(),n=null)},a=()=>{if(i(),e.enabled){if(r(),"undefined"!=typeof ResizeObserver){n=new ResizeObserver(o);const e=t.parentElement;e&&n.observe(e)}}else t.style.webkitLineClamp=String(e.lineClamp||"")};return a(),{update(t){e=t,a()},destroy(){i()}}}const{Boolean:Jn}=A;function Gn(t,e,n){const r=t.slice();return r[59]=e[n],r}function Kn(t){let e,n;return e=new Rn({props:{componentContext:t[0],text:t[2],rootFontSize:t[3],textStyles:t[28],singleline:t[6]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),4&n[0]&&(r.text=t[2]),8&n[0]&&(r.rootFontSize=t[3]),268435456&n[0]&&(r.textStyles=t[28]),64&n[0]&&(r.singleline=t[6]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Yn(t){let e,n,r=Kt(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=tr(Gn(t,r,e));const i=t=>qt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=H()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=H()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(1073742665&n[0]){let a;for(r=Kt(t[9]),a=0;a<r.length;a+=1){const i=Gn(t,r,a);o[a]?(o[a].p(i,n),Wt(o[a],1)):(o[a]=tr(i),o[a].c(),Wt(o[a],1),o[a].m(e.parentNode,e))}for(Ut(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(o[t]);n=!0}},o(t){o=o.filter(Jn);for(let t=0;t<o.length;t+=1)qt(o[t]);n=!1},d(t){t&&T(e),z(o,t)}}}function Xn(t){let e,r,o,i,a,s,l,c;return{c(){e=R("span"),r=R("img"),this.h()},l(t){e=et(t,"SPAN",{style:!0});var n=X(e);r=et(n,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),n.forEach(T),this.h()},h(){q(r,"class",o=me.text__image),u(r.src,i=t[59].image.url)||q(r,"src",i),q(r,"loading","lazy"),q(r,"decoding","async"),q(r,"aria-hidden","true"),q(r,"alt",""),q(r,"style",a=ye({width:t[59].image.width,height:t[59].image.height,"margin-top":t[8]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),q(e,"style",s=ye(t[59].image.wrapperStyle))},m(n,o){M(n,e,o),N(e,r),l||(c=W(r,"error",t[30]),l=!0)},p(t,n){512&n[0]&&!u(r.src,i=t[59].image.url)&&q(r,"src",i),768&n[0]&&a!==(a=ye({width:t[59].image.width,height:t[59].image.height,"margin-top":t[8]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[8]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&q(r,"style",a),512&n[0]&&s!==(s=ye(t[59].image.wrapperStyle))&&q(e,"style",s)},i:n,o:n,d(t){t&&T(e),l=!1,c()}}}function Zn(t){let e,n,r=t[59].text&&Qn(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),512&n[0]&&Wt(r,1)):(r=Qn(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function Qn(t){let e,n;return e=new Rn({props:{componentContext:t[0],text:t[59].text,rootFontSize:t[3],textStyles:t[59].textStyles,singleline:t[6],actions:t[59].actions}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),512&n[0]&&(r.text=t[59].text),8&n[0]&&(r.rootFontSize=t[3]),512&n[0]&&(r.textStyles=t[59].textStyles),64&n[0]&&(r.singleline=t[6]),512&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function tr(t){let e,n,r,o;const i=[Zn,Xn],a=[];function s(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=s(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=H()},l(t){n&&n.l(t),r=H()},m(t,n){~e&&a[e].m(t,n),M(t,r,n),o=!0},p(t,o){let l=e;e=s(t),e===l?~e&&a[e].p(t,o):(n&&(Ut(),qt(a[l],1,1,(()=>{a[l]=null})),Ht()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Wt(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Wt(n),o=!0)},o(t){qt(n),o=!1},d(t){t&&T(r),~e&&a[e].d(t)}}}function er(t){let e,n,r,o,i,a,s,c,u;const d=[Yn,Kn],h=[];function p(t,e){return t[9].length?0:1}return n=p(t),r=h[n]=d[n](t),{c(){e=R("span"),r.c(),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0});var n=X(e);r.l(n),n.forEach(T),this.h()},h(){q(e,"class",o=Oe("text__inner",me,t[11])),q(e,"style",i=ye(t[10]))},m(r,o){M(r,e,o),h[n].m(e,null),s=!0,c||(u=b(a=qn.call(null,e,{enabled:t[7],lineClamp:"number"==typeof t[4]?t[4]:void 0})),c=!0)},p(t,c){let u=n;n=p(t),n===u?h[n].p(t,c):(Ut(),qt(h[u],1,1,(()=>{h[u]=null})),Ht(),r=h[n],r?r.p(t,c):(r=h[n]=d[n](t),r.c()),Wt(r,1),r.m(e,null)),(!s||2048&c[0]&&o!==(o=Oe("text__inner",me,t[11])))&&q(e,"class",o),(!s||1024&c[0]&&i!==(i=ye(t[10])))&&q(e,"style",i),a&&l(a.update)&&144&c[0]&&a.update.call(null,{enabled:t[7],lineClamp:"number"==typeof t[4]?t[4]:void 0})},i(t){s||(Wt(r),s=!0)},o(t){qt(r),s=!1},d(t){t&&T(e),h[n].d(),c=!1,u()}}}function nr(t){let e,n;return e=new Fn({props:{cls:Oe("text",me,t[12])+" "+(t[5]?"":pe.root__unselectable),componentContext:t[0],layoutParams:t[1],$$slots:{default:[er]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};4128&n[0]&&(r.cls=Oe("text",me,t[12])+" "+(t[5]?"":pe.root__unselectable)),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),268439517&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function rr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H=n,W=n,q=n,J=n,G=n,K=n,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:it}=e,{layoutParams:at}=e;const st=xt(fe),lt=st.direction;p(t,lt,(t=>r(51,T=t)));let ct="",ut=12,dt=1.25,ht=!1,pt="",ft="",gt=!1,mt="start",vt="start",yt="",$t="",bt="",wt=!1,kt=[],Et=[];return _t((()=>{Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)}))})),t.$$set=t=>{"componentContext"in t&&r(0,it=t.componentContext),"layoutParams"in t&&r(1,at=t.layoutParams)},t.$$.update=()=>{var e;if(1&t.$$.dirty[0]&&it.json&&(r(3,ut=12),r(31,dt=1.25),r(8,ht=!1),r(32,pt=""),r(4,ft=""),r(33,gt=!1),r(34,mt="start"),r(35,vt="start"),r(36,yt=""),r(38,bt=""),r(5,wt=!1)),1&t.$$.dirty[0]&&(r(27,o=it.getDerivedFromVars(it.json.text)),ot(),ot=h(o,(t=>r(55,U=t)))),1&t.$$.dirty[0]&&(r(26,i=it.getDerivedFromVars(it.json.ranges)),W(),W=h(i,(t=>r(43,V=t)))),1&t.$$.dirty[0]&&(r(25,a=it.getDerivedFromVars(it.json.images)),H(),H=h(a,(t=>r(42,j=t)))),1&t.$$.dirty[0]&&(r(24,s=it.getDerivedFromVars({font_size:it.json.font_size,letter_spacing:it.json.letter_spacing,font_weight:it.json.font_weight,font_family:it.json.font_family,text_color:it.json.text_color,underline:it.json.underline,strike:it.json.strike,line_height:it.json.line_height,text_shadow:it.json.text_shadow})),q(),q=h(s,(t=>r(28,D=t)))),1&t.$$.dirty[0]&&(r(23,l=it.getDerivedFromVars(it.json.font_size)),rt(),rt=h(l,(t=>r(54,L=t)))),1&t.$$.dirty[0]&&(r(22,c=it.getDerivedFromVars(it.json.line_height)),nt(),nt=h(c,(t=>r(53,B=t)))),1&t.$$.dirty[0]&&(r(21,u=it.getDerivedFromVars(it.json.max_lines)),Z(),Z=h(u,(t=>r(49,O=t)))),1&t.$$.dirty[0]&&(r(20,d=it.getDerivedFromVars(it.json.text_alignment_horizontal)),tt(),tt=h(d,(t=>r(52,z=t)))),1&t.$$.dirty[0]&&(r(19,f=it.getDerivedFromVars(it.json.text_alignment_vertical)),Q(),Q=h(f,(t=>r(50,M=t)))),1&t.$$.dirty[0]&&(r(18,g=it.getDerivedFromVars(it.json.text_color)),X(),X=h(g,(t=>r(48,N=t)))),1&t.$$.dirty[0]&&(r(17,m=it.getDerivedFromVars(it.json.focused_text_color)),Y(),Y=h(m,(t=>r(47,I=t)))),1&t.$$.dirty[0]&&(r(16,v=it.getDerivedFromVars(it.json.truncate)),K(),K=h(v,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(15,y=it.getDerivedFromVars(it.json.text_gradient)),G(),G=h(y,(t=>r(45,P=t)))),1&t.$$.dirty[0]&&(r(14,$=it.getDerivedFromVars(it.json.selectable)),J(),J=h($,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(13,b=it.getDerivedFromVars(it.json.auto_ellipsize)),et(),et=h(b,(t=>r(7,R=t)))),16777216&t.$$.dirty[1]&&r(2,(e=U,ct=String(null!=e?e:""))),8&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&r(3,ut=Sn(L,ut)),8&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=B;un(t)?(r(31,dt=Number(t)/ut),r(8,ht=!0)):r(8,ht=!1)}if(262144&t.$$.dirty[1]&&r(6,_=1===O),128&t.$$.dirty[0]|262145&t.$$.dirty[1]){let t="",e="",n=!1;if(O&&O>1){let r=Number(O);t=r*dt+"em",e=r,n=!0}else R&&1!==O&&(n=!0);r(32,pt=t),r(4,ft=e),r(33,gt=n)}if(3145736&t.$$.dirty[1]&&r(34,mt=Bn(z,T,mt)),524304&t.$$.dirty[1]&&r(35,vt=Ln(M,vt)),4&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(41,w=!V||ct&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=ct.length),135168&t.$$.dirty[1]&&r(40,x=Boolean(N)!==Boolean(V&&V[0]&&V[0].text_color)),398880&t.$$.dirty[1]){let t="";O&&w&&x&&(t=we(N||V&&V[0]&&V[0].text_color,1,yt)),r(36,yt=t)}if(65600&t.$$.dirty[1]&&r(37,$t=we(I,1,$t)),32768&t.$$.dirty[1]&&r(39,k="none"===S?"none":""),16384&t.$$.dirty[1]){let t="";if(P){const e=Ce([P]);e.image&&(t=e.image)}r(38,bt=t)}32&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(5,wt=Un(F,wt)),4&t.$$.dirty[0]|6144&t.$$.dirty[1]&&function(t,e,n){let o=[];if(Et.forEach((t=>{let[e,n]=t;st.removeSvgFilter(e,n)})),Et=[],!(Array.isArray(e)&&e.length||Array.isArray(n)&&n.length&&t))return void r(9,kt=[]);const i=t;let a=e||[{start:0,end:i.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<=i.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e,n;let r="image"===t.type?null:t.range,a=t.index;if(a>l){let r=Object.assign(Object.assign({},D),...c);o.push({text:i.substring(l,a),textStyles:r,actions:"rangeEnd"===t.type&&(null===(n=null===(e=t.range)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.filter(Xe))||void 0})}if("rangeStart"===t.type&&r)c.push(r);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},D),...c),n=$e(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=$e(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":$e(10*(Number(e.font_size)||12)/ut)};let a="";const s=t.image.tint_color,l=Hn(t.image.tint_mode,"source_in");if(s){const e=we(t.image.tint_color);a=st.addSvgFilter(e,l),Et.push([e,l])}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}l=a})),l<i.length&&o.push({text:i.substring(l),textStyles:Object.assign({},D)}),r(9,kt=o)}(ct,V,j),64&t.$$.dirty[0]|348&t.$$.dirty[1]&&r(12,E={singleline:_,multiline:gt,halign:mt,valign:vt,truncate:k,"has-focus-color":Boolean($t)}),128&t.$$.dirty[1]&&r(11,C={gradient:Boolean(bt)}),24&t.$$.dirty[0]|227&t.$$.dirty[1]&&r(10,A={"font-size":$e(ut),"line-height":dt,"max-height":pt,"-webkit-line-clamp":ft,color:yt,"background-image":bt,"--divkit-text-focus-color":$t})},[it,at,ct,ut,ft,wt,_,R,ht,kt,A,C,E,b,$,y,v,m,g,f,d,u,c,l,s,a,i,o,D,lt,function(t){t.target&&"classList"in t.target&&t.target.classList.add(me.text__image_hidden)},dt,pt,gt,mt,vt,yt,$t,bt,k,x,w,j,V,F,P,S,I,N,O,M,T,z,B,L,U]}const or={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_overflow_visible:"divkit-f315a",container_orientation_vertical:"divkit-ddc33",container_valign_start:"divkit-a31f0",container_valign_center:"divkit-aae61",container_valign_end:"divkit-eac00","container_valign_space-between":"divkit-ce053","container_valign_space-around":"divkit-cf29b","container_valign_space-evenly":"divkit-b4b04",container_halign_start:"divkit-efaf5",container_halign_center:"divkit-bac9d",container_halign_end:"divkit-ca36b","container_halign_space-between":"divkit-e5c38","container_halign_space-around":"divkit-feff2","container_halign_space-evenly":"divkit-e5e05",container_orientation_horizontal:"divkit-fe458",container_orientation_overlap:"divkit-a644d"};function ir(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 ar(t,e,n){const r=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),o=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0);null!=e&&e.show_at_start&&(n?t.top=e.style.height+o:t.left=e.style.width+r),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height+o:t.right=e.style.width+r)}function sr(t,e,n){let r;const o=((null==e?void 0:e.margins.left)||0)+((null==e?void 0:e.margins.right)||0),i=((null==e?void 0:e.margins.top)||0)+((null==e?void 0:e.margins.bottom)||0),a=((null==n?void 0:n.margins.left)||0)+((null==n?void 0:n.margins.right)||0),s=((null==n?void 0:n.margins.top)||0)+((null==n?void 0:n.margins.bottom)||0);return r="horizontal"===t?[null!=n&&n.show_between?n.style.height+s:0,null!=e&&e.show_between?e.style.width+o:0]:[null!=e&&e.show_between?e.style.height+i:0,null!=n&&n.show_between?n.style.width+a:0],r.map($e).join(" ")}function lr(t){var e;const n=null===(e=t.width)||void 0===e?void 0:e.type;return"wrap_content"===n||"fixed"===n}function cr(t){var e;return"match_parent"!==(null===(e=t.height)||void 0===e?void 0:e.type)}function ur(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)r={width:Le(null===(i=(o=t.shape).item_width)||void 0===i?void 0:i.value,10),height:Le(null===(a=o.item_height)||void 0===a?void 0:a.value,10),radius:Le(null===(s=o.corner_radius)||void 0===s?void 0:s.value,5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Le(null===(e=t.radius)||void 0===e?void 0:e.value,10);return{width:n,height:n,radius:n}}(t.shape)}var o,i,a,s;return function(t,e,n){var r;const o={},i=e.stroke||(null==n?void 0:n.stroke),a=null!=i&&i.color?we(i.color):"",s=null!=i&&i.width?Number(null!==(r=i.width)&&void 0!==r?r:1):"";o.width=t.width,o.height=t.height,o.borderRadius=t.radius;const l=e.background_color||(null==n?void 0:n.color);return o.background=we(l),a&&s&&(o.boxShadow="inset 0 0 0 ".concat($e(s)," ").concat(a)),o}(r,t.shape,{color:t.color,stroke:t.stroke})}let dr;function hr(){if("undefined"==typeof document&&(dr=!0),void 0!==dr)return dr;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),dr=1===t.scrollHeight,document.body.removeChild(t),dr}const pr={"container-separator":"divkit-a7719","container-separator__item":"divkit-c770e","container-separator__shape":"divkit-f6e9a"},{window:fr}=A;function gr(t,e,n){const r=t.slice();return r[16]=e[n],r}function mr(t){let e,n,r,o,i,a="".concat(t[16].style.width,"px"),s="".concat(t[16].style.height,"px"),l="".concat(t[16].style.borderRadius,"px"),c="".concat(t[16].left,"px"),u="".concat(t[16].top,"px"),d="".concat(t[16].width,"px"),h="".concat(t[16].height,"px");return{c(){e=R("div"),n=R("div"),o=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0}),X(n).forEach(T),o=ot(r),r.forEach(T),this.h()},h(){q(n,"class",r=pr["container-separator__shape"]),lt(n,"width",a),lt(n,"height",s),lt(n,"border-radius",l),lt(n,"background",t[16].style.background),lt(n,"box-shadow",t[16].style.boxShadow),q(e,"class",i=pr["container-separator__item"]),lt(e,"left",c),lt(e,"top",u),lt(e,"width",d),lt(e,"height",h)},m(t,r){M(t,e,r),N(e,n),N(e,o)},p(t,r){2&r&&a!==(a="".concat(t[16].style.width,"px"))&&lt(n,"width",a),2&r&&s!==(s="".concat(t[16].style.height,"px"))&&lt(n,"height",s),2&r&&l!==(l="".concat(t[16].style.borderRadius,"px"))&&lt(n,"border-radius",l),2&r&&lt(n,"background",t[16].style.background),2&r&&lt(n,"box-shadow",t[16].style.boxShadow),2&r&&c!==(c="".concat(t[16].left,"px"))&&lt(e,"left",c),2&r&&u!==(u="".concat(t[16].top,"px"))&&lt(e,"top",u),2&r&&d!==(d="".concat(t[16].width,"px"))&&lt(e,"width",d),2&r&&h!==(h="".concat(t[16].height,"px"))&&lt(e,"height",h)},d(t){t&&T(e)}}}function vr(t){let e,r,o,i,a=Kt(t[1]),s=[];for(let e=0;e<a.length;e+=1)s[e]=mr(gr(t,a,e));return{c(){e=R("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(T),this.h()},h(){q(e,"class",r=pr["container-separator"])},m(n,r){M(n,e,r);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);t[13](e),o||(i=W(fr,"resize",t[2]),o=!0)},p(t,n){let[r]=n;if(2&r){let n;for(a=Kt(t[1]),n=0;n<a.length;n+=1){const o=gr(t,a,n);s[n]?s[n].p(o,r):(s[n]=mr(o),s[n].c(),s[n].m(e,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=a.length}},i:n,o:n,d(n){n&&T(e),z(s,n),t[13](null),o=!1,i()}}}function yr(t,e,n,r,o,i){const a=e.margins.left,s=e.margins.right,l=e.margins.top,c=e.margins.bottom;i?t.push({top:n.bottom+l,left:o.left+a,width:Math.max(0,o.right-o.left-a-s),height:r.top-n.bottom-l-c,style:e.style}):t.push({top:o.top+l,left:n.right+a,width:r.left-n.right-a-s,height:Math.max(0,o.bottom-o.top-l-c),style:e.style})}function $r(t,e,n,r,o,i){const a={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if(null==e?void 0:e.show_at_start){let s,l;"space-around"===o||"space-evenly"===o?(s=i.left-e.style.width,l=i.top-e.style.height):(s=n[0].left-e.style.width-e.margins.left-e.margins.right,l=n[0].top-e.style.height-e.margins.top-e.margins.bottom),yr(t,e,{top:0,right:s,bottom:l,left:0},n[0],a,r)}if(null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)yr(t,e,n[o],n[o+1],a,r);if(null==e?void 0:e.show_at_end){const s=n[n.length-1];let l,c;"space-around"===o||"space-evenly"===o?(l=i.bottom+e.style.height,c=i.right+e.style.width):(l=s.bottom+e.style.height+e.margins.top+e.margins.bottom,c=s.right+e.style.width+e.margins.left+e.margins.right),yr(t,e,s,{top:l,right:0,bottom:0,left:c},a,r)}}function br(t,e,n){let r,{orientation:o}=e,{separator:i}=e,{lineSeparator:a}=e,{contentHAlign:s}=e,{contentVAlign:l}=e,{direction:c}=e;const u=function(t,e){let n,r=0,o=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(o||(o=!0,setTimeout((()=>{o=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect(),e=window.getComputedStyle(r),u={top:t.top+parseFloat(e.paddingTop),right:t.right-parseFloat(e.paddingRight),bottom:t.bottom-parseFloat(e.paddingBottom),left:t.left+parseFloat(e.paddingLeft)};n(1,h=[]);let p=[...r.children].filter((t=>t!==d&&!t.classList.contains(ve.outer__border))),f=[];for(;p.length;){const t=[],e=p.shift();t.push(e);let n=e.getBoundingClientRect(),r=n.left,i=n.right,a=n.bottom;for(;p.length;){let e=p[0],n=e.getBoundingClientRect();if("vertical"===o){if(n.top<a)break}else if("ltr"===c?n.left<i:n.right>r)break;i=Math.max(i,n.right),r=Math.min(r,n.left),a=Math.max(a,n.bottom),t.push(e),p.shift()}f.push(t)}const g=[];f.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));"rtl"===c&&"horizontal"===o&&e.reverse(),i&&$r(h,i,e,"vertical"===o,"vertical"===o?l:s,u);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};g.push(n)})),"rtl"===c&&"vertical"===o&&g.reverse(),a&&$r(h,a,g,"horizontal"===o,"vertical"===o?s:l,u),h.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let d,h=[],p=!1,f=null,g=null;function m(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains(pr["container-separator__shape"]))&&!(null==n?void 0:n.contains(pr["container-separator"]))}))&&u()}return bt((()=>{n(9,p=!0)})),_t((()=>{n(9,p=!1)})),t.$$set=t=>{"orientation"in t&&n(3,o=t.orientation),"separator"in t&&n(4,i=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator),"contentHAlign"in t&&n(6,s=t.contentHAlign),"contentVAlign"in t&&n(7,l=t.contentVAlign),"direction"in t&&n(8,c=t.direction)},t.$$.update=()=>{1&t.$$.dirty&&n(12,r=(null==d?void 0:d.parentElement)||null),7680&t.$$.dirty&&(p&&r||f||g)&&(f&&(f.disconnect(),n(10,f=null)),g&&(g.disconnect(),n(11,g=null)),p&&r&&("undefined"!=typeof MutationObserver&&(n(10,f=new MutationObserver(m)),f.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(11,g=new ResizeObserver(u)),g.observe(r)))),4608&t.$$.dirty&&p&&r&&u()},[d,h,u,o,i,a,s,l,c,p,f,g,r,function(t){Ct[t?"unshift":"push"]((()=>{d=t,n(0,d)}))}]}const _r=class extends ce{constructor(t){super(),se(this,t,br,vr,d,{orientation:3,separator:4,lineSeparator:5,contentHAlign:6,contentVAlign:7,direction:8})}},{Boolean:wr}=A;function xr(t,e,n){const r=t.slice();return r[52]=e[n],r}function kr(t){let e,n;return e=new Rs({props:{componentContext:t[52],layoutParams:t[8]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.componentContext=t[52]),256&n[0]&&(r.layoutParams=t[8]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Er(t){let e,n;return e=new _r({props:{direction:t[11],separator:t[5],lineSeparator:t[6],orientation:t[2],contentHAlign:t[4],contentVAlign:t[3]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.direction=t[11]),32&n[0]&&(r.separator=t[5]),64&n[0]&&(r.lineSeparator=t[6]),4&n[0]&&(r.orientation=t[2]),16&n[0]&&(r.contentHAlign=t[4]),8&n[0]&&(r.contentVAlign=t[3]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Cr(t){let e,n,r,o=Kt(t[9]),i=[];for(let e=0;e<o.length;e+=1)i[e]=kr(xr(t,o,e));const a=t=>qt(i[t],1,1,(()=>{i[t]=null}));let s=(t[5]||t[6])&&Er(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=U(),s&&s.c(),n=H()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ot(t),s&&s.l(t),n=H()},m(t,o){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,o);M(t,e,o),s&&s.m(t,o),M(t,n,o),r=!0},p(t,r){if(768&r[0]){let n;for(o=Kt(t[9]),n=0;n<o.length;n+=1){const a=xr(t,o,n);i[n]?(i[n].p(a,r),Wt(i[n],1)):(i[n]=kr(a),i[n].c(),Wt(i[n],1),i[n].m(e.parentNode,e))}for(Ut(),n=o.length;n<i.length;n+=1)a(n);Ht()}t[5]||t[6]?s?(s.p(t,r),96&r[0]&&Wt(s,1)):(s=Er(t),s.c(),Wt(s,1),s.m(n.parentNode,n)):s&&(Ut(),qt(s,1,1,(()=>{s=null})),Ht())},i(t){if(!r){for(let t=0;t<o.length;t+=1)Wt(i[t]);Wt(s),r=!0}},o(t){i=i.filter(wr);for(let t=0;t<i.length;t+=1)qt(i[t]);qt(s),r=!1},d(t){t&&(T(e),T(n)),z(i,t),s&&s.d(t)}}}function Ar(t){let e,n;return e=new Fn({props:{cls:Oe("container",or,t[13]),componentContext:t[0],layoutParams:t[1],style:t[10],additionalPaddings:t[14],heightByAspect:Boolean(t[7]),parentOf:t[9].map(Fr),replaceItems:t[27],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Oe("container",or,t[13])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[0]&&(r.style=t[10]),16384&n[0]&&(r.additionalPaddings=t[14]),128&n[0]&&(r.heightByAspect=Boolean(t[7])),512&n[0]&&(r.parentOf=t[9].map(Fr)),2940&n[0]|16777216&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const jr={start:"start",center:"center",end:"end","space-between":"start","space-around":"start","space-evenly":"start"},Vr={start:"start",center:"center",end:"end",baseline:"baseline","space-between":"start","space-around":"start","space-evenly":"start"},Dr=["rounded_rectangle","circle"],Fr=t=>t.json;function Pr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M=n,T=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n,G=n;var K,Y,X,Z,Q,tt,et;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G()));let{componentContext:nt}=e,{layoutParams:rt}=e;const ot=xt(fe),it=ot.direction;let at;p(t,it,(t=>r(11,D=t)));let st,lt="vertical",ct="start",ut="start",dt=null,ht=null,pt={},ft=[];return t.$$set=t=>{"componentContext"in t&&r(0,nt=t.componentContext),"layoutParams"in t&&r(1,rt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&nt.json&&(r(2,lt="vertical"),r(3,ct="start"),r(4,ut="start"),r(7,st=void 0)),1&t.$$.dirty[0]&&r(38,o=nt.json.items),268435457&t.$$.dirty[0]&&(r(25,i=nt.getDerivedFromVars(null===r(28,K=nt.json.item_builder)||void 0===K?void 0:K.data,void 0,!0)),G(),G=h(i,(t=>r(50,O=t)))),1&t.$$.dirty[0]&&(r(24,a=nt.getDerivedFromVars(nt.json.orientation)),J(),J=h(a,(t=>r(49,N=t)))),1&t.$$.dirty[0]&&(r(23,s=nt.getDerivedFromVars(nt.json.layout_mode)),q(),q=h(s,(t=>r(48,I=t)))),1&t.$$.dirty[0]&&(r(22,l=nt.getDerivedFromVars(nt.json.content_alignment_vertical)),H(),H=h(l,(t=>r(46,P=t)))),1&t.$$.dirty[0]&&(r(21,c=nt.getDerivedFromVars(nt.json.content_alignment_horizontal)),U(),U=h(c,(t=>r(45,F=t)))),1&t.$$.dirty[0]&&(r(20,u=nt.getDerivedFromVars(nt.json.separator)),L(),L=h(u,(t=>r(44,V=t)))),1&t.$$.dirty[0]&&(r(19,d=nt.getDerivedFromVars(nt.json.line_separator)),B(),B=h(d,(t=>r(43,j=t)))),1&t.$$.dirty[0]&&(r(18,f=nt.getDerivedFromVars(nt.json.aspect)),R(),R=h(f,(t=>r(42,A=t)))),1&t.$$.dirty[0]&&(r(17,g=nt.getDerivedFromVars(nt.json.width)),T(),T=h(g,(t=>r(40,E=t)))),1&t.$$.dirty[0]&&(r(16,m=nt.getDerivedFromVars(nt.json.height)),z(),z=h(m,(t=>r(41,C=t)))),1&t.$$.dirty[0]&&(r(15,v=nt.getDerivedFromVars(nt.json.clip_to_bounds)),M(),M=h(v,(t=>r(39,k=t)))),1&t.$$.dirty[0]|524416&t.$$.dirty[1]){let t=[];if(nt.json.item_builder&&Array.isArray(O)&&Array.isArray(nt.json.item_builder.prototypes)){const e=nt.json.item_builder;t=[],O.forEach((n=>{if(null===n||"object"!=typeof n)return;const r=ot.preparePrototypeVariables(e.data_element_name||"it",n);let o;for(let t=0;t<e.prototypes.length;++t){const n=e.prototypes[t];if(n.div){if(void 0===n.selector){o=n.div;break}if(nt.getJsonWithVars(n.selector,r)){o=n.div;break}}}o&&t.push({div:o,vars:r})}))}else t=(o||[]).map((t=>({div:t})));r(9,ft=t.map(((t,e)=>nt.produceChildContext(t.div,{path:e,variables:t.vars}))))}if(513&t.$$.dirty[0]){let t=[];ft.forEach((e=>{t.push(nt.getDerivedFromVars({width:e.json.width,height:e.json.height}))})),r(12,at=he(t,(t=>[...t]))),W(),W=h(at,(t=>r(47,S=t)))}if(4&t.$$.dirty[0]|262144&t.$$.dirty[1]&&r(2,lt=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(N,lt)),131072&t.$$.dirty[1]&&r(35,y="wrap"===I),4&t.$$.dirty[0]|65552&t.$$.dirty[1]&&r(36,$="horizontal"!==lt&&!y&&S.some(lr)),4&t.$$.dirty[0]|65552&t.$$.dirty[1]&&r(37,b="vertical"!==lt&&!y&&S.some(cr)),8&t.$$.dirty[0]|32768&t.$$.dirty[1]&&r(3,ct=function(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t||"space-between"===t||"space-around"===t||"space-evenly"===t?"top"===t?"start":"bottom"===t?"end":t:e}(P,ct)),2064&t.$$.dirty[0]|16384&t.$$.dirty[1]&&r(4,ut=function(t,e,n){return"left"===t||"center"===t||"right"===t||"space-between"===t||"space-around"===t||"space-evenly"===t||"start"===t||"end"===t?"left"===t?"ltr"===e?"start":"end":"right"===t?"ltr"===e?"end":"start":t:n}(F,D,ut)),1610612772&t.$$.dirty[0]|8193&t.$$.dirty[1])if((null==V?void 0:V.style)&&"overlap"!==lt&&hr()){const t=ur(V.style,Dr,(null==dt?void 0:dt.style)||null);r(5,dt=t?{show_at_start:Boolean(null!==r(29,Y=V.show_at_start)&&void 0!==Y&&Y),show_at_end:Boolean(null!==r(30,X=V.show_at_end)&&void 0!==X&&X),show_between:Boolean(null===r(31,Z=V.show_between)||void 0===Z||Z),style:t,margins:ir(V.margins)}:null)}else r(5,dt=null);if(68&t.$$.dirty[0]|4110&t.$$.dirty[1])if((null==j?void 0:j.style)&&"overlap"!==lt&&hr()){const t=ur(j.style,Dr,(null==ht?void 0:ht.style)||null);r(6,ht=t?{show_at_start:Boolean(null!==r(32,Q=j.show_at_start)&&void 0!==Q&&Q),show_at_end:Boolean(null!==r(33,tt=j.show_at_end)&&void 0!==tt&&tt),show_between:Boolean(null===r(34,et=j.show_between)||void 0===et||et),style:t,margins:ir(j.margins)}:null)}else r(6,ht=null);if(100&t.$$.dirty[0]&&r(14,_=dt||ht?function(t,e,n){const r={};return ar(r,e,"vertical"===t),ar(r,n,"horizontal"===t),r}(lt,dt,ht):null),2048&t.$$.dirty[1]){const t=null==A?void 0:A.ratio;t&&un(t)?r(7,st=t):r(7,st=void 0)}if(414&t.$$.dirty[0]|1648&t.$$.dirty[1]){let t={};"overlap"===lt&&(t.overlapParent=!0),"horizontal"!==lt&&(t.parentHAlign=y?"start":jr[ut]),"vertical"!==lt&&(t.parentVAlign=y?"start":Vr[ct]),st||b||C&&"wrap_content"!==C.type&&("match_parent"!==C.type||!(null==rt?void 0:rt.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0),!$&&("wrap_content"===(null==E?void 0:E.type)||"match_parent"===(null==E?void 0:E.type)&&(null==rt?void 0:rt.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0),"horizontal"===lt&&(t.parentContainerOrientation="horizontal"),"vertical"===lt&&(t.parentContainerOrientation="vertical"),y&&(t.parentContainerWrap=!0),r(8,pt=We(t,pt))}28&t.$$.dirty[0]|272&t.$$.dirty[1]&&r(13,w={orientation:lt,valign:ct,halign:ut,wrap:y,overflow:!1===k||0===k?"visible":void 0}),228&t.$$.dirty[0]&&r(10,x={gap:dt||ht?sr(lt,dt,ht):void 0,"aspect-ratio":st})},[nt,rt,lt,ct,ut,dt,ht,st,pt,ft,x,D,at,w,_,v,m,g,f,d,u,c,l,s,a,i,it,function(t){r(0,nt=Object.assign(Object.assign({},nt),{json:Object.assign(Object.assign({},nt.json),{items:t.filter(Ee)})}))},K,Y,X,Z,Q,tt,et,y,$,b,o,k,E,C,A,j,V,F,P,S,I,N,O]}const Sr={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Ir(t,e){return"vertical"===t||"horizontal"===t?t:e}function Nr(t){let e,n,r;return{c(){e=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=Sr.separator__inner),q(e,"style",r=ye(t[3]))},m(t,n){M(t,e,n)},p(t,n){8&n&&r!==(r=ye(t[3]))&&q(e,"style",r)},d(t){t&&T(e)}}}function Or(t){let e,n=t[4]&&Nr(t);return{c(){n&&n.c(),e=H()},l(t){n&&n.l(t),e=H()},m(t,r){n&&n.m(t,r),M(t,e,r)},p(t,r){t[4]?n?n.p(t,r):(n=Nr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){t&&T(e),n&&n.d(t)}}}function Mr(t){let e,n;return e=new Fn({props:{cls:Oe("separator",Sr,t[2]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[Or]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){let[r]=n;const o={};4&r&&(o.cls=Oe("separator",Sr,t[2])),1&r&&(o.componentContext=t[0]),2&r&&(o.layoutParams=t[1]),2072&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Tr(t,e,r){let o,i,a,s,l,c,u,d=n;t.$$.on_destroy.push((()=>d()));let{componentContext:p}=e,{layoutParams:f}=e,g="horizontal",m="rgba(0,0,0,0.08)";return t.$$set=t=>{"componentContext"in t&&r(0,p=t.componentContext),"layoutParams"in t&&r(1,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&p.json&&(r(6,g="horizontal"),r(7,m="rgba(0,0,0,0.08)")),1&t.$$.dirty&&(r(5,o=p.getDerivedFromVars(p.json.delimiter_style)),d(),d=h(o,(t=>r(10,u=t)))),1088&t.$$.dirty&&r(6,g=Ir(null==u?void 0:u.orientation,g)),1024&t.$$.dirty&&r(4,i=!((null==u?void 0:u.color)&&("transparent"===u.color||9===u.color.length&&0===u.color.indexOf("#00")))),1152&t.$$.dirty&&r(7,m=we(null==u?void 0:u.color,1,m)),64&t.$$.dirty&&r(9,a="horizontal"===g?"100%":$e(1)),64&t.$$.dirty&&r(8,s="horizontal"===g?$e(1):"100%"),896&t.$$.dirty&&r(3,l={background:m,width:a,height:s}),64&t.$$.dirty&&r(2,c={orientation:g})},[p,f,c,l,i,o,g,m,s,a,u]}const zr={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image_is-rtl-mirror":"divkit-ae78c","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function Rr(t){return t.startsWith("data:")?ke(t):"data:image/jpg;base64,".concat(ke(t))}function Br(t){let e,n;return e=new Fn({props:{cls:Oe("image",zr,t[9]),componentContext:t[0],layoutParams:t[1],customDescription:!0,$$slots:{default:[Wr]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=Oe("image",zr,t[9])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1916&n[0]|4&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Lr(t){let e,n,r,o,i,a,l;return{c(){e=R("img"),this.h()},l(t){e=et(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){q(e,"class",n=zr.image__image),u(e.src,r=t[3]===Gr?Jr:t[4])||q(e,"src",r),q(e,"loading","lazy"),q(e,"decoding","async"),q(e,"style",o=ye(t[8])),q(e,"alt",t[10]),q(e,"aria-hidden",i=t[10]?null:"true")},m(n,r){M(n,e,r),t[60](e),a||(l=[W(e,"load",t[26]),W(e,"error",t[27])],a=!0)},p(t,n){24&n[0]&&!u(e.src,r=t[3]===Gr?Jr:t[4])&&q(e,"src",r),256&n[0]&&o!==(o=ye(t[8]))&&q(e,"style",o),1024&n[0]&&q(e,"alt",t[10]),1024&n[0]&&i!==(i=t[10]?null:"true")&&q(e,"aria-hidden",i)},d(n){n&&T(e),t[60](null),a=!1,s(l)}}}function Ur(t){let e,n,r,o,i,a,l,c,d,h="".concat(t[5],"%");return{c(){e=R("span"),n=R("img"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var r=X(e);n=et(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(T),this.h()},h(){q(n,"class",r=zr.image__image),u(n.src,o=t[3]===Gr?Jr:t[4])||q(n,"src",o),q(n,"loading","lazy"),q(n,"decoding","async"),q(n,"style",i=ye(t[8])),q(n,"alt",t[10]),q(n,"aria-hidden",a=t[10]?null:"true"),q(e,"class",l=zr["image__aspect-wrapper"]),lt(e,"padding-bottom",h)},m(r,o){M(r,e,o),N(e,n),t[59](n),c||(d=[W(n,"load",t[26]),W(n,"error",t[27])],c=!0)},p(t,r){24&r[0]&&!u(n.src,o=t[3]===Gr?Jr:t[4])&&q(n,"src",o),256&r[0]&&i!==(i=ye(t[8]))&&q(n,"style",i),1024&r[0]&&q(n,"alt",t[10]),1024&r[0]&&a!==(a=t[10]?null:"true")&&q(n,"aria-hidden",a),32&r[0]&&h!==(h="".concat(t[5],"%"))&&lt(e,"padding-bottom",h)},d(n){n&&T(e),t[59](null),c=!1,s(d)}}}function Hr(t){let e;function n(t,e){return t[9].aspect?Ur:Lr}let r=n(t),o=r(t);return{c(){o.c(),e=H()},l(t){o.l(t),e=H()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&T(e),o.d(t)}}}function Wr(t){let e,n=t[6],r=Hr(t);return{c(){r.c(),e=H()},l(t){r.l(t),e=H()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){64&o[0]&&d(n,n=t[6])?(r.d(1),r=Hr(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&T(e),r.d(t)}}}function qr(t){let e,n,r=!t[7]&&Br(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[7]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),128&n[0]&&Wt(r,1)):(r=Br(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}const Jr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Gr=2;function Kr(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n,G=n,K=n,Y=n,X=n,Z=n,Q=n;t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q()));let{componentContext:tt}=e,{layoutParams:et}=e;const nt=xt(fe),rt=nt.direction;let ot;p(t,rt,(t=>r(45,C=t)));let it,at,st=0,lt=!1,ct="rgba(0,0,0,0.08)",ut=!1,dt="",ht="none",pt="50% 50%",ft="0",gt="source_in",mt="",vt="",yt=0,$t=0,bt=0,wt="",kt="",Et=!1;return _t((()=>{nt.removeSvgFilter(at,gt)})),t.$$set=t=>{"componentContext"in t&&r(0,tt=t.componentContext),"layoutParams"in t&&r(1,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&tt.json&&(r(31,ht="none"),r(32,pt="50% 50%"),r(34,gt="source_in")),1&t.$$.dirty[0]&&(r(24,o=tt.getDerivedFromVars(tt.json.image_url)),Z(),Z=h(o,(t=>r(57,T=t)))),1&t.$$.dirty[0]&&(r(23,i=tt.getDerivedFromVars(tt.json.gif_url)),Q(),Q=h(i,(t=>r(58,z=t)))),1&t.$$.dirty[0]&&(r(22,a=tt.getDerivedFromVars(tt.json.width)),X(),X=h(a,(t=>r(56,M=t)))),1&t.$$.dirty[0]&&(r(21,s=tt.getDerivedFromVars(tt.json.height)),Y(),Y=h(s,(t=>r(55,O=t)))),1&t.$$.dirty[0]&&(r(20,l=tt.getDerivedFromVars(tt.json.preview)),K(),K=h(l,(t=>r(54,N=t)))),1&t.$$.dirty[0]&&(r(19,c=tt.getDerivedFromVars(tt.json.placeholder_color)),G(),G=h(c,(t=>r(53,I=t)))),1&t.$$.dirty[0]&&(r(18,u=tt.getDerivedFromVars(tt.json.scale)),J(),J=h(u,(t=>r(52,S=t)))),1&t.$$.dirty[0]&&(r(17,d=tt.getDerivedFromVars({content_alignment_horizontal:tt.json.content_alignment_horizontal,content_alignment_vertical:tt.json.content_alignment_vertical})),q(),q=h(d,(t=>r(51,P=t)))),1&t.$$.dirty[0]&&(r(16,f=tt.getDerivedFromVars(tt.json.accessibility)),W(),W=h(f,(t=>r(50,F=t)))),1&t.$$.dirty[0]&&(r(15,g=tt.getDerivedFromVars(tt.json.aspect)),H(),H=h(g,(t=>r(49,D=t)))),1&t.$$.dirty[0]&&(r(14,m=tt.getDerivedFromVars(tt.json.tint_color)),U(),U=h(m,(t=>r(48,V=t)))),1&t.$$.dirty[0]&&(r(13,v=tt.getDerivedFromVars(tt.json.tint_mode)),L(),L=h(v,(t=>r(47,j=t)))),1&t.$$.dirty[0]&&(r(12,y=tt.getDerivedFromVars(tt.json.appearance_animation)),B(),B=h(y,(t=>r(46,A=t)))),1&t.$$.dirty[0]&&(r(11,$=tt.getDerivedFromVars(tt.json.filters)),R(),R=h($,(t=>r(44,E=t)))),268435457&t.$$.dirty[0]|201326592&t.$$.dirty[1]){let t="gif"===tt.json.type?z:T;r(28,lt="empty://"===t),lt&&(t=Jr),r(4,it=t)}if(16&t.$$.dirty[0]&&r(3,st=0),17&t.$$.dirty[0]&&(it?r(7,ut=!1):(r(7,ut=!0),tt.logError(ge(new Error('Missing "'.concat("gif"===tt.json.type?"gif_url":"image_url",'" for "').concat(tt.json.type,'"')))))),33554432&t.$$.dirty[1]&&r(43,b="wrap_content"===(null==M?void 0:M.type)),16777216&t.$$.dirty[1]&&r(42,_="wrap_content"===(null==O?void 0:O.type)),268435464&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&r(30,dt=(0===st||st===Gr||lt)&&N?'url("'.concat(Rr(N),'")'):""),805306376&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&r(29,ct=0===st||st===Gr||lt?we(I,1,ct):""),2097153&t.$$.dirty[1]&&r(31,ht=Ve(S)||ht),1048576&t.$$.dirty[1]&&r(32,pt=function(t,e,n){let r=t.content_alignment_horizontal;const o=t.content_alignment_vertical;return"start"===r?r="ltr"===e?"left":"right":"end"===r&&(r="ltr"===e?"right":"left"),r&&"left"!==r&&"center"!==r&&"right"!==r||o&&"top"!==o&&"center"!==o&&"bottom"!==o?n:De({content_alignment_horizontal:r,content_alignment_vertical:o})}(P,C,pt)),524288&t.$$.dirty[1]&&r(10,w=(null==F?void 0:F.description)||""),262144&t.$$.dirty[1]){const t=null==D?void 0:D.ratio;t&&un(t)?r(5,ft=(100/Number(t)).toFixed(2)):r(5,ft="0")}if(196620&t.$$.dirty[1]){const t=V?we(V):void 0,e=Hn(j,gt);t===at&&e===gt||(nt.removeSvgFilter(at,gt),r(6,mt=t?nt.addSvgFilter(t,e):""),r(33,at=t),r(34,gt=e))}if(32768&t.$$.dirty[1]&&A&&"fade"===A.type){const t=A;r(35,vt=qe(t.interpolator,"ease_in_out").replace(/_/g,"-")),r(38,bt=Le(t.duration,300)),r(37,$t=Le(t.start_delay,0)),r(36,yt=Le(t.alpha,0))}if(1&t.$$.dirty[0]|24576&t.$$.dirty[1]){let t="",e="";Array.isArray(E)&&E.length&&(t=dn(E,tt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),r(39,wt=t),r(40,kt=e),r(41,Et="rtl"===C&&Array.isArray(E)&&E.some((t=>"rtl_mirror"===t.type)))}40&t.$$.dirty[0]|7184&t.$$.dirty[1]&&r(9,x={aspect:"0"!==ft,"is-width-content":b,"is-height-content":_,loaded:1===st,"before-appearance":Boolean(vt)&&0===st,"is-rtl-mirror":Et}),1610612808&t.$$.dirty[0]|1011&t.$$.dirty[1]&&r(8,k={"background-image":dt,"background-color":dt?void 0:ct,"background-size":ht,"clip-path":kt||void 0,"object-fit":ht,"object-position":pt,filter:[1===st&&mt?"url(#".concat(mt,")"):"",wt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":vt||void 0,"--divkit-appearance-fade-start":vt?yt:void 0,"--divkit-appearance-delay":vt?"".concat($t,"ms"):void 0,"--divkit-appearance-duration":vt?"".concat(bt,"ms"):void 0})},[tt,et,ot,st,it,ft,mt,ut,k,x,w,$,y,v,m,g,f,d,u,c,l,s,a,i,o,rt,function(){0===st&&r(3,st=1)},function(){0===st&&r(3,st=Gr)},lt,ct,dt,ht,pt,at,gt,vt,yt,$t,bt,wt,kt,Et,_,b,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,function(t){Ct[t?"unshift":"push"]((()=>{ot=t,r(2,ot),r(0,tt),r(58,z),r(57,T),r(28,lt)}))},function(t){Ct[t?"unshift":"push"]((()=>{ot=t,r(2,ot),r(0,tt),r(58,z),r(57,T),r(28,lt)}))}]}const Yr=class extends ce{constructor(t){super(),se(this,t,Kr,qr,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Xr={grid:"divkit-d9080",grid_halign_start:"divkit-fc24d",grid_halign_center:"divkit-a14a6",grid_halign_end:"divkit-cfd04",grid_valign_start:"divkit-c3106",grid_valign_center:"divkit-d4310",grid_valign_end:"divkit-fa9cf"};function Zr(t){return t>0&&t<1}function Qr(t){return String(Math.ceil(1e3*t)/1e3)}function to(t,e,n){if(t.some(Zr)){const e=Math.max(...t.filter(Zr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat($e(r*t[e]/o),",").concat(Qr(t[e]),"fr)"):t[e]?i[e]="".concat(Qr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function eo(t,e,n){const r=t.slice();return r[29]=e[n],r}function no(t){let e,n;return e=new Fn({props:{cls:Oe("grid",Xr,t[7]),componentContext:t[0],style:t[6],layoutParams:t[1],parentOf:t[2].map(ao),replaceItems:t[12],$$slots:{default:[oo]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.cls=Oe("grid",Xr,t[7])),1&n[0]&&(r.componentContext=t[0]),64&n[0]&&(r.style=t[6]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(ao)),16&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function ro(t){let e,n;return e=new Rs({props:{componentContext:t[29].componentContext,layoutParams:t[29].layoutParams}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.componentContext=t[29].componentContext),16&n[0]&&(r.layoutParams=t[29].layoutParams),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function oo(t){let e,n,r=Kt(t[4]),o=[];for(let e=0;e<r.length;e+=1)o[e]=ro(eo(t,r,e));const i=t=>qt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=H()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=H()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(16&n[0]){let a;for(r=Kt(t[4]),a=0;a<r.length;a+=1){const i=eo(t,r,a);o[a]?(o[a].p(i,n),Wt(o[a],1)):(o[a]=ro(i),o[a].c(),Wt(o[a],1),o[a].m(e.parentNode,e))}for(Ut(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)qt(o[t]);n=!1},d(t){t&&T(e),z(o,t)}}}function io(t){let e,n,r=!t[5]&&no(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[5]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),32&n[0]&&Wt(r,1)):(r=no(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}const ao=t=>t.json;function so(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$=n,b=n,_=n,w=n;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>w()));let{componentContext:x}=e,{layoutParams:k}=e;const E=xt(fe).direction;p(t,E,(t=>r(23,f=t)));let C,A,j=1,V=[],D=[],F=[],P=[],S=0,I=!1,N="start",O="start";return t.$$set=t=>{"componentContext"in t&&r(0,x=t.componentContext),"layoutParams"in t&&r(1,k=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&x.json&&(r(13,j=1),r(20,N="start"),r(21,O="start")),1&t.$$.dirty[0]&&r(22,o=Array.isArray(x.json.items)&&x.json.items||[]),1&t.$$.dirty[0]&&(r(10,i=x.getDerivedFromVars(x.json.column_count)),w(),w=h(i,(t=>r(27,y=t)))),1&t.$$.dirty[0]&&(r(9,a=x.getDerivedFromVars(x.json.content_alignment_vertical)),b(),b=h(a,(t=>r(25,m=t)))),1&t.$$.dirty[0]&&(r(8,s=x.getDerivedFromVars(x.json.content_alignment_horizontal)),$(),$=h(s,(t=>r(24,g=t)))),134225920&t.$$.dirty[0]&&r(13,j=Sn(y,j)),4194305&t.$$.dirty[0]&&r(2,l=o.map(((t,e)=>x.produceChildContext(t,{path:e})))),5&t.$$.dirty[0]){let t=[];l.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),r(3,C=he(t,(t=>[...t]))),_(),_=h(C,(t=>r(26,v=t)))}if(67887109&t.$$.dirty[0]){const t={};let e=0,n=0;r(14,V=[]),r(15,D=[]),r(16,F=[]),r(17,P=[]),r(19,I=!1),r(4,A=l.map(((o,i)=>{var a,s,l,c;const u=v[i],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,g="match_parent"===(null===(s=u.height)||void 0===s?void 0:s.type)?Number(u.height.weight||1)/h:0,m=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 o=e;o<e+d;++o)for(let e=n;e<n+h;++e)t[o+"_"+e]?r(19,I=!0):(t[o+"_"+e]=!0,(!V[o]||V[o]<f)&&r(14,V[o]=f,V),(!D[e]||D[e]<g)&&r(15,D[e]=g,D),(!F[o]||F[o]<m)&&r(16,F[o]=m,F),(!P[e]||P[e]<y)&&r(17,P[e]=y,P));do{++e,e>=j&&(e=0,++n)}while(t[e+"_"+n]);return{componentContext:o,layoutParams:{gridArea:p}}}))),0!==e&&r(19,I=!0),I&&x.logError(ge(new Error('Mismatching "grid" rows/columns'))),r(18,S=n)}34603008&t.$$.dirty[0]&&r(20,N=Ln(m,N)),27262976&t.$$.dirty[0]&&r(21,O=Bn(g,f,O)),3145728&t.$$.dirty[0]&&r(7,c={valign:N,halign:O}),516096&t.$$.dirty[0]&&r(6,u={"grid-template-columns":to(V,F,j),"grid-template-rows":to(D,P,S)}),524288&t.$$.dirty[0]&&r(5,d=I)},[x,k,l,C,A,d,u,c,s,a,i,E,function(t){r(0,x=Object.assign(Object.assign({},x),{json:Object.assign(Object.assign({},x.json),{items:t.filter(Ee)})}))},j,V,D,F,P,S,I,N,O,o,f,g,m,v,y]}const lo={gallery__scroller:"divkit-a4e39",gallery_scrollbar_none:"divkit-f49e7",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon-path":"divkit-b4173"},co={arrow:"divkit-bf36b",arrow__icon:"divkit-a67bf",arrow_left:"divkit-e2a31",arrow_right:"divkit-c684b"};function uo(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}const{Boolean:ho}=A;function po(t,e,n){const r=t.slice();return r[75]=e[n],r[76]=e,r[77]=n,r}function fo(t,e,n){const r=t.slice();return r[78]=e[n],r}function go(t){let e,n;return e=new Rs({props:{componentContext:t[78],layoutParams:t[6]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.componentContext=t[78]),64&n[0]&&(r.layoutParams=t[6]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function mo(t){let e,n,r,o,i,a=t[77],s=Kt(t[75]),l=[];for(let e=0;e<s.length;e+=1)l[e]=go(fo(t,s,e));const c=t=>qt(l[t],1,1,(()=>{l[t]=null})),u=()=>t[63](e,a),d=()=>t[63](null,a);return{c(){e=R("div");for(let t=0;t<l.length;t+=1)l[t].c();n=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);for(let t=0;t<l.length;t+=1)l[t].l(r);n=ot(r),r.forEach(T),this.h()},h(){q(e,"class",r=lo.gallery__items),q(e,"style",o=ye(t[14]))},m(t,r){M(t,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);N(e,n),u(),i=!0},p(r,h){if(t=r,65600&h[0]){let r;for(s=Kt(t[75]),r=0;r<s.length;r+=1){const o=fo(t,s,r);l[r]?(l[r].p(o,h),Wt(l[r],1)):(l[r]=go(o),l[r].c(),Wt(l[r],1),l[r].m(e,n))}for(Ut(),r=s.length;r<l.length;r+=1)c(r);Ht()}(!i||16384&h[0]&&o!==(o=ye(t[14])))&&q(e,"style",o),a!==t[77]&&(d(),a=t[77],u())},i(t){if(!i){for(let t=0;t<s.length;t+=1)Wt(l[t]);i=!0}},o(t){l=l.filter(ho);for(let t=0;t<l.length;t+=1)qt(l[t]);i=!1},d(t){t&&T(e),z(l,t),d()}}}function vo(t){let e,n,r=t[10]&&t[7]&&yo(t),o=t[11]&&t[7]&&$o(t);return{c(){r&&r.c(),e=U(),o&&o.c(),n=H()},l(t){r&&r.l(t),e=ot(t),o&&o.l(t),n=H()},m(t,i){r&&r.m(t,i),M(t,e,i),o&&o.m(t,i),M(t,n,i)},p(t,i){t[10]&&t[7]?r?r.p(t,i):(r=yo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]&&t[7]?o?o.p(t,i):(o=$o(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){t&&(T(e),T(n)),r&&r.d(t),o&&o.d(t)}}}function yo(t){let e,r,o,i,a=!t[29]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(T),r.forEach(T),this.h()},h(){q(n,"class",r=lo["gallery__arrow-icon-path"]),q(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),q(e,"class",o=co.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){M(t,e,r),N(e,n)},d(t){t&&T(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(T),this.h()},h(){q(e,"class",r=t[29]||"".concat(lo.gallery__arrow," ").concat(co.arrow," ").concat(co.arrow_left))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=W(e,"click",t[66]),o=!0)},p:n,d(t){t&&T(e),a&&a.d(),o=!1,i()}}}function $o(t){let e,r,o,i,a=!t[30]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(T),r.forEach(T),this.h()},h(){q(n,"class",r=lo["gallery__arrow-icon-path"]),q(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),q(e,"class",o=co.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){M(t,e,r),N(e,n)},d(t){t&&T(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(T),this.h()},h(){q(e,"class",r=t[30]||"".concat(lo.gallery__arrow," ").concat(co.arrow," ").concat(co.arrow_right))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=W(e,"click",t[67]),o=!0)},p:n,d(t){t&&T(e),a&&a.d(),o=!1,i()}}}function bo(t){let e,n,r,o,i,a,s,c,u,d,h,p=Kt(t[16]),f=[];for(let e=0;e<p.length;e+=1)f[e]=mo(po(t,p,e));const g=t=>qt(f[t],1,1,(()=>{f[t]=null}));let m="horizontal"===t[4]&&vo(t);return{c(){e=R("div"),n=R("div");for(let t=0;t<f.length;t+=1)f[t].c();s=U(),m&&m.c(),c=H(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var r=X(e);n=et(r,"DIV",{class:!0,style:!0});var o=X(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(T),r.forEach(T),s=ot(t),m&&m.l(t),c=H(),this.h()},h(){q(n,"class",r=lo["gallery__items-grid"]),q(n,"style",o=ye(t[15])),q(e,"class",i=lo.gallery__scroller+" "+(t[27]?pe["root_restrict-scroll"]:"")),q(e,"style",a=ye(t[5]))},m(r,o){M(r,e,o),N(e,n);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(n,null);t[64](n),t[65](e),M(r,s,o),m&&m.m(r,o),M(r,c,o),u=!0,d||(h=W(e,"scroll",(function(){l(t[7]?t[33]:null)&&(t[7]?t[33]:null).apply(this,arguments)})),d=!0)},p(r,s){if(t=r,82496&s[0]){let e;for(p=Kt(t[16]),e=0;e<p.length;e+=1){const r=po(t,p,e);f[e]?(f[e].p(r,s),Wt(f[e],1)):(f[e]=mo(r),f[e].c(),Wt(f[e],1),f[e].m(n,null))}for(Ut(),e=p.length;e<f.length;e+=1)g(e);Ht()}(!u||32768&s[0]&&o!==(o=ye(t[15])))&&q(n,"style",o),(!u||134217728&s[0]&&i!==(i=lo.gallery__scroller+" "+(t[27]?pe["root_restrict-scroll"]:"")))&&q(e,"class",i),(!u||32&s[0]&&a!==(a=ye(t[5])))&&q(e,"style",a),"horizontal"===t[4]?m?m.p(t,s):(m=vo(t),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i(t){if(!u){for(let t=0;t<p.length;t+=1)Wt(f[t]);u=!0}},o(t){f=f.filter(ho);for(let t=0;t<f.length;t+=1)qt(f[t]);u=!1},d(n){n&&(T(e),T(s),T(c)),z(f,n),t[64](null),t[65](null),m&&m.d(n),d=!1,h()}}}function _o(t){let e,n,r,o;return e=new Fn({props:{cls:Oe("gallery",lo,t[13]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,customActions:"gallery",parentOf:t[8],replaceItems:t[31],$$slots:{default:[bo]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(i,a){ie(e,i,a),n=!0,r||(o=W(window,"resize",(function(){l(t[7]?t[34]:null)&&(t[7]?t[34]:null).apply(this,arguments)})),r=!0)},p(n,r){t=n;const o={};8192&r[0]&&(o.cls=Oe("gallery",lo,t[13])),1&r[0]&&(o.componentContext=t[0]),2&r[0]&&(o.layoutParams=t[1]),256&r[0]&&(o.parentOf=t[8]),134336252&r[0]|524288&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t),r=!1,o()}}}function wo(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M=n,T=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n,J=n;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J()));let{componentContext:G}=e,{layoutParams:K}=e;const Y=xt(fe),X=Y.direction;let Z;p(t,X,(t=>r(51,k=t)));let Q,tt=[],et=!1,nt=!1,rt=null,ot=!1;const it=Y.getCustomization("galleryLeftClass"),at=Y.getCustomization("galleryRightClass");let st,lt,ct,ut,dt,ht=1,pt="horizontal",ft="start",gt=8,mt="",vt=[],yt={},$t=!1,wt={},kt=0;const Et=Y.isDesktop;function At(){if(!Z)return;let t=Z.scrollLeft;"rtl"===k&&(t*=-1);const e=Z.scrollWidth,n=Z.offsetWidth;"ltr"===k?(r(10,et=t>2),r(11,nt=t+n<e-2)):(r(11,nt=t>2),r(10,et=t+n<e-2))}p(t,Et,(t=>r(62,N=t)));const jt=Wn(At,50);function Vt(t){Z.scroll({left:Z.scrollLeft+.75*Z.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function Dt(){let t=[],e=tt[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<ht;++e){const r=tt[e].children[n];r&&t.push(r)}return t}function Ft(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===pt,o=r?"offsetLeft":"offsetTop",i=r?"left":"top",a=t[e];a&&Z.scroll({[i]:Math.max(0,a[o]+.01-gt/2),behavior:n})}function Pt(t){const e=Dt(),n=Z.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===pt?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===pt?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return bt((()=>{r(37,ot=!0),At(),kt&&Ft(Dt(),kt,"auto")})),_t((()=>{r(37,ot=!1),st&&!G.fakeElement&&(Y.unregisterInstance(st),r(38,st=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,G=t.componentContext),"layoutParams"in t&&r(1,K=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&G.json&&(r(39,ht=1),r(4,pt="horizontal"),r(40,ft="start"),r(42,gt=8),r(45,mt="")),1&t.$$.dirty[0]&&r(8,o=Array.isArray(G.json.items)&&G.json.items||[]),1&t.$$.dirty[0]&&(r(26,i=G.getDerivedFromVars(G.json.column_count)),q(),q=h(i,(t=>r(61,I=t)))),1&t.$$.dirty[0]&&(r(25,a=G.getDerivedFromVars(G.json.orientation)),W(),W=h(a,(t=>r(60,S=t)))),1&t.$$.dirty[0]&&(r(24,s=G.getDerivedFromVars(G.json.cross_content_alignment)),H(),H=h(s,(t=>r(59,P=t)))),1&t.$$.dirty[0]&&(r(23,l=G.getDerivedFromVars(G.json.item_spacing)),U(),U=h(l,(t=>r(58,F=t)))),1&t.$$.dirty[0]&&(r(22,c=G.getDerivedFromVars(G.json.cross_spacing)),L(),L=h(c,(t=>r(57,D=t)))),1&t.$$.dirty[0]&&(r(21,u=G.getDerivedFromVars(G.json.paddings)),B(),B=h(u,(t=>r(56,V=t)))),1&t.$$.dirty[0]&&(r(20,d=G.getDerivedFromVars(G.json.scroll_mode)),z(),z=h(d,(t=>r(54,A=t)))),1&t.$$.dirty[0]&&(r(19,f=G.getDerivedFromVars(G.json.restrict_parent_scroll)),J(),J=h(f,(t=>r(27,O=t)))),1&t.$$.dirty[0]&&(r(18,g=G.getDerivedFromVars(G.json.scrollbar)),T(),T=h(g,(t=>r(53,C=t)))),1&t.$$.dirty[0]&&(r(17,m=G.getDerivedFromVars(G.json.default_item)),M(),M=h(m,(t=>r(52,E=t)))),257&t.$$.dirty[0]&&r(50,v=o.map(((t,e)=>G.produceChildContext(t,{path:e})))),64&t.$$.dirty[1]|1&t.$$.dirty[2]&&r(7,y=N&&ot),136&t.$$.dirty[0]|32&t.$$.dirty[1]&&(y?"undefined"!=typeof ResizeObserver&&(r(36,rt=new ResizeObserver((()=>{jt()}))),rt.observe(Q)):rt&&(rt.disconnect(),r(36,rt=null))),1073742080&t.$$.dirty[1]&&r(39,ht=Sn(I,ht)),524544&t.$$.dirty[1]&&r(16,$=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(v,ht)),16&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&r(4,pt=Ir(S,pt)),268435968&t.$$.dirty[1]&&r(40,ft=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(P,ft)),134219776&t.$$.dirty[1]&&(r(42,gt=Le(F,gt)),r(41,lt=$e(gt))),67119104&t.$$.dirty[1]&&(r(44,ut=Le(D,gt)),r(43,ct=$e(ut))),34619392&t.$$.dirty[1]&&r(45,mt=Be(V,k,mt)),16&t.$$.dirty[0]&&r(49,b="horizontal"===pt?"grid-template-columns":"grid-template-rows"),17&t.$$.dirty[0]|524288&t.$$.dirty[1]){let t=[];v.forEach((e=>{const n="horizontal"===pt?"width":"height";t.push(G.getDerivedFromVars(e.json[n]))})),r(12,dt=he(t,(t=>t))),R(),R=h(dt,(t=>r(55,j=t)))}if(16&t.$$.dirty[0]|16810240&t.$$.dirty[1]&&(r(46,vt=[]),ht>1?vt.push("auto"):j.forEach((t=>{!t&&"horizontal"===pt||"match_parent"===(null==t?void 0:t.type)?vt.push("100%"):vt.push("max-content")}))),112&t.$$.dirty[0]|8391424&t.$$.dirty[1]){const t={};let e={};r(47,$t=!1),"horizontal"===pt?e.parentVAlign=ft:e.parentHAlign=ft,"paging"===A&&(r(47,$t=!0),e.scrollSnap="start",t["horizontal"===pt?"scroll-padding-left":"scroll-padding-top"]=$e(gt/2)),1===ht&&(e.parentLayoutOrientation=pt),r(5,yt=We(t,yt)),r(6,wt=We(e,wt))}20480&t.$$.dirty[1]&&r(15,_={padding:mt,"grid-gap":ct}),295936&t.$$.dirty[1]&&r(14,w={"grid-gap":lt,[b]:uo(vt)}),16&t.$$.dirty[0]|4259840&t.$$.dirty[1]&&r(13,x={orientation:pt,"scroll-snap":$t,scrollbar:"auto"===C?"auto":"none"}),2228224&t.$$.dirty[1]&&r(48,kt=Le(E,kt)),1&t.$$.dirty[0]&&G.json&&jt(),21&t.$$.dirty[0]|128&t.$$.dirty[1]&&G.json&&(st&&(Y.unregisterInstance(st),r(38,st=void 0)),G.json.id&&!G.fakeElement&&(r(38,st=G.json.id),Y.registerInstance(st,{setCurrentItem(t){const e=Dt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');Ft(e,t)},setPreviousItem(t){const e=Pt("prev"),n=Dt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),Ft(n,r)},setNextItem(t){const e="horizontal"===pt?Z.scrollLeft+Z.offsetWidth===Z.scrollWidth:Z.scrollTop+Z.offsetHeight===Z.scrollHeight,n=Dt();if(e&&"ring"===t)return void Ft(n,0);const r=Pt("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),Ft(n,o)}})))},[G,K,Z,Q,pt,yt,wt,y,o,tt,et,nt,dt,x,w,_,$,m,g,f,d,u,c,l,s,a,i,O,X,it,at,function(t){r(0,G=Object.assign(Object.assign({},G),{json:Object.assign(Object.assign({},G.json),{items:t.filter(Ee)})}))},Et,At,jt,Vt,rt,ot,st,ht,ft,lt,gt,ct,ut,mt,vt,$t,kt,b,v,k,E,C,A,j,V,D,F,P,S,I,N,function(t,e){Ct[t?"unshift":"push"]((()=>{tt[e]=t,r(9,tt)}))},function(t){Ct[t?"unshift":"push"]((()=>{Q=t,r(3,Q)}))},function(t){Ct[t?"unshift":"push"]((()=>{Z=t,r(2,Z)}))},()=>Vt("left"),()=>Vt("right")]}const xo={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"},ko=37,Eo=39,Co=36,Ao=35,{Boolean:jo}=A;function Vo(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[28][r[92]];return r[93]=i,r}function Do(t,e,n){const r=t.slice();r[91]=e[n];const o=r[91].index;r[92]=o;const i=r[92]===r[15];return r[96]=i,r}function Fo(t){let e,n;return e=new Fn({props:{cls:Oe("tabs",xo,t[46]),componentContext:t[0],layoutParams:t[1],customActions:"tabs",parentOf:t[41],parentOfSimpleMode:!0,replaceItems:t[47],$$slots:{default:[Mo]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),1024&n[1]&&(r.parentOf=t[41]),2147483641&n[0]|2049&n[1]|64&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Po(t){let e,n,r=t[91].title+"";return{c(){e=L(r),n=U()},l(t){e=rt(t,r),n=ot(t)},m(t,r){M(t,e,r),M(t,n,r)},p(t,n){65536&n[0]&&r!==(r=t[91].title+"")&&at(e,r)},d(t){t&&(T(e),T(n))}}}function So(t){let e,n;function r(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[68](t[92],...n)}return e=new ln({props:{componentContext:t[0],cls:Oe("tabs__item",xo,{selected:t[96],actionable:Boolean(t[91].title_click_action)}),actions:t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(Xe):[],attrs:{id:"".concat(t[44],"-tab-").concat(t[92]),"aria-controls":"".concat(t[44],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"},customAction:t[0].fakeElement?null:r,$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(n,o){t=n;const i={};1&o[0]&&(i.componentContext=t[0]),98304&o[0]&&(i.cls=Oe("tabs__item",xo,{selected:t[96],actionable:Boolean(t[91].title_click_action)})),65537&o[0]&&(i.actions=t[91].title_click_action&&!t[0].fakeElement?[t[91].title_click_action].filter(Xe):[]),98305&o[0]&&(i.attrs={id:"".concat(t[44],"-tab-").concat(t[92]),"aria-controls":"".concat(t[44],"-panel-").concat(t[92]),role:"tab",tabindex:t[96]&&!t[0].fakeElement?t[91].title_click_action?void 0:"0":"-1","aria-selected":t[96]?"true":"false"}),65537&o[0]&&(i.customAction=t[0].fakeElement?null:r),65536&o[0]|64&o[3]&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Io(t){let e,n,r;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=xo.tabs__separator),q(e,"style",r=ye(t[31]))},m(t,n){M(t,e,n)},p(t,n){1&n[1]&&r!==(r=ye(t[31]))&&q(e,"style",r)},d(t){t&&T(e)}}}function No(t){let e,n;return e=new Rs({props:{componentContext:t[93],layoutParams:t[3]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};268500992&n[0]&&(r.componentContext=t[93]),8&n[0]&&(r.layoutParams=t[3]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Oo(t){let e,n,r,o,i,a,s=t[93]&&No(t);return{c(){e=R("div"),s&&s.c(),n=U(),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=X(e);s&&s.l(r),n=ot(r),r.forEach(T),this.h()},h(){q(e,"class",r=Oe("tabs__panel",xo,{visible:t[29][t[92]]})),q(e,"role","tabpanel"),q(e,"id",o=t[44]+"-panel-"+t[92]),q(e,"aria-labelledby",i=t[44]+"-tab-"+t[92]),lt(e,"left",100*t[92]+"%")},m(t,r){M(t,e,r),s&&s.m(e,null),N(e,n),a=!0},p(t,l){t[93]?s?(s.p(t,l),268500992&l[0]&&Wt(s,1)):(s=No(t),s.c(),Wt(s,1),s.m(e,n)):s&&(Ut(),qt(s,1,1,(()=>{s=null})),Ht()),(!a||536936448&l[0]&&r!==(r=Oe("tabs__panel",xo,{visible:t[29][t[92]]})))&&q(e,"class",r),(!a||65536&l[0]&&o!==(o=t[44]+"-panel-"+t[92]))&&q(e,"id",o),(!a||65536&l[0]&&i!==(i=t[44]+"-tab-"+t[92]))&&q(e,"aria-labelledby",i),(!a||65536&l[0])&&lt(e,"left",100*t[92]+"%")},i(t){a||(Wt(s),a=!0)},o(t){qt(s),a=!1},d(t){t&&T(e),s&&s.d()}}}function Mo(t){let e,n,r,o,i,a,c,u,d,h,p,f=Kt(t[16]),g=[];for(let e=0;e<f.length;e+=1)g[e]=So(Do(t,f,e));const m=t=>qt(g[t],1,1,(()=>{g[t]=null}));let v=t[18]&&Io(t),y=Kt(t[16]),$=[];for(let e=0;e<y.length;e+=1)$[e]=Oo(Vo(t,y,e));const b=t=>qt($[t],1,1,(()=>{$[t]=null}));return{c(){e=R("div");for(let t=0;t<g.length;t+=1)g[t].c();r=U(),v&&v.c(),o=U(),i=R("div"),a=R("div");for(let t=0;t<$.length;t+=1)$[t].c();this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0});var n=X(e);for(let t=0;t<g.length;t+=1)g[t].l(n);n.forEach(T),r=ot(t),v&&v.l(t),o=ot(t),i=et(t,"DIV",{class:!0});var s=X(i);a=et(s,"DIV",{class:!0});var l=X(a);for(let t=0;t<$.length;t+=1)$[t].l(l);l.forEach(T),s.forEach(T),this.h()},h(){q(e,"class",n=xo.tabs__list+" "+(t[42]?pe["root_restrict-scroll"]:"")),q(e,"role","tablist"),lt(e,"--divkit-tabs-title-padding",t[14]?Te(t[14],t[17]):""),lt(e,"--divkit-tabs-font-size",$e(t[4])),lt(e,"--divkit-tabs-paddings",t[5]),lt(e,"--divkit-tabs-line-height",t[22]),lt(e,"--divkit-tabs-letter-spacing",t[23]),lt(e,"--divkit-tabs-active-font-weight",t[7]||""),lt(e,"--divkit-tabs-inactive-font-weight",t[8]||""),lt(e,"--divkit-tabs-active-font-family",t[24]||""),lt(e,"--divkit-tabs-inactive-font-family",t[25]||""),lt(e,"--divkit-tabs-active-text-color",t[9]),lt(e,"--divkit-tabs-inactive-text-color",t[10]),lt(e,"--divkit-tabs-active-background-color",t[11]),lt(e,"--divkit-tabs-inactive-background-color",t[12]),lt(e,"--divkit-tabs-border-radius",t[6]),lt(e,"--divkit-tabs-items-spacing",t[13]?be(t[13]):""),q(a,"class",c=Oe("tabs__swiper",xo,{inited:t[26],animated:t[27]})),q(i,"class",u=xo.tabs__panels+" "+(t[42]?pe["root_restrict-scroll"]:""))},m(n,s){M(n,e,s);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(e,null);t[69](e),M(n,r,s),v&&v.m(n,s),M(n,o,s),M(n,i,s),N(i,a);for(let t=0;t<$.length;t+=1)$[t]&&$[t].m(a,null);t[70](a),t[71](i),d=!0,h||(p=[W(e,"keydown",t[49]),W(a,"touchstart",(function(){l(t[30]?t[50]:void 0)&&(t[30]?t[50]:void 0).apply(this,arguments)})),W(a,"touchmove",(function(){l(t[30]?t[51]:void 0)&&(t[30]?t[51]:void 0).apply(this,arguments)})),W(a,"touchend",(function(){l(t[30]?t[52]:void 0)&&(t[30]?t[52]:void 0).apply(this,arguments)})),W(a,"touchcancel",(function(){l(t[30]?t[52]:void 0)&&(t[30]?t[52]:void 0).apply(this,arguments)}))],h=!0)},p(r,s){if(t=r,98305&s[0]|139264&s[1]){let n;for(f=Kt(t[16]),n=0;n<f.length;n+=1){const r=Do(t,f,n);g[n]?(g[n].p(r,s),Wt(g[n],1)):(g[n]=So(r),g[n].c(),Wt(g[n],1),g[n].m(e,null))}for(Ut(),n=f.length;n<g.length;n+=1)m(n);Ht()}if((!d||2048&s[1]&&n!==(n=xo.tabs__list+" "+(t[42]?pe["root_restrict-scroll"]:"")))&&q(e,"class",n),147456&s[0]&&lt(e,"--divkit-tabs-title-padding",t[14]?Te(t[14],t[17]):""),16&s[0]&&lt(e,"--divkit-tabs-font-size",$e(t[4])),32&s[0]&&lt(e,"--divkit-tabs-paddings",t[5]),4194304&s[0]&&lt(e,"--divkit-tabs-line-height",t[22]),8388608&s[0]&&lt(e,"--divkit-tabs-letter-spacing",t[23]),128&s[0]&&lt(e,"--divkit-tabs-active-font-weight",t[7]||""),256&s[0]&&lt(e,"--divkit-tabs-inactive-font-weight",t[8]||""),16777216&s[0]&&lt(e,"--divkit-tabs-active-font-family",t[24]||""),33554432&s[0]&&lt(e,"--divkit-tabs-inactive-font-family",t[25]||""),512&s[0]&&lt(e,"--divkit-tabs-active-text-color",t[9]),1024&s[0]&&lt(e,"--divkit-tabs-inactive-text-color",t[10]),2048&s[0]&&lt(e,"--divkit-tabs-active-background-color",t[11]),4096&s[0]&&lt(e,"--divkit-tabs-inactive-background-color",t[12]),64&s[0]&&lt(e,"--divkit-tabs-border-radius",t[6]),8192&s[0]&&lt(e,"--divkit-tabs-items-spacing",t[13]?be(t[13]):""),t[18]?v?v.p(t,s):(v=Io(t),v.c(),v.m(o.parentNode,o)):v&&(v.d(1),v=null),805371912&s[0]|8192&s[1]){let e;for(y=Kt(t[16]),e=0;e<y.length;e+=1){const n=Vo(t,y,e);$[e]?($[e].p(n,s),Wt($[e],1)):($[e]=Oo(n),$[e].c(),Wt($[e],1),$[e].m(a,null))}for(Ut(),e=y.length;e<$.length;e+=1)b(e);Ht()}(!d||201326592&s[0]&&c!==(c=Oe("tabs__swiper",xo,{inited:t[26],animated:t[27]})))&&q(a,"class",c),(!d||2048&s[1]&&u!==(u=xo.tabs__panels+" "+(t[42]?pe["root_restrict-scroll"]:"")))&&q(i,"class",u)},i(t){if(!d){for(let t=0;t<f.length;t+=1)Wt(g[t]);for(let t=0;t<y.length;t+=1)Wt($[t]);d=!0}},o(t){g=g.filter(jo);for(let t=0;t<g.length;t+=1)qt(g[t]);$=$.filter(jo);for(let t=0;t<$.length;t+=1)qt($[t]);d=!1},d(n){n&&(T(e),T(r),T(o),T(i)),z(g,n),t[69](null),v&&v.d(n),z($,n),t[70](null),t[71](null),h=!1,s(p)}}}function To(t){let e,n,r=!t[2]&&Fo(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&Wt(r,1)):(r=Fo(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function zo(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S=n,I=n,N=n,O=n,M=n,T=n,z=n,R=n,B=n;var L,U;t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B()));let{componentContext:H}=e,{layoutParams:W}=e;const q=xt(fe),J=q.direction;p(t,J,(t=>r(17,E=t)));const G=q.genId("tabs");let K,Y=!1,X=de([]);p(t,X,(t=>r(16,w=t)));let Z,Q,tt,et,nt,rt,ot,it,at,st={},lt=12,ct="",ut="",dt="",ht="",pt="",ft="",gt="",mt="",vt="",yt="",$t=0,bt="",wt="",kt=null,Et=!1,At=!1,jt=[],Vt=[],Dt=null,Ft=null,St=null,It=!1,Nt=!1;async function Ot(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(rt=y,r(15,y=t),Lt(),r(27,At=!0),zt(100*-y),Rt(),async function(){await Pt();const t=document.getElementById("".concat(G,"-panel-").concat(y));t&&r(20,Q.style.height=$e(t.offsetHeight),Q)}(),Bt(),at=-y*Q.clientWidth,e){await Pt();const t=Z.querySelector(".".concat(xo.tabs__item_selected));t&&t.focus()}}function Mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==w?void 0:w.length;if(!n)return;const r=w.map((t=>t.index));let o=r.indexOf(y)+t;o>=n?o=0:o<0&&(o=n-1),Ot(r[o],e)}function Tt(t,e){return y===e||(Ot(e),!1)}async function zt(t){await Pt(),r(21,tt.style.transform="translate3d(".concat(t,"%,0,0)"),tt)}function Rt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,y-1):Math.min(y,null!=rt?rt:y),n=t?Math.min(o.length-1,y+1):Math.max(y,null!=rt?rt:y);r(28,jt=jt.map(((t,r)=>{var i;return t||(r>=e&&r<=n&&(null===(i=o[r])||void 0===i?void 0:i.div)?H.produceChildContext(o[r].div,{path:r}):void 0)}))),r(29,Vt=Vt.map(((t,r)=>r>=e&&r<=n)))}function Bt(){Dt&&clearTimeout(Dt),Dt=window.setTimeout((()=>{r(29,Vt=o.map(((t,e)=>e===y)))}),400)}function Lt(){Et||(r(26,Et=!0),r(20,Q.style.height=$e(Q.clientHeight),Q),r(21,tt.style.transform="translate3d(".concat(100*-(null!=rt?rt:y),"%,0,0)"),tt))}return _t((()=>{K&&(q.unregisterInstance(K),r(55,K=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,H=t.componentContext),"layoutParams"in t&&r(1,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&H.json&&(r(4,lt=12),r(5,ct=""),r(6,ht=""),r(7,et=void 0),r(24,pt=""),r(8,nt=void 0),r(25,ft=""),r(9,gt=""),r(10,mt=""),r(11,vt=""),r(12,yt=""),r(13,$t=0),r(56,bt=""),r(57,wt=""),r(14,kt=null)),1&t.$$.dirty[0]&&r(58,o=H.json.items||[]),134217728&t.$$.dirty[1]&&r(41,i=o.map((t=>t.div))),1&t.$$.dirty[0]&&(r(40,a=H.getDerivedFromVars(H.json.width)),R(),R=h(a,(t=>r(67,F=t)))),1&t.$$.dirty[0]&&(r(39,s=H.getDerivedFromVars(H.json.height)),z(),z=h(s,(t=>r(66,D=t)))),1&t.$$.dirty[0]&&r(60,l=H.getJsonWithVars(H.json.selected_tab)),1&t.$$.dirty[0]&&(r(38,c=H.getDerivedFromVars(H.json.tab_title_style)),T(),T=h(c,(t=>r(65,V=t)))),1&t.$$.dirty[0]&&(r(37,u=H.getDerivedFromVars(H.json.has_separator)),M(),M=h(u,(t=>r(18,j=t)))),1&t.$$.dirty[0]&&(r(36,d=H.getDerivedFromVars(H.json.separator_color)),O(),O=h(d,(t=>r(64,A=t)))),1&t.$$.dirty[0]&&(r(35,f=H.getDerivedFromVars(H.json.separator_paddings)),N(),N=h(f,(t=>r(63,C=t)))),1&t.$$.dirty[0]&&(r(34,g=H.getDerivedFromVars(H.json.switch_tabs_by_content_swipe_enabled)),I(),I=h(g,(t=>r(62,k=t)))),1&t.$$.dirty[0]&&(r(33,m=H.getDerivedFromVars(H.json.restrict_parent_scroll)),B(),B=h(m,(t=>r(42,P=t)))),1&t.$$.dirty[0]&&(r(32,v=H.getDerivedFromVars(H.json.title_paddings)),S(),S=h(v,(t=>r(61,x=t)))),536870912&t.$$.dirty[1]&&r(15,y=l&&Number(l)||0),1&t.$$.dirty[0]|134217728&t.$$.dirty[1])if(Array.isArray(o)&&o.length){let t=[];o.forEach(((e,n)=>{const r=H.getJsonWithVars({index:n,title:e.title,title_click_action:e.title_click_action});r.title&&"string"==typeof r.title?t.push(r):H.logError(ge(new Error("Incorrect title for the tab"),{additional:{index:n}}))})),X.set(t)}else X.set([]);if(65537&t.$$.dirty[0]&&((null==w?void 0:w.length)?r(2,Y=!1):(r(2,Y=!0),H.logError(ge(new Error('Incorrect or empty "items" prop for div "tabs"'))))),8&t.$$.dirty[0]|48&t.$$.dirty[2]){let t={};"wrap_content"===(null==F?void 0:F.type)&&(t.parentHorizontalWrapContent=!0),D&&"wrap_content"!==D.type||(t.parentVerticalWrapContent=!0),r(3,st=We(t,st))}if(32773&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&!Y&&(y<0||y>=o.length)&&(H.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab,length:o.length}})),r(15,y=y<0?0:o.length-1)),98309&t.$$.dirty[0]|4194304&t.$$.dirty[1]&&(Y||w.some((t=>y===t.index))||(H.logError(ge(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:H.json.selected_tab}})),r(15,y=(null===r(53,L=w[0])||void 0===L?void 0:L.index)||0))),8&t.$$.dirty[2]&&r(59,$=V||{}),16&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(4,lt=Sn($.font_size,lt)),131120&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&($.font_size||$.paddings)){const t=$.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/lt*10,right:(Number("ltr"===E?t.end:t.start)||Number(t.right)||0)/lt*10,bottom:(Number(t.bottom)||0)/lt*10,left:(Number("ltr"===E?t.start:t.end)||Number(t.left)||0)/lt*10};r(5,ct=Be(e,E,ct))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.line_height;void 0!==t&&un(t)&&r(22,ut=$e(t/lt*10))}if(16&t.$$.dirty[0]|268435456&t.$$.dirty[1]){const t=$.letter_spacing;void 0!==t&&Re(t)&&r(23,dt=$e(t/lt*10))}if(80&t.$$.dirty[0]|276824064&t.$$.dirty[1]&&($.corner_radius||$.corners_radius||$.font_size)){const t=null!==r(54,U=$.corner_radius)&&void 0!==U?U:1e3;$.corners_radius?r(6,ht=function(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!Re(o[t]))return r;return Ye(t,e,n)}($.corners_radius,t,lt,ht)):Re(t)&&r(6,ht=$e(t/lt*10))}128&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(7,et=Nn($.active_font_weight||$.font_weight,et)),$.font_family&&"string"==typeof $.font_family?r(24,pt=q.typefaceProvider($.font_family,{fontWeight:et||400})):r(24,pt="")),256&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&(r(8,nt=Nn($.inactive_font_weight||$.font_weight,nt)),$.font_family&&"string"==typeof $.font_family?r(25,ft=q.typefaceProvider($.font_family,{fontWeight:nt||400})):r(25,ft="")),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,gt=we($.active_text_color,1,gt)),1024&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(10,mt=we($.inactive_text_color,1,mt)),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(11,vt=we($.active_background_color,1,vt)),4096&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(12,yt=we($.inactive_background_color,1,yt)),8192&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(13,$t=Le($.item_spacing,$t)),393216&t.$$.dirty[0]|100663296&t.$$.dirty[1]|6&t.$$.dirty[2]&&j&&(A&&r(56,bt=we(A,1,bt)),C&&r(57,wt=Be(C,E,wt))),100663296&t.$$.dirty[1]&&r(31,b={background:bt,margin:wt}),1&t.$$.dirty[2]&&r(30,_=void 0===k||Boolean(k)),16384&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&r(14,kt=Ke(x||void 0,kt)),134217728&t.$$.dirty[1]&&function(t){Y||(r(28,jt=t.map(((t,e)=>{if(e===y&&(null==t?void 0:t.div))return H.produceChildContext(t.div,{path:e})}))),r(29,Vt=t.map(((t,e)=>e===y))))}(o),32773&t.$$.dirty[0]|150994944&t.$$.dirty[1]&&H.json&&(K&&(q.unregisterInstance(K),r(55,K=void 0)),!H.json.id||Y||H.fakeElement||(r(55,K=H.json.id),q.registerInstance(K,{setCurrentItem(t){if(t<0||t>o.length-1)throw new Error('Item is out of range in "set-current-item" action');Ot(t)},setPreviousItem(t){let e=y-1;e<0&&(e="ring"===t?o.length-1:y),Ot(e)},setNextItem(t){let e=y+1;e>o.length-1&&(e="ring"===t?0:y),Ot(e)}})))},[H,W,Y,st,lt,ct,ht,et,nt,gt,mt,vt,yt,$t,kt,y,w,E,j,Z,Q,tt,ut,dt,pt,ft,Et,At,jt,Vt,_,b,v,m,g,f,d,u,c,s,a,i,P,J,G,X,{},function(t){H.json.items&&r(0,H=Object.assign(Object.assign({},H),{json:Object.assign(Object.assign({},H.json),{items:H.json.items.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})))})}))},Tt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&o){if(t.which===ko)Mt(-1,!0);else if(t.which===Eo)Mt(1,!0);else if(t.which===Co)Ot(0,!0);else{if(t.which!==Ao)return;Ot(o.length-1,!0)}t.preventDefault()}},function(t){var e;const n=t.target,i=null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,".".concat(pe["root_restrict-scroll"]));o.length<2||t.touches.length>1||i&&i!==Q||(It=!1,Nt=!1,Ft=nn(t),St=null,ot=Date.now(),it=at||-y*Q.clientWidth,r(27,At=!1),Dt&&clearTimeout(Dt))},function(t){const e=nn(t);if(!Ft||St&&St.x===e.x&&St.y===e.y)return;St=e;const n=Q.clientWidth;if(It){at=e.x-Ft.x+it;const t=n*o.length;if(at>0)at=at*n/(at+3*n);else if(-at+n>t){let e=-at+n-t;e=e*n/(e+3*n),at=n-t-e}zt(100*at/n)}else Math.abs(e.y-Ft.y)>10?Nt=!0:!Nt&&Math.abs(e.x-Ft.x)>8&&(Lt(),It=!0,Ft=e,zt(100*-y),Rt(!0));It&&t.cancelable&&t.preventDefault()},function(){Nt=!1,Ft=null;let t=y;if(!It)return;It=!1;const e=Math.min(512,Q.clientWidth);Math.abs(it-at)>e/4*Math.min(1,(Date.now()-ot)/750)&&(t+=it>at?1:-1),t>=o.length?t=o.length-1:t<0&&(t=0),t===y?(at=-t*e,zt(100*-t),Bt()):Ot(t)},L,U,K,bt,wt,o,$,l,x,k,C,A,V,D,F,(t,e)=>Tt(0,t),function(t){Ct[t?"unshift":"push"]((()=>{Z=t,r(19,Z)}))},function(t){Ct[t?"unshift":"push"]((()=>{tt=t,r(21,tt)}))},function(t){Ct[t?"unshift":"push"]((()=>{Q=t,r(20,Q)}))}]}const Ro={state:"divkit-b8efc",state__animations:"divkit-adaae","state__animation-child":"divkit-eb860","state__animation-child-inner":"divkit-e08c6"};function Bo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Lo(t){return t*t*t}function Uo(t){const e=t-1;return e*e*e+1}function Ho(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Wo=Ho([.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]),qo=Ho([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]),Jo={linear:r,ease:Wo,ease_in:Lo,ease_out:Uo,ease_in_out:Bo,spring:qo},Go=200,Ko=0,Yo=0,Xo=0;function Zo(t){return Math.max(...t.map((t=>(Number(t.duration)||Go)+(Number(t.start_delay)||Ko))))}function Qo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,maxDuration:a,alpha:s}=e;const l=null!=s?s:1;return{duration:Qe()?0:a,css:t=>{const e=t*a,s=n.map((t=>{const n=Number(t.start_delay)||Ko,a=Number(t.duration)||Go,s=Math.max(0,Math.min(1,(e-n)/a)),c="in"===i?1-s:s,u=(Jo[t.interpolator||"ease_in_out"]||Bo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*l+u*(t.alpha||Yo)};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 i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*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||Xo),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(p=t.pivot_y)&&void 0!==p?p:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=s.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),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 ti(t,e,n){return t*(1-n)+e*n}const ei={linear:r,ease:Wo,ease_in:Lo,ease_out:Uo,ease_in_out:Bo,spring:qo},ni=200,ri=0;function oi(t,e){var n,r;let{rootBbox:o,beforeBbox:i,afterBbox:a,transition:s}=e;return{delay:null!==(n=s.start_delay)&&void 0!==n?n:ri,duration:Qe()?0:null!==(r=s.duration)&&void 0!==r?r:ni,easing:s.interpolator&&s.interpolator in ei?ei[s.interpolator]:Bo,css:t=>["top:".concat(ti(i.top,a.top,t)-o.top,"px"),"left:".concat(ti(i.left,a.left,t)-o.left,"px"),"width:".concat(ti(i.width,a.width,t),"px"),"height:".concat(ti(i.height,a.height,t),"px")].join(";")}}function ii(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...ii(t))})):e.push(t),e}const ai={tooltip:"divkit-f1907",tooltip_visible:"divkit-e5914"},si={linear:r,ease:Wo,ease_in:Lo,ease_out:Uo,ease_in_out:Bo,spring:qo},li=300,ci=0;function ui(t,e){let{animations:n,direction:r}=e;if(!n)return{};const o=Ge(n),i=(a=o,Math.max(...a.map((t=>(Number(t.duration)||li)+(Number(t.start_delay)||ci)))));var a;return o.some((t=>"no_animation"===t.name))?{}:{duration:Qe()?0:i,css:t=>{const e=t*i,n=o.map((t=>{const n=Number(t.start_delay)||ci,o=Number(t.duration)||li,i=Math.max(0,Math.min(1,(e-n)/o)),a=(si[t.interpolator||"ease_in_out"]||Bo)(i);var s,l;if("fade"===t.name)return{active:a>0&&a<1,opacity:(1-a)*("in"===r&&null!==(s=t.start_value)&&void 0!==s?s:0)+a*("in"===r?1:null!==(l=t.end_value)&&void 0!==l?l:1)};if("translate"===t.name){var c,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:di}=A;function hi(t){let e,o,i,a,c,u,d,h;return o=new Rs({props:{componentContext:t[11]}}),{c(){e=R("div"),re(o.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);oe(o.$$.fragment,n),n.forEach(T),this.h()},h(){q(e,"class",i=Oe("tooltip",ai,t[5])+" "+(t[12]?pe.root_platform_desktop:"")),lt(e,"top",t[2]),lt(e,"left",t[1]),lt(e,"width",t[3]),lt(e,"height",t[4])},m(n,r){M(n,e,r),ie(o,e,null),t[27](e),u=!0,d||(h=[W(di,"click",t[16]),W(di,"resize",t[17])],d=!0)},p(n,r){t=n;const a={};2048&r[0]&&(a.componentContext=t[11]),o.$set(a),(!u||4128&r[0]&&i!==(i=Oe("tooltip",ai,t[5])+" "+(t[12]?pe.root_platform_desktop:"")))&&q(e,"class",i),4&r[0]&&lt(e,"top",t[2]),2&r[0]&&lt(e,"left",t[1]),8&r[0]&&lt(e,"width",t[3]),16&r[0]&&lt(e,"height",t[4])},i(n){u||(Wt(o.$$.fragment,n),n&&St((()=>{u&&(c&&c.end(1),a=Gt(e,ui,{animations:t[13]||pi,direction:"in"}),a.start())})),u=!0)},o(i){qt(o.$$.fragment,i),a&&a.invalidate(),i&&(c=function(t,e,o){const i={direction:"out"};let a,c=e(t,o,i),u=!0;const d=Lt;let h;function p(){const{delay:e=0,duration:o=300,easing:i=r,tick:l=n,css:p}=c||Jt;p&&(a=mt(t,1,0,o,e,i,p));const f=w()+e,g=f+o;St((()=>Rt(t,!1,"start"))),"inert"in t&&(h=t.inert,t.inert=!0),C((e=>{if(u){if(e>=g)return l(0,1),Rt(t,!1,"end"),--d.r||s(d.c),!1;if(e>=f){const t=i((e-f)/o);l(1-t,t)}}return u}))}return d.r+=1,l(c)?zt().then((()=>{c=c(i),p()})):p(),{end(e){e&&"inert"in t&&(t.inert=h),e&&c.tick&&c.tick(1,0),u&&(a&&vt(t,a),u=!1)}}}(e,ui,{animations:t[14]||pi,direction:"out"})),u=!1},d(n){n&&T(e),ae(o),t[27](null),n&&c&&c.end(),d=!1,s(h)}}}const pi={name:"set",items:[{name:"translate"},{name:"fade"}]};function fi(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$=n,b=n,_=n,w=n,x=n;var k,E,C,A;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:j}=e,{data:V}=e,{internalId:D}=e,{parentComponentContext:F}=e;const P=xt(fe),S=P.isDesktop;p(t,S,(t=>r(12,m=t)));const I=Date.now();let N,O=!1,M="",T="",z="",R="",B=null;function L(){var t,e;if(!N||!j)return;const n=N.parentElement;if(!n)return;const o=N.style.cssText;r(0,N.style.cssText+=";transform: none !important",N);const i=j.getBoundingClientRect(),a=N.getBoundingClientRect(),s=n.getBoundingClientRect();r(0,N.style.cssText=o,N);let l=0,c=0,u=null,h=null,p=0,m=0;const v=F.getJsonWithVars(null===(t=V.div)||void 0===t?void 0:t.width),y=F.getJsonWithVars(null===(e=V.div)||void 0===e?void 0:e.width);if(p=v&&"match_parent"!==v.type?"fixed"===v.type&&v.value?u=v.value:a.width:u=i.width,m="match_parent"===(null==y?void 0:y.type)?h=i.height:"fixed"===(null==y?void 0:y.type)&&y.value?h=y.value:a.height,"left"===g||"bottom-left"===g||"top-left"===g)l=i.left-p;else if("top"===g||"bottom"===g||"center"===g)l=(i.left+i.right)/2-p/2;else{if("right"!==g&&"bottom-right"!==g&&"top-right"!==g)return;l=i.right}if("top"===g||"top-left"===g||"top-right"===g)c=i.top-m;else if("left"===g||"right"===g||"center"===g)c=(i.top+i.bottom)/2-m/2;else{if("bottom-left"!==g&&"bottom"!==g&&"bottom-right"!==g)return;c=i.bottom}l-=s.left,c-=s.top,l+=f||0,c+=d||0,r(1,M="".concat(l,"px")),r(2,T="".concat(c,"px")),r(3,z=null!==u?"".concat(u,"px"):""),r(4,R=null!==h?"".concat(h,"px"):""),r(26,O=!0),null===u||null===h?"undefined"==typeof ResizeObserver||B||(B=new ResizeObserver((()=>{requestAnimationFrame(L)})),B.observe(N)):null==B||B.disconnect()}var U;return bt((()=>{if(P.tooltipRoot){const t=window.getComputedStyle(N);r(0,N.style.fontSize=t.fontSize,N),r(0,N.style.fontFamily=t.fontFamily,N),r(0,N.style.lineHeight=t.lineHeight,N),P.tooltipRoot.appendChild(N)}})),U=()=>{O||L()},$t().$$.after_update.push(U),_t((()=>{null==B||B.disconnect()})),t.$$set=t=>{"ownerNode"in t&&r(18,j=t.ownerNode),"data"in t&&r(19,V=t.data),"internalId"in t&&r(20,D=t.internalId),"parentComponentContext"in t&&r(21,F=t.parentComponentContext)},t.$$.update=()=>{2621440&t.$$.dirty[0]&&r(11,o=F.produceChildContext(V.div)),2621440&t.$$.dirty[0]&&(r(10,i=F.getDerivedFromVars(V.position)),_(),_=h(i,(t=>r(31,g=t)))),15204352&t.$$.dirty[0]&&(r(9,a=F.getDerivedFromVars(null===r(23,E=null===r(22,k=V.offset)||void 0===k?void 0:k.x)||void 0===E?void 0:E.value)),b(),b=h(a,(t=>r(30,f=t)))),52953088&t.$$.dirty[0]&&(r(8,s=F.getDerivedFromVars(null===r(25,A=null===r(24,C=V.offset)||void 0===C?void 0:C.y)||void 0===A?void 0:A.value)),$(),$=h(s,(t=>r(29,d=t)))),2621440&t.$$.dirty[0]&&(r(7,l=F.getDerivedFromVars(V.animation_in)),w(),w=h(l,(t=>r(13,v=t)))),2621440&t.$$.dirty[0]&&(r(6,c=F.getDerivedFromVars(V.animation_out)),x(),x=h(c,(t=>r(14,y=t)))),67108864&t.$$.dirty[0]&&r(5,u={visible:O})},[N,M,T,z,R,u,c,l,s,a,i,o,m,v,y,S,function(t){Date.now()-I<100||t.composedPath().includes(N)||P.onTooltipClose(D)},function(){L()},j,V,D,F,k,E,C,A,O,function(t){Ct[t?"unshift":"push"]((()=>{N=t,r(0,N)}))}]}const gi=class extends ce{constructor(t){super(),se(this,t,fi,hi,d,{ownerNode:18,data:19,internalId:20,parentComponentContext:21},null,[-1,-1])}},{Map:mi}=A;function vi(t,e,n){const r=t.slice();return r[33]=e[n],r}function yi(t,e,n){const r=t.slice();return r[33]=e[n],r}function $i(t){var e;let n,r,o,i;n=new Fn({props:{cls:Ro.state,componentContext:t[0],layoutParams:t[1],parentOf:t[7],parentOfSimpleMode:!0,replaceItems:t[8],$$slots:{default:[Ei]},$$scope:{ctx:t}}});let a=(null===(e=t[0])||void 0===e?void 0:e.tooltips)&&Ci(t);return{c(){re(n.$$.fragment),r=U(),a&&a.c(),o=H()},l(t){oe(n.$$.fragment,t),r=ot(t),a&&a.l(t),o=H()},m(t,e){ie(n,t,e),M(t,r,e),a&&a.m(t,e),M(t,o,e),i=!0},p(t,e){var r;const i={};1&e[0]&&(i.componentContext=t[0]),2&e[0]&&(i.layoutParams=t[1]),128&e[0]&&(i.parentOf=t[7]),120&e[0]|128&e[1]&&(i.$$scope={dirty:e,ctx:t}),n.$set(i),null!==(r=t[0])&&void 0!==r&&r.tooltips?a?(a.p(t,e),1&e[0]&&Wt(a,1)):(a=Ci(t),a.c(),Wt(a,1),a.m(o.parentNode,o)):a&&(Ut(),qt(a,1,1,(()=>{a=null})),Ht())},i(t){i||(Wt(n.$$.fragment,t),Wt(a),i=!0)},o(t){qt(n.$$.fragment,t),qt(a),i=!1},d(t){t&&(T(r),T(o)),ae(n,t),a&&a.d(t)}}}function bi(t){let e,r,o=t[5],i=_i(t);return{c(){i.c(),e=H()},l(t){i.l(t),e=H()},m(t,n){i.m(t,n),M(t,e,n),r=!0},p(t,r){32&r[0]&&d(o,o=t[5])?(Ut(),qt(i,1,1,n),Ht(),i=_i(t),i.c(),Wt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Wt(i),r=!0)},o(t){qt(i),r=!1},d(t){t&&T(e),i.d(t)}}}function _i(t){let e,n;return e=new Rs({props:{componentContext:t[6]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.componentContext=t[6]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function wi(t){let e,n,r,o,i,a,s,l,c,u;function d(){return t[16](t[33])}return r=new Rs({props:{componentContext:t[33].componentContextCopy}}),{c(){e=R("div"),n=R("div"),re(r.$$.fragment),i=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);oe(r.$$.fragment,a),a.forEach(T),i=ot(o),o.forEach(T),this.h()},h(){q(n,"class",o=Ro["state__animation-child-inner"]),q(e,"class",a=Ro["state__animation-child"])},m(t,o){M(t,e,o),N(e,n),ie(r,n,null),N(e,i),l=!0,c||(u=W(e,"introend",d),c=!0)},p(e,n){t=e;const o={};16&n[0]&&(o.componentContext=t[33].componentContextCopy),r.$set(o)},i(n){l||(Wt(r.$$.fragment,n),s||St((()=>{s=Gt(e,oi,t[33]),s.start()})),l=!0)},o(t){qt(r.$$.fragment,t),l=!1},d(t){t&&T(e),ae(r),c=!1,u()}}}function xi(t){let e,n,r,o,i,a,s,l,c,u,d="".concat(t[33].offsetLeft,"px"),h="".concat(t[33].offsetTop,"px"),p="".concat(t[33].width,"px"),f="".concat(t[33].height,"px");function g(){return t[15](t[33])}return r=new Rs({props:{componentContext:t[33].componentContextCopy}}),{c(){e=R("div"),n=R("div"),re(r.$$.fragment),i=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var a=X(n);oe(r.$$.fragment,a),a.forEach(T),i=ot(o),o.forEach(T),this.h()},h(){q(n,"class",o=Ro["state__animation-child-inner"]),q(e,"class",a=Ro["state__animation-child"]),lt(e,"left",d),lt(e,"top",h),lt(e,"width",p),lt(e,"height",f)},m(t,o){M(t,e,o),N(e,n),ie(r,n,null),N(e,i),l=!0,c||(u=W(e,"introend",g),c=!0)},p(n,o){t=n;const i={};16&o[0]&&(i.componentContext=t[33].componentContextCopy),r.$set(i),16&o[0]&&d!==(d="".concat(t[33].offsetLeft,"px"))&&lt(e,"left",d),16&o[0]&&h!==(h="".concat(t[33].offsetTop,"px"))&&lt(e,"top",h),16&o[0]&&p!==(p="".concat(t[33].width,"px"))&&lt(e,"width",p),16&o[0]&&f!==(f="".concat(t[33].height,"px"))&&lt(e,"height",f)},i(n){l||(Wt(r.$$.fragment,n),s||St((()=>{s=Gt(e,Qo,t[33]),s.start()})),l=!0)},o(t){qt(r.$$.fragment,t),l=!1},d(t){t&&T(e),ae(r),c=!1,u()}}}function ki(t,e){let n,r,o,i,a;const s=[xi,wi],l=[];function c(t,e){return"direction"in t[33]?0:1}return r=c(e),o=l[r]=s[r](e),{key:t,first:null,c(){n=H(),o.c(),i=H(),this.h()},l(t){n=H(),o.l(t),i=H(),this.h()},h(){this.first=n},m(t,e){M(t,n,e),l[r].m(t,e),M(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?l[r].p(e,n):(Ut(),qt(l[a],1,1,(()=>{l[a]=null})),Ht(),o=l[r],o?o.p(e,n):(o=l[r]=s[r](e),o.c()),Wt(o,1),o.m(i.parentNode,i))},i(t){a||(Wt(o),a=!0)},o(t){qt(o),a=!1},d(t){t&&(T(n),T(i)),l[r].d(t)}}}function Ei(t){let e,n,r,o,i=[],a=new mi,s=t[6]&&bi(t),l=Kt(t[4]);const c=t=>t[33];for(let e=0;e<l.length;e+=1){let n=yi(t,l,e),r=c(n);a.set(r,i[e]=ki(r,n))}return{c(){s&&s.c(),e=U(),n=R("div");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){s&&s.l(t),e=ot(t),n=et(t,"DIV",{class:!0,"aria-hidden":!0});var r=X(n);for(let t=0;t<i.length;t+=1)i[t].l(r);r.forEach(T),this.h()},h(){q(n,"class",r=Ro.state__animations),q(n,"aria-hidden","true")},m(r,a){s&&s.m(r,a),M(r,e,a),M(r,n,a);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null);t[17](n),o=!0},p(t,r){t[6]?s?(s.p(t,r),64&r[0]&&Wt(s,1)):(s=bi(t),s.c(),Wt(s,1),s.m(e.parentNode,e)):s&&(Ut(),qt(s,1,1,(()=>{s=null})),Ht()),528&r[0]&&(l=Kt(t[4]),Ut(),i=Xt(i,r,c,1,t,l,a,n,Yt,ki,null,yi),Ht())},i(t){if(!o){Wt(s);for(let t=0;t<l.length;t+=1)Wt(i[t]);o=!0}},o(t){qt(s);for(let t=0;t<i.length;t+=1)qt(i[t]);o=!1},d(r){r&&(T(e),T(n)),s&&s.d(r);for(let t=0;t<i.length;t+=1)i[t].d();t[17](null)}}}function Ci(t){let e,n,r=[],o=new mi,i=Kt(t[0].tooltips);const a=t=>t[33].internalId;for(let e=0;e<i.length;e+=1){let n=vi(t,i,e),s=a(n);o.set(s,r[e]=Ai(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=H()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=H()},m(t,o){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,o);M(t,e,o),n=!0},p(t,n){1&n[0]&&(i=Kt(t[0].tooltips),Ut(),r=Xt(r,n,a,1,t,i,o,e.parentNode,Yt,Ai,e,vi),Ht())},i(t){if(!n){for(let t=0;t<i.length;t+=1)Wt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)qt(r[t]);n=!1},d(t){t&&T(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Ai(t,e){let n,r,o;return r=new gi({props:{ownerNode:e[33].ownerNode,data:e[33].desc,internalId:e[33].internalId,parentComponentContext:e[0]}}),{key:t,first:null,c(){n=H(),re(r.$$.fragment),this.h()},l(t){n=H(),oe(r.$$.fragment,t),this.h()},h(){this.first=n},m(t,e){M(t,n,e),ie(r,t,e),o=!0},p(t,n){e=t;const o={};1&n[0]&&(o.ownerNode=e[33].ownerNode),1&n[0]&&(o.data=e[33].desc),1&n[0]&&(o.internalId=e[33].internalId),1&n[0]&&(o.parentComponentContext=e[0]),r.$set(o)},i(t){o||(Wt(r.$$.fragment,t),o=!0)},o(t){qt(r.$$.fragment,t),o=!1},d(t){t&&T(n),ae(r,t)}}}function ji(t){let e,n,r=!t[2]&&$i(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&Wt(r,1)):(r=$i(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function Vi(t){return"change_bounds"===t.type?t:"set"===t.type?Vi(t.items[0]):null}function Di(t,e,n){let r,o,i,a,s,l,{componentContext:c}=e,{layoutParams:u}=e;const d=xt(fe),h=xt(Me);let p,f,g,m,v=!1,y=new Map,$=new Set,b=null,_=[],w=[],x=[],k=[],E=!1;function C(t){n(6,m=(null==t?void 0:t.div)?c.produceChildContext(t.div,{path:t.state_id||"<unknown>"}):void 0)}function A(t,e,n){let{json:r,parentComponentContext:o,transitions:i,node:a}=e;r=c.getJsonWithVars(r),i=c.getJsonWithVars(i);const s=ii(i),l=a.getBoundingClientRect(),u=Object.assign(Object.assign({},r),{margins:void 0,alpha:(d=s,d.some((t=>"fade"===t.type))?void 0:r.alpha)});var d;return{json:u,componentContextCopy:o.produceChildContext(u,{fake:!0}),elementBbox:l,rootBbox:t,transitions:s,alpha:r.alpha,width:l.width,height:l.height,offsetTop:l.top-t.top,offsetLeft:l.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node}}async function j(t){if(g===t)return;d.setRunning("stateChange",!0);const e=new Set($);_.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(4,_=[]);let r=[];if(p){const t=p.getBoundingClientRect();r=x.map((e=>A(t,e,"out")))}k.forEach((t=>{y.set(t.id,t.node.getBoundingClientRect())})),w=[],x=[],k=[];const o=s.find((e=>e.state_id===t))||null;if(o?(n(5,g=t),null==a||a.setValue(g),C(o)):c.logError(ge(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Pt(),!p)return;const i=p.getBoundingClientRect();let l=w.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>A(i,t,"in")));r=r.filter((t=>{var e;return!(!t.json.id||$.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const u=r.concat(l),h=u.reduce(((t,e)=>Math.max(t,Zo(e.transitions))),0),f=k.filter((t=>y.has(t.id))).map((t=>{const e=Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}});return{json:e,componentContextCopy:t.parentComponentContext.produceChildContext(e,{fake:!0}),rootBbox:i,beforeBbox:y.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:c.getJsonWithVars(Vi(t.transitions)),resolvePromise:t.resolvePromise}}));n(4,_=[...u.map((t=>Object.assign(Object.assign({},t),{maxDuration:h}))),...f]),y.clear(),d.setRunning("stateChange",!1)}function V(t){if(b&&b.has(t))return b.get(t);c.logError(ge(new Error("Missing state block with id"),{additional:{id:t}}))}function D(t){n(4,_=_.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return wt(Me,{registerInstance(t,e){b||(b=new Map),b.has(t)?c.logError(ge(new Error("Duplicate state with id"),{additional:{id:t}})):b.set(t,e)},unregisterInstance(t){null==b||b.delete(t)},runVisibilityTransition(t,e,r,o,i){if(!p)return Promise.resolve();const a=A(p.getBoundingClientRect(),{json:t,parentComponentContext:e,transitions:r,node:o},i),s=Zo(a.transitions),l=Object.assign(Object.assign({},a),{maxDuration:s});return n(4,_=[..._.filter((t=>t.node!==a.node)),l]),new Promise((t=>{l.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return w.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,parentComponentContext:e,transitions:n,node:r};return x.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,parentComponentContext:e,transitions:n,node:r};return k.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&y.has(t),registerChild(t){$.add(t)},unregisterChild(t){$.delete(t)}}),_t((()=>{f&&h.unregisterInstance(f)})),t.$$set=t=>{"componentContext"in t&&n(0,c=t.componentContext),"layoutParams"in t&&n(1,u=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(13,r=c.json.div_id||c.json.id),1&t.$$.dirty[0]&&(o=c.getJsonWithVars(c.json.default_state_id)),1&t.$$.dirty[0]&&n(14,i=c.json.state_id_variable),16385&t.$$.dirty[0]&&(a=i?c.getVariable(i,"string"):null),1&t.$$.dirty[0]&&c.json&&n(11,E=!1),8193&t.$$.dirty[0]&&(r?n(2,v=!1):(n(2,v=!0),c.logError(ge(new Error('Missing "id" prop for div "state"'))))),1&t.$$.dirty[0]&&c.json&&($=new Set),1&t.$$.dirty[0]&&n(12,s=c.json.states||[]),4096&t.$$.dirty[0]&&n(7,l=s.map((t=>t.div))),4097&t.$$.dirty[0]&&((null==s?void 0:s.length)?n(2,v=!1):(n(2,v=!0),c.logError(ge(new Error('Empty "states" prop for div "state"'))))),9217&t.$$.dirty[0]&&c.json&&(f&&(h.unregisterInstance(f),n(10,f=void 0)),r&&!(null==c?void 0:c.fakeElement)&&(n(10,f=r),h.registerInstance(r,{setState:j,getChild:V}))),6144&t.$$.dirty[0]&&!E&&function(t){if(!E&&(n(11,E=!0),t.length)){const e=(null==a?void 0:a.getValue())||o;if(e){n(5,g=e);const r=t.find((t=>t.state_id===g))||null;C(r),r||c.logError(ge(new Error("Cannot find state for default_state_id"),{additional:{selectedId:g}}))}else{const e=t[0];n(5,g=e.state_id),C(e)}a&&(a.setValue(g),a.subscribe((t=>{j(t)})))}}(s)},[c,u,v,p,_,g,m,l,function(t){const e=c.json.states;if(!e)return;const r=e.map(((e,n)=>Object.assign(Object.assign({},e),{div:t[n]})));n(0,c.json=Object.assign(Object.assign({},c.json),{states:r}),c),g&&C(r.find((t=>t.state_id===g))||null)},D,f,E,s,r,i,t=>D(t),t=>D(t),function(t){Ct[t?"unshift":"push"]((()=>{p=t,n(3,p)}))}]}const Fi={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f",pager__arrow:"divkit-d78c2","pager__arrow-icon-path":"divkit-a94d9"},{Boolean:Pi}=A;function Si(t,e,n){const r=t.slice();return r[63]=e[n],r}function Ii(t){let e,n;return e=new Fn({props:{cls:Oe("pager",Fi,t[10]),componentContext:t[0],layoutParams:t[1],customPaddings:!0,parentOf:t[2].map(Ri),replaceItems:t[23],$$slots:{default:[Ti]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Oe("pager",Fi,t[10])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4&n[0]&&(r.parentOf=t[2].map(Ri)),134068&n[0]|16&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Ni(t){let e,n,r,o,i;return n=new Rs({props:{componentContext:t[63]}}),{c(){e=R("div"),re(n.$$.fragment),r=U(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);oe(n.$$.fragment,o),r=ot(o),o.forEach(T),this.h()},h(){q(e,"class",o=Fi.pager__item)},m(t,o){M(t,e,o),ie(n,e,null),N(e,r),i=!0},p(t,e){const r={};4&e[0]&&(r.componentContext=t[63]),n.$set(r)},i(t){i||(Wt(n.$$.fragment,t),i=!0)},o(t){qt(n.$$.fragment,t),i=!1},d(t){t&&T(e),ae(n)}}}function Oi(t){let e,r,o,i,a=!t[19]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(T),r.forEach(T),this.h()},h(){q(n,"class",r=Fi["pager__arrow-icon-path"]),q(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),q(e,"class",o=co.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){M(t,e,r),N(e,n)},d(t){t&&T(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(T),this.h()},h(){q(e,"class",r=t[19]||"".concat(Fi.pager__arrow," ").concat(co.arrow," ").concat(co.arrow_left))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=W(e,"click",t[51]),o=!0)},p:n,d(t){t&&T(e),a&&a.d(),o=!1,i()}}}function Mi(t){let e,r,o,i,a=!t[20]&&function(t){let e,n,r,o;return{c(){e=B("svg"),n=B("path"),this.h()},l(t){e=nt(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=X(e);n=nt(r,"path",{class:!0,d:!0}),X(n).forEach(T),r.forEach(T),this.h()},h(){q(n,"class",r=Fi["pager__arrow-icon-path"]),q(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),q(e,"class",o=co.arrow__icon),q(e,"xmlns","http://www.w3.org/2000/svg"),q(e,"width","32"),q(e,"height","32"),q(e,"viewBox","0 0 32 32"),q(e,"fill","none")},m(t,r){M(t,e,r),N(e,n)},d(t){t&&T(e)}}}();return{c(){e=R("div"),a&&a.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);a&&a.l(n),n.forEach(T),this.h()},h(){q(e,"class",r=t[20]||"".concat(Fi.pager__arrow," ").concat(co.arrow," ").concat(co.arrow_right))},m(n,r){M(n,e,r),a&&a.m(e,null),o||(i=W(e,"click",t[52]),o=!0)},p:n,d(t){t&&T(e),a&&a.d(),o=!1,i()}}}function Ti(t){let e,n,r,o,i,a,s,l,c,u=Kt(t[2]),d=[];for(let e=0;e<u.length;e+=1)d[e]=Ni(Si(t,u,e));const h=t=>qt(d[t],1,1,(()=>{d[t]=null}));let p=t[8]&&t[9]&&Oi(t),f=t[7]&&t[9]&&Mi(t);return{c(){e=R("div");for(let t=0;t<d.length;t+=1)d[t].c();o=U(),p&&p.c(),i=U(),f&&f.c(),a=H(),this.h()},l(t){e=et(t,"DIV",{class:!0,style:!0});var n=X(e);for(let t=0;t<d.length;t+=1)d[t].l(n);n.forEach(T),o=ot(t),p&&p.l(t),i=ot(t),f&&f.l(t),a=H(),this.h()},h(){q(e,"class",n=Fi.pager__items+" "+(t[17]?pe["root_restrict-scroll"]:"")),q(e,"style",r=ye(t[11]))},m(n,r){M(n,e,r);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(e,null);t[50](e),M(n,o,r),p&&p.m(n,r),M(n,i,r),f&&f.m(n,r),M(n,a,r),s=!0,l||(c=W(e,"scroll",t[22]),l=!0)},p(t,o){if(4&o[0]){let n;for(u=Kt(t[2]),n=0;n<u.length;n+=1){const r=Si(t,u,n);d[n]?(d[n].p(r,o),Wt(d[n],1)):(d[n]=Ni(r),d[n].c(),Wt(d[n],1),d[n].m(e,null))}for(Ut(),n=u.length;n<d.length;n+=1)h(n);Ht()}(!s||131072&o[0]&&n!==(n=Fi.pager__items+" "+(t[17]?pe["root_restrict-scroll"]:"")))&&q(e,"class",n),(!s||2048&o[0]&&r!==(r=ye(t[11])))&&q(e,"style",r),t[8]&&t[9]?p?p.p(t,o):(p=Oi(t),p.c(),p.m(i.parentNode,i)):p&&(p.d(1),p=null),t[7]&&t[9]?f?f.p(t,o):(f=Mi(t),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(t){if(!s){for(let t=0;t<u.length;t+=1)Wt(d[t]);s=!0}},o(t){d=d.filter(Pi);for(let t=0;t<d.length;t+=1)qt(d[t]);s=!1},d(n){n&&(T(e),T(o),T(i),T(a)),z(d,n),t[50](null),p&&p.d(n),f&&f.d(n),l=!1,c()}}}function zi(t){let e,n,r=!t[3]&&Ii(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[3]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),8&n[0]&&Wt(r,1)):(r=Ii(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}const Ri=t=>t.json;function Bi(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,C,A,j,V=n,D=n,F=n,P=n,S=n,I=n;var N,O,M,T,z,R,B,L,U,H;t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I()));let{componentContext:W}=e,{layoutParams:q}=e;const J=xt(fe),G=J.direction;p(t,G,(t=>r(4,w=t)));const K=J.genId("pager"),Y=J.getCustomization("pagerLeftClass"),X=J.getCustomization("pagerRightClass"),Z=J.isDesktop;p(t,Z,(t=>r(45,x=t)));const Q=Wn((function(){if(!nt)return;const t=function(){const t=Array.from(et.children),e=et.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===at?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:rt}();t!==rt&&r(38,rt=t)}),50);let tt,et,nt=!1,rt=0,ot=0,it=!1,at="horizontal",st="",lt="",ct="";function ut(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const n="horizontal"===at,o=et.children[t],i=n?"offsetLeft":"offsetTop",a=n?"left":"top";et.scroll({[a]:o[i],behavior:e}),r(38,rt=t)}function dt(t){let e=rt-1;e<0&&(e="ring"===t?c.length-1:rt),ut(e)}function ht(t){let e=rt+1;e>c.length-1&&(e="ring"===t?0:rt),ut(e)}return bt((()=>{if(r(37,nt=!0),Boolean(document.getElementById("".concat(K,"-tab-0")))){const t=[...et.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(K,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(K,"-tab-").concat(e))}})),_t((()=>{r(37,nt=!1),tt&&(J.unregisterInstance(tt),r(36,tt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,W=t.componentContext),"layoutParams"in t&&r(1,q=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&W.json&&r(42,lt=""),1&t.$$.dirty[0]&&(r(16,o=W.getDerivedFromVars(W.json.layout_mode)),D(),D=h(o,(t=>r(46,k=t)))),1&t.$$.dirty[0]&&(r(15,i=W.getDerivedFromVars(W.json.orientation)),S(),S=h(i,(t=>r(49,A=t)))),1&t.$$.dirty[0]&&(r(14,a=W.getDerivedFromVars(W.json.item_spacing)),P(),P=h(a,(t=>r(48,C=t)))),1&t.$$.dirty[0]&&(r(13,s=W.getDerivedFromVars(W.json.paddings)),F(),F=h(s,(t=>r(47,E=t)))),1&t.$$.dirty[0]&&(r(12,l=W.getDerivedFromVars(W.json.restrict_parent_scroll)),I(),I=h(l,(t=>r(17,j=t)))),1&t.$$.dirty[0]&&r(2,c=(Array.isArray(W.json.items)&&W.json.items||[]).map(((t,e)=>W.produceChildContext(t,{path:e})))),1&t.$$.dirty[0]|32768&t.$$.dirty[1]&&(k?"percentage"!==k.type&&"fixed"!==k.type?(r(39,it=!0),W.logError(ge(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):r(39,it=!1):(r(39,it=!0),W.logError(ge(new Error('Empty "layout_mode" prop for div "pager"'))))),262656&t.$$.dirty[1]&&r(40,at=Ir(A,at)),131072&t.$$.dirty[1]){const t=null==C?void 0:C.value;t&&Re(t)&&r(41,st=$e(t||0))}if(16&t.$$.dirty[0]|67584&t.$$.dirty[1]&&r(42,lt=Be(E,w,lt)),512&t.$$.dirty[1]&&r(44,u="horizontal"===at?"grid-auto-columns":"grid-auto-rows"),2080374801&t.$$.dirty[0]|34335&t.$$.dirty[1])if("fixed"===(null==k?void 0:k.type)){const t=be("horizontal"===at?(("ltr"===w?null===r(26,N=W.json.paddings)||void 0===N?void 0:N.start:null===r(27,O=W.json.paddings)||void 0===O?void 0:O.end)||(null===r(28,M=W.json.paddings)||void 0===M?void 0:M.left)||0)+(("ltr"===w?null===r(29,T=W.json.paddings)||void 0===T?void 0:T.end:null===r(30,z=W.json.paddings)||void 0===z?void 0:z.start)||(null===r(31,R=W.json.paddings)||void 0===R?void 0:R.right)||0):((null===r(32,B=W.json.paddings)||void 0===B?void 0:B.top)||0)+((null===r(33,L=W.json.paddings)||void 0===L?void 0:L.bottom)||0)),e=null===r(34,U=k.neighbour_page_width)||void 0===U?void 0:U.value;r(43,ct=e?"calc(100% + ".concat(t," - 2 * ").concat(be(e)," - 2 * ").concat(st,")"):"100%")}else if("percentage"===(null==k?void 0:k.type)){const t=null===r(35,H=k.page_width)||void 0===H?void 0:H.value;r(43,ct="".concat(Number(t),"%"))}15360&t.$$.dirty[1]&&r(11,d={"grid-gap":st,padding:lt,[u]:ct}),512&t.$$.dirty[1]&&r(10,f={orientation:at}),256&t.$$.dirty[1]&&r(3,g=it),8&t.$$.dirty[0]|16448&t.$$.dirty[1]&&r(9,m=x&&nt&&!g),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(8,v="ltr"===w?rt>0:rt+1<c.length),20&t.$$.dirty[0]|128&t.$$.dirty[1]&&r(7,y="ltr"===w?rt+1<c.length:rt>0),4&t.$$.dirty[0]|128&t.$$.dirty[1]&&function(t,e){const n=W.json.id;if(n){const r=new Map(_);$(b,_=r.set(n,{instId:K,size:t,currentItem:e,scrollToPagerItem:ut}),_)}}(c.length,rt),128&t.$$.dirty[1]&&function(t){var e;if(t===ot)return;ot=t;const n=W.getJsonWithVars(null===(e=c[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&W.execAnyActions(n)}(rt),5&t.$$.dirty[0]|32&t.$$.dirty[1]&&W.json&&(tt&&(J.unregisterInstance(tt),r(36,tt=void 0)),W.json.id&&!W.fakeElement&&(r(36,tt=W.json.id),J.registerInstance(tt,{setCurrentItem(t){if(t<0||t>c.length-1)throw new Error('Item is out of range in "set-current-item" action');ut(t)},setPreviousItem:dt,setNextItem:ht})))},r(6,b=J.getStore("pagers")),V(),V=h(b,(t=>r(54,_=t))),[W,q,c,g,w,et,b,y,v,m,f,d,l,s,a,i,o,j,G,Y,X,Z,Q,function(t){r(0,W=Object.assign(Object.assign({},W),{json:Object.assign(Object.assign({},W.json),{items:t.filter(Ee)})}))},dt,ht,N,O,M,T,z,R,B,L,U,H,tt,nt,rt,it,at,st,lt,ct,u,x,k,E,C,A,function(t){Ct[t?"unshift":"push"]((()=>{et=t,r(5,et)}))},()=>("ltr"===w?dt:ht)("clamp"),()=>("ltr"===w?ht:dt)("clamp")]}const Li={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_direction_ltr:"divkit-a7473",indicator_direction_rtl:"divkit-a7d63",indicator_placement_stretch:"divkit-b6bd3"};function Ui(t,e,n){const r=t.slice();r[42]=e[n],r[45]=n;const o=r[45]===r[10].currentItem;return r[43]=o,r}function Hi(t){let e,n=Kt(Array(t[10].size)),r=[];for(let e=0;e<n.length;e+=1)r[e]=Wi(Ui(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=H()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=H()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);M(t,e,n)},p(t,o){if(12583936&o[0]){let i;for(n=Kt(Array(t[10].size)),i=0;i<n.length;i+=1){const a=Ui(t,n,i);r[i]?r[i].p(a,o):(r[i]=Wi(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){t&&T(e),z(r,t)}}}function Wi(t){let e,n,r,o,i,a,l,c;function u(){return t[36](t[45])}return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=Oe("indicator__item",Li,{active:t[43]})+" "+pe.root__clickable),q(e,"role","tab"),q(e,"id",r=t[10].instId+"-tab-"+t[45]),q(e,"aria-controls",o=t[10].instId+"-panel-"+t[45]),q(e,"aria-selected",i=t[43]?"true":"false"),q(e,"tabindex",a=t[43]?0:-1)},m(n,r){M(n,e,r),l||(c=[W(e,"click",u),W(e,"keydown",t[23])],l=!0)},p(s,l){t=s,1024&l[0]&&n!==(n=Oe("indicator__item",Li,{active:t[43]})+" "+pe.root__clickable)&&q(e,"class",n),1024&l[0]&&r!==(r=t[10].instId+"-tab-"+t[45])&&q(e,"id",r),1024&l[0]&&o!==(o=t[10].instId+"-panel-"+t[45])&&q(e,"aria-controls",o),1024&l[0]&&i!==(i=t[43]?"true":"false")&&q(e,"aria-selected",i),1024&l[0]&&a!==(a=t[43]?0:-1)&&q(e,"tabindex",a)},d(t){t&&T(e),l=!1,s(c)}}}function qi(t){let e,n,r,o,i=t[10]&&Hi(t);return{c(){e=R("div"),n=R("div"),i&&i.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var r=X(e);n=et(r,"DIV",{class:!0,role:!0});var o=X(n);i&&i.l(o),o.forEach(T),r.forEach(T),this.h()},h(){q(n,"class",r=Li.indicator__items),q(n,"role","tablist"),lt(n,"margin","default"===t[4]?"0 ".concat($e(Math.max(0,t[2].width-t[3].width)/2)):""),lt(n,"--divkit-indicator-inactive-width",$e(t[3].width)),lt(n,"--divkit-indicator-inactive-height",$e(t[3].height)),lt(n,"--divkit-indicator-inactive-border-radius",$e(t[3].borderRadius)),lt(n,"--divkit-indicator-inactive-background",t[3].background||""),lt(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),lt(n,"--divkit-indicator-active-width",$e(t[2].width)),lt(n,"--divkit-indicator-active-height",$e(t[2].height)),lt(n,"--divkit-indicator-active-border-radius",$e(t[2].borderRadius)),lt(n,"--divkit-indicator-active-background",t[2].background||""),lt(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),lt(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),lt(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat($e((t[5]-t[3].width)/2)):""),lt(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?$e(t[7]):""),lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?$e((t[6]-1)*t[7]):""),q(e,"class",o=Li.indicator__scroller)},m(r,o){M(r,e,o),N(e,n),i&&i.m(n,null),t[37](n),t[38](e)},p(t,e){t[10]?i?i.p(t,e):(i=Hi(t),i.c(),i.m(n,null)):i&&(i.d(1),i=null),28&e[0]&&lt(n,"margin","default"===t[4]?"0 ".concat($e(Math.max(0,t[2].width-t[3].width)/2)):""),8&e[0]&&lt(n,"--divkit-indicator-inactive-width",$e(t[3].width)),8&e[0]&&lt(n,"--divkit-indicator-inactive-height",$e(t[3].height)),8&e[0]&&lt(n,"--divkit-indicator-inactive-border-radius",$e(t[3].borderRadius)),8&e[0]&&lt(n,"--divkit-indicator-inactive-background",t[3].background||""),8&e[0]&&lt(n,"--divkit-indicator-inactive-box-shadow",t[3].boxShadow||""),4&e[0]&&lt(n,"--divkit-indicator-active-width",$e(t[2].width)),4&e[0]&&lt(n,"--divkit-indicator-active-height",$e(t[2].height)),4&e[0]&&lt(n,"--divkit-indicator-active-border-radius",$e(t[2].borderRadius)),4&e[0]&&lt(n,"--divkit-indicator-active-background",t[2].background||""),4&e[0]&&lt(n,"--divkit-indicator-active-box-shadow",t[2].boxShadow||""),12&e[0]&&lt(n,"--divkit-indicator-active-scale",t[2].width/t[3].width),56&e[0]&&lt(n,"--divkit-indicator-default-margin","default"===t[4]?"0 ".concat($e((t[5]-t[3].width)/2)):""),144&e[0]&&lt(n,"--divkit-indicator-stretch-margin","stretch"===t[4]?$e(t[7]):""),80&e[0]&&lt(n,"--divkit-indicator-stretch-max-count","stretch"===t[4]?t[6]:""),208&e[0]&&lt(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[4]?$e((t[6]-1)*t[7]):"")},d(n){n&&T(e),i&&i.d(),t[37](null),t[38](null)}}}function Ji(t){let e,n;return e=new Fn({props:{cls:Oe("indicator",Li,t[11]),componentContext:t[0],layoutParams:t[1],$$slots:{default:[qi]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Oe("indicator",Li,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),2044&n[0]|32768&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}const Gi=["rounded_rectangle","circle"];function Ki(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C=n,A=n,j=n,V=n,D=n,F=n,P=n,S=n,I=n;var N,O;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>I()));let{componentContext:M}=e,{layoutParams:T}=e;const z=xt(fe),R=z.direction;p(t,R,(t=>r(26,m=t)));let B,L,U,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},q="default",J=15,G=10,K=5;function Y(t){t!==U.currentItem&&U.scrollToPagerItem(t)}async function X(t){U.scrollToPagerItem(t),await Pt();const e=L.querySelector(".".concat(Li.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"componentContext"in t&&r(0,M=t.componentContext),"layoutParams"in t&&r(1,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&M.json&&(r(4,q="default"),r(5,J=15),r(6,G=10),r(7,K=5),r(2,H={width:13,height:13,borderRadius:6.5,background:"#ffdc60"}),r(3,W={width:10,height:10,borderRadius:5,background:"#33919cb5"})),1&t.$$.dirty[0]&&(r(20,o=M.getDerivedFromVars(M.json.shape)),F(),F=h(o,(t=>r(32,w=t)))),1&t.$$.dirty[0]&&(r(19,i=M.getDerivedFromVars(M.json.active_item_color)),V(),V=h(i,(t=>r(30,b=t)))),1&t.$$.dirty[0]&&(r(18,a=M.getDerivedFromVars(M.json.inactive_item_color)),D(),D=h(a,(t=>r(31,_=t)))),1&t.$$.dirty[0]&&(r(17,s=M.getDerivedFromVars(M.json.active_item_size)),P(),P=h(s,(t=>r(33,x=t)))),1&t.$$.dirty[0]&&(r(16,l=M.getDerivedFromVars(M.json.active_shape)),I(),I=h(l,(t=>r(35,E=t)))),1&t.$$.dirty[0]&&(r(15,c=M.getDerivedFromVars(M.json.inactive_shape)),S(),S=h(c,(t=>r(34,k=t)))),1&t.$$.dirty[0]&&(r(14,u=M.getDerivedFromVars(M.json.space_between_centers)),A(),A=h(u,(t=>r(28,y=t)))),1&t.$$.dirty[0]&&(r(13,d=M.getDerivedFromVars(M.json.items_placement)),j(),j=h(d,(t=>r(29,$=t)))),1073741836&t.$$.dirty[0]|31&t.$$.dirty[1]&&(E&&r(2,H=ur({type:"shape_drawable",shape:E},Gi,H)),k&&r(3,W=ur({type:"shape_drawable",shape:k},Gi,W)),!E&&!k&&w)){const t=Sn(x,1.3);r(3,W=ur({type:"shape_drawable",shape:w,color:W.background},Gi,W)),r(3,W.background=we(_,1,W.background),W),r(2,H=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:H.background})),r(2,H.background=we(b,1,H.background),H)}if(855638256&t.$$.dirty[0])if(!$||"default"!==$.type&&"stretch"!==$.type)r(4,q="default"),y&&r(5,J=Le(y.value,J));else if(r(4,q=$.type),"default"===q)r(5,J=Le(null===r(24,N=$.space_between_centers)||void 0===N?void 0:N.value,J));else if("stretch"===q){const t=$;r(6,G=Sn(t.max_visible_items,G)),r(7,K=Le(null===r(25,O=t.item_spacing)||void 0===O?void 0:O.value,K))}134217728&t.$$.dirty[0]&&async function(t){if(M.json.pager_id&&t.has(M.json.pager_id)&&(r(10,U=t.get(M.json.pager_id)),await Pt(),L)){const t=L.children[U.currentItem];if(t){const e=t.offsetLeft;B.scroll({left:e-B.clientWidth/2,behavior:"smooth"})}}}(v),67108880&t.$$.dirty[0]&&r(11,g={placement:q,direction:m})},r(12,f=z.getStore("pagers")),C(),C=h(f,(t=>r(27,v=t))),[M,T,H,W,q,J,G,K,B,L,U,g,f,d,u,c,l,s,a,i,o,R,Y,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=U;if(t.which===ko)X(n-1<0?n:n-1);else if(t.which===Eo)X(n+1>=e?n:n+1);else if(t.which===Co)X(0);else{if(t.which!==Ao)return;X(e-1)}t.preventDefault()},N,O,m,v,y,$,b,_,w,x,k,E,t=>Y(t),function(t){Ct[t?"unshift":"push"]((()=>{L=t,r(9,L)}))},function(t){Ct[t?"unshift":"push"]((()=>{B=t,r(8,B)}))}]}const Yi={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider_direction_rtl:"divkit-fb7b5",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function Xi(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&we(t.text_color)||"#000",o=In(t.font_weight);if(un(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:$e(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Zi(t,e,n){return Math.max(e,Math.min(n,Number(t)))}const Qi="function"==typeof BigInt;function ta(t){return Qi?BigInt(t):Number(t)}const ea=ta("9223372036854775807"),na=ta("-9223372036854775808");function ra(t){const e=ta(t);if(e>ea||e<na)throw new Error("Integer overflow.");return e}const oa=ra(0);function ia(t){let e=t;return e<0&&(e=-e),e}function aa(t){let e=0;return t>0?e=1:t<0&&(e=-1),ra(e)}class sa{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=de(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}class la extends sa{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}}class ca extends sa{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>ea||t<na)throw new Error("Incorrect variable value");return ra(t)}fromString(t){const e=ra(t);return this.convertValue(e)}getType(){return"integer"}}class ua extends sa{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"}}class da extends sa{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}}class ha extends sa{convertValue(t){if("string"!=typeof t||!xe(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}}class pa extends sa{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}class fa extends sa{convertValue(t){if("object"!=typeof t||!t)throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Dict variable does not support setter from string")}getType(){return"dict"}}class ga extends sa{convertValue(t){if(!Array.isArray(t))throw new Error("Incorrect variable value");return t}fromString(t){throw new Error("Array variable does not support setter from string")}getType(){return"array"}}const ma={string:la,number:ua,integer:ca,boolean:da,color:ha,url:pa,dict:fa,array:ga};function va(t,e,n){if(!(e in ma))throw new Error("Unsupported variable type");return new ma[e](t,n)}function ya(){}function $a(t){return t(this.value),ya}function ba(){throw new Error("Cannot change the value of this type of variable")}const _a={string:class extends la{},number:class extends ua{},integer:class extends ca{},boolean:class extends da{},color:class extends ha{},url:class extends pa{},dict:class extends fa{},array:class extends ga{}};for(const t in _a){const e=_a[t];e.prototype.subscribe=$a,e.prototype.set=ba,e.prototype.setValue=ba}function wa(t,e,n){const r=t.slice();return r[80]=e[n],r}function xa(t,e,n){const r=t.slice();return r[80]=e[n],r}function ka(t){let e,n;return e=new Fn({props:{cls:Oe("slider",Yi,t[24]),style:t[25],customDescription:!0,customActions:"slider",hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[Fa,t=>{let{focusHandler:e,blurHandler:n}=t;return{78:e,79:n}},t=>{let{focusHandler:e,blurHandler:n}=t;return[0,0,(e?65536:0)|(n?131072:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};16777216&n[0]&&(r.cls=Oe("slider",Yi,t[24])),33554432&n[0]&&(r.style=t[25]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),205518844&n[0]|8585216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Ea(t){let e,n;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=Yi.slider__tick+" "+Yi.slider__tick_active),lt(e,"--divkit-slider-tick",t[80])},m(t,n){M(t,e,n)},p(t,n){262144&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&T(e)}}}function Ca(t){let e,n;return{c(){e=R("div"),this.h()},l(t){e=et(t,"DIV",{class:!0}),X(e).forEach(T),this.h()},h(){q(e,"class",n=Yi.slider__tick+" "+Yi.slider__tick_inactive),lt(e,"--divkit-slider-tick",t[80])},m(t,n){M(t,e,n)},p(t,n){524288&n[0]&&lt(e,"--divkit-slider-tick",t[80])},d(t){t&&T(e)}}}function Aa(t){let e,n,r,o,i;return{c(){e=R("div"),n=R("div"),r=L(t[12]),this.h()},l(o){e=et(o,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);r=rt(a,t[12]),a.forEach(T),i.forEach(T),this.h()},h(){var r,a,s;q(n,"class",o=Yi["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[9])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[9])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[9])||void 0===s?void 0:s.textColor)||"#000"),q(e,"class",i=Yi["slider__thumb-text"])},m(t,o){M(t,e,o),N(e,n),N(n,r)},p(t,e){var o,i,a;4096&e[0]&&at(r,t[12]),512&e[0]&&lt(n,"font-size",(null===(o=t[9])||void 0===o?void 0:o.fontSize)||"1em"),512&e[0]&&lt(n,"font-weight",(null===(i=t[9])||void 0===i?void 0:i.fontWeight)||""),512&e[0]&&lt(n,"color",(null===(a=t[9])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&T(e)}}}function ja(t){let e,n,r=t[10]&&Va(t);return{c(){e=R("div"),r&&r.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var n=X(e);r&&r.l(n),n.forEach(T),this.h()},h(){q(e,"class",n=Yi.slider__thumb+" "+Yi.slider__thumb_secondary),lt(e,"border-radius",$e(t[6].borderRadius)),lt(e,"background",t[6].background),lt(e,"box-shadow",t[6].boxShadow||"")},m(t,n){M(t,e,n),r&&r.m(e,null)},p(t,n){t[10]?r?r.p(t,n):(r=Va(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),64&n[0]&&lt(e,"border-radius",$e(t[6].borderRadius)),64&n[0]&&lt(e,"background",t[6].background),64&n[0]&&lt(e,"box-shadow",t[6].boxShadow||"")},d(t){t&&T(e),r&&r.d()}}}function Va(t){let e,n,r,o,i;return{c(){e=R("div"),n=R("div"),r=L(t[13]),this.h()},l(o){e=et(o,"DIV",{class:!0});var i=X(e);n=et(i,"DIV",{class:!0});var a=X(n);r=rt(a,t[13]),a.forEach(T),i.forEach(T),this.h()},h(){var r,a,s;q(n,"class",o=Yi["slider__thumb-text-inner"]),lt(n,"font-size",(null===(r=t[10])||void 0===r?void 0:r.fontSize)||"1em"),lt(n,"font-weight",(null===(a=t[10])||void 0===a?void 0:a.fontWeight)||""),lt(n,"color",(null===(s=t[10])||void 0===s?void 0:s.textColor)||"#000"),q(e,"class",i=Yi["slider__thumb-text"]+" "+Yi["slider__thumb-text_secondary"])},m(t,o){M(t,e,o),N(e,n),N(n,r)},p(t,e){var o,i,a;8192&e[0]&&at(r,t[13]),1024&e[0]&&lt(n,"font-size",(null===(o=t[10])||void 0===o?void 0:o.fontSize)||"1em"),1024&e[0]&&lt(n,"font-weight",(null===(i=t[10])||void 0===i?void 0:i.fontWeight)||""),1024&e[0]&&lt(n,"color",(null===(a=t[10])||void 0===a?void 0:a.textColor)||"#000")},d(t){t&&T(e)}}}function Da(t){let e,n,r,o,i;return{c(){e=R("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){q(e,"type","range"),q(e,"class",n=t[17]?Yi.slider__input:"".concat(Yi.slider__input," ").concat(Yi.slider__input_secondary)),q(e,"min",t[3]),q(e,"max",t[4]),q(e,"step","1"),e.value=r=t[17]?t[12]:t[13],q(e,"aria-label",t[21])},m(n,r){M(n,e,r),o||(i=[W(e,"input",t[72]),W(e,"mousedown",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),W(e,"touchstart",(function(){l(t[14]?t[41]:null)&&(t[14]?t[41]:null).apply(this,arguments)})),W(e,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),W(e,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],o=!0)},p(o,i){t=o,131072&i[0]&&n!==(n=t[17]?Yi.slider__input:"".concat(Yi.slider__input," ").concat(Yi.slider__input_secondary))&&q(e,"class",n),8&i[0]&&q(e,"min",t[3]),16&i[0]&&q(e,"max",t[4]),143360&i[0]&&r!==(r=t[17]?t[12]:t[13])&&(e.value=r),2097152&i[0]&&q(e,"aria-label",t[21])},d(t){t&&T(e),o=!1,s(i)}}}function Fa(t){let e,n,r,o,i,a,c,u,d,h,p,f,g,m,v,y,$,b,_,w,x,k,E=Kt(t[18]),C=[];for(let e=0;e<E.length;e+=1)C[e]=Ea(xa(t,E,e));let A=Kt(t[19]),j=[];for(let e=0;e<A.length;e+=1)j[e]=Ca(wa(t,A,e));let V=t[9]&&Aa(t),D=t[14]&&ja(t),F=t[14]&&Da(t);return{c(){e=R("div"),n=R("div"),r=R("div"),i=U(),a=R("div"),u=U();for(let t=0;t<C.length;t+=1)C[t].c();d=U();for(let t=0;t<j.length;t+=1)j[t].c();h=U(),p=R("div"),V&&V.c(),g=U(),D&&D.c(),m=U(),v=R("input"),b=U(),F&&F.c(),this.h()},l(t){e=et(t,"DIV",{class:!0});var o=X(e);n=et(o,"DIV",{class:!0});var s=X(n);r=et(s,"DIV",{class:!0}),X(r).forEach(T),i=ot(s),a=et(s,"DIV",{class:!0}),X(a).forEach(T),u=ot(s);for(let t=0;t<C.length;t+=1)C[t].l(s);d=ot(s);for(let t=0;t<j.length;t+=1)j[t].l(s);h=ot(s),p=et(s,"DIV",{class:!0});var l=X(p);V&&V.l(l),l.forEach(T),g=ot(s),D&&D.l(s),m=ot(s),v=et(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),b=ot(s),F&&F.l(s),s.forEach(T),o.forEach(T),this.h()},h(){q(r,"class",o=Yi.slider__track),lt(r,"height",$e(t[7].height)),lt(r,"border-radius",$e(t[7].borderRadius)),lt(r,"background",t[7].background),lt(r,"box-shadow",t[7].boxShadow||""),q(a,"class",c=Yi["slider__active-track"]),lt(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),lt(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),lt(a,"width",(100*t[27]).toFixed(2)+"%"),lt(a,"height",$e(t[8].height)),lt(a,"border-radius",$e(t[8].borderRadius)),lt(a,"background",t[8].background),lt(a,"box-shadow",t[8].boxShadow||""),q(p,"class",f=Yi.slider__thumb),lt(p,"border-radius",$e(t[5].borderRadius)),lt(p,"background",t[5].background),lt(p,"box-shadow",t[5].boxShadow||""),q(v,"type","range"),q(v,"class",y=t[17]?"".concat(Yi.slider__input," ").concat(Yi.slider__input_secondary):Yi.slider__input),q(v,"min",t[3]),q(v,"max",t[4]),q(v,"step","1"),v.value=$=t[17]?t[13]:t[12],q(v,"aria-label",t[20]),q(n,"class",_=Yi["slider__tracks-inner"]),q(e,"class",w=Yi["slider__tracks-wrapper"])},m(o,s){M(o,e,s),N(e,n),N(n,r),N(n,i),N(n,a),N(n,u);for(let t=0;t<C.length;t+=1)C[t]&&C[t].m(n,null);N(n,d);for(let t=0;t<j.length;t+=1)j[t]&&j[t].m(n,null);N(n,h),N(n,p),V&&V.m(p,null),N(n,g),D&&D.m(n,null),N(n,m),N(n,v),t[71](v),N(n,b),F&&F.m(n,null),t[73](n),x||(k=[W(v,"input",t[70]),W(v,"focus",(function(){l(t[78])&&t[78].apply(this,arguments)})),W(v,"blur",(function(){l(t[79])&&t[79].apply(this,arguments)}))],x=!0)},p(e,o){if(t=e,128&o[0]&&lt(r,"height",$e(t[7].height)),128&o[0]&&lt(r,"border-radius",$e(t[7].borderRadius)),128&o[0]&&lt(r,"background",t[7].background),128&o[0]&&lt(r,"box-shadow",t[7].boxShadow||""),67141632&o[0]&&lt(a,"left","ltr"===t[15]?(100*t[26]).toFixed(2)+"%":void 0),67141632&o[0]&&lt(a,"right","ltr"===t[15]?void 0:(100*t[26]).toFixed(2)+"%"),134217728&o[0]&&lt(a,"width",(100*t[27]).toFixed(2)+"%"),256&o[0]&&lt(a,"height",$e(t[8].height)),256&o[0]&&lt(a,"border-radius",$e(t[8].borderRadius)),256&o[0]&&lt(a,"background",t[8].background),256&o[0]&&lt(a,"box-shadow",t[8].boxShadow||""),262144&o[0]){let e;for(E=Kt(t[18]),e=0;e<E.length;e+=1){const r=xa(t,E,e);C[e]?C[e].p(r,o):(C[e]=Ea(r),C[e].c(),C[e].m(n,d))}for(;e<C.length;e+=1)C[e].d(1);C.length=E.length}if(524288&o[0]){let e;for(A=Kt(t[19]),e=0;e<A.length;e+=1){const r=wa(t,A,e);j[e]?j[e].p(r,o):(j[e]=Ca(r),j[e].c(),j[e].m(n,h))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}t[9]?V?V.p(t,o):(V=Aa(t),V.c(),V.m(p,null)):V&&(V.d(1),V=null),32&o[0]&&lt(p,"border-radius",$e(t[5].borderRadius)),32&o[0]&&lt(p,"background",t[5].background),32&o[0]&&lt(p,"box-shadow",t[5].boxShadow||""),t[14]?D?D.p(t,o):(D=ja(t),D.c(),D.m(n,m)):D&&(D.d(1),D=null),131072&o[0]&&y!==(y=t[17]?"".concat(Yi.slider__input," ").concat(Yi.slider__input_secondary):Yi.slider__input)&&q(v,"class",y),8&o[0]&&q(v,"min",t[3]),16&o[0]&&q(v,"max",t[4]),143360&o[0]&&$!==($=t[17]?t[13]:t[12])&&(v.value=$),1048576&o[0]&&q(v,"aria-label",t[20]),t[14]?F?F.p(t,o):(F=Da(t),F.c(),F.m(n,null)):F&&(F.d(1),F=null)},d(n){n&&T(e),z(C,n),z(j,n),V&&V.d(),D&&D.d(),t[71](null),F&&F.d(),t[73](null),x=!1,s(k)}}}function Pa(t){let e,n,r,o,i=!t[11]&&ka(t);return{c(){i&&i.c(),e=H()},l(t){i&&i.l(t),e=H()},m(a,s){i&&i.m(a,s),M(a,e,s),n=!0,r||(o=W(window,"resize",t[43]),r=!0)},p(t,n){t[11]?i&&(Ut(),qt(i,1,1,(()=>{i=null})),Ht()):i?(i.p(t,n),2048&n[0]&&Wt(i,1)):(i=ka(t),i.c(),Wt(i,1),i.m(e.parentNode,e))},i(t){n||(Wt(i),n=!0)},o(t){qt(i),n=!1},d(t){t&&T(e),i&&i.d(t),r=!1,o()}}}const Sa={width:10,height:10,borderRadius:5,background:"#000"},Ia=["rounded_rectangle","circle"],Na=["rounded_rectangle"];function Oa(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Ma(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H,W=n,q=n,J=n,G=n,K=n,Y=n,X=n,Z=n,Q=n,tt=n,et=n,nt=n,rt=n,ot=n;var it,at,st,lt;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot()));let{componentContext:ct}=e,{layoutParams:ut}=e;const dt=xt(fe),ht=xt(en),pt=dt.direction;let ft,gt,mt;p(t,pt,(t=>r(15,D=t)));let vt,yt,$t,wt=!1,kt=0,Et=100,At=Sa,jt=At,Vt=Sa,Dt=Sa,Ft=null,Pt=null,St=$t,It="",Nt="",Ot=!1,Mt=Zi(L||0,kt,Et),Tt=Zi(B||0,kt,Et);function zt(t,e){const n=Number(t.target.value);wt===("first"===e)?(r(13,Tt=n),s.setValue(n)):(r(12,Mt=n),a.setValue(n))}let Rt=!1;function Bt(){if(!mt)return;const t=Et-kt,e=(null==Ft?void 0:Ft.width)||0,n=(null==Pt?void 0:Pt.width)||0;Math.max(e,n)*t>=(null==mt?void 0:mt.clientWidth)?Rt||(ct.logError(ge(new Error("Slider ticks overlap each other"),{level:"warn"})),Rt=!0):Rt=!1}const Lt=Wn(Bt,50);return bt((()=>{Bt()})),_t((()=>{ft&&(dt.unregisterFocusable(ft),r(48,ft=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,ct=t.componentContext),"layoutParams"in t&&r(1,ut=t.layoutParams)},t.$$.update=()=>{if(33&t.$$.dirty[0]&&ct.json&&(r(5,At=Sa),r(6,jt=At),r(7,Vt=Sa),r(8,Dt=Sa),r(49,Ft=null),r(50,Pt=null),r(9,$t=void 0),r(10,St=void 0),r(20,It=""),r(21,Nt="")),1&t.$$.dirty[0]&&r(55,o=ct.json.thumb_value_variable),1&t.$$.dirty[0]&&r(14,i=ct.json.thumb_secondary_value_variable),1&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(r(22,a=o&&ct.getVariable(o,"integer")||va("temp","integer",0)),nt(),nt=h(a,(t=>r(67,L=t)))),16385&t.$$.dirty[0]&&(r(23,s=i&&ct.getVariable(i,"integer")||va("temp","integer",0)),et(),et=h(s,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(39,l=ct.getDerivedFromVars(ct.json.min_value)),ot(),ot=h(l,(t=>r(69,H=t)))),1&t.$$.dirty[0]&&(r(38,c=ct.getDerivedFromVars(ct.json.max_value)),rt(),rt=h(c,(t=>r(68,U=t)))),1&t.$$.dirty[0]&&(r(37,u=ct.getDerivedFromVars(ct.json.thumb_style)),tt(),tt=h(u,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(36,d=ct.getDerivedFromVars(ct.json.thumb_secondary_style)),Q(),Q=h(d,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(35,f=ct.getDerivedFromVars(ct.json.track_inactive_style)),Z(),Z=h(f,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(34,g=ct.getDerivedFromVars(ct.json.track_active_style)),X(),X=h(g,(t=>r(62,M=t)))),1&t.$$.dirty[0]&&(r(33,m=ct.getDerivedFromVars(ct.json.tick_mark_active_style)),Y(),Y=h(m,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(32,v=ct.getDerivedFromVars(ct.json.tick_mark_inactive_style)),K(),K=h(v,(t=>r(60,N=t)))),1&t.$$.dirty[0]&&(r(31,y=ct.getDerivedFromVars(ct.json.thumb_text_style)),G(),G=h(y,(t=>r(59,I=t)))),1&t.$$.dirty[0]&&(r(30,$=ct.getDerivedFromVars(ct.json.thumb_secondary_text_style)),J(),J=h($,(t=>r(58,S=t)))),1&t.$$.dirty[0]&&(r(29,b=ct.getDerivedFromVars(ct.json.accessibility)),q(),q=h(b,(t=>r(57,P=t)))),1&t.$$.dirty[0]&&(r(28,_=ct.getDerivedFromVars(ct.json.secondary_value_accessibility)),W(),W=h(_,(t=>r(56,F=t)))),24&t.$$.dirty[0]|192&t.$$.dirty[2]&&(r(3,kt=Je(H,kt)),r(4,Et=Je(U,Et)),Bt()),4120&t.$$.dirty[0]|32&t.$$.dirty[2]){const t=Zi(L||0,kt,Et);t!==Mt&&r(12,Mt=t)}if(8216&t.$$.dirty[0]|16&t.$$.dirty[2]){const t=Zi(B||0,kt,Et);t!==Tt&&r(13,Tt=t)}if(32&t.$$.dirty[0]|8&t.$$.dirty[2]&&r(5,At=ur(R,Ia,At)),32&t.$$.dirty[0]|4&t.$$.dirty[2]&&r(6,jt=ur(z,Ia,At)),128&t.$$.dirty[0]|2&t.$$.dirty[2]&&r(7,Vt=ur(T,Na,Vt)),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&r(8,Dt=ur(M,Na,Dt)),1073741824&t.$$.dirty[1]){let t=ur(O,Ia,Sa);t!==Sa&&r(49,Ft=t)}if(28696&t.$$.dirty[0]|262144&t.$$.dirty[1]&&(Ft?(r(18,vt=i?Oa(Math.min(Mt,Tt),Math.max(Mt,Tt)+1,kt,Et,!0):Oa(kt,Mt,kt,Et,!0)),Bt()):r(18,vt=[])),536870912&t.$$.dirty[1]){let t=ur(N,Ia,Sa);t!==Sa&&r(50,Pt=t)}if(28696&t.$$.dirty[0]|524288&t.$$.dirty[1]&&(Pt?(r(19,yt=i?Oa(Math.min(Mt,Tt),Math.max(Mt,Tt)+1,kt,Et,!1):Oa(Mt+1,Et+1,kt,Et,!0)),Bt()):r(19,yt=[])),512&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&r(9,$t=Xi(I,$t)),512&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&r(10,St=Xi(S,$t)),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&((null==P?void 0:P.description)?r(20,It=P.description):ct.logError(ge(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),16385&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&((null==F?void 0:F.description)?r(21,Nt=F.description):i&&ct.logError(ge(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),2465&t.$$.dirty[0]){let t=!1;ht.hasAction()?(ct.logError(ge(new Error('Cannot show "slider" inside component with action'))),t=!0):At===Sa?(ct.logError(ge(new Error('Missing "thumb_style" in slider'))),t=!0):Dt===Sa?(ct.logError(ge(new Error('Missing "track_active_style" in slider'))),t=!0):Vt===Sa&&(ct.logError(ge(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&r(11,Ot=t)}96&t.$$.dirty[0]&&r(54,w=$e(Math.max(...[At.width,jt.width,0].filter(Re)))),96&t.$$.dirty[0]&&r(53,x=$e(Math.max(...[At.height,jt.height,0].filter(Re)))),4120&t.$$.dirty[0]&&r(52,k=(Mt-kt)/(Et-kt)),24600&t.$$.dirty[0]&&r(51,E=i?(Tt-kt)/(Et-kt):void 0),3145728&t.$$.dirty[1]&&r(27,C=void 0!==E?Math.abs(E-k):k),3145728&t.$$.dirty[1]&&r(26,A=void 0!==E?Math.min(E,k):0),1632&t.$$.dirty[0]|16637952&t.$$.dirty[1]&&r(25,j={"--divkit-slider-thumb-width":$e(At.width),"--divkit-slider-thumb-height":$e(At.height),"--divkit-slider-thumb-secondary-width":$e(jt.width),"--divkit-slider-thumb-secondary-height":$e(jt.height),"--divkit-slider-text-offset-x":(null===r(44,it=null==$t?void 0:$t.offset)||void 0===it?void 0:it.x)?be($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===r(45,at=null==$t?void 0:$t.offset)||void 0===at?void 0:at.y)?be($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===r(46,st=null==St?void 0:St.offset)||void 0===st?void 0:st.x)?be(St.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===r(47,lt=null==St?void 0:St.offset)||void 0===lt?void 0:lt.y)?be(St.offset.y):void 0,"--divkit-slider-tick-active-width":Ft?$e(Ft.width):void 0,"--divkit-slider-tick-active-height":Ft?$e(Ft.height):void 0,"--divkit-slider-tick-active-border-radius":Ft?$e(Ft.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ft?void 0:Ft.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ft?void 0:Ft.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Pt?$e(Pt.width):void 0,"--divkit-slider-tick-inactive-height":Pt?$e(Pt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Pt?$e(Pt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Pt?void 0:Pt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Pt?void 0:Pt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":w,"--divkit-slider-max-thumb-height":x,"--divkit-slider-track-part":k,"--divkit-slider-track-secondary-part":E}),32768&t.$$.dirty[0]&&r(24,V={direction:D}),5&t.$$.dirty[0]|131072&t.$$.dirty[1]&&ct.json&&gt&&(ft&&(dt.unregisterFocusable(ft),r(48,ft=void 0)),ct.json.id&&!ct.fakeElement&&(r(48,ft=ct.json.id),dt.registerFocusable(ft,{focus(){gt&&gt.focus()}})))},[ct,ut,gt,kt,Et,At,jt,Vt,Dt,$t,St,Ot,Mt,Tt,i,D,mt,wt,vt,yt,It,Nt,a,s,V,j,A,C,_,b,$,y,v,m,g,f,d,u,c,l,pt,function(t){var e,n;const o="pageX"in t?t.pageX:null===(n=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageX;if(void 0===o)return;const i=mt.getBoundingClientRect(),a=(o-i.left)/i.width,s=(Et-kt)*a,l=Math.round(Zi(s,kt,Et));r(17,wt=l<(Mt+Tt)/2==Mt<Tt)},zt,Lt,it,at,st,lt,ft,Ft,Pt,E,k,x,w,o,F,P,S,I,N,O,M,T,z,R,B,L,U,H,t=>zt(t,"first"),function(t){Ct[t?"unshift":"push"]((()=>{gt=t,r(2,gt)}))},t=>zt(t,"second"),function(t){Ct[t?"unshift":"push"]((()=>{mt=t,r(16,mt)}))}]}const Ta={input:"divkit-c3a4c","input_alignment-horizontal_center":"divkit-fc52a","input_alignment-horizontal_end":"divkit-e9096",input__input:"divkit-f11e0",input__placeholder:"divkit-b7593","input_alignment-vertical_start":"divkit-cd14f","input_alignment-vertical_end":"divkit-cd38f","input_alignment-vertical_baseline":"divkit-dd6af","input_highlight-color":"divkit-cc00f",input__input_singleline:"divkit-ffd1e","input__scroll-wrapper":"divkit-ad8a3",input__input_multiline:"divkit-f61f0","input__input_has-custom-focus":"divkit-e6b50"};function za(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=za(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const o=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-o>=n&&t[r-o]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-o}}function Ra(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 Ba{constructor(t){this.char=t}}class La{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class Ua{constructor(t){Ra(this,"filters",new Map),Ra(this,"destructedValue",[]),Ra(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 Ba)t+=n.char;else if(n instanceof La)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 La&&!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(ge(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 La(null,this.filters.get(e.key),e.placeholder):new Ba(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=za(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),o=this.buildTailSubstring(n);this.cleanup(n);const i=this.firstEmptyHolderIndex(),a=o?this.calculateMaxShift(o,i):void 0;this.replaceChars(r,i,a);const s=this.firstEmptyHolderIndex();this.replaceChars(o,s),this.calculateCursorPosition(n,s)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof La&&++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 La&&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 La&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const o=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof La);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=o();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof La&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let o=e,i=0;for(;o<this.destructedValue.length&&i<r.length;){const t=this.destructedValue[o],e=r[i];t instanceof La&&(t.char=e,++i),++o}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof La);)++e;return e}}class Ha extends Ua{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function Wa(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 qa extends Ua{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}),Wa(this,"currencyFormatter",new Intl.NumberFormat),Wa(this,"decimalSeparator","."),Wa(this,"localeDigits",{}),Wa(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(ge(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=za(this.value,t),r=this.value.lastIndexOf(this.decimalSeparator),o=t.lastIndexOf(this.decimalSeparator),i=r!==o||-1===r&&-1===o,a=this.validFormat(t,n);this.cleanup(n);const s=this.parseFormat(a)||0;i&&this.invalidateMaskDataForFormatted(s),this.replaceChars(a,0),this.value.length>n.start&&!this.isDigit(this.value[n.start])?this.cursorPos=null!=e?e:this.cursorPosition:this.cursorPos=Math.abs(this.value.length-(t.length-(null!=e?e:this.cursorPosition)))}parseFormat(t){return parseFloat(t.replace(/./g,(t=>this.localeDigits[t]||(t===this.decimalSeparator?".":""))))}formatPattern(t){let e="";for(const n of t)e+=this.isDigit(n)?"#":n;return e}validFormat(t,e){if(!t)return"";let n=-1,r=0;for(;r<t.length;){if(t[r]===this.decimalSeparator&&!this.inDiff(e,r)){n=r;break}r++}let o=-1;1===e.added&&0===e.removed&&[",","."].includes(t[e.start])&&(o=e.start);const i=this.currencyFormatter.resolvedOptions().maximumFractionDigits;let a=i;if(-1!==n)for(r=n;r<t.length;)this.isDigit(t[r])&&!this.inDiff(e,r)&&a--,r++;else{let n=!1;for(let r=0;r<t.length;r++){const o=t[r];o===this.decimalSeparator?n=!0:!this.inDiff(e,r)&&n&&this.isDigit(o)&&a--}}const s=t.includes(this.decimalSeparator)||-1!==o,l=[];r=t.length-1;let c=!1;for(;r>=0;){const u=t[r],d=l.length<=i;this.isDigit(u)?this.inDiff(e,r)&&!c&&s?a>0&&(l.push(u),a--):l.push(u):d&&-1===n&&r===o?(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 Ja=3;function Ga(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 Ka(t,e){if(t.nodeType!==Ja)if(t instanceof HTMLElement&&"BR"===t.tagName)try{const e=window.getSelection();if(e){e.removeAllRanges();const n=document.createRange(),r=t.parentNode,o=Array.from(r.childNodes).indexOf(t)+1;n.setStart(r,o),n.setEnd(r,o),e.addRange(n)}}catch(t){}else for(let n=0,r=t.childNodes.length;n<r;++n){const r=t.childNodes[n],o=Ga(r);if(e<=o)return void Ka(r,e);e-=o}else try{const n=window.getSelection();if(n){n.removeAllRanges();const r=document.createRange();r.setStart(t,e),r.setEnd(t,e),n.addRange(r)}}catch(t){}}function Ya(t){let e,n;return e=new Fn({props:{cls:Oe("input",Ta,t[15]),style:t[14],customDescription:!0,customActions:"input",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[ts,t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return{88:e,89:n,90:r}},t=>{let{focusHandler:e,blurHandler:n,hasCustomFocus:r}=t;return[0,0,(e?67108864:0)|(n?134217728:0)|(r?268435456:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.cls=Oe("input",Ta,t[15])),16384&n[0]&&(r.style=t[14]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),78780&n[0]|8&n[1]|1006632960&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Xa(t){let e,n,r,o,i;return{c(){e=R("input"),this.h()},l(t){e=et(t,"INPUT",{type:!0,inputmode:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){q(e,"type",t[7]),q(e,"inputmode",t[8]),q(e,"class",n=Oe("input__input",Ta,{"has-custom-focus":t[90],singleline:!0})),q(e,"autocomplete","off"),q(e,"autocapitalize","off"),q(e,"aria-label",t[9]),q(e,"style",r=ye(t[13])),q(e,"placeholder",t[16]),e.value=t[3]},m(n,r){M(n,e,r),t[80](e),o||(i=[W(e,"input",t[36]),W(e,"mousedown",(function(){l(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),W(e,"click",(function(){l(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),W(e,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),W(e,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],o=!0)},p(o,i){t=o,128&i[0]&&q(e,"type",t[7]),256&i[0]&&q(e,"inputmode",t[8]),268435456&i[2]&&n!==(n=Oe("input__input",Ta,{"has-custom-focus":t[90],singleline:!0}))&&q(e,"class",n),512&i[0]&&q(e,"aria-label",t[9]),8192&i[0]&&r!==(r=ye(t[13]))&&q(e,"style",r),65536&i[0]&&q(e,"placeholder",t[16]),8&i[0]&&e.value!==t[3]&&(e.value=t[3])},d(n){n&&T(e),t[80](null),o=!1,s(i)}}}function Za(t){let e,n,r,o,i,a,c,u,d,h,p,f,g=!t[5]&&t[16]&&Qa(t);return{c(){e=R("span"),g&&g.c(),n=U(),r=R("span"),o=L("​"),a=U(),c=R("span"),this.h()},l(t){e=et(t,"SPAN",{class:!0});var i=X(e);g&&g.l(i),n=ot(i),r=et(i,"SPAN",{"aria-hidden":!0,style:!0});var s=X(r);o=rt(s,"​"),s.forEach(T),a=ot(i),c=et(i,"SPAN",{class:!0,autocapitalize:!0,contenteditable:!0,"aria-label":!0,style:!0}),X(c).forEach(T),i.forEach(T),this.h()},h(){q(r,"aria-hidden","true"),q(r,"style",i=ye(t[12])),q(c,"class",u=Oe("input__input",Ta,{"has-custom-focus":t[90],multiline:!0})),q(c,"autocapitalize","off"),q(c,"contenteditable","true"),q(c,"aria-label",t[9]),q(c,"style",d=ye(t[13])),void 0===t[5]&&St((()=>t[79].call(c))),q(e,"class",h=Ta["input__scroll-wrapper"])},m(i,s){M(i,e,s),g&&g.m(e,null),N(e,n),N(e,r),N(r,o),N(e,a),N(e,c),t[78](c),void 0!==t[5]&&(c.innerText=t[5]),p||(f=[W(c,"input",t[79]),W(c,"input",t[36]),W(c,"paste",os),W(c,"mousedown",(function(){l(t[34]?t[37]:void 0)&&(t[34]?t[37]:void 0).apply(this,arguments)})),W(c,"click",(function(){l(t[34]?t[38]:void 0)&&(t[34]?t[38]:void 0).apply(this,arguments)})),W(c,"focus",(function(){l(t[88])&&t[88].apply(this,arguments)})),W(c,"blur",(function(){l(t[89])&&t[89].apply(this,arguments)}))],p=!0)},p(o,a){!(t=o)[5]&&t[16]?g?g.p(t,a):(g=Qa(t),g.c(),g.m(e,n)):g&&(g.d(1),g=null),4096&a[0]&&i!==(i=ye(t[12]))&&q(r,"style",i),268435456&a[2]&&u!==(u=Oe("input__input",Ta,{"has-custom-focus":t[90],multiline:!0}))&&q(c,"class",u),512&a[0]&&q(c,"aria-label",t[9]),8192&a[0]&&d!==(d=ye(t[13]))&&q(c,"style",d),32&a[0]&&t[5]!==c.innerText&&(c.innerText=t[5])},d(n){n&&T(e),g&&g.d(),t[78](null),p=!1,s(f)}}}function Qa(t){let e,n,r,o;return{c(){e=R("div"),n=L(t[16]),this.h()},l(r){e=et(r,"DIV",{class:!0,"aria-hidden":!0,style:!0});var o=X(e);n=rt(o,t[16]),o.forEach(T),this.h()},h(){q(e,"class",r=Ta.input__placeholder),q(e,"aria-hidden","true"),q(e,"style",o=ye(t[13]))},m(t,r){M(t,e,r),N(e,n)},p(t,r){65536&r[0]&&at(n,t[16]),8192&r[0]&&o!==(o=ye(t[13]))&&q(e,"style",o)},d(t){t&&T(e)}}}function ts(t){let e;function n(t,e){return t[4]?Za:Xa}let r=n(t),o=r(t);return{c(){o.c(),e=H()},l(t){o.l(t),e=H()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&T(e),o.d(t)}}}function es(t){let e,n,r=!t[6]&&Ya(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[6]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),64&n[0]&&Wt(r,1)):(r=Ya(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}const ns="undefined"!=typeof document&&"inputMode"in document.createElement("input"),rs={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};function os(t){if(t.preventDefault(),t.clipboardData){let e=t.clipboardData.getData("text/plain");e=e.trim(),document.execCommand("inserttext",!1,e)}}function is(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O,M,T,z,R,B,L,U,H,W,q,J,G,K,Y,X,Z,Q,tt=n,et=n,nt=n,rt=n,ot=n,it=n,at=n,st=n,lt=n,ct=n,ut=n,dt=n,ht=n,pt=n,ft=n,gt=n,mt=n,vt=n,yt=n;var $t;t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>st())),t.$$.on_destroy.push((()=>lt())),t.$$.on_destroy.push((()=>ct())),t.$$.on_destroy.push((()=>ut())),t.$$.on_destroy.push((()=>dt())),t.$$.on_destroy.push((()=>ht())),t.$$.on_destroy.push((()=>pt())),t.$$.on_destroy.push((()=>ft())),t.$$.on_destroy.push((()=>gt())),t.$$.on_destroy.push((()=>mt())),t.$$.on_destroy.push((()=>vt())),t.$$.on_destroy.push((()=>yt()));let{componentContext:wt}=e,{layoutParams:kt}=e;const Et=xt(fe),At=Et.direction;let jt,Vt;p(t,At,(t=>r(62,M=t)));let Dt,Ft,St,It=!1,Nt=null,Ot="",Mt="",Tt=!1,zt="",Rt=12,Bt="",Lt="",Ut="#000",Ht="",Wt="start",qt="center",Jt="multi_line_text",Gt="text",Kt="",Yt=null,Xt="",Zt="",Qt="";function te(t){Vt instanceof HTMLInputElement?r(2,Vt.selectionStart=r(2,Vt.selectionEnd=t,Vt),Vt):Ka(Vt,t)}async function ee(){if(!Vt||!Nt)return;Nt.overrideRawValue(N),s.set(Nt.rawValue),$(a,I=r(3,Ot=r(5,Mt=Nt.value)),I);const t=Nt.cursorPosition;await Pt(),document.activeElement===Vt&&te(t)}return bt((()=>{Vt&&Nt&&N&&(Nt.overrideRawValue(N),$(a,I=r(3,Ot=r(5,Mt=Nt.value)),I))})),_t((()=>{jt&&(Et.unregisterFocusable(jt),r(40,jt=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,wt=t.componentContext),"layoutParams"in t&&r(1,kt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&wt.json&&(r(42,zt=""),r(43,Rt=12),r(44,Dt=void 0),r(45,Bt=""),r(46,Ft=void 0),r(48,Ut="#000"),r(49,Ht=""),r(50,Wt="left"),r(51,qt="center"),r(52,Jt="multi_line_text"),r(7,Gt="text"),r(8,St=void 0)),1&t.$$.dirty[0]&&r(57,o=wt.json.text_variable),1&t.$$.dirty[0]|256&t.$$.dirty[1]&&r(58,i=null===r(39,$t=wt.json.mask)||void 0===$t?void 0:$t.raw_text_variable),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(r(11,a=o&&wt.getVariable(o,"string")||va("temp","string","")),tt(),tt=h(a,(t=>r(59,I=t)))),1&t.$$.dirty[0]|134217728&t.$$.dirty[1]&&(r(10,s=i&&wt.getVariable(i,"string")||va("temp","string","")),et(),et=h(s,(t=>r(60,N=t)))),1&t.$$.dirty[0]&&(r(33,l=wt.getDerivedFromVars(wt.json.hint_text)),vt(),vt=h(l,(t=>r(77,Z=t)))),1&t.$$.dirty[0]&&(r(32,c=wt.getDerivedFromVars(wt.json.hint_color)),mt(),mt=h(c,(t=>r(76,X=t)))),1&t.$$.dirty[0]&&(r(31,u=wt.getDerivedFromVars(wt.json.font_size)),gt(),gt=h(u,(t=>r(75,Y=t)))),1&t.$$.dirty[0]&&(r(30,d=wt.getDerivedFromVars(wt.json.font_weight)),ft(),ft=h(d,(t=>r(74,K=t)))),1&t.$$.dirty[0]&&(r(29,f=wt.getDerivedFromVars(wt.json.font_family)),pt(),pt=h(f,(t=>r(73,G=t)))),1&t.$$.dirty[0]&&(r(28,g=wt.getDerivedFromVars(wt.json.line_height)),ht(),ht=h(g,(t=>r(72,J=t)))),1&t.$$.dirty[0]&&(r(27,m=wt.getDerivedFromVars(wt.json.letter_spacing)),dt(),dt=h(m,(t=>r(71,q=t)))),1&t.$$.dirty[0]&&(r(26,v=wt.getDerivedFromVars(wt.json.text_color)),ut(),ut=h(v,(t=>r(70,W=t)))),1&t.$$.dirty[0]&&(r(25,y=wt.getDerivedFromVars(wt.json.highlight_color)),ct(),ct=h(y,(t=>r(69,H=t)))),1&t.$$.dirty[0]&&(r(24,b=wt.getDerivedFromVars(wt.json.text_alignment_horizontal)),lt(),lt=h(b,(t=>r(68,U=t)))),1&t.$$.dirty[0]&&(r(23,_=wt.getDerivedFromVars(wt.json.text_alignment_vertical)),st(),st=h(_,(t=>r(67,L=t)))),1&t.$$.dirty[0]&&(r(22,w=wt.getDerivedFromVars(wt.json.keyboard_type)),at(),at=h(w,(t=>r(66,B=t)))),1&t.$$.dirty[0]&&(r(21,x=wt.getDerivedFromVars(wt.json.mask)),it(),it=h(x,(t=>r(65,R=t)))),1&t.$$.dirty[0]&&(r(20,k=wt.getDerivedFromVars(wt.json.max_visible_lines)),ot(),ot=h(k,(t=>r(64,z=t)))),1&t.$$.dirty[0]&&(r(19,E=wt.getDerivedFromVars(wt.json.paddings)),rt(),rt=h(E,(t=>r(63,T=t)))),1&t.$$.dirty[0]&&(r(18,C=wt.getDerivedFromVars(wt.json.accessibility)),nt(),nt=h(C,(t=>r(61,O=t)))),1&t.$$.dirty[0]&&(r(17,A=wt.getDerivedFromVars(wt.json.select_all_on_focus)),yt(),yt=h(A,(t=>r(34,Q=t)))),1&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&(o?r(6,Tt=!1):(r(6,Tt=!0),wt.logError(ge(new Error('Missing "text_variable" in "input"'))))),8&t.$$.dirty[2]&&("fixed_length"===(null==(e=R)?void 0:e.type)?r(41,Nt=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 Ha(r,e)}return n||null}(e,wt.logError,Nt)):"currency"===(null==e?void 0:e.type)&&r(41,Nt=function(t,e,n){return n?(n.updateCurrencyParams(t.locale),n):new qa(t.locale,e)}(e,wt.logError,Nt)),Nt&&ee()),8&t.$$.dirty[0]|268436480&t.$$.dirty[1]&&(Nt||Ot===I||r(3,Ot=r(5,Mt=I))),536871936&t.$$.dirty[1]&&Nt&&Nt.rawValue!==N&&ee(),32768&t.$$.dirty[2]&&r(16,j=Z),2048&t.$$.dirty[1]|16384&t.$$.dirty[2]&&r(42,zt=we(X,1,zt)),4096&t.$$.dirty[1]|8192&t.$$.dirty[2]&&r(43,Rt=Sn(Y,Rt)),8192&t.$$.dirty[1]|6144&t.$$.dirty[2]&&(r(44,Dt=Nn(K,Dt)),r(45,Bt=G&&"string"==typeof G?Et.typefaceProvider(G,{fontWeight:Dt||400}):"")),4096&t.$$.dirty[1]|1024&t.$$.dirty[2]){const t=J;un(t)&&r(46,Ft=t/Rt)}var e;512&t.$$.dirty[2]&&ze(q)&&r(47,Lt=$e(q)),131072&t.$$.dirty[1]|256&t.$$.dirty[2]&&r(48,Ut=we(W,1,Ut)),262144&t.$$.dirty[1]|128&t.$$.dirty[2]&&r(49,Ht=we(H,1,Ht)),524288&t.$$.dirty[1]|65&t.$$.dirty[2]&&r(50,Wt=Bn(U,M,Wt)),1048576&t.$$.dirty[1]|32&t.$$.dirty[2]&&r(51,qt=Ln(L,qt)),24&t.$$.dirty[2]&&(B&&B in rs&&(r(7,Gt=rs[B]),r(52,Jt=B)),"currency"===(null==R?void 0:R.type)&&(r(7,Gt=ns?"text":"tel"),r(8,St="decimal"))),2097152&t.$$.dirty[1]&&r(4,V="multi_line_text"===Jt),8425472&t.$$.dirty[1]|7&t.$$.dirty[2]&&(un(z)?r(53,Kt="calc(".concat(z*(Ft||1.25)*(Rt/10)+"em"," + ").concat(be(Le(null==T?void 0:T.top,0)+Le(null==T?void 0:T.bottom,0)),")")):r(53,Kt=""),r(54,Yt=Ke(T||void 0,Yt)),r(55,Xt=Yt?Te({top:(Number(Yt.top)||0)/Rt*10,right:(Number("ltr"===M?Yt.end:Yt.start)||Number(Yt.right)||0)/Rt*10,bottom:(Number(Yt.bottom)||0)/Rt*10,left:(Number("ltr"===M?Yt.start:Yt.end)||Number(Yt.left)||0)/Rt*10},M):""),r(56,Zt=Yt?Te({top:(Number(Yt.top)||0)/Rt*10,bottom:(Number(Yt.bottom)||0)/Rt*10},M):"")),1&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&((null==O?void 0:O.description)?r(9,Qt=O.description):wt.logError(ge(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|1835008&t.$$.dirty[1]&&r(15,D={"highlight-color":Boolean(Ht),multiline:V,"alignment-horizontal":Wt,"alignment-vertical":qt}),4712448&t.$$.dirty[1]&&r(14,F={"--divkit-input-hint-color":zt,"--divkit-input-highlight-color":Ht,"--divkit-input-line-height":Ft,"font-weight":Dt,"font-family":Bt,"letter-spacing":Lt,color:Ut,"max-height":Kt}),16781312&t.$$.dirty[1]&&r(13,P={"font-size":$e(Rt),padding:Xt}),33558528&t.$$.dirty[1]&&r(12,S={"font-size":$e(Rt),padding:Zt}),5&t.$$.dirty[0]|512&t.$$.dirty[1]&&Vt&&wt.json&&(jt&&(Et.unregisterFocusable(jt),r(40,jt=void 0)),wt.json.id&&!wt.fakeElement&&(r(40,jt=wt.json.id),Et.registerFocusable(jt,{focus(){Vt&&Vt.focus()}})))},[wt,kt,Vt,Ot,V,Mt,Tt,Gt,St,Qt,s,a,S,P,F,D,j,A,C,E,k,x,w,_,b,y,v,m,g,f,d,u,c,l,Q,At,function(t){let e=(V?t.target.innerText:t.target.value)||"";"\n"===e&&(e=""),Ot!==e&&(r(3,Ot=r(5,Mt=e)),a.setValue(e),Nt&&async function(){if(!Vt||!Nt)return;Nt.applyChangeFrom(Ot,Vt instanceof HTMLInputElement?null===Vt.selectionEnd?void 0:Vt.selectionEnd:function(t){try{let n=0;const r=window.getSelection();if(!r)return 0;const o=r.getRangeAt(0);let i;if(o){if(!o.collapsed)return 0;n+=o.endOffset,i=o.endContainer}if(i instanceof HTMLElement){let t=0;for(let e=0,r=Math.min(n,i.childNodes.length);e<r;++e)t+=Ga(i.childNodes[e]);n=t}for(;i&&i!==t;){var e;const t=i.parentNode;if(!t)return 0;const r=Array.from(t.childNodes).indexOf(i);for(let e=0;e<r;++e)n+=Ga(t.childNodes[e]);i instanceof HTMLElement&&("DIV"===i.tagName&&(null===(e=t.childNodes[r-1])||void 0===e?void 0:e.nodeType)===Ja||"BR"===i.tagName)&&++n,i=t}return n}catch(t){return 0}}(Vt)),s.set(Nt.rawValue),$(a,I=r(3,Ot=r(5,Mt=Nt.value)),I);const t=Nt.cursorPosition;await Pt(),document.activeElement===Vt&&te(t)}())},function(){It=!1,setTimeout((()=>{It=!0}),250)},function(){if(!It)if(Vt instanceof HTMLInputElement)Vt.select();else{const t=window.getSelection(),e=document.createRange();e.selectNodeContents(Vt),t&&(t.removeAllRanges(),t.addRange(e))}},$t,jt,Nt,zt,Rt,Dt,Bt,Ft,Lt,Ut,Ht,Wt,qt,Jt,Kt,Yt,Xt,Zt,o,i,I,N,O,M,T,z,R,B,L,U,H,W,q,J,G,K,Y,X,Z,function(t){Ct[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))},function(){Mt=this.innerText,r(5,Mt),r(41,Nt),r(3,Ot),r(59,I)},function(t){Ct[t?"unshift":"push"]((()=>{Vt=t,r(2,Vt)}))}]}const as={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 ss(t,e,n){const r=t.slice();return r[53]=e[n],r}function ls(t){let e,n;return e=new Fn({props:{cls:Oe("select",as,t[11]),style:t[10],customDescription:!0,customActions:"select",customPaddings:!0,hasInnerFocusable:!0,componentContext:t[0],layoutParams:t[1],$$slots:{default:[us,t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return{50:e,51:n,52:r}},t=>{let{hasCustomFocus:e,focusHandler:n,blurHandler:r}=t;return[0,(e?524288:0)|(n?1048576:0)|(r?2097152:0)]}]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Oe("select",as,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),8389564&n[0]|37224448&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function cs(t){let e,n,r,o,i=(t[53].text||t[53].value)+"";return{c(){e=R("option"),n=L(i),this.h()},l(t){e=et(t,"OPTION",{class:!0});var r=X(e);n=rt(r,i),r.forEach(T),this.h()},h(){q(e,"class",r=as.select__option),e.__value=o=t[53].value,st(e,e.__value)},m(t,r){M(t,e,r),N(e,n)},p(t,r){16&r[0]&&i!==(i=(t[53].text||t[53].value)+"")&&at(n,i),16&r[0]&&o!==(o=t[53].value)&&(e.__value=o,st(e,e.__value))},d(t){t&&T(e)}}}function us(t){let e,n,r,o,i,a,c,u,d,h,p=(t[3]||t[23]||"​")+"",f=Kt(t[4]),g=[];for(let e=0;e<f.length;e+=1)g[e]=cs(ss(t,f,e));return{c(){e=R("span"),n=L(p),i=U(),a=R("select");for(let t=0;t<g.length;t+=1)g[t].c();this.h()},l(t){e=et(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=X(e);n=rt(r,p),r.forEach(T),i=ot(t),a=et(t,"SELECT",{class:!0,"aria-label":!0,style:!0});var o=X(a);for(let t=0;t<g.length;t+=1)g[t].l(o);o.forEach(T),this.h()},h(){q(e,"class",r=as["select__select-text"]),q(e,"style",o=ye(t[9])),q(e,"aria-hidden","true"),q(a,"class",c=Oe("select__select",as,{"has-custom-focus":t[50]})),q(a,"aria-label",t[7]),q(a,"style",u=ye(t[8])),void 0===t[5]&&St((()=>t[48].call(a)))},m(r,o){M(r,e,o),N(e,n),M(r,i,o),M(r,a,o);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(a,null);t[47](a),ct(a,t[5],!0),d||(h=[W(a,"change",t[48]),W(a,"focus",(function(){l(t[51])&&t[51].apply(this,arguments)})),W(a,"blur",(function(){l(t[52])&&t[52].apply(this,arguments)}))],d=!0)},p(r,i){if(t=r,8388616&i[0]&&p!==(p=(t[3]||t[23]||"​")+"")&&at(n,p),512&i[0]&&o!==(o=ye(t[9]))&&q(e,"style",o),16&i[0]){let e;for(f=Kt(t[4]),e=0;e<f.length;e+=1){const n=ss(t,f,e);g[e]?g[e].p(n,i):(g[e]=cs(n),g[e].c(),g[e].m(a,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}524288&i[1]&&c!==(c=Oe("select__select",as,{"has-custom-focus":t[50]}))&&q(a,"class",c),128&i[0]&&q(a,"aria-label",t[7]),256&i[0]&&u!==(u=ye(t[8]))&&q(a,"style",u),48&i[0]&&ct(a,t[5])},d(n){n&&(T(e),T(i),T(a)),z(g,n),t[47](null),d=!1,s(h)}}}function ds(t){let e,n,r=!t[6]&&ls(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[6]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),64&n[0]&&Wt(r,1)):(r=ls(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function hs(t,e,r){let o,i,a,s,l,c,u,d,f,g,m,v,y,$,b,_,w,x,k,E,C,A,j,V,D,F,P,S,I,N,O=n,M=n,T=n,z=n,R=n,B=n,L=n,U=n,H=n,W=n,q=n;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>q()));let{componentContext:J}=e,{layoutParams:G}=e;const K=xt(fe),Y=K.direction;let X,Z;p(t,Y,(t=>r(45,P=t)));let Q,tt,et=!1,nt="",rt=null,ot="",it="rgba(0,0,0,.45)",at=12,st="",lt="",ct="#000",ut="";return _t((()=>{X&&(K.unregisterFocusable(X),r(25,X=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,J=t.componentContext),"layoutParams"in t&&r(1,G=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&J.json&&(r(26,rt=null),r(28,it="rgba(0,0,0,.45)"),r(29,at=12),r(30,Q=void 0),r(31,st=""),r(32,tt=void 0),r(33,lt=""),r(34,ct="#000"),r(7,ut="")),1&t.$$.dirty[0]&&r(35,o=J.json.value_variable),1&t.$$.dirty[0]&&r(36,i=J.json.options),32&t.$$.dirty[1]&&r(4,a=Array.isArray(i)&&i.filter((t=>"string"==typeof t.value))||[]),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(r(22,s=o&&J.getVariable(o,"string")||va("temp","string","")),W(),W=h(s,(t=>r(5,I=t)))),1&t.$$.dirty[0]&&(r(21,l=J.getDerivedFromVars(J.json.paddings)),H(),H=h(l,(t=>r(46,S=t)))),1&t.$$.dirty[0]&&(r(20,c=J.getDerivedFromVars(J.json.hint_text)),q(),q=h(c,(t=>r(23,N=t)))),1&t.$$.dirty[0]&&(r(19,u=J.getDerivedFromVars(J.json.hint_color)),U(),U=h(u,(t=>r(44,F=t)))),1&t.$$.dirty[0]&&(r(18,d=J.getDerivedFromVars(J.json.font_size)),L(),L=h(d,(t=>r(43,D=t)))),1&t.$$.dirty[0]&&(r(17,f=J.getDerivedFromVars(J.json.font_weight)),B(),B=h(f,(t=>r(42,V=t)))),1&t.$$.dirty[0]&&(r(16,g=J.getDerivedFromVars(J.json.font_family)),R(),R=h(g,(t=>r(41,j=t)))),1&t.$$.dirty[0]&&(r(15,m=J.getDerivedFromVars(J.json.line_height)),z(),z=h(m,(t=>r(40,A=t)))),1&t.$$.dirty[0]&&(r(14,v=J.getDerivedFromVars(J.json.letter_spacing)),T(),T=h(v,(t=>r(39,C=t)))),1&t.$$.dirty[0]&&(r(13,y=J.getDerivedFromVars(J.json.text_color)),M(),M=h(y,(t=>r(38,E=t)))),1&t.$$.dirty[0]&&(r(12,$=J.getDerivedFromVars(J.json.accessibility)),O(),O=h($,(t=>r(37,k=t)))),17&t.$$.dirty[0]&&(Array.isArray(a)&&a.length||J.logError(ge(new Error('Empty selection "items" in "select"')))),1&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?r(6,et=!1):(r(6,et=!0),J.logError(ge(new Error('Missing "value_variable" in "select"'))))),49&t.$$.dirty[0]){const t=a.find((t=>t.value===I));t?r(3,nt=("string"==typeof t.text?t.text:t.value)||""):(r(3,nt=""),I&&J.logError(ge(new Error('Value from the variable was not found in the selection items for "select"'))))}if(536870912&t.$$.dirty[0]|4096&t.$$.dirty[1]&&r(29,at=Sn(D,at)),603979776&t.$$.dirty[0]|49152&t.$$.dirty[1]&&(r(26,rt=Ke(S||void 0,rt)),r(27,ot=rt?Te({top:(Number(rt.top)||0)/at*10,right:(Number("ltr"===P?rt.end:rt.start)||Number(rt.right)||0)/at*10,bottom:(Number(rt.bottom)||0)/at*10,left:(Number("ltr"===P?rt.start:rt.end)||Number(rt.left)||0)/at*10},P):"")),268435456&t.$$.dirty[0]|8192&t.$$.dirty[1]&&r(28,it=we(F,1,it)),1073741824&t.$$.dirty[0]|3072&t.$$.dirty[1]&&(r(30,Q=Nn(V,Q)),r(31,st=j&&"string"==typeof j?K.typefaceProvider(j,{fontWeight:Q||400}):"")),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=A;un(t)&&r(32,tt=t/at)}536870912&t.$$.dirty[0]|256&t.$$.dirty[1]&&ze(C)&&r(33,lt=$e(C/at*10)),136&t.$$.dirty[1]&&r(34,ct=we(E,1,ct)),1&t.$$.dirty[0]|64&t.$$.dirty[1]&&((null==k?void 0:k.description)?r(7,ut=k.description):J.logError(ge(new Error('Missing accessibility "description" for select'),{level:"warn"}))),8&t.$$.dirty[0]&&r(11,b={hint:!nt}),1342177280&t.$$.dirty[0]|9&t.$$.dirty[1]&&r(10,_={"--divkit-input-hint-color":it,"font-weight":Q,"font-family":st,color:ct}),671088640&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(9,w={padding:ot,"font-size":$e(at),"line-height":tt,"letter-spacing":lt}),536870912&t.$$.dirty[0]|6&t.$$.dirty[1]&&r(8,x={"font-size":$e(at),"line-height":tt,"letter-spacing":lt}),33554437&t.$$.dirty[0]&&J.json&&Z&&(X&&(K.unregisterFocusable(X),r(25,X=void 0)),J.json.id&&!J.fakeElement&&(r(25,X=J.json.id),K.registerFocusable(X,{focus(){Z&&Z.focus()}})))},[J,G,Z,nt,a,I,et,ut,x,w,_,b,$,y,v,m,g,f,d,u,c,l,s,N,Y,X,rt,ot,it,at,Q,st,tt,lt,ct,o,i,k,E,C,A,j,V,D,F,P,S,function(t){Ct[t?"unshift":"push"]((()=>{Z=t,r(2,Z)}))},function(){I=function(t){const e=t.querySelector(":checked");return e&&e.__value}(this),s.set(I),r(4,a),r(36,i),r(0,J)}]}const ps={video__video:"divkit-c11f9","video__aspect-wrapper":"divkit-cfe32",video_aspect:"divkit-a4f5c"};function fs(t,e,n){const r=t.slice();return r[44]=e[n],r}function gs(t,e,n){const r=t.slice();return r[44]=e[n],r}function ms(t){let e,n;return e=new Fn({props:{cls:Oe("video",ps,t[11]),customActions:"video",componentContext:t[0],layoutParams:t[1],$$slots:{default:[xs]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Oe("video",ps,t[11])),1&n[0]&&(r.componentContext=t[0]),2&n[0]&&(r.layoutParams=t[1]),4088&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function vs(t){let e,n,r,o,i,a=Kt(t[4]),l=[];for(let e=0;e<a.length;e+=1)l[e]=bs(fs(t,a,e));return{c(){e=R("video");for(let t=0;t<l.length;t+=1)l[t].c();this.h()},l(t){e=et(t,"VIDEO",{class:!0,style:!0,poster:!0});var n=X(e);for(let t=0;t<l.length;t+=1)l[t].l(n);n.forEach(T),this.h()},h(){q(e,"class",n=ps.video__video),q(e,"style",r=ye(t[10])),e.playsInline=!0,e.loop=t[5],e.autoplay=t[6],e.muted=t[7],q(e,"poster",t[8])},m(n,r){M(n,e,r);for(let t=0;t<l.length;t+=1)l[t]&&l[t].m(e,null);t[38](e),o||(i=[W(e,"timeupdate",t[19]),W(e,"ended",t[20]),W(e,"playing",t[21]),W(e,"pause",t[22]),W(e,"waiting",t[23]),W(e,"error",t[24])],o=!0)},p(t,n){if(16777232&n[0]){let r;for(a=Kt(t[4]),r=0;r<a.length;r+=1){const o=fs(t,a,r);l[r]?l[r].p(o,n):(l[r]=bs(o),l[r].c(),l[r].m(e,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=a.length}1024&n[0]&&r!==(r=ye(t[10]))&&q(e,"style",r),32&n[0]&&(e.loop=t[5]),64&n[0]&&(e.autoplay=t[6]),128&n[0]&&(e.muted=t[7]),256&n[0]&&q(e,"poster",t[8])},d(n){n&&T(e),z(l,n),t[38](null),o=!1,s(i)}}}function ys(t){let e,n,r,o,i,a,l,c="".concat(t[9],"%"),u=Kt(t[4]),d=[];for(let e=0;e<u.length;e+=1)d[e]=ws(gs(t,u,e));return{c(){e=R("div"),n=R("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=X(e);n=et(r,"VIDEO",{class:!0,style:!0,poster:!0});var o=X(n);for(let t=0;t<d.length;t+=1)d[t].l(o);o.forEach(T),r.forEach(T),this.h()},h(){q(n,"class",r=ps.video__video),q(n,"style",o=ye(t[10])),n.playsInline=!0,n.loop=t[5],n.autoplay=t[6],n.muted=t[7],q(n,"poster",t[8]),q(e,"class",i=ps["video__aspect-wrapper"]),lt(e,"padding-bottom",c)},m(r,o){M(r,e,o),N(e,n);for(let t=0;t<d.length;t+=1)d[t]&&d[t].m(n,null);t[37](n),a||(l=[W(n,"timeupdate",t[19]),W(n,"ended",t[20]),W(n,"playing",t[21]),W(n,"pause",t[22]),W(n,"waiting",t[23]),W(n,"error",t[24])],a=!0)},p(t,r){if(16777232&r[0]){let e;for(u=Kt(t[4]),e=0;e<u.length;e+=1){const o=gs(t,u,e);d[e]?d[e].p(o,r):(d[e]=ws(o),d[e].c(),d[e].m(n,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=u.length}1024&r[0]&&o!==(o=ye(t[10]))&&q(n,"style",o),32&r[0]&&(n.loop=t[5]),64&r[0]&&(n.autoplay=t[6]),128&r[0]&&(n.muted=t[7]),256&r[0]&&q(n,"poster",t[8]),512&r[0]&&c!==(c="".concat(t[9],"%"))&&lt(e,"padding-bottom",c)},d(n){n&&T(e),z(d,n),t[37](null),a=!1,s(l)}}}function $s(t){let e,n,r,o,i;return{c(){e=R("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[44].src)||q(e,"src",n),q(e,"type",r=t[44].type)},m(n,r){M(n,e,r),o||(i=W(e,"error",t[24]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[44].src)&&q(e,"src",n),16&o[0]&&r!==(r=t[44].type)&&q(e,"type",r)},d(t){t&&T(e),o=!1,i()}}}function bs(t){let e,n=t[44],r=$s(t);return{c(){r.c(),e=H()},l(t){r.l(t),e=H()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[44])?(r.d(1),r=$s(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&T(e),r.d(t)}}}function _s(t){let e,n,r,o,i;return{c(){e=R("source"),this.h()},l(t){e=et(t,"SOURCE",{src:!0,type:!0}),this.h()},h(){u(e.src,n=t[44].src)||q(e,"src",n),q(e,"type",r=t[44].type)},m(n,r){M(n,e,r),o||(i=W(e,"error",t[24]),o=!0)},p(t,o){16&o[0]&&!u(e.src,n=t[44].src)&&q(e,"src",n),16&o[0]&&r!==(r=t[44].type)&&q(e,"type",r)},d(t){t&&T(e),o=!1,i()}}}function ws(t){let e,n=t[44],r=_s(t);return{c(){r.c(),e=H()},l(t){r.l(t),e=H()},m(t,n){r.m(t,n),M(t,e,n)},p(t,o){16&o[0]&&d(n,n=t[44])?(r.d(1),r=_s(t),r.c(),r.m(e.parentNode,e)):r.p(t,o)},d(t){t&&T(e),r.d(t)}}}function xs(t){let e;function n(t,e){return t[11].aspect?ys:vs}let r=n(t),o=r(t);return{c(){o.c(),e=H()},l(t){o.l(t),e=H()},m(t,n){o.m(t,n),M(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){t&&T(e),o.d(t)}}}function ks(t){let e,n,r=!t[2]&&ms(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[2]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),4&n[0]&&Wt(r,1)):(r=ms(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function Es(t,e,r){let o,i,a,s,l,c,u,d,p,f,g,m,v,y,$,b,_,w,x=n,k=n,E=n,C=n,A=n,j=n,V=n;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V()));let{componentContext:D}=e,{layoutParams:F}=e;const P=xt(fe);let S,I,N,O,M=!1,T=!1,z=[],R=!1,B=!1,L=!1,U="fit",H="0";function W(t){T?T=!1:I&&r(3,I.currentTime=Number(t)/1e3,I)}function q(){null==I||I.pause()}function J(){const t=null==I?void 0:I.play();t&&t.catch((t=>{D.logError(ge(new Error("Video playing error"),{level:"error",additional:{originalText:String(t)}}))}))}return _t((()=>{S&&(P.unregisterInstance(S),r(25,S=void 0)),O&&(O(),r(27,O=void 0))})),t.$$set=t=>{"componentContext"in t&&r(0,D=t.componentContext),"layoutParams"in t&&r(1,F=t.layoutParams)},t.$$.update=()=>{var e,n;if(1&t.$$.dirty[0]&&D.json&&(r(5,R=!1),r(6,B=!1),r(7,L=!1),r(8,N=void 0),r(26,U="fit")),1&t.$$.dirty[0]&&r(29,o=D.json.elapsed_time_variable),536870913&t.$$.dirty[0]&&r(28,i=o&&D.getVariable(o,"integer")||va("temp","integer",0)),402653184&t.$$.dirty[0]&&i&&(O&&O(),r(27,O=i.subscribe(W))),1&t.$$.dirty[0]&&(r(18,a=D.getDerivedFromVars(D.json.video_sources)),V(),V=h(a,(t=>r(36,w=t)))),1&t.$$.dirty[0]&&(r(17,s=D.getDerivedFromVars(D.json.repeatable)),j(),j=h(s,(t=>r(35,_=t)))),1&t.$$.dirty[0]&&(r(16,l=D.getDerivedFromVars(D.json.autostart)),x(),x=h(l,(t=>r(30,m=t)))),1&t.$$.dirty[0]&&(r(15,c=D.getDerivedFromVars(D.json.muted)),A(),A=h(c,(t=>r(34,b=t)))),1&t.$$.dirty[0]&&(r(14,u=D.getDerivedFromVars(D.json.preview)),C(),C=h(u,(t=>r(33,$=t)))),1&t.$$.dirty[0]&&(r(13,d=D.getDerivedFromVars(D.json.scale)),E(),E=h(d,(t=>r(32,y=t)))),1&t.$$.dirty[0]&&(r(12,p=D.getDerivedFromVars(D.json.aspect)),k(),k=h(p,(t=>r(31,v=t)))),17&t.$$.dirty[0]|32&t.$$.dirty[1]&&(r(4,(e=w,n=z,z=Array.isArray(e)&&e.length?e.filter((t=>"video_source"===(null==t?void 0:t.type)&&"string"==typeof t.url&&"string"==typeof t.mime_type)).map((t=>{const e={src:t.url};return t.mime_type&&(e.type=t.mime_type),e})):n)),z.length?r(2,M=!1):(r(2,M=!0),D.logError(ge(new Error('Missing "video_sources" in "video"'))))),32&t.$$.dirty[0]|16&t.$$.dirty[1]&&r(5,R=Un(_,R)),1073741888&t.$$.dirty[0]&&r(6,B=Un(m,B)),128&t.$$.dirty[0]|8&t.$$.dirty[1]&&r(7,L=Un(b,L)),256&t.$$.dirty[0]|4&t.$$.dirty[1]&&r(8,N="string"==typeof $?Rr($):N),67108864&t.$$.dirty[0]|2&t.$$.dirty[1]&&r(26,U=function(t){return"fill"===t?"cover":"no_scale"===t?"none":"contain"}(y)||U),1&t.$$.dirty[1]){const t=null==v?void 0:v.ratio;t&&un(t)?r(9,H=(100/Number(t)).toFixed(2)):r(9,H="0")}33554437&t.$$.dirty[0]&&D.json&&(S&&(P.unregisterInstance(S),r(25,S=void 0)),!D.json.id||M||D.fakeElement||(r(25,S=D.json.id),P.registerInstance(S,{pause:q,start:J}))),1073741833&t.$$.dirty[0]&&D.json&&m&&I&&J(),512&t.$$.dirty[0]&&r(11,f={aspect:"0"!==H}),67108864&t.$$.dirty[0]&&r(10,g={"object-fit":U})},[D,F,M,I,z,R,B,L,N,H,g,f,p,d,u,c,l,s,a,function(){I&&(T=!0,i.setValue(Math.floor(1e3*I.currentTime)))},function(){const t=D.getJsonWithVars(D.json.end_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.resume_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.pause_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.buffering_actions);D.execAnyActions(t)},function(){const t=D.getJsonWithVars(D.json.fatal_actions);D.execAnyActions(t)},S,U,O,i,o,m,v,y,$,b,_,w,function(t){Ct[t?"unshift":"push"]((()=>{I=t,r(3,I)}))},function(t){Ct[t?"unshift":"push"]((()=>{I=t,r(3,I)}))}]}function Cs(t,e,n){const r=t.slice();return r[12]=e[n],r}function As(t){let e,n;return e=new Fn({props:{componentContext:t[0],layoutParams:t[1],$$slots:{default:[Ss]},$$scope:{ctx:t}}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.componentContext=t[0]),2&n&&(r.layoutParams=t[1]),33277&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function js(t){let e,n,r=[t[7]],i={};for(let t=0;t<r.length;t+=1)i=o(i,r[t]);return{c(){e=R("template"),n=new dt(!1),this.h()},l(t){e=et(t,"TEMPLATE",{});var r=X(e.content);n=function(t,e){const n=it(t,"HTML_TAG_START",0),r=it(t,"HTML_TAG_END",n+1);if(-1===n||-1===r)return new dt(false);Z(t);const o=t.splice(n,r-n+1);T(o[0]),T(o[o.length-1]);const i=o.slice(1,o.length-1);for(const e of i)e.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new dt(false,i)}(r),r.forEach(T),this.h()},h(){n.a=null,G(e,i)},m(r,o){M(r,e,o),n.m(t[6],e.content)},p(t,o){64&o&&n.p(t[6]),G(e,i=Zt(r,[128&o&&t[7]]))},d(t){t&&T(e)}}}function Vs(t){let e,r,o=t[4],i=Fs(t);return{c(){i.c(),e=H()},l(t){i.l(t),e=H()},m(t,n){i.m(t,n),M(t,e,n),r=!0},p(t,r){16&r&&d(o,o=t[4])?(Ut(),qt(i,1,1,n),Ht(),i=Fs(t),i.c(),Wt(i,1),i.m(e.parentNode,e)):i.p(t,r)},i(t){r||(Wt(i),r=!0)},o(t){qt(i),r=!1},d(t){t&&T(e),i.d(t)}}}function Ds(t){let e,n;return e=new Rs({props:{componentContext:t[12]}}),{c(){re(e.$$.fragment)},l(t){oe(e.$$.fragment,t)},m(t,r){ie(e,t,r),n=!0},p(t,n){const r={};256&n&&(r.componentContext=t[12]),e.$set(r)},i(t){n||(Wt(e.$$.fragment,t),n=!0)},o(t){qt(e.$$.fragment,t),n=!1},d(t){ae(e,t)}}}function Fs(t){let e,n,r=Kt(t[8]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ds(Cs(t,r,e));const i=t=>qt(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=H()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=H()},m(t,r){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,r);M(t,e,r),n=!0},p(t,n){if(256&n){let a;for(r=Kt(t[8]),a=0;a<r.length;a+=1){const i=Cs(t,r,a);o[a]?(o[a].p(i,n),Wt(o[a],1)):(o[a]=Ds(i),o[a].c(),Wt(o[a],1),o[a].m(e.parentNode,e))}for(Ut(),a=r.length;a<o.length;a+=1)i(a);Ht()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Wt(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)qt(o[t]);n=!1},d(t){t&&T(e),z(o,t)}}}function Ps(t){let e,n,r,i=t[6]&&js(t),a=!t[3]&&t[4]&&Vs(t),s=[t[0].json.custom_props||{}],l={};for(let t=0;t<s.length;t+=1)l=o(l,s[t]);return{c(){e=R(t[2].element),i&&i.c(),n=U(),a&&a.c(),this.h()},l(r){e=et(r,(t[2].element||"null").toUpperCase(),{});var o=X(e);i&&i.l(o),n=ot(o),a&&a.l(o),o.forEach(T),this.h()},h(){Y(t[2].element)(e,l)},m(o,s){M(o,e,s),i&&i.m(e,null),N(e,n),a&&a.m(e,null),t[10](e),r=!0},p(t,r){t[6]?i?i.p(t,r):(i=js(t),i.c(),i.m(e,n)):i&&(i.d(1),i=null),!t[3]&&t[4]?a?(a.p(t,r),24&r&&Wt(a,1)):(a=Vs(t),a.c(),Wt(a,1),a.m(e,null)):a&&(Ut(),qt(a,1,1,(()=>{a=null})),Ht()),Y(t[2].element)(e,l=Zt(s,[1&r&&(t[0].json.custom_props||{})]))},i(t){r||(Wt(a),r=!0)},o(t){qt(a),r=!1},d(n){n&&T(e),i&&i.d(),a&&a.d(),t[10](null)}}}function Ss(t){let e,r,o=t[2].element,i=t[2].element&&Ps(t);return{c(){i&&i.c(),e=H()},l(t){i&&i.l(t),e=H()},m(t,n){i&&i.m(t,n),M(t,e,n)},p(t,n){t[2].element?o?d(o,t[2].element)?(i.d(1),i=Ps(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):i.p(t,n):(i=Ps(t),o=t[2].element,i.c(),i.m(e.parentNode,e)):o&&(i.d(1),i=null,o=t[2].element)},i:n,o(t){qt(i,t),r=!1},d(t){t&&T(e),i&&i.d(t)}}}function Is(t){let e,n,r=t[2]&&As(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Wt(r,1)):(r=As(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function Ns(t,e,n){let r,o;var i;let{componentContext:a}=e,{layoutParams:s}=e;const l=xt(fe);let c,u=null,d="",h={},p=!1;return bt((()=>{if(c&&"divKitApiCallback"in c&&"function"==typeof c.divKitApiCallback){const t=l.getExtensionContext();c.divKitApiCallback(t)}})),t.$$set=t=>{"componentContext"in t&&n(0,a=t.componentContext),"layoutParams"in t&&n(1,s=t.layoutParams)},t.$$.update=()=>{if(517&t.$$.dirty)if("string"==typeof a.json.custom_type&&a.json.custom_type&&(null===n(9,i=l.customComponents)||void 0===i?void 0:i.has(a.json.custom_type))){if(n(2,u=l.customComponents.get(a.json.custom_type)),"function"==typeof u.template){const t=l.getExtensionContext(),e=new Map;for(const[n,r]of t.variables)e.set(n,r.getValue());n(6,d=u.template({props:a.json.custom_props,variables:e}))}else u.template&&"string"==typeof u.template?n(6,d=u.template):n(6,d="");n(7,h={shadowrootmode:u.shadowRootMode||"open"})}else n(2,u=null),n(6,d=";"),a.logError(ge(new Error('Unknown or incorrect "custom_type" prop for div "custom"')));1&t.$$.dirty&&n(4,r=a.json.items),17&t.$$.dirty&&(void 0===r||Array.isArray(r)?n(3,p=!1):(n(3,p=!0),a.logError(ge(new Error('Incorrect "items" prop for div "custom"'))))),25&t.$$.dirty&&n(8,o=(!p&&r||[]).map(((t,e)=>a.produceChildContext(t,{path:e}))))},[a,s,u,p,r,c,d,h,o,i,function(t){Ct[t?"unshift":"push"]((()=>{c=t,n(5,c)}))}]}const Os={};function Ms(t){let e,n,r;var o=t[2];function i(t,e){return{props:{componentContext:t[0],layoutParams:t[1]}}}return o&&(e=ht(o,i(t))),{c(){e&&re(e.$$.fragment),n=H()},l(t){e&&oe(e.$$.fragment,t),n=H()},m(t,o){e&&ie(e,t,o),M(t,n,o),r=!0},p(t,r){if(4&r&&o!==(o=t[2])){if(e){Ut();const t=e;qt(t.$$.fragment,1,0,(()=>{ae(t,1)})),Ht()}o?(e=ht(o,i(t)),re(e.$$.fragment),Wt(e.$$.fragment,1),ie(e,n.parentNode,n)):e=null}else if(o){const n={};1&r&&(n.componentContext=t[0]),2&r&&(n.layoutParams=t[1]),e.$set(n)}},i(t){r||(e&&Wt(e.$$.fragment,t),r=!0)},o(t){e&&qt(e.$$.fragment,t),r=!1},d(t){t&&T(n),e&&ae(e,t)}}}function Ts(t){let e,n,r=t[2]&&Ms(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){let[o]=n;t[2]?r?(r.p(t,o),4&o&&Wt(r,1)):(r=Ms(t),r.c(),Wt(r,1),r.m(e.parentNode,e)):r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht())},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}function zs(t,e,n){let{componentContext:r}=e,{layoutParams:o}=e;const i=xt(fe);let a;return t.$$set=t=>{"componentContext"in t&&n(0,r=t.componentContext),"layoutParams"in t&&n(1,o=t.layoutParams)},t.$$.update=()=>{if(5&t.$$.dirty){const t=r.json;if(n(2,a=(null==t?void 0:t.type)&&Os[t.type]||void 0),!a){let e;e=(null==t?void 0:t.type)&&i.hasTemplate(t.type)?"Recursive template":"Unknown component",r.logError(ge(new Error(e),{additional:{component:(null==t?void 0:t.type)||"<missing>"}}))}}},[r,o,a]}Os.text=class extends ce{constructor(t){super(),se(this,t,rr,nr,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Os.container=class extends ce{constructor(t){super(),se(this,t,Pr,Ar,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Os.separator=class extends ce{constructor(t){super(),se(this,t,Tr,Mr,d,{componentContext:0,layoutParams:1})}},Os.image=Yr,Os.gif=Yr,Os.grid=class extends ce{constructor(t){super(),se(this,t,so,io,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Os.gallery=class extends ce{constructor(t){super(),se(this,t,wo,_o,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Os.tabs=class extends ce{constructor(t){super(),se(this,t,zo,To,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1,-1])}},Os.state=class extends ce{constructor(t){super(),se(this,t,Di,ji,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Os.pager=class extends ce{constructor(t){super(),se(this,t,Bi,zi,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Os.indicator=class extends ce{constructor(t){super(),se(this,t,Ki,Ji,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Os.slider=class extends ce{constructor(t){super(),se(this,t,Ma,Pa,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Os.input=class extends ce{constructor(t){super(),se(this,t,is,es,d,{componentContext:0,layoutParams:1},null,[-1,-1,-1])}},Os.select=class extends ce{constructor(t){super(),se(this,t,hs,ds,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Os.video=class extends ce{constructor(t){super(),se(this,t,Es,ks,d,{componentContext:0,layoutParams:1},null,[-1,-1])}},Os.custom=class extends ce{constructor(t){super(),se(this,t,Ns,Is,d,{componentContext:0,layoutParams:1})}};const Rs=class extends ce{constructor(t){super(),se(this,t,zs,Ts,d,{componentContext:0,layoutParams:1})}},Bs={"root-svg-filters":"divkit-dc22b"};function Ls(t,e,n){const r=t.slice();r[1]=e[n];const o=r[1].split(":");return r[2]=o[0],r[3]=o[1],r}function Us(t){let e,n,r,o=Kt([...Object.keys(t[0])]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Js(Ls(t,o,e));return{c(){e=B("svg"),n=B("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=nt(t,"svg",{class:!0,"aria-hidden":!0});var r=X(e);n=nt(r,"defs",{});var o=X(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(T),r.forEach(T),this.h()},h(){q(e,"class",r=Bs["root-svg-filters"]),q(e,"aria-hidden","true")},m(t,r){M(t,e,r),N(e,n);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=Kt([...Object.keys(t[0])]),r=0;r<o.length;r+=1){const a=Ls(t,o,r);i[r]?i[r].p(a,e):(i[r]=Js(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&T(e),z(i,t)}}}function Hs(t){let e,n;return{c(){e=B("feBlend"),this.h()},l(t){e=nt(t,"feBlend",{in2:!0,mode:!0}),X(e).forEach(T),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"mode",n=t[3])},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&q(e,"mode",n)},d(t){t&&T(e)}}}function Ws(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}),X(e).forEach(T),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"operator","arithmetic"),q(e,"k1","1"),q(e,"k2","0"),q(e,"k3","0"),q(e,"k4","0")},m(t,n){M(t,e,n)},p:n,d(t){t&&T(e)}}}function qs(t){let e,n;return{c(){e=B("feComposite"),this.h()},l(t){e=nt(t,"feComposite",{in2:!0,operator:!0}),X(e).forEach(T),this.h()},h(){q(e,"in2","SourceGraphic"),q(e,"operator",n=t[3].split("_")[1])},m(t,n){M(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&q(e,"operator",n)},d(t){t&&T(e)}}}function Js(t){let e,n,r,o;function i(t,e){return"source_in"===t[3]||"source_atop"===t[3]?qs:"multiply"===t[3]?Ws:Hs}let a=i(t),s=a(t);return{c(){e=B("filter"),n=B("feFlood"),s.c(),this.h()},l(t){e=nt(t,"filter",{id:!0});var r=X(e);n=nt(r,"feFlood",{"flood-color":!0}),X(n).forEach(T),s.l(r),r.forEach(T),this.h()},h(){q(n,"flood-color",r=t[2]),q(e,"id",o=t[0][t[1]])},m(t,r){M(t,e,r),N(e,n),s.m(e,null)},p(t,l){1&l&&r!==(r=t[2])&&q(n,"flood-color",r),a===(a=i(t))&&s?s.p(t,l):(s.d(1),s=a(t),s&&(s.c(),s.m(e,null))),1&l&&o!==(o=t[0][t[1]])&&q(e,"id",o)},d(t){t&&T(e),s.d()}}}function Gs(t){let e,r=Object.keys(t[0]).length,o=r&&Us(t);return{c(){o&&o.c(),e=H()},l(t){o&&o.l(t),e=H()},m(t,n){o&&o.m(t,n),M(t,e,n)},p(t,n){let[i]=n;1&i&&(r=Object.keys(t[0]).length),r?o?o.p(t,i):(o=Us(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:n,o:n,d(t){t&&T(e),o&&o.d(t)}}}function Ks(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ys=class extends ce{constructor(t){super(),se(this,t,Ks,Gs,d,{svgFiltersMap:0})}};function Xs(t,e,n,r){const o=n[t.type];if(!o)return r(ge(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const s=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),o=r.filter((t=>"$"!==t.charAt(0))),i=r.filter((t=>"$"===t.charAt(0)));return o.forEach((r=>{const o=n[r];"object"==typeof o&&null!==o?(e[r]=Array.isArray(o)?[]:{},t(e[r],o)):e[r]=o})),i.forEach((t=>{const r=n[t],o=a[r];if(void 0!==o){const n=t.substring(1);e[n]=o}})),e}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(s[i]=t[i]);return{json:s,templateContext:a}}function Zs(){}function Qs(t){return{subscribe:e=>(e(t),Zs)}}function tl(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function el(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function nl(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 rl(t){try{return ra(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function ol(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function il(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,il.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function al(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function sl(t,e){var n,r={},o=(e=void 0!==e?e:{}).grammarSource,i={start:De,JsonStringContents:function(){var t,e,n;for(t=ve,e=[],n=Fe();n!==r;)e.push(n),n=Fe();return ye=t,e=St(e)}},a=De,s="@{",l="}",c="@{}",u="\\",d="?",h=":",p="!:",f="||",g="&&",m="==",v="!=",y=">=",$=">",b="<=",_="<",w="+",x="-",k="/",E="*",C="%",A="!",j="(",V=")",D=",",F="'",P=".",S="e",I="E",N="true",O="false",M=/^[^}]/,T=/^[^'}]/,z=/^[0-9]/,R=/^[a-zA-Z_0-9.]/,B=/^[a-zA-Z_]/,L=/^[ \t\r\n]/,U=ke("@{",!1),H=ke("}",!1),W=ke("@{}",!1),q=ke("\\",!1),J={type:"any"},G=Ee(["}"],!0,!1),K=ke("?",!1),Y=ke(":",!1),X=ke("!:",!1),Z=ke("||",!1),Q=ke("&&",!1),tt=ke("==",!1),et=ke("!=",!1),nt=ke(">=",!1),rt=ke(">",!1),ot=ke("<=",!1),it=ke("<",!1),at=ke("+",!1),st=ke("-",!1),lt=ke("/",!1),ct=ke("*",!1),ut=ke("%",!1),dt=ke("!",!1),ht=ke("(",!1),pt=ke(")",!1),ft=ke(",",!1),gt=Ce("string"),mt=ke("'",!1),vt=Ee(["'","}"],!0,!1),yt=Ce("integer"),$t=Ee([["0","9"]],!1,!1),bt=Ce("number"),_t=ke(".",!1),wt=ke("e",!1),xt=ke("E",!1),kt=Ce("boolean"),Et=ke("true",!1),Ct=ke("false",!1),At=Ee([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),jt=Ce("identifier"),Vt=Ee([["a","z"],["A","Z"],"_"],!1,!1),Dt=Ce("whitespace"),Ft=Ee([" ","\t","\r","\n"],!1,!1),Pt=function(t){return t},St=function(t){return nl(t)},It=function(t){return t},Nt=function(){return""},Ot=function(){return xe()},Mt=function(){throw new Error("Error tokenizing '"+t+"'.")},Tt=function(){throw new Error("Error tokenizing '"+t+"'.")},zt=function(t){return t},Rt=function(t){return ol(t)},Bt=function(){throw new Error("Error tokenizing '"+t+"'.")},Lt=function(t,e,n){return{type:"ConditionalExpression",test:t,consequent:e,alternate:n}},Ut=function(t,e){return{type:"TryExpression",test:t,alternate:e}},Ht=function(t,e){return el(t,e)},Wt=function(t,e){return el(t,e)},qt=function(t,e){return tl(t,e)},Jt=function(t,e){return tl(t,e)},Gt=function(t,e){return tl(t,e)},Kt=function(t,e){return tl(t,e)},Yt=function(t,e){return{type:"UnaryExpression",operator:t,argument:e}},Xt=function(t,e){return{type:"CallExpression",callee:t,arguments:e}},Zt=function(t){return{type:"Variable",id:t}},Qt=function(t,e){return[t,...e]},te=function(t){return t},ee=function(t){return t},ne=function(t){return nl(t)},re=function(t){return t},oe=function(){return""},ie=function(){return xe()},ae=function(){throw new Error("Error tokenizing '"+t+"'.")},se=function(){throw new Error("Error tokenizing '"+t+"'.")},le=function(t){return t},ce=function(t){return ol(t)},ue=function(){throw new Error("Error tokenizing '"+t+"'.")},de=function(){return{type:"IntegerLiteral",value:rl(xe())}},he=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},pe=function(){return{type:"NumberLiteral",value:parseFloat(xe())}},fe=function(){return{type:"BooleanLiteral",value:!0}},ge=function(){return{type:"BooleanLiteral",value:!1}},me=function(){return{type:"Identifier",name:xe()}},ve=0,ye=0,$e=[{line:1,column:1}],be=0,_e=[],we=0;if("startRule"in e){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=i[e.startRule]}function xe(){return t.substring(ye,ve)}function ke(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ee(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ce(t){return{type:"other",description:t}}function Ae(e){var n,r=$e[e];if(r)return r;for(n=e-1;!$e[n];)n--;for(r={line:(r=$e[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return $e[e]=r,r}function je(t,e,n){var r=Ae(t),i=Ae(e),a={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(a.start=o.offset(a.start),a.end=o.offset(a.end)),a}function Ve(t){ve<be||(ve>be&&(be=ve,_e=[]),_e.push(t))}function De(){var t,e;return t=ve,We(),(e=Pe())!==r?(We(),ye=t,t=Pt(e)):(ve=t,t=r),t}function Fe(){var e,n,o,i,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r?(o=We(),(i=Pe())!==r?(We(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&Ve(H)),a!==r?(ye=e,e=It(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&Ve(W)),n!==r&&(ye=e,n=Nt()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(o=u,ve++):(o=r,0===we&&Ve(q)),o===r&&(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U))),we--,o===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=Ot()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r){if(o=[],M.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(G)),i!==r)for(;i!==r;)o.push(i),M.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(G));else o=r;o!==r?(125===t.charCodeAt(ve)?(i=l,ve++):(i=r,0===we&&Ve(H)),i!==r?(ye=e,e=Mt()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r&&(ye=e,n=Tt()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)),o!==r?(ye=e,e=zt(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=Rt(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&Ve(q)),n!==r&&(ye=e,n=Bt()),e=n))))}return e}function Pe(){var e,n,o,i,a,s;return e=ve,(n=Se())!==r?(We(),63===t.charCodeAt(ve)?(o=d,ve++):(o=r,0===we&&Ve(K)),o!==r?(We(),(i=Pe())!==r?(We(),58===t.charCodeAt(ve)?(a=h,ve++):(a=r,0===we&&Ve(Y)),a!==r?(We(),(s=Pe())!==r?(ye=e,e=Lt(n,i,s)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Se()),e}function Se(){var e,n,o,i;return e=ve,(n=Ie())!==r?(We(),t.substr(ve,2)===p?(o=p,ve+=2):(o=r,0===we&&Ve(X)),o!==r?(We(),(i=Pe())!==r?(ye=e,e=Ut(n,i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=Ie()),e}function Ie(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Ne())!==r){for(o=[],i=ve,a=We(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&Ve(Z)),s!==r?(l=We(),(c=Ne())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=We(),t.substr(ve,2)===f?(s=f,ve+=2):(s=r,0===we&&Ve(Z)),s!==r?(l=We(),(c=Ne())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Ht(n,o)}else ve=e,e=r;return e}function Ne(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Oe())!==r){for(o=[],i=ve,a=We(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&Ve(Q)),s!==r?(l=We(),(c=Oe())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=We(),t.substr(ve,2)===g?(s=g,ve+=2):(s=r,0===we&&Ve(Q)),s!==r?(l=We(),(c=Oe())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Wt(n,o)}else ve=e,e=r;return e}function Oe(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Me())!==r){for(o=[],i=ve,a=We(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&Ve(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&Ve(et))),s!==r?(l=We(),(c=Me())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=We(),t.substr(ve,2)===m?(s=m,ve+=2):(s=r,0===we&&Ve(tt)),s===r&&(t.substr(ve,2)===v?(s=v,ve+=2):(s=r,0===we&&Ve(et))),s!==r?(l=We(),(c=Me())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=qt(n,o)}else ve=e,e=r;return e}function Me(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Te())!==r){for(o=[],i=ve,a=We(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&Ve(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&Ve(rt)),s===r&&(t.substr(ve,2)===b?(s=b,ve+=2):(s=r,0===we&&Ve(ot)),s===r&&(60===t.charCodeAt(ve)?(s=_,ve++):(s=r,0===we&&Ve(it))))),s!==r?(l=We(),(c=Te())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=We(),t.substr(ve,2)===y?(s=y,ve+=2):(s=r,0===we&&Ve(nt)),s===r&&(62===t.charCodeAt(ve)?(s=$,ve++):(s=r,0===we&&Ve(rt)),s===r&&(t.substr(ve,2)===b?(s=b,ve+=2):(s=r,0===we&&Ve(ot)),s===r&&(60===t.charCodeAt(ve)?(s=_,ve++):(s=r,0===we&&Ve(it))))),s!==r?(l=We(),(c=Te())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Jt(n,o)}else ve=e,e=r;return e}function Te(){var e,n,o,i,a,s,l,c;if(e=ve,(n=ze())!==r){for(o=[],i=ve,a=We(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&Ve(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&Ve(st))),s!==r?(l=We(),(c=ze())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=We(),43===t.charCodeAt(ve)?(s=w,ve++):(s=r,0===we&&Ve(at)),s===r&&(45===t.charCodeAt(ve)?(s=x,ve++):(s=r,0===we&&Ve(st))),s!==r?(l=We(),(c=ze())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Gt(n,o)}else ve=e,e=r;return e}function ze(){var e,n,o,i,a,s,l,c;if(e=ve,(n=Re())!==r){for(o=[],i=ve,a=We(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&Ve(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&Ve(ct)),s===r&&(37===t.charCodeAt(ve)?(s=C,ve++):(s=r,0===we&&Ve(ut)))),s!==r?(l=We(),(c=Re())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,a=We(),47===t.charCodeAt(ve)?(s=k,ve++):(s=r,0===we&&Ve(lt)),s===r&&(42===t.charCodeAt(ve)?(s=E,ve++):(s=r,0===we&&Ve(ct)),s===r&&(37===t.charCodeAt(ve)?(s=C,ve++):(s=r,0===we&&Ve(ut)))),s!==r?(l=We(),(c=Re())!==r?i=a=[a,s,l,c]:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Kt(n,o)}else ve=e,e=r;return e}function Re(){var e,n,o;return(e=Ue())===r&&(e=Le())===r&&(e=ve,33===t.charCodeAt(ve)?(n=A,ve++):(n=r,0===we&&Ve(dt)),n===r&&(43===t.charCodeAt(ve)?(n=w,ve++):(n=r,0===we&&Ve(at)),n===r&&(45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)))),n!==r?(We(),(o=Re())!==r?(ye=e,e=Yt(n,o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=function(){var e,n,o,i,a;return e=ve,(n=He())!==r?(We(),40===t.charCodeAt(ve)?(o=j,ve++):(o=r,0===we&&Ve(ht)),o!==r?(We(),i=function(){var e,n,o,i,a,s;if(e=ve,(n=Pe())!==r){for(o=[],i=ve,We(),44===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&Ve(ft)),a!==r?(We(),(s=Pe())!==r?i=s:(ve=i,i=r)):(ve=i,i=r);i!==r;)o.push(i),i=ve,We(),44===t.charCodeAt(ve)?(a=D,ve++):(a=r,0===we&&Ve(ft)),a!==r?(We(),(s=Pe())!==r?i=s:(ve=i,i=r)):(ve=i,i=r);ye=e,e=Qt(n,o)}else ve=e,e=r;return e===r&&(e=We()),e}(),i!==r?(We(),41===t.charCodeAt(ve)?(a=V,ve++):(a=r,0===we&&Ve(pt)),a!==r?(ye=e,e=Xt(n,i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,(n=He())!==r&&(ye=e,n=Zt(n)),(e=n)===r&&(e=function(){var e,n,o,i;return e=function(){var e,n,o,i;return we++,e=ve,39===t.charCodeAt(ve)?(n=F,ve++):(n=r,0===we&&Ve(mt)),n!==r?(o=function(){var t,e,n;for(t=ve,e=[],n=Be();n!==r;)e.push(n),n=Be();return ye=t,t=e=ne(e)}(),39===t.charCodeAt(ve)?(i=F,ve++):(i=r,0===we&&Ve(mt)),i!==r?(ye=e,e=ee(o)):(ve=e,e=r)):(ve=e,e=r),we--,e===r&&(n=r,0===we&&Ve(gt)),e}(),e===r&&(e=Ue())===r&&(e=Le())===r&&(e=function(){var e,n;return we++,e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&Ve(Et)),n!==r&&(ye=e,n=fe()),(e=n)===r&&(e=ve,t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&Ve(Ct)),n!==r&&(ye=e,n=ge()),e=n),we--,e===r&&(n=r,0===we&&Ve(kt)),e}(),e===r&&(e=ve,40===t.charCodeAt(ve)?(n=j,ve++):(n=r,0===we&&Ve(ht)),n!==r?(We(),(o=Pe())!==r?(We(),41===t.charCodeAt(ve)?(i=V,ve++):(i=r,0===we&&Ve(pt)),i!==r?(ye=e,e=te(o)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r))),e}())),e}())),e}function Be(){var e,n,o,i,a;if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r?(o=We(),(i=Pe())!==r?(We(),125===t.charCodeAt(ve)?(a=l,ve++):(a=r,0===we&&Ve(H)),a!==r?(ye=e,e=re(i)):(ve=e,e=r)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,t.substr(ve,3)===c?(n=c,ve+=3):(n=r,0===we&&Ve(W)),n!==r&&(ye=e,n=oe()),(e=n)===r&&(e=ve,n=ve,we++,92===t.charCodeAt(ve)?(o=u,ve++):(o=r,0===we&&Ve(q)),o===r&&(39===t.charCodeAt(ve)?(o=F,ve++):(o=r,0===we&&Ve(mt)),o===r&&(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)))),we--,o===r?n=void 0:(ve=n,n=r),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=ie()):(ve=e,e=r)):(ve=e,e=r),e===r))){if(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r){if(o=[],T.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(vt)),i!==r)for(;i!==r;)o.push(i),T.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(vt));else o=r;o!==r?(125===t.charCodeAt(ve)?(i=l,ve++):(i=r,0===we&&Ve(H)),i!==r?(ye=e,e=ae()):(ve=e,e=r)):(ve=e,e=r)}else ve=e,e=r;e===r&&(e=ve,t.substr(ve,2)===s?(n=s,ve+=2):(n=r,0===we&&Ve(U)),n!==r&&(ye=e,n=se()),(e=n)===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.substr(ve,2)===s?(o=s,ve+=2):(o=r,0===we&&Ve(U)),o!==r?(ye=e,e=le(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&Ve(q)),n!==r?(t.length>ve?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(J)),o!==r?(ye=e,e=ce(o)):(ve=e,e=r)):(ve=e,e=r),e===r&&(e=ve,92===t.charCodeAt(ve)?(n=u,ve++):(n=r,0===we&&Ve(q)),n!==r&&(ye=e,n=ue()),e=n))))}return e}function Le(){var e,n,o,i;if(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t)),i!==r)for(;i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));else o=r;return o!==r?(ye=e,e=de()):(ve=e,e=r),we--,e===r&&(n=r,0===we&&Ve(yt)),e}function Ue(){var e,n,o,i,a,s,l,c,u,d;for(we++,e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));if(46===t.charCodeAt(ve)?(i=P,ve++):(i=r,0===we&&Ve(_t)),i!==r){if(a=[],z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&Ve($t)),s!==r)for(;s!==r;)a.push(s),z.test(t.charAt(ve))?(s=t.charAt(ve),ve++):(s=r,0===we&&Ve($t));else a=r;if(a!==r){if(s=ve,101===t.charCodeAt(ve)?(l=S,ve++):(l=r,0===we&&Ve(wt)),l===r&&(69===t.charCodeAt(ve)?(l=I,ve++):(l=r,0===we&&Ve(xt))),l!==r){if(43===t.charCodeAt(ve)?(c=w,ve++):(c=r,0===we&&Ve(at)),c===r&&(45===t.charCodeAt(ve)?(c=x,ve++):(c=r,0===we&&Ve(st))),c===r&&(c=null),u=[],z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&Ve($t)),d!==r)for(;d!==r;)u.push(d),z.test(t.charAt(ve))?(d=t.charAt(ve),ve++):(d=r,0===we&&Ve($t));else u=r;u!==r?s=l=[l,c,u]:(ve=s,s=r)}else ve=s,s=r;s===r&&(s=null),ye=e,e=he()}else ve=e,e=r}else ve=e,e=r;if(e===r){if(e=ve,45===t.charCodeAt(ve)?(n=x,ve++):(n=r,0===we&&Ve(st)),n===r&&(n=null),o=[],z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t)),i!==r)for(;i!==r;)o.push(i),z.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve($t));else o=r;if(o!==r)if(101===t.charCodeAt(ve)?(i=S,ve++):(i=r,0===we&&Ve(wt)),i===r&&(69===t.charCodeAt(ve)?(i=I,ve++):(i=r,0===we&&Ve(xt))),i!==r){if(43===t.charCodeAt(ve)?(a=w,ve++):(a=r,0===we&&Ve(at)),a===r&&(45===t.charCodeAt(ve)?(a=x,ve++):(a=r,0===we&&Ve(st))),a===r&&(a=null),s=[],z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&Ve($t)),l!==r)for(;l!==r;)s.push(l),z.test(t.charAt(ve))?(l=t.charAt(ve),ve++):(l=r,0===we&&Ve($t));else s=r;s!==r?(ye=e,e=pe()):(ve=e,e=r)}else ve=e,e=r;else ve=e,e=r}return we--,e===r&&(n=r,0===we&&Ve(bt)),e}function He(){var e,n,o,i,a;if(we++,e=ve,n=ve,we++,o=function(){var e,n,o,i;return e=ve,t.substr(ve,4)===N?(n=N,ve+=4):(n=r,0===we&&Ve(Et)),n===r&&(t.substr(ve,5)===O?(n=O,ve+=5):(n=r,0===we&&Ve(Ct))),n!==r?(o=ve,we++,R.test(t.charAt(ve))?(i=t.charAt(ve),ve++):(i=r,0===we&&Ve(At)),we--,i===r?o=void 0:(ve=o,o=r),o!==r?e=n=[n,o]:(ve=e,e=r)):(ve=e,e=r),e}(),we--,o===r?n=void 0:(ve=n,n=r),n!==r)if(B.test(t.charAt(ve))?(o=t.charAt(ve),ve++):(o=r,0===we&&Ve(Vt)),o!==r){for(i=[],R.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&Ve(At));a!==r;)i.push(a),R.test(t.charAt(ve))?(a=t.charAt(ve),ve++):(a=r,0===we&&Ve(At));ye=e,e=me()}else ve=e,e=r;else ve=e,e=r;return we--,e===r&&(n=r,0===we&&Ve(jt)),e}function We(){var e,n;for(we++,e=[],L.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&Ve(Ft));n!==r;)e.push(n),L.test(t.charAt(ve))?(n=t.charAt(ve),ve++):(n=r,0===we&&Ve(Ft));return we--,n=r,0===we&&Ve(Dt),e}if((n=a())!==r&&ve===t.length)return n;throw n!==r&&ve<t.length&&Ve({type:"end"}),function(t,e,n){return new il(il.buildMessage(t,e),t,e,n)}(_e,be<t.length?t.charAt(be):null,be<t.length?je(be,be+1):je(be,be))}Qs(void 0),function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(il,Error),il.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+i.line+":"+i.column;if(r){var s=this.location.end,l=al("",i.line.toString().length," "),c=r[o.line-1],u=(o.line===s.line?s.column:c.length+1)-o.column||1;e+="\n --\x3e "+a+"\n"+l+" |\n"+i.line+" | "+c+"\n"+l+" | "+al("",o.column-1," ")+al("",u,"^")}else e+="\n at "+a}return e},il.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const ll=new Map,cl=new Map;function ul(t,e,n){const r={args:e,cb:n},o=ll.get(t)||[];ll.has(t)||ll.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");cl.set(i,r)}function dl(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.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 hl(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=>{hl(t,e)}));break;case"BinaryExpression":case"LogicalExpression":hl(t.left,e),hl(t.right,e);break;case"UnaryExpression":hl(t.argument,e);break;case"ConditionalExpression":hl(t.test,e),hl(t.consequent,e),hl(t.alternate,e);break;case"TryExpression":hl(t.test,e),hl(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{hl(t,e)}))}}function pl(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function fl(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function gl(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 fl(t.value);if("color"===t.type)return xl(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 ml(t){let e=gl(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")+"'"),e}function vl(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function yl(t,e){if(Qi)return ra(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function $l(t,e){if(e<na||e>ea)throw new Error("Integer overflow.");!Qi&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function bl(t){const e=[];return hl(t,{Variable(t){e.push(t.id.name)}}),e}function _l(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function wl(t){const e=xe(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function xl(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 kl(t){return xl(wl(t))}const El=Number.MAX_VALUE,Cl=Number.MIN_VALUE,Al="string",jl="integer",Vl="number",Dl="boolean",Fl="color",Pl="url",Sl="datetime",Il="dict",Nl="array";function Ol(t,e){return{type:Al,value:gl(e)}}function Ml(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:Vl,value:n}}function Tl(t,e,n,r){const o=t.variables.get(e.value);let i;return i=o&&o.getType()===r?o.getValue():n.value,"color"===r&&(i=kl(i)),{type:r,value:i}}function zl(t,e,n){return Tl(t,e,n,n.type)}function Rl(t,e,n){return Tl(t,e,n,"color")}function Bl(t,e,n){return Tl(t,e,n,"url")}const Ll=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:jl,value:ra(r)}},Ul=Ll("getUTCFullYear"),Hl=Ll("getUTCMonth"),Wl=Ll("getUTCDate"),ql=Ll("getUTCDay"),Jl=Ll("getUTCHours"),Gl=Ll("getUTCMinutes"),Kl=Ll("getUTCSeconds"),Yl=Ll("getUTCMilliseconds");function Xl(t,e,n,r){if(!r.value.length)return t.warnings.push(ge(new Error("String for padding is empty."),{level:"warn"})),"";let o="";const i=e.type===Al?e.value:gl(e);for(;o.length+i.length<n.value;)o+=r.value;return o.length>0&&o.length+i.length>n.value&&(o=o.substring(0,Number(n.value)-Number(i.length))),o}function Zl(t,e,n,r){const o=Xl(t,e,n,r);return{type:Al,value:o+gl(e)}}function Ql(t,e,n,r){const o=Xl(t,e,n,r);return{type:Al,value:gl(e)+o}}function tc(t){return(e,n)=>{const r=wl(n.value);return{type:Vl,value:r[t]/255}}}function ec(t){return(e,n,r)=>{const o=wl(n.value);return o[t]=255*r.value,{type:Fl,value:xl(o)}}}const nc=tc("a"),rc=tc("r"),oc=tc("g"),ic=tc("b"),ac=ec("a"),sc=ec("r"),lc=ec("g"),cc=ec("b");function uc(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let o=ra(e.value)/ra(n);return $l(t,o),"number"==typeof o&&(o=Math.floor(o)),r&&(o=ra(o)%ra(r)),{type:jl,value:o}}const dc=36e5;function hc(t,e){return function(n,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];let s=function(t,e){let n=t;for(let t=0;t<e.length;++t){if(!n)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));const r=n[e[t]];if(void 0===r)throw new Error('Missing property "'.concat(e[t],'" in the dict.'));n=r}return n}(r.value,i.map((t=>t.value))),l=typeof s;if("array"===t&&!Array.isArray(s)||"array"!==t&&l!==t||"object"===l&&null===s)throw"object"===l&&(l=Array.isArray(s)?"array":null===s?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(l,'".'));if("number"===t&&"integer"===e){if(s!==Math.round(s))throw new Error("Cannot convert value to integer.");$l(n,s),s=ra(s)}return"string"===t&&"color"===e&&(s=kl(s)),{type:e,value:s}}}function pc(t,e){return function(n,r,o){try{for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return t(n,o,...a)}catch(t){let n=r.value;return"color"===e&&(n=kl(n)),{type:e,value:n}}}}const fc=hc("string","string"),gc=hc("number","number"),mc=hc("number","integer"),vc=hc("boolean","boolean"),yc=hc("string","color"),$c=hc("string","url"),bc=hc("array","array"),_c=hc("object","dict"),wc=pc(fc,"string"),xc=pc(gc,"number"),kc=pc(mc,"integer"),Ec=pc(vc,"boolean"),Cc=pc(yc,"color"),Ac=pc($c,"url");function jc(t,e){return(n,r,o)=>{if(o.value<0||o.value>=r.value.length)throw new Error("Requested index (".concat(o.value,") out of bounds array size (").concat(r.value.length,")."));let i=r.value[Number(o.value)],a=typeof i;if("array"===t&&!Array.isArray(i)||"array"!==t&&a!==t||"object"===a&&null===i)throw"object"===a&&(a=Array.isArray(i)?"array":null===i?"null":"dict"),new Error('Incorrect value type: expected "'.concat(e,'", got "').concat(a,'".'));if("number"===t&&"integer"===e){if(i!==Math.round(i))throw new Error("Cannot convert value to integer.");$l(n,i),i=ra(i)}return"string"===t&&"color"===e&&(i=kl(i)),{type:e,value:i}}}function Vc(t,e){return(n,r,o,i)=>{try{return t(n,r,o)}catch(t){let n=i.value;return"color"===e&&(n=kl(n)),{type:e,value:n}}}}const Dc=jc("string","string"),Fc=jc("number","number"),Pc=jc("number","integer"),Sc=jc("boolean","boolean"),Ic=jc("string","color"),Nc=jc("string","url"),Oc=jc("array","array"),Mc=jc("object","dict"),Tc=Vc(Dc,"string"),zc=Vc(Fc,"number"),Rc=Vc(Pc,"integer"),Bc=Vc(Sc,"boolean"),Lc=Vc(Ic,"color"),Uc=Vc(Nc,"url");function Hc(t){return t.map(ml).join(", ")}ul("toString",[jl],Ol),ul("toString",[Vl],Ol),ul("toString",[Dl],Ol),ul("toString",[Fl],Ol),ul("toString",[Pl],Ol),ul("toNumber",[jl],Ml),ul("toNumber",[Al],Ml),ul("toInteger",[Vl],(function(t,e){if(e.value>ea||e.value<na)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:jl,value:ra(n)}})),ul("toInteger",[Al],(function(t,e){let n;try{n=ra(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>ea||n<na)throw new Error("Unable to convert value to Integer.");return{type:jl,value:n}})),ul("toInteger",[Dl],(function(t,e){return{type:jl,value:ra(e.value?1:0)}})),ul("toBoolean",[jl],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:Dl,value:n}})),ul("toBoolean",[Al],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:Dl,value:"true"===e.value?1:0}})),ul("toColor",[Al],(function(t,e){return{type:Fl,value:kl(e.value)}})),ul("toUrl",[Al],(function(t,e){return{type:Pl,value:e.value}})),ul("encodeUri",[Al],(function(t,e){try{return{type:Al,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),ul("decodeUri",[Al],(function(t,e){try{return{type:Al,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),ul("getIntegerValue",[Al,jl],zl),ul("getNumberValue",[Al,Vl],zl),ul("getBooleanValue",[Al,Dl],zl),ul("getStringValue",[Al,Al],zl),ul("getColorValue",[Al,Fl],Rl),ul("getColorValue",[Al,Al],Rl),ul("getUrlValue",[Al,Pl],Bl),ul("getUrlValue",[Al,Al],Bl),ul("parseUnixTime",[jl],(function(t,e){return{type:Sl,value:new Date(1e3*Number(e.value))}})),ul("nowLocal",[],(function(){return{type:Sl,value:new Date}})),ul("addMillis",[Sl,jl],(function(t,e,n){return{type:Sl,value:new Date(e.value.getTime()+Number(n.value))}})),ul("setYear",[Sl,jl],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:Sl,value:r}})),ul("setMonth",[Sl,jl],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMonth(r-1),{type:Sl,value:o}})),ul("setDay",[Sl,jl],(function(t,e,n){const r=new Date(e.value),o=Number(n.value);if(o<=0&&-1!==o||o>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(o," for date ").concat(gl(e),"."));return r.setUTCDate(-1===o?0:o),{type:Sl,value:r}})),ul("setHours",[Sl,jl],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCHours(r),{type:Sl,value:o}})),ul("setMinutes",[Sl,jl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMinutes(r),{type:Sl,value:o}})),ul("setSeconds",[Sl,jl],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCSeconds(r),{type:Sl,value:o}})),ul("setMillis",[Sl,jl],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const o=new Date(e.value);return o.setUTCMilliseconds(r),{type:Sl,value:o}})),ul("getYear",[Sl],Ul),ul("getMonth",[Sl],Hl),ul("getDay",[Sl],Wl),ul("getDayOfWeek",[Sl],ql),ul("getHours",[Sl],Jl),ul("getMinutes",[Sl],Gl),ul("getSeconds",[Sl],Kl),ul("getMillis",[Sl],Yl),ul("getIntervalSeconds",[jl],(function(t,e){return uc(t,e,1e3,60)})),ul("getIntervalTotalSeconds",[jl],(function(t,e){return uc(t,e,1e3)})),ul("getIntervalMinutes",[jl],(function(t,e){return uc(t,e,6e4,60)})),ul("getIntervalTotalMinutes",[jl],(function(t,e){return uc(t,e,6e4)})),ul("getIntervalHours",[jl],(function(t,e){return uc(t,e,dc,24)})),ul("getIntervalTotalHours",[jl],(function(t,e){return uc(t,e,dc)})),ul("getIntervalTotalDays",[jl],(function(t,e){return uc(t,e,864e5)})),ul("getIntervalTotalWeeks",[jl],(function(t,e){return uc(t,e,6048e5)})),ul("len",[Al],(function(t,e){return{type:jl,value:ra(e.value.length)}})),ul("contains",[Al,Al],(function(t,e,n){return{type:Dl,value:e.value.includes(n.value)?1:0}})),ul("substring",[Al,jl,jl],(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:Al,value:e.value.substring(Number(n.value),Number(r.value))}})),ul("replaceAll",[Al,Al,Al],(function(t,e,n,r){let o;return o=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:Al,value:o}})),ul("index",[Al,Al],(function(t,e,n){return{type:jl,value:ra(e.value.indexOf(n.value))}})),ul("lastIndex",[Al,Al],(function(t,e,n){return{type:jl,value:ra(e.value.lastIndexOf(n.value))}})),ul("trim",[Al],(function(t,e){return{type:Al,value:e.value.trim()}})),ul("trimLeft",[Al],(function(t,e){return{type:Al,value:e.value.replace(/^\s+/,"")}})),ul("trimRight",[Al],(function(t,e){return{type:Al,value:e.value.replace(/\s+$/,"")}})),ul("toUpperCase",[Al],(function(t,e){return{type:Al,value:e.value.toUpperCase()}})),ul("toLowerCase",[Al],(function(t,e){return{type:Al,value:e.value.toLowerCase()}})),ul("padStart",[Al,jl,Al],Zl),ul("padStart",[jl,jl,Al],Zl),ul("padEnd",[Al,jl,Al],Ql),ul("padEnd",[jl,jl,Al],Ql),ul("testRegex",[Al,Al],(function(t,e,n){let r;try{r=new RegExp(n.value)}catch(t){throw new Error("Invalid regular expression.")}return{type:Dl,value:r.test(e.value)?1:0}})),ul("div",[jl,jl],(function(t,e,n){if(n.value===oa)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=yl(0,r),$l(t,r),{type:jl,value:r}})),ul("div",[Vl,Vl],(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:Vl,value:r}})),ul("mod",[jl,jl],(function(t,e,n){if(n.value===oa)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=yl(0,r),$l(t,r),{type:jl,value:r}})),ul("mod",[Vl,Vl],(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:Vl,value:r}})),ul("mul",[{type:jl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:oa;for(let e=1;e<n.length;++e)o*=n[e].value,o=yl(0,o),$l(t,o);return{type:jl,value:o}})),ul("mul",[{type:Vl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o*=n[t].value;return{type:Vl,value:o}})),ul("sub",[{type:jl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:oa;for(let e=1;e<n.length;++e)o-=n[e].value,o=yl(0,o),$l(t,o);return{type:jl,value:o}})),ul("sub",[{type:Vl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let o=n.length?n[0].value:0;for(let t=1;t<n.length;++t)o-=n[t].value;return{type:Vl,value:o}})),ul("sum",[{type:jl,isVararg:!0}],(function(t){let e=oa;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let n=0;n<r.length;++n)e+=r[n].value,e=yl(0,e),$l(t,e);return{type:jl,value:e}})),ul("sum",[{type:Vl,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:Vl,value:e}})),ul("abs",[jl],(function(t,e){const n=ia(e.value);return $l(t,n),{type:e.type,value:n}})),ul("abs",[Vl],(function(t,e){const n=Math.abs(e.value);return{type:Vl,value:n}})),ul("max",[{type:jl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value>o&&(o=n[t].value);return{type:jl,value:o}})),ul("max",[{type:Vl,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:Vl,value:Math.max(...n.map((t=>t.value)))}})),ul("min",[{type:jl,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let o=n[0].value;for(let t=1;t<n.length;++t)n[t].value<o&&(o=n[t].value);return{type:jl,value:o}})),ul("min",[{type:Vl,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:Vl,value:Math.min(...n.map((t=>t.value)))}})),ul("maxNumber",[],(function(){return{type:Vl,value:El}})),ul("minNumber",[],(function(){return{type:Vl,value:Cl}})),ul("maxInteger",[],(function(t){return $l(t,ea),{type:jl,value:ea}})),ul("minInteger",[],(function(t){return $l(t,na),{type:jl,value:na}})),ul("round",[Vl],(function(t,e){const n=Math.sign(e.value);return{type:Vl,value:n*Math.round(Math.abs(e.value))}})),ul("floor",[Vl],(function(t,e){return{type:Vl,value:Math.floor(e.value)}})),ul("ceil",[Vl],(function(t,e){return{type:Vl,value:Math.ceil(e.value)}})),ul("signum",[jl],(function(t,e){return{type:jl,value:aa(e.value)}})),ul("signum",[Vl],(function(t,e){return{type:Vl,value:Math.sign(e.value)}})),ul("copySign",[jl,jl],(function(t,e,n){let r;if(n.value===oa)r=e.value;else if(e.value===oa)r=ra(0);else{const t=aa(n.value);r=ia(e.value)*t}return $l(t,r),{type:jl,value:r}})),ul("copySign",[Vl,Vl],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const o=Math.abs(e.value)*r;return{type:Vl,value:o}})),ul("getColorAlpha",[Al],nc),ul("getColorAlpha",[Fl],nc),ul("getColorRed",[Al],rc),ul("getColorRed",[Fl],rc),ul("getColorGreen",[Al],oc),ul("getColorGreen",[Fl],oc),ul("getColorBlue",[Al],ic),ul("getColorBlue",[Fl],ic),ul("setColorAlpha",[Al,Vl],ac),ul("setColorAlpha",[Fl,Vl],ac),ul("setColorRed",[Al,Vl],sc),ul("setColorRed",[Fl,Vl],sc),ul("setColorGreen",[Al,Vl],lc),ul("setColorGreen",[Fl,Vl],lc),ul("setColorBlue",[Al,Vl],cc),ul("setColorBlue",[Fl,Vl],cc),ul("rgb",[Vl,Vl,Vl],(function(t,e,n,r){const o={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:Fl,value:xl(o)}})),ul("argb",[Vl,Vl,Vl,Vl],(function(t,e,n,r,o){const i={a:255*e.value,r:255*n.value,g:255*r.value,b:255*o.value};return{type:Fl,value:xl(i)}})),ul("getDictString",[Il,{type:Al,isVararg:!0}],fc),ul("getStringFromDict",[Il,{type:Al,isVararg:!0}],fc),ul("getDictNumber",[Il,{type:Al,isVararg:!0}],gc),ul("getNumberFromDict",[Il,{type:Al,isVararg:!0}],gc),ul("getDictInteger",[Il,{type:Al,isVararg:!0}],mc),ul("getIntegerFromDict",[Il,{type:Al,isVararg:!0}],mc),ul("getDictBoolean",[Il,{type:Al,isVararg:!0}],vc),ul("getBooleanFromDict",[Il,{type:Al,isVararg:!0}],vc),ul("getDictColor",[Il,{type:Al,isVararg:!0}],yc),ul("getColorFromDict",[Il,{type:Al,isVararg:!0}],yc),ul("getDictUrl",[Il,{type:Al,isVararg:!0}],$c),ul("getUrlFromDict",[Il,{type:Al,isVararg:!0}],$c),ul("getDictOptString",[Al,Il,{type:Al,isVararg:!0}],wc),ul("getOptStringFromDict",[Al,Il,{type:Al,isVararg:!0}],wc),ul("getDictOptNumber",[Vl,Il,{type:Al,isVararg:!0}],xc),ul("getOptNumberFromDict",[Vl,Il,{type:Al,isVararg:!0}],xc),ul("getDictOptInteger",[jl,Il,{type:Al,isVararg:!0}],kc),ul("getOptIntegerFromDict",[jl,Il,{type:Al,isVararg:!0}],kc),ul("getDictOptBoolean",[Dl,Il,{type:Al,isVararg:!0}],Ec),ul("getOptBooleanFromDict",[Dl,Il,{type:Al,isVararg:!0}],Ec),ul("getDictOptColor",[Fl,Il,{type:Al,isVararg:!0}],Cc),ul("getOptColorFromDict",[Fl,Il,{type:Al,isVararg:!0}],Cc),ul("getDictOptColor",[Al,Il,{type:Al,isVararg:!0}],Cc),ul("getOptColorFromDict",[Al,Il,{type:Al,isVararg:!0}],Cc),ul("getDictOptUrl",[Al,Il,{type:Al,isVararg:!0}],Ac),ul("getOptUrlFromDict",[Al,Il,{type:Al,isVararg:!0}],Ac),ul("getDictOptUrl",[Pl,Il,{type:Al,isVararg:!0}],Ac),ul("getOptUrlFromDict",[Pl,Il,{type:Al,isVararg:!0}],Ac),ul("getDictFromDict",[Il,{type:Al,isVararg:!0}],_c),ul("getArrayFromDict",[Il,{type:Al,isVararg:!0}],bc),ul("getOptArrayFromDict",[Il,{type:Al,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return bc(t,e,...r)}catch(t){return{type:Nl,value:[]}}})),ul("getOptDictFromDict",[Il,{type:Al,isVararg:!0}],(function(t,e){try{for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return _c(t,e,...r)}catch(t){return{type:Il,value:{}}}})),ul("getArrayString",[Nl,jl],Dc),ul("getStringFromArray",[Nl,jl],Dc),ul("getArrayNumber",[Nl,jl],Fc),ul("getNumberFromArray",[Nl,jl],Fc),ul("getArrayInteger",[Nl,jl],Pc),ul("getIntegerFromArray",[Nl,jl],Pc),ul("getArrayBoolean",[Nl,jl],Sc),ul("getBooleanFromArray",[Nl,jl],Sc),ul("getArrayColor",[Nl,jl],Ic),ul("getColorFromArray",[Nl,jl],Ic),ul("getArrayUrl",[Nl,jl],Nc),ul("getUrlFromArray",[Nl,jl],Nc),ul("getArrayFromArray",[Nl,jl],Oc),ul("getDictFromArray",[Nl,jl],Mc),ul("getArrayOptString",[Nl,jl,Al],Tc),ul("getOptStringFromArray",[Nl,jl,Al],Tc),ul("getArrayOptNumber",[Nl,jl,Vl],zc),ul("getOptNumberFromArray",[Nl,jl,Vl],zc),ul("getArrayOptInteger",[Nl,jl,jl],Rc),ul("getOptIntegerFromArray",[Nl,jl,jl],Rc),ul("getArrayOptBoolean",[Nl,jl,Dl],Bc),ul("getOptBooleanFromArray",[Nl,jl,Dl],Bc),ul("getArrayOptColor",[Nl,jl,Fl],Lc),ul("getOptColorFromArray",[Nl,jl,Fl],Lc),ul("getArrayOptColor",[Nl,jl,Al],Lc),ul("getOptColorFromArray",[Nl,jl,Al],Lc),ul("getArrayOptUrl",[Nl,jl,Pl],Uc),ul("getOptUrlFromArray",[Nl,jl,Pl],Uc),ul("getArrayOptUrl",[Nl,jl,Al],Uc),ul("getOptUrlFromArray",[Nl,jl,Al],Uc),ul("getOptArrayFromArray",[Nl,jl],(function(t,e,n){try{return Oc(t,e,n)}catch(t){return{type:Nl,value:[]}}})),ul("getOptDictFromArray",[Nl,jl],(function(t,e,n){try{return Mc(t,e,n)}catch(t){return{type:Il,value:{}}}})),ul("len",[Nl],(function(t,e){return{type:jl,value:ra(e.value.length)}}));const Wc={StringLiteral:function(t,e){return{type:Al,value:e.value}},NumberLiteral:function(t,e){return{type:Vl,value:e.value}},IntegerLiteral:function(t,e){return $l(t,e.value),{type:jl,value:e.value}},BooleanLiteral:function(t,e){return{type:Dl,value:e.value?1:0}},UnaryExpression:function(t,e){const n=pl(qc(t,e.argument));switch(e.operator){case"!":if(n.type===Dl)return{type:Dl,value:n.value?0:1};_l("".concat(e.operator).concat(ml(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===jl){const e=n.value*ra(r);return $l(t,e),{type:jl,value:e}}if(n.type===Vl)return{type:Vl,value:n.value*r};_l("".concat(e.operator).concat(ml(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=pl(qc(t,e.test));if(n.type===Dl)return n.value?qc(t,e.consequent):qc(t,e.alternate);_l("".concat(ml(n)," ? ").concat(ml(qc(t,e.consequent))," : ").concat(ml(qc(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TryExpression:function(t,e){try{return qc(t,e.test)}catch(n){return qc(t,e.alternate)}},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return qc(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=gl(qc(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:Al,value:n}},LogicalExpression:function(t,e){const n=pl(qc(t,e.left));if(n.type!==Dl&&_l("".concat(ml(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:Dl,value:0};const r=pl(qc(t,e.right));return r.type!==Dl&&_l("".concat(ml(n)," ").concat(e.operator," ").concat(ml(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(vl(r.type),".")),{type:Dl,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=qc(t,e.left),o=qc(t,e.right);if(r.type!==o.type&&_l("".concat(ml(r)," ").concat(e.operator," ").concat(ml(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(vl(r.type)," and ").concat(vl(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===Sl&&n.type===Sl?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:Dl,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==Vl&&e.type!==jl&&e.type!==Sl&&_l("".concat(ml(e)," ").concat(t," ").concat(ml(n)),"Operator '".concat(t,"' cannot be applied to ").concat(vl(e.type)," type."));const o=e.type===Sl?e.value.getTime():e.value,i=n.type===Sl?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:Dl,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==Al&&n.type!==Vl&&n.type!==jl&&_l("".concat(ml(n)," ").concat(e," ").concat(ml(r)),"Operator '".concat(e,"' cannot be applied to ").concat(vl(n.type)," type.")),n.type===Al)return"-"===e&&_l("".concat(ml(n)," - ").concat(ml(r)),"Operator '".concat(e,"' cannot be applied to ").concat(vl(n.type)," type.")),{type:Al,value:n.value+r.value};let o="+"===e?n.value+r.value:n.value-r.value;if(n.type===jl)try{o=yl(0,o),$l(t,o)}catch(t){_l("".concat(ml(n)," ").concat(e," ").concat(ml(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let o;if(n.type!==jl&&n.type!==Vl&&_l("".concat(ml(n)," ").concat(e," ").concat(ml(r)),"Operator '".concat(e,"' cannot be applied to ").concat(vl(n.type)," type.")),"*"===e)o=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&_l("".concat(ml(n)," ").concat(e," ").concat(ml(r)),"Division by zero is not supported."),o="/"===e?n.value/r.value:n.value%r.value}if(n.type===jl)try{o=yl(0,o),$l(t,o)}catch(t){_l("".concat(ml(n)," ").concat(e," ").concat(ml(r)),t.message)}return{type:n.type,value:o}}(t,n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const o=e.arguments.map((e=>qc(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(cl.has(i))r=cl.get(i);else{const t=function(t,e){const n=ll.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const o=dl(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t||"type"in t&&"missing"===t.type){const e=o.map((t=>vl(t.type))).join(", "),r="".concat(n,"(").concat(Hc(o),")");"few"===t.type&&0===o.length?_l(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?_l(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):_l(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...o)}catch(t){_l("".concat(n,"(").concat(Hc(o),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function qc(t,e){if(e.type in Wc)return Wc[e.type](t,e);throw new Error("Unsupported expression")}function Jc(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1},r=qc(n,e);return n.safeIntegerOverflow&&n.warnings.push(ge(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){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{const r=Jc(t,this.ast);r.warnings.forEach(e);const o=r.result;if("error"===o.type)return void e(ge(new Error("Expression execution error"),{additional:{message:o.value}}));const i=o.value;if(i instanceof Date)return fl(i);if("boolean"===o.type)return Boolean(i);if("color"===o.type){const t=xe(String(i));if(t)return xl(t);e(ge(new Error("Expression execution error")))}if("integer"===o.type)return i>2147483647||i<-2147483648?void e(ge(new Error("Expression result is out of 32-bit int range"))):Number(i);if(!n&&("array"===o.type||"dict"===o.type))try{return JSON.stringify(i)}catch(t){return e(ge(new Error("Failed to stringify ".concat(o.type)))),"<".concat(o.type,">")}return i}catch(t){return void e(ge(new Error("Expression execution error")))}}}function Kc(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=sl(t,{startRule:"JsonStringContents"}),r=bl(n);return e.vars.push(...r),new Gc(n)}catch(e){return void n(ge(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Kc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Kc(t[o],e,n);return r}}var r;return t}function Yc(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t){if(t instanceof Gc)return t.apply(e,n,r);if(Array.isArray(t))return t.map((t=>Yc(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=Yc(t[o],e,n);return r}}return t}function Xc(t,e){const n={vars:[],hasExpression:!1},r=Kc(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:(t,n)=>Yc(r,t,e,n)}}const Zc={pagers:function(){return de(new Map)}},Qc=new Map,tu=new Map;function eu(t){const e=Qc.get(t)||de("");return Qc.has(t)||Qc.set(t,e),e}function nu(t){const e=tu.get(t)||new Map;return tu.has(t)||tu.set(t,e),e}class ru{setVariable(t){const e=t.getName(),n=nu(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),eu(this).set(e)}getVariable(t){return nu(this).get(t)}list(){return nu(this).values()}}function ou(){return new ru}function iu(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 au=new Set(["start","stop","pause","resume","cancel","reset"]);class su{constructor(t){iu(this,"timers",new Map),iu(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(ge(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(ge(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&au.has(e)))return void this.logError(ge(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(),o=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-o)%n,e()}),o)};e()}}start(t){if("running"===t.state)return void this.logError(ge(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(ge(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(ge(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(ge(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(ge(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(ge(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(ge(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(ge(new Error("The timer is already running"))):this.logError(ge(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,{processUrls:!1})}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function lu(t,e,n,r){const{variable_name:o}=n;if(!o)return void e(ge(new Error("Incorrect ".concat(n.type," action")),{additional:{name:o}}));const i=t.get(o);if(!i)return void e(ge(new Error("Cannot find variable"),{additional:{name:o}}));const a=i.getType();"array"===a?r(i):e(ge(new Error("Trying to insert value into the non-array"),{additional:{name:o,type:a}}))}function cu(t){let e,n,r,o,i,a,s,l;return n=new Ys({props:{svgFiltersMap:t[3]}}),o=new Rs({props:{componentContext:t[4]}}),{c(){e=R("div"),re(n.$$.fragment),r=U(),re(o.$$.fragment),this.h()},l(t){e=et(t,"DIV",{class:!0,dir:!0});var i=X(e);oe(n.$$.fragment,i),r=ot(i),oe(o.$$.fragment,i),i.forEach(T),this.h()},h(){q(e,"class",i=""+(pe.root+(t[5]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))),q(e,"dir",t[6])},m(t,i){M(t,e,i),ie(n,e,null),N(e,r),ie(o,e,null),a=!0,s||(l=W(e,"touchstart",mu,{passive:!0}),s=!0)},p(t,r){const s={};8&r[0]&&(s.svgFiltersMap=t[3]),n.$set(s);const l={};16&r[0]&&(l.componentContext=t[4]),o.$set(l),(!a||33&r[0]&&i!==(i=""+(pe.root+(t[5]?" ".concat(pe.root_platform_desktop):"")+(t[0]?" ".concat(t[0]):""))))&&q(e,"class",i),(!a||64&r[0])&&q(e,"dir",t[6])},i(t){a||(Wt(n.$$.fragment,t),Wt(o.$$.fragment,t),a=!0)},o(t){qt(n.$$.fragment,t),qt(o.$$.fragment,t),a=!1},d(t){t&&T(e),ae(n),ae(o),s=!1,l()}}}function uu(t){let e,n,r=!t[1]&&!t[2]&&t[4]&&cu(t);return{c(){r&&r.c(),e=H()},l(t){r&&r.l(t),e=H()},m(t,o){r&&r.m(t,o),M(t,e,o),n=!0},p(t,n){t[1]||t[2]||!t[4]?r&&(Ut(),qt(r,1,1,(()=>{r=null})),Ht()):r?(r.p(t,n),22&n[0]&&Wt(r,1)):(r=cu(t),r.c(),Wt(r,1),r.m(e.parentNode,e))},i(t){n||(Wt(r),n=!0)},o(t){qt(r),n=!1},d(t){t&&T(e),r&&r.d(t)}}}let du=de(!0),hu=0;function pu(){du.set(!1)}function fu(){du.set(!0)}function gu(t,e){return t&&e?new Map([...t,...e]):t||e||void 0}function mu(){}function vu(t,e,n){let r,o,i,a;var s,l,c,u;let{id:d}=e,{json:h={}}=e,{platform:f="auto"}=e,{theme:g="system"}=e,{globalVariablesController:m=new ru}=e,{mix:v=""}=e,{customization:y={}}=e,{builtinProtocols:$=["http","https","tel","mailto","intent"]}=e,{extensions:b=new Map}=e,{onError:_}=e,{onStat:w}=e,{onCustomAction:x}=e,{onComponent:k}=e,{typefaceProvider:E=(t=>"")}=e,{fetchInit:C={}}=e,{tooltipRoot:A}=e,{customComponents:j}=e,{direction:V="ltr"}=e,D=de("desktop"===f);if(p(t,D,(t=>n(5,i=t))),"auto"===f&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");D.set(!t.matches),t.addListener((()=>{D.set(!t.matches)}))}let F="light",P=null;const S=de("rtl"===V?"rtl":"ltr");function I(){"system"===g&&P&&n(33,F=P.matches?"dark":"light")}p(t,S,(t=>n(6,a=t)));const N=new Set($);let O=!1,M=!1;d||(M=!0,G(ge(new Error('"id" prop is required'))));const T={stateChange:!1},z=eu(m),R=nu(m),B=new Map,L=new Map,U=new Map;let H=null,W=0,q=[];function J(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Xc(t,G);if(!r.hasExpression)return t;const o=gu(L,e);return r.applyVars(o,n)}function G(t){_?_({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function K(t,e){w&&w({type:t,action:e})}function Y(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type&&t.type in r;){if(({json:t,templateContext:e}=Xs(t,e,r,G)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}}let X=0;function Z(t){return"".concat(d,"-").concat(X++)}let Q={},tt={};function et(t,e){const o=t.url?String(t.url):"",i=t.typed;if(!Xe(t))return;const a=(null==e?void 0:e.logError)||G;if(o)try{const i=o.replace(/div-action:\/\//,""),s=/([^?]+)\?(.+)/.exec(i);if(!s)return;const l=new URLSearchParams(s[2]);switch(s[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=dt,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],o=n[t+1];let i=e.getChild(r);if(!i)return;i.setState(o),e=i}}(l.get("state_id"));break;case"set_current_item":!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=lt(t);n&&n.setCurrentItem(Number(e))}(l.get("id"),l.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=lt(t);n&&n.setPreviousItem(e)}(l.get("id"),l.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=lt(t);n&&n.setNextItem(e)}(l.get("id"),l.get("overflow"));break;case"set_variable":const s=l.get("name"),c=l.get("value");if(s&&null!==c){const t=L.get(s);if(t){const e=t.getType();"dict"===e||"array"===e?a(ge(new Error("Setting ".concat(e," variables is not supported")),{additional:{name:s}})):t.set(c)}else a(ge(new Error("Cannot find variable"),{additional:{name:s}}))}else a(ge(new Error("Incorrect set_variable_action"),{additional:{url:i}}));break;case"timer":const u=l.get("action"),d=l.get("id");H?H.execTimerAction(d,u):a(ge(new Error("Incorrect timer action"),{additional:{id:d,action:u}}));break;case"video":!function(t,e,n){const r=(null==n?void 0:n.logError)||G;if(t){const n=lt(t);n?"start"===e?n.start():"pause"===e?n.pause():r(ge(new Error("Unknown video action"),{additional:{id:t,action:e}})):r(ge(new Error("Video component is not found"),{additional:{id:t,action:e}}))}else r(ge(new Error("Missing id in video action"),{additional:{action:e}}))}(l.get("id"),l.get("action"),e);break;case"download":!function(t,e,n){const o=(null==n?void 0:n.logError)||G;if(t){let n;n="function"==typeof C?C(t):C,fetch(t,n).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})).then((n=>{var i,a,s;if(n){if(n.templates)for(const t in n.templates)r.hasOwnProperty(t)||(r[t]=n.templates[t]);if(Array.isArray(null===(i=n.patch)||void 0===i?void 0:i.changes)){if("transactional"===n.patch.mode){const r=n.patch.changes.find((t=>{const e=it.get(t.id);if(!e)return!0;const n=Array.isArray(t.items)?t.items.length:0;return!(!e.isSingleMode||1===n)}));if(r)return o(ge(new Error("Skipping transactional, child is not found or broken"),{additional:{url:t,id:r.id}})),void nt(null===(a=e.download_callbacks)||void 0===a?void 0:a.on_fail_actions)}n.patch.changes.forEach((t=>{const e=it.get(t.id);e&&e.replaceWith(t.id,t.items)})),nt(null===(s=e.download_callbacks)||void 0===s?void 0:s.on_success_actions)}}else o(ge(new Error("Incorrect patch"),{additional:{url:t}}))})).catch((n=>{var r;o(ge(new Error("Failed to download the patch"),{additional:{url:t,originalError:n}})),nt(null===(r=e.download_callbacks)||void 0===r?void 0:r.on_fail_actions)}))}else o(ge(new Error("Missing url in download action"),{additional:{url:t}}))}(l.get("url"),t,e);break;case"show_tooltip":!function(t,e,r){var o;const i=(null==r?void 0:r.logError)||G;if(!t)return void i(ge(new Error("Missing id in show_tooltip action")));const a=st.get(t);if(!a)return void i(ge(new Error("Tooltip with the provided id is not found"),{additional:{id:t}}));if("true"!==e&&q.some((e=>e.desc.id===t)))return;const s={internalId:++W,ownerNode:a.onwerNode,desc:a.tooltip,timeoutId:0};n(35,q=[...q,s]);const l=null!==(o=a.tooltip.duration)&&void 0!==o?o:5e3;l&&(s.timeoutId=window.setTimeout((()=>{s.timeoutId=0,n(35,q=q.filter((t=>t.internalId!==s.internalId)))}),l))}(l.get("id"),l.get("multiple"),e);break;case"hide_tooltip":!function(t,e){const r=(null==e?void 0:e.logError)||G;t?n(35,q=q.filter((e=>{const n=e.desc.id!==t;return!n&&e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),n}))):r(ge(new Error("Missing id in hide_tooltip action")))}(l.get("id"),e);break;default:a(ge(new Error("Unknown type of action"),{additional:{url:o}}))}}catch(t){a(ge(t,{additional:{url:o}}))}else if(i)switch(i.type){case"set_variable":{const{variable_name:t,value:e}=i;if(t&&e){const n=L.get(t);n?n.getType()===e.type?n.setValue(e.value):a(ge(new Error("Trying to set value with invalid type"),{additional:{name:t,type:e.type}})):a(ge(new Error("Cannot find variable"),{additional:{name:t}}))}else a(ge(new Error("Incorrect set_variable action"),{additional:{name:t}}));break}case"array_insert_value":!function(t,e,n){const{variable_name:r,index:o,value:i}=n;!i||"number"!=typeof o&&void 0!==o?e(ge(new Error("Incorrect array_insert_value action"),{additional:{name:r}})):lu(t,e,n,(t=>{const a=t.getValue();if("number"==typeof o&&(o<0||o>a.length))e(ge(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:a.length}}));else{const e=a.slice();"number"==typeof o?e.splice(o,0,i.value):e.push(i.value),t.setValue(e)}}))}(L,a,i);break;case"array_remove_value":!function(t,e,n){const{variable_name:r,index:o}=n;"number"==typeof o?lu(t,e,n,(t=>{const i=t.getValue();if("number"==typeof o&&(o<0||o>=i.length))e(ge(new Error("Index out of bound for mutation ".concat(n.type)),{additional:{name:r,index:o,length:i.length}}));else{const e=i.slice();e.splice(o,1),t.setValue(e)}})):e(ge(new Error("Incorrect array_remove_value action"),{additional:{name:r}}))}(L,a,i);break;case"copy_to_clipboard":!function(t,e){!e.content||"text"!==e.content.type&&"url"!==e.content.type||"string"!=typeof e.content.value?t(ge(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(ge(new Error("Failed to copy to the clipboard"),{additional:{originalError:String(e)}}))})):t(ge(new Error("Clipboard is unavailable"),{additional:{action:e}}))}(a,i);break;case"focus_element":{const t=i.element_id&&at.get(i.element_id);t?t.focus():a(ge(new Error("Incorrect focus_element action"),{additional:{elementId:i.element_id}}));break}default:a(ge(new Error("Unknown type of action"),{additional:{type:i.type}}))}}async function nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!Array.isArray(t))return;const n=t.filter(Xe);for(let t=0;t<n.length;++t){let r=n[t];const o=r.url,i=r.typed;if(o){const t=Fe(o);if(t)if(Pe(t,N)){if(e.processUrls)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=o)}else location.href=o}else"div-action"===t?(et(r,e.componentContext),await Pt()):r.log_id&&(rt(r),await Pt())}else i&&et(r,e.componentContext)}n.forEach((t=>{t.log_id&&K("click",t)}))}function rt(t){null==x||x(t)}const ot=new Map,it=new Map,at=new Map,st=new Map;function lt(t){if(ot.has(t))return ot.get(t);G(ge(new Error("Missing instance with id"),{additional:{id:t}}))}const ct=new Map;function ut(t){const e=U.get(t)||de(void 0);return U.has(t)||U.set(t,e),e}wt(fe,{logStat:K,hasTemplate:function(t){return t in r},processTemplate:Y,genId:Z,genClass:function(t){return"divkit-".concat(Z())},execAction:et,execCustomAction:rt,isRunning:function(t){return T[t]},setRunning:function(t,e){T[t]=e},registerInstance:function(t,e){ot.has(t)?G(ge(new Error("Duplicate instance id"),{additional:{id:t}})):ot.set(t,e)},unregisterInstance:function(t){ot.delete(t)},registerParentOf:function(t,e){it.set(t,e)},unregisterParentOf:function(t){it.delete(t)},registerTooltip:function(t,e){const n=e.id;n&&(st.has(n)&&G(ge(new Error("Duplicate tooltip id"),{additional:{id:n}})),st.set(n,{onwerNode:t,tooltip:e}))},unregisterTooltip:function(t){const e=t.id;e&&(st.delete(e),q.some((t=>t.desc.id===e))&&n(35,q=q.filter((t=>t.desc.id!==e))))},onTooltipClose:function(t){n(35,q=q.filter((e=>e.internalId!==t)))},tooltipRoot:A,registerFocusable:function(t,e){at.set(t,e)},unregisterFocusable:function(t){at.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(tt[r]=tt[r]||0,++tt[r],Q[r])return Q[r];const o="".concat(Z(),"-svg-filter");return n(3,Q=Object.assign(Object.assign({},Q),{[r]:o})),o},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);tt[r]&&0==--tt[r]&&n(3,Q=Object.keys(Q).reduce(((t,e)=>(tt[e]&&(t[e]=Q[e]),t)),{}))},preparePrototypeVariables:function(t,e){const n=new Map,r=function(t,e,n){if(!(e in _a))throw new Error("Unsupported variable type");return new _a[e](t,n)}(t,"dict",e);return n.set(t,r),n},getStore:function(t){return ct.has(t)||function(t){ct.has(t)||ct.set(t,Zc[t]())}(t),ct.get(t)},getCustomization:function(t){return null==y?void 0:y[t]},getBuiltinProtocols:function(){return N},getExtension:function(t,e){const n=b.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:L,logError:G}},typefaceProvider:E,isDesktop:D,isPointerFocus:du,customComponents:j,direction:S,componentDevtool:void 0}),wt(en,{hasAction:()=>!1});const dt={setState(t){throw new Error("Not implemented")},getChild(t){if(ht&&ht.has(t))return ht.get(t);G(ge(new Error("Missing state block with id"),{additional:{id:t}}))}};let ht=null;function pt(t){if(t.type in ma){"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&G(ge(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=va(t.name,t.type,t.value);B.set(t.name,e),L.set(t.name,e)}catch(e){G(ge(e,{additional:{name:t.name}}))}}}wt(Me,{registerInstance(t,e){ht||(ht=new Map),ht.has(t)?G(ge(new Error("Duplicate state with id"),{additional:{id:t}})):ht.set(t,e)},unregisterInstance(t){null==ht||ht.delete(t)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const ft=null===(s=null==h?void 0:h.card)||void 0===s?void 0:s.variables;Array.isArray(ft)&&ft.forEach((t=>{if(t&&t.name){if(B.has(t.name))return void G(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));pt(t)}}));const gt=h.palette;gt&&gt[F].forEach((t=>{if(B.has(t.name))G(ge(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=va(t.name,"color",t.color);B.set(t.name,e),L.set(t.name,e)}catch(e){G(ge(e,{additional:{name:t.name}}))}}));for(const[t,e]of R)L.has(t)||L.set(t,e);z.subscribe((t=>{if(t&&!L.has(t)){const e=R.get(t);L.set(t,e);const n=U.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const mt=null===(c=null==h?void 0:h.card)||void 0===c?void 0:c.timers;if(mt&&"undefined"!=typeof document){const t=H=new su({logError:G,applyVars:J,hasVariableWithType:function(t,e){const n=L.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=L.get(t);n?n.setValue(e):G(ge(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:nt});mt.forEach((e=>t.createTimer(e)))}const vt=function t(e){const n={json:{},path:[],templateContext:{},logError(t){t.additional=t.additional||{},t.additional.path=n.path.join("/"),G(t)},execAnyActions(t){return nt(t,{componentContext:n,processUrls:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).processUrls})},getDerivedFromVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t)return Qs(t);const r=gu(L,e),o=Xc(t,G);return o.vars.length?he(o.vars.map((t=>r.get(t)||ut(t))).filter(Ee),(()=>o.applyVars(r,n))):o.hasExpression?Qs(o.applyVars(r)):Qs(t)}(t,gu(n.variables,e),r)},getJsonWithVars(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return J(t,gu(n.variables,e),r)},produceChildContext(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=t(n);let i=e,a=n.templateContext;const{templateContext:s,json:l}=Y(i,a);return o.json=l,o.templateContext=s,o.origJson=e,void 0!==r.path&&o.path.push(String(r.path)),e.type&&!r.isRootState&&o.path.push(e.type),o.variables=gu(n.variables,r.variables),r.tooltips&&(o.tooltips=r.tooltips),r.fake&&(o.fakeElement=!0),r.isRootState&&(o.isRootState=!0),o},getVariable(t,e){const r=(n.variables||L).get(t);if(r){const o=r.getType();if(o!==e)return void n.logError(ge(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:o}}))}return r}};return e?(n.path=e.path.slice(),e.fakeElement&&(n.fakeElement=!0)):(n.json={type:"root"},n.isRootState=!0),n}();let yt;return bt((()=>{hu++,1===hu&&(window.addEventListener("keydown",pu),window.addEventListener("pointerdown",fu)),(()=>{var t;const e=null===(t=null==h?void 0:h.card)||void 0===t?void 0:t.variable_triggers;Array.isArray(e)&&e.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void G(ge(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=sl(t.condition,{startRule:"JsonStringContents"}),o=bl(r);if(!o.length)return void G(ge(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));he(o.map((t=>L.get(t)||ut(t))),(()=>{const t=Jc(L,r);return t.warnings.forEach(G),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=J(t);e.log_id&&et(e)})),e=Boolean(r.value)):G(ge(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}catch(e){G(ge(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else G(ge(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}))})()})),_t((()=>{hu--,hu||(window.removeEventListener("keydown",pu),window.removeEventListener("pointerdown",fu)),H&&H.destroy(),q.forEach((t=>{t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null)}))})),t.$$set=t=>{"id"in t&&n(11,d=t.id),"json"in t&&n(9,h=t.json),"platform"in t&&n(12,f=t.platform),"theme"in t&&n(10,g=t.theme),"globalVariablesController"in t&&n(13,m=t.globalVariablesController),"mix"in t&&n(0,v=t.mix),"customization"in t&&n(14,y=t.customization),"builtinProtocols"in t&&n(15,$=t.builtinProtocols),"extensions"in t&&n(16,b=t.extensions),"onError"in t&&n(17,_=t.onError),"onStat"in t&&n(18,w=t.onStat),"onCustomAction"in t&&n(19,x=t.onCustomAction),"onComponent"in t&&n(20,k=t.onComponent),"typefaceProvider"in t&&n(21,E=t.typefaceProvider),"fetchInit"in t&&n(22,C=t.fetchInit),"tooltipRoot"in t&&n(23,A=t.tooltipRoot),"customComponents"in t&&n(24,j=t.customComponents),"direction"in t&&n(25,V=t.direction)},t.$$.update=()=>{if(1024&t.$$.dirty[0]|8&t.$$.dirty[1]&&("light"===g||"dark"===g?n(33,F=g):"system"===g?"undefined"!=typeof matchMedia?(P||(n(34,P=matchMedia("(prefers-color-scheme: dark)")),P.addListener(I)),n(33,F=P.matches?"dark":"light")):n(33,F="light"):G(ge(new Error("Unsupported theme")))),4&t.$$.dirty[1]&&F&&(gt&&gt[F].forEach((t=>{const e=L.get(t.name);e&&e.setValue(t.color)}))),512&t.$$.dirty[0]){n(1,O=!1);const t=function(t){if(!t)return ge(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return ge(new Error("Missing card"));if(!e.states||!e.states.length)return ge(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Os)return ge(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return ge(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return ge(new Error("Missing state_id"),{additional:{index:t}})}return null}(h);t&&(n(1,O=!0),G(t))}if(512&t.$$.dirty[0]&&(r=h.templates||{}),512&t.$$.dirty[0]|1&t.$$.dirty[1]&&(null===n(31,l=null==h?void 0:h.card)||void 0===l?void 0:l.variables)&&Array.isArray(h.card.variables)&&h.card.variables!==ft&&h.card.variables.forEach((t=>{t&&t.name&&!B.has(t.name)&&pt(t)})),512&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(36,o=null===n(32,u=null==h?void 0:h.card)||void 0===u?void 0:u.states),6&t.$$.dirty[0]|48&t.$$.dirty[1]&&o&&!O&&!M){const t={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:o.map((t=>({state_id:t.state_id.toString(),div:t.div})))};n(4,yt=vt.produceChildContext(t,{tooltips:q,isRootState:!0}))}},[v,O,M,Q,yt,i,a,D,S,h,g,d,f,m,y,$,b,_,w,x,k,E,C,A,j,V,function(t){n(10,g=t)},function(){return new Map},function(){return new Map},function(t){n(9,h=t)},function(t){et(J(t))},l,u,F,P,q,o]}const yu=class extends ce{constructor(t){super(),se(this,t,vu,uu,d,{id:11,json:9,platform:12,theme:10,globalVariablesController:13,mix:0,customization:14,builtinProtocols:15,extensions:16,onError:17,onStat:18,onCustomAction:19,onComponent:20,typefaceProvider:21,fetchInit:22,tooltipRoot:23,customComponents:24,direction:25,setTheme:26,getDebugVariables:27,getDebugAllVariables:28,setData:29,execAction:30},null,[-1,-1,-1,-1])}get setTheme(){return this.$$.ctx[26]}get getDebugVariables(){return this.$$.ctx[27]}get getDebugAllVariables(){return this.$$.ctx[28]}get setData(){return this.$$.ctx[29]}get execAction(){return this.$$.ctx[30]}};class $u{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 Pt()}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 bu(t){return t instanceof HTMLElement}function _u(t){return class{constructor(t){this.params=t}loadData(){if(this.params.lottie_json)return Promise.resolve(this.params.lottie_json);const t=this.params.lottie_url;return t?fetch(t).then((t=>{if(!t.ok)throw new Error("Response is not ok");return t.json()})):Promise.reject("Missing data")}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(bu);r.forEach((t=>{t.style.display="none"})),e.setAttribute("data-lottie","true");const o=this.wrapper=document.createElement("div");this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),a=()=>{var t,o;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""})),e.removeAttribute("data-lottie"),this.wrapper&&(null===(o=this.wrapper.parentNode)||void 0===o||o.removeChild(this.wrapper),this.wrapper=void 0);const i=new Error("Failed to load lottie animation");i.level="error",i.additional={url:this.params.lottie_url},n.logError(i)};this.loadData().then((e=>{const n=this.animItem=t({container:o,animationData:e,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",a),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;n.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(n.stop(),n.goToAndStop(n.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,n.setDirection(t)),n.goToAndPlay(1===t?0:n.totalFrames,!0))}))}})).catch(a)}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0),t.removeAttribute("data-lottie")}}}const wu=["target","hydrate"];function xu(t){const{target:e,hydrate:n}=t,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,wu),o=new yu({target:e,props:r,hydrate:n});return{$destroy(){o.$destroy()},execAction(t){o.execAction(t)},setTheme(t){o.setTheme(t)},setData(t){o.setData(t)}}}var ku=e.Hy,Eu=e.M,Cu=e.Os,Au=e._0,ju=e.sY;export{ku as SizeProvider,Eu as createGlobalVariablesController,Cu as createVariable,Au as lottieExtensionBuilder,ju as render};
2
2
  //# sourceMappingURL=client-hydratable.mjs.map