@divkitframework/divkit 23.6.0 → 23.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{createGlobalVariablesController:()=>ml,createVariable:()=>_n,evalExpression:()=>Cl,functionNames:()=>Al,render:()=>El,valToString:()=>S});const n=2147483647,r=-2147483648,i=Number.MAX_VALUE,o=Number.MIN_VALUE,a="string",l="integer",s="number",c="boolean",u="color",d="url",h="datetime";function p(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function f(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function g(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 m(t){var e=parseInt(t,10);if(e>n||e<r)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function v(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function y(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,y.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function $(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function _(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:zt,JsonStringContents:function(){var t,e,n;for(t=wt,e=[],n=Tt();n!==r;)e.push(n),n=Tt();return xt=t,e=bt(e)}},a=zt,l="@{",s="}",c="@{}",u="\\",d="||",h="&&",$="==",_="!=",b=">=",w="<=",x="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,j=/^[0-9]/,D=/^[a-zA-Z_0-9.]/,P=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,F=jt("@{",!1),I=jt("}",!1),z=jt("@{}",!1),T=jt("\\",!1),M={type:"any"},N=Dt(["}"],!0,!1),J=jt("?",!1),O=jt(":",!1),B=jt("||",!1),R=jt("&&",!1),U=jt("==",!1),W=jt("!=",!1),L=jt(">=",!1),q=jt(">",!1),H=jt("<=",!1),G=jt("<",!1),K=jt("+",!1),X=jt("-",!1),Y=jt("/",!1),Z=jt("*",!1),Q=jt("%",!1),tt=jt("!",!1),et=jt("(",!1),nt=jt(")",!1),rt=jt(",",!1),it=Pt("string"),ot=jt("'",!1),at=Dt(["'","}"],!0,!1),lt=Pt("integer"),st=Dt([["0","9"]],!1,!1),ct=Pt("number"),ut=jt(".",!1),dt=jt("e",!1),ht=jt("E",!1),pt=Pt("boolean"),ft=jt("true",!1),gt=jt("false",!1),mt=Dt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Pt("identifier"),yt=Dt([["a","z"],["A","Z"],"_"],!1,!1),$t=Pt("whitespace"),_t=Dt([" ","\t","\r","\n"],!1,!1),bt=function(t){return g(t)},wt=0,xt=0,kt=[{line:1,column:1}],Et=0,Ct=[],At=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 Vt(){return t.substring(xt,wt)}function jt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Dt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pt(t){return{type:"other",description:t}}function St(e){var n,r=kt[e];if(r)return r;for(n=e-1;!kt[n];)n--;for(r={line:(r=kt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return kt[e]=r,r}function Ft(t,e){var n=St(t),r=St(e);return{source:i,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function It(t){wt<Et||(wt>Et&&(Et=wt,Ct=[]),Ct.push(t))}function zt(){var t,e;return t=wt,Kt(),(e=Mt())!==r?(Kt(),xt=t,t=e):(wt=t,t=r),t}function Tt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r?(i=Kt(),(o=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=u,wt++):(i=r,0===At&&It(T)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r){if(i=[],A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(N)),o!==r)for(;o!==r;)i.push(o),A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(N));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=v(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Mt(){var e,n,i,o,a,l;return e=wt,(n=Nt())!==r?(Kt(),63===t.charCodeAt(wt)?(i="?",wt++):(i=r,0===At&&It(J)),i!==r?(Kt(),(o=Mt())!==r?(Kt(),58===t.charCodeAt(wt)?(a=":",wt++):(a=r,0===At&&It(O)),a!==r?(Kt(),(l=Mt())!==r?(xt=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=Nt()),e}function Nt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Jt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=f(n,i)}else wt=e,e=r;return e}function Jt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ot())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===h?(l=h,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===h?(l=h,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=f(n,i)}else wt=e,e=r;return e}function Ot(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Bt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(W))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(W))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Bt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Rt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(L)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(L)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Rt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ut())!==r){for(i=[],o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Ut(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Wt())!==r){for(i=[],o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Wt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Wt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Wt(){var e,n,i;return(e=Ht())===r&&(e=qt())===r&&(e=wt,33===t.charCodeAt(wt)?(n="!",wt++):(n=r,0===At&&It(tt)),n===r&&(43===t.charCodeAt(wt)?(n=x,wt++):(n=r,0===At&&It(K)),n===r&&(45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)))),n!==r?(Kt(),(i=Wt())!==r?(xt=e,e={type:"UnaryExpression",operator:n,argument:i}):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=wt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(wt)?(i="(",wt++):(i=r,0===At&&It(et)),i!==r?(Kt(),o=function(){var e,n,i,o,a,l,s;if(e=wt,(n=Mt())!==r){for(i=[],o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);xt=e,s=i,e=[n,...s]}else wt=e,e=r;return e===r&&(e=Kt()),e}(),o!==r?(Kt(),41===t.charCodeAt(wt)?(a=")",wt++):(a=r,0===At&&It(nt)),a!==r?(xt=e,e={type:"CallExpression",callee:n,arguments:o}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,(n=Gt())!==r&&(xt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return At++,e=wt,39===t.charCodeAt(wt)?(n="'",wt++):(n=r,0===At&&It(ot)),n!==r?(i=function(){var t,e,n;for(t=wt,e=[],n=Lt();n!==r;)e.push(n),n=Lt();return xt=t,e=g(e)}(),39===t.charCodeAt(wt)?(o="'",wt++):(o=r,0===At&&It(ot)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(it)),e}(),e===r&&(e=Ht())===r&&(e=qt())===r&&(e=function(){var e,n;return At++,e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=wt,t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&It(pt)),e}(),e===r&&(e=wt,40===t.charCodeAt(wt)?(n="(",wt++):(n=r,0===At&&It(et)),n!==r&&(i=Mt())!==r?(41===t.charCodeAt(wt)?(o=")",wt++):(o=r,0===At&&It(nt)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r))),e}())),e}())),e}function Lt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r?(i=Kt(),(o=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=u,wt++):(i=r,0===At&&It(T)),i===r&&(39===t.charCodeAt(wt)?(i="'",wt++):(i=r,0===At&&It(ot)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F)))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r){if(i=[],V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at)),o!==r)for(;o!==r;)i.push(o),V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=v(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function qt(){var e,n,i,o;if(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;return i!==r?(xt=e,e={type:"IntegerLiteral",value:m(Vt())}):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(lt)),e}function Ht(){var e,n,i,o,a,l,s,c,u,d;for(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));if(46===t.charCodeAt(wt)?(o=".",wt++):(o=r,0===At&&It(ut)),o!==r){if(a=[],j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st)),l!==r)for(;l!==r;)a.push(l),j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st));else a=r;if(a!==r){if(l=wt,101===t.charCodeAt(wt)?(s="e",wt++):(s=r,0===At&&It(dt)),s===r&&(69===t.charCodeAt(wt)?(s="E",wt++):(s=r,0===At&&It(ht))),s!==r){if(43===t.charCodeAt(wt)?(c=x,wt++):(c=r,0===At&&It(K)),c===r&&(45===t.charCodeAt(wt)?(c=k,wt++):(c=r,0===At&&It(X))),c===r&&(c=null),u=[],j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st)),d!==r)for(;d!==r;)u.push(d),j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st));else u=r;u!==r?l=s=[s,c,u]:(wt=l,l=r)}else wt=l,l=r;l===r&&(l=null),xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else wt=e,e=r}else wt=e,e=r;if(e===r){if(e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;if(i!==r)if(101===t.charCodeAt(wt)?(o="e",wt++):(o=r,0===At&&It(dt)),o===r&&(69===t.charCodeAt(wt)?(o="E",wt++):(o=r,0===At&&It(ht))),o!==r){if(43===t.charCodeAt(wt)?(a=x,wt++):(a=r,0===At&&It(K)),a===r&&(45===t.charCodeAt(wt)?(a=k,wt++):(a=r,0===At&&It(X))),a===r&&(a=null),l=[],j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st)),s!==r)for(;s!==r;)l.push(s),j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st));else l=r;l!==r?(xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(wt=e,e=r)}else wt=e,e=r;else wt=e,e=r}return At--,e===r&&(n=r,0===At&&It(ct)),e}function Gt(){var e,n,i,o,a;if(At++,e=wt,n=wt,At++,i=function(){var e,n,i,o;return e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n===r&&(t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt))),n!==r?(i=wt,At++,D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(mt)),At--,o===r?i=void 0:(wt=i,i=r),i!==r?e=n=[n,i]:(wt=e,e=r)):(wt=e,e=r),e}(),At--,i===r?n=void 0:(wt=n,n=r),n!==r)if(P.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&It(yt)),i!==r){for(o=[],D.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));a!==r;)o.push(a),D.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));xt=e,e={type:"Identifier",name:Vt()}}else wt=e,e=r;else wt=e,e=r;return At--,e===r&&(n=r,0===At&&It(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));n!==r;)e.push(n),S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));return At--,n=r,0===At&&It($t),e}if((n=a())!==r&&wt===t.length)return n;throw n!==r&&wt<t.length&&It({type:"end"}),function(t,e,n){return new y(y.buildMessage(t,e),t,e,n)}(Ct,Et<t.length?t.charAt(Et):null,Et<t.length?Ft(Et,Et+1):Ft(Et,Et))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(y,Error),y.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+":"+i.line+":"+i.column;if(r){var a=this.location.end,l=$("",i.line.toString().length," "),s=r[i.line-1],c=(i.line===a.line?a.column:s.length+1)-i.column||1;e+="\n --\x3e "+o+"\n"+l+" |\n"+i.line+" | "+s+"\n"+l+" | "+$("",i.column-1," ")+$("",c,"^")}else e+="\n at "+o}return e},y.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 b=new Map,w=new Map;function x(t,e,n){const r={args:e,cb:n},i=b.get(t)||[];b.has(t)||b.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");w.set(o,r)}function k(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 E(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=>{E(t,e)}));break;case"BinaryExpression":case"LogicalExpression":E(t.left,e),E(t.right,e);break;case"UnaryExpression":E(t.argument,e);break;case"ConditionalExpression":E(t.test,e),E(t.consequent,e),E(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{E(t,e)}))}}function C(t,e){for(;t.length<e;)t="0"+t;return t}function A(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=(t||"").toLowerCase()).charAt(0))return n;const r=j(t);return r?(r.a*=e,V(r)):n}function V(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>C(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function j(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function D(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function P(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function S(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 P(t.value);if("color"===t.type)return B(O(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function F(t){let e=S(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function I(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const z=new Int32Array(1);function T(t){return z[0]=t,z[0]}function M(t){if(t<r||t>n)throw new Error("Integer overflow.")}function N(t){const e=[];return E(t,{Variable(t){e.push(t.id.name)}}),e}function J(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function O(t){const e=j(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function B(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 C(Math.round(t).toString(16),2)})).join("").toUpperCase())}function R(t){return B(O(t))}function U(t,e){return{type:a,value:S(e)}}function W(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:s,value:n}}function L(t,e,n,r){const i=t.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=R(o)),{type:r,value:o}}function q(t,e,n){return L(t,e,n,n.type)}function H(t,e,n){return L(t,e,n,"color")}function G(t,e,n){return L(t,e,n,"url")}const K=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:l,value:r}},X=K("getUTCFullYear"),Y=K("getUTCMonth"),Z=K("getUTCDate"),Q=K("getUTCDay"),tt=K("getUTCHours"),et=K("getUTCMinutes"),nt=K("getUTCSeconds"),rt=K("getUTCMilliseconds");function it(t,e,n){if(!n.value.length)return"";let r="";const i=t.type===a?t.value:S(t);for(;r.length+i.length<e.value;)r+=n.value;return r.length>0&&r.length+i.length>e.value&&(r=r.substring(0,e.value-i.length)),r}function ot(t,e,n,r){const i=it(e,n,r);return{type:a,value:i+S(e)}}function at(t,e,n,r){const i=it(e,n,r);return{type:a,value:S(e)+i}}function lt(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return e.type===l&&(r=T(r)),{type:e.type,value:r}}function st(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return e.type===l&&(r=T(r)),{type:e.type,value:r}}function ct(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,n[0].type===l&&(i=T(i));return{type:n[0].type,value:i}}function ut(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,n[0].type===l&&(i=T(i));return{type:n.length?n[0].type:l,value:i}}function dt(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,r[0].type===l&&(e=T(e));return{type:r.length?r[0].type:l,value:e}}function ht(t,e){const n=Math.abs(e.value);return e.type===l&&M(n),{type:e.type,value:n}}function pt(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:n[0].type,value:Math.max(...n.map((t=>t.value)))}}function ft(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:n[0].type,value:Math.min(...n.map((t=>t.value)))}}function gt(t,e){return{type:e.type,value:Math.sign(e.value)}}function mt(t,e,n){let r;if(0===n.value&&e.type===l)r=e.value;else if(0===e.value&&e.type===l)r=0;else{let t=Math.sign(n.value);e.type===s&&0===t&&(t=Object.is(t,0)?1:-1),r=Math.abs(e.value)*t}return e.type===l&&M(r),{type:e.type,value:r}}function vt(t){return(e,n)=>{const r=O(n.value);return{type:s,value:r[t]/255}}}function yt(t){return(e,n,r)=>{const i=O(n.value);return i[t]=255*r.value,{type:u,value:B(i)}}}const $t=vt("a"),_t=vt("r"),bt=vt("g"),wt=vt("b"),xt=yt("a"),kt=yt("r"),Et=yt("g"),Ct=yt("b");function At(t,e,n){if(t.value<0)throw new Error("Expecting non-negative number of milliseconds.");let r=Math.floor(t.value/e);return n&&(r%=n),{type:l,value:r}}const Vt=36e5;function jt(){}const Dt=t=>t;function Pt(t,e){for(const n in e)t[n]=e[n];return t}function St(t){return t()}function Ft(){return Object.create(null)}function It(t){t.forEach(St)}function zt(t){return"function"==typeof t}let Tt;function Mt(t,e){return Tt||(Tt=document.createElement("a")),Tt.href=e,t===Tt.href}function Nt(t,e){return t!=t?e==e:t!==e}function Jt(t){return 0===Object.keys(t).length}function Ot(t,...e){if(null==t)return jt;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Bt(t,e,n){t.$$.on_destroy.push(Ot(e,n))}function Rt(t,e,n,r){if(t){const i=Ut(t,e,n,r);return t[0](i)}}function Ut(t,e,n,r){return t[1]&&r?Pt(n.ctx.slice(),t[1](r(e))):n.ctx}function Wt(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 Lt(t,e,n,r,i,o){if(i){const a=Ut(e,n,r,o);t.p(a,i)}}function qt(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 Ht(t){return t&&zt(t.destroy)?t.destroy:jt}const Gt="undefined"!=typeof window;let Kt=Gt?()=>window.performance.now():()=>Date.now(),Xt=Gt?t=>requestAnimationFrame(t):jt;const Yt=new Set;function Zt(t){Yt.forEach((e=>{e.c(t)||(Yt.delete(e),e.f())})),0!==Yt.size&&Xt(Zt)}let Qt=!1;function te(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function ee(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function ne(t){const e=le("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(ee(t),e),e.sheet}function re(t,e){if(Qt){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:te(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==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 ie(t,e,n){Qt&&!n?re(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function oe(t){t.parentNode.removeChild(t)}function ae(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function le(t){return document.createElement(t)}function se(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ce(t){return document.createTextNode(t)}function ue(){return ce(" ")}function de(){return ce("")}function he(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function pe(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function fe(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?t[r]=e[r]:pe(t,r,e[r])}function ge(t){return Array.from(t.childNodes)}function me(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(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 ve(t,e,n,r){return me(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 ye(t,e,n){return ve(t,e,n,le)}function $e(t,e,n){return ve(t,e,n,se)}function _e(t,e){return me(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}),(()=>ce(e)),!0)}function be(t){return _e(t," ")}function we(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function xe(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const ke=new Map;let Ee,Ce=0;function Ae(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(", "),Ce-=i,Ce||Xt((()=>{Ce||(ke.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),ke.clear())})))}function Ve(t){Ee=t}function je(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function De(t){je().$$.on_mount.push(t)}function Pe(t){je().$$.on_destroy.push(t)}function Se(t,e){return je().$$.context.set(t,e),e}function Fe(t){return je().$$.context.get(t)}function Ie(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ze=[],Te=[],Me=[],Ne=[],Je=Promise.resolve();let Oe=!1;function Be(){Oe||(Oe=!0,Je.then(He))}function Re(){return Be(),Je}function Ue(t){Me.push(t)}const We=new Set;let Le,qe=0;function He(){const t=Ee;do{for(;qe<ze.length;){const t=ze[qe];qe++,Ve(t),Ge(t.$$)}for(Ve(null),ze.length=0,qe=0;Te.length;)Te.pop()();for(let t=0;t<Me.length;t+=1){const e=Me[t];We.has(e)||(We.add(e),e())}Me.length=0}while(ze.length);for(;Ne.length;)Ne.pop()();Oe=!1,We.clear(),Ve(t)}function Ge(t){if(null!==t.fragment){t.update(),It(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ue)}}function Ke(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Xe=new Set;let Ye;function Ze(){Ye={r:0,c:[],p:Ye}}function Qe(){Ye.r||It(Ye.c),Ye=Ye.p}function tn(t,e){t&&t.i&&(Xe.delete(t),t.i(e))}function en(t,e,n,r){if(t&&t.o){if(Xe.has(t))return;Xe.add(t),Ye.c.push((()=>{Xe.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const nn={duration:0};function rn(t,e,n){let r,i,o=e(t,n),a=!1,l=0;function s(){r&&Ae(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=Dt,tick:u=jt,css:d}=o||nn;d&&(r=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=ee(t),{stylesheet:p,rules:f}=ke.get(h)||function(t,e){const n={stylesheet:ne(e),rules:{}};return ke.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Ce+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Kt()+e,p=h+n;i&&i.abort(),a=!0,Ue((()=>Ke(t,!0,"start"))),i=function(t){let e;return 0===Yt.size&&Xt(Zt),{promise:new Promise((n=>{Yt.add(e={c:t,f:n})})),abort(){Yt.delete(e)}}}((e=>{if(a){if(e>=p)return u(1,0),Ke(t,!0,"end"),s(),a=!1;if(e>=h){const t=c((e-h)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,Ae(t),zt(o)?(o=o(),(Le||(Le=Promise.resolve(),Le.then((()=>{Le=null}))),Le).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const on="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function an(t,e){en(t,1,1,(()=>{e.delete(t.key)}))}function ln(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let sn;function cn(t){t&&t.c()}function un(t,e){t&&t.l(e)}function dn(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:a,after_update:l}=t.$$;i&&i.m(e,n),r||Ue((()=>{const e=o.map(St).filter(zt);a?a.push(...e):It(e),t.$$.on_mount=[]})),l.forEach(Ue)}function hn(t,e){const n=t.$$;null!==n.fragment&&(It(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pn(t,e,n,r,i,o,a,l=[-1]){const s=Ee;Ve(t);const c=t.$$={fragment:null,ctx:null,props:o,update:jt,not_equal:i,bound:Ft(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ft(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(ze.push(t),Be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,It(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Qt=!0;const t=ge(e.target);c.fragment&&c.fragment.l(t),t.forEach(oe)}else c.fragment&&c.fragment.c();e.intro&&tn(t.$$.fragment),dn(t,e.target,e.anchor,e.customElement),Qt=!1,He()}Ve(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(sn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(St).filter(zt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){It(this.$$.on_disconnect)}$destroy(){hn(this,1),this.$destroy=jt}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class fn{$destroy(){hn(this,1),this.$destroy=jt}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gn=[];function mn(t,e=jt){let n;const r=new Set;function i(e){if(o=e,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=e,n)){const e=!gn.length;for(const e of r)e[1](),gn.push(e,t);if(e){for(let t=0;t<gn.length;t+=2)gn[t][0](gn[t+1]);gn.length=0}}var i,o}return{set:i,update:function(e){i(e(t))},subscribe:function(o,a=jt){const l=[o,a];return r.add(l),1===r.size&&(n=e(i)||jt),o(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function vn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t,o=e.length<2;return a=t=>{let n=!1;const a=[];let l=0,s=jt;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);o?t(n):s=zt(n)?n:jt},u=i.map(((t,e)=>Ot(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){It(u),s()}},{subscribe:mn(n,a).subscribe};var a}class yn{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=mn(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 $n={string:class extends yn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends yn{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 yn{convertValue(t){if("number"!=typeof t||isNaN(t)||t>n||t<r||t!==Math.round(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends yn{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 yn{convertValue(t){if("string"!=typeof t||!j(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends yn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function _n(t,e,n){if(!(e in $n))throw new Error("Unsupported variable type");return new $n[e](t,n)}function bn(t){return t.map(F).join(", ")}x("toString",[l],U),x("toString",[s],U),x("toString",[c],U),x("toString",[u],U),x("toString",[d],U),x("toNumber",[l],W),x("toNumber",[a],W),x("toInteger",[s],(function(t,e){if(e.value>n||e.value<r)throw new Error("Unable to convert value to Integer.");const i=e.value-e.value%1;return{type:l,value:i}})),x("toInteger",[a],(function(t,e){const i=Number(e.value);if(isNaN(i)||i%1!=0||i>n||i<r)throw new Error("Unable to convert value to Integer.");return{type:l,value:i}})),x("toInteger",[c],(function(t,e){return{type:l,value:e.value?1:0}})),x("toBoolean",[l],(function(t,e){if(1!==e.value&&0!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:e.value}})),x("toBoolean",[a],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:"true"===e.value?1:0}})),x("toColor",[a],(function(t,e){return{type:u,value:R(e.value)}})),x("toUrl",[a],(function(t,e){return{type:d,value:e.value}})),x("encodeUri",[a],(function(t,e){try{return{type:a,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),x("decodeUri",[a],(function(t,e){try{return{type:a,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),x("getIntegerValue",[a,l],q),x("getNumberValue",[a,s],q),x("getBooleanValue",[a,c],q),x("getStringValue",[a,a],q),x("getColorValue",[a,u],H),x("getColorValue",[a,a],H),x("getUrlValue",[a,d],G),x("getUrlValue",[a,a],G),x("parseUnixTime",[l],(function(t,e){return{type:h,value:new Date(1e3*e.value)}})),x("nowLocal",[],(function(){return{type:h,value:new Date}})),x("addMillis",[h,l],(function(t,e,n){return{type:h,value:new Date(e.value.getTime()+n.value)}})),x("setYear",[h,l],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(n.value),{type:h,value:r}})),x("setMonth",[h,l],(function(t,e,n){if(n.value<1||n.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCMonth(n.value-1),{type:h,value:r}})),x("setDay",[h,l],(function(t,e,n){const r=new Date(e.value);if(n.value<=0&&-1!==n.value||n.value>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(n.value," for date ").concat(S(e),"."));return r.setUTCDate(-1===n.value?0:n.value),{type:h,value:r}})),x("setHours",[h,l],(function(t,e,n){if(n.value<0||n.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCHours(n.value),{type:h,value:r}})),x("setMinutes",[h,l],(function(t,e,n){if(n.value<0||n.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCMinutes(n.value),{type:h,value:r}})),x("setSeconds",[h,l],(function(t,e,n){if(n.value<0||n.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCSeconds(n.value),{type:h,value:r}})),x("setMillis",[h,l],(function(t,e,n){if(n.value<0||n.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCMilliseconds(n.value),{type:h,value:r}})),x("getYear",[h],X),x("getMonth",[h],Y),x("getDay",[h],Z),x("getDayOfWeek",[h],Q),x("getHours",[h],tt),x("getMinutes",[h],et),x("getSeconds",[h],nt),x("getMillis",[h],rt),x("getIntervalSeconds",[l],(function(t,e){return At(e,1e3,60)})),x("getIntervalTotalSeconds",[l],(function(t,e){return At(e,1e3)})),x("getIntervalMinutes",[l],(function(t,e){return At(e,6e4,60)})),x("getIntervalTotalMinutes",[l],(function(t,e){return At(e,6e4)})),x("getIntervalHours",[l],(function(t,e){return At(e,Vt,24)})),x("getIntervalTotalHours",[l],(function(t,e){return At(e,Vt)})),x("getIntervalTotalDays",[l],(function(t,e){return At(e,864e5)})),x("getIntervalTotalWeeks",[l],(function(t,e){return At(e,6048e5)})),x("len",[a],(function(t,e){return{type:l,value:e.value.length}})),x("contains",[a,a],(function(t,e,n){return{type:c,value:e.value.includes(n.value)?1:0}})),x("substring",[a,l,l],(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:a,value:e.value.substring(n.value,r.value)}})),x("replaceAll",[a,a,a],(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:a,value:i}})),x("index",[a,a],(function(t,e,n){return{type:l,value:e.value.indexOf(n.value)}})),x("lastIndex",[a,a],(function(t,e,n){return{type:l,value:e.value.lastIndexOf(n.value)}})),x("trim",[a],(function(t,e){return{type:a,value:e.value.trim()}})),x("trimLeft",[a],(function(t,e){return{type:a,value:e.value.replace(/^\s+/,"")}})),x("trimRight",[a],(function(t,e){return{type:a,value:e.value.replace(/\s+$/,"")}})),x("toUpperCase",[a],(function(t,e){return{type:a,value:e.value.toUpperCase()}})),x("toLowerCase",[a],(function(t,e){return{type:a,value:e.value.toLowerCase()}})),x("padStart",[a,l,a],ot),x("padStart",[l,l,a],ot),x("padEnd",[a,l,a],at),x("padEnd",[l,l,a],at),x("div",[l,l],lt),x("div",[s,s],lt),x("mod",[l,l],st),x("mod",[s,s],st),x("mul",[{type:l,isVararg:!0}],ct),x("mul",[{type:s,isVararg:!0}],ct),x("sub",[{type:l,isVararg:!0}],ut),x("sub",[{type:s,isVararg:!0}],ut),x("sum",[{type:l,isVararg:!0}],dt),x("sum",[{type:s,isVararg:!0}],dt),x("abs",[l],ht),x("abs",[s],ht),x("max",[{type:l,isVararg:!0}],pt),x("max",[{type:s,isVararg:!0}],pt),x("min",[{type:l,isVararg:!0}],ft),x("min",[{type:s,isVararg:!0}],ft),x("maxNumber",[],(function(){return{type:s,value:i}})),x("minNumber",[],(function(){return{type:s,value:o}})),x("maxInteger",[],(function(){return{type:l,value:n}})),x("minInteger",[],(function(){return{type:l,value:r}})),x("round",[s],(function(t,e){const n=Math.sign(e.value);return{type:s,value:n*Math.round(Math.abs(e.value))}})),x("floor",[s],(function(t,e){return{type:s,value:Math.floor(e.value)}})),x("ceil",[s],(function(t,e){return{type:s,value:Math.ceil(e.value)}})),x("signum",[s],gt),x("signum",[l],gt),x("copySign",[s,s],mt),x("copySign",[l,l],mt),x("getColorAlpha",[a],$t),x("getColorAlpha",[u],$t),x("getColorRed",[a],_t),x("getColorRed",[u],_t),x("getColorGreen",[a],bt),x("getColorGreen",[u],bt),x("getColorBlue",[a],wt),x("getColorBlue",[u],wt),x("setColorAlpha",[a,s],xt),x("setColorAlpha",[u,s],xt),x("setColorRed",[a,s],kt),x("setColorRed",[u,s],kt),x("setColorGreen",[a,s],Et),x("setColorGreen",[u,s],Et),x("setColorBlue",[a,s],Ct),x("setColorBlue",[u,s],Ct),x("rgb",[s,s,s],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:u,value:B(i)}})),x("argb",[s,s,s,s],(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:u,value:B(o)}}));const wn={StringLiteral:function(t,e){return{type:a,value:e.value}},NumberLiteral:function(t,e){return{type:s,value:e.value}},IntegerLiteral:function(t,e){return{type:l,value:e.value}},BooleanLiteral:function(t,e){return{type:c,value:e.value?1:0}},UnaryExpression:function(t,e){const n=D(xn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};J("".concat(e.operator).concat(F(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===l)return{type:l,value:n.value*t};if(n.type===s)return{type:s,value:n.value*t};J("".concat(e.operator).concat(F(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=D(xn(t,e.test));if(n.type===c)return n.value?xn(t,e.consequent):xn(t,e.alternate);J("".concat(F(n)," ? ").concat(F(xn(t,e.consequent))," : ").concat(F(xn(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return xn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=S(xn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=D(xn(t,e.left));if(n.type!==c&&J("".concat(F(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:c,value:0};const r=D(xn(t,e.right));return r.type!==c&&J("".concat(F(n)," ").concat(e.operator," ").concat(F(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(I(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=xn(t,e.left),i=xn(t,e.right);if(r.type!==i.type&&J("".concat(F(r)," ").concat(e.operator," ").concat(F(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(I(r.type)," and ").concat(I(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===h&&n.type===h?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:c,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==s&&e.type!==l&&e.type!==h&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type."));const i=e.type===h?e.value.getTime():e.value,o=n.type===h?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:c,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==a&&e.type!==s&&e.type!==l&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),e.type===a)return"-"===t&&J("".concat(F(e)," - ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),{type:a,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===l&&(r=T(r)),{type:e.type,value:r}}(n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==l&&e.type!==s&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===l&&(r=T(r)),{type:e.type,value:r}}(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=>xn(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(w.has(o))r=w.get(o);else{const t=function(t,e){const n=b.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=k(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=>I(t.type))).join(", "),r="".concat(n,"(").concat(bn(i),")");"few"===t.type&&0===i.length?J(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?J(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):J(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){J("".concat(n,"(").concat(bn(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function xn(t,e){if(e.type in wn)return wn[e.type](t,e);throw new Error("Unsupported expression")}function kn(t,e){try{return function(t,e){let n="";if(E(e,{Variable(e){n||t.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(t,e),xn(t,e)}catch(t){return{type:"error",value:t.message}}}const En="divkit-b023c",Cn="divkit-bd259",An="divkit-d9099",Vn="divkit-c016b",jn="divkit-ee112",Dn="divkit-aa145",Pn="divkit-f0cba",Sn=Symbol("root");function Fn(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 In={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_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},zn={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"};function Tn(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 Mn(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 Nn(t){let e=Mn(t);return"0"===e&&(e+="em"),e}function Jn(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 On=Boolean;function Bn(t){if(1===t.length&&"solid"===t[0].type)return{color:A(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=A(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(On);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>A(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:Wn(t.bg.scale),pos:Ln(t.bg),image:'url("'+Jn(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(On);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=Nn(r.value):"relative"===r.type&&(i=Rn[r.value]));const o=Un(t.bg.center_x),a=Un(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=>A(t))).join(",")+")"}}({bg:t}):void 0)).filter(On).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 Rn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Un(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Nn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Wn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function Ln(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 qn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Hn(t,e){return e.has(t)}function Gn(t,e){e&&t.push(e)}function Kn(t,e,n){const r=[];Gn(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Gn(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Xn=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:i,templateContext:o}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},Yn=Symbol("state");function Zn(t){return Mn(t.top||0)+" "+Mn(t.right||0)+" "+Mn(t.bottom||0)+" "+Mn(t.left||0)}function Qn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function tr(t){return Qn(t)&&t>=0}function er(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]&&!tr(n[t]))return e;return Zn(t)}function nr(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const rr=Object.prototype.hasOwnProperty;function ir(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(!rr.call(e,i)||!ir(t[i],e[i]))return!1}return!0}function or(t,e){return ir(t,e)?e:t}function ar(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function lr(t,e){const n=Number(t);return isNaN(n)?e:n}function sr(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...sr(t))})):e.push(t),e}function cr(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]]&&!tr(t[n[r]]))return e;return t}function ur(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=>Mn((t||e)/n*10))).join(" ")}function dr(){}const hr=Symbol("action");function pr(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function fr(t){var e;let n,r,i,o,a,l,s,c;const u=t[19].default,d=Rt(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?Cn:An," ").concat(Vn):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Pn:"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:o=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=Pt(p,h[t]);return{c(){n=le("span"),d&&d.c(),this.h()},l(t){n=ye(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=ge(n);d&&d.l(e),e.forEach(oe),this.h()},h(){fe(n,p)},m(e,r){ie(e,n,r),d&&d.m(n,null),l=!0,s||(c=[Ht(a=t[5].call(null,n)),he(n,"click",(function(){zt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),he(n,"click",t[21]),he(n,"dblclick",(function(){var e,n;zt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),he(n,"touchstart",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),he(n,"touchmove",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),he(n,"touchend",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"touchcancel",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Lt(d,u,t,t[18],l?Wt(u,t[18],a,null):qt(t[18]),null),fe(n,p=ln(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?Cn:An," ").concat(Vn):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?Pn:"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&i!==(i=t[9]?"button":null))&&{role:i},(!l||512&a&&o!==(o=t[9]?0:null))&&{tabindex:o},16&a&&t[4]]))},i(t){l||(tn(d,t),l=!0)},o(t){en(d,t),l=!1},d(t){t&&oe(n),d&&d.d(t),s=!1,It(c)}}}function gr(t){var e;let n,r,i,o,a,l;const s=t[19].default,c=Rt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?Cn:An)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Pn:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=Pt(d,u[t]);return{c(){n=le("a"),c&&c.c(),this.h()},l(t){n=ye(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=ge(n);c&&c.l(e),e.forEach(oe),this.h()},h(){fe(n,d)},m(e,r){ie(e,n,r),c&&c.m(n,null),o=!0,a||(l=[Ht(i=t[5].call(null,n)),he(n,"click",t[10]),he(n,"click",t[20]),he(n,"dblclick",(function(){var e,n;zt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),he(n,"touchstart",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),he(n,"touchmove",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),he(n,"touchend",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"touchcancel",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"keydown",t[15])],a=!0)},p(e,i){var a;t=e,c&&c.p&&(!o||262144&i)&&Lt(c,s,t,t[18],o?Wt(s,t[18],i,null):qt(t[18]),null),fe(n,d=ln(u,[(!o||128&i)&&{href:t[7]},(!o||256&i)&&{target:t[8]},(!o||8&i)&&{style:t[3]},(!o||70&i&&r!==(r=t[2]+" "+(t[6]?Cn:An)+" "+(null!==(a=t[1])&&void 0!==a&&a.length?Pn:"")))&&{class:r},16&i&&t[4]]))},i(t){o||(tn(c,t),o=!0)},o(t){en(c,t),o=!1},d(t){t&&oe(n),c&&c.d(t),a=!1,It(l)}}}function mr(t){let e,n,r,i;const o=[gr,fr],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=de()},l(t){n.l(t),r=de()},m(t,n){a[e].m(t,n),ie(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(Ze(),en(a[c],1,1,(()=>{a[c]=null})),Qe(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),tn(n,1),n.m(r.parentNode,r))},i(t){i||(tn(n),i=!0)},o(t){en(n),i=!1},d(t){a[e].d(t),t&&oe(r)}}}function vr(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=dr}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=Fe(Sn),g=Fe(hr);Se(hr,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1;if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){v=e,m=o[t].target||void 0;break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(v="",f.logError(Fn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}})));let b=Boolean(h);return v&&!Hn(qn(v),f.getBuiltinProtocols())&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=qn(e);return n&&!Hn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=pr(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=pr(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){Ie.call(this,t,e)},function(e){Ie.call(this,t,e)}]}const yr=class extends fn{constructor(t){super(),pn(this,t,vr,mr,Nt,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},$r="divkit-bf253",_r="divkit-b921d";function br(t){return Qn(t)&&t>0}function wr(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(br(t.radius))return"blur(".concat(Nn(t.radius/2),")")}else e(Fn(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function xr(t,e,n){const r=t.slice();return r[5]=e[n],r}function kr(t){let e,n,r;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=_r),pe(e,"style",r=Tn(t[5].style))},m(t,n){ie(t,e,n)},p(t,n){2&n&&r!==(r=Tn(t[5].style))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Er(t){let e,n,r,i,o,a;return{c(){e=le("img"),this.h()},l(t){e=ye(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Mt(e.src,n=t[5].image_url)||pe(e,"src",n),pe(e,"alt",""),pe(e,"aria-hidden","true"),pe(e,"loading","lazy"),pe(e,"decoding","async"),pe(e,"class",r=_r),pe(e,"style",i=Tn(t[5].style))},m(n,r){ie(n,e,r),o||(a=he(e,"error",t[2]),o=!0)},p(t,r){2&r&&!Mt(e.src,n=t[5].image_url)&&pe(e,"src",n),2&r&&i!==(i=Tn(t[5].style))&&pe(e,"style",i)},d(t){t&&oe(e),o=!1,a()}}}function Cr(t){let e;function n(t,e){return t[5].image_url?Er:kr}let r=n(t),i=r(t);return{c(){i.c(),e=de()},l(t){i.l(t),e=de()},m(t,n){i.m(t,n),ie(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){i.d(t),t&&oe(e)}}}function Ar(t){let e,n,r=t[1],i=[];for(let e=0;e<r.length;e+=1)i[e]=Cr(xr(t,r,e));return{c(){e=le("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=ye(t,"SPAN",{class:!0});var n=ge(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(oe),this.h()},h(){pe(e,"class",n=$r+(t[0]?" divkit-dcad7":"")),xe(e,"border-radius",t[0],!1)},m(t,n){ie(t,e,n);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const o=xr(t,r,n);i[n]?i[n].p(o,a):(i[n]=Cr(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n=$r+(t[0]?" divkit-dcad7":""))&&pe(e,"class",n),1&a&&xe(e,"border-radius",t[0],!1)},i:jt,o:jt,d(t){t&&oe(e),ae(i,t)}}}function Vr(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=Fe(Sn);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=Bn([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=wr(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},i]}const jr=class extends fn{constructor(t){super(),pn(this,t,Vr,Ar,Nt,{background:3,radius:0})}};function Dr(t){let e,n;return e=new yr({props:{use:t[32],cls:t[0]+" "+Kn("outer",zn,t[15]),style:Tn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||zr(t[4]),$$slots:{default:[Fr]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+Kn("outer",zn,t[15])),8192&n[0]&&(r.style=Tn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||zr(t[4])),174&n[0]|131072&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Pr(t){let e,n;return e=new jr({props:{background:t[5],radius:t[2]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Sr(t){let e,n,r;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=zn.outer__border),pe(e,"style",r=Tn(t[1]))},m(t,n){ie(t,e,n)},p(t,n){2&n[0]&&r!==(r=Tn(t[1]))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Fr(t){let e,n,r,i=t[3]&&Pr(t);const o=t[109].default,a=Rt(o,t,t[110],null);let l=t[7]&&Sr(t);return{c(){i&&i.c(),e=de(),a&&a.c(),l&&l.c(),n=de()},l(t){i&&i.l(t),e=de(),a&&a.l(t),l&&l.l(t),n=de()},m(t,o){i&&i.m(t,o),ie(t,e,o),a&&a.m(t,o),l&&l.m(t,o),ie(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&tn(i,1)):(i=Pr(t),i.c(),tn(i,1),i.m(e.parentNode,e)):i&&(Ze(),en(i,1,1,(()=>{i=null})),Qe()),a&&a.p&&(!r||131072&s[3])&&Lt(a,o,t,t[110],r?Wt(o,t[110],s,null):qt(t[110]),null),t[7]?l?l.p(t,s):(l=Sr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(tn(i),tn(a,t),r=!0)},o(t){en(i),en(a,t),r=!1},d(t){i&&i.d(t),t&&oe(e),a&&a.d(t),l&&l.d(t),t&&oe(n)}}}function Ir(t){let e,n,r=!t[8]&&!t[9]&&Dr(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),768&n[0]&&tn(r,1)):(r=Dr(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function zr(t){return t.some((t=>"native"===t.name))}function Tr(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,V,j,D,P,S,F,I,z,T,M,N,J,O,B,R,U,W,L=jt,q=jt,H=jt,G=jt,K=jt,X=jt,Y=jt,Z=jt,Q=jt,tt=jt,et=jt,nt=jt,rt=jt,it=jt,ot=jt,at=jt,lt=jt;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:st={},$$scope:ct}=e;var ut,dt,ht,pt,ft,gt;let{json:mt={}}=e,{origJson:vt}=e,{templateContext:yt}=e,{cls:$t=""}=e,{style:_t}=e,{layoutParams:bt={}}=e,{customDescription:wt=!1}=e,{customPaddings:xt=!1}=e,{customActions:kt=""}=e,{additionalPaddings:Et=null}=e;const Ct={left:"start",center:"center",right:"end"},At={top:"start",center:"center",bottom:"end",baseline:"baseline"},Vt=Fe(Sn),Dt=Fe(Yn);let Pt,St,Ft,It,zt,Tt,Mt,Nt,Jt,Bt,Rt,Ut={},Wt={},Lt=!1,qt=1,Ht="transparent",Gt=0,Kt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Xt="",Yt=null,Zt="",Qt={},te=0,ee=0,ne=0,re=!1,ie=!1,oe={},ae=0,le=0,se=0,ce=!1,ue=!1,de=1;const he=bt.fakeElement?[]:mt.transition_triggers||["state_change","visibility_change"],pe=-1!==he.indexOf("state_change")&&mt.id,fe=-1!==he.indexOf("visibility_change")&&mt.id;let ge,me,ve,ye,$e,_e,be,we=[],xe=[],ke=[],Ee=[],Ce="";function Ae(t){const e=lr(t.start_value,1),r=lr(t.end_value,1),i=nr(t.start_delay,0),o=nr(t.duration,300),a=ar(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(78,ye=e),n(79,$e=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(80,_e=e),n(81,be=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Vt.logError(Fn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Ve,je,De=!1,Pe="visible",Se=0,Ie=0;return t.$$set=t=>{"json"in t&&n(33,mt=t.json),"origJson"in t&&n(34,vt=t.origJson),"templateContext"in t&&n(35,yt=t.templateContext),"cls"in t&&n(0,$t=t.cls),"style"in t&&n(36,_t=t.style),"layoutParams"in t&&n(37,bt=t.layoutParams),"customDescription"in t&&n(38,wt=t.customDescription),"customPaddings"in t&&n(39,xt=t.customPaddings),"customActions"in t&&n(40,kt=t.customActions),"additionalPaddings"in t&&n(41,Et=t.additionalPaddings),"$$scope"in t&&n(110,ct=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Vt.getDerivedFromVars(mt.border)),lt(),lt=Ot(r,(t=>n(108,W=t)))),2&t.$$.dirty[0]|4192256&t.$$.dirty[1]|32768&t.$$.dirty[3]){let t={},e={},r=!1,i="";if(W){if(W.has_shadow){const e=W.shadow;t["box-shadow"]=e?Mn((null===n(43,dt=null===n(42,ut=e.offset)||void 0===ut?void 0:ut.x)||void 0===dt?void 0:dt.value)||0)+" "+Mn((null===n(45,pt=null===n(44,ht=e.offset)||void 0===ht?void 0:ht.y)||void 0===pt?void 0:pt.value)||0)+" "+Mn(null!==n(46,ft=e.blur)&&void 0!==ft?ft:2)+" "+A(e.color||"#000000",null!==n(47,gt=e.alpha)&&void 0!==gt?gt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(W.stroke&&(r=!0,n(49,qt=nr(W.stroke.width,qt)),n(50,Ht=A(W.stroke.color,1,Ht)),e.border="".concat(Mn(qt)," solid ").concat(Ht)),W.corners_radius?(n(52,Kt=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]&&!tr(n[t]))return e;return t}(W.corners_radius,Kt)),e["border-radius"]=t["border-radius"]=ur(Kt)):W.corner_radius&&(n(51,Gt=nr(W.corner_radius,Gt)),n(52,Kt={"top-left":Gt,"top-right":Gt,"bottom-right":Gt,"bottom-left":Gt}),e["border-radius"]=t["border-radius"]=Mn(Gt)),r&&qt&&(W.corners_radius||W.corner_radius)){let t=Object.assign({},Kt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+qt/2})),i=ur(t)}}n(48,Ut=or(t,Ut)),n(1,Wt=or(e,Wt)),n(7,Lt=r),n(2,Xt=i)}if(4&t.$$.dirty[1]&&(n(30,i=Vt.getDerivedFromVars(mt.paddings)),at(),at=Ot(i,(t=>n(107,U=t)))),4194560&t.$$.dirty[1]|16384&t.$$.dirty[3]&&n(53,Yt=cr(U&&!xt?U:void 0,Yt)),4195328&t.$$.dirty[1]&&n(89,o=Zn(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}(Yt,Et))),4&t.$$.dirty[1]&&(n(29,a=Vt.getDerivedFromVars(mt.margins)),it(),it=Ot(a,(t=>n(105,B=t)))),8388608&t.$$.dirty[1]|4096&t.$$.dirty[3]&&n(54,Zt=er(B,Zt)),4&t.$$.dirty[1]&&(n(28,l=Vt.getDerivedFromVars(mt.width)),nt(),nt=Ot(l,(t=>n(103,J=t)))),4&t.$$.dirty[1]&&(n(27,s=Vt.getDerivedFromVars(mt.alignment_horizontal)),ot(),ot=Ot(s,(t=>n(106,R=t)))),285212736&t.$$.dirty[1]|13312&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)n(59,te=nr(null==J?void 0:J.value,te)),e=Mn(te);else if("wrap_content"!==u&&(bt.overlapParent||"match_parent"!==u&&u||!bt.parentHorizontalWrapContent))t="parent","vertical"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,Vt.logError(Fn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===bt.parentLayoutOrientation?e="calc(100% - ".concat(Nn(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===bt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,bt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===bt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=J;t.min_size&&tr(t.min_size.value)&&(r=Mn(t.min_size.value)),t.max_size&&tr(t.max_size.value)&&(i=Mn(t.max_size.value))}"match_parent"!==u&&u||Vt.logError(Fn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=R;o["halign-self"]="left"===t||"center"===t||"right"===t?Ct[t]:bt.parentHAlign||"start"}t&&(o.width=t),n(56,Ft=e),n(57,It=r),n(58,zt=i),n(60,ee=a),n(61,ne=l),n(55,Qt=or(o,Qt)),n(62,re=s),n(8,ie=c)}if(4&t.$$.dirty[1]&&(n(26,c=Vt.getDerivedFromVars(mt.height)),et(),et=Ot(c,(t=>n(102,N=t)))),4&t.$$.dirty[1]&&(n(25,u=Vt.getDerivedFromVars(mt.alignment_vertical)),rt(),rt=Ot(u,(t=>n(104,O=t)))),64&t.$$.dirty[1]|34&t.$$.dirty[2]|6656&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==N?void 0:N.type;if("fixed"===u)n(67,ae=nr(null==N?void 0:N.value,ae)),e=Mn(ae);else if("match_parent"!==u||!bt.overlapParent&&bt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==N?void 0:N.constrained)||"match_parent"===u&&bt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===bt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=N;(null==t?void 0:t.min_size)&&tr(t.min_size.value)&&(r=Mn(t.min_size.value)),(null==t?void 0:t.max_size)&&tr(t.max_size.value)&&(i=Mn(t.max_size.value))}"match_parent"===u&&Vt.logError(Fn(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(Fn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===bt.parentLayoutOrientation?e="calc(100% - ".concat(Nn(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===bt.parentContainerOrientation&&(a=(null==N?void 0:N.weight)||1,bt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=O;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===bt.parentContainerOrientation?o["valign-self"]=At[t]:o["valign-self"]=bt.parentVAlign||"start"}t&&(o.height=t),n(64,Tt=e),n(65,Mt=r),n(66,Nt=i),n(68,le=a),n(69,se=l),n(63,oe=or(o,oe)),n(70,ce=s),n(9,ue=c)}var e,st;if(64&t.$$.dirty[1]&&n(92,d=!!bt.overlapParent||void 0),64&t.$$.dirty[1]|1536&t.$$.dirty[3]&&n(91,h=bt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==N?void 0:N.type)),64&t.$$.dirty[1]&&n(90,p=bt.gridArea?"".concat(bt.gridArea.y+1,"/").concat(bt.gridArea.x+1,"/span ").concat(bt.gridArea.rowSpan,"/span ").concat(bt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Vt.getDerivedFromVars(mt.alpha)),tt(),tt=Ot(f,(t=>n(101,M=t)))),512&t.$$.dirty[2]|256&t.$$.dirty[3]&&(n(71,(st=de,de=!tr(e=M)||void 0===e||e>1?st:Number(e))),n(72,Jt=1===de?void 0:de)),4&t.$$.dirty[1]&&(n(23,g=Vt.getDerivedFromVars(mt.accessibility)),Q(),Q=Ot(g,(t=>n(100,T=t)))),128&t.$$.dirty[1]|128&t.$$.dirty[3]&&(n(6,St=void 0),T&&!wt&&T.description&&(n(6,St={}),n(6,St["aria-label"]=T.description,St))),4&t.$$.dirty[1]&&(n(22,m=Vt.getDerivedFromVars(mt.background)),Z(),Z=Ot(m,(t=>n(5,z=t)))),44&t.$$.dirty[0]&&(n(73,Bt={}),n(3,Rt=!1),z&&(n(3,Rt=z.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Xt)),!Rt))){const t=Bn(z);n(73,Bt["background-color"]=t.color,Bt),n(73,Bt["background-image"]=t.image,Bt),n(73,Bt["background-size"]=t.size,Bt),n(73,Bt["background-position"]=t.position,Bt),n(73,Bt["background-repeat"]="no-repeat",Bt)}if(4&t.$$.dirty[1]&&(n(74,ge=void 0),pe&&mt.transition_in&&Vt.isRunning("stateChange")&&n(74,ge=!0)),4&t.$$.dirty[1]&&(n(76,ve=void 0),pe&&mt.transition_change&&Vt.isRunning("stateChange")&&Dt.hasTransitionChange(mt.id)&&n(76,ve=!0)),4&t.$$.dirty[1]&&(n(21,v=Vt.getDerivedFromVars(mt.action)),X(),X=Ot(v,(t=>n(98,F=t)))),4&t.$$.dirty[1]&&(n(20,y=Vt.getDerivedFromVars(mt.actions)),Y(),Y=Ot(y,(t=>n(99,I=t)))),4&t.$$.dirty[1]&&(n(19,$=Vt.getDerivedFromVars(mt.doubletap_actions)),K(),K=Ot($,(t=>n(97,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Vt.getDerivedFromVars(mt.longtap_actions)),G(),G=Ot(_,(t=>n(96,P=t)))),576&t.$$.dirty[1]|120&t.$$.dirty[3]){let t=I||F&&[F]||[],e=S||[],r=P||[];bt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Vt.logError(Fn(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Vt.logError(Fn(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Vt.logError(Fn(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&kt&&(t=[],e=[],r=[],Vt.logError(Fn(new Error('Cannot use action on component "'.concat(kt,'"'))))),n(10,we=t),n(11,xe=e),n(12,ke=r)}if(4&t.$$.dirty[1]&&(n(17,b=Vt.getDerivedFromVars(mt.action_animation)),H(),H=Ot(b,(t=>n(95,D=t)))),16&t.$$.dirty[0]|4&t.$$.dirty[3]&&D&&(n(4,Ee=sr(D)),n(77,Ce=Ee.map(Ae).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Vt.getDerivedFromVars(mt.visibility)),q(),q=Ot(w,(t=>n(94,j=t)))),3145728&t.$$.dirty[2]|2&t.$$.dirty[3]){const t=Pe,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(j,Pe);t!==e&&(!De||"visible"!==Pe&&"visible"!==e?n(83,Pe=e):async function(t){n(83,Pe=t);const e="visible"===t?"in":"out",r="in"===e?mt.transition_in:mt.transition_out;fe&&r&&(await Re(),"in"===e&&n(75,me=!0),Dt.runVisibilityTransition(Object.assign(Object.assign({},mt),{visibility:"visible"}),yt,r,Pt,e).then((()=>{"in"===e&&n(75,me=!1)})).catch((t=>{throw"in"===e&&n(75,me=!1),t})))}(e)),De||n(82,De=!0)}if(16777280&t.$$.dirty[1]|1612771330&t.$$.dirty[2]&&n(15,x=Object.assign(Object.assign(Object.assign({},Qt),oe),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":bt.scrollSnap,"hide-on-transition-in":ge||me||ve,visibility:Pe,"has-action-animation":Boolean(Ce),"parent-flex":bt.parentContainerOrientation||void 0,"parent-grid":Boolean(bt.gridArea)||void 0})),4&t.$$.dirty[1]&&(n(14,k=Vt.getDerivedFromVars(mt.transform)),L(),L=Ot(k,(t=>n(93,V=t)))),12582912&t.$$.dirty[2]|1&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(84,Se=lr(t.value,Se));const e="pivot-fixed"===t.type?Mn(Se):"".concat(Se,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(85,Ie=lr(r.value,Ie));const i="pivot-fixed"===r.type?Mn(Ie):"".concat(Ie,"%");n(86,Ve="".concat(e," ").concat(i)),n(87,je="rotate(".concat(V.rotation,"deg)"))}536870912&t.$$.dirty[1]|321&t.$$.dirty[2]&&n(88,E=re||ce?"100%":ee||le?0:void 0),1854013472&t.$$.dirty[1]|521112796&t.$$.dirty[2]&&n(13,C=Object.assign(Object.assign(Object.assign(Object.assign({},_t),Bt),Ut),{width:Ft,"min-width":It,"max-width":zt,height:Tt,"min-height":Mt,"max-height":Nt||(null==_t?void 0:_t["max-height"]),"grid-area":p,padding:o,margin:Zt,opacity:Jt,transition:Ce,"transform-origin":Ve,transform:je,"flex-grow":ee||le||void 0,"flex-shrink":ne||se?1:void 0,"flex-basis":E,"--divkit-animation-opacity-start":ye,"--divkit-animation-opacity-end":$e,"--divkit-animation-scale-start":_e,"--divkit-animation-scale-end":be}))},[$t,Wt,Xt,Rt,Ee,z,St,Lt,ie,ue,we,xe,ke,C,k,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,i,r,function(t){Pt=t,pe&&mt.transition_in&&Dt.registerChildWithTransitionIn(mt,yt,mt.transition_in,t).then((()=>{n(74,ge=!1)})).catch((t=>{throw n(74,ge=!1),t})),pe&&mt.transition_out&&Dt.registerChildWithTransitionOut(mt,yt,mt.transition_out,t),pe&&mt.transition_change&&Dt.registerChildWithTransitionChange(mt,yt,mt.transition_change,t).then((()=>{n(76,ve=!1)})).catch((t=>{throw n(76,ve=!1),t}));const e=bt.fakeElement?[]:mt.visibility_actions||mt.visibility_action&&[mt.visibility_action];Array.isArray(e)&&e.length&&function(t,e){let{visibilityActions:n,rootCtx:r}=e;const i=n.map(((t,e)=>({index:e,action:t,visible:!1,count:0,finished:!1}))),o=n.map((t=>r.getJsonWithVars({visibility_percentage:t.visibility_percentage,visibility_duration:t.visibility_duration,log_limit:t.log_limit}))),a=[...new Set([...n.map(((t,e)=>(o[e].visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{i.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=o[e.index],n=0===t.log_limit?1/0:t.log_limit||1;++e.count>=n&&(e.finished=!0);const i=r.getJsonWithVars(e.action),a=i.url;if(a){const t=qn(a);t&&!Hn(t,r.getBuiltinProtocols())&&("div-action"===t?r.execAction(i):i.log_id&&r.execCustomAction(i))}r.logStat("visible",i)}),o[e.index].visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:a}).observe(t)}(t,{visibilityActions:e,rootCtx:Vt});const r=mt.id;r&&Dt.registerChild(r);let i=null;return Xn&&!bt.fakeElement&&(i=Xn(t,{json:mt,origJson:vt,rootCtx:Vt,templateContext:yt})),{destroy(){r&&Dt.unregisterChild(r),i&&i.destroy()}}},mt,vt,yt,_t,bt,wt,xt,kt,Et,ut,dt,ht,pt,ft,gt,Ut,qt,Ht,Gt,Kt,Yt,Zt,Qt,Ft,It,zt,te,ee,ne,re,oe,Tt,Mt,Nt,ae,le,se,ce,de,Jt,Bt,ge,me,ve,Ce,ye,$e,_e,be,De,Pe,Se,Ie,Ve,je,E,o,p,h,d,V,j,D,P,S,F,I,T,M,N,J,O,B,R,U,W,st,ct]}const Mr=class extends fn{constructor(t){super(),pn(this,t,Tr,Ir,Nt,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41},null,[-1,-1,-1,-1])}},Nr={"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 Jr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Or(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Br(t,e){return Or(t)||e}function Rr(t){let e,n;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=Nr["text-range__top-offset"]),xe(e,"margin-top",t[4],!1)},m(t,n){ie(t,e,n)},p(t,n){16&n&&xe(e,"margin-top",t[4],!1)},d(t){t&&oe(e)}}}function Ur(t){let e;return{c(){e=ce(t[0])},l(n){e=_e(n,t[0])},m(t,n){ie(t,e,n)},p(t,n){1&n&&we(e,t[0])},d(t){t&&oe(e)}}}function Wr(t){let e,n,r,i=t[4]&&Rr(t);return n=new yr({props:{cls:Kn("text-range",Nr,t[3]),actions:t[1],style:Tn(t[2]),$$slots:{default:[Ur]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=de(),cn(n.$$.fragment)},l(t){i&&i.l(t),e=de(),un(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),ie(t,e,o),dn(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Rr(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Kn("text-range",Nr,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Tn(t[2])),524289&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(tn(n.$$.fragment,t),r=!0)},o(t){en(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&oe(e),hn(n,t)}}}function Lr(t,e,n){let r,i,o,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=Jr(p.font_size,v)),2112&t.$$.dirty&&br(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&tr(p.letter_spacing)&&n(13,$=Mn(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=Br(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=A(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?Mn(p.top_offset):""),64&t.$$.dirty&&n(18,i=p.background?Bn([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==A(p.border.stroke.color)&&br(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,o=Jr(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":Mn(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==i?void 0:i.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(Mn(b.width)," ").concat(b.color):void 0,"border-radius":o?Mn(o):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,o,i]}const qr=class extends fn{constructor(t){super(),pn(this,t,Lr,Wr,Nt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Hr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Gr(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Kr(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Xr}=on;function Yr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function Zr(t){let e,n;return e=new Mr({props:{cls:Kn("text",In,t[13])+" "+(t[6]?"":Vn),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[oi]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=Kn("text",In,t[13])+" "+(t[6]?"":Vn)),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]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Qr(t){let e,n;return e=new qr({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ti(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=ii(Yr(t,r,e));const o=t=>en(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=de()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=de()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);ie(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=Yr(t,r,a);i[a]?(i[a].p(o,n),tn(i[a],1)):(i[a]=ii(o),i[a].c(),tn(i[a],1),i[a].m(e.parentNode,e))}for(Ze(),a=r.length;a<i.length;a+=1)o(a);Qe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)tn(i[t]);n=!0}},o(t){i=i.filter(Xr);for(let t=0;t<i.length;t+=1)en(i[t]);n=!1},d(t){ae(i,t),t&&oe(e)}}}function ei(t){let e,n,r,i,o,a,l,s;return{c(){e=le("span"),n=le("img"),this.h()},l(t){e=ye(t,"SPAN",{style:!0});var r=ge(e);n=ye(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(oe),this.h()},h(){pe(n,"class",r=In.text__image),Mt(n.src,i=t[55].image.url)||pe(n,"src",i),pe(n,"loading","lazy"),pe(n,"decoding","async"),pe(n,"aria-hidden","true"),pe(n,"alt",""),pe(n,"style",o=Tn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),pe(e,"style",a=Tn(t[55].image.wrapperStyle))},m(r,i){ie(r,e,i),re(e,n),l||(s=he(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!Mt(n.src,i=t[55].image.url)&&pe(n,"src",i),1536&r[0]&&o!==(o=Tn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&pe(n,"style",o),1024&r[0]&&a!==(a=Tn(t[55].image.wrapperStyle))&&pe(e,"style",a)},i:jt,o:jt,d(t){t&&oe(e),l=!1,s()}}}function ni(t){let e,n,r=t[55].text&&ri(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&tn(r,1)):(r=ri(t),r.c(),tn(r,1),r.m(e.parentNode,e)):r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe())},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function ri(t){let e,n;return e=new qr({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ii(t){let e,n,r,i;const o=[ni,ei],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=de()},l(t){n&&n.l(t),r=de()},m(t,n){~e&&a[e].m(t,n),ie(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(Ze(),en(a[s],1,1,(()=>{a[s]=null})),Qe()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),tn(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(tn(n),i=!0)},o(t){en(n),i=!1},d(t){~e&&a[e].d(t),t&&oe(r)}}}function oi(t){let e,n,r,i,o,a;const l=[ti,Qr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=le("span"),r.c(),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0});var n=ge(e);r.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",i=Kn("text__inner",In,t[12])),pe(e,"style",o=Tn(t[11]))},m(t,r){ie(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Ze(),en(s[d],1,1,(()=>{s[d]=null})),Qe(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),tn(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=Kn("text__inner",In,t[12])))&&pe(e,"class",i),(!a||2048&u[0]&&o!==(o=Tn(t[11])))&&pe(e,"style",o)},i(t){a||(tn(r),a=!0)},o(t){en(r),a=!1},d(t){t&&oe(e),s[n].d()}}}function ai(t){let e,n,r=!t[8]&&Zr(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[8]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),256&n[0]&&tn(r,1)):(r=Zr(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function li(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,V,j,D,P,S,F,I,z,T,M=jt,N=jt,J=jt,O=jt,B=jt,R=jt,U=jt,W=jt,L=jt,q=jt,H=jt,G=jt,K=jt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=Fe(Sn);let et=!1,nt="",rt=12,it=1.25,ot=!1,at="",lt="",st=!1,ct="left",ut="top",dt="",ht="",pt=!1,ft=[],gt=[];return Pe((()=>{gt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=Ot(r,(t=>n(51,T=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=T,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(Fn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,i=tt.getDerivedFromVars(X.ranges)),N(),N=Ot(i,(t=>n(41,k=t)))),1&t.$$.dirty[0]&&(n(24,o=tt.getDerivedFromVars(X.images)),M(),M=Ot(o,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),J(),J=Ot(a,(t=>n(27,E=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=Ot(l,(t=>n(50,z=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=Jr(z,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),H(),H=Ot(s,(t=>n(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;br(t)?(n(29,it=Number(t)/rt),n(9,ot=!0)):n(9,ot=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),W(),W=Ot(c,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(7,u=1===P),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(P&&P>1){let n=Number(P);t=n*it+"em",k||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,st=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),q(),q=Ot(d,(t=>n(48,F=t)))),131076&t.$$.dirty[1]&&n(33,ct=Hr(F,ct)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),L(),L=Ot(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,ut=Gr(S,ut)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!k||nt&&1===k.length&&k[0]&&0===k[0].start&&"number"==typeof k[0].end&&k[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),U(),U=Ot(f,(t=>n(45,D=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(D)!==Boolean(k&&k[0]&&k[0].text_color)),50576&t.$$.dirty[1]){let t="";P&&p&&g&&(t=A(D||k&&k[0]&&k[0].text_color,1,dt)),n(35,dt=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=Ot(m,(t=>n(44,j=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===j?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=Ot(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=Bn([V]);e.image&&(t=e.image)}n(36,ht=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),O(),O=Ot($,(t=>n(42,C=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,pt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(C,pt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let i=[];if(gt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),gt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,ft=[]);const o=t;let a=e||[{start:0,end:o.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},E),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},E),...c),n=Mn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Mn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Mn(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=Kr(t.image.tint_mode,"source_in");if(l){const e=A(t.image.tint_color);a=tt.addSvgFilter(e,s),gt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},E)}),n(10,ft=i)}(nt,k,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:st,halign:ct,valign:ut,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(ht)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":Mn(rt),"line-height":it,"max-height":at,"-webkit-line-clamp":lt,color:dt,"background-image":ht})},[X,Y,Z,Q,nt,rt,pt,u,et,ot,ft,w,b,_,$,y,m,f,h,d,c,s,l,a,o,i,r,E,function(t){t.target&&"classList"in t.target&&t.target.classList.add(In.text__image_hidden)},it,at,lt,st,ct,ut,dt,ht,v,g,p,x,k,C,V,j,D,P,S,F,I,z,T]}const si={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function ci(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)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?A(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=A(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(Mn(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}function ui(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function di(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(Mn).join(" ")}let hi;function pi(){if(void 0!==hi)return hi;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),hi=1===t.scrollHeight,document.body.removeChild(t),hi}const fi="divkit-a7719",gi="divkit-f6e9a";function mi(t,e,n){const r=t.slice();return r[13]=e[n],r}function vi(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=le("div"),n=le("div"),i=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var r=ge(e);n=ye(r,"DIV",{class:!0}),ge(n).forEach(oe),i=be(r),r.forEach(oe),this.h()},h(){pe(n,"class",r=gi),xe(n,"width",a,!1),xe(n,"height",l,!1),xe(n,"border-radius",s,!1),xe(n,"background",t[13].style.background,!1),xe(n,"box-shadow",t[13].style.boxShadow,!1),pe(e,"class",o="divkit-c770e"),xe(e,"left",c,!1),xe(e,"top",u,!1),xe(e,"width",d,!1),xe(e,"height",h,!1)},m(t,r){ie(t,e,r),re(e,n),re(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&xe(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&xe(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&xe(n,"border-radius",s,!1),2&r&&xe(n,"background",t[13].style.background,!1),2&r&&xe(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&xe(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&xe(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&xe(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&xe(e,"height",h,!1)},d(t){t&&oe(e)}}}function yi(t){let e,n,r,i,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=vi(mi(t,o,e));return{c(){e=le("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(oe),this.h()},h(){pe(e,"class",n=fi)},m(n,o){ie(n,e,o);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(i=he(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=t[1],n=0;n<o.length;n+=1){const i=mi(t,o,n);a[n]?a[n].p(i,r):(a[n]=vi(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:jt,o:jt,d(n){n&&oe(e),ae(a,n),t[10](null),r=!1,i()}}}function $i(t,e,n,r,i,o){o?t.push({top:n.bottom,left:i.left,width:i.right-i.left,height:r.top-n.bottom,style:e}):t.push({top:i.top,left:n.right,width:r.left-n.right,height:i.bottom-i.top,style:e})}function _i(t,e,n,r){const i={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)&&$i(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)$i(t,e.style,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];$i(t,e.style,o,{top:o.bottom+e.style.height,right:0,bottom:0,left:o.right+e.style.width},i,r)}}function bi(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=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();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(zn.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.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&&_i(c,o,e,"vertical"===i);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)))};u.push(n)})),a&&_i(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(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(gi))&&!(null==n?void 0:n.contains(fi))}))&&l()}return De((()=>{n(6,u=!0)})),Pe((()=>{n(6,u=!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)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){Te[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const wi=class extends fn{constructor(t){super(),pn(this,t,bi,yi,Nt,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:xi}=on;function ki(t,e,n){const r=t.slice();return r[46]=e[n],r}function Ei(t){let e,n;return e=new Mr({props:{cls:Kn("container",si,t[10]),style:t[9],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[14],$$slots:{default:[Vi]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Kn("container",si,t[10])),512&n[0]&&(r.style=t[9]),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]),16384&n[0]&&(r.additionalPaddings=t[14]),2097632&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ci(t){let e,n;return e=new Ha({props:{layoutParams:t[8],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),2097152&n[0]&&(r.div=t[46].json),2097152&n[0]&&(r.templateContext=t[46].templateContext),2097152&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ai(t){let e,n;return e=new wi({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Vi(t){let e,n,r,i=t[21],o=[];for(let e=0;e<i.length;e+=1)o[e]=Ci(ki(t,i,e));const a=t=>en(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&Ai(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=ue(),l&&l.c(),n=de()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=be(t),l&&l.l(t),n=de()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);ie(t,e,i),l&&l.m(t,i),ie(t,n,i),r=!0},p(t,r){if(2097408&r[0]){let n;for(i=t[21],n=0;n<i.length;n+=1){const a=ki(t,i,n);o[n]?(o[n].p(a,r),tn(o[n],1)):(o[n]=Ci(a),o[n].c(),tn(o[n],1),o[n].m(e.parentNode,e))}for(Ze(),n=i.length;n<o.length;n+=1)a(n);Qe()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&tn(l,1)):(l=Ai(t),l.c(),tn(l,1),l.m(n.parentNode,n)):l&&(Ze(),en(l,1,1,(()=>{l=null})),Qe())},i(t){if(!r){for(let t=0;t<i.length;t+=1)tn(o[t]);tn(l),r=!0}},o(t){o=o.filter(xi);for(let t=0;t<o.length;t+=1)en(o[t]);en(l),r=!1},d(t){ae(o,t),t&&oe(e),l&&l.d(t),t&&oe(n)}}}function ji(t){let e,n,r=!t[4]&&Ei(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[4]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),16&n[0]&&tn(r,1)):(r=Ei(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function Di(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A=jt,V=jt,j=jt,D=jt,P=jt,S=jt,F=jt,I=jt,z=jt;var T,M,N,J,O,B;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z()));let{json:R={}}=e,{templateContext:U}=e,{origJson:W}=e,{layoutParams:L}=e;const q={left:"start",center:"center",right:"end"},H={top:"start",center:"center",bottom:"end",baseline:"baseline"},G=["rounded_rectangle","circle"],K=Fe(Sn);let X,Y=!1,Z="vertical",Q="top",tt="left",et=null,nt=null,rt={};return t.$$set=t=>{"json"in t&&n(0,R=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(32,r=R.items),2&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,Y=!1):(n(4,Y=!0),K.logError(Fn(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(21,i=(!Y&&r||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=K.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(20,o=K.getDerivedFromVars(R.orientation)),z(),z=Ot(o,(t=>n(41,C=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(5,Z=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,Z)),1&t.$$.dirty[0]&&(n(19,a=K.getDerivedFromVars(R.content_alignment_vertical)),I(),I=Ot(a,(t=>n(40,E=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(28,Q=Gr(E,Q)),1&t.$$.dirty[0]&&(n(18,l=K.getDerivedFromVars(R.content_alignment_horizontal)),F(),F=Ot(l,(t=>n(39,k=t)))),536870912&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(29,tt=Hr(k,tt)),1&t.$$.dirty[0]&&(n(17,s=K.getDerivedFromVars(R.layout_mode)),S(),S=Ot(s,(t=>n(38,x=t)))),128&t.$$.dirty[1]&&n(31,c="wrap"===x),1&t.$$.dirty[0]&&(n(16,u=K.getDerivedFromVars(R.separator)),P(),P=Ot(u,(t=>n(37,w=t)))),29360224&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==Z&&pi()){const t=ci(w.style,G,(null==et?void 0:et.style)||null);n(6,et=t?{show_at_start:Boolean(null!==n(22,T=w.show_at_start)&&void 0!==T&&T),show_at_end:Boolean(null!==n(23,M=w.show_at_end)&&void 0!==M&&M),show_between:Boolean(null===n(24,N=w.show_between)||void 0===N||N),style:t}:null)}else n(6,et=null);if(1&t.$$.dirty[0]&&(n(15,d=K.getDerivedFromVars(R.line_separator)),D(),D=Ot(d,(t=>n(36,b=t)))),234881184&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==Z&&pi()){const t=ci(b.style,G,(null==nt?void 0:nt.style)||null);n(7,nt=t?{show_at_start:Boolean(null!==n(25,J=b.show_at_start)&&void 0!==J&&J),show_at_end:Boolean(null!==n(26,O=b.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===n(27,B=b.show_between)||void 0===B||B),style:t}:null)}else n(7,nt=null);if(224&t.$$.dirty[0]&&n(14,h=et||nt?function(t,e,n){const r={};return ui(r,e,"vertical"===t),ui(r,n,"horizontal"===t),r}(Z,et,nt):null),1&t.$$.dirty[0]&&(n(13,p=K.getDerivedFromVars(R.aspect)),j(),j=Ot(p,(t=>n(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.ratio;t&&br(t)?n(30,X=t):n(30,X=void 0)}if(1&t.$$.dirty[0]&&(n(12,f=K.getDerivedFromVars(R.width)),A(),A=Ot(f,(t=>n(33,y=t)))),1&t.$$.dirty[0]&&(n(11,g=K.getDerivedFromVars(R.height)),V(),V=Ot(g,(t=>n(34,$=t)))),805306664&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"overlap"===Z&&(t.overlapParent=!0),"horizontal"!==Z&&(t.parentHAlign=q[tt],(!$||"wrap_content"===$.type||"match_parent"===$.type&&(null==L?void 0:L.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==Z&&(t.parentVAlign=H[Q],("wrap_content"===(null==y?void 0:y.type)||"match_parent"===(null==y?void 0:y.type)&&(null==L?void 0:L.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===Z&&(t.parentContainerOrientation="horizontal"),"vertical"===Z&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(8,rt=or(t,rt))}805306400&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(10,m={orientation:Z,valign:Q,halign:tt,wrap:c}),1073742048&t.$$.dirty[0]&&n(9,v={gap:et||nt?di(Z,et,nt):void 0,"aspect-ratio":X})},[R,U,W,L,Y,Z,et,nt,rt,v,m,g,f,p,h,d,u,s,l,a,o,i,T,M,N,J,O,B,Q,tt,X,c,r,y,$,_,b,w,x,k,E,C]}const Pi={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Si(t,e){return"vertical"===t||"horizontal"===t?t:e}function Fi(t){let e,n,r;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=Pi.separator__inner),pe(e,"style",r=Tn(t[5]))},m(t,n){ie(t,e,n)},p(t,n){32&n&&r!==(r=Tn(t[5]))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Ii(t){let e,n=t[6]&&Fi(t);return{c(){n&&n.c(),e=de()},l(t){n&&n.l(t),e=de()},m(t,r){n&&n.m(t,r),ie(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Fi(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&oe(e)}}}function zi(t){let e,n;return e=new Mr({props:{cls:Kn("separator",Pi,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ii]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Kn("separator",Pi,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||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ti(t,e,n){let r,i,o,a,l,s,c,u=jt;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=Fe(Sn);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=Ot(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Si(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=A(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":Mn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?Mn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,i,r,m,v,a,o,c]}const Mi={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 Ni(t){let e,n;return e=new Mr({props:{cls:Kn("image",Mi,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Ri]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Kn("image",Mi,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ji(t){let e,n,r,i,o,a,l;return{c(){e=le("img"),this.h()},l(t){e=ye(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){pe(e,"class",n=Mi.image__image),Mt(e.src,r=t[4]===Li?Wi:t[7])||pe(e,"src",r),pe(e,"loading","lazy"),pe(e,"decoding","async"),pe(e,"style",i=Tn(t[9])),pe(e,"alt",t[16]),pe(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){ie(n,e,r),a||(l=[he(e,"load",t[26]),he(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!Mt(e.src,r=t[4]===Li?Wi:t[7])&&pe(e,"src",r),512&n[0]&&i!==(i=Tn(t[9]))&&pe(e,"style",i),65536&n[0]&&pe(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&pe(e,"aria-hidden",o)},d(t){t&&oe(e),a=!1,It(l)}}}function Oi(t){let e,n,r,i,o,a,l,s,c,u="".concat(t[5],"%");return{c(){e=le("span"),n=le("img"),this.h()},l(t){e=ye(t,"SPAN",{class:!0});var r=ge(e);n=ye(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(oe),this.h()},h(){pe(n,"class",r=Mi.image__image),Mt(n.src,i=t[4]===Li?Wi:t[7])||pe(n,"src",i),pe(n,"loading","lazy"),pe(n,"decoding","async"),pe(n,"style",o=Tn(t[9])),pe(n,"alt",t[16]),pe(n,"aria-hidden",a=t[16]?null:"true"),pe(e,"class",l=Mi["image__aspect-wrapper"]),xe(e,"padding-bottom",u,!1)},m(r,i){ie(r,e,i),re(e,n),s||(c=[he(n,"load",t[26]),he(n,"error",t[27])],s=!0)},p(t,r){144&r[0]&&!Mt(n.src,i=t[4]===Li?Wi:t[7])&&pe(n,"src",i),512&r[0]&&o!==(o=Tn(t[9]))&&pe(n,"style",o),65536&r[0]&&pe(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&pe(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&xe(e,"padding-bottom",u,!1)},d(t){t&&oe(e),s=!1,It(c)}}}function Bi(t){let e;function n(t,e){return t[10].aspect?Oi:Ji}let r=n(t),i=r(t);return{c(){i.c(),e=de()},l(t){i.l(t),e=de()},m(t,n){i.m(t,n),ie(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){i.d(t),t&&oe(e)}}}function Ri(t){let e,n=t[6],r=Bi(t);return{c(){r.c(),e=de()},l(t){r.l(t),e=de()},m(t,n){r.m(t,n),ie(t,e,n)},p(t,i){64&i[0]&&Nt(n,n=t[6])?(r.d(1),r=Bi(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&oe(e),r.d(t)}}}function Ui(t){let e,n,r=!t[8]&&Ni(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[8]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),256&n[0]&&tn(r,1)):(r=Ni(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}const Wi="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Li=2;function qi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,V,j,D,P,S,F,I,z,T,M,N=jt,J=jt,O=jt,B=jt,R=jt,U=jt,W=jt,L=jt,q=jt,H=jt,G=jt,K=jt,X=jt,Y=jt;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=Fe(Sn);let rt=0,it="rgba(0,0,0,0.08)",ot=!1,at="",lt="none",st="50% 50%";let ct,ut="0",dt="source_in",ht="",pt="",ft=0,gt=0,mt=0,vt="",yt="";return Pe((()=>{nt.removeSvgFilter(ct,dt)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,Q=t.templateContext),"origJson"in t&&n(2,tt=t.origJson),"layoutParams"in t&&n(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=nt.getDerivedFromVars(Z.image_url)),Y(),Y=Ot(r,(t=>n(55,M=t)))),1&t.$$.dirty[0]&&(n(24,i=nt.getDerivedFromVars(Z.gif_url)),X(),X=Ot(i,(t=>n(54,T=t)))),25165824&t.$$.dirty[1]&&n(7,o=M||T),128&t.$$.dirty[0]&&n(4,rt=0),128&t.$$.dirty[0]&&(o?n(8,ot=!1):(n(8,ot=!0),nt.logError(Fn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=nt.getDerivedFromVars(Z.width)),K(),K=Ot(a,(t=>n(53,z=t)))),4194304&t.$$.dirty[1]&&n(41,l="wrap_content"===(null==z?void 0:z.type)),1&t.$$.dirty[0]&&(n(22,s=nt.getDerivedFromVars(Z.height)),G(),G=Ot(s,(t=>n(52,I=t)))),2097152&t.$$.dirty[1]&&n(40,c="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(n(21,u=nt.getDerivedFromVars(Z.preview)),H(),H=Ot(u,(t=>n(51,F=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=F;0!==rt&&rt!==Li||!t?n(29,at=""):t.startsWith("data:")?n(29,at='url("'.concat(Jn(t),'")')):n(29,at='url("data:image/jpg;base64,'.concat(Jn(t),'")'))}if(1&t.$$.dirty[0]&&(n(20,d=nt.getDerivedFromVars(Z.placeholder_color)),q(),q=Ot(d,(t=>n(50,S=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===Li?A(e,1,it):"")}(rt,S),1&t.$$.dirty[0]&&(n(19,h=nt.getDerivedFromVars(Z.scale)),L(),L=Ot(h,(t=>n(49,P=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(30,lt=Wn(P)||lt),1&t.$$.dirty[0]&&(n(18,p=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),W(),W=Ot(p,(t=>n(48,D=t)))),131072&t.$$.dirty[1]&&n(31,st=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:Ln(t)}(D,st)),1&t.$$.dirty[0]&&(n(17,f=nt.getDerivedFromVars(Z.accessibility)),U(),U=Ot(f,(t=>n(47,j=t)))),65536&t.$$.dirty[1]&&n(16,g=(null==j?void 0:j.description)||""),1&t.$$.dirty[0]&&(n(15,m=nt.getDerivedFromVars(Z.aspect)),R(),R=Ot(m,(t=>n(46,V=t)))),32768&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&br(t)?n(5,ut=(100/Number(t)).toFixed(2)):n(5,ut="0")}if(1&t.$$.dirty[0]&&(n(14,v=nt.getDerivedFromVars(Z.tint_color)),B(),B=Ot(v,(t=>n(45,C=t)))),1&t.$$.dirty[0]&&(n(13,y=nt.getDerivedFromVars(Z.tint_mode)),O(),O=Ot(y,(t=>n(44,E=t)))),24582&t.$$.dirty[1]){const t=C,e=t?A(t):void 0,r=Kr(E,dt);e===ct&&r===dt||(nt.removeSvgFilter(ct,dt),n(6,ht=e?nt.addSvgFilter(e,r):""),n(32,ct=e),n(33,dt=r))}if(1&t.$$.dirty[0]&&(n(12,$=nt.getDerivedFromVars(Z.appearance_animation)),J(),J=Ot($,(t=>n(43,k=t)))),4096&t.$$.dirty[1]&&k&&"fade"===k.type){const t=k;n(34,pt=ar(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(37,mt=nr(t.duration,300)),n(36,gt=nr(t.start_delay,0)),n(35,ft=nr(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=nt.getDerivedFromVars(Z.filters)),N(),N=Ot(_,(t=>n(42,x=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(x)&&x.length&&(t=wr(x,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(38,vt=t),n(39,yt=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&n(10,b={aspect:"0"!==ut,"is-width-content":l,"is-height-content":c,loaded:1===rt,"before-appearance":Boolean(pt)&&0===rt}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&n(9,w={"background-image":at,"background-color":at?void 0:it,"background-size":lt,"clip-path":yt||void 0,"object-fit":lt,"object-position":st,filter:[1===rt&&ht?"url(#".concat(ht,")"):"",vt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":pt||void 0,"--divkit-appearance-fade-start":pt?ft:void 0,"--divkit-appearance-delay":pt?"".concat(gt,"ms"):void 0,"--divkit-appearance-duration":pt?"".concat(mt,"ms"):void 0})},[Z,Q,tt,et,rt,ut,ht,o,ot,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,i,r,function(){0===rt&&n(4,rt=1)},function(){0===rt&&n(4,rt=Li)},it,at,lt,st,ct,dt,pt,ft,gt,mt,vt,yt,c,l,x,k,E,C,V,j,D,P,S,F,I,z,T,M]}const Hi=class extends fn{constructor(t){super(),pn(this,t,qi,Ui,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Gi={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 Ki(t){return t>0&&t<1}function Xi(t){return String(Math.ceil(1e3*t)/1e3)}function Yi(t,e,n){if(t.some(Ki)){const e=Math.max(...t.filter(Ki).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(Mn(r*t[e]/i),",").concat(Xi(t[e]),"fr)"):t[e]?o[e]="".concat(Xi(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Zi(t,e,n){const r=t.slice();return r[29]=e[n],r}function Qi(t){let e,n;return e=new Mr({props:{cls:Kn("grid",Gi,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[eo]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Kn("grid",Gi,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]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function to(t){let e,n;return e=new Ha({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(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||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function eo(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=to(Zi(t,r,e));const o=t=>en(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=de()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=de()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);ie(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=Zi(t,r,a);i[a]?(i[a].p(o,n),tn(i[a],1)):(i[a]=to(o),i[a].c(),tn(i[a],1),i[a].m(e.parentNode,e))}for(Ze(),a=r.length;a<i.length;a+=1)o(a);Qe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)tn(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)en(i[t]);n=!1},d(t){ae(i,t),t&&oe(e)}}}function no(t){let e,n,r=!t[6]&&Qi(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[6]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),64&n[0]&&tn(r,1)):(r=Qi(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function ro(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g=jt,m=jt,v=jt,y=jt;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=Fe(Sn);let k,E,C=!1,A=1,V=[],j=[],D=[],P=[],S=0,F=!1,I="top",z="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(Fn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=Ot(i,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=Jr(f,A)),8392706&t.$$.dirty[0]&&n(22,o=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=vn(t,(t=>[...t]))),v(),v=Ot(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,j=[]),n(16,D=[]),n(17,P=[]),n(19,F=!1),n(5,E=o.map(((i,o)=>{var a,l,s,c;const u=p[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(19,F=!0):(t[i+"_"+e]=!0,(!V[i]||V[i]<g)&&n(14,V[i]=g,V),(!j[e]||j[e]<m)&&n(15,j[e]=m,j),(!D[i]||D[i]<v)&&n(16,D[i]=v,D),(!P[e]||P[e]<y)&&n(17,P[e]=y,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,F=!0),F&&x.logError(Fn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=Ot(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=Gr(h,I)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=Ot(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,z=Hr(d,z)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:z}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Yi(V,D,A),"grid-template-rows":Yi(j,P,S)}),528384&t.$$.dirty[0]&&n(6,u=C||F)},[$,_,b,w,k,E,u,c,s,l,a,i,C,A,V,j,D,P,S,F,I,z,o,r,d,h,p,f]}const io={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function oo(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function ao(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:lo}=on;function so(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function co(t,e,n){const r=t.slice();return r[75]=e[n],r}function uo(t){let e,n;return e=new Mr({props:{cls:Kn("gallery",io,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[vo]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Kn("gallery",io,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]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ho(t){let e,n;return e=new Ha({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function po(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=ho(co(t,l,e));const c=t=>en(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=le("div");for(let t=0;t<s.length;t+=1)s[t].c();n=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var r=ge(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=be(r),r.forEach(oe),this.h()},h(){pe(e,"class",r=io.gallery__items),pe(e,"style",i=Tn(t[17]))},m(t,r){ie(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);re(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=co(t,l,r);s[r]?(s[r].p(i,h),tn(s[r],1)):(s[r]=ho(i),s[r].c(),tn(s[r],1),s[r].m(e,n))}for(Ze(),r=l.length;r<s.length;r+=1)c(r);Qe()}(!o||131072&h[0]&&i!==(i=Tn(t[17])))&&pe(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)tn(s[t]);o=!0}},o(t){s=s.filter(lo);for(let t=0;t<s.length;t+=1)en(s[t]);o=!1},d(t){t&&oe(e),ae(s,t),d()}}}function fo(t){let e,n,r=t[12]&&t[9]&&go(t),i=t[13]&&t[9]&&mo(t);return{c(){r&&r.c(),e=ue(),i&&i.c(),n=de()},l(t){r&&r.l(t),e=be(t),i&&i.l(t),n=de()},m(t,o){r&&r.m(t,o),ie(t,e,o),i&&i.m(t,o),ie(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=go(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=mo(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&oe(e),i&&i.d(t),t&&oe(n)}}}function go(t){let e,n,r,i,o=!t[29]&&function(t){let e,n,r,i;return{c(){e=se("svg"),n=se("path"),this.h()},l(t){e=$e(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ge(e);n=$e(r,"path",{class:!0,d:!0}),ge(n).forEach(oe),r.forEach(oe),this.h()},h(){pe(n,"class",r=io["gallery__arrow-icon-path"]),pe(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),pe(e,"class",i=io["gallery__arrow-icon"]),pe(e,"xmlns","http://www.w3.org/2000/svg"),pe(e,"width","32"),pe(e,"height","32"),pe(e,"viewBox","0 0 32 32"),pe(e,"fill","none")},m(t,r){ie(t,e,r),re(e,n)},p:jt,d(t){t&&oe(e)}}}();return{c(){e=le("div"),o&&o.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);o&&o.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",n=t[29]||"".concat(io.gallery__arrow," ").concat(io.gallery__arrow_left))},m(n,a){ie(n,e,a),o&&o.m(e,null),r||(i=he(e,"click",t[63]),r=!0)},p(t,e){t[29]||o.p(t,e)},d(t){t&&oe(e),o&&o.d(),r=!1,i()}}}function mo(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=se("svg"),n=se("path"),this.h()},l(t){e=$e(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ge(e);n=$e(r,"path",{class:!0,d:!0}),ge(n).forEach(oe),r.forEach(oe),this.h()},h(){pe(n,"class",r=io["gallery__arrow-icon-path"]),pe(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),pe(e,"class",i=io["gallery__arrow-icon"]),pe(e,"xmlns","http://www.w3.org/2000/svg"),pe(e,"width","32"),pe(e,"height","32"),pe(e,"viewBox","0 0 32 32"),pe(e,"fill","none")},m(t,r){ie(t,e,r),re(e,n)},p:jt,d(t){t&&oe(e)}}}();return{c(){e=le("div"),o&&o.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);o&&o.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",n=t[30]||"".concat(io.gallery__arrow," ").concat(io.gallery__arrow_right))},m(n,a){ie(n,e,a),o&&o.m(e,null),r||(i=he(e,"click",t[64]),r=!0)},p(t,e){t[30]||o.p(t,e)},d(t){t&&oe(e),o&&o.d(),r=!1,i()}}}function vo(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=po(so(t,h,e));const f=t=>en(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&fo(t);return{c(){e=le("div"),n=le("div");for(let t=0;t<p.length;t+=1)p[t].c();l=ue(),g&&g.c(),s=de(),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var r=ge(e);n=ye(r,"DIV",{class:!0,style:!0});var i=ge(n);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(oe),r.forEach(oe),l=be(t),g&&g.l(t),s=de(),this.h()},h(){pe(n,"class",r=io["gallery__items-grid"]),pe(n,"style",i=Tn(t[18])),pe(e,"class",o=io.gallery__scroller+" "+(t[28]?Dn:"")),pe(e,"style",a=Tn(t[7]))},m(r,i){ie(r,e,i),re(e,n);for(let t=0;t<p.length;t+=1)p[t].m(n,null);t[61](n),t[62](e),ie(r,l,i),g&&g.m(r,i),ie(r,s,i),c=!0,u||(d=he(e,"scroll",(function(){zt(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=so(t,h,e);p[e]?(p[e].p(r,l),tn(p[e],1)):(p[e]=po(r),p[e].c(),tn(p[e],1),p[e].m(n,null))}for(Ze(),e=h.length;e<p.length;e+=1)f(e);Qe()}(!c||262144&l[0]&&i!==(i=Tn(t[18])))&&pe(n,"style",i),(!c||268435456&l[0]&&o!==(o=io.gallery__scroller+" "+(t[28]?Dn:"")))&&pe(e,"class",o),(!c||128&l[0]&&a!==(a=Tn(t[7])))&&pe(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=fo(t),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<h.length;t+=1)tn(p[t]);c=!0}},o(t){p=p.filter(lo);for(let t=0;t<p.length;t+=1)en(p[t]);c=!1},d(n){n&&oe(e),ae(p,n),t[61](null),t[62](null),n&&oe(l),g&&g.d(n),n&&oe(s),u=!1,d()}}}function yo(t){let e,n,r,i,o=!t[5]&&uo(t);return{c(){o&&o.c(),e=de()},l(t){o&&o.l(t),e=de()},m(a,l){o&&o.m(a,l),ie(a,e,l),n=!0,r||(i=he(window,"resize",(function(){zt(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Ze(),en(o,1,1,(()=>{o=null})),Qe()):o?(o.p(t,r),32&r[0]&&tn(o,1)):(o=uo(t),o.c(),tn(o,1),o.m(e.parentNode,e))},i(t){n||(tn(o),n=!0)},o(t){en(o),n=!1},d(t){o&&o.d(t),t&&oe(e),r=!1,i()}}}function $o(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P=jt,S=jt,F=jt,I=jt,z=jt,T=jt,M=jt,N=jt,J=jt,O=jt;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O()));let{json:B={}}=e,{templateContext:R}=e,{origJson:U}=e,{layoutParams:W}=e;const L=Fe(Sn);let q,H,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=L.getCustomization("galleryLeftClass"),tt=L.getCustomization("galleryRightClass");let et=!1;const nt=L.isDesktop;Bt(t,nt,(t=>n(59,j=t)));let rt,it,ot,at,lt=1,st="horizontal",ct="start",ut=8,dt="",ht=[],pt={},ft=!1,gt={},mt=0;function vt(){if(!q)return;const t=q.scrollLeft,e=q.scrollWidth,r=q.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const yt=ao(vt,50);function $t(t){q.scroll({left:q.scrollLeft+.75*q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function _t(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function bt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===st,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";q.scroll({[o]:Math.max(0,t[e][i]-ut/2),behavior:n})}function wt(t){const e=_t(),n=q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===st?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"===st?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!B.id||et||(null==W?void 0:W.fakeElement)||L.registerInstance(B.id,{setCurrentItem(t){const e=_t();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');bt(e,t)},setPreviousItem(t){const e=wt("prev"),n=_t();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),bt(n,r)},setNextItem(t){const e="horizontal"===st?q.scrollLeft+q.offsetWidth===q.scrollWidth:q.scrollTop+q.offsetHeight===q.scrollHeight,n=_t();if(e&&"ring"===t)return void bt(n,0);const r=wt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),bt(n,i)}}),De((()=>{n(36,Z=!0),!et&&(vt(),mt)&&bt(_t(),mt,"auto")})),Pe((()=>{n(36,Z=!1),B.id&&!(null==W?void 0:W.fakeElement)&&L.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,U=t.origJson),"layoutParams"in t&&n(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),L.logError(Fn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,i=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=L.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,o=j&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{yt()}))),Y.observe(H)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=L.getDerivedFromVars(B.column_count)),J(),J=Ot(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=Jr(V,lt)),131136&t.$$.dirty[1]&&n(26,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(i,lt)),1&t.$$.dirty[0]&&(n(25,s=L.getDerivedFromVars(B.orientation)),N(),N=Ot(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,st=Si(A,st)),1&t.$$.dirty[0]&&(n(24,c=L.getDerivedFromVars(B.cross_content_alignment)),M(),M=Ot(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ct=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ct)),1&t.$$.dirty[0]&&(n(23,u=L.getDerivedFromVars(B.item_spacing)),T(),T=Ot(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,ut=nr(E,ut)),n(39,rt=Mn(ut))),1&t.$$.dirty[0]&&(n(22,d=L.getDerivedFromVars(B.cross_spacing)),z(),z=Ot(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,ot=nr(k,ut)),n(41,it=Mn(ot))),1&t.$$.dirty[0]&&(n(21,h=L.getDerivedFromVars(B.paddings)),I(),I=Ot(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,dt=er(x,dt)),64&t.$$.dirty[0]&&n(47,p="horizontal"===st?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===st?"width":"height";t.push(L.getDerivedFromVars(e.json[n]))})),n(14,at=vn(t,(t=>t))),F(),F=Ot(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,ht=[]),lt>1?ht.push("auto"):w.forEach((t=>{!t&&"horizontal"===st||"match_parent"===(null==t?void 0:t.type)?ht.push("100%"):ht.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=L.getDerivedFromVars(B.scroll_mode)),S(),S=Ot(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,ft=!1),(null==W?void 0:W.fakeElement)&&(e.fakeElement=!0),"horizontal"===st?e.parentVAlign=ct:e.parentHAlign=ct,"paging"===b&&(n(45,ft=!0),e.scrollSnap="start",t["horizontal"===st?"scroll-padding-left":"scroll-padding-top"]=Mn(ut/2)),1===lt&&(e.parentLayoutOrientation=st),n(7,pt=or(t,pt)),n(8,gt=or(e,gt))}1&t.$$.dirty[0]&&(n(19,g=L.getDerivedFromVars(B.restrict_parent_scroll)),O(),O=Ot(g,(t=>n(28,D=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:dt,"grid-gap":it}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:oo(ht)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:st,"scroll-snap":ft}),1&t.$$.dirty[0]&&(n(15,$=L.getDerivedFromVars(B.default_item)),P(),P=Ot($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,mt=nr(_,mt))},[B,R,U,W,H,et,st,pt,gt,o,q,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,D,Q,tt,nt,vt,yt,$t,Y,Z,lt,ct,rt,ut,it,ot,dt,ht,ft,mt,p,i,r,_,b,w,x,k,E,C,A,V,j,function(t,e){Te[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){Te[t?"unshift":"push"]((()=>{H=t,n(4,H)}))},function(t){Te[t?"unshift":"push"]((()=>{q=t,n(10,q)}))},()=>$t("left"),()=>$t("right")]}const _o={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"},{Boolean:bo}=on;function wo(t,e,n){const r=t.slice();return r[83]=e[n],r[85]=n,r}function xo(t,e,n){const r=t.slice();r[83]=e[n],r[85]=n;const i=r[85]===r[6];return r[86]=i,r}function ko(t){let e,n;return e=new Mr({props:{cls:Kn("tabs",_o,t[42]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Do]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(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]),536870890&n[0]|517&n[1]|67108864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Eo(t){let e,n,r=t[83].title+"";return{c(){e=ce(r),n=ue()},l(t){e=_e(t,r),n=be(t)},m(t,r){ie(t,e,r),ie(t,n,r)},p(t,n){262144&n[0]&&r!==(r=t[83].title+"")&&we(e,r)},d(t){t&&oe(e),t&&oe(n)}}}function Co(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[59](t[85],...n)}return i=new yr({props:{cls:Kn("tabs__item",_o,{selected:t[86],actionable:Boolean(t[83].title_click_action)}),actions:!t[83].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[83].title_click_action],attrs:{id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Eo]},$$scope:{ctx:t}}}),{c(){cn(i.$$.fragment)},l(t){un(i.$$.fragment,t)},m(t,e){dn(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};262208&n[0]&&(s.cls=Kn("tabs__item",_o,{selected:t[86],actionable:Boolean(t[83].title_click_action)})),262152&n[0]&&(s.actions=!t[83].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[83].title_click_action]),262216&n[0]&&(s.attrs={id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),262144&n[0]|67108864&n[2]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(tn(i.$$.fragment,t),o=!0)},o(t){en(i.$$.fragment,t),o=!1},d(t){hn(i,t)}}}function Ao(t){let e,n,r;return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=_o.tabs__separator),pe(e,"style",r=Tn(t[33]))},m(t,n){ie(t,e,n)},p(t,n){4&n[1]&&r!==(r=Tn(t[33]))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Vo(t){let e,n;return e=new Ha({props:{div:t[83].div,templateContext:t[1],layoutParams:t[5]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};262144&n[0]&&(r.div=t[83].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function jo(t){let e,n,r,i,o,a,l=t[27][t[85]]&&Vo(t);return{c(){e=le("div"),l&&l.c(),n=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=ge(e);l&&l.l(r),n=be(r),r.forEach(oe),this.h()},h(){pe(e,"class",r=Kn("tabs__panel",_o,{visible:t[28][t[85]]})),pe(e,"role","tabpanel"),pe(e,"id",i=t[41]+"-panel-"+t[85]),pe(e,"aria-labelledby",o=t[41]+"-tab-"+t[85]),xe(e,"left",100*t[85]+"%")},m(t,r){ie(t,e,r),l&&l.m(e,null),re(e,n),a=!0},p(t,i){t[27][t[85]]?l?(l.p(t,i),134217728&i[0]&&tn(l,1)):(l=Vo(t),l.c(),tn(l,1),l.m(e,n)):l&&(Ze(),en(l,1,1,(()=>{l=null})),Qe()),(!a||268435456&i[0]&&r!==(r=Kn("tabs__panel",_o,{visible:t[28][t[85]]})))&&pe(e,"class",r)},i(t){a||(tn(l),a=!0)},o(t){en(l),a=!1},d(t){t&&oe(e),l&&l.d()}}}function Do(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[18],p=[];for(let e=0;e<h.length;e+=1)p[e]=Co(xo(t,h,e));const f=t=>en(p[t],1,1,(()=>{p[t]=null}));let g=t[19]&&Ao(t),m=t[18],v=[];for(let e=0;e<m.length;e+=1)v[e]=jo(wo(t,m,e));const y=t=>en(v[t],1,1,(()=>{v[t]=null}));return{c(){e=le("div");for(let t=0;t<p.length;t+=1)p[t].c();r=ue(),g&&g.c(),i=ue(),o=le("div"),a=le("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=ye(t,"DIV",{class:!0,role:!0});var n=ge(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(oe),r=be(t),g&&g.l(t),i=be(t),o=ye(t,"DIV",{class:!0});var l=ge(o);a=ye(l,"DIV",{class:!0});var s=ge(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(oe),l.forEach(oe),this.h()},h(){pe(e,"class",n=_o.tabs__list+" "+(t[40]?Dn:"")),pe(e,"role","tablist"),xe(e,"--divkit-tabs-title-padding",t[17]?Zn(t[17]):"",!1),xe(e,"--divkit-tabs-font-size",Mn(t[7]),!1),xe(e,"--divkit-tabs-paddings",t[8],!1),xe(e,"--divkit-tabs-line-height",t[23],!1),xe(e,"--divkit-tabs-letter-spacing",t[24],!1),xe(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),xe(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),xe(e,"--divkit-tabs-active-text-color",t[12],!1),xe(e,"--divkit-tabs-inactive-text-color",t[13],!1),xe(e,"--divkit-tabs-active-background-color",t[14],!1),xe(e,"--divkit-tabs-inactive-background-color",t[15],!1),xe(e,"--divkit-tabs-border-radius",t[9],!1),xe(e,"--divkit-tabs-items-spacing",t[16]?Nn(t[16]):"",!1),pe(a,"class",l=Kn("tabs__swiper",_o,{inited:t[25],animated:t[26]})),pe(o,"class",s=_o.tabs__panels+" "+(t[40]?Dn:""))},m(n,l){ie(n,e,l);for(let t=0;t<p.length;t+=1)p[t].m(e,null);t[60](e),ie(n,r,l),g&&g.m(n,l),ie(n,i,l),ie(n,o,l),re(o,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[61](a),t[62](o),c=!0,u||(d=[he(e,"keydown",t[44]),he(a,"touchstart",(function(){zt(t[31]?t[45]:void 0)&&(t[31]?t[45]:void 0).apply(this,arguments)})),he(a,"touchmove",(function(){zt(t[31]?t[46]:void 0)&&(t[31]?t[46]:void 0).apply(this,arguments)})),he(a,"touchend",(function(){zt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)})),he(a,"touchcancel",(function(){zt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,262216&u[0]|5120&u[1]){let n;for(h=t[18],n=0;n<h.length;n+=1){const r=xo(t,h,n);p[n]?(p[n].p(r,u),tn(p[n],1)):(p[n]=Co(r),p[n].c(),tn(p[n],1),p[n].m(e,null))}for(Ze(),n=h.length;n<p.length;n+=1)f(n);Qe()}if((!c||512&u[1]&&n!==(n=_o.tabs__list+" "+(t[40]?Dn:"")))&&pe(e,"class",n),131072&u[0]&&xe(e,"--divkit-tabs-title-padding",t[17]?Zn(t[17]):"",!1),128&u[0]&&xe(e,"--divkit-tabs-font-size",Mn(t[7]),!1),256&u[0]&&xe(e,"--divkit-tabs-paddings",t[8],!1),8388608&u[0]&&xe(e,"--divkit-tabs-line-height",t[23],!1),16777216&u[0]&&xe(e,"--divkit-tabs-letter-spacing",t[24],!1),1024&u[0]&&xe(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&xe(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&xe(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&xe(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&xe(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&xe(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&xe(e,"--divkit-tabs-border-radius",t[9],!1),65536&u[0]&&xe(e,"--divkit-tabs-items-spacing",t[16]?Nn(t[16]):"",!1),t[19]?g?g.p(t,u):(g=Ao(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),402915362&u[0]|1024&u[1]){let e;for(m=t[18],e=0;e<m.length;e+=1){const n=wo(t,m,e);v[e]?(v[e].p(n,u),tn(v[e],1)):(v[e]=jo(n),v[e].c(),tn(v[e],1),v[e].m(a,null))}for(Ze(),e=m.length;e<v.length;e+=1)y(e);Qe()}(!c||100663296&u[0]&&l!==(l=Kn("tabs__swiper",_o,{inited:t[25],animated:t[26]})))&&pe(a,"class",l),(!c||512&u[1]&&s!==(s=_o.tabs__panels+" "+(t[40]?Dn:"")))&&pe(o,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)tn(p[t]);for(let t=0;t<m.length;t+=1)tn(v[t]);c=!0}},o(t){p=p.filter(bo);for(let t=0;t<p.length;t+=1)en(p[t]);v=v.filter(bo);for(let t=0;t<v.length;t+=1)en(v[t]);c=!1},d(n){n&&oe(e),ae(p,n),t[60](null),n&&oe(r),g&&g.d(n),n&&oe(i),n&&oe(o),ae(v,n),t[61](null),t[62](null),u=!1,It(d)}}}function Po(t){let e,n,r=!t[4]&&ko(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[4]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),16&n[0]&&tn(r,1)):(r=ko(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function So(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E=jt,C=jt,V=jt,j=jt,D=jt,P=jt,S=jt,F=jt,I=jt;var z;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:T={}}=e,{templateContext:M}=e,{origJson:N}=e,{layoutParams:J}=e;const O=Fe(Sn),B=O.genId("tabs");let R,U,W,L=!1,q={};const H=O.getJsonWithVars(T.selected_tab);let G,K,X=H&&Number(H)||0,Y=12,Z="",Q="",tt="",et="",nt="",rt="",it="",ot="",at=0,lt="",st="",ct=null,ut=!1,dt=!1,ht=X,pt=[],ft=[];async function gt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ht=X,n(6,X=t),xt(),yt(),e){await Re();const t=R.querySelector(".".concat(_o.tabs__item_selected));t&&t.focus()}}function mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let i=X+t;i>=n?i=0:i<0&&(i=n-1),gt(i,e)}function vt(t,e){return X===e||(gt(e),!1)}function yt(){n(26,dt=!0),$t(100*-X),_t(),async function(){await Re();const t=document.getElementById("".concat(B,"-panel-").concat(X));t&&n(21,U.style.height=Mn(t.offsetHeight),U)}(),wt(),Ct=-X*U.clientWidth}async function $t(t){await Re(),n(22,W.style.transform="translate3d(".concat(t,"%,0,0)"),W)}function _t(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,X-1):Math.min(X,ht),i=t?Math.min(r.length-1,X+1):Math.max(X,ht);n(27,pt=pt.map(((t,n)=>t||n>=e&&n<=i))),n(28,ft=ft.map(((t,n)=>n>=e&&n<=i)))}let bt=null;function wt(){bt&&clearTimeout(bt),bt=window.setTimeout((()=>{n(28,ft=r.map(((t,e)=>e===X)))}),400)}function xt(){ut||(n(25,ut=!0),n(21,U.style.height=Mn(U.clientHeight),U),n(22,W.style.transform="translate3d(".concat(100*-ht,"%,0,0)"),W))}let kt,Et,Ct,At=null,Vt=null,Dt=!1,Pt=!1;return!T.id||L||(null==J?void 0:J.fakeElement)||O.registerInstance(T.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');gt(t)},setPreviousItem(t){let e=X-1;e<0&&(e="ring"===t?r.length-1:X),gt(e)},setNextItem(t){let e=X+1;e>r.length-1&&(e="ring"===t?0:X),gt(e)}}),Pe((()=>{T.id&&!(null==J?void 0:J.fakeElement)&&O.unregisterInstance(T.id)})),t.$$set=t=>{"json"in t&&n(0,T=t.json),"templateContext"in t&&n(1,M=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=T.items||[]),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,L=!1):(n(4,L=!0),O.logError(Fn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(39,i=O.getDerivedFromVars(T.width)),F(),F=Ot(i,(t=>n(58,x=t)))),1&t.$$.dirty[0]&&(n(38,o=O.getDerivedFromVars(T.height)),S(),S=Ot(o,(t=>n(57,w=t)))),40&t.$$.dirty[0]|201326592&t.$$.dirty[1]){let t={};(null==J?void 0:J.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==x?void 0:x.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),n(5,q=or(t,q))}if(262225&t.$$.dirty[0]&&!L&&(X<0||X>=r.length)&&(O.logError(Fn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:T.selected_tab,length:r.length}})),n(6,X=X<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(37,a=O.getDerivedFromVars(T.tab_title_style)),P(),P=Ot(a,(t=>n(56,b=t)))),33554432&t.$$.dirty[1]&&n(51,l=b||{}),128&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(7,Y=Jr(l.font_size,Y)),384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/Y*10,right:(Number(t.right)||0)/Y*10,bottom:(Number(t.bottom)||0)/Y*10,left:(Number(t.left)||0)/Y*10};n(8,Z=er(e,Z))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&br(t)&&n(23,Q=Mn(t/Y*10))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&tr(t)&&n(24,tt=Mn(t/Y*10))}if(640&t.$$.dirty[0]|1179648&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(48,z=l.corner_radius)&&void 0!==z?z:1e3;l.corners_radius?n(9,et=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]&&!tr(i[t]))return r;return ur(t,e,n)}(l.corners_radius,t,Y,et)):tr(t)&&n(9,et=Mn(t/Y*10))}1024&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(10,G=Br(l.active_font_weight||l.font_weight,G)),2048&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(11,K=Br(l.inactive_font_weight||l.font_weight,K)),4096&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(12,nt=A(l.active_text_color,1,nt)),8192&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(13,rt=A(l.inactive_text_color,1,rt)),16384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(14,it=A(l.active_background_color,1,it)),32768&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(15,ot=A(l.inactive_background_color,1,ot)),65536&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(16,at=nr(l.item_spacing,at)),1&t.$$.dirty[0]&&(n(36,s=O.getDerivedFromVars(T.has_separator)),D(),D=Ot(s,(t=>n(19,_=t)))),1&t.$$.dirty[0]&&(n(35,c=O.getDerivedFromVars(T.separator_color)),j(),j=Ot(c,(t=>n(55,$=t)))),1&t.$$.dirty[0]&&(n(34,u=O.getDerivedFromVars(T.separator_paddings)),V(),V=Ot(u,(t=>n(54,y=t)))),524288&t.$$.dirty[0]|25952256&t.$$.dirty[1]&&_&&($&&n(49,lt=A($,1,lt)),y&&n(50,st=er(y,st))),786432&t.$$.dirty[1]&&n(33,d={background:lt,margin:st}),1&t.$$.dirty[0]&&(n(32,h=O.getDerivedFromVars(T.switch_tabs_by_content_swipe_enabled)),C(),C=Ot(h,(t=>n(53,v=t)))),4194304&t.$$.dirty[1]&&n(31,p=void 0===v||Boolean(v)),1&t.$$.dirty[0]&&(n(30,f=O.getDerivedFromVars(T.restrict_parent_scroll)),I(),I=Ot(f,(t=>n(40,k=t)))),1&t.$$.dirty[0]&&(n(29,g=O.getDerivedFromVars(T.title_paddings)),E(),E=Ot(g,(t=>n(52,m=t)))),131072&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(17,ct=cr(m||void 0,ct)),262144&t.$$.dirty[0]&&(L||(n(27,pt=r.map(((t,e)=>e===X))),n(28,ft=r.map(((t,e)=>e===X)))))},[T,M,N,J,L,q,X,Y,Z,et,G,K,nt,rt,it,ot,at,ct,r,_,R,U,W,Q,tt,ut,dt,pt,ft,g,f,p,h,d,u,c,s,a,o,i,k,B,{},vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)mt(-1,!0);else if(39===t.which)mt(1,!0);else if(36===t.which)gt(0,!0);else{if(35!==t.which)return;gt(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat(Dn));r.length<2||t.touches.length>1||o&&o!==U||(Dt=!1,Pt=!1,At=pr(t),Vt=null,kt=Date.now(),Et=Ct||-X*U.clientWidth,n(26,dt=!1),bt&&clearTimeout(bt))},function(t){const e=pr(t);if(!At||Vt&&Vt.x===e.x&&Vt.y===e.y)return;Vt=e;const n=U.clientWidth;if(Dt){Ct=e.x-At.x+Et;const t=n*r.length;if(Ct>0)Ct=Ct*n/(Ct+3*n);else if(-Ct+n>t){let e=-Ct+n-t;e=e*n/(e+3*n),Ct=n-t-e}$t(100*Ct/n)}else Math.abs(e.y-At.y)>10?Pt=!0:!Pt&&Math.abs(e.x-At.x)>8&&(xt(),Dt=!0,At=e,$t(100*-X),_t(!0));Dt&&t.cancelable&&t.preventDefault()},function(){Pt=!1,At=null;let t=X;if(!Dt)return;Dt=!1;const e=Math.min(512,U.clientWidth);Math.abs(Et-Ct)>e/4*Math.min(1,(Date.now()-kt)/750)&&(t+=Et>Ct?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===X?(Ct=-t*e,$t(100*-t),wt()):gt(t)},z,lt,st,l,m,v,y,$,b,w,x,(t,e)=>vt(0,t),function(t){Te[t?"unshift":"push"]((()=>{R=t,n(20,R)}))},function(t){Te[t?"unshift":"push"]((()=>{W=t,n(22,W)}))},function(t){Te[t?"unshift":"push"]((()=>{U=t,n(21,U)}))}]}const Fo="divkit-eb860",Io="divkit-e08c6";function zo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function To(t){return t*t*t}function Mo(t){const e=t-1;return e*e*e+1}function No(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 Jo=No([.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]),Oo=No([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]),Bo={linear:Dt,ease:Jo,ease_in:To,ease_out:Mo,ease_in_out:zo,spring:Oo};function Ro(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Uo(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(Bo[t.interpolator||"ease_in_out"]||zo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};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||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Wo(t,e,n){return t*(1-n)+e*n}const Lo={linear:Dt,ease:Jo,ease_in:To,ease_out:Mo,ease_in_out:zo,spring:Oo};function qo(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Lo?Lo[l.interpolator]:zo,css:t=>["top:".concat(Wo(o.top,a.top,t)-i.top,"px"),"left:".concat(Wo(o.left,a.left,t)-i.left,"px"),"width:".concat(Wo(o.width,a.width,t),"px"),"height:".concat(Wo(o.height,a.height,t),"px")].join(";")}}function Ho(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ho(t))})):e.push(t),e}const{Map:Go}=on;function Ko(t,e,n){const r=t.slice();return r[27]=e[n],r}function Xo(t){let e,n;return e=new Mr({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[na]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(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]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Yo(t){let e,n,r=t[7],i=Zo(t);return{c(){i.c(),e=de()},l(t){i.l(t),e=de()},m(t,r){i.m(t,r),ie(t,e,r),n=!0},p(t,n){128&n&&Nt(r,r=t[7])?(Ze(),en(i,1,1,jt),Qe(),i=Zo(t),i.c(),tn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(tn(i),n=!0)},o(t){en(i),n=!1},d(t){t&&oe(e),i.d(t)}}}function Zo(t){let e,n;return e=new Ha({props:{div:t[7].div,templateContext:t[1]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Qo(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Ha({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=le("div"),n=le("div"),cn(r.$$.fragment),o=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var i=ge(e);n=ye(i,"DIV",{class:!0});var a=ge(n);un(r.$$.fragment,a),a.forEach(oe),o=be(i),i.forEach(oe),this.h()},h(){pe(n,"class",i=Io),pe(e,"class",a=Fo)},m(t,i){ie(t,e,i),re(e,n),dn(r,n,null),re(e,o),s=!0,c||(u=he(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(tn(r.$$.fragment,n),l||Ue((()=>{l=rn(e,qo,t[27]),l.start()})),s=!0)},o(t){en(r.$$.fragment,t),s=!1},d(t){t&&oe(e),hn(r),c=!1,u()}}}function ta(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Ha({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=le("div"),n=le("div"),cn(r.$$.fragment),o=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var i=ge(e);n=ye(i,"DIV",{class:!0});var a=ge(n);un(r.$$.fragment,a),a.forEach(oe),o=be(i),i.forEach(oe),this.h()},h(){pe(n,"class",i=Io),pe(e,"class",a=Fo),xe(e,"left",t[27].offsetLeft+"px"),xe(e,"top",t[27].offsetTop+"px"),xe(e,"width",t[27].width+"px"),xe(e,"height",t[27].height+"px")},m(t,i){ie(t,e,i),re(e,n),dn(r,n,null),re(e,o),s=!0,c||(u=he(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&xe(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&xe(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&xe(e,"width",t[27].width+"px"),(!s||64&i)&&xe(e,"height",t[27].height+"px")},i(n){s||(tn(r.$$.fragment,n),l||Ue((()=>{l=rn(e,Uo,t[27]),l.start()})),s=!0)},o(t){en(r.$$.fragment,t),s=!1},d(t){t&&oe(e),hn(r),c=!1,u()}}}function ea(t,e){let n,r,i,o,a;const l=[ta,Qo],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=de(),i.c(),o=de(),this.h()},l(t){n=de(),i.l(t),o=de(),this.h()},h(){this.first=n},m(t,e){ie(t,n,e),s[r].m(t,e),ie(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Ze(),en(s[a],1,1,(()=>{s[a]=null})),Qe(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),tn(i,1),i.m(o.parentNode,o))},i(t){a||(tn(i),a=!0)},o(t){en(i),a=!1},d(t){t&&oe(n),s[r].d(t),t&&oe(o)}}}function na(t){var e;let n,r,i,o,a=[],l=new Go,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Yo(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=Ko(t,c,e),r=u(n);l.set(r,a[e]=ea(r,n))}return{c(){s&&s.c(),n=ue(),r=le("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=be(t),r=ye(t,"DIV",{class:!0,"aria-hidden":!0});var e=ge(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(oe),this.h()},h(){pe(r,"class",i="divkit-adaae"),pe(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),ie(e,n,i),ie(e,r,i);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e&&tn(s,1)):(s=Yo(t),s.c(),tn(s,1),s.m(n.parentNode,n)):s&&(Ze(),en(s,1,1,(()=>{s=null})),Qe()),320&e&&(c=t[6],Ze(),a=function(t,e,n,r,i,o,a,l,s,c,u,d){let h=t.length,p=o.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(i,o,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){tn(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,p--):v.has(i)?!a.has(r)||$.has(r)?b(e):_.has(i)?h--:y.get(r)>y.get(i)?(_.add(r),b(e)):($.add(i),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,an,ea,null,Ko),Qe())},i(t){if(!o){tn(s);for(let t=0;t<c.length;t+=1)tn(a[t]);o=!0}},o(t){en(s);for(let t=0;t<a.length;t+=1)en(a[t]);o=!1},d(e){s&&s.d(e),e&&oe(n),e&&oe(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function ra(t){let e,n,r=!t[5]&&Xo(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,i),32&i&&tn(r,1)):(r=Xo(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function ia(t){return"change_bounds"===t.type?t:"set"===t.type?ia(t.items[0]):null}function oa(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=Fe(Sn),c=Fe(Yn);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Ho(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(Fn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Re(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,Ro(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:ia(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(Fn(new Error("Missing state block with id"),{additional:{id:t}}))}}),Se(Yn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(Fn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=Ro(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(Fn(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Pe((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(Fn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(Fn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){Te[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const aa={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:la}=on;function sa(t,e,n){const r=t.slice();return r[48]=e[n],r}function ca(t){let e,n;return e=new Mr({props:{cls:Kn("pager",aa,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[da]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Kn("pager",aa,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ua(t){var e;let n,r,i,o,a;return r=new Ha({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=le("div"),cn(r.$$.fragment),i=ue(),this.h()},l(t){n=ye(t,"DIV",{class:!0});var e=ge(n);un(r.$$.fragment,e),i=be(e),e.forEach(oe),this.h()},h(){pe(n,"class",o=aa.pager__item)},m(t,e){ie(t,n,e),dn(r,n,null),re(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].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||(tn(r.$$.fragment,t),a=!0)},o(t){en(r.$$.fragment,t),a=!1},d(t){t&&oe(n),hn(r)}}}function da(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=ua(sa(t,l,e));const c=t=>en(s[t],1,1,(()=>{s[t]=null}));return{c(){e=le("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var n=ge(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(oe),this.h()},h(){pe(e,"class",n=aa.pager__items+" "+(t[15]?Dn:"")),pe(e,"style",r=Tn(t[9]))},m(n,r){ie(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),i=!0,o||(a=he(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=sa(t,l,n);s[n]?(s[n].p(r,o),tn(s[n],1)):(s[n]=ua(r),s[n].c(),tn(s[n],1),s[n].m(e,null))}for(Ze(),n=l.length;n<s.length;n+=1)c(n);Qe()}(!i||32768&o[0]&&n!==(n=aa.pager__items+" "+(t[15]?Dn:"")))&&pe(e,"class",n),(!i||512&o[0]&&r!==(r=Tn(t[9])))&&pe(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)tn(s[t]);i=!0}},o(t){s=s.filter(la);for(let t=0;t<s.length;t+=1)en(s[t]);i=!1},d(n){n&&oe(e),ae(s,n),t[36](null),o=!1,a()}}}function ha(t){let e,n,r=!t[7]&&ca(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[7]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),128&n[0]&&tn(r,1)):(r=ca(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function pa(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=jt,b=jt,w=jt,x=jt,k=jt,E=jt;var C,A,V,j,D,P,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:F={}}=e,{templateContext:I}=e,{origJson:z}=e,{layoutParams:T}=e;const M=Fe(Sn),N=M.genId("pager");let J,O=!1,B=!1,R=0,U=0,W=!1,L="horizontal",q="",H="",G="";const K=ao((function(){if(!O)return;const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===L?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:R}();t!==R&&n(25,R=t)}),50);function X(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===L,i=J.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";J.scroll({[a]:i[o],behavior:e}),n(25,R=t)}return F.id&&!(null==T?void 0:T.fakeElement)&&M.registerInstance(F.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');X(t)},setPreviousItem(t){let e=R-1;e<0&&(e="ring"===t?r.length-1:R),X(e)},setNextItem(t){let e=R+1;e>r.length-1&&(e="ring"===t?0:R),X(e)}}),De((()=>{if(O=!0,Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(N,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(N,"-tab-").concat(e))}})),Pe((()=>{O=!1,F.id&&!(null==T?void 0:T.fakeElement)&&M.unregisterInstance(F.id)})),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,z=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=F.items)||void 0===C?void 0:C.length)&&Array.isArray(F.items)?n(24,B=!1):(n(24,B=!0),M.logError(Fn(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!B&&F.items||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=M.getDerivedFromVars(F.layout_mode)),b(),b=Ot(i,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,W=!0),M.logError(Fn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,W=!1):(n(26,W=!0),M.logError(Fn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,o=M.getDerivedFromVars(F.orientation)),k(),k=Ot(o,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,L=Si(y,L)),1&t.$$.dirty[0]&&(n(12,a=M.getDerivedFromVars(F.item_spacing)),x(),x=Ot(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&tr(t)&&n(28,q=Mn(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=M.getDerivedFromVars(F.paddings)),w(),w=Ot(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,H=er(m,H)),1&t.$$.dirty[0]&&(n(10,s=M.getDerivedFromVars(F.restrict_parent_scroll)),E(),E=Ot(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===L?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=Nn("horizontal"===L?((null===n(18,A=F.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=F.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,j=F.paddings)||void 0===j?void 0:j.top)||0)+((null===n(21,D=F.paddings)||void 0===D?void 0:D.bottom)||0)),e=null===n(22,P=g.neighbour_page_width)||void 0===P?void 0:P.value;n(30,G=e?"calc(100% + ".concat(t," - 2 * ").concat(Nn(e)," - 2 * ").concat(q,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,G="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":q,padding:H,[c]:G}),134217728&t.$$.dirty[0]&&n(8,d={orientation:L}),83886080&t.$$.dirty[0]&&n(7,h=B||W),33554448&t.$$.dirty[0]&&function(t,e){const n=F.id;if(n){const o=new Map(f);r=p,f=o.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:X}),i=f,r.set(i)}var r,i}(r.length,R),33554432&t.$$.dirty[0]&&function(t){var e;if(t===U)return;U=t;const n=M.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&M.execAnyActions(n)}(R)},n(6,p=M.getStore("pagers")),_(),_=Ot(p,(t=>n(39,f=t))),[F,I,z,T,r,J,p,h,d,u,s,l,a,o,i,$,K,C,A,V,j,D,P,S,B,R,W,L,q,H,G,c,g,m,v,y,function(t){Te[t?"unshift":"push"]((()=>{J=t,n(5,J)}))}]}const fa={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 ga(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function ma(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=va(ga(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=de()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=de()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);ie(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=ga(t,n,o);r[o]?r[o].p(a,i):(r[o]=va(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){ae(r,t),t&&oe(e)}}}function va(t){let e,n,r,i,o,a,l,s;function c(){return t[36](t[46])}return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=Kn("indicator__item",fa,{active:t[44]})+" "+Cn),pe(e,"role","tab"),pe(e,"id",r=t[12].instId+"-tab-"+t[46]),pe(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),pe(e,"aria-selected",o=t[44]?"true":"false"),pe(e,"tabindex",a=t[44]?0:-1)},m(n,r){ie(n,e,r),l||(s=[he(e,"click",c),he(e,"keydown",t[24])],l=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=Kn("indicator__item",fa,{active:t[44]})+" "+Cn)&&pe(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&pe(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&pe(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&pe(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&pe(e,"tabindex",a)},d(t){t&&oe(e),l=!1,It(s)}}}function ya(t){let e,n,r,i,o=t[12]&&ma(t);return{c(){e=le("div"),n=le("div"),o&&o.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var r=ge(e);n=ye(r,"DIV",{class:!0,role:!0});var i=ge(n);o&&o.l(i),i.forEach(oe),r.forEach(oe),this.h()},h(){pe(n,"class",r=fa.indicator__items),pe(n,"role","tablist"),xe(n,"margin","default"===t[6]?"0 ".concat(Mn(Math.max(0,t[4].width-t[5].width)/2)):"",!1),xe(n,"--divkit-indicator-inactive-width",Mn(t[5].width),!1),xe(n,"--divkit-indicator-inactive-height",Mn(t[5].height),!1),xe(n,"--divkit-indicator-inactive-border-radius",Mn(t[5].borderRadius),!1),xe(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),xe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),xe(n,"--divkit-indicator-active-width",Mn(t[4].width),!1),xe(n,"--divkit-indicator-active-height",Mn(t[4].height),!1),xe(n,"--divkit-indicator-active-border-radius",Mn(t[4].borderRadius),!1),xe(n,"--divkit-indicator-active-background",t[4].background||"",!1),xe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),xe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),xe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Mn((t[7]-t[5].width)/2)):"",!1),xe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Mn(t[9]):"",!1),xe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),xe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Mn((t[8]-1)*t[9]):"",!1),pe(e,"class",i=fa.indicator__scroller)},m(r,i){ie(r,e,i),re(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=ma(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&xe(n,"margin","default"===t[6]?"0 ".concat(Mn(Math.max(0,t[4].width-t[5].width)/2)):"",!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-width",Mn(t[5].width),!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-height",Mn(t[5].height),!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-border-radius",Mn(t[5].borderRadius),!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),16&e[0]&&xe(n,"--divkit-indicator-active-width",Mn(t[4].width),!1),16&e[0]&&xe(n,"--divkit-indicator-active-height",Mn(t[4].height),!1),16&e[0]&&xe(n,"--divkit-indicator-active-border-radius",Mn(t[4].borderRadius),!1),16&e[0]&&xe(n,"--divkit-indicator-active-background",t[4].background||"",!1),16&e[0]&&xe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),48&e[0]&&xe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),224&e[0]&&xe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Mn((t[7]-t[5].width)/2)):"",!1),576&e[0]&&xe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Mn(t[9]):"",!1),320&e[0]&&xe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),832&e[0]&&xe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Mn((t[8]-1)*t[9]):"",!1)},d(n){n&&oe(e),o&&o.d(),t[37](null),t[38](null)}}}function $a(t){let e,n;return e=new Mr({props:{cls:Kn("indicator",fa,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ya]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Kn("indicator",fa,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function _a(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w=jt,x=jt,k=jt,E=jt,C=jt,V=jt,j=jt,D=jt,P=jt;var S,F;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P()));let{json:I={}}=e,{templateContext:z}=e,{origJson:T}=e,{layoutParams:M}=e;const N=["rounded_rectangle","circle"],J=Fe(Sn);let O,B,R,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},L="default",q=15,H=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function X(t){R.scrollToPagerItem(t),await Re();const e=B.querySelector(".".concat(fa.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,z=t.templateContext),"origJson"in t&&n(2,T=t.origJson),"layoutParams"in t&&n(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=J.getDerivedFromVars(I.shape)),V(),V=Ot(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=J.getDerivedFromVars(I.active_item_color)),E(),E=Ot(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=J.getDerivedFromVars(I.inactive_item_color)),C(),C=Ot(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=J.getDerivedFromVars(I.active_item_size)),j(),j=Ot(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,l=J.getDerivedFromVars(I.active_shape)),P(),P=Ot(l,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,s=J.getDerivedFromVars(I.inactive_shape)),D(),D=Ot(s,(t=>n(34,_=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,U=ci({type:"shape_drawable",shape:b},N,U)),_&&n(5,W=ci({type:"shape_drawable",shape:_},N,W)),!b&&!_&&y)){const t=Jr($,1.3);n(5,W=ci({type:"shape_drawable",shape:y,color:W.background},N,W)),n(5,W.background=A(v,1,W.background),W),n(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),n(4,U.background=A(m,1,U.background),U)}if(1&t.$$.dirty[0]&&(n(16,c=J.getDerivedFromVars(I.space_between_centers)),x(),x=Ot(c,(t=>n(28,f=t)))),1&t.$$.dirty[0]&&(n(15,u=J.getDerivedFromVars(I.items_placement)),k(),k=Ot(u,(t=>n(29,g=t)))),905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,L="default"),f&&n(7,q=nr(f.value,q));else if(n(6,L=g.type),"default"===L)n(7,q=nr(null===n(25,S=g.space_between_centers)||void 0===S?void 0:S.value,q));else if("stretch"===L){const t=g;n(8,H=Jr(t.max_visible_items,H)),n(9,G=nr(null===n(26,F=t.item_spacing)||void 0===F?void 0:F.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(n(12,R=t.get(I.pager_id)),await Re(),B)){const t=B.children[R.currentItem].offsetLeft;O.scroll({left:t-O.clientWidth/2,behavior:"smooth"})}}(p),64&t.$$.dirty[0]&&n(13,h={placement:L})},n(14,d=J.getStore("pagers")),w(),w=Ot(d,(t=>n(27,p=t))),[I,z,T,M,U,W,L,q,H,G,O,B,R,h,d,u,c,s,l,a,o,i,r,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(37===t.which)X(n-1<0?n:n-1);else if(39===t.which)X(n+1>=e?n:n+1);else if(36===t.which)X(0);else{if(35!==t.which)return;X(e-1)}t.preventDefault()},S,F,p,f,g,m,v,y,$,_,b,t=>K(t),function(t){Te[t?"unshift":"push"]((()=>{B=t,n(11,B)}))},function(t){Te[t?"unshift":"push"]((()=>{O=t,n(10,O)}))}]}const ba={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 wa(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&A(t.text_color)||"#000",i=Or(t.font_weight);if(br(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Mn(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 xa(t,e,n){return Math.max(e,Math.min(n,t))}function ka(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ea(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ca(t){let e,n;return e=new Mr({props:{cls:Kn("slider",ba,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Pa]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=Kn("slider",ba,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Aa(t){let e,n;return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=ba.slider__tick+" "+ba.slider__tick_active),xe(e,"--divkit-slider-tick",t[78],!1)},m(t,n){ie(t,e,n)},p(t,n){131072&n[0]&&xe(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&oe(e)}}}function Va(t){let e,n;return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=ba.slider__tick+" "+ba.slider__tick_inactive),xe(e,"--divkit-slider-tick",t[78],!1)},m(t,n){ie(t,e,n)},p(t,n){262144&n[0]&&xe(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&oe(e)}}}function ja(t){let e,n,r,i,o;return{c(){e=le("div"),n=le("div"),r=ce(t[6]),this.h()},l(i){e=ye(i,"DIV",{class:!0});var o=ge(e);n=ye(o,"DIV",{class:!0});var a=ge(n);r=_e(a,t[6]),a.forEach(oe),o.forEach(oe),this.h()},h(){var r,a,l;pe(n,"class",i=ba["slider__thumb-text-inner"]),xe(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),xe(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),xe(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),pe(e,"class",o=ba["slider__thumb-text"])},m(t,i){ie(t,e,i),re(e,n),re(n,r)},p(t,e){var i,o,a;64&e[0]&&we(r,t[6]),4096&e[0]&&xe(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em",!1),4096&e[0]&&xe(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||"",!1),4096&e[0]&&xe(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&oe(e)}}}function Da(t){let e,n,r,i,o;return{c(){e=le("div"),n=le("div"),r=ce(t[7]),this.h()},l(i){e=ye(i,"DIV",{class:!0});var o=ge(e);n=ye(o,"DIV",{class:!0});var a=ge(n);r=_e(a,t[7]),a.forEach(oe),o.forEach(oe),this.h()},h(){var r,a,l;pe(n,"class",i=ba["slider__thumb-text-inner"]),xe(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),xe(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),xe(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),pe(e,"class",o=ba["slider__thumb-text"]+" "+ba["slider__thumb-text_secondary"])},m(t,i){ie(t,e,i),re(e,n),re(n,r)},p(t,e){var i,o,a;128&e[0]&&we(r,t[7]),8192&e[0]&&xe(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em",!1),8192&e[0]&&xe(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||"",!1),8192&e[0]&&xe(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&oe(e)}}}function Pa(t){let e,n,r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=Aa(Ea(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=Va(ka(t,E,e));let A=t[12]&&ja(t),V=t[37]&&function(t){let e,n,r=t[13]&&Da(t);return{c(){e=le("div"),r&&r.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);r&&r.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",n=ba.slider__thumb+" "+ba.slider__thumb_secondary),xe(e,"border-radius",Mn(t[9].borderRadius),!1),xe(e,"background",t[9].background,!1),xe(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){ie(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=Da(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&xe(e,"border-radius",Mn(t[9].borderRadius),!1),512&n[0]&&xe(e,"background",t[9].background,!1),512&n[0]&&xe(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&oe(e),r&&r.d()}}}(t),j=t[37]&&function(t){let e,n,r,i,o;return{c(){e=le("input"),this.h()},l(t){e=ye(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){pe(e,"type","range"),pe(e,"class",n=t[16]?ba.slider__input:"".concat(ba.slider__input," ").concat(ba.slider__input_secondary)),pe(e,"min",t[4]),pe(e,"max",t[5]),pe(e,"step","1"),e.value=r=t[16]?t[6]:t[7],pe(e,"aria-label",t[20])},m(n,r){ie(n,e,r),i||(o=[he(e,"input",t[68]),he(e,"mousedown",t[37]?t[40]:null),he(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?ba.slider__input:"".concat(ba.slider__input," ").concat(ba.slider__input_secondary))&&pe(e,"class",n),16&i[0]&&pe(e,"min",t[4]),32&i[0]&&pe(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&pe(e,"aria-label",t[20])},d(t){t&&oe(e),i=!1,It(o)}}}(t);return{c(){e=le("div"),n=le("div"),r=le("div"),o=ue(),a=le("div"),s=ue();for(let t=0;t<k.length;t+=1)k[t].c();c=ue();for(let t=0;t<C.length;t+=1)C[t].c();u=ue(),d=le("div"),A&&A.c(),p=ue(),V&&V.c(),f=ue(),g=le("input"),y=ue(),j&&j.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var i=ge(e);n=ye(i,"DIV",{class:!0});var l=ge(n);r=ye(l,"DIV",{class:!0}),ge(r).forEach(oe),o=be(l),a=ye(l,"DIV",{class:!0}),ge(a).forEach(oe),s=be(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=be(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=be(l),d=ye(l,"DIV",{class:!0});var h=ge(d);A&&A.l(h),h.forEach(oe),p=be(l),V&&V.l(l),f=be(l),g=ye(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=be(l),j&&j.l(l),l.forEach(oe),i.forEach(oe),this.h()},h(){pe(r,"class",i=ba.slider__track),xe(r,"height",Mn(t[10].height),!1),xe(r,"border-radius",Mn(t[10].borderRadius),!1),xe(r,"background",t[10].background,!1),xe(r,"box-shadow",t[10].boxShadow||"",!1),pe(a,"class",l=ba["slider__active-track"]),xe(a,"left",(100*t[23]).toFixed(2)+"%",!1),xe(a,"width",(100*t[24]).toFixed(2)+"%",!1),xe(a,"height",Mn(t[11].height),!1),xe(a,"border-radius",Mn(t[11].borderRadius),!1),xe(a,"background",t[11].background,!1),xe(a,"box-shadow",t[11].boxShadow||"",!1),pe(d,"class",h=ba.slider__thumb),xe(d,"border-radius",Mn(t[8].borderRadius),!1),xe(d,"background",t[8].background,!1),xe(d,"box-shadow",t[8].boxShadow||"",!1),pe(g,"type","range"),pe(g,"class",m=t[16]?"".concat(ba.slider__input," ").concat(ba.slider__input_secondary):ba.slider__input),pe(g,"min",t[4]),pe(g,"max",t[5]),pe(g,"step","1"),g.value=v=t[16]?t[7]:t[6],pe(g,"aria-label",t[19]),pe(n,"class",$=ba["slider__tracks-inner"]),pe(e,"class",_=ba["slider__tracks-wrapper"])},m(i,l){ie(i,e,l),re(e,n),re(n,r),re(n,o),re(n,a),re(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);re(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);re(n,u),re(n,d),A&&A.m(d,null),re(n,p),V&&V.m(n,null),re(n,f),re(n,g),re(n,y),j&&j.m(n,null),t[69](n),b||(w=he(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&xe(r,"height",Mn(t[10].height),!1),1024&e[0]&&xe(r,"border-radius",Mn(t[10].borderRadius),!1),1024&e[0]&&xe(r,"background",t[10].background,!1),1024&e[0]&&xe(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&xe(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&xe(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&xe(a,"height",Mn(t[11].height),!1),2048&e[0]&&xe(a,"border-radius",Mn(t[11].borderRadius),!1),2048&e[0]&&xe(a,"background",t[11].background,!1),2048&e[0]&&xe(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const i=Ea(t,x,r);k[r]?k[r].p(i,e):(k[r]=Aa(i),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const i=ka(t,E,r);C[r]?C[r].p(i,e):(C[r]=Va(i),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=ja(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&xe(d,"border-radius",Mn(t[8].borderRadius),!1),256&e[0]&&xe(d,"background",t[8].background,!1),256&e[0]&&xe(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(ba.slider__input," ").concat(ba.slider__input_secondary):ba.slider__input)&&pe(g,"class",m),16&e[0]&&pe(g,"min",t[4]),32&e[0]&&pe(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&pe(g,"aria-label",t[19]),t[37]&&j.p(t,e)},d(n){n&&oe(e),ae(k,n),ae(C,n),A&&A.d(),V&&V.d(),j&&j.d(),t[69](null),b=!1,w()}}}function Sa(t){let e,n,r,i,o=!t[14]&&Ca(t);return{c(){o&&o.c(),e=de()},l(t){o&&o.l(t),e=de()},m(a,l){o&&o.m(a,l),ie(a,e,l),n=!0,r||(i=he(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(Ze(),en(o,1,1,(()=>{o=null})),Qe()):o?(o.p(t,n),16384&n[0]&&tn(o,1)):(o=Ca(t),o.c(),tn(o,1),o.m(e.parentNode,e))},i(t){n||(tn(o),n=!0)},o(t){en(o),n=!1},d(t){o&&o.d(t),t&&oe(e),r=!1,i()}}}function Fa(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 Ia(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,z,T,M=jt,N=jt,J=jt,O=jt,B=jt,R=jt,U=jt,W=jt,L=jt,q=jt,H=jt,G=jt;var K,X,Y,Z;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},it=["rounded_rectangle","circle"],ot=["rounded_rectangle"],at=Fe(Sn),lt=Fe(hr);let st,ct=!1,ut=0,dt=100;const ht=at.getJsonWithVars(Q.thumb_value_variable),pt=at.getJsonWithVars(Q.thumb_secondary_value_variable);let ft=ht&&at.getVariable(ht,"integer")||_n("temp","integer",0);Bt(t,ft,(t=>n(64,I=t)));let gt=pt&&at.getVariable(pt,"integer")||_n("temp","integer",0);Bt(t,gt,(t=>n(63,F=t)));let mt,vt,yt,$t=xa(I||0,ut,dt),_t=xa(F||0,ut,dt),bt=rt,wt=bt,xt=rt,kt=rt,Et=null,Ct=null,At=yt,Vt="",Dt="",Pt=!1;function St(t,e){const r=Number(t.target.value);ct===("first"===e)?(n(7,_t=r),gt.setValue(r)):(n(6,$t=r),ft.setValue(r))}let Ft=!1;function It(){if(!st)return;const t=dt-ut,e=(null==Et?void 0:Et.width)||0,n=(null==Ct?void 0:Ct.width)||0;Math.max(e,n)*t>=(null==st?void 0:st.clientWidth)?Ft||(at.logError(Fn(new Error("Slider ticks overlap each other"),{level:"warn"})),Ft=!0):Ft=!1}const zt=ao(It,50);return De((()=>{It()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=Ot(r,(t=>n(66,T=t)))),1&t.$$.dirty[0]&&(n(35,i=at.getDerivedFromVars(Q.max_value)),H(),H=Ot(i,(t=>n(65,z=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,ut=lr(T,ut)),n(5,dt=lr(z,dt)),It()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=xa(I||0,ut,dt);t!==$t&&n(6,$t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=xa(F||0,ut,dt);t!==_t&&n(7,_t=t)}if(1&t.$$.dirty[0]&&(n(34,o=at.getDerivedFromVars(Q.thumb_style)),q(),q=Ot(o,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,bt=ci(S,it,bt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),L(),L=Ot(a,(t=>n(61,P=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,wt=ci(P,it,bt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),W(),W=Ot(l,(t=>n(60,D=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,xt=ci(D,ot,xt)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),U(),U=Ot(s,(t=>n(59,j=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,kt=ci(j,ot,kt)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=Ot(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=ci(V,it,rt);t!==rt&&n(47,Et=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Et?(n(17,mt=pt?Fa(Math.min($t,_t),Math.max($t,_t)+1,ut,dt,!0):Fa(ut,$t,ut,dt,!0)),It()):n(17,mt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=Ot(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=ci(A,it,rt);t!==rt&&n(48,Ct=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(Ct?(n(18,vt=pt?Fa(Math.min($t,_t),Math.max($t,_t)+1,ut,dt,!1):Fa($t+1,dt+1,ut,dt,!0)),It()):n(18,vt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),O(),O=Ot(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,yt=wa(C,yt)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),J(),J=Ot(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,At=wa(E,yt)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),N(),N=Ot(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Vt=k.description):at.logError(Fn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),M(),M=Ot(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,Dt=x.description):pt&&at.logError(Fn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(Fn(new Error('Cannot show "slider" inside component with action'))),t=!0):bt===rt?(at.logError(Fn(new Error('Missing "thumb_style" in slider'))),t=!0):kt===rt?(at.logError(Fn(new Error('Missing "track_active_style" in slider'))),t=!0):xt===rt&&(at.logError(Fn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Pt&&n(14,Pt=t)}768&t.$$.dirty[0]&&n(52,g=Mn(Math.max(...[bt.width,wt.width,0].filter(tr)))),768&t.$$.dirty[0]&&n(51,m=Mn(Math.max(...[bt.height,wt.height,0].filter(tr)))),112&t.$$.dirty[0]&&n(50,v=($t-ut)/(dt-ut)),176&t.$$.dirty[0]&&n(49,y=pt?(_t-ut)/(dt-ut):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":Mn(bt.width),"--divkit-slider-thumb-height":Mn(bt.height),"--divkit-slider-thumb-secondary-width":Mn(wt.width),"--divkit-slider-thumb-secondary-height":Mn(wt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==yt?void 0:yt.offset)||void 0===K?void 0:K.x)?Nn(yt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==yt?void 0:yt.offset)||void 0===X?void 0:X.y)?Nn(yt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==At?void 0:At.offset)||void 0===Y?void 0:Y.x)?Nn(At.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==At?void 0:At.offset)||void 0===Z?void 0:Z.y)?Nn(At.offset.y):void 0,"--divkit-slider-tick-active-width":Et?Mn(Et.width):void 0,"--divkit-slider-tick-active-height":Et?Mn(Et.height):void 0,"--divkit-slider-tick-active-border-radius":Et?Mn(Et.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Et?void 0:Et.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Et?void 0:Et.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Ct?Mn(Ct.width):void 0,"--divkit-slider-tick-inactive-height":Ct?Mn(Ct.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ct?Mn(Ct.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,ut,dt,$t,_t,bt,wt,xt,kt,yt,At,Pt,st,ct,mt,vt,Vt,Dt,w,b,_,$,f,p,h,d,u,c,s,l,a,o,i,r,pt,ft,gt,function(t){var e,r;const i="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===i)return;const o=st.getBoundingClientRect(),a=(i-o.left)/o.width,l=(dt-ut)*a,s=Math.round(xa(l,ut,dt));n(16,ct=s<($t+_t)/2==$t<_t)},St,zt,K,X,Y,Z,Et,Ct,y,v,m,g,x,k,E,C,A,V,j,D,P,S,F,I,z,T,t=>St(t,"first"),t=>St(t,"second"),function(t){Te[t?"unshift":"push"]((()=>{st=t,n(15,st)}))}]}const za={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function Ta(t){let e,n;return e=new Mr({props:{cls:Kn("input",za,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Oa]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Kn("input",za,t[12])),2048&n[0]&&(r.style=t[11]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),100208&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ma(t){let e;return{c(){e=ce("​")},l(t){e=_e(t,"​")},m(t,n){ie(t,e,n)},d(t){t&&oe(e)}}}function Na(t){let e,n,r,i;return{c(){e=le("input"),this.h()},l(t){e=ye(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){pe(e,"type",t[9]),pe(e,"class",n=za.input__input),pe(e,"autocomplete","off"),pe(e,"autocapitalize","off"),pe(e,"aria-label",t[10]),pe(e,"placeholder",t[15]),e.value=t[8]},m(n,o){ie(n,e,o),t[57](e),r||(i=[he(e,"input",t[29]),he(e,"mousedown",(function(){zt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),he(e,"click",(function(){zt(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,512&r[0]&&pe(e,"type",t[9]),1024&r[0]&&pe(e,"aria-label",t[10]),32768&r[0]&&pe(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&oe(e),t[57](null),r=!1,It(i)}}}function Ja(t){let e,n,r,i;return{c(){e=le("textarea"),this.h()},l(t){e=ye(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=za.input__input),pe(e,"autocomplete","off"),pe(e,"autocapitalize","off"),pe(e,"aria-label",t[10]),pe(e,"placeholder",t[15]),e.value=t[8]},m(n,o){ie(n,e,o),t[56](e),r||(i=[he(e,"input",t[29]),he(e,"mousedown",(function(){zt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),he(e,"click",(function(){zt(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,1024&r[0]&&pe(e,"aria-label",t[10]),32768&r[0]&&pe(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&oe(e),t[56](null),r=!1,It(i)}}}function Oa(t){let e,n,r,i,o,a,l=t[8].endsWith("\n")||!t[8],s=l&&Ma();function c(t,e){return t[4]?Ja:Na}let u=c(t),d=u(t);return{c(){e=le("span"),n=le("span"),r=ce(t[8]),s&&s.c(),o=ue(),d.c(),this.h()},l(i){e=ye(i,"SPAN",{class:!0});var a=ge(e);n=ye(a,"SPAN",{class:!0,"aria-hidden":!0});var l=ge(n);r=_e(l,t[8]),s&&s.l(l),l.forEach(oe),o=be(a),d.l(a),a.forEach(oe),this.h()},h(){pe(n,"class",i=za.input__holder),pe(n,"aria-hidden","true"),pe(e,"class",a=za.input__wrapper)},m(i,a){ie(i,e,a),re(e,n),re(n,r),s&&s.m(n,null),t[55](n),re(e,o),d.m(e,null)},p(t,i){256&i[0]&&we(r,t[8]),256&i[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Ma(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,i):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&oe(e),s&&s.d(),t[55](null),d.d()}}}function Ba(t){let e,n,r=!t[7]&&Ta(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[7]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),128&n[0]&&tn(r,1)):(r=Ta(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function Ra(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=jt,k=jt;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:C}=e,{origJson:V}=e,{layoutParams:j}=e;const D=Fe(Sn);let P,S,F=!1,I=!1;const z=D.getJsonWithVars(E.text_variable);let T=!1;z||(T=!0,D.logError(Fn(new Error('Missing "text_variable" in "input"'))));let M=z&&D.getVariable(z,"string")||_n("temp","string","");Bt(t,M,(t=>n(54,b=t)));let N="";const J=D.getDerivedFromVars(E.hint_text);Bt(t,J,(t=>n(53,_=t)));const O=D.getDerivedFromVars(E.hint_color);Bt(t,O,(t=>n(52,$=t)));let B="";const R=D.getDerivedFromVars(E.font_size);Bt(t,R,(t=>n(51,y=t)));let U=12;const W=D.getDerivedFromVars(E.font_weight);let L;Bt(t,W,(t=>n(50,v=t)));const q=D.getDerivedFromVars(E.line_height);let H;Bt(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(E.letter_spacing);Bt(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(E.text_color);Bt(t,X,(t=>n(47,f=t)));let Y="#000";const Z=D.getDerivedFromVars(E.highlight_color);Bt(t,Z,(t=>n(46,p=t)));let Q="";const tt=D.getDerivedFromVars(E.keyboard_type);Bt(t,tt,(t=>n(45,h=t)));const et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let nt="multi_line_text",rt="text";const it=D.getDerivedFromVars(E.max_visible_lines);Bt(t,it,(t=>n(44,d=t)));let ot="",at="";const lt=D.getDerivedFromVars(E.select_all_on_focus);function st(){n(32,I=S.scrollHeight>S.offsetHeight)}return Bt(t,lt,(t=>n(16,w=t))),De((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,E=t.json),"templateContext"in t&&n(1,C=t.templateContext),"origJson"in t&&n(2,V=t.origJson),"layoutParams"in t&&n(3,j=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,N=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=A($,1,B)),1048584&t.$$.dirty[1]&&n(34,U=Jr(y,U)),524304&t.$$.dirty[1]&&n(35,L=Br(v,L)),262152&t.$$.dirty[1]){const t=m;br(t)&&n(36,H=t/U)}131080&t.$$.dirty[1]&&Qn(g)&&n(37,K=Mn(g/U*10)),65664&t.$$.dirty[1]&&n(38,Y=A(f,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=A(p,1,Q)),16384&t.$$.dirty[1]&&h&&h in et&&(n(9,rt=et[h]),n(40,nt=h)),512&t.$$.dirty[1]&&n(4,i="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,o=D.getDerivedFromVars(E.paddings)),k(),k=Ot(o,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&br(d)&&n(41,ot="calc(".concat(d*(H||1.25)+"em"," + ").concat(Nn(nr(null==u?void 0:u.top,0)+nr(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(E.accessibility)),x(),x=Ot(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(Fn(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&n(12,l={"highlight-color":Boolean(Q),"vertical-overflow":I,multiline:i}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":Mn(U),"font-weight":L,"line-height":H,"letter-spacing":K,color:Y,"max-height":ot})},[E,C,V,j,i,P,S,T,N,rt,at,s,l,a,o,r,w,M,J,O,R,W,q,G,X,Z,tt,it,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){F=!1,setTimeout((()=>{F=!0}),250)},function(){F||P.select()},I,B,U,L,H,K,Y,Q,nt,ot,c,u,d,h,p,f,g,m,v,y,$,_,b,function(t){Te[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){Te[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){Te[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const Ua={text:class extends fn{constructor(t){super(),pn(this,t,li,ai,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends fn{constructor(t){super(),pn(this,t,Di,ji,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends fn{constructor(t){super(),pn(this,t,Ti,zi,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Hi,gif:Hi,grid:class extends fn{constructor(t){super(),pn(this,t,ro,no,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends fn{constructor(t){super(),pn(this,t,$o,yo,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends fn{constructor(t){super(),pn(this,t,So,Po,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends fn{constructor(t){super(),pn(this,t,oa,ra,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends fn{constructor(t){super(),pn(this,t,pa,ha,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends fn{constructor(t){super(),pn(this,t,_a,$a,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends fn{constructor(t){super(),pn(this,t,Ia,Sa,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends fn{constructor(t){super(),pn(this,t,Ra,Ba,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Wa(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=new i(o(t))),{c(){e&&cn(e.$$.fragment),n=de()},l(t){e&&un(e.$$.fragment,t),n=de()},m(t,i){e&&dn(e,t,i),ie(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),i!==(i=t[5])){if(e){Ze();const t=e;en(t.$$.fragment,1,0,(()=>{hn(t,1)})),Qe()}i?(e=new i(o(t)),cn(e.$$.fragment),tn(e.$$.fragment,1),dn(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&tn(e.$$.fragment,t),r=!0)},o(t){e&&en(e.$$.fragment,t),r=!1},d(t){t&&oe(n),e&&hn(e,t)}}}function La(t){let e,n,r=t[5]&&Wa(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&tn(r,1)):(r=Wa(t),r.c(),tn(r,1),r.m(e.parentNode,e)):r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe())},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function qa(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=Fe(Sn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&Ua[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&Ua[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(Fn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}const Ha=class extends fn{constructor(t){super(),pn(this,t,qa,La,Nt,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Ga(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 Ka(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=Qa(Ga(t,i,e));return{c(){e=se("svg"),n=se("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=$e(t,"svg",{class:!0,"aria-hidden":!0});var r=ge(e);n=$e(r,"defs",{});var i=ge(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(oe),r.forEach(oe),this.h()},h(){pe(e,"class",r="divkit-dc22b"),pe(e,"aria-hidden","true")},m(t,r){ie(t,e,r),re(e,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=Ga(t,i,r);o[r]?o[r].p(a,e):(o[r]=Qa(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&&oe(e),ae(o,t)}}}function Xa(t){let e,n;return{c(){e=se("feBlend"),this.h()},l(t){e=$e(t,"feBlend",{in2:!0,mode:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"in2","SourceGraphic"),pe(e,"mode",n=t[3])},m(t,n){ie(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&pe(e,"mode",n)},d(t){t&&oe(e)}}}function Ya(t){let e;return{c(){e=se("feComposite"),this.h()},l(t){e=$e(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"in2","SourceGraphic"),pe(e,"operator","arithmetic"),pe(e,"k1","1"),pe(e,"k2","0"),pe(e,"k3","0"),pe(e,"k4","0")},m(t,n){ie(t,e,n)},p:jt,d(t){t&&oe(e)}}}function Za(t){let e,n;return{c(){e=se("feComposite"),this.h()},l(t){e=$e(t,"feComposite",{in2:!0,operator:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"in2","SourceGraphic"),pe(e,"operator",n=t[3].split("_")[1])},m(t,n){ie(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&pe(e,"operator",n)},d(t){t&&oe(e)}}}function Qa(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Za:"multiply"===t[3]?Ya:Xa}let a=o(t),l=a(t);return{c(){e=se("filter"),n=se("feFlood"),l.c(),this.h()},l(t){e=$e(t,"filter",{id:!0});var r=ge(e);n=$e(r,"feFlood",{"flood-color":!0}),ge(n).forEach(oe),l.l(r),r.forEach(oe),this.h()},h(){pe(n,"flood-color",r=t[2]),pe(e,"id",i=t[0][t[1]])},m(t,r){ie(t,e,r),re(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&pe(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&pe(e,"id",i)},d(t){t&&oe(e),l.d()}}}function tl(t){let e,n=Object.keys(t[0]).length,r=n&&Ka(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,n){r&&r.m(t,n),ie(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=Ka(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:jt,o:jt,d(t){r&&r.d(t),t&&oe(e)}}}function el(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const nl=class extends fn{constructor(t){super(),pn(this,t,el,tl,Nt,{svgFiltersMap:0})}};function rl(t,e,n,r){const i=n[t.type];if(!i)return r(Fn(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function e(n,i){const o=Object.keys(i).filter((t=>"__proto__"!==t)),l=o.filter((t=>"$"!==t.charAt(0))),s=o.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=i[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const o=i[e],l=a[o];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(Fn(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function il(){}function ol(t){return{subscribe:e=>(e(t),il)}}class al{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return E(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=kn(t,this.ast);if("error"===n.type)return void e(Fn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;if(r instanceof Date)return P(r);if("boolean"===n.type)return Boolean(r);if("color"===n.type){const t=j(String(r));if(t)return B(t);e(Fn(new Error("Expression execution error")))}return r}catch(t){return void e(Fn(new Error("Expression execution error")))}}}function ll(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=_(t,{startRule:"JsonStringContents"}),r=N(n);return e.vars.push(...r),new al(n)}catch(e){return void n(Fn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>ll(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=ll(t[i],e,n);return r}}var r;return t}function sl(t,e,n){if(t){if(t instanceof al)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>sl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=sl(t[i],e,n);return r}}return t}function cl(t,e){const n={vars:[],hasExpression:!1},r=ll(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>sl(r,t,e)}}const ul={pagers:function(){return mn(new Map)}},dl=new Map,hl=new Map;function pl(t){const e=dl.get(t)||mn("");return dl.has(t)||dl.set(t,e),e}function fl(t){const e=hl.get(t)||new Map;return hl.has(t)||hl.set(t,e),e}class gl{setVariable(t){const e=t.getName(),n=fl(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),pl(this).set(e)}getVariable(t){return fl(this).get(t)}}function ml(){return new gl}function vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const yl=new Set(["start","stop","pause","resume","cancel","reset"]);class $l{constructor(t){vl(this,"timers",new Map),vl(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(Fn(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(Fn(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&yl.has(e)))return void this.logError(Fn(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(Fn(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(Fn(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(Fn(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(Fn(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(Fn(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(Fn(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(Fn(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(Fn(new Error("The timer is already running"))):this.logError(Fn(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 _l(t){let e,n,r,i,o,a,l,s;return n=new nl({props:{svgFiltersMap:t[2]}}),i=new Ha({props:{div:t[6],templateContext:t[5]}}),{c(){e=le("div"),cn(n.$$.fragment),r=ue(),cn(i.$$.fragment),this.h()},l(t){e=ye(t,"DIV",{class:!0});var o=ge(e);un(n.$$.fragment,o),r=be(o),un(i.$$.fragment,o),o.forEach(oe),this.h()},h(){pe(e,"class",o=""+(En+(t[3]?" ".concat(jn):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){ie(t,e,o),dn(n,e,null),re(e,r),dn(i,e,null),a=!0,l||(s=he(e,"touchstart",wl,{passive:!0}),l=!0)},p(t,r){const i={};4&r[0]&&(i.svgFiltersMap=t[2]),n.$set(i),(!a||9&r[0]&&o!==(o=""+(En+(t[3]?" ".concat(jn):"")+(t[0]?" ".concat(t[0]):""))))&&pe(e,"class",o)},i(t){a||(tn(n.$$.fragment,t),tn(i.$$.fragment,t),a=!0)},o(t){en(n.$$.fragment,t),en(i.$$.fragment,t),a=!1},d(t){t&&oe(e),hn(n),hn(i),l=!1,s()}}}function bl(t){let e,n,r=!t[1]&&t[6]&&_l(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){!t[1]&&t[6]?r?(r.p(t,n),2&n[0]&&tn(r,1)):(r=_l(t),r.c(),tn(r,1),r.m(e.parentNode,e)):r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe())},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function wl(){}function xl(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new gl}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{onError:m}=e,{onStat:v}=e,{onCustomAction:y}=e,{onComponent:$}=e,b=mn("desktop"===u);if(Bt(t,b,(t=>n(3,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");b.set(!t.matches),t.addListener((()=>{b.set(!t.matches)}))}let w="light",x=null;function k(){"system"===d&&x&&n(23,w=x.matches?"dark":"light")}const E=new Set(g);let C=!1;c||(C=!0,M(Fn(new Error('"json" prop is required')))),s||(C=!0,M(Fn(new Error('"id" prop is required'))));let A=function(t){if(!t)return Fn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return Fn(new Error("Missing card"));if(!e.states||!e.states.length)return Fn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ua)return Fn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return Fn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return Fn(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const V=c.templates||{};A&&(C=!0,M(A));const j={stateChange:!1},D=pl(h),P=fl(h),S=new Map,F=new Map,I=new Map;let z=null;function T(t){const e=cl(t,M);return e.vars.length?e.applyVars(F):t}function M(t){m?m({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){v&&v({type:t,action:e})}let O=0;function B(t){return"".concat(s,"-").concat(O++)}let R={},U={};function W(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,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}}(r.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=G(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.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=G(t);n&&n.setPreviousItem(e)}(r.get("id"),r.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=G(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=F.get(n);t?t.set(i):M(Fn(new Error("Cannot find variable"),{additional:{name:n}}))}else M(Fn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");z?z.execTimerAction(a,o):M(Fn(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;default:M(Fn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){M(Fn(t,{additional:{url:e}}))}}async function L(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=qn(i);if(t)if(Hn(t,E)){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?(W(r),await Re()):r.log_id&&(q(r),await Re())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==y||y(t)}const H=new Map;function G(t){if(H.has(t))return H.get(t);M(Fn(new Error("Missing instance with id"),{additional:{id:t}}))}const K=new Map;function X(t){for(const e of t)F.has(e)&&t.delete(e);return t}Se(Sn,{logError:M,logStat:J,hasTemplate:function(t){return t in V},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in V;){if(({json:t,templateContext:e}=rl(t,e,V,M)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:B,genClass:function(t){return"divkit-".concat(B())},execAction:W,execAnyActions:L,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){H.has(t)?M(Fn(new Error("Duplicate instance id"),{additional:{id:t}})):H.set(t,e)},unregisterInstance:function(t){H.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(U[r]=U[r]||0,++U[r],R[r])return R[r];const i="".concat(B(),"-svg-filter");return n(2,R=Object.assign(Object.assign({},R),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);U[r]&&0==--U[r]&&n(2,R=Object.keys(R).reduce(((t,e)=>(U[e]&&(t[e]=R[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return ol(t);const e=cl(t,M);return e.vars.length?vn(e.vars.map((t=>F.get(t)||function(t){const e=I.get(t)||mn(void 0);return I.has(t)||I.set(t,e),e}(t))).filter(On),(()=>e.applyVars(F))):e.hasExpression?ol(e.applyVars(F)):ol(t)},getJsonWithVars:T,getStore:function(t){return K.has(t)||function(t){K.has(t)||K.set(t,ul[t]())}(t),K.get(t)},getVariable:function(t,e){const n=F.get(t);if(n){const r=n.getType();if(r!==e)return void M(Fn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return E},isDesktop:b,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:i}=t;$&&$({type:"mount",node:e,json:n,origJson:r,templateContext:i})},unregisterComponent:function(t){let{node:e}=t;$&&$({type:"destroy",node:e})}}),Se(hr,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Z&&Z.has(t))return Z.get(t);M(Fn(new Error("Missing state block with id"),{additional:{id:t}}))}};let Z=null;Se(Yn,{registerInstance(t,e){Z||(Z=new Map),Z.has(t)?M(Fn(new Error("Duplicate state with id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance(t){null==Z||Z.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 Q=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(Q)&&Q.forEach((t=>{if(t&&t.type in $n&&t.name){if(S.has(t.name))return void M(Fn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=_n(t.name,t.type,t.value);S.set(t.name,e),F.set(t.name,e)}catch(e){M(Fn(e,{additional:{name:t.name}}))}}}));const tt=c.palette;tt&&tt[w].forEach((t=>{if(S.has(t.name))M(Fn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=_n(t.name,"color",t.color);S.set(t.name,e),F.set(t.name,e)}catch(e){M(Fn(e,{additional:{name:t.name}}))}}));for(const[t,e]of P)F.has(t)||F.set(t,e);D.subscribe((t=>{if(t&&!F.has(t)){const e=P.get(t);F.set(t,e);const n=I.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const et=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(et)&&et.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void M(Fn(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=_(t.condition,{startRule:"JsonStringContents"}),i=N(r);if(!i.length)return void M(Fn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return X(e),e.size?new Promise((t=>{const n=D.subscribe((()=>{X(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{vn(i.map((t=>F.get(t))).filter(On),(()=>kn(F,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=T(t);e.log_id&&W(e)})),e=Boolean(r.value)):M(Fn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){M(Fn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else M(Fn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const nt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(nt){const t=z=new $l({logError:M,applyVars:T,hasVariableWithType:function(t,e){const n=F.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=F.get(t);n?n.setValue(e):M(Fn(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:L});nt.forEach((e=>t.createTimer(e)))}const rt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states,it=rt&&!C?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:rt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return Pe((()=>{z&&z.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"onError"in t&&n(14,m=t.onError),"onStat"in t&&n(15,v=t.onStat),"onCustomAction"in t&&n(16,y=t.onCustomAction),"onComponent"in t&&n(17,$=t.onComponent)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,w=d):"system"===d?"undefined"!=typeof matchMedia?(x||(n(24,x=matchMedia("(prefers-color-scheme: dark)")),x.addListener(k)),n(23,w=x.matches?"dark":"light")):n(23,w="light"):M(Fn(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&w&&tt&&tt[w].forEach((t=>{const e=F.get(t.name);e&&e.setValue(t.color)}))},[p,C,R,r,b,{},it,d,s,c,u,h,f,g,m,v,y,$,function(t){n(7,d=t)},function(){return F},function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=F.get(t);n&&n.setValue(e)}},function(t){const e=F.get(t);return null==e?void 0:e.getValue()},W,w,x]}const kl=class extends fn{constructor(t){super(),pn(this,t,xl,bl,Nt,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,onError:14,onStat:15,onCustomAction:16,onComponent:17,setTheme:18,getDebugVariables:19,setVariable:20,getVariable:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[18]}get getDebugVariables(){return this.$$.ctx[19]}get setVariable(){return this.$$.ctx[20]}get getVariable(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};function El(t){return new kl({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Cl(t,e){let n;try{n=_(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return kn((null==e?void 0:e.variables)||new Map,n)}function Al(){return Array.from(b.keys())}var Vl=exports;for(var jl in e)Vl[jl]=e[jl];e.__esModule&&Object.defineProperty(Vl,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{createGlobalVariablesController:()=>ml,createVariable:()=>_n,evalExpression:()=>Cl,functionNames:()=>Al,render:()=>El,valToString:()=>S});const n=2147483647,r=-2147483648,i=Number.MAX_VALUE,o=Number.MIN_VALUE,a="string",l="integer",s="number",c="boolean",u="color",d="url",h="datetime";function p(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function f(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function g(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 m(t){var e=parseInt(t,10);if(e>n||e<r)throw new Error("Value ".concat(t," can't be converted to Integer type."));return e}function v(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function y(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,y.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function $(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function _(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:zt,JsonStringContents:function(){var t,e,n;for(t=wt,e=[],n=Tt();n!==r;)e.push(n),n=Tt();return xt=t,e=bt(e)}},a=zt,l="@{",s="}",c="@{}",u="\\",d="||",h="&&",$="==",_="!=",b=">=",w="<=",x="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,j=/^[0-9]/,D=/^[a-zA-Z_0-9.]/,P=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,F=jt("@{",!1),I=jt("}",!1),z=jt("@{}",!1),T=jt("\\",!1),M={type:"any"},N=Dt(["}"],!0,!1),J=jt("?",!1),O=jt(":",!1),B=jt("||",!1),R=jt("&&",!1),U=jt("==",!1),W=jt("!=",!1),L=jt(">=",!1),q=jt(">",!1),H=jt("<=",!1),G=jt("<",!1),K=jt("+",!1),X=jt("-",!1),Y=jt("/",!1),Z=jt("*",!1),Q=jt("%",!1),tt=jt("!",!1),et=jt("(",!1),nt=jt(")",!1),rt=jt(",",!1),it=Pt("string"),ot=jt("'",!1),at=Dt(["'","}"],!0,!1),lt=Pt("integer"),st=Dt([["0","9"]],!1,!1),ct=Pt("number"),ut=jt(".",!1),dt=jt("e",!1),ht=jt("E",!1),pt=Pt("boolean"),ft=jt("true",!1),gt=jt("false",!1),mt=Dt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Pt("identifier"),yt=Dt([["a","z"],["A","Z"],"_"],!1,!1),$t=Pt("whitespace"),_t=Dt([" ","\t","\r","\n"],!1,!1),bt=function(t){return g(t)},wt=0,xt=0,kt=[{line:1,column:1}],Et=0,Ct=[],At=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 Vt(){return t.substring(xt,wt)}function jt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Dt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pt(t){return{type:"other",description:t}}function St(e){var n,r=kt[e];if(r)return r;for(n=e-1;!kt[n];)n--;for(r={line:(r=kt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return kt[e]=r,r}function Ft(t,e){var n=St(t),r=St(e);return{source:i,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function It(t){wt<Et||(wt>Et&&(Et=wt,Ct=[]),Ct.push(t))}function zt(){var t,e;return t=wt,Kt(),(e=Mt())!==r?(Kt(),xt=t,t=e):(wt=t,t=r),t}function Tt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r?(i=Kt(),(o=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=u,wt++):(i=r,0===At&&It(T)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r){if(i=[],A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(N)),o!==r)for(;o!==r;)i.push(o),A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(N));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=v(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Mt(){var e,n,i,o,a,l;return e=wt,(n=Nt())!==r?(Kt(),63===t.charCodeAt(wt)?(i="?",wt++):(i=r,0===At&&It(J)),i!==r?(Kt(),(o=Mt())!==r?(Kt(),58===t.charCodeAt(wt)?(a=":",wt++):(a=r,0===At&&It(O)),a!==r?(Kt(),(l=Mt())!==r?(xt=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=Nt()),e}function Nt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Jt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===d?(l=d,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=f(n,i)}else wt=e,e=r;return e}function Jt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ot())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===h?(l=h,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===h?(l=h,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=f(n,i)}else wt=e,e=r;return e}function Ot(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Bt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(W))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(W))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Bt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Rt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(L)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(L)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Rt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ut())!==r){for(i=[],o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Ut(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Wt())!==r){for(i=[],o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Wt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Wt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=p(n,i)}else wt=e,e=r;return e}function Wt(){var e,n,i;return(e=Ht())===r&&(e=qt())===r&&(e=wt,33===t.charCodeAt(wt)?(n="!",wt++):(n=r,0===At&&It(tt)),n===r&&(43===t.charCodeAt(wt)?(n=x,wt++):(n=r,0===At&&It(K)),n===r&&(45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)))),n!==r?(Kt(),(i=Wt())!==r?(xt=e,e={type:"UnaryExpression",operator:n,argument:i}):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=wt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(wt)?(i="(",wt++):(i=r,0===At&&It(et)),i!==r?(Kt(),o=function(){var e,n,i,o,a,l,s;if(e=wt,(n=Mt())!==r){for(i=[],o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);xt=e,s=i,e=[n,...s]}else wt=e,e=r;return e===r&&(e=Kt()),e}(),o!==r?(Kt(),41===t.charCodeAt(wt)?(a=")",wt++):(a=r,0===At&&It(nt)),a!==r?(xt=e,e={type:"CallExpression",callee:n,arguments:o}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,(n=Gt())!==r&&(xt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return At++,e=wt,39===t.charCodeAt(wt)?(n="'",wt++):(n=r,0===At&&It(ot)),n!==r?(i=function(){var t,e,n;for(t=wt,e=[],n=Lt();n!==r;)e.push(n),n=Lt();return xt=t,e=g(e)}(),39===t.charCodeAt(wt)?(o="'",wt++):(o=r,0===At&&It(ot)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(it)),e}(),e===r&&(e=Ht())===r&&(e=qt())===r&&(e=function(){var e,n;return At++,e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=wt,t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&It(pt)),e}(),e===r&&(e=wt,40===t.charCodeAt(wt)?(n="(",wt++):(n=r,0===At&&It(et)),n!==r&&(i=Mt())!==r?(41===t.charCodeAt(wt)?(o=")",wt++):(o=r,0===At&&It(nt)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r))),e}())),e}())),e}function Lt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r?(i=Kt(),(o=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=u,wt++):(i=r,0===At&&It(T)),i===r&&(39===t.charCodeAt(wt)?(i="'",wt++):(i=r,0===At&&It(ot)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F)))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r){if(i=[],V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at)),o!==r)for(;o!==r;)i.push(o),V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(F)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=v(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=u,wt++):(n=r,0===At&&It(T)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function qt(){var e,n,i,o;if(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;return i!==r?(xt=e,e={type:"IntegerLiteral",value:m(Vt())}):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(lt)),e}function Ht(){var e,n,i,o,a,l,s,c,u,d;for(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));if(46===t.charCodeAt(wt)?(o=".",wt++):(o=r,0===At&&It(ut)),o!==r){if(a=[],j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st)),l!==r)for(;l!==r;)a.push(l),j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st));else a=r;if(a!==r){if(l=wt,101===t.charCodeAt(wt)?(s="e",wt++):(s=r,0===At&&It(dt)),s===r&&(69===t.charCodeAt(wt)?(s="E",wt++):(s=r,0===At&&It(ht))),s!==r){if(43===t.charCodeAt(wt)?(c=x,wt++):(c=r,0===At&&It(K)),c===r&&(45===t.charCodeAt(wt)?(c=k,wt++):(c=r,0===At&&It(X))),c===r&&(c=null),u=[],j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st)),d!==r)for(;d!==r;)u.push(d),j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st));else u=r;u!==r?l=s=[s,c,u]:(wt=l,l=r)}else wt=l,l=r;l===r&&(l=null),xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else wt=e,e=r}else wt=e,e=r;if(e===r){if(e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;if(i!==r)if(101===t.charCodeAt(wt)?(o="e",wt++):(o=r,0===At&&It(dt)),o===r&&(69===t.charCodeAt(wt)?(o="E",wt++):(o=r,0===At&&It(ht))),o!==r){if(43===t.charCodeAt(wt)?(a=x,wt++):(a=r,0===At&&It(K)),a===r&&(45===t.charCodeAt(wt)?(a=k,wt++):(a=r,0===At&&It(X))),a===r&&(a=null),l=[],j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st)),s!==r)for(;s!==r;)l.push(s),j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st));else l=r;l!==r?(xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(wt=e,e=r)}else wt=e,e=r;else wt=e,e=r}return At--,e===r&&(n=r,0===At&&It(ct)),e}function Gt(){var e,n,i,o,a;if(At++,e=wt,n=wt,At++,i=function(){var e,n,i,o;return e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n===r&&(t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt))),n!==r?(i=wt,At++,D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(mt)),At--,o===r?i=void 0:(wt=i,i=r),i!==r?e=n=[n,i]:(wt=e,e=r)):(wt=e,e=r),e}(),At--,i===r?n=void 0:(wt=n,n=r),n!==r)if(P.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&It(yt)),i!==r){for(o=[],D.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));a!==r;)o.push(a),D.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));xt=e,e={type:"Identifier",name:Vt()}}else wt=e,e=r;else wt=e,e=r;return At--,e===r&&(n=r,0===At&&It(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));n!==r;)e.push(n),S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));return At--,n=r,0===At&&It($t),e}if((n=a())!==r&&wt===t.length)return n;throw n!==r&&wt<t.length&&It({type:"end"}),function(t,e,n){return new y(y.buildMessage(t,e),t,e,n)}(Ct,Et<t.length?t.charAt(Et):null,Et<t.length?Ft(Et,Et+1):Ft(Et,Et))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(y,Error),y.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+":"+i.line+":"+i.column;if(r){var a=this.location.end,l=$("",i.line.toString().length," "),s=r[i.line-1],c=(i.line===a.line?a.column:s.length+1)-i.column||1;e+="\n --\x3e "+o+"\n"+l+" |\n"+i.line+" | "+s+"\n"+l+" | "+$("",i.column-1," ")+$("",c,"^")}else e+="\n at "+o}return e},y.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 b=new Map,w=new Map;function x(t,e,n){const r={args:e,cb:n},i=b.get(t)||[];b.has(t)||b.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");w.set(o,r)}function k(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 E(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=>{E(t,e)}));break;case"BinaryExpression":case"LogicalExpression":E(t.left,e),E(t.right,e);break;case"UnaryExpression":E(t.argument,e);break;case"ConditionalExpression":E(t.test,e),E(t.consequent,e),E(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{E(t,e)}))}}function C(t,e){for(;t.length<e;)t="0"+t;return t}function A(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=(t||"").toLowerCase()).charAt(0))return n;const r=j(t);return r?(r.a*=e,V(r)):n}function V(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>C(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function j(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function D(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function P(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function S(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 P(t.value);if("color"===t.type)return B(O(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function F(t){let e=S(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function I(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const z=new Int32Array(1);function T(t){return z[0]=t,z[0]}function M(t){if(t<r||t>n)throw new Error("Integer overflow.")}function N(t){const e=[];return E(t,{Variable(t){e.push(t.id.name)}}),e}function J(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function O(t){const e=j(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function B(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 C(Math.round(t).toString(16),2)})).join("").toUpperCase())}function R(t){return B(O(t))}function U(t,e){return{type:a,value:S(e)}}function W(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:s,value:n}}function L(t,e,n,r){const i=t.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=R(o)),{type:r,value:o}}function q(t,e,n){return L(t,e,n,n.type)}function H(t,e,n){return L(t,e,n,"color")}function G(t,e,n){return L(t,e,n,"url")}const K=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:l,value:r}},X=K("getUTCFullYear"),Y=K("getUTCMonth"),Z=K("getUTCDate"),Q=K("getUTCDay"),tt=K("getUTCHours"),et=K("getUTCMinutes"),nt=K("getUTCSeconds"),rt=K("getUTCMilliseconds");function it(t,e,n){if(!n.value.length)return"";let r="";const i=t.type===a?t.value:S(t);for(;r.length+i.length<e.value;)r+=n.value;return r.length>0&&r.length+i.length>e.value&&(r=r.substring(0,e.value-i.length)),r}function ot(t,e,n,r){const i=it(e,n,r);return{type:a,value:i+S(e)}}function at(t,e,n,r){const i=it(e,n,r);return{type:a,value:S(e)+i}}function lt(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return e.type===l&&(r=T(r)),{type:e.type,value:r}}function st(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return e.type===l&&(r=T(r)),{type:e.type,value:r}}function ct(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,n[0].type===l&&(i=T(i));return{type:n[0].type,value:i}}function ut(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,n[0].type===l&&(i=T(i));return{type:n.length?n[0].type:l,value:i}}function dt(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,r[0].type===l&&(e=T(e));return{type:r.length?r[0].type:l,value:e}}function ht(t,e){const n=Math.abs(e.value);return e.type===l&&M(n),{type:e.type,value:n}}function pt(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:n[0].type,value:Math.max(...n.map((t=>t.value)))}}function ft(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:n[0].type,value:Math.min(...n.map((t=>t.value)))}}function gt(t,e){return{type:e.type,value:Math.sign(e.value)}}function mt(t,e,n){let r;if(0===n.value&&e.type===l)r=e.value;else if(0===e.value&&e.type===l)r=0;else{let t=Math.sign(n.value);e.type===s&&0===t&&(t=Object.is(t,0)?1:-1),r=Math.abs(e.value)*t}return e.type===l&&M(r),{type:e.type,value:r}}function vt(t){return(e,n)=>{const r=O(n.value);return{type:s,value:r[t]/255}}}function yt(t){return(e,n,r)=>{const i=O(n.value);return i[t]=255*r.value,{type:u,value:B(i)}}}const $t=vt("a"),_t=vt("r"),bt=vt("g"),wt=vt("b"),xt=yt("a"),kt=yt("r"),Et=yt("g"),Ct=yt("b");function At(t,e,n){if(t.value<0)throw new Error("Expecting non-negative number of milliseconds.");let r=Math.floor(t.value/e);return n&&(r%=n),{type:l,value:r}}const Vt=36e5;function jt(){}const Dt=t=>t;function Pt(t,e){for(const n in e)t[n]=e[n];return t}function St(t){return t()}function Ft(){return Object.create(null)}function It(t){t.forEach(St)}function zt(t){return"function"==typeof t}let Tt;function Mt(t,e){return Tt||(Tt=document.createElement("a")),Tt.href=e,t===Tt.href}function Nt(t,e){return t!=t?e==e:t!==e}function Jt(t){return 0===Object.keys(t).length}function Ot(t,...e){if(null==t)return jt;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Bt(t,e,n){t.$$.on_destroy.push(Ot(e,n))}function Rt(t,e,n,r){if(t){const i=Ut(t,e,n,r);return t[0](i)}}function Ut(t,e,n,r){return t[1]&&r?Pt(n.ctx.slice(),t[1](r(e))):n.ctx}function Wt(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 Lt(t,e,n,r,i,o){if(i){const a=Ut(e,n,r,o);t.p(a,i)}}function qt(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 Ht(t){return t&&zt(t.destroy)?t.destroy:jt}const Gt="undefined"!=typeof window;let Kt=Gt?()=>window.performance.now():()=>Date.now(),Xt=Gt?t=>requestAnimationFrame(t):jt;const Yt=new Set;function Zt(t){Yt.forEach((e=>{e.c(t)||(Yt.delete(e),e.f())})),0!==Yt.size&&Xt(Zt)}let Qt=!1;function te(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function ee(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function ne(t){const e=le("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(ee(t),e),e.sheet}function re(t,e){if(Qt){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:te(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==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 ie(t,e,n){Qt&&!n?re(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function oe(t){t.parentNode.removeChild(t)}function ae(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function le(t){return document.createElement(t)}function se(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ce(t){return document.createTextNode(t)}function ue(){return ce(" ")}function de(){return ce("")}function he(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function pe(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function fe(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?t[r]=e[r]:pe(t,r,e[r])}function ge(t){return Array.from(t.childNodes)}function me(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(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 ve(t,e,n,r){return me(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 ye(t,e,n){return ve(t,e,n,le)}function $e(t,e,n){return ve(t,e,n,se)}function _e(t,e){return me(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}),(()=>ce(e)),!0)}function be(t){return _e(t," ")}function we(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function xe(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const ke=new Map;let Ee,Ce=0;function Ae(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(", "),Ce-=i,Ce||Xt((()=>{Ce||(ke.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),ke.clear())})))}function Ve(t){Ee=t}function je(){if(!Ee)throw new Error("Function called outside component initialization");return Ee}function De(t){je().$$.on_mount.push(t)}function Pe(t){je().$$.on_destroy.push(t)}function Se(t,e){return je().$$.context.set(t,e),e}function Fe(t){return je().$$.context.get(t)}function Ie(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ze=[],Te=[],Me=[],Ne=[],Je=Promise.resolve();let Oe=!1;function Be(){Oe||(Oe=!0,Je.then(He))}function Re(){return Be(),Je}function Ue(t){Me.push(t)}const We=new Set;let Le,qe=0;function He(){const t=Ee;do{for(;qe<ze.length;){const t=ze[qe];qe++,Ve(t),Ge(t.$$)}for(Ve(null),ze.length=0,qe=0;Te.length;)Te.pop()();for(let t=0;t<Me.length;t+=1){const e=Me[t];We.has(e)||(We.add(e),e())}Me.length=0}while(ze.length);for(;Ne.length;)Ne.pop()();Oe=!1,We.clear(),Ve(t)}function Ge(t){if(null!==t.fragment){t.update(),It(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ue)}}function Ke(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const Xe=new Set;let Ye;function Ze(){Ye={r:0,c:[],p:Ye}}function Qe(){Ye.r||It(Ye.c),Ye=Ye.p}function tn(t,e){t&&t.i&&(Xe.delete(t),t.i(e))}function en(t,e,n,r){if(t&&t.o){if(Xe.has(t))return;Xe.add(t),Ye.c.push((()=>{Xe.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const nn={duration:0};function rn(t,e,n){let r,i,o=e(t,n),a=!1,l=0;function s(){r&&Ae(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=Dt,tick:u=jt,css:d}=o||nn;d&&(r=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=ee(t),{stylesheet:p,rules:f}=ke.get(h)||function(t,e){const n={stylesheet:ne(e),rules:{}};return ke.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Ce+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Kt()+e,p=h+n;i&&i.abort(),a=!0,Ue((()=>Ke(t,!0,"start"))),i=function(t){let e;return 0===Yt.size&&Xt(Zt),{promise:new Promise((n=>{Yt.add(e={c:t,f:n})})),abort(){Yt.delete(e)}}}((e=>{if(a){if(e>=p)return u(1,0),Ke(t,!0,"end"),s(),a=!1;if(e>=h){const t=c((e-h)/n);u(t,1-t)}}return a}))}let u=!1;return{start(){u||(u=!0,Ae(t),zt(o)?(o=o(),(Le||(Le=Promise.resolve(),Le.then((()=>{Le=null}))),Le).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const on="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function an(t,e){en(t,1,1,(()=>{e.delete(t.key)}))}function ln(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let sn;function cn(t){t&&t.c()}function un(t,e){t&&t.l(e)}function dn(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:a,after_update:l}=t.$$;i&&i.m(e,n),r||Ue((()=>{const e=o.map(St).filter(zt);a?a.push(...e):It(e),t.$$.on_mount=[]})),l.forEach(Ue)}function hn(t,e){const n=t.$$;null!==n.fragment&&(It(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pn(t,e,n,r,i,o,a,l=[-1]){const s=Ee;Ve(t);const c=t.$$={fragment:null,ctx:null,props:o,update:jt,not_equal:i,bound:Ft(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ft(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(ze.push(t),Be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,It(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Qt=!0;const t=ge(e.target);c.fragment&&c.fragment.l(t),t.forEach(oe)}else c.fragment&&c.fragment.c();e.intro&&tn(t.$$.fragment),dn(t,e.target,e.anchor,e.customElement),Qt=!1,He()}Ve(s)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(sn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(St).filter(zt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){It(this.$$.on_disconnect)}$destroy(){hn(this,1),this.$destroy=jt}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class fn{$destroy(){hn(this,1),this.$destroy=jt}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Jt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gn=[];function mn(t,e=jt){let n;const r=new Set;function i(e){if(o=e,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=e,n)){const e=!gn.length;for(const e of r)e[1](),gn.push(e,t);if(e){for(let t=0;t<gn.length;t+=2)gn[t][0](gn[t+1]);gn.length=0}}var i,o}return{set:i,update:function(e){i(e(t))},subscribe:function(o,a=jt){const l=[o,a];return r.add(l),1===r.size&&(n=e(i)||jt),o(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function vn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t,o=e.length<2;return a=t=>{let n=!1;const a=[];let l=0,s=jt;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);o?t(n):s=zt(n)?n:jt},u=i.map(((t,e)=>Ot(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){It(u),s()}},{subscribe:mn(n,a).subscribe};var a}class yn{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=mn(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 $n={string:class extends yn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends yn{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 yn{convertValue(t){if("number"!=typeof t||isNaN(t)||t>n||t<r||t!==Math.round(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends yn{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 yn{convertValue(t){if("string"!=typeof t||!j(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends yn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function _n(t,e,n){if(!(e in $n))throw new Error("Unsupported variable type");return new $n[e](t,n)}function bn(t){return t.map(F).join(", ")}x("toString",[l],U),x("toString",[s],U),x("toString",[c],U),x("toString",[u],U),x("toString",[d],U),x("toNumber",[l],W),x("toNumber",[a],W),x("toInteger",[s],(function(t,e){if(e.value>n||e.value<r)throw new Error("Unable to convert value to Integer.");const i=e.value-e.value%1;return{type:l,value:i}})),x("toInteger",[a],(function(t,e){const i=Number(e.value);if(isNaN(i)||i%1!=0||i>n||i<r)throw new Error("Unable to convert value to Integer.");return{type:l,value:i}})),x("toInteger",[c],(function(t,e){return{type:l,value:e.value?1:0}})),x("toBoolean",[l],(function(t,e){if(1!==e.value&&0!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:e.value}})),x("toBoolean",[a],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:"true"===e.value?1:0}})),x("toColor",[a],(function(t,e){return{type:u,value:R(e.value)}})),x("toUrl",[a],(function(t,e){return{type:d,value:e.value}})),x("encodeUri",[a],(function(t,e){try{return{type:a,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),x("decodeUri",[a],(function(t,e){try{return{type:a,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),x("getIntegerValue",[a,l],q),x("getNumberValue",[a,s],q),x("getBooleanValue",[a,c],q),x("getStringValue",[a,a],q),x("getColorValue",[a,u],H),x("getColorValue",[a,a],H),x("getUrlValue",[a,d],G),x("getUrlValue",[a,a],G),x("parseUnixTime",[l],(function(t,e){return{type:h,value:new Date(1e3*e.value)}})),x("nowLocal",[],(function(){return{type:h,value:new Date}})),x("addMillis",[h,l],(function(t,e,n){return{type:h,value:new Date(e.value.getTime()+n.value)}})),x("setYear",[h,l],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(n.value),{type:h,value:r}})),x("setMonth",[h,l],(function(t,e,n){if(n.value<1||n.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCMonth(n.value-1),{type:h,value:r}})),x("setDay",[h,l],(function(t,e,n){const r=new Date(e.value);if(n.value<=0&&-1!==n.value||n.value>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(n.value," for date ").concat(S(e),"."));return r.setUTCDate(-1===n.value?0:n.value),{type:h,value:r}})),x("setHours",[h,l],(function(t,e,n){if(n.value<0||n.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCHours(n.value),{type:h,value:r}})),x("setMinutes",[h,l],(function(t,e,n){if(n.value<0||n.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCMinutes(n.value),{type:h,value:r}})),x("setSeconds",[h,l],(function(t,e,n){if(n.value<0||n.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCSeconds(n.value),{type:h,value:r}})),x("setMillis",[h,l],(function(t,e,n){if(n.value<0||n.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(n.value,"."));const r=new Date(e.value);return r.setUTCMilliseconds(n.value),{type:h,value:r}})),x("getYear",[h],X),x("getMonth",[h],Y),x("getDay",[h],Z),x("getDayOfWeek",[h],Q),x("getHours",[h],tt),x("getMinutes",[h],et),x("getSeconds",[h],nt),x("getMillis",[h],rt),x("getIntervalSeconds",[l],(function(t,e){return At(e,1e3,60)})),x("getIntervalTotalSeconds",[l],(function(t,e){return At(e,1e3)})),x("getIntervalMinutes",[l],(function(t,e){return At(e,6e4,60)})),x("getIntervalTotalMinutes",[l],(function(t,e){return At(e,6e4)})),x("getIntervalHours",[l],(function(t,e){return At(e,Vt,24)})),x("getIntervalTotalHours",[l],(function(t,e){return At(e,Vt)})),x("getIntervalTotalDays",[l],(function(t,e){return At(e,864e5)})),x("getIntervalTotalWeeks",[l],(function(t,e){return At(e,6048e5)})),x("len",[a],(function(t,e){return{type:l,value:e.value.length}})),x("contains",[a,a],(function(t,e,n){return{type:c,value:e.value.includes(n.value)?1:0}})),x("substring",[a,l,l],(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:a,value:e.value.substring(n.value,r.value)}})),x("replaceAll",[a,a,a],(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:a,value:i}})),x("index",[a,a],(function(t,e,n){return{type:l,value:e.value.indexOf(n.value)}})),x("lastIndex",[a,a],(function(t,e,n){return{type:l,value:e.value.lastIndexOf(n.value)}})),x("trim",[a],(function(t,e){return{type:a,value:e.value.trim()}})),x("trimLeft",[a],(function(t,e){return{type:a,value:e.value.replace(/^\s+/,"")}})),x("trimRight",[a],(function(t,e){return{type:a,value:e.value.replace(/\s+$/,"")}})),x("toUpperCase",[a],(function(t,e){return{type:a,value:e.value.toUpperCase()}})),x("toLowerCase",[a],(function(t,e){return{type:a,value:e.value.toLowerCase()}})),x("padStart",[a,l,a],ot),x("padStart",[l,l,a],ot),x("padEnd",[a,l,a],at),x("padEnd",[l,l,a],at),x("div",[l,l],lt),x("div",[s,s],lt),x("mod",[l,l],st),x("mod",[s,s],st),x("mul",[{type:l,isVararg:!0}],ct),x("mul",[{type:s,isVararg:!0}],ct),x("sub",[{type:l,isVararg:!0}],ut),x("sub",[{type:s,isVararg:!0}],ut),x("sum",[{type:l,isVararg:!0}],dt),x("sum",[{type:s,isVararg:!0}],dt),x("abs",[l],ht),x("abs",[s],ht),x("max",[{type:l,isVararg:!0}],pt),x("max",[{type:s,isVararg:!0}],pt),x("min",[{type:l,isVararg:!0}],ft),x("min",[{type:s,isVararg:!0}],ft),x("maxNumber",[],(function(){return{type:s,value:i}})),x("minNumber",[],(function(){return{type:s,value:o}})),x("maxInteger",[],(function(){return{type:l,value:n}})),x("minInteger",[],(function(){return{type:l,value:r}})),x("round",[s],(function(t,e){const n=Math.sign(e.value);return{type:s,value:n*Math.round(Math.abs(e.value))}})),x("floor",[s],(function(t,e){return{type:s,value:Math.floor(e.value)}})),x("ceil",[s],(function(t,e){return{type:s,value:Math.ceil(e.value)}})),x("signum",[s],gt),x("signum",[l],gt),x("copySign",[s,s],mt),x("copySign",[l,l],mt),x("getColorAlpha",[a],$t),x("getColorAlpha",[u],$t),x("getColorRed",[a],_t),x("getColorRed",[u],_t),x("getColorGreen",[a],bt),x("getColorGreen",[u],bt),x("getColorBlue",[a],wt),x("getColorBlue",[u],wt),x("setColorAlpha",[a,s],xt),x("setColorAlpha",[u,s],xt),x("setColorRed",[a,s],kt),x("setColorRed",[u,s],kt),x("setColorGreen",[a,s],Et),x("setColorGreen",[u,s],Et),x("setColorBlue",[a,s],Ct),x("setColorBlue",[u,s],Ct),x("rgb",[s,s,s],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:u,value:B(i)}})),x("argb",[s,s,s,s],(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:u,value:B(o)}}));const wn={StringLiteral:function(t,e){return{type:a,value:e.value}},NumberLiteral:function(t,e){return{type:s,value:e.value}},IntegerLiteral:function(t,e){return{type:l,value:e.value}},BooleanLiteral:function(t,e){return{type:c,value:e.value?1:0}},UnaryExpression:function(t,e){const n=D(xn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};J("".concat(e.operator).concat(F(n)),"A Boolean is expected after a unary not.");case"+":case"-":const t="+"===e.operator?1:-1;if(n.type===l)return{type:l,value:n.value*t};if(n.type===s)return{type:s,value:n.value*t};J("".concat(e.operator).concat(F(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=D(xn(t,e.test));if(n.type===c)return n.value?xn(t,e.consequent):xn(t,e.alternate);J("".concat(F(n)," ? ").concat(F(xn(t,e.consequent))," : ").concat(F(xn(t,e.alternate))),"Ternary must be called with a Boolean value as a condition.")},TemplateLiteral:function(t,e){let n="";if(2===e.quasis.length&&""===e.quasis[0].value&&""===e.quasis[1].value)return xn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=S(xn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=D(xn(t,e.left));if(n.type!==c&&J("".concat(F(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:c,value:0};const r=D(xn(t,e.right));return r.type!==c&&J("".concat(F(n)," ").concat(e.operator," ").concat(F(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(I(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=xn(t,e.left),i=xn(t,e.right);if(r.type!==i.type&&J("".concat(F(r)," ").concat(e.operator," ").concat(F(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(I(r.type)," and ").concat(I(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===h&&n.type===h?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:c,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==s&&e.type!==l&&e.type!==h&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type."));const i=e.type===h?e.value.getTime():e.value,o=n.type===h?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:c,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==a&&e.type!==s&&e.type!==l&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),e.type===a)return"-"===t&&J("".concat(F(e)," - ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),{type:a,value:e.value+n.value};let r="+"===t?e.value+n.value:e.value-n.value;return e.type===l&&(r=T(r)),{type:e.type,value:r}}(n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==l&&e.type!==s&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),"*"===t)r=e.value*n.value;else{if("/"!==t&&"%"!==t)throw new Error("Unsupported operation ".concat(t));0===n.value&&J("".concat(F(e)," ").concat(t," ").concat(F(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===l&&(r=T(r)),{type:e.type,value:r}}(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=>xn(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if(w.has(o))r=w.get(o);else{const t=function(t,e){const n=b.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=k(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=>I(t.type))).join(", "),r="".concat(n,"(").concat(bn(i),")");"few"===t.type&&0===i.length?J(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?J(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):J(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){J("".concat(n,"(").concat(bn(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function xn(t,e){if(e.type in wn)return wn[e.type](t,e);throw new Error("Unsupported expression")}function kn(t,e){try{return function(t,e){let n="";if(E(e,{Variable(e){n||t.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(t,e),xn(t,e)}catch(t){return{type:"error",value:t.message}}}const En="divkit-b023c",Cn="divkit-bd259",An="divkit-d9099",Vn="divkit-c016b",jn="divkit-ee112",Dn="divkit-aa145",Pn="divkit-f0cba",Sn=Symbol("root");function Fn(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 In={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_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},zn={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"};function Tn(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 Mn(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 Nn(t){let e=Mn(t);return"0"===e&&(e+="em"),e}function Jn(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 On=Boolean;function Bn(t){if(1===t.length&&"solid"===t[0].type)return{color:A(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=A(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(On);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>A(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:Wn(t.bg.scale),pos:Ln(t.bg),image:'url("'+Jn(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(On);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=Nn(r.value):"relative"===r.type&&(i=Rn[r.value]));const o=Un(t.bg.center_x),a=Un(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=>A(t))).join(",")+")"}}({bg:t}):void 0)).filter(On).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 Rn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Un(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Nn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Wn(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function Ln(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 qn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Hn(t,e){return e.has(t)}function Gn(t,e){e&&t.push(e)}function Kn(t,e,n){const r=[];Gn(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&Gn(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Xn=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:i,templateContext:o}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},Yn=Symbol("state");function Zn(t){return Mn(t.top||0)+" "+Mn(t.right||0)+" "+Mn(t.bottom||0)+" "+Mn(t.left||0)}function Qn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function tr(t){return Qn(t)&&t>=0}function er(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]&&!tr(n[t]))return e;return Zn(t)}function nr(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const rr=Object.prototype.hasOwnProperty;function ir(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(!rr.call(e,i)||!ir(t[i],e[i]))return!1}return!0}function or(t,e){return ir(t,e)?e:t}function ar(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function lr(t,e){const n=Number(t);return isNaN(n)?e:n}function sr(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...sr(t))})):e.push(t),e}function cr(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]]&&!tr(t[n[r]]))return e;return t}function ur(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=>Mn((t||e)/n*10))).join(" ")}function dr(){}const hr=Symbol("action");function pr(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function fr(t){var e;let n,r,i,o,a,l,s,c;const u=t[19].default,d=Rt(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?Cn:An," ").concat(Vn):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Pn:"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:o=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=Pt(p,h[t]);return{c(){n=le("span"),d&&d.c(),this.h()},l(t){n=ye(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=ge(n);d&&d.l(e),e.forEach(oe),this.h()},h(){fe(n,p)},m(e,r){ie(e,n,r),d&&d.m(n,null),l=!0,s||(c=[Ht(a=t[5].call(null,n)),he(n,"click",(function(){zt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),he(n,"click",t[21]),he(n,"dblclick",(function(){var e,n;zt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),he(n,"touchstart",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),he(n,"touchmove",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),he(n,"touchend",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"touchcancel",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Lt(d,u,t,t[18],l?Wt(u,t[18],a,null):qt(t[18]),null),fe(n,p=ln(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?Cn:An," ").concat(Vn):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?Pn:"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&i!==(i=t[9]?"button":null))&&{role:i},(!l||512&a&&o!==(o=t[9]?0:null))&&{tabindex:o},16&a&&t[4]]))},i(t){l||(tn(d,t),l=!0)},o(t){en(d,t),l=!1},d(t){t&&oe(n),d&&d.d(t),s=!1,It(c)}}}function gr(t){var e;let n,r,i,o,a,l;const s=t[19].default,c=Rt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?Cn:An)+" "+(null!==(e=t[1])&&void 0!==e&&e.length?Pn:"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=Pt(d,u[t]);return{c(){n=le("a"),c&&c.c(),this.h()},l(t){n=ye(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=ge(n);c&&c.l(e),e.forEach(oe),this.h()},h(){fe(n,d)},m(e,r){ie(e,n,r),c&&c.m(n,null),o=!0,a||(l=[Ht(i=t[5].call(null,n)),he(n,"click",t[10]),he(n,"click",t[20]),he(n,"dblclick",(function(){var e,n;zt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),he(n,"touchstart",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),he(n,"touchmove",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),he(n,"touchend",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"touchcancel",(function(){var e,n;zt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),he(n,"keydown",t[15])],a=!0)},p(e,i){var a;t=e,c&&c.p&&(!o||262144&i)&&Lt(c,s,t,t[18],o?Wt(s,t[18],i,null):qt(t[18]),null),fe(n,d=ln(u,[(!o||128&i)&&{href:t[7]},(!o||256&i)&&{target:t[8]},(!o||8&i)&&{style:t[3]},(!o||70&i&&r!==(r=t[2]+" "+(t[6]?Cn:An)+" "+(null!==(a=t[1])&&void 0!==a&&a.length?Pn:"")))&&{class:r},16&i&&t[4]]))},i(t){o||(tn(c,t),o=!0)},o(t){en(c,t),o=!1},d(t){t&&oe(n),c&&c.d(t),a=!1,It(l)}}}function mr(t){let e,n,r,i;const o=[gr,fr],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=de()},l(t){n.l(t),r=de()},m(t,n){a[e].m(t,n),ie(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(Ze(),en(a[c],1,1,(()=>{a[c]=null})),Qe(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),tn(n,1),n.m(r.parentNode,r))},i(t){i||(tn(n),i=!0)},o(t){en(n),i=!1},d(t){a[e].d(t),t&&oe(r)}}}function vr(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=dr}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=Fe(Sn),g=Fe(hr);Se(hr,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1;if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){v=e,m=o[t].target||void 0;break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(v="",f.logError(Fn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}})));let b=Boolean(h);return v&&!Hn(qn(v),f.getBuiltinProtocols())&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=qn(e);return n&&!Hn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=pr(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=pr(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){Ie.call(this,t,e)},function(e){Ie.call(this,t,e)}]}const yr=class extends fn{constructor(t){super(),pn(this,t,vr,mr,Nt,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}},$r="divkit-bf253",_r="divkit-b921d";function br(t){return Qn(t)&&t>0}function wr(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(br(t.radius))return"blur(".concat(Nn(t.radius/2),")")}else e(Fn(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function xr(t,e,n){const r=t.slice();return r[5]=e[n],r}function kr(t){let e,n,r;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=_r),pe(e,"style",r=Tn(t[5].style))},m(t,n){ie(t,e,n)},p(t,n){2&n&&r!==(r=Tn(t[5].style))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Er(t){let e,n,r,i,o,a;return{c(){e=le("img"),this.h()},l(t){e=ye(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Mt(e.src,n=t[5].image_url)||pe(e,"src",n),pe(e,"alt",""),pe(e,"aria-hidden","true"),pe(e,"loading","lazy"),pe(e,"decoding","async"),pe(e,"class",r=_r),pe(e,"style",i=Tn(t[5].style))},m(n,r){ie(n,e,r),o||(a=he(e,"error",t[2]),o=!0)},p(t,r){2&r&&!Mt(e.src,n=t[5].image_url)&&pe(e,"src",n),2&r&&i!==(i=Tn(t[5].style))&&pe(e,"style",i)},d(t){t&&oe(e),o=!1,a()}}}function Cr(t){let e;function n(t,e){return t[5].image_url?Er:kr}let r=n(t),i=r(t);return{c(){i.c(),e=de()},l(t){i.l(t),e=de()},m(t,n){i.m(t,n),ie(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){i.d(t),t&&oe(e)}}}function Ar(t){let e,n,r=t[1],i=[];for(let e=0;e<r.length;e+=1)i[e]=Cr(xr(t,r,e));return{c(){e=le("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=ye(t,"SPAN",{class:!0});var n=ge(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(oe),this.h()},h(){pe(e,"class",n=$r+(t[0]?" divkit-dcad7":"")),xe(e,"border-radius",t[0],!1)},m(t,n){ie(t,e,n);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const o=xr(t,r,n);i[n]?i[n].p(o,a):(i[n]=Cr(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n=$r+(t[0]?" divkit-dcad7":""))&&pe(e,"class",n),1&a&&xe(e,"border-radius",t[0],!1)},i:jt,o:jt,d(t){t&&oe(e),ae(i,t)}}}function Vr(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=Fe(Sn);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=Bn([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=wr(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},i]}const jr=class extends fn{constructor(t){super(),pn(this,t,Vr,Ar,Nt,{background:3,radius:0})}};function Dr(t){let e,n;return e=new yr({props:{use:t[32],cls:t[0]+" "+Kn("outer",zn,t[15]),style:Tn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||zr(t[4]),$$slots:{default:[Fr]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+Kn("outer",zn,t[15])),8192&n[0]&&(r.style=Tn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||zr(t[4])),174&n[0]|131072&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Pr(t){let e,n;return e=new jr({props:{background:t[5],radius:t[2]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Sr(t){let e,n,r;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=zn.outer__border),pe(e,"style",r=Tn(t[1]))},m(t,n){ie(t,e,n)},p(t,n){2&n[0]&&r!==(r=Tn(t[1]))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Fr(t){let e,n,r,i=t[3]&&Pr(t);const o=t[109].default,a=Rt(o,t,t[110],null);let l=t[7]&&Sr(t);return{c(){i&&i.c(),e=de(),a&&a.c(),l&&l.c(),n=de()},l(t){i&&i.l(t),e=de(),a&&a.l(t),l&&l.l(t),n=de()},m(t,o){i&&i.m(t,o),ie(t,e,o),a&&a.m(t,o),l&&l.m(t,o),ie(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&tn(i,1)):(i=Pr(t),i.c(),tn(i,1),i.m(e.parentNode,e)):i&&(Ze(),en(i,1,1,(()=>{i=null})),Qe()),a&&a.p&&(!r||131072&s[3])&&Lt(a,o,t,t[110],r?Wt(o,t[110],s,null):qt(t[110]),null),t[7]?l?l.p(t,s):(l=Sr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(tn(i),tn(a,t),r=!0)},o(t){en(i),en(a,t),r=!1},d(t){i&&i.d(t),t&&oe(e),a&&a.d(t),l&&l.d(t),t&&oe(n)}}}function Ir(t){let e,n,r=!t[8]&&!t[9]&&Dr(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),768&n[0]&&tn(r,1)):(r=Dr(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function zr(t){return t.some((t=>"native"===t.name))}function Tr(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,V,j,D,P,S,F,I,z,T,M,N,J,O,B,R,U,W,L=jt,q=jt,H=jt,G=jt,K=jt,X=jt,Y=jt,Z=jt,Q=jt,tt=jt,et=jt,nt=jt,rt=jt,it=jt,ot=jt,at=jt,lt=jt;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:st={},$$scope:ct}=e;var ut,dt,ht,pt,ft,gt;let{json:mt={}}=e,{origJson:vt}=e,{templateContext:yt}=e,{cls:$t=""}=e,{style:_t}=e,{layoutParams:bt={}}=e,{customDescription:wt=!1}=e,{customPaddings:xt=!1}=e,{customActions:kt=""}=e,{additionalPaddings:Et=null}=e;const Ct={left:"start",center:"center",right:"end"},At={top:"start",center:"center",bottom:"end",baseline:"baseline"},Vt=Fe(Sn),Dt=Fe(Yn);let Pt,St,Ft,It,zt,Tt,Mt,Nt,Jt,Bt,Rt,Ut={},Wt={},Lt=!1,qt=1,Ht="transparent",Gt=0,Kt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Xt="",Yt=null,Zt="",Qt={},te=0,ee=0,ne=0,re=!1,ie=!1,oe={},ae=0,le=0,se=0,ce=!1,ue=!1,de=1;const he=bt.fakeElement?[]:mt.transition_triggers||["state_change","visibility_change"],pe=-1!==he.indexOf("state_change")&&mt.id,fe=-1!==he.indexOf("visibility_change")&&mt.id;let ge,me,ve,ye,$e,_e,be,we=[],xe=[],ke=[],Ee=[],Ce="";function Ae(t){const e=lr(t.start_value,1),r=lr(t.end_value,1),i=nr(t.start_delay,0),o=nr(t.duration,300),a=ar(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(78,ye=e),n(79,$e=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(80,_e=e),n(81,be=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Vt.logError(Fn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Ve,je,De=!1,Pe="visible",Se=0,Ie=0;return t.$$set=t=>{"json"in t&&n(33,mt=t.json),"origJson"in t&&n(34,vt=t.origJson),"templateContext"in t&&n(35,yt=t.templateContext),"cls"in t&&n(0,$t=t.cls),"style"in t&&n(36,_t=t.style),"layoutParams"in t&&n(37,bt=t.layoutParams),"customDescription"in t&&n(38,wt=t.customDescription),"customPaddings"in t&&n(39,xt=t.customPaddings),"customActions"in t&&n(40,kt=t.customActions),"additionalPaddings"in t&&n(41,Et=t.additionalPaddings),"$$scope"in t&&n(110,ct=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Vt.getDerivedFromVars(mt.border)),lt(),lt=Ot(r,(t=>n(108,W=t)))),2&t.$$.dirty[0]|4192256&t.$$.dirty[1]|32768&t.$$.dirty[3]){let t={},e={},r=!1,i="";if(W){if(W.has_shadow){const e=W.shadow;t["box-shadow"]=e?Mn((null===n(43,dt=null===n(42,ut=e.offset)||void 0===ut?void 0:ut.x)||void 0===dt?void 0:dt.value)||0)+" "+Mn((null===n(45,pt=null===n(44,ht=e.offset)||void 0===ht?void 0:ht.y)||void 0===pt?void 0:pt.value)||0)+" "+Mn(null!==n(46,ft=e.blur)&&void 0!==ft?ft:2)+" "+A(e.color||"#000000",null!==n(47,gt=e.alpha)&&void 0!==gt?gt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(W.stroke&&(r=!0,n(49,qt=nr(W.stroke.width,qt)),n(50,Ht=A(W.stroke.color,1,Ht)),e.border="".concat(Mn(qt)," solid ").concat(Ht)),W.corners_radius?(n(52,Kt=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]&&!tr(n[t]))return e;return t}(W.corners_radius,Kt)),e["border-radius"]=t["border-radius"]=ur(Kt)):W.corner_radius&&(n(51,Gt=nr(W.corner_radius,Gt)),n(52,Kt={"top-left":Gt,"top-right":Gt,"bottom-right":Gt,"bottom-left":Gt}),e["border-radius"]=t["border-radius"]=Mn(Gt)),r&&qt&&(W.corners_radius||W.corner_radius)){let t=Object.assign({},Kt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+qt/2})),i=ur(t)}}n(48,Ut=or(t,Ut)),n(1,Wt=or(e,Wt)),n(7,Lt=r),n(2,Xt=i)}if(4&t.$$.dirty[1]&&(n(30,i=Vt.getDerivedFromVars(mt.paddings)),at(),at=Ot(i,(t=>n(107,U=t)))),4194560&t.$$.dirty[1]|16384&t.$$.dirty[3]&&n(53,Yt=cr(U&&!xt?U:void 0,Yt)),4195328&t.$$.dirty[1]&&n(89,o=Zn(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}(Yt,Et))),4&t.$$.dirty[1]&&(n(29,a=Vt.getDerivedFromVars(mt.margins)),it(),it=Ot(a,(t=>n(105,B=t)))),8388608&t.$$.dirty[1]|4096&t.$$.dirty[3]&&n(54,Zt=er(B,Zt)),4&t.$$.dirty[1]&&(n(28,l=Vt.getDerivedFromVars(mt.width)),nt(),nt=Ot(l,(t=>n(103,J=t)))),4&t.$$.dirty[1]&&(n(27,s=Vt.getDerivedFromVars(mt.alignment_horizontal)),ot(),ot=Ot(s,(t=>n(106,R=t)))),285212736&t.$$.dirty[1]|13312&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)n(59,te=nr(null==J?void 0:J.value,te)),e=Mn(te);else if("wrap_content"!==u&&(bt.overlapParent||"match_parent"!==u&&u||!bt.parentHorizontalWrapContent))t="parent","vertical"===bt.parentContainerOrientation&&bt.parentContainerWrap&&(c=!0,Vt.logError(Fn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===bt.parentLayoutOrientation?e="calc(100% - ".concat(Nn(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===bt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,bt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||("match_parent"===u||!u)&&bt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===bt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=J;t.min_size&&tr(t.min_size.value)&&(r=Mn(t.min_size.value)),t.max_size&&tr(t.max_size.value)&&(i=Mn(t.max_size.value))}"match_parent"!==u&&u||Vt.logError(Fn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=R;o["halign-self"]="left"===t||"center"===t||"right"===t?Ct[t]:bt.parentHAlign||"start"}t&&(o.width=t),n(56,Ft=e),n(57,It=r),n(58,zt=i),n(60,ee=a),n(61,ne=l),n(55,Qt=or(o,Qt)),n(62,re=s),n(8,ie=c)}if(4&t.$$.dirty[1]&&(n(26,c=Vt.getDerivedFromVars(mt.height)),et(),et=Ot(c,(t=>n(102,N=t)))),4&t.$$.dirty[1]&&(n(25,u=Vt.getDerivedFromVars(mt.alignment_vertical)),rt(),rt=Ot(u,(t=>n(104,O=t)))),64&t.$$.dirty[1]|34&t.$$.dirty[2]|6656&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==N?void 0:N.type;if("fixed"===u)n(67,ae=nr(null==N?void 0:N.value,ae)),e=Mn(ae);else if("match_parent"!==u||!bt.overlapParent&&bt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==N?void 0:N.constrained)||"match_parent"===u&&bt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===bt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=N;(null==t?void 0:t.min_size)&&tr(t.min_size.value)&&(r=Mn(t.min_size.value)),(null==t?void 0:t.max_size)&&tr(t.max_size.value)&&(i=Mn(t.max_size.value))}"match_parent"===u&&Vt.logError(Fn(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(Fn(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===bt.parentLayoutOrientation?e="calc(100% - ".concat(Nn(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===bt.parentContainerOrientation&&(a=(null==N?void 0:N.weight)||1,bt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=O;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===bt.parentContainerOrientation?o["valign-self"]=At[t]:o["valign-self"]=bt.parentVAlign||"start"}t&&(o.height=t),n(64,Tt=e),n(65,Mt=r),n(66,Nt=i),n(68,le=a),n(69,se=l),n(63,oe=or(o,oe)),n(70,ce=s),n(9,ue=c)}var e,st;if(64&t.$$.dirty[1]&&n(92,d=!!bt.overlapParent||void 0),64&t.$$.dirty[1]|1536&t.$$.dirty[3]&&n(91,h=bt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==N?void 0:N.type)),64&t.$$.dirty[1]&&n(90,p=bt.gridArea?"".concat(bt.gridArea.y+1,"/").concat(bt.gridArea.x+1,"/span ").concat(bt.gridArea.rowSpan,"/span ").concat(bt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Vt.getDerivedFromVars(mt.alpha)),tt(),tt=Ot(f,(t=>n(101,M=t)))),512&t.$$.dirty[2]|256&t.$$.dirty[3]&&(n(71,(st=de,de=!tr(e=M)||void 0===e||e>1?st:Number(e))),n(72,Jt=1===de?void 0:de)),4&t.$$.dirty[1]&&(n(23,g=Vt.getDerivedFromVars(mt.accessibility)),Q(),Q=Ot(g,(t=>n(100,T=t)))),128&t.$$.dirty[1]|128&t.$$.dirty[3]&&(n(6,St=void 0),T&&!wt&&T.description&&(n(6,St={}),n(6,St["aria-label"]=T.description,St))),4&t.$$.dirty[1]&&(n(22,m=Vt.getDerivedFromVars(mt.background)),Z(),Z=Ot(m,(t=>n(5,z=t)))),44&t.$$.dirty[0]&&(n(73,Bt={}),n(3,Rt=!1),z&&(n(3,Rt=z.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Xt)),!Rt))){const t=Bn(z);n(73,Bt["background-color"]=t.color,Bt),n(73,Bt["background-image"]=t.image,Bt),n(73,Bt["background-size"]=t.size,Bt),n(73,Bt["background-position"]=t.position,Bt),n(73,Bt["background-repeat"]="no-repeat",Bt)}if(4&t.$$.dirty[1]&&(n(74,ge=void 0),pe&&mt.transition_in&&Vt.isRunning("stateChange")&&n(74,ge=!0)),4&t.$$.dirty[1]&&(n(76,ve=void 0),pe&&mt.transition_change&&Vt.isRunning("stateChange")&&Dt.hasTransitionChange(mt.id)&&n(76,ve=!0)),4&t.$$.dirty[1]&&(n(21,v=Vt.getDerivedFromVars(mt.action)),X(),X=Ot(v,(t=>n(98,F=t)))),4&t.$$.dirty[1]&&(n(20,y=Vt.getDerivedFromVars(mt.actions)),Y(),Y=Ot(y,(t=>n(99,I=t)))),4&t.$$.dirty[1]&&(n(19,$=Vt.getDerivedFromVars(mt.doubletap_actions)),K(),K=Ot($,(t=>n(97,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Vt.getDerivedFromVars(mt.longtap_actions)),G(),G=Ot(_,(t=>n(96,P=t)))),576&t.$$.dirty[1]|120&t.$$.dirty[3]){let t=I||F&&[F]||[],e=S||[],r=P||[];bt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Vt.logError(Fn(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Vt.logError(Fn(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Vt.logError(Fn(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&kt&&(t=[],e=[],r=[],Vt.logError(Fn(new Error('Cannot use action on component "'.concat(kt,'"'))))),n(10,we=t),n(11,xe=e),n(12,ke=r)}if(4&t.$$.dirty[1]&&(n(17,b=Vt.getDerivedFromVars(mt.action_animation)),H(),H=Ot(b,(t=>n(95,D=t)))),16&t.$$.dirty[0]|4&t.$$.dirty[3]&&D&&(n(4,Ee=sr(D)),n(77,Ce=Ee.map(Ae).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Vt.getDerivedFromVars(mt.visibility)),q(),q=Ot(w,(t=>n(94,j=t)))),3145728&t.$$.dirty[2]|2&t.$$.dirty[3]){const t=Pe,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(j,Pe);t!==e&&(!De||"visible"!==Pe&&"visible"!==e?n(83,Pe=e):async function(t){n(83,Pe=t);const e="visible"===t?"in":"out",r="in"===e?mt.transition_in:mt.transition_out;fe&&r&&(await Re(),"in"===e&&n(75,me=!0),Dt.runVisibilityTransition(Object.assign(Object.assign({},mt),{visibility:"visible"}),yt,r,Pt,e).then((()=>{"in"===e&&n(75,me=!1)})).catch((t=>{throw"in"===e&&n(75,me=!1),t})))}(e)),De||n(82,De=!0)}if(16777280&t.$$.dirty[1]|1612771330&t.$$.dirty[2]&&n(15,x=Object.assign(Object.assign(Object.assign({},Qt),oe),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":bt.scrollSnap,"hide-on-transition-in":ge||me||ve,visibility:Pe,"has-action-animation":Boolean(Ce),"parent-flex":bt.parentContainerOrientation||void 0,"parent-grid":Boolean(bt.gridArea)||void 0})),4&t.$$.dirty[1]&&(n(14,k=Vt.getDerivedFromVars(mt.transform)),L(),L=Ot(k,(t=>n(93,V=t)))),12582912&t.$$.dirty[2]|1&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(84,Se=lr(t.value,Se));const e="pivot-fixed"===t.type?Mn(Se):"".concat(Se,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(85,Ie=lr(r.value,Ie));const i="pivot-fixed"===r.type?Mn(Ie):"".concat(Ie,"%");n(86,Ve="".concat(e," ").concat(i)),n(87,je="rotate(".concat(V.rotation,"deg)"))}536870912&t.$$.dirty[1]|321&t.$$.dirty[2]&&n(88,E=re||ce?"100%":ee||le?0:void 0),1854013472&t.$$.dirty[1]|521112796&t.$$.dirty[2]&&n(13,C=Object.assign(Object.assign(Object.assign(Object.assign({},_t),Bt),Ut),{width:Ft,"min-width":It,"max-width":zt,height:Tt,"min-height":Mt,"max-height":Nt||(null==_t?void 0:_t["max-height"]),"grid-area":p,padding:o,margin:Zt,opacity:Jt,transition:Ce,"transform-origin":Ve,transform:je,"flex-grow":ee||le||void 0,"flex-shrink":ne||se?1:void 0,"flex-basis":E,"--divkit-animation-opacity-start":ye,"--divkit-animation-opacity-end":$e,"--divkit-animation-scale-start":_e,"--divkit-animation-scale-end":be}))},[$t,Wt,Xt,Rt,Ee,z,St,Lt,ie,ue,we,xe,ke,C,k,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,i,r,function(t){Pt=t,pe&&mt.transition_in&&Dt.registerChildWithTransitionIn(mt,yt,mt.transition_in,t).then((()=>{n(74,ge=!1)})).catch((t=>{throw n(74,ge=!1),t})),pe&&mt.transition_out&&Dt.registerChildWithTransitionOut(mt,yt,mt.transition_out,t),pe&&mt.transition_change&&Dt.registerChildWithTransitionChange(mt,yt,mt.transition_change,t).then((()=>{n(76,ve=!1)})).catch((t=>{throw n(76,ve=!1),t}));const e=bt.fakeElement?[]:mt.visibility_actions||mt.visibility_action&&[mt.visibility_action];Array.isArray(e)&&e.length&&function(t,e){let{visibilityActions:n,rootCtx:r}=e;const i=n.map(((t,e)=>({index:e,action:t,visible:!1,count:0,finished:!1}))),o=n.map((t=>r.getJsonWithVars({visibility_percentage:t.visibility_percentage,visibility_duration:t.visibility_duration,log_limit:t.log_limit}))),a=[...new Set([...n.map(((t,e)=>(o[e].visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{i.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=o[e.index],n=0===t.log_limit?1/0:t.log_limit||1;++e.count>=n&&(e.finished=!0);const i=r.getJsonWithVars(e.action),a=i.url;if(a){const t=qn(a);t&&!Hn(t,r.getBuiltinProtocols())&&("div-action"===t?r.execAction(i):i.log_id&&r.execCustomAction(i))}r.logStat("visible",i)}),o[e.index].visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:a}).observe(t)}(t,{visibilityActions:e,rootCtx:Vt});const r=mt.id;r&&Dt.registerChild(r);let i=null;return Xn&&!bt.fakeElement&&(i=Xn(t,{json:mt,origJson:vt,rootCtx:Vt,templateContext:yt})),{destroy(){r&&Dt.unregisterChild(r),i&&i.destroy()}}},mt,vt,yt,_t,bt,wt,xt,kt,Et,ut,dt,ht,pt,ft,gt,Ut,qt,Ht,Gt,Kt,Yt,Zt,Qt,Ft,It,zt,te,ee,ne,re,oe,Tt,Mt,Nt,ae,le,se,ce,de,Jt,Bt,ge,me,ve,Ce,ye,$e,_e,be,De,Pe,Se,Ie,Ve,je,E,o,p,h,d,V,j,D,P,S,F,I,T,M,N,J,O,B,R,U,W,st,ct]}const Mr=class extends fn{constructor(t){super(),pn(this,t,Tr,Ir,Nt,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41},null,[-1,-1,-1,-1])}},Nr={"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 Jr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Or(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Br(t,e){return Or(t)||e}function Rr(t){let e,n;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=Nr["text-range__top-offset"]),xe(e,"margin-top",t[4],!1)},m(t,n){ie(t,e,n)},p(t,n){16&n&&xe(e,"margin-top",t[4],!1)},d(t){t&&oe(e)}}}function Ur(t){let e;return{c(){e=ce(t[0])},l(n){e=_e(n,t[0])},m(t,n){ie(t,e,n)},p(t,n){1&n&&we(e,t[0])},d(t){t&&oe(e)}}}function Wr(t){let e,n,r,i=t[4]&&Rr(t);return n=new yr({props:{cls:Kn("text-range",Nr,t[3]),actions:t[1],style:Tn(t[2]),$$slots:{default:[Ur]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=de(),cn(n.$$.fragment)},l(t){i&&i.l(t),e=de(),un(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),ie(t,e,o),dn(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Rr(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Kn("text-range",Nr,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=Tn(t[2])),524289&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(tn(n.$$.fragment,t),r=!0)},o(t){en(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&oe(e),hn(n,t)}}}function Lr(t,e,n){let r,i,o,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=Jr(p.font_size,v)),2112&t.$$.dirty&&br(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&tr(p.letter_spacing)&&n(13,$=Mn(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=Br(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=A(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?Mn(p.top_offset):""),64&t.$$.dirty&&n(18,i=p.background?Bn([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==A(p.border.stroke.color)&&br(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,o=Jr(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":Mn(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==i?void 0:i.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(Mn(b.width)," ").concat(b.color):void 0,"border-radius":o?Mn(o):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,o,i]}const qr=class extends fn{constructor(t){super(),pn(this,t,Lr,Wr,Nt,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Hr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Gr(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Kr(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Xr}=on;function Yr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function Zr(t){let e,n;return e=new Mr({props:{cls:Kn("text",In,t[13])+" "+(t[6]?"":Vn),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[oi]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=Kn("text",In,t[13])+" "+(t[6]?"":Vn)),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]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Qr(t){let e,n;return e=new qr({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ti(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=ii(Yr(t,r,e));const o=t=>en(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=de()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=de()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);ie(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=Yr(t,r,a);i[a]?(i[a].p(o,n),tn(i[a],1)):(i[a]=ii(o),i[a].c(),tn(i[a],1),i[a].m(e.parentNode,e))}for(Ze(),a=r.length;a<i.length;a+=1)o(a);Qe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)tn(i[t]);n=!0}},o(t){i=i.filter(Xr);for(let t=0;t<i.length;t+=1)en(i[t]);n=!1},d(t){ae(i,t),t&&oe(e)}}}function ei(t){let e,n,r,i,o,a,l,s;return{c(){e=le("span"),n=le("img"),this.h()},l(t){e=ye(t,"SPAN",{style:!0});var r=ge(e);n=ye(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(oe),this.h()},h(){pe(n,"class",r=In.text__image),Mt(n.src,i=t[55].image.url)||pe(n,"src",i),pe(n,"loading","lazy"),pe(n,"decoding","async"),pe(n,"aria-hidden","true"),pe(n,"alt",""),pe(n,"style",o=Tn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),pe(e,"style",a=Tn(t[55].image.wrapperStyle))},m(r,i){ie(r,e,i),re(e,n),l||(s=he(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!Mt(n.src,i=t[55].image.url)&&pe(n,"src",i),1536&r[0]&&o!==(o=Tn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&pe(n,"style",o),1024&r[0]&&a!==(a=Tn(t[55].image.wrapperStyle))&&pe(e,"style",a)},i:jt,o:jt,d(t){t&&oe(e),l=!1,s()}}}function ni(t){let e,n,r=t[55].text&&ri(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&tn(r,1)):(r=ri(t),r.c(),tn(r,1),r.m(e.parentNode,e)):r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe())},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function ri(t){let e,n;return e=new qr({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ii(t){let e,n,r,i;const o=[ni,ei],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=de()},l(t){n&&n.l(t),r=de()},m(t,n){~e&&a[e].m(t,n),ie(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(Ze(),en(a[s],1,1,(()=>{a[s]=null})),Qe()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),tn(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(tn(n),i=!0)},o(t){en(n),i=!1},d(t){~e&&a[e].d(t),t&&oe(r)}}}function oi(t){let e,n,r,i,o,a;const l=[ti,Qr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=le("span"),r.c(),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0});var n=ge(e);r.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",i=Kn("text__inner",In,t[12])),pe(e,"style",o=Tn(t[11]))},m(t,r){ie(t,e,r),s[n].m(e,null),a=!0},p(t,u){let d=n;n=c(t),n===d?s[n].p(t,u):(Ze(),en(s[d],1,1,(()=>{s[d]=null})),Qe(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),tn(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=Kn("text__inner",In,t[12])))&&pe(e,"class",i),(!a||2048&u[0]&&o!==(o=Tn(t[11])))&&pe(e,"style",o)},i(t){a||(tn(r),a=!0)},o(t){en(r),a=!1},d(t){t&&oe(e),s[n].d()}}}function ai(t){let e,n,r=!t[8]&&Zr(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[8]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),256&n[0]&&tn(r,1)):(r=Zr(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function li(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,V,j,D,P,S,F,I,z,T,M=jt,N=jt,J=jt,O=jt,B=jt,R=jt,U=jt,W=jt,L=jt,q=jt,H=jt,G=jt,K=jt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=Fe(Sn);let et=!1,nt="",rt=12,it=1.25,ot=!1,at="",lt="",st=!1,ct="left",ut="top",dt="",ht="",pt=!1,ft=[],gt=[];return Pe((()=>{gt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=Ot(r,(t=>n(51,T=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=T,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(Fn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,i=tt.getDerivedFromVars(X.ranges)),N(),N=Ot(i,(t=>n(41,k=t)))),1&t.$$.dirty[0]&&(n(24,o=tt.getDerivedFromVars(X.images)),M(),M=Ot(o,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),J(),J=Ot(a,(t=>n(27,E=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=Ot(l,(t=>n(50,z=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=Jr(z,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),H(),H=Ot(s,(t=>n(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;br(t)?(n(29,it=Number(t)/rt),n(9,ot=!0)):n(9,ot=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),W(),W=Ot(c,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(7,u=1===P),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(P&&P>1){let n=Number(P);t=n*it+"em",k||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,st=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),q(),q=Ot(d,(t=>n(48,F=t)))),131076&t.$$.dirty[1]&&n(33,ct=Hr(F,ct)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),L(),L=Ot(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,ut=Gr(S,ut)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!k||nt&&1===k.length&&k[0]&&0===k[0].start&&"number"==typeof k[0].end&&k[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),U(),U=Ot(f,(t=>n(45,D=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(D)!==Boolean(k&&k[0]&&k[0].text_color)),50576&t.$$.dirty[1]){let t="";P&&p&&g&&(t=A(D||k&&k[0]&&k[0].text_color,1,dt)),n(35,dt=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=Ot(m,(t=>n(44,j=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===j?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=Ot(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=Bn([V]);e.image&&(t=e.image)}n(36,ht=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),O(),O=Ot($,(t=>n(42,C=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,pt=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(C,pt)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let i=[];if(gt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),gt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,ft=[]);const o=t;let a=e||[{start:0,end:o.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},E),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},E),...c),n=Mn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=Mn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":Mn(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=Kr(t.image.tint_mode,"source_in");if(l){const e=A(t.image.tint_color);a=tt.addSvgFilter(e,s),gt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},E)}),n(10,ft=i)}(nt,k,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:st,halign:ct,valign:ut,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(ht)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":Mn(rt),"line-height":it,"max-height":at,"-webkit-line-clamp":lt,color:dt,"background-image":ht})},[X,Y,Z,Q,nt,rt,pt,u,et,ot,ft,w,b,_,$,y,m,f,h,d,c,s,l,a,o,i,r,E,function(t){t.target&&"classList"in t.target&&t.target.classList.add(In.text__image_hidden)},it,at,lt,st,ct,ut,dt,ht,v,g,p,x,k,C,V,j,D,P,S,F,I,z,T]}const si={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function ci(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)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?A(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=A(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(Mn(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}function ui(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function di(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(Mn).join(" ")}let hi;function pi(){if(void 0!==hi)return hi;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),hi=1===t.scrollHeight,document.body.removeChild(t),hi}const fi="divkit-a7719",gi="divkit-f6e9a";function mi(t,e,n){const r=t.slice();return r[13]=e[n],r}function vi(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=le("div"),n=le("div"),i=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var r=ge(e);n=ye(r,"DIV",{class:!0}),ge(n).forEach(oe),i=be(r),r.forEach(oe),this.h()},h(){pe(n,"class",r=gi),xe(n,"width",a,!1),xe(n,"height",l,!1),xe(n,"border-radius",s,!1),xe(n,"background",t[13].style.background,!1),xe(n,"box-shadow",t[13].style.boxShadow,!1),pe(e,"class",o="divkit-c770e"),xe(e,"left",c,!1),xe(e,"top",u,!1),xe(e,"width",d,!1),xe(e,"height",h,!1)},m(t,r){ie(t,e,r),re(e,n),re(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&xe(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&xe(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&xe(n,"border-radius",s,!1),2&r&&xe(n,"background",t[13].style.background,!1),2&r&&xe(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&xe(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&xe(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&xe(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&xe(e,"height",h,!1)},d(t){t&&oe(e)}}}function yi(t){let e,n,r,i,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=vi(mi(t,o,e));return{c(){e=le("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(oe),this.h()},h(){pe(e,"class",n=fi)},m(n,o){ie(n,e,o);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(i=he(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=t[1],n=0;n<o.length;n+=1){const i=mi(t,o,n);a[n]?a[n].p(i,r):(a[n]=vi(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:jt,o:jt,d(n){n&&oe(e),ae(a,n),t[10](null),r=!1,i()}}}function $i(t,e,n,r,i,o){o?t.push({top:n.bottom,left:i.left,width:i.right-i.left,height:r.top-n.bottom,style:e}):t.push({top:i.top,left:n.right,width:r.left-n.right,height:i.bottom-i.top,style:e})}function _i(t,e,n,r){const i={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)&&$i(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)$i(t,e.style,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];$i(t,e.style,o,{top:o.bottom+e.style.height,right:0,bottom:0,left:o.right+e.style.width},i,r)}}function bi(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=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();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(zn.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.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&&_i(c,o,e,"vertical"===i);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)))};u.push(n)})),a&&_i(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(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(gi))&&!(null==n?void 0:n.contains(fi))}))&&l()}return De((()=>{n(6,u=!0)})),Pe((()=>{n(6,u=!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)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){Te[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const wi=class extends fn{constructor(t){super(),pn(this,t,bi,yi,Nt,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:xi}=on;function ki(t,e,n){const r=t.slice();return r[46]=e[n],r}function Ei(t){let e,n;return e=new Mr({props:{cls:Kn("container",si,t[10]),style:t[9],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[14],$$slots:{default:[Vi]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Kn("container",si,t[10])),512&n[0]&&(r.style=t[9]),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]),16384&n[0]&&(r.additionalPaddings=t[14]),2097632&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ci(t){let e,n;return e=new Ha({props:{layoutParams:t[8],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),2097152&n[0]&&(r.div=t[46].json),2097152&n[0]&&(r.templateContext=t[46].templateContext),2097152&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ai(t){let e,n;return e=new wi({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Vi(t){let e,n,r,i=t[21],o=[];for(let e=0;e<i.length;e+=1)o[e]=Ci(ki(t,i,e));const a=t=>en(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&Ai(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=ue(),l&&l.c(),n=de()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=be(t),l&&l.l(t),n=de()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);ie(t,e,i),l&&l.m(t,i),ie(t,n,i),r=!0},p(t,r){if(2097408&r[0]){let n;for(i=t[21],n=0;n<i.length;n+=1){const a=ki(t,i,n);o[n]?(o[n].p(a,r),tn(o[n],1)):(o[n]=Ci(a),o[n].c(),tn(o[n],1),o[n].m(e.parentNode,e))}for(Ze(),n=i.length;n<o.length;n+=1)a(n);Qe()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&tn(l,1)):(l=Ai(t),l.c(),tn(l,1),l.m(n.parentNode,n)):l&&(Ze(),en(l,1,1,(()=>{l=null})),Qe())},i(t){if(!r){for(let t=0;t<i.length;t+=1)tn(o[t]);tn(l),r=!0}},o(t){o=o.filter(xi);for(let t=0;t<o.length;t+=1)en(o[t]);en(l),r=!1},d(t){ae(o,t),t&&oe(e),l&&l.d(t),t&&oe(n)}}}function ji(t){let e,n,r=!t[4]&&Ei(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[4]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),16&n[0]&&tn(r,1)):(r=Ei(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function Di(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A=jt,V=jt,j=jt,D=jt,P=jt,S=jt,F=jt,I=jt,z=jt;var T,M,N,J,O,B;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z()));let{json:R={}}=e,{templateContext:U}=e,{origJson:W}=e,{layoutParams:L}=e;const q={left:"start",center:"center",right:"end"},H={top:"start",center:"center",bottom:"end",baseline:"baseline"},G=["rounded_rectangle","circle"],K=Fe(Sn);let X,Y=!1,Z="vertical",Q="top",tt="left",et=null,nt=null,rt={};return t.$$set=t=>{"json"in t&&n(0,R=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(32,r=R.items),2&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,Y=!1):(n(4,Y=!0),K.logError(Fn(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(21,i=(!Y&&r||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=K.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(20,o=K.getDerivedFromVars(R.orientation)),z(),z=Ot(o,(t=>n(41,C=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(5,Z=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,Z)),1&t.$$.dirty[0]&&(n(19,a=K.getDerivedFromVars(R.content_alignment_vertical)),I(),I=Ot(a,(t=>n(40,E=t)))),268435456&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(28,Q=Gr(E,Q)),1&t.$$.dirty[0]&&(n(18,l=K.getDerivedFromVars(R.content_alignment_horizontal)),F(),F=Ot(l,(t=>n(39,k=t)))),536870912&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(29,tt=Hr(k,tt)),1&t.$$.dirty[0]&&(n(17,s=K.getDerivedFromVars(R.layout_mode)),S(),S=Ot(s,(t=>n(38,x=t)))),128&t.$$.dirty[1]&&n(31,c="wrap"===x),1&t.$$.dirty[0]&&(n(16,u=K.getDerivedFromVars(R.separator)),P(),P=Ot(u,(t=>n(37,w=t)))),29360224&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==Z&&pi()){const t=ci(w.style,G,(null==et?void 0:et.style)||null);n(6,et=t?{show_at_start:Boolean(null!==n(22,T=w.show_at_start)&&void 0!==T&&T),show_at_end:Boolean(null!==n(23,M=w.show_at_end)&&void 0!==M&&M),show_between:Boolean(null===n(24,N=w.show_between)||void 0===N||N),style:t}:null)}else n(6,et=null);if(1&t.$$.dirty[0]&&(n(15,d=K.getDerivedFromVars(R.line_separator)),D(),D=Ot(d,(t=>n(36,b=t)))),234881184&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==Z&&pi()){const t=ci(b.style,G,(null==nt?void 0:nt.style)||null);n(7,nt=t?{show_at_start:Boolean(null!==n(25,J=b.show_at_start)&&void 0!==J&&J),show_at_end:Boolean(null!==n(26,O=b.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===n(27,B=b.show_between)||void 0===B||B),style:t}:null)}else n(7,nt=null);if(224&t.$$.dirty[0]&&n(14,h=et||nt?function(t,e,n){const r={};return ui(r,e,"vertical"===t),ui(r,n,"horizontal"===t),r}(Z,et,nt):null),1&t.$$.dirty[0]&&(n(13,p=K.getDerivedFromVars(R.aspect)),j(),j=Ot(p,(t=>n(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.ratio;t&&br(t)?n(30,X=t):n(30,X=void 0)}if(1&t.$$.dirty[0]&&(n(12,f=K.getDerivedFromVars(R.width)),A(),A=Ot(f,(t=>n(33,y=t)))),1&t.$$.dirty[0]&&(n(11,g=K.getDerivedFromVars(R.height)),V(),V=Ot(g,(t=>n(34,$=t)))),805306664&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"overlap"===Z&&(t.overlapParent=!0),"horizontal"!==Z&&(t.parentHAlign=q[tt],(!$||"wrap_content"===$.type||"match_parent"===$.type&&(null==L?void 0:L.parentVerticalWrapContent))&&(t.parentVerticalWrapContent=!0)),"vertical"!==Z&&(t.parentVAlign=H[Q],("wrap_content"===(null==y?void 0:y.type)||"match_parent"===(null==y?void 0:y.type)&&(null==L?void 0:L.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===Z&&(t.parentContainerOrientation="horizontal"),"vertical"===Z&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(8,rt=or(t,rt))}805306400&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(10,m={orientation:Z,valign:Q,halign:tt,wrap:c}),1073742048&t.$$.dirty[0]&&n(9,v={gap:et||nt?di(Z,et,nt):void 0,"aspect-ratio":X})},[R,U,W,L,Y,Z,et,nt,rt,v,m,g,f,p,h,d,u,s,l,a,o,i,T,M,N,J,O,B,Q,tt,X,c,r,y,$,_,b,w,x,k,E,C]}const Pi={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function Si(t,e){return"vertical"===t||"horizontal"===t?t:e}function Fi(t){let e,n,r;return{c(){e=le("span"),this.h()},l(t){e=ye(t,"SPAN",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=Pi.separator__inner),pe(e,"style",r=Tn(t[5]))},m(t,n){ie(t,e,n)},p(t,n){32&n&&r!==(r=Tn(t[5]))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Ii(t){let e,n=t[6]&&Fi(t);return{c(){n&&n.c(),e=de()},l(t){n&&n.l(t),e=de()},m(t,r){n&&n.m(t,r),ie(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Fi(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&oe(e)}}}function zi(t){let e,n;return e=new Mr({props:{cls:Kn("separator",Pi,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ii]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Kn("separator",Pi,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||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ti(t,e,n){let r,i,o,a,l,s,c,u=jt;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=Fe(Sn);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=Ot(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Si(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=A(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":Mn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?Mn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,i,r,m,v,a,o,c]}const Mi={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 Ni(t){let e,n;return e=new Mr({props:{cls:Kn("image",Mi,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Ri]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Kn("image",Mi,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ji(t){let e,n,r,i,o,a,l;return{c(){e=le("img"),this.h()},l(t){e=ye(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){pe(e,"class",n=Mi.image__image),Mt(e.src,r=t[4]===Li?Wi:t[7])||pe(e,"src",r),pe(e,"loading","lazy"),pe(e,"decoding","async"),pe(e,"style",i=Tn(t[9])),pe(e,"alt",t[16]),pe(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){ie(n,e,r),a||(l=[he(e,"load",t[26]),he(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!Mt(e.src,r=t[4]===Li?Wi:t[7])&&pe(e,"src",r),512&n[0]&&i!==(i=Tn(t[9]))&&pe(e,"style",i),65536&n[0]&&pe(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&pe(e,"aria-hidden",o)},d(t){t&&oe(e),a=!1,It(l)}}}function Oi(t){let e,n,r,i,o,a,l,s,c,u="".concat(t[5],"%");return{c(){e=le("span"),n=le("img"),this.h()},l(t){e=ye(t,"SPAN",{class:!0});var r=ge(e);n=ye(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(oe),this.h()},h(){pe(n,"class",r=Mi.image__image),Mt(n.src,i=t[4]===Li?Wi:t[7])||pe(n,"src",i),pe(n,"loading","lazy"),pe(n,"decoding","async"),pe(n,"style",o=Tn(t[9])),pe(n,"alt",t[16]),pe(n,"aria-hidden",a=t[16]?null:"true"),pe(e,"class",l=Mi["image__aspect-wrapper"]),xe(e,"padding-bottom",u,!1)},m(r,i){ie(r,e,i),re(e,n),s||(c=[he(n,"load",t[26]),he(n,"error",t[27])],s=!0)},p(t,r){144&r[0]&&!Mt(n.src,i=t[4]===Li?Wi:t[7])&&pe(n,"src",i),512&r[0]&&o!==(o=Tn(t[9]))&&pe(n,"style",o),65536&r[0]&&pe(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&pe(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&xe(e,"padding-bottom",u,!1)},d(t){t&&oe(e),s=!1,It(c)}}}function Bi(t){let e;function n(t,e){return t[10].aspect?Oi:Ji}let r=n(t),i=r(t);return{c(){i.c(),e=de()},l(t){i.l(t),e=de()},m(t,n){i.m(t,n),ie(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){i.d(t),t&&oe(e)}}}function Ri(t){let e,n=t[6],r=Bi(t);return{c(){r.c(),e=de()},l(t){r.l(t),e=de()},m(t,n){r.m(t,n),ie(t,e,n)},p(t,i){64&i[0]&&Nt(n,n=t[6])?(r.d(1),r=Bi(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&oe(e),r.d(t)}}}function Ui(t){let e,n,r=!t[8]&&Ni(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[8]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),256&n[0]&&tn(r,1)):(r=Ni(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}const Wi="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Li=2;function qi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,V,j,D,P,S,F,I,z,T,M,N=jt,J=jt,O=jt,B=jt,R=jt,U=jt,W=jt,L=jt,q=jt,H=jt,G=jt,K=jt,X=jt,Y=jt;t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=Fe(Sn);let rt=0,it="rgba(0,0,0,0.08)",ot=!1,at="",lt="none",st="50% 50%";let ct,ut="0",dt="source_in",ht="",pt="",ft=0,gt=0,mt=0,vt="",yt="";return Pe((()=>{nt.removeSvgFilter(ct,dt)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,Q=t.templateContext),"origJson"in t&&n(2,tt=t.origJson),"layoutParams"in t&&n(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=nt.getDerivedFromVars(Z.image_url)),Y(),Y=Ot(r,(t=>n(55,M=t)))),1&t.$$.dirty[0]&&(n(24,i=nt.getDerivedFromVars(Z.gif_url)),X(),X=Ot(i,(t=>n(54,T=t)))),25165824&t.$$.dirty[1]&&n(7,o=M||T),128&t.$$.dirty[0]&&n(4,rt=0),128&t.$$.dirty[0]&&(o?n(8,ot=!1):(n(8,ot=!0),nt.logError(Fn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=nt.getDerivedFromVars(Z.width)),K(),K=Ot(a,(t=>n(53,z=t)))),4194304&t.$$.dirty[1]&&n(41,l="wrap_content"===(null==z?void 0:z.type)),1&t.$$.dirty[0]&&(n(22,s=nt.getDerivedFromVars(Z.height)),G(),G=Ot(s,(t=>n(52,I=t)))),2097152&t.$$.dirty[1]&&n(40,c="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(n(21,u=nt.getDerivedFromVars(Z.preview)),H(),H=Ot(u,(t=>n(51,F=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=F;0!==rt&&rt!==Li||!t?n(29,at=""):t.startsWith("data:")?n(29,at='url("'.concat(Jn(t),'")')):n(29,at='url("data:image/jpg;base64,'.concat(Jn(t),'")'))}if(1&t.$$.dirty[0]&&(n(20,d=nt.getDerivedFromVars(Z.placeholder_color)),q(),q=Ot(d,(t=>n(50,S=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===Li?A(e,1,it):"")}(rt,S),1&t.$$.dirty[0]&&(n(19,h=nt.getDerivedFromVars(Z.scale)),L(),L=Ot(h,(t=>n(49,P=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(30,lt=Wn(P)||lt),1&t.$$.dirty[0]&&(n(18,p=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),W(),W=Ot(p,(t=>n(48,D=t)))),131072&t.$$.dirty[1]&&n(31,st=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:Ln(t)}(D,st)),1&t.$$.dirty[0]&&(n(17,f=nt.getDerivedFromVars(Z.accessibility)),U(),U=Ot(f,(t=>n(47,j=t)))),65536&t.$$.dirty[1]&&n(16,g=(null==j?void 0:j.description)||""),1&t.$$.dirty[0]&&(n(15,m=nt.getDerivedFromVars(Z.aspect)),R(),R=Ot(m,(t=>n(46,V=t)))),32768&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&br(t)?n(5,ut=(100/Number(t)).toFixed(2)):n(5,ut="0")}if(1&t.$$.dirty[0]&&(n(14,v=nt.getDerivedFromVars(Z.tint_color)),B(),B=Ot(v,(t=>n(45,C=t)))),1&t.$$.dirty[0]&&(n(13,y=nt.getDerivedFromVars(Z.tint_mode)),O(),O=Ot(y,(t=>n(44,E=t)))),24582&t.$$.dirty[1]){const t=C,e=t?A(t):void 0,r=Kr(E,dt);e===ct&&r===dt||(nt.removeSvgFilter(ct,dt),n(6,ht=e?nt.addSvgFilter(e,r):""),n(32,ct=e),n(33,dt=r))}if(1&t.$$.dirty[0]&&(n(12,$=nt.getDerivedFromVars(Z.appearance_animation)),J(),J=Ot($,(t=>n(43,k=t)))),4096&t.$$.dirty[1]&&k&&"fade"===k.type){const t=k;n(34,pt=ar(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(37,mt=nr(t.duration,300)),n(36,gt=nr(t.start_delay,0)),n(35,ft=nr(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=nt.getDerivedFromVars(Z.filters)),N(),N=Ot(_,(t=>n(42,x=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(x)&&x.length&&(t=wr(x,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(38,vt=t),n(39,yt=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&n(10,b={aspect:"0"!==ut,"is-width-content":l,"is-height-content":c,loaded:1===rt,"before-appearance":Boolean(pt)&&0===rt}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&n(9,w={"background-image":at,"background-color":at?void 0:it,"background-size":lt,"clip-path":yt||void 0,"object-fit":lt,"object-position":st,filter:[1===rt&&ht?"url(#".concat(ht,")"):"",vt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":pt||void 0,"--divkit-appearance-fade-start":pt?ft:void 0,"--divkit-appearance-delay":pt?"".concat(gt,"ms"):void 0,"--divkit-appearance-duration":pt?"".concat(mt,"ms"):void 0})},[Z,Q,tt,et,rt,ut,ht,o,ot,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,i,r,function(){0===rt&&n(4,rt=1)},function(){0===rt&&n(4,rt=Li)},it,at,lt,st,ct,dt,pt,ft,gt,mt,vt,yt,c,l,x,k,E,C,V,j,D,P,S,F,I,z,T,M]}const Hi=class extends fn{constructor(t){super(),pn(this,t,qi,Ui,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Gi={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 Ki(t){return t>0&&t<1}function Xi(t){return String(Math.ceil(1e3*t)/1e3)}function Yi(t,e,n){if(t.some(Ki)){const e=Math.max(...t.filter(Ki).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(Mn(r*t[e]/i),",").concat(Xi(t[e]),"fr)"):t[e]?o[e]="".concat(Xi(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Zi(t,e,n){const r=t.slice();return r[29]=e[n],r}function Qi(t){let e,n;return e=new Mr({props:{cls:Kn("grid",Gi,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[eo]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Kn("grid",Gi,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]),32&n[0]|2&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function to(t){let e,n;return e=new Ha({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(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||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function eo(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=to(Zi(t,r,e));const o=t=>en(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=de()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=de()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);ie(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=Zi(t,r,a);i[a]?(i[a].p(o,n),tn(i[a],1)):(i[a]=to(o),i[a].c(),tn(i[a],1),i[a].m(e.parentNode,e))}for(Ze(),a=r.length;a<i.length;a+=1)o(a);Qe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)tn(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)en(i[t]);n=!1},d(t){ae(i,t),t&&oe(e)}}}function no(t){let e,n,r=!t[6]&&Qi(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[6]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),64&n[0]&&tn(r,1)):(r=Qi(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function ro(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g=jt,m=jt,v=jt,y=jt;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=Fe(Sn);let k,E,C=!1,A=1,V=[],j=[],D=[],P=[],S=0,F=!1,I="top",z="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(Fn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=Ot(i,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=Jr(f,A)),8392706&t.$$.dirty[0]&&n(22,o=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=vn(t,(t=>[...t]))),v(),v=Ot(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,j=[]),n(16,D=[]),n(17,P=[]),n(19,F=!1),n(5,E=o.map(((i,o)=>{var a,l,s,c;const u=p[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(19,F=!0):(t[i+"_"+e]=!0,(!V[i]||V[i]<g)&&n(14,V[i]=g,V),(!j[e]||j[e]<m)&&n(15,j[e]=m,j),(!D[i]||D[i]<v)&&n(16,D[i]=v,D),(!P[e]||P[e]<y)&&n(17,P[e]=y,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,F=!0),F&&x.logError(Fn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=Ot(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=Gr(h,I)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=Ot(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,z=Hr(d,z)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:z}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Yi(V,D,A),"grid-template-rows":Yi(j,P,S)}),528384&t.$$.dirty[0]&&n(6,u=C||F)},[$,_,b,w,k,E,u,c,s,l,a,i,C,A,V,j,D,P,S,F,I,z,o,r,d,h,p,f]}const io={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function oo(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function ao(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:lo}=on;function so(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function co(t,e,n){const r=t.slice();return r[75]=e[n],r}function uo(t){let e,n;return e=new Mr({props:{cls:Kn("gallery",io,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[vo]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Kn("gallery",io,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]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ho(t){let e,n;return e=new Ha({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function po(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=ho(co(t,l,e));const c=t=>en(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=le("div");for(let t=0;t<s.length;t+=1)s[t].c();n=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var r=ge(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=be(r),r.forEach(oe),this.h()},h(){pe(e,"class",r=io.gallery__items),pe(e,"style",i=Tn(t[17]))},m(t,r){ie(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);re(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=co(t,l,r);s[r]?(s[r].p(i,h),tn(s[r],1)):(s[r]=ho(i),s[r].c(),tn(s[r],1),s[r].m(e,n))}for(Ze(),r=l.length;r<s.length;r+=1)c(r);Qe()}(!o||131072&h[0]&&i!==(i=Tn(t[17])))&&pe(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)tn(s[t]);o=!0}},o(t){s=s.filter(lo);for(let t=0;t<s.length;t+=1)en(s[t]);o=!1},d(t){t&&oe(e),ae(s,t),d()}}}function fo(t){let e,n,r=t[12]&&t[9]&&go(t),i=t[13]&&t[9]&&mo(t);return{c(){r&&r.c(),e=ue(),i&&i.c(),n=de()},l(t){r&&r.l(t),e=be(t),i&&i.l(t),n=de()},m(t,o){r&&r.m(t,o),ie(t,e,o),i&&i.m(t,o),ie(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=go(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=mo(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&oe(e),i&&i.d(t),t&&oe(n)}}}function go(t){let e,n,r,i,o=!t[29]&&function(t){let e,n,r,i;return{c(){e=se("svg"),n=se("path"),this.h()},l(t){e=$e(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ge(e);n=$e(r,"path",{class:!0,d:!0}),ge(n).forEach(oe),r.forEach(oe),this.h()},h(){pe(n,"class",r=io["gallery__arrow-icon-path"]),pe(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),pe(e,"class",i=io["gallery__arrow-icon"]),pe(e,"xmlns","http://www.w3.org/2000/svg"),pe(e,"width","32"),pe(e,"height","32"),pe(e,"viewBox","0 0 32 32"),pe(e,"fill","none")},m(t,r){ie(t,e,r),re(e,n)},p:jt,d(t){t&&oe(e)}}}();return{c(){e=le("div"),o&&o.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);o&&o.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",n=t[29]||"".concat(io.gallery__arrow," ").concat(io.gallery__arrow_left))},m(n,a){ie(n,e,a),o&&o.m(e,null),r||(i=he(e,"click",t[63]),r=!0)},p(t,e){t[29]||o.p(t,e)},d(t){t&&oe(e),o&&o.d(),r=!1,i()}}}function mo(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=se("svg"),n=se("path"),this.h()},l(t){e=$e(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ge(e);n=$e(r,"path",{class:!0,d:!0}),ge(n).forEach(oe),r.forEach(oe),this.h()},h(){pe(n,"class",r=io["gallery__arrow-icon-path"]),pe(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),pe(e,"class",i=io["gallery__arrow-icon"]),pe(e,"xmlns","http://www.w3.org/2000/svg"),pe(e,"width","32"),pe(e,"height","32"),pe(e,"viewBox","0 0 32 32"),pe(e,"fill","none")},m(t,r){ie(t,e,r),re(e,n)},p:jt,d(t){t&&oe(e)}}}();return{c(){e=le("div"),o&&o.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);o&&o.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",n=t[30]||"".concat(io.gallery__arrow," ").concat(io.gallery__arrow_right))},m(n,a){ie(n,e,a),o&&o.m(e,null),r||(i=he(e,"click",t[64]),r=!0)},p(t,e){t[30]||o.p(t,e)},d(t){t&&oe(e),o&&o.d(),r=!1,i()}}}function vo(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=po(so(t,h,e));const f=t=>en(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&fo(t);return{c(){e=le("div"),n=le("div");for(let t=0;t<p.length;t+=1)p[t].c();l=ue(),g&&g.c(),s=de(),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var r=ge(e);n=ye(r,"DIV",{class:!0,style:!0});var i=ge(n);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(oe),r.forEach(oe),l=be(t),g&&g.l(t),s=de(),this.h()},h(){pe(n,"class",r=io["gallery__items-grid"]),pe(n,"style",i=Tn(t[18])),pe(e,"class",o=io.gallery__scroller+" "+(t[28]?Dn:"")),pe(e,"style",a=Tn(t[7]))},m(r,i){ie(r,e,i),re(e,n);for(let t=0;t<p.length;t+=1)p[t].m(n,null);t[61](n),t[62](e),ie(r,l,i),g&&g.m(r,i),ie(r,s,i),c=!0,u||(d=he(e,"scroll",(function(){zt(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=so(t,h,e);p[e]?(p[e].p(r,l),tn(p[e],1)):(p[e]=po(r),p[e].c(),tn(p[e],1),p[e].m(n,null))}for(Ze(),e=h.length;e<p.length;e+=1)f(e);Qe()}(!c||262144&l[0]&&i!==(i=Tn(t[18])))&&pe(n,"style",i),(!c||268435456&l[0]&&o!==(o=io.gallery__scroller+" "+(t[28]?Dn:"")))&&pe(e,"class",o),(!c||128&l[0]&&a!==(a=Tn(t[7])))&&pe(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=fo(t),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},i(t){if(!c){for(let t=0;t<h.length;t+=1)tn(p[t]);c=!0}},o(t){p=p.filter(lo);for(let t=0;t<p.length;t+=1)en(p[t]);c=!1},d(n){n&&oe(e),ae(p,n),t[61](null),t[62](null),n&&oe(l),g&&g.d(n),n&&oe(s),u=!1,d()}}}function yo(t){let e,n,r,i,o=!t[5]&&uo(t);return{c(){o&&o.c(),e=de()},l(t){o&&o.l(t),e=de()},m(a,l){o&&o.m(a,l),ie(a,e,l),n=!0,r||(i=he(window,"resize",(function(){zt(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Ze(),en(o,1,1,(()=>{o=null})),Qe()):o?(o.p(t,r),32&r[0]&&tn(o,1)):(o=uo(t),o.c(),tn(o,1),o.m(e.parentNode,e))},i(t){n||(tn(o),n=!0)},o(t){en(o),n=!1},d(t){o&&o.d(t),t&&oe(e),r=!1,i()}}}function $o(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P=jt,S=jt,F=jt,I=jt,z=jt,T=jt,M=jt,N=jt,J=jt,O=jt;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O()));let{json:B={}}=e,{templateContext:R}=e,{origJson:U}=e,{layoutParams:W}=e;const L=Fe(Sn);let q,H,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=L.getCustomization("galleryLeftClass"),tt=L.getCustomization("galleryRightClass");let et=!1;const nt=L.isDesktop;Bt(t,nt,(t=>n(59,j=t)));let rt,it,ot,at,lt=1,st="horizontal",ct="start",ut=8,dt="",ht=[],pt={},ft=!1,gt={},mt=0;function vt(){if(!q)return;const t=q.scrollLeft,e=q.scrollWidth,r=q.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const yt=ao(vt,50);function $t(t){q.scroll({left:q.scrollLeft+.75*q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function _t(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function bt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===st,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";q.scroll({[o]:Math.max(0,t[e][i]-ut/2),behavior:n})}function wt(t){const e=_t(),n=q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===st?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"===st?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!B.id||et||(null==W?void 0:W.fakeElement)||L.registerInstance(B.id,{setCurrentItem(t){const e=_t();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');bt(e,t)},setPreviousItem(t){const e=wt("prev"),n=_t();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),bt(n,r)},setNextItem(t){const e="horizontal"===st?q.scrollLeft+q.offsetWidth===q.scrollWidth:q.scrollTop+q.offsetHeight===q.scrollHeight,n=_t();if(e&&"ring"===t)return void bt(n,0);const r=wt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),bt(n,i)}}),De((()=>{n(36,Z=!0),!et&&(vt(),mt)&&bt(_t(),mt,"auto")})),Pe((()=>{n(36,Z=!1),B.id&&!(null==W?void 0:W.fakeElement)&&L.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,U=t.origJson),"layoutParams"in t&&n(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),L.logError(Fn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,i=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=L.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,o=j&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{yt()}))),Y.observe(H)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=L.getDerivedFromVars(B.column_count)),J(),J=Ot(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=Jr(V,lt)),131136&t.$$.dirty[1]&&n(26,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(i,lt)),1&t.$$.dirty[0]&&(n(25,s=L.getDerivedFromVars(B.orientation)),N(),N=Ot(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,st=Si(A,st)),1&t.$$.dirty[0]&&(n(24,c=L.getDerivedFromVars(B.cross_content_alignment)),M(),M=Ot(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ct=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ct)),1&t.$$.dirty[0]&&(n(23,u=L.getDerivedFromVars(B.item_spacing)),T(),T=Ot(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,ut=nr(E,ut)),n(39,rt=Mn(ut))),1&t.$$.dirty[0]&&(n(22,d=L.getDerivedFromVars(B.cross_spacing)),z(),z=Ot(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,ot=nr(k,ut)),n(41,it=Mn(ot))),1&t.$$.dirty[0]&&(n(21,h=L.getDerivedFromVars(B.paddings)),I(),I=Ot(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,dt=er(x,dt)),64&t.$$.dirty[0]&&n(47,p="horizontal"===st?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===st?"width":"height";t.push(L.getDerivedFromVars(e.json[n]))})),n(14,at=vn(t,(t=>t))),F(),F=Ot(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,ht=[]),lt>1?ht.push("auto"):w.forEach((t=>{!t&&"horizontal"===st||"match_parent"===(null==t?void 0:t.type)?ht.push("100%"):ht.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=L.getDerivedFromVars(B.scroll_mode)),S(),S=Ot(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,ft=!1),(null==W?void 0:W.fakeElement)&&(e.fakeElement=!0),"horizontal"===st?e.parentVAlign=ct:e.parentHAlign=ct,"paging"===b&&(n(45,ft=!0),e.scrollSnap="start",t["horizontal"===st?"scroll-padding-left":"scroll-padding-top"]=Mn(ut/2)),1===lt&&(e.parentLayoutOrientation=st),n(7,pt=or(t,pt)),n(8,gt=or(e,gt))}1&t.$$.dirty[0]&&(n(19,g=L.getDerivedFromVars(B.restrict_parent_scroll)),O(),O=Ot(g,(t=>n(28,D=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:dt,"grid-gap":it}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:oo(ht)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:st,"scroll-snap":ft}),1&t.$$.dirty[0]&&(n(15,$=L.getDerivedFromVars(B.default_item)),P(),P=Ot($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,mt=nr(_,mt))},[B,R,U,W,H,et,st,pt,gt,o,q,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,D,Q,tt,nt,vt,yt,$t,Y,Z,lt,ct,rt,ut,it,ot,dt,ht,ft,mt,p,i,r,_,b,w,x,k,E,C,A,V,j,function(t,e){Te[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){Te[t?"unshift":"push"]((()=>{H=t,n(4,H)}))},function(t){Te[t?"unshift":"push"]((()=>{q=t,n(10,q)}))},()=>$t("left"),()=>$t("right")]}const _o={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"},{Boolean:bo}=on;function wo(t,e,n){const r=t.slice();return r[83]=e[n],r[85]=n,r}function xo(t,e,n){const r=t.slice();r[83]=e[n],r[85]=n;const i=r[85]===r[6];return r[86]=i,r}function ko(t){let e,n;return e=new Mr({props:{cls:Kn("tabs",_o,t[42]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Do]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(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]),536870890&n[0]|517&n[1]|67108864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Eo(t){let e,n,r=t[83].title+"";return{c(){e=ce(r),n=ue()},l(t){e=_e(t,r),n=be(t)},m(t,r){ie(t,e,r),ie(t,n,r)},p(t,n){262144&n[0]&&r!==(r=t[83].title+"")&&we(e,r)},d(t){t&&oe(e),t&&oe(n)}}}function Co(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[59](t[85],...n)}return i=new yr({props:{cls:Kn("tabs__item",_o,{selected:t[86],actionable:Boolean(t[83].title_click_action)}),actions:!t[83].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[83].title_click_action],attrs:{id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[Eo]},$$scope:{ctx:t}}}),{c(){cn(i.$$.fragment)},l(t){un(i.$$.fragment,t)},m(t,e){dn(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};262208&n[0]&&(s.cls=Kn("tabs__item",_o,{selected:t[86],actionable:Boolean(t[83].title_click_action)})),262152&n[0]&&(s.actions=!t[83].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[83].title_click_action]),262216&n[0]&&(s.attrs={id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),262144&n[0]|67108864&n[2]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(tn(i.$$.fragment,t),o=!0)},o(t){en(i.$$.fragment,t),o=!1},d(t){hn(i,t)}}}function Ao(t){let e,n,r;return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=_o.tabs__separator),pe(e,"style",r=Tn(t[33]))},m(t,n){ie(t,e,n)},p(t,n){4&n[1]&&r!==(r=Tn(t[33]))&&pe(e,"style",r)},d(t){t&&oe(e)}}}function Vo(t){let e,n;return e=new Ha({props:{div:t[83].div,templateContext:t[1],layoutParams:t[5]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};262144&n[0]&&(r.div=t[83].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function jo(t){let e,n,r,i,o,a,l=t[27][t[85]]&&Vo(t);return{c(){e=le("div"),l&&l.c(),n=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=ge(e);l&&l.l(r),n=be(r),r.forEach(oe),this.h()},h(){pe(e,"class",r=Kn("tabs__panel",_o,{visible:t[28][t[85]]})),pe(e,"role","tabpanel"),pe(e,"id",i=t[41]+"-panel-"+t[85]),pe(e,"aria-labelledby",o=t[41]+"-tab-"+t[85]),xe(e,"left",100*t[85]+"%")},m(t,r){ie(t,e,r),l&&l.m(e,null),re(e,n),a=!0},p(t,i){t[27][t[85]]?l?(l.p(t,i),134217728&i[0]&&tn(l,1)):(l=Vo(t),l.c(),tn(l,1),l.m(e,n)):l&&(Ze(),en(l,1,1,(()=>{l=null})),Qe()),(!a||268435456&i[0]&&r!==(r=Kn("tabs__panel",_o,{visible:t[28][t[85]]})))&&pe(e,"class",r)},i(t){a||(tn(l),a=!0)},o(t){en(l),a=!1},d(t){t&&oe(e),l&&l.d()}}}function Do(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[18],p=[];for(let e=0;e<h.length;e+=1)p[e]=Co(xo(t,h,e));const f=t=>en(p[t],1,1,(()=>{p[t]=null}));let g=t[19]&&Ao(t),m=t[18],v=[];for(let e=0;e<m.length;e+=1)v[e]=jo(wo(t,m,e));const y=t=>en(v[t],1,1,(()=>{v[t]=null}));return{c(){e=le("div");for(let t=0;t<p.length;t+=1)p[t].c();r=ue(),g&&g.c(),i=ue(),o=le("div"),a=le("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=ye(t,"DIV",{class:!0,role:!0});var n=ge(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(oe),r=be(t),g&&g.l(t),i=be(t),o=ye(t,"DIV",{class:!0});var l=ge(o);a=ye(l,"DIV",{class:!0});var s=ge(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(oe),l.forEach(oe),this.h()},h(){pe(e,"class",n=_o.tabs__list+" "+(t[40]?Dn:"")),pe(e,"role","tablist"),xe(e,"--divkit-tabs-title-padding",t[17]?Zn(t[17]):"",!1),xe(e,"--divkit-tabs-font-size",Mn(t[7]),!1),xe(e,"--divkit-tabs-paddings",t[8],!1),xe(e,"--divkit-tabs-line-height",t[23],!1),xe(e,"--divkit-tabs-letter-spacing",t[24],!1),xe(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),xe(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),xe(e,"--divkit-tabs-active-text-color",t[12],!1),xe(e,"--divkit-tabs-inactive-text-color",t[13],!1),xe(e,"--divkit-tabs-active-background-color",t[14],!1),xe(e,"--divkit-tabs-inactive-background-color",t[15],!1),xe(e,"--divkit-tabs-border-radius",t[9],!1),xe(e,"--divkit-tabs-items-spacing",t[16]?Nn(t[16]):"",!1),pe(a,"class",l=Kn("tabs__swiper",_o,{inited:t[25],animated:t[26]})),pe(o,"class",s=_o.tabs__panels+" "+(t[40]?Dn:""))},m(n,l){ie(n,e,l);for(let t=0;t<p.length;t+=1)p[t].m(e,null);t[60](e),ie(n,r,l),g&&g.m(n,l),ie(n,i,l),ie(n,o,l),re(o,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[61](a),t[62](o),c=!0,u||(d=[he(e,"keydown",t[44]),he(a,"touchstart",(function(){zt(t[31]?t[45]:void 0)&&(t[31]?t[45]:void 0).apply(this,arguments)})),he(a,"touchmove",(function(){zt(t[31]?t[46]:void 0)&&(t[31]?t[46]:void 0).apply(this,arguments)})),he(a,"touchend",(function(){zt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)})),he(a,"touchcancel",(function(){zt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,262216&u[0]|5120&u[1]){let n;for(h=t[18],n=0;n<h.length;n+=1){const r=xo(t,h,n);p[n]?(p[n].p(r,u),tn(p[n],1)):(p[n]=Co(r),p[n].c(),tn(p[n],1),p[n].m(e,null))}for(Ze(),n=h.length;n<p.length;n+=1)f(n);Qe()}if((!c||512&u[1]&&n!==(n=_o.tabs__list+" "+(t[40]?Dn:"")))&&pe(e,"class",n),131072&u[0]&&xe(e,"--divkit-tabs-title-padding",t[17]?Zn(t[17]):"",!1),128&u[0]&&xe(e,"--divkit-tabs-font-size",Mn(t[7]),!1),256&u[0]&&xe(e,"--divkit-tabs-paddings",t[8],!1),8388608&u[0]&&xe(e,"--divkit-tabs-line-height",t[23],!1),16777216&u[0]&&xe(e,"--divkit-tabs-letter-spacing",t[24],!1),1024&u[0]&&xe(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&xe(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&xe(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&xe(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&xe(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&xe(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&xe(e,"--divkit-tabs-border-radius",t[9],!1),65536&u[0]&&xe(e,"--divkit-tabs-items-spacing",t[16]?Nn(t[16]):"",!1),t[19]?g?g.p(t,u):(g=Ao(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),402915362&u[0]|1024&u[1]){let e;for(m=t[18],e=0;e<m.length;e+=1){const n=wo(t,m,e);v[e]?(v[e].p(n,u),tn(v[e],1)):(v[e]=jo(n),v[e].c(),tn(v[e],1),v[e].m(a,null))}for(Ze(),e=m.length;e<v.length;e+=1)y(e);Qe()}(!c||100663296&u[0]&&l!==(l=Kn("tabs__swiper",_o,{inited:t[25],animated:t[26]})))&&pe(a,"class",l),(!c||512&u[1]&&s!==(s=_o.tabs__panels+" "+(t[40]?Dn:"")))&&pe(o,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)tn(p[t]);for(let t=0;t<m.length;t+=1)tn(v[t]);c=!0}},o(t){p=p.filter(bo);for(let t=0;t<p.length;t+=1)en(p[t]);v=v.filter(bo);for(let t=0;t<v.length;t+=1)en(v[t]);c=!1},d(n){n&&oe(e),ae(p,n),t[60](null),n&&oe(r),g&&g.d(n),n&&oe(i),n&&oe(o),ae(v,n),t[61](null),t[62](null),u=!1,It(d)}}}function Po(t){let e,n,r=!t[4]&&ko(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[4]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),16&n[0]&&tn(r,1)):(r=ko(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function So(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E=jt,C=jt,V=jt,j=jt,D=jt,P=jt,S=jt,F=jt,I=jt;var z;t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I()));let{json:T={}}=e,{templateContext:M}=e,{origJson:N}=e,{layoutParams:J}=e;const O=Fe(Sn),B=O.genId("tabs");let R,U,W,L=!1,q={};const H=O.getJsonWithVars(T.selected_tab);let G,K,X=H&&Number(H)||0,Y=12,Z="",Q="",tt="",et="",nt="",rt="",it="",ot="",at=0,lt="",st="",ct=null,ut=!1,dt=!1,ht=X,pt=[],ft=[];async function gt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ht=X,n(6,X=t),xt(),yt(),e){await Re();const t=R.querySelector(".".concat(_o.tabs__item_selected));t&&t.focus()}}function mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let i=X+t;i>=n?i=0:i<0&&(i=n-1),gt(i,e)}function vt(t,e){return X===e||(gt(e),!1)}function yt(){n(26,dt=!0),$t(100*-X),_t(),async function(){await Re();const t=document.getElementById("".concat(B,"-panel-").concat(X));t&&n(21,U.style.height=Mn(t.offsetHeight),U)}(),wt(),Ct=-X*U.clientWidth}async function $t(t){await Re(),n(22,W.style.transform="translate3d(".concat(t,"%,0,0)"),W)}function _t(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,X-1):Math.min(X,ht),i=t?Math.min(r.length-1,X+1):Math.max(X,ht);n(27,pt=pt.map(((t,n)=>t||n>=e&&n<=i))),n(28,ft=ft.map(((t,n)=>n>=e&&n<=i)))}let bt=null;function wt(){bt&&clearTimeout(bt),bt=window.setTimeout((()=>{n(28,ft=r.map(((t,e)=>e===X)))}),400)}function xt(){ut||(n(25,ut=!0),n(21,U.style.height=Mn(U.clientHeight),U),n(22,W.style.transform="translate3d(".concat(100*-ht,"%,0,0)"),W))}let kt,Et,Ct,At=null,Vt=null,Dt=!1,Pt=!1;return!T.id||L||(null==J?void 0:J.fakeElement)||O.registerInstance(T.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');gt(t)},setPreviousItem(t){let e=X-1;e<0&&(e="ring"===t?r.length-1:X),gt(e)},setNextItem(t){let e=X+1;e>r.length-1&&(e="ring"===t?0:X),gt(e)}}),Pe((()=>{T.id&&!(null==J?void 0:J.fakeElement)&&O.unregisterInstance(T.id)})),t.$$set=t=>{"json"in t&&n(0,T=t.json),"templateContext"in t&&n(1,M=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=T.items||[]),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,L=!1):(n(4,L=!0),O.logError(Fn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(39,i=O.getDerivedFromVars(T.width)),F(),F=Ot(i,(t=>n(58,x=t)))),1&t.$$.dirty[0]&&(n(38,o=O.getDerivedFromVars(T.height)),S(),S=Ot(o,(t=>n(57,w=t)))),40&t.$$.dirty[0]|201326592&t.$$.dirty[1]){let t={};(null==J?void 0:J.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==x?void 0:x.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),n(5,q=or(t,q))}if(262225&t.$$.dirty[0]&&!L&&(X<0||X>=r.length)&&(O.logError(Fn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:T.selected_tab,length:r.length}})),n(6,X=X<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(37,a=O.getDerivedFromVars(T.tab_title_style)),P(),P=Ot(a,(t=>n(56,b=t)))),33554432&t.$$.dirty[1]&&n(51,l=b||{}),128&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(7,Y=Jr(l.font_size,Y)),384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/Y*10,right:(Number(t.right)||0)/Y*10,bottom:(Number(t.bottom)||0)/Y*10,left:(Number(t.left)||0)/Y*10};n(8,Z=er(e,Z))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&br(t)&&n(23,Q=Mn(t/Y*10))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&tr(t)&&n(24,tt=Mn(t/Y*10))}if(640&t.$$.dirty[0]|1179648&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(48,z=l.corner_radius)&&void 0!==z?z:1e3;l.corners_radius?n(9,et=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]&&!tr(i[t]))return r;return ur(t,e,n)}(l.corners_radius,t,Y,et)):tr(t)&&n(9,et=Mn(t/Y*10))}1024&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(10,G=Br(l.active_font_weight||l.font_weight,G)),2048&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(11,K=Br(l.inactive_font_weight||l.font_weight,K)),4096&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(12,nt=A(l.active_text_color,1,nt)),8192&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(13,rt=A(l.inactive_text_color,1,rt)),16384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(14,it=A(l.active_background_color,1,it)),32768&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(15,ot=A(l.inactive_background_color,1,ot)),65536&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(16,at=nr(l.item_spacing,at)),1&t.$$.dirty[0]&&(n(36,s=O.getDerivedFromVars(T.has_separator)),D(),D=Ot(s,(t=>n(19,_=t)))),1&t.$$.dirty[0]&&(n(35,c=O.getDerivedFromVars(T.separator_color)),j(),j=Ot(c,(t=>n(55,$=t)))),1&t.$$.dirty[0]&&(n(34,u=O.getDerivedFromVars(T.separator_paddings)),V(),V=Ot(u,(t=>n(54,y=t)))),524288&t.$$.dirty[0]|25952256&t.$$.dirty[1]&&_&&($&&n(49,lt=A($,1,lt)),y&&n(50,st=er(y,st))),786432&t.$$.dirty[1]&&n(33,d={background:lt,margin:st}),1&t.$$.dirty[0]&&(n(32,h=O.getDerivedFromVars(T.switch_tabs_by_content_swipe_enabled)),C(),C=Ot(h,(t=>n(53,v=t)))),4194304&t.$$.dirty[1]&&n(31,p=void 0===v||Boolean(v)),1&t.$$.dirty[0]&&(n(30,f=O.getDerivedFromVars(T.restrict_parent_scroll)),I(),I=Ot(f,(t=>n(40,k=t)))),1&t.$$.dirty[0]&&(n(29,g=O.getDerivedFromVars(T.title_paddings)),E(),E=Ot(g,(t=>n(52,m=t)))),131072&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(17,ct=cr(m||void 0,ct)),262144&t.$$.dirty[0]&&(L||(n(27,pt=r.map(((t,e)=>e===X))),n(28,ft=r.map(((t,e)=>e===X)))))},[T,M,N,J,L,q,X,Y,Z,et,G,K,nt,rt,it,ot,at,ct,r,_,R,U,W,Q,tt,ut,dt,pt,ft,g,f,p,h,d,u,c,s,a,o,i,k,B,{},vt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)mt(-1,!0);else if(39===t.which)mt(1,!0);else if(36===t.which)gt(0,!0);else{if(35!==t.which)return;gt(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat(Dn));r.length<2||t.touches.length>1||o&&o!==U||(Dt=!1,Pt=!1,At=pr(t),Vt=null,kt=Date.now(),Et=Ct||-X*U.clientWidth,n(26,dt=!1),bt&&clearTimeout(bt))},function(t){const e=pr(t);if(!At||Vt&&Vt.x===e.x&&Vt.y===e.y)return;Vt=e;const n=U.clientWidth;if(Dt){Ct=e.x-At.x+Et;const t=n*r.length;if(Ct>0)Ct=Ct*n/(Ct+3*n);else if(-Ct+n>t){let e=-Ct+n-t;e=e*n/(e+3*n),Ct=n-t-e}$t(100*Ct/n)}else Math.abs(e.y-At.y)>10?Pt=!0:!Pt&&Math.abs(e.x-At.x)>8&&(xt(),Dt=!0,At=e,$t(100*-X),_t(!0));Dt&&t.cancelable&&t.preventDefault()},function(){Pt=!1,At=null;let t=X;if(!Dt)return;Dt=!1;const e=Math.min(512,U.clientWidth);Math.abs(Et-Ct)>e/4*Math.min(1,(Date.now()-kt)/750)&&(t+=Et>Ct?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===X?(Ct=-t*e,$t(100*-t),wt()):gt(t)},z,lt,st,l,m,v,y,$,b,w,x,(t,e)=>vt(0,t),function(t){Te[t?"unshift":"push"]((()=>{R=t,n(20,R)}))},function(t){Te[t?"unshift":"push"]((()=>{W=t,n(22,W)}))},function(t){Te[t?"unshift":"push"]((()=>{U=t,n(21,U)}))}]}const Fo="divkit-eb860",Io="divkit-e08c6";function zo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function To(t){return t*t*t}function Mo(t){const e=t-1;return e*e*e+1}function No(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 Jo=No([.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]),Oo=No([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]),Bo={linear:Dt,ease:Jo,ease_in:To,ease_out:Mo,ease_in_out:zo,spring:Oo};function Ro(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Uo(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(Bo[t.interpolator||"ease_in_out"]||zo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};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||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Wo(t,e,n){return t*(1-n)+e*n}const Lo={linear:Dt,ease:Jo,ease_in:To,ease_out:Mo,ease_in_out:zo,spring:Oo};function qo(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Lo?Lo[l.interpolator]:zo,css:t=>["top:".concat(Wo(o.top,a.top,t)-i.top,"px"),"left:".concat(Wo(o.left,a.left,t)-i.left,"px"),"width:".concat(Wo(o.width,a.width,t),"px"),"height:".concat(Wo(o.height,a.height,t),"px")].join(";")}}function Ho(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ho(t))})):e.push(t),e}const{Map:Go}=on;function Ko(t,e,n){const r=t.slice();return r[27]=e[n],r}function Xo(t){let e,n;return e=new Mr({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[na]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(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]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Yo(t){let e,n,r=t[7],i=Zo(t);return{c(){i.c(),e=de()},l(t){i.l(t),e=de()},m(t,r){i.m(t,r),ie(t,e,r),n=!0},p(t,n){128&n&&Nt(r,r=t[7])?(Ze(),en(i,1,1,jt),Qe(),i=Zo(t),i.c(),tn(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(tn(i),n=!0)},o(t){en(i),n=!1},d(t){t&&oe(e),i.d(t)}}}function Zo(t){let e,n;return e=new Ha({props:{div:t[7].div,templateContext:t[1]}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};128&n&&(r.div=t[7].div),2&n&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Qo(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Ha({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=le("div"),n=le("div"),cn(r.$$.fragment),o=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var i=ge(e);n=ye(i,"DIV",{class:!0});var a=ge(n);un(r.$$.fragment,a),a.forEach(oe),o=be(i),i.forEach(oe),this.h()},h(){pe(n,"class",i=Io),pe(e,"class",a=Fo)},m(t,i){ie(t,e,i),re(e,n),dn(r,n,null),re(e,o),s=!0,c||(u=he(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(tn(r.$$.fragment,n),l||Ue((()=>{l=rn(e,qo,t[27]),l.start()})),s=!0)},o(t){en(r.$$.fragment,t),s=!1},d(t){t&&oe(e),hn(r),c=!1,u()}}}function ta(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Ha({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=le("div"),n=le("div"),cn(r.$$.fragment),o=ue(),this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var i=ge(e);n=ye(i,"DIV",{class:!0});var a=ge(n);un(r.$$.fragment,a),a.forEach(oe),o=be(i),i.forEach(oe),this.h()},h(){pe(n,"class",i=Io),pe(e,"class",a=Fo),xe(e,"left",t[27].offsetLeft+"px"),xe(e,"top",t[27].offsetTop+"px"),xe(e,"width",t[27].width+"px"),xe(e,"height",t[27].height+"px")},m(t,i){ie(t,e,i),re(e,n),dn(r,n,null),re(e,o),s=!0,c||(u=he(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&xe(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&xe(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&xe(e,"width",t[27].width+"px"),(!s||64&i)&&xe(e,"height",t[27].height+"px")},i(n){s||(tn(r.$$.fragment,n),l||Ue((()=>{l=rn(e,Uo,t[27]),l.start()})),s=!0)},o(t){en(r.$$.fragment,t),s=!1},d(t){t&&oe(e),hn(r),c=!1,u()}}}function ea(t,e){let n,r,i,o,a;const l=[ta,Qo],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=de(),i.c(),o=de(),this.h()},l(t){n=de(),i.l(t),o=de(),this.h()},h(){this.first=n},m(t,e){ie(t,n,e),s[r].m(t,e),ie(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Ze(),en(s[a],1,1,(()=>{s[a]=null})),Qe(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),tn(i,1),i.m(o.parentNode,o))},i(t){a||(tn(i),a=!0)},o(t){en(i),a=!1},d(t){t&&oe(n),s[r].d(t),t&&oe(o)}}}function na(t){var e;let n,r,i,o,a=[],l=new Go,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Yo(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=Ko(t,c,e),r=u(n);l.set(r,a[e]=ea(r,n))}return{c(){s&&s.c(),n=ue(),r=le("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=be(t),r=ye(t,"DIV",{class:!0,"aria-hidden":!0});var e=ge(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(oe),this.h()},h(){pe(r,"class",i="divkit-adaae"),pe(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),ie(e,n,i),ie(e,r,i);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e&&tn(s,1)):(s=Yo(t),s.c(),tn(s,1),s.m(n.parentNode,n)):s&&(Ze(),en(s,1,1,(()=>{s=null})),Qe()),320&e&&(c=t[6],Ze(),a=function(t,e,n,r,i,o,a,l,s,c,u,d){let h=t.length,p=o.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(i,o,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){tn(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,p--):v.has(i)?!a.has(r)||$.has(r)?b(e):_.has(i)?h--:y.get(r)>y.get(i)?(_.add(r),b(e)):($.add(i),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,an,ea,null,Ko),Qe())},i(t){if(!o){tn(s);for(let t=0;t<c.length;t+=1)tn(a[t]);o=!0}},o(t){en(s);for(let t=0;t<a.length;t+=1)en(a[t]);o=!1},d(e){s&&s.d(e),e&&oe(n),e&&oe(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function ra(t){let e,n,r=!t[5]&&Xo(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,i),32&i&&tn(r,1)):(r=Xo(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function ia(t){return"change_bounds"===t.type?t:"set"===t.type?ia(t.items[0]):null}function oa(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=Fe(Sn),c=Fe(Yn);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Ho(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(Fn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Re(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,Ro(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:ia(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(Fn(new Error("Missing state block with id"),{additional:{id:t}}))}}),Se(Yn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(Fn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=Ro(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(Fn(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Pe((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(Fn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(Fn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){Te[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const aa={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:la}=on;function sa(t,e,n){const r=t.slice();return r[48]=e[n],r}function ca(t){let e,n;return e=new Mr({props:{cls:Kn("pager",aa,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[da]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Kn("pager",aa,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function ua(t){var e;let n,r,i,o,a;return r=new Ha({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=le("div"),cn(r.$$.fragment),i=ue(),this.h()},l(t){n=ye(t,"DIV",{class:!0});var e=ge(n);un(r.$$.fragment,e),i=be(e),e.forEach(oe),this.h()},h(){pe(n,"class",o=aa.pager__item)},m(t,e){ie(t,n,e),dn(r,n,null),re(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].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||(tn(r.$$.fragment,t),a=!0)},o(t){en(r.$$.fragment,t),a=!1},d(t){t&&oe(n),hn(r)}}}function da(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=ua(sa(t,l,e));const c=t=>en(s[t],1,1,(()=>{s[t]=null}));return{c(){e=le("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=ye(t,"DIV",{class:!0,style:!0});var n=ge(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(oe),this.h()},h(){pe(e,"class",n=aa.pager__items+" "+(t[15]?Dn:"")),pe(e,"style",r=Tn(t[9]))},m(n,r){ie(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),i=!0,o||(a=he(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=sa(t,l,n);s[n]?(s[n].p(r,o),tn(s[n],1)):(s[n]=ua(r),s[n].c(),tn(s[n],1),s[n].m(e,null))}for(Ze(),n=l.length;n<s.length;n+=1)c(n);Qe()}(!i||32768&o[0]&&n!==(n=aa.pager__items+" "+(t[15]?Dn:"")))&&pe(e,"class",n),(!i||512&o[0]&&r!==(r=Tn(t[9])))&&pe(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)tn(s[t]);i=!0}},o(t){s=s.filter(la);for(let t=0;t<s.length;t+=1)en(s[t]);i=!1},d(n){n&&oe(e),ae(s,n),t[36](null),o=!1,a()}}}function ha(t){let e,n,r=!t[7]&&ca(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[7]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),128&n[0]&&tn(r,1)):(r=ca(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function pa(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=jt,b=jt,w=jt,x=jt,k=jt,E=jt;var C,A,V,j,D,P,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:F={}}=e,{templateContext:I}=e,{origJson:z}=e,{layoutParams:T}=e;const M=Fe(Sn),N=M.genId("pager");let J,O=!1,B=!1,R=0,U=0,W=!1,L="horizontal",q="",H="",G="";const K=ao((function(){if(!O)return;const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===L?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:R}();t!==R&&n(25,R=t)}),50);function X(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===L,i=J.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";J.scroll({[a]:i[o],behavior:e}),n(25,R=t)}return F.id&&!(null==T?void 0:T.fakeElement)&&M.registerInstance(F.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');X(t)},setPreviousItem(t){let e=R-1;e<0&&(e="ring"===t?r.length-1:R),X(e)},setNextItem(t){let e=R+1;e>r.length-1&&(e="ring"===t?0:R),X(e)}}),De((()=>{if(O=!0,Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(N,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(N,"-tab-").concat(e))}})),Pe((()=>{O=!1,F.id&&!(null==T?void 0:T.fakeElement)&&M.unregisterInstance(F.id)})),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,z=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=F.items)||void 0===C?void 0:C.length)&&Array.isArray(F.items)?n(24,B=!1):(n(24,B=!0),M.logError(Fn(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!B&&F.items||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=M.getDerivedFromVars(F.layout_mode)),b(),b=Ot(i,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,W=!0),M.logError(Fn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,W=!1):(n(26,W=!0),M.logError(Fn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,o=M.getDerivedFromVars(F.orientation)),k(),k=Ot(o,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,L=Si(y,L)),1&t.$$.dirty[0]&&(n(12,a=M.getDerivedFromVars(F.item_spacing)),x(),x=Ot(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&tr(t)&&n(28,q=Mn(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=M.getDerivedFromVars(F.paddings)),w(),w=Ot(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,H=er(m,H)),1&t.$$.dirty[0]&&(n(10,s=M.getDerivedFromVars(F.restrict_parent_scroll)),E(),E=Ot(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===L?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=Nn("horizontal"===L?((null===n(18,A=F.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=F.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,j=F.paddings)||void 0===j?void 0:j.top)||0)+((null===n(21,D=F.paddings)||void 0===D?void 0:D.bottom)||0)),e=null===n(22,P=g.neighbour_page_width)||void 0===P?void 0:P.value;n(30,G=e?"calc(100% + ".concat(t," - 2 * ").concat(Nn(e)," - 2 * ").concat(q,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,G="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":q,padding:H,[c]:G}),134217728&t.$$.dirty[0]&&n(8,d={orientation:L}),83886080&t.$$.dirty[0]&&n(7,h=B||W),33554448&t.$$.dirty[0]&&function(t,e){const n=F.id;if(n){const o=new Map(f);r=p,f=o.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:X}),i=f,r.set(i)}var r,i}(r.length,R),33554432&t.$$.dirty[0]&&function(t){var e;if(t===U)return;U=t;const n=M.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&M.execAnyActions(n)}(R)},n(6,p=M.getStore("pagers")),_(),_=Ot(p,(t=>n(39,f=t))),[F,I,z,T,r,J,p,h,d,u,s,l,a,o,i,$,K,C,A,V,j,D,P,S,B,R,W,L,q,H,G,c,g,m,v,y,function(t){Te[t?"unshift":"push"]((()=>{J=t,n(5,J)}))}]}const fa={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 ga(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function ma(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=va(ga(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=de()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=de()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);ie(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=ga(t,n,o);r[o]?r[o].p(a,i):(r[o]=va(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){ae(r,t),t&&oe(e)}}}function va(t){let e,n,r,i,o,a,l,s;function c(){return t[36](t[46])}return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=Kn("indicator__item",fa,{active:t[44]})+" "+Cn),pe(e,"role","tab"),pe(e,"id",r=t[12].instId+"-tab-"+t[46]),pe(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),pe(e,"aria-selected",o=t[44]?"true":"false"),pe(e,"tabindex",a=t[44]?0:-1)},m(n,r){ie(n,e,r),l||(s=[he(e,"click",c),he(e,"keydown",t[24])],l=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=Kn("indicator__item",fa,{active:t[44]})+" "+Cn)&&pe(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&pe(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&pe(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&pe(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&pe(e,"tabindex",a)},d(t){t&&oe(e),l=!1,It(s)}}}function ya(t){let e,n,r,i,o=t[12]&&ma(t);return{c(){e=le("div"),n=le("div"),o&&o.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var r=ge(e);n=ye(r,"DIV",{class:!0,role:!0});var i=ge(n);o&&o.l(i),i.forEach(oe),r.forEach(oe),this.h()},h(){pe(n,"class",r=fa.indicator__items),pe(n,"role","tablist"),xe(n,"margin","default"===t[6]?"0 ".concat(Mn(Math.max(0,t[4].width-t[5].width)/2)):"",!1),xe(n,"--divkit-indicator-inactive-width",Mn(t[5].width),!1),xe(n,"--divkit-indicator-inactive-height",Mn(t[5].height),!1),xe(n,"--divkit-indicator-inactive-border-radius",Mn(t[5].borderRadius),!1),xe(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),xe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),xe(n,"--divkit-indicator-active-width",Mn(t[4].width),!1),xe(n,"--divkit-indicator-active-height",Mn(t[4].height),!1),xe(n,"--divkit-indicator-active-border-radius",Mn(t[4].borderRadius),!1),xe(n,"--divkit-indicator-active-background",t[4].background||"",!1),xe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),xe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),xe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Mn((t[7]-t[5].width)/2)):"",!1),xe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Mn(t[9]):"",!1),xe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),xe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Mn((t[8]-1)*t[9]):"",!1),pe(e,"class",i=fa.indicator__scroller)},m(r,i){ie(r,e,i),re(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=ma(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&xe(n,"margin","default"===t[6]?"0 ".concat(Mn(Math.max(0,t[4].width-t[5].width)/2)):"",!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-width",Mn(t[5].width),!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-height",Mn(t[5].height),!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-border-radius",Mn(t[5].borderRadius),!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),32&e[0]&&xe(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),16&e[0]&&xe(n,"--divkit-indicator-active-width",Mn(t[4].width),!1),16&e[0]&&xe(n,"--divkit-indicator-active-height",Mn(t[4].height),!1),16&e[0]&&xe(n,"--divkit-indicator-active-border-radius",Mn(t[4].borderRadius),!1),16&e[0]&&xe(n,"--divkit-indicator-active-background",t[4].background||"",!1),16&e[0]&&xe(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),48&e[0]&&xe(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),224&e[0]&&xe(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(Mn((t[7]-t[5].width)/2)):"",!1),576&e[0]&&xe(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?Mn(t[9]):"",!1),320&e[0]&&xe(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),832&e[0]&&xe(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?Mn((t[8]-1)*t[9]):"",!1)},d(n){n&&oe(e),o&&o.d(),t[37](null),t[38](null)}}}function $a(t){let e,n;return e=new Mr({props:{cls:Kn("indicator",fa,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ya]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Kn("indicator",fa,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function _a(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w=jt,x=jt,k=jt,E=jt,C=jt,V=jt,j=jt,D=jt,P=jt;var S,F;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P()));let{json:I={}}=e,{templateContext:z}=e,{origJson:T}=e,{layoutParams:M}=e;const N=["rounded_rectangle","circle"],J=Fe(Sn);let O,B,R,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},L="default",q=15,H=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function X(t){R.scrollToPagerItem(t),await Re();const e=B.querySelector(".".concat(fa.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,z=t.templateContext),"origJson"in t&&n(2,T=t.origJson),"layoutParams"in t&&n(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=J.getDerivedFromVars(I.shape)),V(),V=Ot(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=J.getDerivedFromVars(I.active_item_color)),E(),E=Ot(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=J.getDerivedFromVars(I.inactive_item_color)),C(),C=Ot(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=J.getDerivedFromVars(I.active_item_size)),j(),j=Ot(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,l=J.getDerivedFromVars(I.active_shape)),P(),P=Ot(l,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,s=J.getDerivedFromVars(I.inactive_shape)),D(),D=Ot(s,(t=>n(34,_=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,U=ci({type:"shape_drawable",shape:b},N,U)),_&&n(5,W=ci({type:"shape_drawable",shape:_},N,W)),!b&&!_&&y)){const t=Jr($,1.3);n(5,W=ci({type:"shape_drawable",shape:y,color:W.background},N,W)),n(5,W.background=A(v,1,W.background),W),n(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),n(4,U.background=A(m,1,U.background),U)}if(1&t.$$.dirty[0]&&(n(16,c=J.getDerivedFromVars(I.space_between_centers)),x(),x=Ot(c,(t=>n(28,f=t)))),1&t.$$.dirty[0]&&(n(15,u=J.getDerivedFromVars(I.items_placement)),k(),k=Ot(u,(t=>n(29,g=t)))),905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,L="default"),f&&n(7,q=nr(f.value,q));else if(n(6,L=g.type),"default"===L)n(7,q=nr(null===n(25,S=g.space_between_centers)||void 0===S?void 0:S.value,q));else if("stretch"===L){const t=g;n(8,H=Jr(t.max_visible_items,H)),n(9,G=nr(null===n(26,F=t.item_spacing)||void 0===F?void 0:F.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(n(12,R=t.get(I.pager_id)),await Re(),B)){const t=B.children[R.currentItem].offsetLeft;O.scroll({left:t-O.clientWidth/2,behavior:"smooth"})}}(p),64&t.$$.dirty[0]&&n(13,h={placement:L})},n(14,d=J.getStore("pagers")),w(),w=Ot(d,(t=>n(27,p=t))),[I,z,T,M,U,W,L,q,H,G,O,B,R,h,d,u,c,s,l,a,o,i,r,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(37===t.which)X(n-1<0?n:n-1);else if(39===t.which)X(n+1>=e?n:n+1);else if(36===t.which)X(0);else{if(35!==t.which)return;X(e-1)}t.preventDefault()},S,F,p,f,g,m,v,y,$,_,b,t=>K(t),function(t){Te[t?"unshift":"push"]((()=>{B=t,n(11,B)}))},function(t){Te[t?"unshift":"push"]((()=>{O=t,n(10,O)}))}]}const ba={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 wa(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&A(t.text_color)||"#000",i=Or(t.font_weight);if(br(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:Mn(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 xa(t,e,n){return Math.max(e,Math.min(n,t))}function ka(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ea(t,e,n){const r=t.slice();return r[78]=e[n],r}function Ca(t){let e,n;return e=new Mr({props:{cls:Kn("slider",ba,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Pa]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=Kn("slider",ba,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Aa(t){let e,n;return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=ba.slider__tick+" "+ba.slider__tick_active),xe(e,"--divkit-slider-tick",t[78],!1)},m(t,n){ie(t,e,n)},p(t,n){131072&n[0]&&xe(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&oe(e)}}}function Va(t){let e,n;return{c(){e=le("div"),this.h()},l(t){e=ye(t,"DIV",{class:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=ba.slider__tick+" "+ba.slider__tick_inactive),xe(e,"--divkit-slider-tick",t[78],!1)},m(t,n){ie(t,e,n)},p(t,n){262144&n[0]&&xe(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&oe(e)}}}function ja(t){let e,n,r,i,o;return{c(){e=le("div"),n=le("div"),r=ce(t[6]),this.h()},l(i){e=ye(i,"DIV",{class:!0});var o=ge(e);n=ye(o,"DIV",{class:!0});var a=ge(n);r=_e(a,t[6]),a.forEach(oe),o.forEach(oe),this.h()},h(){var r,a,l;pe(n,"class",i=ba["slider__thumb-text-inner"]),xe(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),xe(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),xe(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),pe(e,"class",o=ba["slider__thumb-text"])},m(t,i){ie(t,e,i),re(e,n),re(n,r)},p(t,e){var i,o,a;64&e[0]&&we(r,t[6]),4096&e[0]&&xe(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em",!1),4096&e[0]&&xe(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||"",!1),4096&e[0]&&xe(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&oe(e)}}}function Da(t){let e,n,r,i,o;return{c(){e=le("div"),n=le("div"),r=ce(t[7]),this.h()},l(i){e=ye(i,"DIV",{class:!0});var o=ge(e);n=ye(o,"DIV",{class:!0});var a=ge(n);r=_e(a,t[7]),a.forEach(oe),o.forEach(oe),this.h()},h(){var r,a,l;pe(n,"class",i=ba["slider__thumb-text-inner"]),xe(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),xe(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),xe(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),pe(e,"class",o=ba["slider__thumb-text"]+" "+ba["slider__thumb-text_secondary"])},m(t,i){ie(t,e,i),re(e,n),re(n,r)},p(t,e){var i,o,a;128&e[0]&&we(r,t[7]),8192&e[0]&&xe(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em",!1),8192&e[0]&&xe(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||"",!1),8192&e[0]&&xe(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&oe(e)}}}function Pa(t){let e,n,r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=Aa(Ea(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=Va(ka(t,E,e));let A=t[12]&&ja(t),V=t[37]&&function(t){let e,n,r=t[13]&&Da(t);return{c(){e=le("div"),r&&r.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var n=ge(e);r&&r.l(n),n.forEach(oe),this.h()},h(){pe(e,"class",n=ba.slider__thumb+" "+ba.slider__thumb_secondary),xe(e,"border-radius",Mn(t[9].borderRadius),!1),xe(e,"background",t[9].background,!1),xe(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){ie(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=Da(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&xe(e,"border-radius",Mn(t[9].borderRadius),!1),512&n[0]&&xe(e,"background",t[9].background,!1),512&n[0]&&xe(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&oe(e),r&&r.d()}}}(t),j=t[37]&&function(t){let e,n,r,i,o;return{c(){e=le("input"),this.h()},l(t){e=ye(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){pe(e,"type","range"),pe(e,"class",n=t[16]?ba.slider__input:"".concat(ba.slider__input," ").concat(ba.slider__input_secondary)),pe(e,"min",t[4]),pe(e,"max",t[5]),pe(e,"step","1"),e.value=r=t[16]?t[6]:t[7],pe(e,"aria-label",t[20])},m(n,r){ie(n,e,r),i||(o=[he(e,"input",t[68]),he(e,"mousedown",t[37]?t[40]:null),he(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?ba.slider__input:"".concat(ba.slider__input," ").concat(ba.slider__input_secondary))&&pe(e,"class",n),16&i[0]&&pe(e,"min",t[4]),32&i[0]&&pe(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&pe(e,"aria-label",t[20])},d(t){t&&oe(e),i=!1,It(o)}}}(t);return{c(){e=le("div"),n=le("div"),r=le("div"),o=ue(),a=le("div"),s=ue();for(let t=0;t<k.length;t+=1)k[t].c();c=ue();for(let t=0;t<C.length;t+=1)C[t].c();u=ue(),d=le("div"),A&&A.c(),p=ue(),V&&V.c(),f=ue(),g=le("input"),y=ue(),j&&j.c(),this.h()},l(t){e=ye(t,"DIV",{class:!0});var i=ge(e);n=ye(i,"DIV",{class:!0});var l=ge(n);r=ye(l,"DIV",{class:!0}),ge(r).forEach(oe),o=be(l),a=ye(l,"DIV",{class:!0}),ge(a).forEach(oe),s=be(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=be(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=be(l),d=ye(l,"DIV",{class:!0});var h=ge(d);A&&A.l(h),h.forEach(oe),p=be(l),V&&V.l(l),f=be(l),g=ye(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=be(l),j&&j.l(l),l.forEach(oe),i.forEach(oe),this.h()},h(){pe(r,"class",i=ba.slider__track),xe(r,"height",Mn(t[10].height),!1),xe(r,"border-radius",Mn(t[10].borderRadius),!1),xe(r,"background",t[10].background,!1),xe(r,"box-shadow",t[10].boxShadow||"",!1),pe(a,"class",l=ba["slider__active-track"]),xe(a,"left",(100*t[23]).toFixed(2)+"%",!1),xe(a,"width",(100*t[24]).toFixed(2)+"%",!1),xe(a,"height",Mn(t[11].height),!1),xe(a,"border-radius",Mn(t[11].borderRadius),!1),xe(a,"background",t[11].background,!1),xe(a,"box-shadow",t[11].boxShadow||"",!1),pe(d,"class",h=ba.slider__thumb),xe(d,"border-radius",Mn(t[8].borderRadius),!1),xe(d,"background",t[8].background,!1),xe(d,"box-shadow",t[8].boxShadow||"",!1),pe(g,"type","range"),pe(g,"class",m=t[16]?"".concat(ba.slider__input," ").concat(ba.slider__input_secondary):ba.slider__input),pe(g,"min",t[4]),pe(g,"max",t[5]),pe(g,"step","1"),g.value=v=t[16]?t[7]:t[6],pe(g,"aria-label",t[19]),pe(n,"class",$=ba["slider__tracks-inner"]),pe(e,"class",_=ba["slider__tracks-wrapper"])},m(i,l){ie(i,e,l),re(e,n),re(n,r),re(n,o),re(n,a),re(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);re(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);re(n,u),re(n,d),A&&A.m(d,null),re(n,p),V&&V.m(n,null),re(n,f),re(n,g),re(n,y),j&&j.m(n,null),t[69](n),b||(w=he(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&xe(r,"height",Mn(t[10].height),!1),1024&e[0]&&xe(r,"border-radius",Mn(t[10].borderRadius),!1),1024&e[0]&&xe(r,"background",t[10].background,!1),1024&e[0]&&xe(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&xe(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&xe(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&xe(a,"height",Mn(t[11].height),!1),2048&e[0]&&xe(a,"border-radius",Mn(t[11].borderRadius),!1),2048&e[0]&&xe(a,"background",t[11].background,!1),2048&e[0]&&xe(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const i=Ea(t,x,r);k[r]?k[r].p(i,e):(k[r]=Aa(i),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const i=ka(t,E,r);C[r]?C[r].p(i,e):(C[r]=Va(i),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=ja(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&xe(d,"border-radius",Mn(t[8].borderRadius),!1),256&e[0]&&xe(d,"background",t[8].background,!1),256&e[0]&&xe(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(ba.slider__input," ").concat(ba.slider__input_secondary):ba.slider__input)&&pe(g,"class",m),16&e[0]&&pe(g,"min",t[4]),32&e[0]&&pe(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&pe(g,"aria-label",t[19]),t[37]&&j.p(t,e)},d(n){n&&oe(e),ae(k,n),ae(C,n),A&&A.d(),V&&V.d(),j&&j.d(),t[69](null),b=!1,w()}}}function Sa(t){let e,n,r,i,o=!t[14]&&Ca(t);return{c(){o&&o.c(),e=de()},l(t){o&&o.l(t),e=de()},m(a,l){o&&o.m(a,l),ie(a,e,l),n=!0,r||(i=he(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(Ze(),en(o,1,1,(()=>{o=null})),Qe()):o?(o.p(t,n),16384&n[0]&&tn(o,1)):(o=Ca(t),o.c(),tn(o,1),o.m(e.parentNode,e))},i(t){n||(tn(o),n=!0)},o(t){en(o),n=!1},d(t){o&&o.d(t),t&&oe(e),r=!1,i()}}}function Fa(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 Ia(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,F,I,z,T,M=jt,N=jt,J=jt,O=jt,B=jt,R=jt,U=jt,W=jt,L=jt,q=jt,H=jt,G=jt;var K,X,Y,Z;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},it=["rounded_rectangle","circle"],ot=["rounded_rectangle"],at=Fe(Sn),lt=Fe(hr);let st,ct=!1,ut=0,dt=100;const ht=at.getJsonWithVars(Q.thumb_value_variable),pt=at.getJsonWithVars(Q.thumb_secondary_value_variable);let ft=ht&&at.getVariable(ht,"integer")||_n("temp","integer",0);Bt(t,ft,(t=>n(64,I=t)));let gt=pt&&at.getVariable(pt,"integer")||_n("temp","integer",0);Bt(t,gt,(t=>n(63,F=t)));let mt,vt,yt,$t=xa(I||0,ut,dt),_t=xa(F||0,ut,dt),bt=rt,wt=bt,xt=rt,kt=rt,Et=null,Ct=null,At=yt,Vt="",Dt="",Pt=!1;function St(t,e){const r=Number(t.target.value);ct===("first"===e)?(n(7,_t=r),gt.setValue(r)):(n(6,$t=r),ft.setValue(r))}let Ft=!1;function It(){if(!st)return;const t=dt-ut,e=(null==Et?void 0:Et.width)||0,n=(null==Ct?void 0:Ct.width)||0;Math.max(e,n)*t>=(null==st?void 0:st.clientWidth)?Ft||(at.logError(Fn(new Error("Slider ticks overlap each other"),{level:"warn"})),Ft=!0):Ft=!1}const zt=ao(It,50);return De((()=>{It()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=Ot(r,(t=>n(66,T=t)))),1&t.$$.dirty[0]&&(n(35,i=at.getDerivedFromVars(Q.max_value)),H(),H=Ot(i,(t=>n(65,z=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,ut=lr(T,ut)),n(5,dt=lr(z,dt)),It()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=xa(I||0,ut,dt);t!==$t&&n(6,$t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=xa(F||0,ut,dt);t!==_t&&n(7,_t=t)}if(1&t.$$.dirty[0]&&(n(34,o=at.getDerivedFromVars(Q.thumb_style)),q(),q=Ot(o,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,bt=ci(S,it,bt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),L(),L=Ot(a,(t=>n(61,P=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,wt=ci(P,it,bt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),W(),W=Ot(l,(t=>n(60,D=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,xt=ci(D,ot,xt)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),U(),U=Ot(s,(t=>n(59,j=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,kt=ci(j,ot,kt)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=Ot(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=ci(V,it,rt);t!==rt&&n(47,Et=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(Et?(n(17,mt=pt?Fa(Math.min($t,_t),Math.max($t,_t)+1,ut,dt,!0):Fa(ut,$t,ut,dt,!0)),It()):n(17,mt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=Ot(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=ci(A,it,rt);t!==rt&&n(48,Ct=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(Ct?(n(18,vt=pt?Fa(Math.min($t,_t),Math.max($t,_t)+1,ut,dt,!1):Fa($t+1,dt+1,ut,dt,!0)),It()):n(18,vt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),O(),O=Ot(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,yt=wa(C,yt)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),J(),J=Ot(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,At=wa(E,yt)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),N(),N=Ot(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Vt=k.description):at.logError(Fn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),M(),M=Ot(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,Dt=x.description):pt&&at.logError(Fn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(Fn(new Error('Cannot show "slider" inside component with action'))),t=!0):bt===rt?(at.logError(Fn(new Error('Missing "thumb_style" in slider'))),t=!0):kt===rt?(at.logError(Fn(new Error('Missing "track_active_style" in slider'))),t=!0):xt===rt&&(at.logError(Fn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Pt&&n(14,Pt=t)}768&t.$$.dirty[0]&&n(52,g=Mn(Math.max(...[bt.width,wt.width,0].filter(tr)))),768&t.$$.dirty[0]&&n(51,m=Mn(Math.max(...[bt.height,wt.height,0].filter(tr)))),112&t.$$.dirty[0]&&n(50,v=($t-ut)/(dt-ut)),176&t.$$.dirty[0]&&n(49,y=pt?(_t-ut)/(dt-ut):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":Mn(bt.width),"--divkit-slider-thumb-height":Mn(bt.height),"--divkit-slider-thumb-secondary-width":Mn(wt.width),"--divkit-slider-thumb-secondary-height":Mn(wt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==yt?void 0:yt.offset)||void 0===K?void 0:K.x)?Nn(yt.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==yt?void 0:yt.offset)||void 0===X?void 0:X.y)?Nn(yt.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==At?void 0:At.offset)||void 0===Y?void 0:Y.x)?Nn(At.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==At?void 0:At.offset)||void 0===Z?void 0:Z.y)?Nn(At.offset.y):void 0,"--divkit-slider-tick-active-width":Et?Mn(Et.width):void 0,"--divkit-slider-tick-active-height":Et?Mn(Et.height):void 0,"--divkit-slider-tick-active-border-radius":Et?Mn(Et.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Et?void 0:Et.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Et?void 0:Et.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Ct?Mn(Ct.width):void 0,"--divkit-slider-tick-inactive-height":Ct?Mn(Ct.height):void 0,"--divkit-slider-tick-inactive-border-radius":Ct?Mn(Ct.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Ct?void 0:Ct.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Ct?void 0:Ct.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,ut,dt,$t,_t,bt,wt,xt,kt,yt,At,Pt,st,ct,mt,vt,Vt,Dt,w,b,_,$,f,p,h,d,u,c,s,l,a,o,i,r,pt,ft,gt,function(t){var e,r;const i="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===i)return;const o=st.getBoundingClientRect(),a=(i-o.left)/o.width,l=(dt-ut)*a,s=Math.round(xa(l,ut,dt));n(16,ct=s<($t+_t)/2==$t<_t)},St,zt,K,X,Y,Z,Et,Ct,y,v,m,g,x,k,E,C,A,V,j,D,P,S,F,I,z,T,t=>St(t,"first"),t=>St(t,"second"),function(t){Te[t?"unshift":"push"]((()=>{st=t,n(15,st)}))}]}const za={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function Ta(t){let e,n;return e=new Mr({props:{cls:Kn("input",za,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Oa]},$$scope:{ctx:t}}}),{c(){cn(e.$$.fragment)},l(t){un(e.$$.fragment,t)},m(t,r){dn(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Kn("input",za,t[12])),2048&n[0]&&(r.style=t[11]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),100208&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(tn(e.$$.fragment,t),n=!0)},o(t){en(e.$$.fragment,t),n=!1},d(t){hn(e,t)}}}function Ma(t){let e;return{c(){e=ce("​")},l(t){e=_e(t,"​")},m(t,n){ie(t,e,n)},d(t){t&&oe(e)}}}function Na(t){let e,n,r,i;return{c(){e=le("input"),this.h()},l(t){e=ye(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){pe(e,"type",t[9]),pe(e,"class",n=za.input__input),pe(e,"autocomplete","off"),pe(e,"autocapitalize","off"),pe(e,"aria-label",t[10]),pe(e,"placeholder",t[15]),e.value=t[8]},m(n,o){ie(n,e,o),t[57](e),r||(i=[he(e,"input",t[29]),he(e,"mousedown",(function(){zt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),he(e,"click",(function(){zt(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,512&r[0]&&pe(e,"type",t[9]),1024&r[0]&&pe(e,"aria-label",t[10]),32768&r[0]&&pe(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&oe(e),t[57](null),r=!1,It(i)}}}function Ja(t){let e,n,r,i;return{c(){e=le("textarea"),this.h()},l(t){e=ye(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"class",n=za.input__input),pe(e,"autocomplete","off"),pe(e,"autocapitalize","off"),pe(e,"aria-label",t[10]),pe(e,"placeholder",t[15]),e.value=t[8]},m(n,o){ie(n,e,o),t[56](e),r||(i=[he(e,"input",t[29]),he(e,"mousedown",(function(){zt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),he(e,"click",(function(){zt(t[16]?t[31]:void 0)&&(t[16]?t[31]:void 0).apply(this,arguments)}))],r=!0)},p(n,r){t=n,1024&r[0]&&pe(e,"aria-label",t[10]),32768&r[0]&&pe(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&oe(e),t[56](null),r=!1,It(i)}}}function Oa(t){let e,n,r,i,o,a,l=t[8].endsWith("\n")||!t[8],s=l&&Ma();function c(t,e){return t[4]?Ja:Na}let u=c(t),d=u(t);return{c(){e=le("span"),n=le("span"),r=ce(t[8]),s&&s.c(),o=ue(),d.c(),this.h()},l(i){e=ye(i,"SPAN",{class:!0});var a=ge(e);n=ye(a,"SPAN",{class:!0,"aria-hidden":!0});var l=ge(n);r=_e(l,t[8]),s&&s.l(l),l.forEach(oe),o=be(a),d.l(a),a.forEach(oe),this.h()},h(){pe(n,"class",i=za.input__holder),pe(n,"aria-hidden","true"),pe(e,"class",a=za.input__wrapper)},m(i,a){ie(i,e,a),re(e,n),re(n,r),s&&s.m(n,null),t[55](n),re(e,o),d.m(e,null)},p(t,i){256&i[0]&&we(r,t[8]),256&i[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Ma(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,i):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&oe(e),s&&s.d(),t[55](null),d.d()}}}function Ba(t){let e,n,r=!t[7]&&Ta(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){t[7]?r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe()):r?(r.p(t,n),128&n[0]&&tn(r,1)):(r=Ta(t),r.c(),tn(r,1),r.m(e.parentNode,e))},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function Ra(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=jt,k=jt;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k()));let{json:E={}}=e,{templateContext:C}=e,{origJson:V}=e,{layoutParams:j}=e;const D=Fe(Sn);let P,S,F=!1,I=!1;const z=D.getJsonWithVars(E.text_variable);let T=!1;z||(T=!0,D.logError(Fn(new Error('Missing "text_variable" in "input"'))));let M=z&&D.getVariable(z,"string")||_n("temp","string","");Bt(t,M,(t=>n(54,b=t)));let N="";const J=D.getDerivedFromVars(E.hint_text);Bt(t,J,(t=>n(53,_=t)));const O=D.getDerivedFromVars(E.hint_color);Bt(t,O,(t=>n(52,$=t)));let B="";const R=D.getDerivedFromVars(E.font_size);Bt(t,R,(t=>n(51,y=t)));let U=12;const W=D.getDerivedFromVars(E.font_weight);let L;Bt(t,W,(t=>n(50,v=t)));const q=D.getDerivedFromVars(E.line_height);let H;Bt(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(E.letter_spacing);Bt(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(E.text_color);Bt(t,X,(t=>n(47,f=t)));let Y="#000";const Z=D.getDerivedFromVars(E.highlight_color);Bt(t,Z,(t=>n(46,p=t)));let Q="";const tt=D.getDerivedFromVars(E.keyboard_type);Bt(t,tt,(t=>n(45,h=t)));const et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let nt="multi_line_text",rt="text";const it=D.getDerivedFromVars(E.max_visible_lines);Bt(t,it,(t=>n(44,d=t)));let ot="",at="";const lt=D.getDerivedFromVars(E.select_all_on_focus);function st(){n(32,I=S.scrollHeight>S.offsetHeight)}return Bt(t,lt,(t=>n(16,w=t))),De((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,E=t.json),"templateContext"in t&&n(1,C=t.templateContext),"origJson"in t&&n(2,V=t.origJson),"layoutParams"in t&&n(3,j=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,N=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=A($,1,B)),1048584&t.$$.dirty[1]&&n(34,U=Jr(y,U)),524304&t.$$.dirty[1]&&n(35,L=Br(v,L)),262152&t.$$.dirty[1]){const t=m;br(t)&&n(36,H=t/U)}131080&t.$$.dirty[1]&&Qn(g)&&n(37,K=Mn(g/U*10)),65664&t.$$.dirty[1]&&n(38,Y=A(f,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=A(p,1,Q)),16384&t.$$.dirty[1]&&h&&h in et&&(n(9,rt=et[h]),n(40,nt=h)),512&t.$$.dirty[1]&&n(4,i="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,o=D.getDerivedFromVars(E.paddings)),k(),k=Ot(o,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&br(d)&&n(41,ot="calc(".concat(d*(H||1.25)+"em"," + ").concat(Nn(nr(null==u?void 0:u.top,0)+nr(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(E.accessibility)),x(),x=Ot(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(Fn(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&n(12,l={"highlight-color":Boolean(Q),"vertical-overflow":I,multiline:i}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":Mn(U),"font-weight":L,"line-height":H,"letter-spacing":K,color:Y,"max-height":ot})},[E,C,V,j,i,P,S,T,N,rt,at,s,l,a,o,r,w,M,J,O,R,W,q,G,X,Z,tt,it,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){F=!1,setTimeout((()=>{F=!0}),250)},function(){F||P.select()},I,B,U,L,H,K,Y,Q,nt,ot,c,u,d,h,p,f,g,m,v,y,$,_,b,function(t){Te[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){Te[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){Te[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const Ua={text:class extends fn{constructor(t){super(),pn(this,t,li,ai,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},container:class extends fn{constructor(t){super(),pn(this,t,Di,ji,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends fn{constructor(t){super(),pn(this,t,Ti,zi,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Hi,gif:Hi,grid:class extends fn{constructor(t){super(),pn(this,t,ro,no,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends fn{constructor(t){super(),pn(this,t,$o,yo,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends fn{constructor(t){super(),pn(this,t,So,Po,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends fn{constructor(t){super(),pn(this,t,oa,ra,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends fn{constructor(t){super(),pn(this,t,pa,ha,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends fn{constructor(t){super(),pn(this,t,_a,$a,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends fn{constructor(t){super(),pn(this,t,Ia,Sa,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends fn{constructor(t){super(),pn(this,t,Ra,Ba,Nt,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Wa(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=new i(o(t))),{c(){e&&cn(e.$$.fragment),n=de()},l(t){e&&un(e.$$.fragment,t),n=de()},m(t,i){e&&dn(e,t,i),ie(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),i!==(i=t[5])){if(e){Ze();const t=e;en(t.$$.fragment,1,0,(()=>{hn(t,1)})),Qe()}i?(e=new i(o(t)),cn(e.$$.fragment),tn(e.$$.fragment,1),dn(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&tn(e.$$.fragment,t),r=!0)},o(t){e&&en(e.$$.fragment,t),r=!1},d(t){t&&oe(n),e&&hn(e,t)}}}function La(t){let e,n,r=t[5]&&Wa(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&tn(r,1)):(r=Wa(t),r.c(),tn(r,1),r.m(e.parentNode,e)):r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe())},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function qa(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=Fe(Sn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&Ua[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&Ua[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(Fn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}const Ha=class extends fn{constructor(t){super(),pn(this,t,qa,La,Nt,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Ga(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 Ka(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=Qa(Ga(t,i,e));return{c(){e=se("svg"),n=se("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=$e(t,"svg",{class:!0,"aria-hidden":!0});var r=ge(e);n=$e(r,"defs",{});var i=ge(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(oe),r.forEach(oe),this.h()},h(){pe(e,"class",r="divkit-dc22b"),pe(e,"aria-hidden","true")},m(t,r){ie(t,e,r),re(e,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=Ga(t,i,r);o[r]?o[r].p(a,e):(o[r]=Qa(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&&oe(e),ae(o,t)}}}function Xa(t){let e,n;return{c(){e=se("feBlend"),this.h()},l(t){e=$e(t,"feBlend",{in2:!0,mode:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"in2","SourceGraphic"),pe(e,"mode",n=t[3])},m(t,n){ie(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&pe(e,"mode",n)},d(t){t&&oe(e)}}}function Ya(t){let e;return{c(){e=se("feComposite"),this.h()},l(t){e=$e(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"in2","SourceGraphic"),pe(e,"operator","arithmetic"),pe(e,"k1","1"),pe(e,"k2","0"),pe(e,"k3","0"),pe(e,"k4","0")},m(t,n){ie(t,e,n)},p:jt,d(t){t&&oe(e)}}}function Za(t){let e,n;return{c(){e=se("feComposite"),this.h()},l(t){e=$e(t,"feComposite",{in2:!0,operator:!0}),ge(e).forEach(oe),this.h()},h(){pe(e,"in2","SourceGraphic"),pe(e,"operator",n=t[3].split("_")[1])},m(t,n){ie(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&pe(e,"operator",n)},d(t){t&&oe(e)}}}function Qa(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Za:"multiply"===t[3]?Ya:Xa}let a=o(t),l=a(t);return{c(){e=se("filter"),n=se("feFlood"),l.c(),this.h()},l(t){e=$e(t,"filter",{id:!0});var r=ge(e);n=$e(r,"feFlood",{"flood-color":!0}),ge(n).forEach(oe),l.l(r),r.forEach(oe),this.h()},h(){pe(n,"flood-color",r=t[2]),pe(e,"id",i=t[0][t[1]])},m(t,r){ie(t,e,r),re(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&pe(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&pe(e,"id",i)},d(t){t&&oe(e),l.d()}}}function tl(t){let e,n=Object.keys(t[0]).length,r=n&&Ka(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,n){r&&r.m(t,n),ie(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=Ka(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:jt,o:jt,d(t){r&&r.d(t),t&&oe(e)}}}function el(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const nl=class extends fn{constructor(t){super(),pn(this,t,el,tl,Nt,{svgFiltersMap:0})}};function rl(t,e,n,r){const i=n[t.type];if(!i)return r(Fn(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function il(){}function ol(t){return{subscribe:e=>(e(t),il)}}class al{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return E(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=kn(t,this.ast);if("error"===n.type)return void e(Fn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;if(r instanceof Date)return P(r);if("boolean"===n.type)return Boolean(r);if("color"===n.type){const t=j(String(r));if(t)return B(t);e(Fn(new Error("Expression execution error")))}return r}catch(t){return void e(Fn(new Error("Expression execution error")))}}}function ll(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=_(t,{startRule:"JsonStringContents"}),r=N(n);return e.vars.push(...r),new al(n)}catch(e){return void n(Fn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>ll(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=ll(t[i],e,n);return r}}var r;return t}function sl(t,e,n){if(t){if(t instanceof al)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>sl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=sl(t[i],e,n);return r}}return t}function cl(t,e){const n={vars:[],hasExpression:!1},r=ll(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>sl(r,t,e)}}const ul={pagers:function(){return mn(new Map)}},dl=new Map,hl=new Map;function pl(t){const e=dl.get(t)||mn("");return dl.has(t)||dl.set(t,e),e}function fl(t){const e=hl.get(t)||new Map;return hl.has(t)||hl.set(t,e),e}class gl{setVariable(t){const e=t.getName(),n=fl(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),pl(this).set(e)}getVariable(t){return fl(this).get(t)}}function ml(){return new gl}function vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const yl=new Set(["start","stop","pause","resume","cancel","reset"]);class $l{constructor(t){vl(this,"timers",new Map),vl(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(Fn(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(Fn(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&yl.has(e)))return void this.logError(Fn(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(Fn(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(Fn(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(Fn(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(Fn(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(Fn(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(Fn(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(Fn(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(Fn(new Error("The timer is already running"))):this.logError(Fn(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 _l(t){let e,n,r,i,o,a,l,s;return n=new nl({props:{svgFiltersMap:t[2]}}),i=new Ha({props:{div:t[6],templateContext:t[5]}}),{c(){e=le("div"),cn(n.$$.fragment),r=ue(),cn(i.$$.fragment),this.h()},l(t){e=ye(t,"DIV",{class:!0});var o=ge(e);un(n.$$.fragment,o),r=be(o),un(i.$$.fragment,o),o.forEach(oe),this.h()},h(){pe(e,"class",o=""+(En+(t[3]?" ".concat(jn):"")+(t[0]?" ".concat(t[0]):"")))},m(t,o){ie(t,e,o),dn(n,e,null),re(e,r),dn(i,e,null),a=!0,l||(s=he(e,"touchstart",wl,{passive:!0}),l=!0)},p(t,r){const i={};4&r[0]&&(i.svgFiltersMap=t[2]),n.$set(i),(!a||9&r[0]&&o!==(o=""+(En+(t[3]?" ".concat(jn):"")+(t[0]?" ".concat(t[0]):""))))&&pe(e,"class",o)},i(t){a||(tn(n.$$.fragment,t),tn(i.$$.fragment,t),a=!0)},o(t){en(n.$$.fragment,t),en(i.$$.fragment,t),a=!1},d(t){t&&oe(e),hn(n),hn(i),l=!1,s()}}}function bl(t){let e,n,r=!t[1]&&t[6]&&_l(t);return{c(){r&&r.c(),e=de()},l(t){r&&r.l(t),e=de()},m(t,i){r&&r.m(t,i),ie(t,e,i),n=!0},p(t,n){!t[1]&&t[6]?r?(r.p(t,n),2&n[0]&&tn(r,1)):(r=_l(t),r.c(),tn(r,1),r.m(e.parentNode,e)):r&&(Ze(),en(r,1,1,(()=>{r=null})),Qe())},i(t){n||(tn(r),n=!0)},o(t){en(r),n=!1},d(t){r&&r.d(t),t&&oe(e)}}}function wl(){}function xl(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new gl}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{onError:m}=e,{onStat:v}=e,{onCustomAction:y}=e,{onComponent:$}=e,b=mn("desktop"===u);if(Bt(t,b,(t=>n(3,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");b.set(!t.matches),t.addListener((()=>{b.set(!t.matches)}))}let w="light",x=null;function k(){"system"===d&&x&&n(23,w=x.matches?"dark":"light")}const E=new Set(g);let C=!1;c||(C=!0,M(Fn(new Error('"json" prop is required')))),s||(C=!0,M(Fn(new Error('"id" prop is required'))));let A=function(t){if(!t)return Fn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return Fn(new Error("Missing card"));if(!e.states||!e.states.length)return Fn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ua)return Fn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return Fn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return Fn(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const V=c.templates||{};A&&(C=!0,M(A));const j={stateChange:!1},D=pl(h),P=fl(h),S=new Map,F=new Map,I=new Map;let z=null;function T(t){const e=cl(t,M);return e.vars.length?e.applyVars(F):t}function M(t){m?m({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){v&&v({type:t,action:e})}let O=0;function B(t){return"".concat(s,"-").concat(O++)}let R={},U={};function W(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,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}}(r.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=G(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.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=G(t);n&&n.setPreviousItem(e)}(r.get("id"),r.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=G(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=F.get(n);t?t.set(i):M(Fn(new Error("Cannot find variable"),{additional:{name:n}}))}else M(Fn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");z?z.execTimerAction(a,o):M(Fn(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;default:M(Fn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){M(Fn(t,{additional:{url:e}}))}}async function L(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=qn(i);if(t)if(Hn(t,E)){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?(W(r),await Re()):r.log_id&&(q(r),await Re())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==y||y(t)}const H=new Map;function G(t){if(H.has(t))return H.get(t);M(Fn(new Error("Missing instance with id"),{additional:{id:t}}))}const K=new Map;function X(t){for(const e of t)F.has(e)&&t.delete(e);return t}Se(Sn,{logError:M,logStat:J,hasTemplate:function(t){return t in V},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in V;){if(({json:t,templateContext:e}=rl(t,e,V,M)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:B,genClass:function(t){return"divkit-".concat(B())},execAction:W,execAnyActions:L,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){H.has(t)?M(Fn(new Error("Duplicate instance id"),{additional:{id:t}})):H.set(t,e)},unregisterInstance:function(t){H.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(U[r]=U[r]||0,++U[r],R[r])return R[r];const i="".concat(B(),"-svg-filter");return n(2,R=Object.assign(Object.assign({},R),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);U[r]&&0==--U[r]&&n(2,R=Object.keys(R).reduce(((t,e)=>(U[e]&&(t[e]=R[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return ol(t);const e=cl(t,M);return e.vars.length?vn(e.vars.map((t=>F.get(t)||function(t){const e=I.get(t)||mn(void 0);return I.has(t)||I.set(t,e),e}(t))).filter(On),(()=>e.applyVars(F))):e.hasExpression?ol(e.applyVars(F)):ol(t)},getJsonWithVars:T,getStore:function(t){return K.has(t)||function(t){K.has(t)||K.set(t,ul[t]())}(t),K.get(t)},getVariable:function(t,e){const n=F.get(t);if(n){const r=n.getType();if(r!==e)return void M(Fn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return E},isDesktop:b,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:i}=t;$&&$({type:"mount",node:e,json:n,origJson:r,templateContext:i})},unregisterComponent:function(t){let{node:e}=t;$&&$({type:"destroy",node:e})}}),Se(hr,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Z&&Z.has(t))return Z.get(t);M(Fn(new Error("Missing state block with id"),{additional:{id:t}}))}};let Z=null;Se(Yn,{registerInstance(t,e){Z||(Z=new Map),Z.has(t)?M(Fn(new Error("Duplicate state with id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance(t){null==Z||Z.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 Q=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(Q)&&Q.forEach((t=>{if(t&&t.type in $n&&t.name){if(S.has(t.name))return void M(Fn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=_n(t.name,t.type,t.value);S.set(t.name,e),F.set(t.name,e)}catch(e){M(Fn(e,{additional:{name:t.name}}))}}}));const tt=c.palette;tt&&tt[w].forEach((t=>{if(S.has(t.name))M(Fn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=_n(t.name,"color",t.color);S.set(t.name,e),F.set(t.name,e)}catch(e){M(Fn(e,{additional:{name:t.name}}))}}));for(const[t,e]of P)F.has(t)||F.set(t,e);D.subscribe((t=>{if(t&&!F.has(t)){const e=P.get(t);F.set(t,e);const n=I.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const et=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(et)&&et.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void M(Fn(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=_(t.condition,{startRule:"JsonStringContents"}),i=N(r);if(!i.length)return void M(Fn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return X(e),e.size?new Promise((t=>{const n=D.subscribe((()=>{X(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{vn(i.map((t=>F.get(t))).filter(On),(()=>kn(F,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=T(t);e.log_id&&W(e)})),e=Boolean(r.value)):M(Fn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){M(Fn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else M(Fn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const nt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(nt){const t=z=new $l({logError:M,applyVars:T,hasVariableWithType:function(t,e){const n=F.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=F.get(t);n?n.setValue(e):M(Fn(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:L});nt.forEach((e=>t.createTimer(e)))}const rt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states,it=rt&&!C?{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:rt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}:void 0;return Pe((()=>{z&&z.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"onError"in t&&n(14,m=t.onError),"onStat"in t&&n(15,v=t.onStat),"onCustomAction"in t&&n(16,y=t.onCustomAction),"onComponent"in t&&n(17,$=t.onComponent)},t.$$.update=()=>{16777344&t.$$.dirty[0]&&("light"===d||"dark"===d?n(23,w=d):"system"===d?"undefined"!=typeof matchMedia?(x||(n(24,x=matchMedia("(prefers-color-scheme: dark)")),x.addListener(k)),n(23,w=x.matches?"dark":"light")):n(23,w="light"):M(Fn(new Error("Unsupported theme")))),8388608&t.$$.dirty[0]&&w&&tt&&tt[w].forEach((t=>{const e=F.get(t.name);e&&e.setValue(t.color)}))},[p,C,R,r,b,{},it,d,s,c,u,h,f,g,m,v,y,$,function(t){n(7,d=t)},function(){return F},function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=F.get(t);n&&n.setValue(e)}},function(t){const e=F.get(t);return null==e?void 0:e.getValue()},W,w,x]}const kl=class extends fn{constructor(t){super(),pn(this,t,xl,bl,Nt,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,onError:14,onStat:15,onCustomAction:16,onComponent:17,setTheme:18,getDebugVariables:19,setVariable:20,getVariable:21,execAction:22},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[18]}get getDebugVariables(){return this.$$.ctx[19]}get setVariable(){return this.$$.ctx[20]}get getVariable(){return this.$$.ctx[21]}get execAction(){return this.$$.ctx[22]}};function El(t){return new kl({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Cl(t,e){let n;try{n=_(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return kn((null==e?void 0:e.variables)||new Map,n)}function Al(){return Array.from(b.keys())}var Vl=exports;for(var jl in e)Vl[jl]=e[jl];e.__esModule&&Object.defineProperty(Vl,"__esModule",{value:!0})})();
2
2
  //# sourceMappingURL=client-devtool.js.map