@divkitframework/divkit 6.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/client-devtool.js +1 -1
- package/dist/browser/client-devtool.js.map +1 -1
- package/dist/browser/client-hydratable.js +1 -1
- package/dist/browser/client-hydratable.js.map +1 -1
- package/dist/browser/client.js +1 -1
- package/dist/browser/client.js.map +1 -1
- package/dist/client-devtool.js +1 -1
- package/dist/client-devtool.js.map +1 -1
- package/dist/client-hydratable.js +1 -1
- package/dist/client-hydratable.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/esm/client-devtool.mjs +1 -1
- package/dist/esm/client-devtool.mjs.map +1 -1
- package/dist/esm/client-hydratable.mjs +1 -1
- package/dist/esm/client-hydratable.mjs.map +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/server.mjs +1 -1
- package/dist/esm/server.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -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:()=>$a,createVariable:()=>Qe,evalExpression:()=>Ca,functionNames:()=>Ea,render:()=>ka,valToString:()=>P});const n=2147483647,r=-2147483648,o=Number.MAX_VALUE,i=Number.MIN_VALUE,a="string",l="integer",s="number",c="boolean",u="color",d="datetime";function h(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 p(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 g(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 m(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function v(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,v.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function $(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function y(t,e){var n,r,o,i,a={},l=(e=void 0!==e?e:{}).grammarSource,s={start:Jt,JsonStringContents:function(){var t,e,n;for(t=Ct,e=[],n=Ot();n!==a;)e.push(n),n=Ot();return Et=t,e=kt(e)}},c=Jt,u="@{",d="}",$="@{}",y="\\",_="||",b="&&",x="==",w="!=",k=">=",C="<=",E="+",A="-",j="true",V="false",D=/^[^}]/,P=/^[^'}]/,S=/^[0-9]/,I=/^[a-zA-Z_0-9.]/,F=/^[a-zA-Z_]/,N=/^[ \t\r\n]/,z=St("@{",!1),M=St("}",!1),J=St("@{}",!1),O=St("\\",!1),T={type:"any"},B=It(["}"],!0,!1),R=St("?",!1),L=St(":",!1),W=St("||",!1),U=St("&&",!1),q=St("==",!1),H=St("!=",!1),G=St(">=",!1),K=St(">",!1),X=St("<=",!1),Y=St("<",!1),Z=St("+",!1),Q=St("-",!1),tt=St("/",!1),et=St("*",!1),nt=St("%",!1),rt=St("!",!1),ot=St("(",!1),it=St(")",!1),at=St(",",!1),lt=Ft("string"),st=St("'",!1),ct=It(["'","}"],!0,!1),ut=Ft("integer"),dt=It([["0","9"]],!1,!1),ht=Ft("number"),ft=St(".",!1),pt=St("e",!1),gt=St("E",!1),mt=Ft("boolean"),vt=St("true",!1),$t=St("false",!1),yt=It([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),_t=Ft("identifier"),bt=It([["a","z"],["A","Z"],"_"],!1,!1),xt=Ft("whitespace"),wt=It([" ","\t","\r","\n"],!1,!1),kt=function(t){return p(t)},Ct=0,Et=0,At=[{line:1,column:1}],jt=0,Vt=[],Dt=0;if("startRule"in e){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=s[e.startRule]}function Pt(){return t.substring(Et,Ct)}function St(t,e){return{type:"literal",text:t,ignoreCase:e}}function It(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Ft(t){return{type:"other",description:t}}function Nt(e){var n,r=At[e];if(r)return r;for(n=e-1;!At[n];)n--;for(r={line:(r=At[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return At[e]=r,r}function zt(t,e){var n=Nt(t),r=Nt(e);return{source:l,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Mt(t){Ct<jt||(Ct>jt&&(jt=Ct,Vt=[]),Vt.push(t))}function Jt(){var t,e;return t=Ct,Zt(),(e=Tt())!==a?(Zt(),Et=t,t=e):(Ct=t,t=a),t}function Ot(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Tt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=d,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(B)),o!==a)for(;o!==a;)r.push(o),D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(B));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=d,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=m(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Tt(){var e,n,r,o,i,l;return e=Ct,(n=Bt())!==a?(Zt(),63===t.charCodeAt(Ct)?(r="?",Ct++):(r=a,0===Dt&&Mt(R)),r!==a?(Zt(),(o=Tt())!==a?(Zt(),58===t.charCodeAt(Ct)?(i=":",Ct++):(i=a,0===Dt&&Mt(L)),i!==a?(Zt(),(l=Tt())!==a?(Et=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Bt()),e}function Bt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Rt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=f(n,r)}else Ct=e,e=a;return e}function Rt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Lt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=f(n,r)}else Ct=e,e=a;return e}function Lt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Wt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Wt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ut())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Ut(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=qt())!==a){for(r=[],o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function qt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ht())!==a){for(r=[],o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Ht(){var e,n,r;return(e=Xt())===a&&(e=Kt())===a&&(e=Ct,33===t.charCodeAt(Ct)?(n="!",Ct++):(n=a,0===Dt&&Mt(rt)),n===a&&(43===t.charCodeAt(Ct)?(n=E,Ct++):(n=a,0===Dt&&Mt(Z)),n===a&&(45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)))),n!==a?(Zt(),(r=Ht())!==a?(Et=e,e={type:"UnaryExpression",operator:n,argument:r}):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=function(){var e,n,r,o,i;return e=Ct,(n=Yt())!==a?(Zt(),40===t.charCodeAt(Ct)?(r="(",Ct++):(r=a,0===Dt&&Mt(ot)),r!==a?(Zt(),o=function(){var e,n,r,o,i,l,s;if(e=Ct,(n=Tt())!==a){for(r=[],o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Tt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Tt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);Et=e,s=r,e=[n,...s]}else Ct=e,e=a;return e===a&&(e=Zt()),e}(),o!==a?(Zt(),41===t.charCodeAt(Ct)?(i=")",Ct++):(i=a,0===Dt&&Mt(it)),i!==a?(Et=e,e={type:"CallExpression",callee:n,arguments:o}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,(n=Yt())!==a&&(Et=e,n={type:"Variable",id:n}),(e=n)===a&&(e=function(){var e,n,r,o;return e=function(){var e,n,r,o;return Dt++,e=Ct,39===t.charCodeAt(Ct)?(n="'",Ct++):(n=a,0===Dt&&Mt(st)),n!==a?(r=function(){var t,e,n;for(t=Ct,e=[],n=Gt();n!==a;)e.push(n),n=Gt();return Et=t,e=p(e)}(),39===t.charCodeAt(Ct)?(o="'",Ct++):(o=a,0===Dt&&Mt(st)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(lt)),e}(),e===a&&(e=Xt())===a&&(e=Kt())===a&&(e=function(){var e,n;return Dt++,e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!0}),(e=n)===a&&(e=Ct,t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!1}),e=n),Dt--,e===a&&(n=a,0===Dt&&Mt(mt)),e}(),e===a&&(e=Ct,40===t.charCodeAt(Ct)?(n="(",Ct++):(n=a,0===Dt&&Mt(ot)),n!==a&&(r=Tt())!==a?(41===t.charCodeAt(Ct)?(o=")",Ct++):(o=a,0===Dt&&Mt(it)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a))),e}())),e}())),e}function Gt(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Tt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=d,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(39===t.charCodeAt(Ct)?(r="'",Ct++):(r=a,0===Dt&&Mt(st)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct)),o!==a)for(;o!==a;)r.push(o),P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=d,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=m(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Kt(){var e,n,r,o;if(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;return r!==a?(Et=e,e={type:"IntegerLiteral",value:g(Pt())}):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(ut)),e}function Xt(){var e,n,r,o,i,l,s,c,u,d;for(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));if(46===t.charCodeAt(Ct)?(o=".",Ct++):(o=a,0===Dt&&Mt(ft)),o!==a){if(i=[],S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt)),l!==a)for(;l!==a;)i.push(l),S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt));else i=a;if(i!==a){if(l=Ct,101===t.charCodeAt(Ct)?(s="e",Ct++):(s=a,0===Dt&&Mt(pt)),s===a&&(69===t.charCodeAt(Ct)?(s="E",Ct++):(s=a,0===Dt&&Mt(gt))),s!==a){if(43===t.charCodeAt(Ct)?(c=E,Ct++):(c=a,0===Dt&&Mt(Z)),c===a&&(45===t.charCodeAt(Ct)?(c=A,Ct++):(c=a,0===Dt&&Mt(Q))),c===a&&(c=null),u=[],S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt)),d!==a)for(;d!==a;)u.push(d),S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt));else u=a;u!==a?l=s=[s,c,u]:(Ct=l,l=a)}else Ct=l,l=a;l===a&&(l=null),Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}}else Ct=e,e=a}else Ct=e,e=a;if(e===a){if(e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;if(r!==a)if(101===t.charCodeAt(Ct)?(o="e",Ct++):(o=a,0===Dt&&Mt(pt)),o===a&&(69===t.charCodeAt(Ct)?(o="E",Ct++):(o=a,0===Dt&&Mt(gt))),o!==a){if(43===t.charCodeAt(Ct)?(i=E,Ct++):(i=a,0===Dt&&Mt(Z)),i===a&&(45===t.charCodeAt(Ct)?(i=A,Ct++):(i=a,0===Dt&&Mt(Q))),i===a&&(i=null),l=[],S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt)),s!==a)for(;s!==a;)l.push(s),S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt));else l=a;l!==a?(Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}):(Ct=e,e=a)}else Ct=e,e=a;else Ct=e,e=a}return Dt--,e===a&&(n=a,0===Dt&&Mt(ht)),e}function Yt(){var e,n,r,o,i;if(Dt++,e=Ct,n=Ct,Dt++,r=function(){var e,n,r,o;return e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n===a&&(t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t))),n!==a?(r=Ct,Dt++,I.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(yt)),Dt--,o===a?r=void 0:(Ct=r,r=a),r!==a?e=n=[n,r]:(Ct=e,e=a)):(Ct=e,e=a),e}(),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a)if(F.test(t.charAt(Ct))?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(bt)),r!==a){for(o=[],I.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));i!==a;)o.push(i),I.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));Et=e,e={type:"Identifier",name:Pt()}}else Ct=e,e=a;else Ct=e,e=a;return Dt--,e===a&&(n=a,0===Dt&&Mt(_t)),e}function Zt(){var e,n;for(Dt++,e=[],N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));n!==a;)e.push(n),N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));return Dt--,n=a,0===Dt&&Mt(xt),e}if((n=c())!==a&&Ct===t.length)return n;throw n!==a&&Ct<t.length&&Mt({type:"end"}),r=Vt,o=jt<t.length?t.charAt(jt):null,i=jt<t.length?zt(jt,jt+1):zt(jt,jt),new v(v.buildMessage(r,o),r,o,i)}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(v,Error),v.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=$("",o.line.toString().length," "),s=r[o.line-1],c=(o.line===a.line?a.column:s.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+o.line+" | "+s+"\n"+l+" | "+$("",o.column-1," ")+$("",c,"^")}else e+="\n at "+i}return e},v.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const _=new Map,b=new Map;function x(t,e,n){const r={args:e,cb:n},o=_.get(t)||[];_.has(t)||_.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");b.set(i,r)}function w(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function k(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=>{k(t,e)}));break;case"BinaryExpression":case"LogicalExpression":k(t.left,e),k(t.right,e);break;case"UnaryExpression":k(t.argument,e);break;case"ConditionalExpression":k(t.test,e),k(t.consequent,e),k(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{k(t,e)}))}}function C(t,e){for(;t.length<e;)t="0"+t;return t}function E(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=(t||"").toLowerCase()).charAt(0))return n;const r=j(t);return r?(r.a*=e,A(r)):n}function A(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,o,i]=e,a=2===r.length?r:r+r,l=2===o.length?o:o+o,s=2===i.length?i:i+i,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,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function V(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function D(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function P(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 D(t.value);if("color"===t.type)return T(O(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function S(t){let e=P(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 F=new Int32Array(1);function N(t){return F[0]=t,F[0]}function z(t){if(t<r||t>n)throw new Error("Integer overflow.")}function M(t){const e=[];return k(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 T(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 B(t){return{type:a,value:P(t)}}function R(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:s,value:e}}function L(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===l&&(n=N(n)),{type:t.type,value:n}}function W(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===l&&(n=N(n)),{type:t.type,value:n}}function U(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r*=e[t].value,e[0].type===l&&(r=N(r));return{type:e[0].type,value:r}}function q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r-=e[t].value,e[0].type===l&&(r=N(r));return{type:e.length?e[0].type:l,value:r}}function H(){let t=0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e=0;e<n.length;++e)t+=n[e].value,n[0].type===l&&(t=N(t));return{type:n.length?n[0].type:l,value:t}}function G(t){const e=Math.abs(t.value);return t.type===l&&z(e),{type:t.type,value:e}}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function X(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function Y(t){return{type:t.type,value:Math.sign(t.value)}}function Z(t,e){let n;if(0===e.value&&t.type===l)n=t.value;else if(0===t.value&&t.type===l)n=0;else{let r=Math.sign(e.value);t.type===s&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===l&&z(n),{type:t.type,value:n}}function Q(t){return e=>{const n=O(e.value);return{type:s,value:n[t]/255}}}function tt(t){return(e,n)=>{const r=O(e.value);return r[t]=255*n.value,{type:e.type,value:T(r)}}}const et=Q("a"),nt=Q("r"),rt=Q("g"),ot=Q("b"),it=tt("a"),at=tt("r"),lt=tt("g"),st=tt("b");function ct(){}const ut=t=>t;function dt(t,e){for(const n in e)t[n]=e[n];return t}function ht(t){return t()}function ft(){return Object.create(null)}function pt(t){t.forEach(ht)}function gt(t){return"function"==typeof t}let mt;function vt(t,e){return mt||(mt=document.createElement("a")),mt.href=e,t===mt.href}function $t(t,e){return t!=t?e==e:t!==e}function yt(t){return 0===Object.keys(t).length}function _t(t,...e){if(null==t)return ct;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function bt(t,e,n){t.$$.on_destroy.push(_t(e,n))}function xt(t,e,n,r){if(t){const o=wt(t,e,n,r);return t[0](o)}}function wt(t,e,n,r){return t[1]&&r?dt(n.ctx.slice(),t[1](r(e))):n.ctx}function kt(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function Ct(t,e,n,r,o,i){if(o){const a=wt(e,n,r,i);t.p(a,o)}}function Et(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 At(t){return t&>(t.destroy)?t.destroy:ct}const jt="undefined"!=typeof window;let Vt=jt?()=>window.performance.now():()=>Date.now(),Dt=jt?t=>requestAnimationFrame(t):ct;const Pt=new Set;function St(t){Pt.forEach((e=>{e.c(t)||(Pt.delete(e),e.f())})),0!==Pt.size&&Dt(St)}let It=!1;function Ft(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Nt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function zt(t){const e=Bt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Nt(t),e),e.sheet}function Mt(t,e){if(It){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:Ft(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,o=Math.max(l,o)}const i=[],a=[];let l=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.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 Jt(t,e,n){It&&!n?Mt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Ot(t){t.parentNode.removeChild(t)}function Tt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Bt(t){return document.createElement(t)}function Rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Lt(t){return document.createTextNode(t)}function Wt(){return Lt(" ")}function Ut(){return Lt("")}function qt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ht(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Gt(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]:Ht(t,r,e[r])}function Kt(t){return Array.from(t.childNodes)}function Xt(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Yt(t,e,n,r){return Xt(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function Zt(t,e,n){return Yt(t,e,n,Bt)}function Qt(t,e,n){return Yt(t,e,n,Rt)}function te(t,e){return Xt(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}),(()=>Lt(e)),!0)}function ee(t){return te(t," ")}function ne(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function re(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const oe=new Map;let ie,ae=0;function le(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),ae-=o,ae||Dt((()=>{ae||(oe.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),oe.clear())})))}function se(t){ie=t}function ce(){if(!ie)throw new Error("Function called outside component initialization");return ie}function ue(t){ce().$$.on_mount.push(t)}function de(t){ce().$$.on_destroy.push(t)}function he(t,e){return ce().$$.context.set(t,e),e}function fe(t){return ce().$$.context.get(t)}function pe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ge=[],me=[],ve=[],$e=[],ye=Promise.resolve();let _e=!1;function be(){_e||(_e=!0,ye.then(Ae))}function xe(){return be(),ye}function we(t){ve.push(t)}const ke=new Set;let Ce,Ee=0;function Ae(){const t=ie;do{for(;Ee<ge.length;){const t=ge[Ee];Ee++,se(t),je(t.$$)}for(se(null),ge.length=0,Ee=0;me.length;)me.pop()();for(let t=0;t<ve.length;t+=1){const e=ve[t];ke.has(e)||(ke.add(e),e())}ve.length=0}while(ge.length);for(;$e.length;)$e.pop()();_e=!1,ke.clear(),se(t)}function je(t){if(null!==t.fragment){t.update(),pt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(we)}}function Ve(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const De=new Set;let Pe;function Se(){Pe={r:0,c:[],p:Pe}}function Ie(){Pe.r||pt(Pe.c),Pe=Pe.p}function Fe(t,e){t&&t.i&&(De.delete(t),t.i(e))}function Ne(t,e,n,r){if(t&&t.o){if(De.has(t))return;De.add(t),Pe.c.push((()=>{De.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const ze={duration:0};function Me(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&le(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=ut,tick:u=ct,css:d}=i||ze;d&&(r=function(t,e,n,r,o,i,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(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=Nt(t),{stylesheet:f,rules:p}=oe.get(h)||function(t,e){const n={stylesheet:zt(e),rules:{}};return oe.set(t,n),n}(h,t);p[d]||(p[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,ae+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Vt()+e,f=h+n;o&&o.abort(),a=!0,we((()=>Ve(t,!0,"start"))),o=function(t){let e;return 0===Pt.size&&Dt(St),{promise:new Promise((n=>{Pt.add(e={c:t,f:n})})),abort(){Pt.delete(e)}}}((e=>{if(a){if(e>=f)return u(1,0),Ve(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,le(t),gt(i)?(i=i(),(Ce||(Ce=Promise.resolve(),Ce.then((()=>{Ce=null}))),Ce).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Je="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Oe(t,e){Ne(t,1,1,(()=>{e.delete(t.key)}))}function Te(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Be;function Re(t){t&&t.c()}function Le(t,e){t&&t.l(e)}function We(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||we((()=>{const e=i.map(ht).filter(gt);a?a.push(...e):pt(e),t.$$.on_mount=[]})),l.forEach(we)}function Ue(t,e){const n=t.$$;null!==n.fragment&&(pt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function qe(t,e,n,r,o,i,a,l=[-1]){const s=ie;se(t);const c=t.$$={fragment:null,ctx:null,props:i,update:ct,not_equal:o,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 i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&function(t,e){-1===t.$$.dirty[0]&&(ge.push(t),be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,pt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){It=!0;const t=Kt(e.target);c.fragment&&c.fragment.l(t),t.forEach(Ot)}else c.fragment&&c.fragment.c();e.intro&&Fe(t.$$.fragment),We(t,e.target,e.anchor,e.customElement),It=!1,Ae()}se(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&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(ht).filter(gt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){pt(this.$$.on_disconnect)}$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class He{$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ge=[];function Ke(t,e=ct){let n;const r=new Set;function o(e){if(i=e,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=e,n)){const e=!Ge.length;for(const e of r)e[1](),Ge.push(e,t);if(e){for(let t=0;t<Ge.length;t+=2)Ge[t][0](Ge[t+1]);Ge.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=ct){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||ct),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function Xe(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:Ke(n,(t=>{let n=!1;const a=[];let l=0,s=ct;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=gt(n)?n:ct},u=o.map(((t,e)=>_t(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){pt(u),s()}})).subscribe}}class Ye{constructor(t,e){this.checkValue(e),this.name=t,this.value=e}getName(){return this.name}subscribe(t){return this.store||(this.store=Ke(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){this.checkValue(t),this.value=t,this.store&&this.store.set(t)}getValue(){return this.value}}const Ze={string:class extends Ye{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"string"}},number:class extends Ye{checkValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"number"}},integer:class extends Ye{checkValue(t){if("number"!=typeof t||isNaN(t)||t>n||t<r||t!==Math.round(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"integer"}},boolean:class extends Ye{checkValue(t){if(1!==t&&0!==t)throw new Error("Incorrect variable value")}fromString(t){if("1"===t)return 1;if("0"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends Ye{checkValue(t){if("string"!=typeof t||!j(t))throw new Error("Incorrect variable value")}fromString(t){return this.checkValue(t),t}getType(){return"color"}},url:class extends Ye{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"url"}}};function Qe(t,e,n){if(!(e in Ze))throw new Error("Unsupported variable type");return new Ze[e](t,n)}function tn(t){return t.map(S).join(", ")}x("toString",[l],B),x("toString",[s],B),x("toString",[c],B),x("toString",[u],B),x("toString",["url"],B),x("toNumber",[l],R),x("toNumber",[a],R),x("toInteger",[s],(function(t){if(t.value>n||t.value<r)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:l,value:e}})),x("toInteger",[a],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>n||e<r)throw new Error("Unable to convert value to Integer.");return{type:l,value:e}})),x("toInteger",[c],(function(t){return{type:l,value:t.value?1:0}})),x("toBoolean",[l],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:t.value}})),x("toBoolean",[a],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:"true"===t.value?1:0}})),x("encodeUri",[a],(function(t){try{return{type:a,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),x("decodeUri",[a],(function(t){try{return{type:a,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),x("parseUnixTime",[l],(function(t){return{type:d,value:new Date(1e3*t.value)}})),x("nowLocal",[],(function(){return{type:d,value:new Date}})),x("addMillis",[d,l],(function(t,e){return{type:d,value:new Date(t.value.getTime()+e.value)}})),x("setYear",[d,l],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:d,value:n}})),x("setMonth",[d,l],(function(t,e){if(e.value<1||e.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMonth(e.value-1),{type:d,value:n}})),x("setDay",[d,l],(function(t,e){const n=new Date(t.value);if(e.value<=0&&-1!==e.value||e.value>function(t){const e=new Date(t);return e.setMonth(e.getMonth()+1),e.setDate(0),e.getDate()}(n))throw new Error("Unable to set day ".concat(e.value," for date ").concat(P(t),"."));return n.setDate(-1===e.value?0:e.value),{type:d,value:n}})),x("setHours",[d,l],(function(t,e){if(e.value<0||e.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setHours(e.value-n.getTimezoneOffset()/60),{type:d,value:n}})),x("setMinutes",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMinutes(e.value),{type:d,value:n}})),x("setSeconds",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setSeconds(e.value),{type:d,value:n}})),x("setMillis",[d,l],(function(t,e){if(e.value<0||e.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMilliseconds(e.value),{type:d,value:n}})),x("len",[a],(function(t){return{type:l,value:t.value.length}})),x("contains",[a,a],(function(t,e){return{type:c,value:t.value.includes(e.value)?1:0}})),x("substring",[a,l,l],(function(t,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>t.value.length||n.value<0||n.value>t.value.length)throw new Error("Indexes are out of bounds.");return{type:a,value:t.value.substring(e.value,n.value)}})),x("replaceAll",[a,a,a],(function(t,e,n){let r;return r=e.value?t.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.value),"g"),n.value):t.value,{type:a,value:r}})),x("index",[a,a],(function(t,e){return{type:l,value:t.value.indexOf(e.value)}})),x("lastIndex",[a,a],(function(t,e){return{type:l,value:t.value.lastIndexOf(e.value)}})),x("trim",[a],(function(t){return{type:a,value:t.value.trim()}})),x("trimLeft",[a],(function(t){return{type:a,value:t.value.replace(/^\s+/,"")}})),x("trimRight",[a],(function(t){return{type:a,value:t.value.replace(/\s+$/,"")}})),x("toUpperCase",[a],(function(t){return{type:a,value:t.value.toUpperCase()}})),x("toLowerCase",[a],(function(t){return{type:a,value:t.value.toLowerCase()}})),x("div",[l,l],L),x("div",[s,s],L),x("mod",[l,l],W),x("mod",[s,s],W),x("mul",[{type:l,isVararg:!0}],U),x("mul",[{type:s,isVararg:!0}],U),x("sub",[{type:l,isVararg:!0}],q),x("sub",[{type:s,isVararg:!0}],q),x("sum",[{type:l,isVararg:!0}],H),x("sum",[{type:s,isVararg:!0}],H),x("abs",[l],G),x("abs",[s],G),x("max",[{type:l,isVararg:!0}],K),x("max",[{type:s,isVararg:!0}],K),x("min",[{type:l,isVararg:!0}],X),x("min",[{type:s,isVararg:!0}],X),x("maxNumber",[],(function(){return{type:s,value:o}})),x("minNumber",[],(function(){return{type:s,value:i}})),x("maxInteger",[],(function(){return{type:l,value:n}})),x("minInteger",[],(function(){return{type:l,value:r}})),x("round",[s],(function(t){const e=Math.sign(t.value);return{type:s,value:e*Math.round(Math.abs(t.value))}})),x("floor",[s],(function(t){return{type:s,value:Math.floor(t.value)}})),x("ceil",[s],(function(t){return{type:s,value:Math.ceil(t.value)}})),x("signum",[s],Y),x("signum",[l],Y),x("copySign",[s,s],Z),x("copySign",[l,l],Z),x("getColorAlpha",[a],et),x("getColorAlpha",[u],et),x("getColorRed",[a],nt),x("getColorRed",[u],nt),x("getColorGreen",[a],rt),x("getColorGreen",[u],rt),x("getColorBlue",[a],ot),x("getColorBlue",[u],ot),x("setColorAlpha",[a,s],it),x("setColorAlpha",[u,s],it),x("setColorRed",[a,s],at),x("setColorRed",[u,s],at),x("setColorGreen",[a,s],lt),x("setColorGreen",[u,s],lt),x("setColorBlue",[a,s],st),x("setColorBlue",[u,s],st),x("rgb",[s,s,s],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:a,value:T(r)}})),x("argb",[s,s,s,s],(function(t,e,n,r){const o={a:255*t.value,r:255*e.value,g:255*n.value,b:255*r.value};return{type:a,value:T(o)}}));const en={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=V(nn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};J("".concat(e.operator).concat(S(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(S(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=V(nn(t,e.test));if(n.type===c)return n.value?nn(t,e.consequent):nn(t,e.alternate);J("".concat(S(n)," ? ").concat(S(nn(t,e.consequent))," : ").concat(S(nn(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 nn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=P(nn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=V(nn(t,e.left));if(n.type!==c&&J("".concat(S(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=V(nn(t,e.right));return r.type!==c&&J("".concat(S(n)," ").concat(e.operator," ").concat(S(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=nn(t,e.left),o=nn(t,e.right);if(r.type!==o.type&&J("".concat(S(r)," ").concat(e.operator," ").concat(S(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(I(r.type)," and ").concat(I(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===d&&n.type===d?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:c,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==s&&e.type!==l&&e.type!==d&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type."));const o=e.type===d?e.value.getTime():e.value,i=n.type===d?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:c,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==a&&e.type!==s&&e.type!==l&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(I(e.type)," type.")),e.type===a)return"-"===t&&J("".concat(S(e)," - ").concat(S(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=N(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==l&&e.type!==s&&J("".concat(S(e)," ").concat(t," ").concat(S(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(S(e)," ").concat(t," ").concat(S(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===l&&(r=N(r)),{type:e.type,value:r}}(n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;if(!_.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>nn(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(b.has(i))r=b.get(i);else{const t=function(t,e){const n=_.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=w(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t){const e=o.map((t=>I(t.type))).join(", "),r="".concat(n,"(").concat(tn(o),")");"few"===t.type&&0===o.length?J(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,J(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(...o)}catch(t){J("".concat(n,"(").concat(tn(o),")"),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,"' has value null"))}};function nn(t,e){if(e.type in en)return en[e.type](t,e);throw new Error("Unsupported expression")}function rn(t,e){try{return nn(t,e)}catch(t){return{type:"error",value:t.message}}}const on="divkit-b023",an="divkit-bd25",ln="divkit-c016",sn="divkit-ee11",cn="divkit-fef1",un=Symbol("root");function dn(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 hn={text:"divkit-d9b0",text_halign_left:"divkit-a4cb",text_halign_center:"divkit-e165",text_halign_right:"divkit-ea28",text_valign_top:"divkit-d8ce",text_valign_center:"divkit-ef58",text_valign_bottom:"divkit-fe8e",text_width_content:"divkit-f41f",text_height_content:"divkit-ea52",text__inner:"divkit-b852",text_singleline:"divkit-ef11",text_truncate_none:"divkit-c6ea",text_multiline:"divkit-ee8e",text__inner_gradient:"divkit-cb8e",text__image:"divkit-bf6e",text__image_hidden:"divkit-f100"},fn={outer:"divkit-d65a","outer_hide-on-transition-in":"divkit-a6d1","outer_valign-self_top":"divkit-b8d7","outer_valign-self_default":"divkit-e369","outer_valign-self_center":"divkit-d40a","outer_valign-self_bottom":"divkit-f550","outer_halign-self_left":"divkit-e896","outer_halign-self_default":"divkit-d42d","outer_halign-self_center":"divkit-b833","outer_halign-self_right":"divkit-a1de",outer_width_parent:"divkit-ad44",outer_height_parent:"divkit-b896","outer_width-constrained":"divkit-d321","outer_height-constrained":"divkit-a525","outer_parent-halign_start":"divkit-eec1","outer_parent-halign_center":"divkit-a094","outer_parent-halign_end":"divkit-daf0","outer_parent-valign_start":"divkit-a4d2","outer_parent-valign_center":"divkit-da31","outer_parent-valign_end":"divkit-df47","outer_parent-overlap":"divkit-dab2","outer_parent-overlap-absolute":"divkit-d43f","outer_scroll-snap_center":"divkit-d9e3","outer_scroll-snap_start":"divkit-efd1",outer__border:"divkit-d405",outer_visibility_invisible:"divkit-f018",outer_visibility_gone:"divkit-e784","outer_has-action-animation":"divkit-f498"};function pn(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 gn(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 mn(t){let e=gn(t);return"0"===e&&(e+="em"),e}function vn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const $n=Boolean;function yn(t){if(1===t.length&&"solid"===t[0].type)return{color:E(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=E(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter($n);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>E(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:_n(t.bg.scale),pos:bn(t.bg),image:'url("'+vn(n)+'")'}}({bg:t}):void 0)).filter($n).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(",")}}function _n(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function bn(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 xn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const wn=new Set(["http","https","tel","mailto","intent"]);function kn(t){return wn.has(t)}function Cn(t,e){e&&t.push(e)}function En(t,e,n){const r=[];Cn(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Cn(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const An=function(t,e){var n;let{json:r,origJson:o,templateContext:i,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:o,templateContext:i}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},jn=Symbol("state");function Vn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Dn(t){return Vn(t)&&t>=0}function Pn(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!Dn(o[t]))return r;return function(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=>gn((t||e)/n*10))).join(" ")}(t,e,n)}function Sn(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]&&!Dn(n[t]))return e;return function(t){return gn(t.top||0)+" "+gn(t.right||0)+" "+gn(t.bottom||0)+" "+gn(t.left||0)}(t)}function In(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Fn=Object.prototype.hasOwnProperty;function Nn(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!Fn.call(e,o)||!Nn(t[o],e[o]))return!1}return!0}function zn(t,e){return Nn(t,e)?e:t}function Mn(){}const Jn=Symbol("action");function On(t){let e,n,r,o,i,a,l;const s=t[12].default,c=xt(s,t,t[11],null);let u=[{class:n=""+(t[0]+(t[7]?" ".concat(t[4]?"":an," ").concat(ln):""))},{style:t[1]},{role:r=t[7]?"button":null},t[2]],d={};for(let t=0;t<u.length;t+=1)d=dt(d,u[t]);return{c(){e=Bt("span"),c&&c.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0,role:!0});var n=Kt(e);c&&c.l(n),n.forEach(Ot),this.h()},h(){Gt(e,d)},m(n,r){Jt(n,e,r),c&&c.m(e,null),i=!0,a||(l=[At(o=t[3].call(null,e)),qt(e,"click",(function(){gt(t[7]?t[8]:null)&&(t[7]?t[8]:null).apply(this,arguments)})),qt(e,"click",t[15]),qt(e,"keydown",t[16])],a=!0)},p(o,a){t=o,c&&c.p&&(!i||2048&a)&&Ct(c,s,t,t[11],i?kt(s,t[11],a,null):Et(t[11]),null),Gt(e,d=Te(u,[(!i||145&a&&n!==(n=""+(t[0]+(t[7]?" ".concat(t[4]?"":an," ").concat(ln):""))))&&{class:n},(!i||2&a)&&{style:t[1]},(!i||128&a&&r!==(r=t[7]?"button":null))&&{role:r},4&a&&t[2]]))},i(t){i||(Fe(c,t),i=!0)},o(t){Ne(c,t),i=!1},d(t){t&&Ot(e),c&&c.d(t),a=!1,pt(l)}}}function Tn(t){let e,n,r,o,i,a;const l=t[12].default,s=xt(l,t,t[11],null);let c=[{href:t[5]},{target:t[6]},{style:t[1]},{class:n=t[0]+" "+(t[4]?"":an)},t[2]],u={};for(let t=0;t<c.length;t+=1)u=dt(u,c[t]);return{c(){e=Bt("a"),s&&s.c(),this.h()},l(t){e=Zt(t,"A",{href:!0,target:!0,style:!0,class:!0});var n=Kt(e);s&&s.l(n),n.forEach(Ot),this.h()},h(){Gt(e,u)},m(n,l){Jt(n,e,l),s&&s.m(e,null),o=!0,i||(a=[At(r=t[3].call(null,e)),qt(e,"click",t[8]),qt(e,"click",t[13]),qt(e,"keydown",t[14])],i=!0)},p(t,r){s&&s.p&&(!o||2048&r)&&Ct(s,l,t,t[11],o?kt(l,t[11],r,null):Et(t[11]),null),Gt(e,u=Te(c,[(!o||32&r)&&{href:t[5]},(!o||64&r)&&{target:t[6]},(!o||2&r)&&{style:t[1]},(!o||17&r&&n!==(n=t[0]+" "+(t[4]?"":an)))&&{class:n},4&r&&t[2]]))},i(t){o||(Fe(s,t),o=!0)},o(t){Ne(s,t),o=!1},d(t){t&&Ot(e),s&&s.d(t),i=!1,pt(a)}}}function Bn(t){let e,n,r,o;const i=[Tn,On],a=[];function l(t,e){return t[5]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Ut()},l(t){n.l(t),r=Ut()},m(t,n){a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Se(),Ne(a[c],1,1,(()=>{a[c]=null})),Ie(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Fe(n,1),n.m(r.parentNode,r))},i(t){o||(Fe(n),o=!0)},o(t){Ne(n),o=!1},d(t){a[e].d(t),t&&Ot(r)}}}function Rn(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{cls:a=""}=e,{style:l=null}=e,{attrs:s}=e,{use:c=Mn}=e,{customAction:u=null}=e,{hasActionAnimation:d=!1}=e;const h=fe(un),f=fe(Jn);he(Jn,{hasAction:()=>Boolean(f.hasAction()||(null==i?void 0:i.length))});let p,g="";if(Array.isArray(i)&&(null==i?void 0:i.length))for(let t=0;t<i.length;++t){const e=i[t].url;if(e){g=e,p=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&f.hasAction()&&(g="",h.logError(dn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let m=Boolean(u);return g&&!kn(xn(g))&&(g="",m=!0),t.$$set=t=>{"actions"in t&&n(9,i=t.actions),"cls"in t&&n(0,a=t.cls),"style"in t&&n(1,l=t.style),"attrs"in t&&n(2,s=t.attrs),"use"in t&&n(3,c=t.use),"customAction"in t&&n(10,u=t.customAction),"hasActionAnimation"in t&&n(4,d=t.hasActionAnimation),"$$scope"in t&&n(11,o=t.$$scope)},[a,l,s,c,d,g,p,m,function(t){f.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==u?void 0:u(t))?t.preventDefault():i&&(i.forEach((e=>{const n=e.url;if(n){const r=xn(n);r&&!kn(r)&&(t.preventDefault(),"div-action"===r?h.execAction(e):e.log_id&&h.execCustomAction(e))}})),i.forEach((t=>{h.logStat("click",t)}))))},i,u,o,r,function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)}]}const Ln=class extends He{constructor(t){super(),qe(this,t,Rn,Bn,$t,{actions:9,cls:0,style:1,attrs:2,use:3,customAction:10,hasActionAnimation:4})}},Wn="divkit-b921";function Un(t,e,n){const r=t.slice();return r[3]=e[n],r}function qn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Wn),Ht(e,"style",r=pn(t[3].style))},m(t,n){Jt(t,e,n)},p:ct,d(t){t&&Ot(e)}}}function Hn(t){let e,n,r,o,i,a;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){vt(e.src,n=t[3].image_url)||Ht(e,"src",n),Ht(e,"alt",""),Ht(e,"aria-hidden","true"),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"class",r=Wn),Ht(e,"style",o=pn(t[3].style))},m(n,r){Jt(n,e,r),i||(a=qt(e,"error",t[1]),i=!0)},p:ct,d(t){t&&Ot(e),i=!1,a()}}}function Gn(t){let e,n=function(t,e){return t[3].image_url?Hn:qn}(t),r=n(t);return{c(){r.c(),e=Ut()},l(t){r.l(t),e=Ut()},m(t,n){r.m(t,n),Jt(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&Ot(e)}}}function Kn(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=Gn(Un(t,r,e));return{c(){e=Bt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var n=Kt(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n="divkit-bf25")},m(t,n){Jt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){let[i]=n;if(3&i){let n;for(r=t[0],n=0;n<r.length;n+=1){const a=Un(t,r,n);o[n]?o[n].p(a,i):(o[n]=Gn(a),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},i:ct,o:ct,d(t){t&&Ot(e),Tt(o,t)}}}function Xn(t,e,n){let{background:r=[]}=e;const o=r.map((t=>{const e={},n=yn([t]),r={style:e};return"solid"===t.type&&(e["background-color"]=n.color),"gradient"===t.type&&(e["background-image"]=n.image),"image"===t.type&&(e.opacity=Number(t.alpha),r.image_url=t.image_url,e["object-fit"]=n.size,e["object-position"]=n.position),r}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[o,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd61")},r]}const Yn=class extends He{constructor(t){super(),qe(this,t,Xn,Kn,$t,{background:2})}};function Zn(t){let e,n;return e=new Yn({props:{background:t[4]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Qn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=fn.outer__border),Ht(e,"style",r=pn(t[1]))},m(t,n){Jt(t,e,n)},p(t,n){2&n[0]&&r!==(r=pn(t[1]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function tr(t){let e,n,r,o=t[2]&&Zn(t);const i=t[84].default,a=xt(i,t,t[85],null);let l=t[6]&&Qn(t);return{c(){o&&o.c(),e=Ut(),a&&a.c(),l&&l.c(),n=Ut()},l(t){o&&o.l(t),e=Ut(),a&&a.l(t),l&&l.l(t),n=Ut()},m(t,i){o&&o.m(t,i),Jt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Jt(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&Fe(o,1)):(o=Zn(t),o.c(),Fe(o,1),o.m(e.parentNode,e)):o&&(Se(),Ne(o,1,1,(()=>{o=null})),Ie()),a&&a.p&&(!r||8388608&s[2])&&Ct(a,i,t,t[85],r?kt(i,t[85],s,null):Et(t[85]),null),t[6]?l?l.p(t,s):(l=Qn(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Fe(o),Fe(a,t),r=!0)},o(t){Ne(o),Ne(a,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),a&&a.d(t),l&&l.d(t),t&&Ot(n)}}}function er(t){let e,n;return e=new Ln({props:{use:t[24],cls:t[0]+" "+En("outer",fn,t[9]),style:pn(t[8]),actions:t[7],attrs:t[5],hasActionAnimation:Boolean(t[3]),$$slots:{default:[tr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};513&n[0]&&(r.cls=t[0]+" "+En("outer",fn,t[9])),256&n[0]&&(r.style=pn(t[8])),128&n[0]&&(r.actions=t[7]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.hasActionAnimation=Boolean(t[3])),86&n[0]|8388608&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function nr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,I,F,N,z,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,L=ct,W=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),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()));let{$$slots:Y={},$$scope:Z}=e;var Q,tt,et,nt,rt,ot;let{json:it={}}=e,{origJson:at}=e,{templateContext:lt}=e,{cls:st=""}=e,{style:ut}=e,{layoutParams:dt={}}=e,{customDescription:ht=!1}=e,{customPaddings:ft=!1}=e,{customActions:pt=""}=e,{forceWidth:gt=!1}=e,{forceHeight:mt=!1}=e;const vt=fe(un),$t=fe(jn);let yt,bt,xt,wt,kt,Ct,Et,At={},jt={},Vt=!1,Dt=1,Pt="transparent",St=0,It="",Ft="",Nt="",zt={},Mt=0,Jt="default",Ot={},Tt=0,Bt="default",Rt=1;const Lt=it.transition_triggers||["state_change","visibility_change"],Wt=-1!==Lt.indexOf("state_change")&&it.id,Ut=-1!==Lt.indexOf("visibility_change")&&it.id;let qt,Ht,Gt,Kt,Xt,Yt,Zt,Qt=[],te="";function ee(t){var e;const r=t.start_value||1,o=t.end_value||1,i=t.start_delay||0,a=t.duration||300,l=function(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:"ease_in_out"}(t.interpolator).replace(/_/g,"-");switch(t.name){case"fade":return n(62,Kt=r),n(63,Xt=o),"opacity ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"scale":return n(64,Yt=r),n(65,Zt=o),"transform ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"set":return(null===(e=t.items)||void 0===e?void 0:e.length)?t.items.map(ee).join(", "):(vt.logError(dn(new Error("Empty items value for action_animation with name='set'"))),"");default:return vt.logError(dn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let ne=!1,re="visible";return t.$$set=t=>{"json"in t&&n(25,it=t.json),"origJson"in t&&n(26,at=t.origJson),"templateContext"in t&&n(27,lt=t.templateContext),"cls"in t&&n(0,st=t.cls),"style"in t&&n(28,ut=t.style),"layoutParams"in t&&n(29,dt=t.layoutParams),"customDescription"in t&&n(30,ht=t.customDescription),"customPaddings"in t&&n(31,ft=t.customPaddings),"customActions"in t&&n(32,pt=t.customActions),"forceWidth"in t&&n(33,gt=t.forceWidth),"forceHeight"in t&&n(34,mt=t.forceHeight),"$$scope"in t&&n(85,Z=t.$$scope)},t.$$.update=()=>{if(33554432&t.$$.dirty[0]&&(n(23,r=vt.getDerivedFromVars(it.border)),X(),X=_t(r,(t=>n(83,z=t)))),2&t.$$.dirty[0]|32752&t.$$.dirty[1]|2097152&t.$$.dirty[2]){let t={},e={},r=!1;if(z){if(z.has_shadow){const e=z.shadow;t["box-shadow"]=e?gn((null===n(36,tt=null===n(35,Q=e.offset)||void 0===Q?void 0:Q.x)||void 0===tt?void 0:tt.value)||0)+" "+gn((null===n(38,nt=null===n(37,et=e.offset)||void 0===et?void 0:et.y)||void 0===nt?void 0:nt.value)||0)+" "+gn(null!==n(39,rt=e.blur)&&void 0!==rt?rt:2)+" "+E(e.color||"#000000",null!==n(40,ot=e.alpha)&&void 0!==ot?ot:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}z.stroke&&(r=!0,n(42,Dt=In(z.stroke.width,Dt)),n(43,Pt=E(z.stroke.color,1,Pt)),e.border="".concat(gn(Dt)," solid ").concat(Pt)),z.corners_radius?(n(45,It=Pn(z.corners_radius,0,10,It)),e["border-radius"]=t["border-radius"]=It):z.corner_radius&&(n(44,St=In(z.corner_radius,St)),e["border-radius"]=t["border-radius"]=gn(St))}n(41,At=zn(t,At)),n(1,jt=zn(e,jt)),n(6,Vt=r)}if(33554432&t.$$.dirty[0]&&(n(22,o=vt.getDerivedFromVars(it.paddings)),K(),K=_t(o,(t=>n(82,N=t)))),32769&t.$$.dirty[1]|1048576&t.$$.dirty[2]&&n(46,Ft=Sn(N&&!ft?N:void 0,Ft)),33554432&t.$$.dirty[0]&&(n(21,i=vt.getDerivedFromVars(it.margins)),H(),H=_t(i,(t=>n(80,I=t)))),65536&t.$$.dirty[1]|262144&t.$$.dirty[2]&&n(47,Nt=Sn(I,Nt)),33554432&t.$$.dirty[0]&&(n(20,a=vt.getDerivedFromVars(it.width)),U(),U=_t(a,(t=>n(78,P=t)))),33554432&t.$$.dirty[0]&&(n(19,l=vt.getDerivedFromVars(it.alignment_horizontal)),G(),G=_t(l,(t=>n(81,F=t)))),536870912&t.$$.dirty[0]|1703940&t.$$.dirty[1]|851968&t.$$.dirty[2]){let t,e,r={};P?"fixed"===P.type?(n(50,Mt=In(P.value,Mt)),e=gn(Mt)):"wrap_content"===P.type||!dt.overlapParent&&"match_parent"===P.type&&dt.parentHorizontalWrapContent?(t="content",("wrap_content"===P.type&&P.constrained||"match_parent"===P.type&&dt.parentHorizontalWrapContent)&&(r["width-constrained"]=!0)):"match_parent"===P.type&&(t="parent","vertical"===dt.parentLayoutOrientation&&(e="calc(100% - ".concat(mn(((null==I?void 0:I.left)||0)+((null==I?void 0:I.right)||0)),")"))):t="parent","content"===t&>&&(t="parent",vt.logError(dn(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),t&&(r.width=t);const o=F;"left"===o||"center"===o||"right"===o?r["halign-self"]=n(51,Jt=o):(r["halign-self"]=Jt,"parent"!==t&&dt.parentHAlign&&(r["parent-halign"]=dt.parentHAlign)),n(49,xt=e),n(48,zt=zn(r,zt))}if(33554432&t.$$.dirty[0]&&(n(18,s=vt.getDerivedFromVars(it.height)),W(),W=_t(s,(t=>n(77,D=t)))),33554432&t.$$.dirty[0]&&(n(17,c=vt.getDerivedFromVars(it.alignment_vertical)),q(),q=_t(c,(t=>n(79,S=t)))),536870912&t.$$.dirty[0]|27262984&t.$$.dirty[1]|425984&t.$$.dirty[2]){let t,e,r={};D?"fixed"===D.type?(n(54,Tt=In(D.value,Tt)),e=gn(Tt)):"wrap_content"===D.type||!dt.overlapParent&&"match_parent"===D.type&&dt.parentVerticalWrapContent?(t="content",("wrap_content"===D.type&&D.constrained||"match_parent"===D.type&&dt.parentVerticalWrapContent)&&(r["height-constrained"]=!0)):"match_parent"===D.type&&(t="parent","horizontal"===dt.parentLayoutOrientation&&(e="calc(100% - ".concat(mn(((null==I?void 0:I.top)||0)+((null==I?void 0:I.bottom)||0)),")"))):t="content","content"===t&&mt&&(t="parent",vt.logError(dn(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),t&&(r.height=t);const o=S;"top"===o||"center"===o||"bottom"===o?r["valign-self"]=n(55,Bt=o):(r["valign-self"]=Bt,"parent"!==t&&dt.parentVAlign&&(r["parent-valign"]=dt.parentVAlign)),n(53,wt=e),n(52,Ot=zn(r,Ot))}var e,Y;if(536870912&t.$$.dirty[0]&&n(70,u=!!dt.overlapParent||void 0),536870912&t.$$.dirty[0]|98304&t.$$.dirty[2]&&n(69,d=dt.overlapParent&&(!P||"match_parent"===P.type)&&"match_parent"===(null==D?void 0:D.type)),536870912&t.$$.dirty[0]&&n(68,h=dt.gridArea?"".concat(dt.gridArea.y+1,"/").concat(dt.gridArea.x+1,"/span ").concat(dt.gridArea.rowSpan,"/span ").concat(dt.gridArea.colSpan):void 0),33554432&t.$$.dirty[0]&&(n(16,f=vt.getDerivedFromVars(it.alpha)),L(),L=_t(f,(t=>n(76,V=t)))),33554432&t.$$.dirty[1]|16384&t.$$.dirty[2]&&(n(56,(Y=Rt,Rt=!Dn(e=V)||void 0===e||e>1?Y:Number(e))),n(57,kt=1===Rt?void 0:Rt)),33554432&t.$$.dirty[0]&&(n(15,p=vt.getDerivedFromVars(it.accessibility)),R(),R=_t(p,(t=>n(75,j=t)))),1073741824&t.$$.dirty[0]|8192&t.$$.dirty[2]&&(n(5,bt=void 0),j&&!ht&&j.description&&(n(5,bt={}),n(5,bt["aria-label"]=j.description,bt))),33554432&t.$$.dirty[0]&&(n(14,g=vt.getDerivedFromVars(it.background)),B(),B=_t(g,(t=>n(4,A=t)))),20&t.$$.dirty[0]&&(n(58,Ct={}),n(2,Et=!1),A&&(n(2,Et=A.some((t=>"image"===t.type))),!Et))){const t=yn(A);n(58,Ct["background-color"]=t.color,Ct),n(58,Ct["background-image"]=t.image,Ct),n(58,Ct["background-size"]=t.size,Ct),n(58,Ct["background-position"]=t.position,Ct),n(58,Ct["background-repeat"]="no-repeat",Ct)}if(33554432&t.$$.dirty[0]&&(n(59,qt=void 0),Wt&&it.transition_in&&vt.isRunning("stateChange")&&n(59,qt=!0)),33554432&t.$$.dirty[0]&&(n(61,Gt=void 0),Wt&&it.transition_change&&vt.isRunning("stateChange")&&$t.hasTransitionChange(it.id)&&n(61,Gt=!0)),33554432&t.$$.dirty[0]&&(n(13,m=vt.getDerivedFromVars(it.action)),O(),O=_t(m,(t=>n(73,k=t)))),33554432&t.$$.dirty[0]&&(n(12,v=vt.getDerivedFromVars(it.actions)),T(),T=_t(v,(t=>n(74,C=t)))),2&t.$$.dirty[1]|6144&t.$$.dirty[2]){let t=C||k&&[k]||[];Array.isArray(t)?t.length&&pt&&(t=[],vt.logError(dn(new Error('Cannot use action on component "'.concat(pt,'"'))))):(t=[],vt.logError(dn(new Error("Actions should be array")))),n(7,Qt=t)}if(33554432&t.$$.dirty[0]&&(n(11,$=vt.getDerivedFromVars(it.action_animation)),J(),J=_t($,(t=>n(72,w=t)))),1024&t.$$.dirty[2]&&w&&n(3,te=ee(w)),33554432&t.$$.dirty[0]&&(n(10,y=vt.getDerivedFromVars(it.visibility)),M(),M=_t(y,(t=>n(71,x=t)))),560&t.$$.dirty[2]){const t=re,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(x,re);t!==e&&(!ne||"visible"!==re&&"visible"!==e?n(67,re=e):async function(t){n(67,re=t);const e="visible"===t?"in":"out",r="in"===e?it.transition_in:it.transition_out;Ut&&r&&(await xe(),"in"===e&&n(60,Ht=!0),$t.runVisibilityTransition(Object.assign(Object.assign({},it),{visibility:"visible"}),lt,r,yt,e).then((()=>{"in"===e&&n(60,Ht=!1)})).catch((t=>{throw"in"===e&&n(60,Ht=!1),t})))}(e)),ne||n(66,ne=!0)}536870920&t.$$.dirty[0]|1881276416&t.$$.dirty[1]|416&t.$$.dirty[2]&&n(9,_=Object.assign(Object.assign(Object.assign({},zt),Ot),{"parent-overlap":u,"parent-overlap-absolute":d,"scroll-snap":dt.scrollSnap,"hide-on-transition-in":qt||Ht||Gt,visibility:re,"has-action-animation":Boolean(te)})),268435464&t.$$.dirty[0]|205882368&t.$$.dirty[1]|79&t.$$.dirty[2]&&n(8,b=Object.assign(Object.assign(Object.assign(Object.assign({},ut),Ct),At),{width:xt,height:wt,"grid-area":h,padding:Ft,margin:Nt,opacity:kt,transition:te,"--divkit-animation-opacity-start":Kt,"--divkit-animation-opacity-end":Xt,"--divkit-animation-scale-start":Yt,"--divkit-animation-scale-end":Zt}))},[st,jt,Et,te,A,bt,Vt,Qt,b,_,y,$,v,m,g,p,f,c,s,l,a,i,o,r,function(t){yt=t,Wt&&it.transition_in&&$t.registerChildWithTransitionIn(it,lt,it.transition_in,t).then((()=>{n(59,qt=!1)})).catch((t=>{throw n(59,qt=!1),t})),Wt&&it.transition_out&&$t.registerChildWithTransitionOut(it,lt,it.transition_out,t),Wt&&it.transition_change&&$t.registerChildWithTransitionChange(it,lt,it.transition_change,t).then((()=>{n(61,Gt=!1)})).catch((t=>{throw n(61,Gt=!1),t})),function(t,e){let{visibilityActions:n,rootCtx:r}=e;if(null==n||!n.length)return;const o=n.map((t=>({action:t,visible:!1,count:0,finished:!1}))),i=[...new Set([...n.map((t=>(t.visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===e.action.log_limit?1/0:e.action.log_limit||1;++e.count>=t&&(e.finished=!0);const n=e.action.url;if(n){const t=xn(n);t&&!kn(t)&&("div-action"===t?r.execAction(e.action):e.action.log_id&&r.execCustomAction(e.action))}r.logStat("visible",e.action)}),e.action.visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:i}).observe(t)}(t,{visibilityActions:vt.getJsonWithVars(it.visibility_actions||it.visibility_action&&[it.visibility_action]),rootCtx:vt});const e=it.id;e&&$t.registerChild(e);let r=null;return An&&(r=An(t,{json:it,origJson:at,rootCtx:vt,templateContext:lt})),{destroy(){e&&$t.unregisterChild(e),r&&r.destroy()}}},it,at,lt,ut,dt,ht,ft,pt,gt,mt,Q,tt,et,nt,rt,ot,At,Dt,Pt,St,It,Ft,Nt,zt,xt,Mt,Jt,Ot,wt,Tt,Bt,Rt,kt,Ct,qt,Ht,Gt,Kt,Xt,Yt,Zt,ne,re,h,d,u,x,w,k,C,j,V,D,P,S,I,F,N,z,Y,Z]}const rr=class extends He{constructor(t){super(),qe(this,t,nr,er,$t,{json:25,origJson:26,templateContext:27,cls:0,style:28,layoutParams:29,customDescription:30,customPaddings:31,customActions:32,forceWidth:33,forceHeight:34},null,[-1,-1,-1,-1])}},or={"text-range":"divkit-faf0","text-range_singleline":"divkit-ccb6","text-range__top-offset":"divkit-d923","text-range_decoration_both":"divkit-d7e0","text-range_decoration_underline":"divkit-f3dd","text-range_decoration_strike":"divkit-d27b","text-range_decoration_none":"divkit-c6b0"};function ir(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function ar(t){return Vn(t)&&t>0}function lr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function sr(t,e){return lr(t)||e}function cr(t){let e,n;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=or["text-range__top-offset"]),re(e,"margin-top",t[4],!1)},m(t,n){Jt(t,e,n)},p(t,n){16&n&&re(e,"margin-top",t[4],!1)},d(t){t&&Ot(e)}}}function ur(t){let e;return{c(){e=Lt(t[0])},l(n){e=te(n,t[0])},m(t,n){Jt(t,e,n)},p(t,n){1&n&&ne(e,t[0])},d(t){t&&Ot(e)}}}function dr(t){let e,n,r,o=t[4]&&cr(t);return n=new Ln({props:{cls:En("text-range",or,t[3]),actions:t[1],style:pn(t[2]),$$slots:{default:[ur]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Ut(),Re(n.$$.fragment)},l(t){o&&o.l(t),e=Ut(),Le(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Jt(t,e,i),We(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=cr(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=En("text-range",or,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=pn(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Fe(n.$$.fragment,t),r=!0)},o(t){Ne(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),Ue(n,t)}}}function hr(t,e,n){let r,o,i,a,{text:l}=e,{rootFontSize:s}=e,{textStyles:c={}}=e,{singleline:u=!1}=e,{actions:d}=e,h="none",f=12,p=1.25,g="",m="";return t.$$set=t=>{"text"in t&&n(0,l=t.text),"rootFontSize"in t&&n(5,s=t.rootFontSize),"textStyles"in t&&n(6,c=t.textStyles),"singleline"in t&&n(7,u=t.singleline),"actions"in t&&n(1,d=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(c.underline||c.strike)&&("single"===c.underline&&"single"===c.strike?t="both":"single"===c.underline?t="underline":"single"===c.strike&&(t="strike")),n(8,h=t)}576&t.$$.dirty&&n(9,f=ir(c.font_size,f)),576&t.$$.dirty&&ar(c.line_height)&&n(10,p=Number(c.line_height)/f),64&t.$$.dirty&&Dn(c.letter_spacing)&&n(11,g=gn(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=sr(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=E(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?gn(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:h}),15904&t.$$.dirty&&n(2,i={"font-size":gn(10*f/s),"line-height":p,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,h,f,p,g,a,m]}const fr=class extends He{constructor(t){super(),qe(this,t,hr,dr,$t,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function pr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function gr(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}const{Boolean:mr}=Je;function vr(t,e,n){const r=t.slice();return r[59]=e[n],r[61]=n,r}function $r(t){let e,n;return e=new rr({props:{cls:En("text",hn,t[13])+" "+(t[6]?"":ln),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Cr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=En("text",hn,t[13])+" "+(t[6]?"":ln)),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]),536878768&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function yr(t){let e,n;return e=new fr({props:{text:t[4],rootFontSize:t[5],textStyles:t[29],singleline:t[7]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),536870912&n[0]&&(r.textStyles=t[29]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function _r(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=kr(vr(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(1073743520&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=vr(t,r,a);o[a]?(o[a].p(i,n),Fe(o[a],1)):(o[a]=kr(i),o[a].c(),Fe(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Ie()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Fe(o[t]);n=!0}},o(t){o=o.filter(mr);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function br(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{style:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=hn.text__image),vt(n.src,o=t[59].image.url)||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"aria-hidden","true"),Ht(n,"alt",""),Ht(n,"style",i=pn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),Ht(e,"style",a=pn(t[59].image.wrapperStyle))},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=qt(n,"error",t[30]),l=!0)},p(t,r){1024&r[0]&&!vt(n.src,o=t[59].image.url)&&Ht(n,"src",o),1536&r[0]&&i!==(i=pn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&Ht(n,"style",i),1024&r[0]&&a!==(a=pn(t[59].image.wrapperStyle))&&Ht(e,"style",a)},i:ct,o:ct,d(t){t&&Ot(e),l=!1,s()}}}function xr(t){let e,n,r=t[59].text&&wr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),1024&n[0]&&Fe(r,1)):(r=wr(t),r.c(),Fe(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie())},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function wr(t){let e,n;return e=new fr({props:{text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[7],actions:t[59].actions}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[59].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function kr(t){let e,n,r,o;const i=[xr,br],a=[];function l(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Ut()},l(t){n&&n.l(t),r=Ut()},m(t,n){~e&&a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Se(),Ne(a[s],1,1,(()=>{a[s]=null})),Ie()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Fe(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Fe(n),o=!0)},o(t){Ne(n),o=!1},d(t){~e&&a[e].d(t),t&&Ot(r)}}}function Cr(t){let e,n,r,o,i,a;const l=[_r,yr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=Bt("span"),r.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0});var n=Kt(e);r.l(n),n.forEach(Ot),this.h()},h(){Ht(e,"class",o=En("text__inner",hn,t[12])),Ht(e,"style",i=pn(t[11]))},m(t,r){Jt(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):(Se(),Ne(s[d],1,1,(()=>{s[d]=null})),Ie(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Fe(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=En("text__inner",hn,t[12])))&&Ht(e,"class",o),(!a||2048&u[0]&&i!==(i=pn(t[11])))&&Ht(e,"style",i)},i(t){a||(Fe(r),a=!0)},o(t){Ne(r),a=!1},d(t){t&&Ot(e),s[n].d()}}}function Er(t){let e,n,r=!t[8]&&$r(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),256&n[0]&&Fe(r,1)):(r=$r(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Ar(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,I,F,N,z,M,J,O,T,B=ct,R=ct,L=ct,W=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct,Q=ct,tt=ct,et=ct;t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),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()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:ot}=e,{layoutParams:it}=e;const at=fe(un);let lt=!1,st="",ut=12,dt=1.25,ht=!1,ft="",pt="",gt=!1,mt="left",vt="top",$t="",yt="",bt=!1,xt=[],wt=[];return de((()=>{wt.forEach((t=>{at.removeSvgFilter(t)}))})),t.$$set=t=>{"json"in t&&n(0,nt=t.json),"templateContext"in t&&n(1,rt=t.templateContext),"origJson"in t&&n(2,ot=t.origJson),"layoutParams"in t&&n(3,it=t.layoutParams)},t.$$.update=()=>{var e,rt;if(1&t.$$.dirty[0]&&(n(28,r=at.getDerivedFromVars(nt.text)),et(),et=_t(r,(t=>n(55,T=t)))),16&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(n(4,(e=T,rt=st,st=String(null!=e?e:"")||rt)),st?n(8,lt=!1):(n(8,lt=!0),at.logError(dn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(27,o=at.getDerivedFromVars(nt.ranges)),W(),W=_t(o,(t=>n(45,V=t)))),1&t.$$.dirty[0]&&(n(26,i=at.getDerivedFromVars(nt.images)),L(),L=_t(i,(t=>n(44,j=t)))),1&t.$$.dirty[0]&&(n(25,a=at.getDerivedFromVars({font_size:nt.font_size,letter_spacing:nt.letter_spacing,font_weight:nt.font_weight,text_color:nt.text_color,underline:nt.underline,strike:nt.strike,line_height:nt.line_height})),U(),U=_t(a,(t=>n(29,D=t)))),1&t.$$.dirty[0]&&(n(24,l=at.getDerivedFromVars(nt.font_size)),tt(),tt=_t(l,(t=>n(54,O=t)))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(5,ut=ir(O,ut)),1&t.$$.dirty[0]&&(n(23,s=at.getDerivedFromVars(nt.line_height)),Q(),Q=_t(s,(t=>n(53,J=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=J;ar(t)?(n(31,dt=Number(t)/ut),n(9,ht=!0)):n(9,ht=!1)}if(1&t.$$.dirty[0]&&(n(22,c=at.getDerivedFromVars(nt.max_lines)),X(),X=_t(c,(t=>n(50,N=t)))),524288&t.$$.dirty[1]&&n(7,u=1===N),548865&t.$$.dirty[1]){let t="",e="",r=!1;if(N&&N>1){let n=Number(N);t=n*dt+"em",V||j||(e=n,r=!0)}n(32,ft=t),n(33,pt=e),n(34,gt=r)}if(1&t.$$.dirty[0]&&(n(21,d=at.getDerivedFromVars(nt.text_alignment_horizontal)),Z(),Z=_t(d,(t=>n(52,M=t)))),2097168&t.$$.dirty[1]&&n(35,mt=pr(M,mt)),1&t.$$.dirty[0]&&(n(20,h=at.getDerivedFromVars(nt.text_alignment_vertical)),Y(),Y=_t(h,(t=>n(51,z=t)))),1048608&t.$$.dirty[1]&&n(36,vt=gr(z,vt)),16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(41,f=!V||st&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=st.length),1&t.$$.dirty[0]&&(n(19,p=at.getDerivedFromVars(nt.text_color)),K(),K=_t(p,(t=>n(49,F=t)))),278528&t.$$.dirty[1]&&n(40,g=Boolean(F)!==Boolean(V&&V[0]&&V[0].text_color)),804416&t.$$.dirty[1]){let t="";N&&f&&g&&(t=E(F||V&&V[0]&&V[0].text_color,1,$t)),n(37,$t=t)}if(1&t.$$.dirty[0]&&(n(18,m=at.getDerivedFromVars(nt.truncate)),G(),G=_t(m,(t=>n(48,I=t)))),131072&t.$$.dirty[1]&&n(39,v="none"===I?"none":""),1&t.$$.dirty[0]&&(n(17,$=at.getDerivedFromVars(nt.text_gradient)),H(),H=_t($,(t=>n(47,S=t)))),65536&t.$$.dirty[1]){let t="";if(S){const e=yn([S]);e.image&&(t=e.image)}n(38,yt=t)}1&t.$$.dirty[0]&&(n(16,y=at.getDerivedFromVars(nt.selectable)),q(),q=_t(y,(t=>n(46,P=t)))),64&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(6,bt=function(t,e){return 1===t||0===t?Boolean(t):e}(P,bt)),1&t.$$.dirty[0]&&(n(15,_=at.getDerivedFromVars(nt.width)),R(),R=_t(_,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(14,b=at.getDerivedFromVars(nt.height)),B(),B=_t(b,(t=>n(42,C=t)))),16&t.$$.dirty[0]|24576&t.$$.dirty[1]&&function(t,e,r){let o=[];if(wt.forEach((t=>{at.removeSvgFilter(t)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,xt=[]);const i=t;let a=e||[{start:0,end:i.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<=i.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},D),...c);o.push({text:i.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({},D),...c),n=gn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=gn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":gn(10*(Number(e.font_size)||12)/ut)};let a="";if(t.image.tint_color){const e=E(t.image.tint_color);a=at.addSvgFilter(e),wt.push(e)}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}s=r})),s<i.length&&o.push({text:i.substring(s),textStyles:Object.assign({},D)}),n(10,xt=o)}(st,V,j),128&t.$$.dirty[0]|6456&t.$$.dirty[1]&&n(13,x={singleline:u,multiline:gt,halign:mt,valign:vt,truncate:v,width:"wrap_content"!==(null==A?void 0:A.type)||A.constrained?"":"content",height:!C||"wrap_content"===C.type&&!C.constrained?"content":""}),128&t.$$.dirty[1]&&n(12,w={gradient:Boolean(yt)}),32&t.$$.dirty[0]|199&t.$$.dirty[1]&&n(11,k={"font-size":gn(ut),"line-height":dt,"max-height":ft,"-webkit-line-clamp":pt,color:$t,"background-image":yt})},[nt,rt,ot,it,st,ut,bt,u,lt,ht,xt,k,w,x,b,_,y,$,m,p,h,d,c,s,l,a,i,o,r,D,function(t){t.target&&"classList"in t.target&&t.target.classList.add(hn.text__image_hidden)},dt,ft,pt,gt,mt,vt,$t,yt,v,g,f,C,A,j,V,P,S,I,F,N,z,M,J,O,T]}const jr={container:"divkit-d37d",container_orientation_vertical:"divkit-ddc3",container_valign_top:"divkit-a331",container_valign_center:"divkit-aae6",container_valign_bottom:"divkit-c222",container_halign_left:"divkit-a309",container_halign_center:"divkit-bac9",container_halign_right:"divkit-f423",container_orientation_horizontal:"divkit-fe45",container_orientation_overlap:"divkit-a644"};function Vr(t,e,n){const r=t.slice();return r[28]=e[n],r}function Dr(t){let e,n;return e=new rr({props:{cls:En("container",jr,t[9]),json:t[0],origJson:t[2],templateContext:t[1],style:t[6],layoutParams:t[3],$$slots:{default:[Sr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=En("container",jr,t[9])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),64&n[0]&&(r.style=t[6]),8&n[0]&&(r.layoutParams=t[3]),160&n[0]|1&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Pr(t){let e,n;return e=new Yi({props:{layoutParams:t[5],div:t[28].json,templateContext:t[28].templateContext,origJson:t[28].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[5]),128&n[0]&&(r.div=t[28].json),128&n[0]&&(r.templateContext=t[28].templateContext),128&n[0]&&(r.origJson=t[28].origJson),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Sr(t){let e,n,r=t[7],o=[];for(let e=0;e<r.length;e+=1)o[e]=Pr(Vr(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(160&n[0]){let a;for(r=t[7],a=0;a<r.length;a+=1){const i=Vr(t,r,a);o[a]?(o[a].p(i,n),Fe(o[a],1)):(o[a]=Pr(i),o[a].c(),Fe(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Ie()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Fe(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function Ir(t){let e,n,r=!t[4]&&Dr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),16&n[0]&&Fe(r,1)):(r=Dr(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Fr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=ct,$=ct,y=ct,_=ct,b=ct,x=ct;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:w={}}=e,{templateContext:k}=e,{origJson:C}=e,{layoutParams:E}=e;const A={left:"start",center:"center",right:"end"},j={top:"start",center:"center",bottom:"end"},V=fe(un);let D,P=!1,S="vertical",I="top",F="left",N={},z={};return t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=w.items),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,P=!1):(n(4,P=!0),V.logError(dn(new Error('Incorrect or empty "items" prop for div "container"'))))),262162&t.$$.dirty[0]&&n(7,o=(!P&&r||[]).map((t=>{let e=t,n=k;return({templateContext:n,json:e}=V.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=V.getDerivedFromVars(w.orientation)),x(),x=_t(i,(t=>n(24,m=t)))),16809984&t.$$.dirty[0]&&n(15,S=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(m,S)),1&t.$$.dirty[0]&&(n(13,a=V.getDerivedFromVars(w.content_alignment_vertical)),b(),b=_t(a,(t=>n(23,g=t)))),8454144&t.$$.dirty[0]&&n(16,I=gr(g,I)),1&t.$$.dirty[0]&&(n(12,l=V.getDerivedFromVars(w.content_alignment_horizontal)),_(),_=_t(l,(t=>n(22,p=t)))),4325376&t.$$.dirty[0]&&n(17,F=pr(p,F)),1&t.$$.dirty[0]&&(n(11,s=V.getDerivedFromVars(w.width)),$(),$=_t(s,(t=>n(20,h=t)))),1&t.$$.dirty[0]&&(n(10,c=V.getDerivedFromVars(w.height)),y(),y=_t(c,(t=>n(21,f=t)))),3375136&t.$$.dirty[0]){let t={};"overlap"===S&&(t.overlapParent=!0),"horizontal"!==S&&(t.parentHAlign=A[F],"wrap_content"!==(null==f?void 0:f.type)&&f||(t.parentVerticalWrapContent=!0)),"vertical"!==S&&(t.parentVAlign=j[I],"wrap_content"===(null==h?void 0:h.type)&&(t.parentHorizontalWrapContent=!0)),"horizontal"===S&&(t.parentLayoutOrientation="horizontal"),"vertical"===S&&(t.parentLayoutOrientation="vertical"),n(5,N=zn(t,N))}if(32896&t.$$.dirty[0]){let t=[];if("overlap"!==S){const e="vertical"===S?"height":"width";o.forEach((n=>{const r=V.getDerivedFromVars(n.json[e]);t.push(r)}))}n(8,D=Xe(t,(t=>t))),v(),v=_t(D,(t=>n(19,d=t)))}if(3702848&t.$$.dirty[0]){let t={};if("overlap"!==S){const e="vertical"===S?"height":"width",n="vertical"===S?"wrap_content"===(null==f?void 0:f.type)||!f:"wrap_content"===(null==h?void 0:h.type);let r=d.map((t=>!t&&"width"===e||"match_parent"===(null==t?void 0:t.type)?n?(V.logError(dn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"})),"minmax(0, auto)"):(Number(null==t?void 0:t.weight)||1)+"fr":t&&"wrap_content"===t.type&&t.constrained?"minmax(0, auto)":"auto")).join(" ");t["vertical"===S?"grid-template-rows":"grid-template-columns"]=r}n(6,z=zn(t,z))}229376&t.$$.dirty[0]&&n(9,u={orientation:S,valign:I,halign:F})},[w,k,C,E,P,N,z,o,D,u,c,s,l,a,i,S,I,F,r,d,h,f,p,g,m]}const Nr={separator:"divkit-a30b",separator_orientation_horizontal:"divkit-f529",separator_orientation_vertical:"divkit-e9e2",separator__inner:"divkit-db7d"};function zr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Mr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Nr.separator__inner),Ht(e,"style",r=pn(t[5]))},m(t,n){Jt(t,e,n)},p(t,n){32&n&&r!==(r=pn(t[5]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Jr(t){let e,n=t[6]&&Mr(t);return{c(){n&&n.c(),e=Ut()},l(t){n&&n.l(t),e=Ut()},m(t,r){n&&n.m(t,r),Jt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Mr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Ot(e)}}}function Or(t){let e,n;return e=new rr({props:{cls:En("separator",Nr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Jr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=En("separator",Nr,t[4])),1&r&&(o.json=t[0]),4&r&&(o.origJson=t[2]),2&r&&(o.templateContext=t[1]),8&r&&(o.layoutParams=t[3]),16480&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Tr(t,e,n){let r,o,i,a,l,s,c,u=ct;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:f}=e,{layoutParams:p}=e;const g=fe(un);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,f=t.origJson),"layoutParams"in t&&n(3,p=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=_t(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=zr(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=E(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":gn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?gn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,f,p,s,l,o,r,m,v,a,i,c]}const Br={image:"divkit-a448","image_is-width-content":"divkit-fe14","image_is-height-content":"divkit-f4d9",image__image:"divkit-ce04",image_error:"divkit-f10d","image__aspect-wrapper":"divkit-dc80",image_aspect:"divkit-ae78"};function Rr(t){let e,n;return e=new rr({props:{cls:En("image",Br,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Ur]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=En("image",Br,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]),9968&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Lr(t){let e,n,r,o,i,a,l;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Ht(e,"class",n=Br.image__image),vt(e.src,r=t[4]?Hr:t[7])||Ht(e,"src",r),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"style",o=pn(t[6])),Ht(e,"alt",t[13]),Ht(e,"aria-hidden",i=t[13]?null:"true")},m(n,r){Jt(n,e,r),a||(l=[qt(e,"load",t[23]),qt(e,"error",t[24])],a=!0)},p(t,n){144&n[0]&&!vt(e.src,r=t[4]?Hr:t[7])&&Ht(e,"src",r),64&n[0]&&o!==(o=pn(t[6]))&&Ht(e,"style",o),8192&n[0]&&Ht(e,"alt",t[13]),8192&n[0]&&i!==(i=t[13]?null:"true")&&Ht(e,"aria-hidden",i)},d(t){t&&Ot(e),a=!1,pt(l)}}}function Wr(t){let e,n,r,o,i,a,l,s,c="".concat(t[5],"%");return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=Br.image__image),vt(n.src,o=t[4]?Hr:t[7])||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"style",t[9]),Ht(n,"alt",t[13]),Ht(n,"aria-hidden",i=t[13]?null:"true"),Ht(e,"class",a=Br["image__aspect-wrapper"]),re(e,"padding-bottom",c,!1)},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=[qt(n,"load",t[23]),qt(n,"error",t[24])],l=!0)},p(t,r){144&r[0]&&!vt(n.src,o=t[4]?Hr:t[7])&&Ht(n,"src",o),512&r[0]&&Ht(n,"style",t[9]),8192&r[0]&&Ht(n,"alt",t[13]),8192&r[0]&&i!==(i=t[13]?null:"true")&&Ht(n,"aria-hidden",i),32&r[0]&&c!==(c="".concat(t[5],"%"))&&re(e,"padding-bottom",c,!1)},d(t){t&&Ot(e),l=!1,pt(s)}}}function Ur(t){let e;function n(t,e){return t[10].aspect?Wr:Lr}let r=n(t),o=r(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,n){o.m(t,n),Jt(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){o.d(t),t&&Ot(e)}}}function qr(t){let e,n,r=!t[8]&&Rr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),256&n[0]&&Fe(r,1)):(r=Rr(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}const Hr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";function Gr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,I=ct,F=ct,N=ct,z=ct,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,L=ct;t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:W={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=fe(un);let K=!1,X=!0,Y="rgba(0,0,0,0.08)",Z=!1,Q="",tt="none",et="50% 50%";let nt,rt="0",ot="";return de((()=>{G.removeSvgFilter(nt)})),t.$$set=t=>{"json"in t&&n(0,W=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,q=t.origJson),"layoutParams"in t&&n(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=G.getDerivedFromVars(W.image_url)),L(),L=_t(r,(t=>n(44,S=t)))),1&t.$$.dirty[0]&&(n(21,o=G.getDerivedFromVars(W.gif_url)),R(),R=_t(o,(t=>n(43,P=t)))),12288&t.$$.dirty[1]&&n(7,i=S||P),128&t.$$.dirty[0]&&(n(25,X=!0),n(4,K=!1)),128&t.$$.dirty[0]&&(i?n(8,Z=!1):(n(8,Z=!0),G.logError(dn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(20,a=G.getDerivedFromVars(W.width)),B(),B=_t(a,(t=>n(42,D=t)))),2048&t.$$.dirty[1]&&n(33,l="wrap_content"===(null==D?void 0:D.type)),1&t.$$.dirty[0]&&(n(19,s=G.getDerivedFromVars(W.height)),T(),T=_t(s,(t=>n(41,V=t)))),1024&t.$$.dirty[1]&&n(32,c="wrap_content"===(null==V?void 0:V.type)),1&t.$$.dirty[0]&&(n(18,u=G.getDerivedFromVars(W.preview)),O(),O=_t(u,(t=>n(40,j=t)))),33554448&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=j;(X||K)&&t?t.startsWith("data:")?n(27,Q='url("'.concat(vn(t),'")')):n(27,Q='url("data:image/jpg;base64,'.concat(vn(t),'")')):n(27,Q="")}if(1&t.$$.dirty[0]&&(n(17,d=G.getDerivedFromVars(W.placeholder_color)),J(),J=_t(d,(t=>n(39,A=t)))),33554448&t.$$.dirty[0]|256&t.$$.dirty[1]&&function(t,e,r){n(26,Y=t||e?E(r,1,Y):"")}(X,K,A),1&t.$$.dirty[0]&&(n(16,h=G.getDerivedFromVars(W.scale)),M(),M=_t(h,(t=>n(38,C=t)))),268435456&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(28,tt=_n(C)||tt),1&t.$$.dirty[0]&&(n(15,f=G.getDerivedFromVars({content_alignment_horizontal:W.content_alignment_horizontal,content_alignment_vertical:W.content_alignment_vertical})),z(),z=_t(f,(t=>n(37,k=t)))),64&t.$$.dirty[1]&&n(29,et=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:bn(t)}(k,et)),1&t.$$.dirty[0]&&(n(14,p=G.getDerivedFromVars(W.accessibility)),N(),N=_t(p,(t=>n(36,w=t)))),32&t.$$.dirty[1]&&n(13,g=(null==w?void 0:w.description)||""),1&t.$$.dirty[0]&&(n(12,m=G.getDerivedFromVars(W.aspect)),F(),F=_t(m,(t=>n(35,x=t)))),16&t.$$.dirty[1]){const t=null==x?void 0:x.ratio;t&&ar(t)?n(5,rt=(100/Number(t)).toFixed(2)):n(5,rt="0")}if(1&t.$$.dirty[0]&&(n(11,v=G.getDerivedFromVars(W.tint_color)),I(),I=_t(v,(t=>n(34,b=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]){const t=b,e=t?E(t):void 0;e!==nt&&(G.removeSvgFilter(nt),n(31,ot=e?G.addSvgFilter(e):""),n(30,nt=e))}32&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(10,$={aspect:"0"!==rt,"is-width-content":l,"is-height-content":c}),1040187408&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(6,y={"background-image":Q,"background-color":Y,"object-fit":tt,"object-position":et,filter:X||K||!ot?"":"url(#".concat(ot,")")}),64&t.$$.dirty[0]&&n(9,_=pn(y))},[W,U,q,H,K,rt,y,i,Z,_,$,v,m,g,p,f,h,d,u,s,a,o,r,function(){n(25,X=!1)},function(){n(4,K=!0)},X,Y,Q,tt,et,nt,ot,c,l,b,x,w,k,C,A,j,V,D,P,S]}const Kr=class extends He{constructor(t){super(),qe(this,t,Gr,qr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Xr={grid:"divkit-d908",grid_halign_left:"divkit-f63b",grid_halign_center:"divkit-a14a",grid_halign_right:"divkit-b071",grid_valign_top:"divkit-fbca",grid_valign_center:"divkit-d431",grid_valign_bottom:"divkit-e420"};function Yr(t){return t>0&&t<1}function Zr(t){return String(Math.ceil(1e3*t)/1e3)}function Qr(t,e,n){if(t.some(Yr)){const e=Math.max(...t.filter(Yr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(gn(r*t[e]/o),",").concat(Zr(t[e]),"fr)"):t[e]?i[e]="".concat(Zr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function to(t,e,n){const r=t.slice();return r[29]=e[n],r}function eo(t){let e,n;return e=new rr({props:{cls:En("grid",Xr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[ro]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=En("grid",Xr,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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function no(t){let e,n;return e=new Yi({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ro(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=no(to(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(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 i=to(t,r,a);o[a]?(o[a].p(i,n),Fe(o[a],1)):(o[a]=no(i),o[a].c(),Fe(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Ie()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Fe(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function oo(t){let e,n,r=!t[6]&&eo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[6]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),64&n[0]&&Fe(r,1)):(r=eo(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function io(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=ct,m=ct,v=ct,$=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$()));let{json:y={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:x}=e;const w=fe(un);let k,C,E=!1,A=1,j=[],V=[],D=[],P=[],S=0,I=!1,F="top",N="left";return t.$$set=t=>{"json"in t&&n(0,y=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=y.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,E=!1):(n(12,E=!0),w.logError(dn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=w.getDerivedFromVars(y.column_count)),$(),$=_t(o,(t=>n(27,p=t)))),134225920&t.$$.dirty[0]&&n(13,A=ir(p,A)),8392706&t.$$.dirty[0]&&n(22,i=(!E&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=w.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(w.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Xe(t,(t=>t))),v(),v=_t(k,(t=>n(26,f=t)))}if(72081408&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,j=[]),n(15,V=[]),n(16,D=[]),n(17,P=[]),n(19,I=!1),n(5,C=i.map(((o,i)=>{var a,l,s,c;const u=f[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={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,$=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=r;e<r+h;++e)t[o+"_"+e]?n(19,I=!0):(t[o+"_"+e]=!0,(!j[o]||j[o]<g)&&n(14,j[o]=g,j),(!V[e]||V[e]<m)&&n(15,V[e]=m,V),(!D[o]||D[o]<v)&&n(16,D[o]=v,D),(!P[e]||P[e]<$)&&n(17,P[e]=$,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p}})}))),0!==e&&n(19,I=!0),I&&w.logError(dn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=w.getDerivedFromVars(y.content_alignment_vertical)),m(),m=_t(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,F=gr(h,F)),1&t.$$.dirty[0]&&(n(9,l=w.getDerivedFromVars(y.content_alignment_horizontal)),g(),g=_t(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,N=pr(d,N)),3145728&t.$$.dirty[0]&&n(8,s={valign:F,halign:N}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Qr(j,D,A),"grid-template-rows":Qr(V,P,S)}),528384&t.$$.dirty[0]&&n(6,u=E||I)},[y,_,b,x,k,C,u,c,s,l,a,o,E,A,j,V,D,P,S,I,F,N,i,r,d,h,f,p]}const ao={gallery:"divkit-cbb0",gallery_orientation_horizontal:"divkit-c9be",gallery_orientation_vertical:"divkit-a72d",gallery__scroller:"divkit-a4e3","gallery_scroll-snap":"divkit-f606","gallery__items-grid":"divkit-eb4a",gallery__items:"divkit-af27",gallery__arrow:"divkit-b72d","gallery__arrow-icon":"divkit-d100",gallery__arrow_left:"divkit-a0a5",gallery__arrow_right:"divkit-f0f5","gallery__arrow-icon-path":"divkit-b417"};function lo(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}const{Boolean:so}=Je;function co(t,e,n){const r=t.slice();return r[57]=e[n],r[58]=e,r[59]=n,r}function uo(t,e,n){const r=t.slice();return r[60]=e[n],r}function ho(t){let e,n;return e=new rr({props:{cls:En("gallery",ao,t[14]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[5],forceWidth:"horizontal"===t[5],$$slots:{default:[$o]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16384&n[0]&&(r.cls=En("gallery",ao,t[14])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32&n[0]&&(r.forceHeight="vertical"===t[5]),32&n[0]&&(r.forceWidth="horizontal"===t[5]),4296672&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function fo(t){let e,n;return e=new Yi({props:{layoutParams:t[7],div:t[60].json,templateContext:t[60].templateContext,origJson:t[60].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.layoutParams=t[7]),4194304&n[0]&&(r.div=t[60].json),4194304&n[0]&&(r.templateContext=t[60].templateContext),4194304&n[0]&&(r.origJson=t[60].origJson),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function po(t){let e,n,r,o,i,a=t[59],l=t[57],s=[];for(let e=0;e<l.length;e+=1)s[e]=fo(uo(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null})),u=()=>t[45](e,a),d=()=>t[45](null,a);return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=ao.gallery__items),Ht(e,"style",o=pn(t[15]))},m(t,r){Jt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Mt(e,n),u(),i=!0},p(r,h){if(t=r,4194432&h[0]){let r;for(l=t[57],r=0;r<l.length;r+=1){const o=uo(t,l,r);s[r]?(s[r].p(o,h),Fe(s[r],1)):(s[r]=fo(o),s[r].c(),Fe(s[r],1),s[r].m(e,n))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Ie()}(!i||32768&h[0]&&o!==(o=pn(t[15])))&&Ht(e,"style",o),a!==t[59]&&(d(),a=t[59],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Fe(s[t]);i=!0}},o(t){s=s.filter(so);for(let t=0;t<s.length;t+=1)Ne(s[t]);i=!1},d(t){t&&Ot(e),Tt(s,t),d()}}}function go(t){let e,n,r=t[10]&&mo(t),o=t[11]&&vo(t);return{c(){r&&r.c(),e=Wt(),o&&o.c(),n=Ut()},l(t){r&&r.l(t),e=ee(t),o&&o.l(t),n=Ut()},m(t,i){r&&r.m(t,i),Jt(t,e,i),o&&o.m(t,i),Jt(t,n,i)},p(t,i){t[10]?r?r.p(t,i):(r=mo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]?o?o.p(t,i):(o=vo(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Ot(e),o&&o.d(t),t&&Ot(n)}}}function mo(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=ao["gallery__arrow-icon-path"]),Ht(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Ht(n,"class",i=ao["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=ao.gallery__arrow+" "+ao.gallery__arrow_left+" "+cn)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[47]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function vo(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=ao["gallery__arrow-icon-path"]),Ht(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Ht(n,"class",i=ao["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=ao.gallery__arrow+" "+ao.gallery__arrow_right+" "+cn)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[48]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function $o(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[22],f=[];for(let e=0;e<h.length;e+=1)f[e]=po(co(t,h,e));const p=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g="horizontal"===t[5]&&go(t);return{c(){e=Bt("div"),n=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();l=Wt(),g&&g.c(),s=Ut(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,style:!0});var o=Kt(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(Ot),r.forEach(Ot),l=ee(t),g&&g.l(t),s=Ut(),this.h()},h(){Ht(n,"class",r=ao["gallery__items-grid"]),Ht(n,"style",o=pn(t[16])),Ht(e,"class",i=ao.gallery__scroller),Ht(e,"style",a=pn(t[6]))},m(r,o){Jt(r,e,o),Mt(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[46](e),Jt(r,l,o),g&&g.m(r,o),Jt(r,s,o),c=!0,u||(d=qt(e,"scroll",t[25]),u=!0)},p(t,r){if(4227712&r[0]){let e;for(h=t[22],e=0;e<h.length;e+=1){const o=co(t,h,e);f[e]?(f[e].p(o,r),Fe(f[e],1)):(f[e]=po(o),f[e].c(),Fe(f[e],1),f[e].m(n,null))}for(Se(),e=h.length;e<f.length;e+=1)p(e);Ie()}(!c||65536&r[0]&&o!==(o=pn(t[16])))&&Ht(n,"style",o),(!c||64&r[0]&&a!==(a=pn(t[6])))&&Ht(e,"style",a),"horizontal"===t[5]?g?g.p(t,r):(g=go(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)Fe(f[t]);c=!0}},o(t){f=f.filter(so);for(let t=0;t<f.length;t+=1)Ne(f[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[46](null),n&&Ot(l),g&&g.d(n),n&&Ot(s),u=!1,d()}}}function yo(t){let e,n,r=!t[4]&&ho(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),16&n[0]&&Fe(r,1)):(r=ho(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function _o(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C=ct,E=ct,A=ct,j=ct,V=ct,D=ct,P=ct,S=ct;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:I={}}=e,{templateContext:F}=e,{origJson:N}=e,{layoutParams:z}=e;const M=fe(un);let J,O,T,B=[],R=!1,L=!1,W=!1,U=1,q="horizontal",H="start",G=8,K="",X=[],Y={},Z=!1,Q={},tt=0;function et(){const t=J.scrollLeft,e=J.scrollWidth,r=J.offsetWidth;n(10,R=t>2),n(11,L=t+r<e-2)}function nt(t){J.scroll({left:J.scrollLeft+.75*J.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function rt(){let t=[],e=B[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<U;++e){const r=B[e].children[n];r&&t.push(r)}return t}function ot(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===q,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";J.scroll({[i]:Math.max(0,t[e][o]-G/2),behavior:n})}function it(t){const e=rt(),n=J.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===q?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===q?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return ue((()=>{!W&&(et(),tt)&&ot(rt(),tt,"auto")})),I.id&&!W&&M.registerInstance(I.id,{setCurrentItem(t){const e=rt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');ot(e,t)},setPreviousItem(t){const e=it("prev"),n=rt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),ot(n,r)},setNextItem(t){const e="horizontal"===q?J.scrollLeft+J.offsetWidth===J.scrollWidth:J.scrollTop+J.offsetHeight===J.scrollHeight,n=rt();if(e&&"ring"===t)return void ot(n,0);const r=it("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),ot(n,o)}}),t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,F=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(36,r=I.items),32&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,W=!1):(n(4,W=!0),M.logError(dn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),18&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(35,o=(!W&&r||[]).map((t=>{let e=t,n=F;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(23,i=M.getDerivedFromVars(I.column_count)),S(),S=_t(i,(t=>n(44,k=t)))),67108864&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(26,U=ir(k,U)),67108864&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(22,a=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(o,U)),1&t.$$.dirty[0]&&(n(21,l=M.getDerivedFromVars(I.orientation)),P(),P=_t(l,(t=>n(43,w=t)))),32&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(5,q=zr(w,q)),1&t.$$.dirty[0]&&(n(20,s=M.getDerivedFromVars(I.cross_content_alignment)),D(),D=_t(s,(t=>n(42,x=t)))),134217728&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(27,H=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(x,H)),1&t.$$.dirty[0]&&(n(19,c=M.getDerivedFromVars(I.item_spacing)),V(),V=_t(c,(t=>n(41,b=t)))),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]&&(n(29,G=In(b,G)),n(28,O=gn(G))),1&t.$$.dirty[0]&&(n(18,u=M.getDerivedFromVars(I.paddings)),j(),j=_t(u,(t=>n(40,_=t)))),1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(30,K=Sn(_,K)),32&t.$$.dirty[0]&&n(34,d="horizontal"===q?"grid-template-columns":"grid-template-rows"),32&t.$$.dirty[0]|16&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===q?"width":"height";t.push(M.getDerivedFromVars(e.json[n]))})),n(12,T=Xe(t,(t=>t))),A(),A=_t(T,(t=>n(39,y=t)))}if(67108896&t.$$.dirty[0]|257&t.$$.dirty[1]&&(n(31,X=[]),U>1?X.push("auto"):y.forEach((t=>{!t&&"horizontal"===q||"match_parent"===(null==t?void 0:t.type)?X.push("100%"):X.push("max-content")}))),1&t.$$.dirty[0]&&(n(17,h=M.getDerivedFromVars(I.scroll_mode)),E(),E=_t(h,(t=>n(38,$=t)))),738197728&t.$$.dirty[0]|128&t.$$.dirty[1]){const t={};let e={};n(32,Z=!1),"horizontal"===q?e.parentVAlign=H:e.parentHAlign=H,"paging"===$&&(n(32,Z=!0),e.scrollSnap="start",t["horizontal"===q?"scroll-padding-left":"scroll-padding-top"]=gn(G/2)),1===U&&(e.parentLayoutOrientation=q),n(6,Y=zn(t,Y)),n(7,Q=zn(e,Q))}1342177280&t.$$.dirty[0]&&n(16,f={padding:K,"grid-gap":O}),268435456&t.$$.dirty[0]|9&t.$$.dirty[1]&&n(15,p={"grid-gap":O,[d]:lo(X)}),32&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,g={orientation:q,"scroll-snap":Z}),1&t.$$.dirty[0]&&(n(13,m=M.getDerivedFromVars(I.default_item)),C(),C=_t(m,(t=>n(37,v=t)))),68&t.$$.dirty[1]&&n(33,tt=In(v,tt))},[I,F,N,z,W,q,Y,Q,J,B,R,L,T,m,g,p,f,h,u,c,s,l,a,i,nt,function(){et()},U,H,O,G,K,X,Z,tt,d,o,r,v,$,y,_,b,x,w,k,function(t,e){me[t?"unshift":"push"]((()=>{B[e]=t,n(9,B)}))},function(t){me[t?"unshift":"push"]((()=>{J=t,n(8,J)}))},()=>nt("left"),()=>nt("right")]}const bo={tabs:"divkit-e0df",tabs__list:"divkit-ea19",tabs__item:"divkit-c25c",tabs__item_selected:"divkit-d560",tabs__item_actionable:"divkit-dfda",tabs__panels:"divkit-f5dc",tabs__swiper:"divkit-eb42",tabs__swiper_animated:"divkit-b9f1",tabs__swiper_inited:"divkit-fa57",tabs__panel:"divkit-cc9f",tabs__panel_visible:"divkit-e730",tabs__separator:"divkit-b85b"},{Boolean:xo}=Je;function wo(t,e,n){const r=t.slice();return r[72]=e[n],r[74]=n,r}function ko(t,e,n){const r=t.slice();r[72]=e[n],r[74]=n;const o=r[74]===r[5];return r[75]=o,r}function Co(t){let e,n;return e=new rr({props:{cls:En("tabs",bo,t[34]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[Po]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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]),402653154&n[0]|32768&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Eo(t){let e,n,r=t[72].title+"";return{c(){e=Lt(r),n=Wt()},l(t){e=te(t,r),n=ee(t)},m(t,r){Jt(t,e,r),Jt(t,n,r)},p(t,n){32768&n[0]&&r!==(r=t[72].title+"")&&ne(e,r)},d(t){t&&Ot(e),t&&Ot(n)}}}function Ao(t){let e,n;return e=new Ln({props:{cls:En("tabs__item",bo,{selected:t[75],actionable:Boolean(t[72].title_click_action)}),actions:t[72].title_click_action?[t[72].title_click_action]:[],attrs:{id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"},customAction:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[48](t[74],...n)},$$slots:{default:[Eo]},$$scope:{ctx:t}}}),e.$on("keydown",t[36]),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(n,r){t=n;const o={};32800&r[0]&&(o.cls=En("tabs__item",bo,{selected:t[75],actionable:Boolean(t[72].title_click_action)})),32768&r[0]&&(o.actions=t[72].title_click_action?[t[72].title_click_action]:[]),32800&r[0]&&(o.attrs={id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"}),32768&r[0]|32768&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function jo(t){let e,n,r;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=bo.tabs__separator),Ht(e,"style",r=pn(t[28]))},m(t,n){Jt(t,e,n)},p(t,n){268435456&n[0]&&r!==(r=pn(t[28]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Vo(t){let e,n;return e=new Yi({props:{div:t[72].div,templateContext:t[1]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.div=t[72].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Do(t){let e,n,r,o,i,a,l=t[24][t[74]]&&Vo(t);return{c(){e=Bt("div"),l&&l.c(),n=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Kt(e);l&&l.l(r),n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=En("tabs__panel",bo,{visible:t[25][t[74]]})),Ht(e,"role","tabpanel"),Ht(e,"id",o=t[33]+"-panel-"+t[74]),Ht(e,"aria-labelledby",i=t[33]+"-tab-"+t[74]),re(e,"left",100*t[74]+"%")},m(t,r){Jt(t,e,r),l&&l.m(e,null),Mt(e,n),a=!0},p(t,o){t[24][t[74]]?l?(l.p(t,o),16777216&o[0]&&Fe(l,1)):(l=Vo(t),l.c(),Fe(l,1),l.m(e,n)):l&&(Se(),Ne(l,1,1,(()=>{l=null})),Ie()),(!a||33554432&o[0]&&r!==(r=En("tabs__panel",bo,{visible:t[25][t[74]]})))&&Ht(e,"class",r)},i(t){a||(Fe(l),a=!0)},o(t){Ne(l),a=!1},d(t){t&&Ot(e),l&&l.d()}}}function Po(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[15],f=[];for(let e=0;e<h.length;e+=1)f[e]=Ao(ko(t,h,e));const p=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g=t[16]&&jo(t),m=t[15],v=[];for(let e=0;e<m.length;e+=1)v[e]=Do(wo(t,m,e));const $=t=>Ne(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();r=Wt(),g&&g.c(),o=Wt(),i=Bt("div"),a=Bt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0});var n=Kt(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(Ot),r=ee(t),g&&g.l(t),o=ee(t),i=Zt(t,"DIV",{class:!0});var l=Kt(i);a=Zt(l,"DIV",{class:!0});var s=Kt(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Ot),l.forEach(Ot),this.h()},h(){Ht(e,"class",n=bo.tabs__list),Ht(e,"role","tablist"),re(e,"--divkit-tabs-font-size",gn(t[6]),!1),re(e,"--divkit-tabs-paddings",t[7],!1),re(e,"--divkit-tabs-line-height",t[20],!1),re(e,"--divkit-tabs-letter-spacing",t[21],!1),re(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),re(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),re(e,"--divkit-tabs-active-text-color",t[11],!1),re(e,"--divkit-tabs-inactive-text-color",t[12],!1),re(e,"--divkit-tabs-active-background-color",t[13],!1),re(e,"--divkit-tabs-inactive-background-color",t[14],!1),re(e,"--divkit-tabs-border-radius",t[8],!1),Ht(a,"class",l=En("tabs__swiper",bo,{inited:t[22],animated:t[23]})),Ht(i,"class",s=bo.tabs__panels)},m(n,l){Jt(n,e,l);for(let t=0;t<f.length;t+=1)f[t].m(e,null);t[49](e),Jt(n,r,l),g&&g.m(n,l),Jt(n,o,l),Jt(n,i,l),Mt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[50](a),t[51](i),c=!0,u||(d=[qt(a,"touchstart",(function(){gt(t[26]?t[37]:void 0)&&(t[26]?t[37]:void 0).apply(this,arguments)})),qt(a,"touchmove",(function(){gt(t[26]?t[38]:void 0)&&(t[26]?t[38]:void 0).apply(this,arguments)})),qt(a,"touchend",(function(){gt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)})),qt(a,"touchcancel",(function(){gt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)}))],u=!0)},p(n,r){if(t=n,32800&r[0]|52&r[1]){let n;for(h=t[15],n=0;n<h.length;n+=1){const o=ko(t,h,n);f[n]?(f[n].p(o,r),Fe(f[n],1)):(f[n]=Ao(o),f[n].c(),Fe(f[n],1),f[n].m(e,null))}for(Se(),n=h.length;n<f.length;n+=1)p(n);Ie()}if(64&r[0]&&re(e,"--divkit-tabs-font-size",gn(t[6]),!1),128&r[0]&&re(e,"--divkit-tabs-paddings",t[7],!1),1048576&r[0]&&re(e,"--divkit-tabs-line-height",t[20],!1),2097152&r[0]&&re(e,"--divkit-tabs-letter-spacing",t[21],!1),512&r[0]&&re(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),1024&r[0]&&re(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),2048&r[0]&&re(e,"--divkit-tabs-active-text-color",t[11],!1),4096&r[0]&&re(e,"--divkit-tabs-inactive-text-color",t[12],!1),8192&r[0]&&re(e,"--divkit-tabs-active-background-color",t[13],!1),16384&r[0]&&re(e,"--divkit-tabs-inactive-background-color",t[14],!1),256&r[0]&&re(e,"--divkit-tabs-border-radius",t[8],!1),t[16]?g?g.p(t,r):(g=jo(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),50364418&r[0]|4&r[1]){let e;for(m=t[15],e=0;e<m.length;e+=1){const n=wo(t,m,e);v[e]?(v[e].p(n,r),Fe(v[e],1)):(v[e]=Do(n),v[e].c(),Fe(v[e],1),v[e].m(a,null))}for(Se(),e=m.length;e<v.length;e+=1)$(e);Ie()}(!c||12582912&r[0]&&l!==(l=En("tabs__swiper",bo,{inited:t[22],animated:t[23]})))&&Ht(a,"class",l)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Fe(f[t]);for(let t=0;t<m.length;t+=1)Fe(v[t]);c=!0}},o(t){f=f.filter(xo);for(let t=0;t<f.length;t+=1)Ne(f[t]);v=v.filter(xo);for(let t=0;t<v.length;t+=1)Ne(v[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[49](null),n&&Ot(r),g&&g.d(n),n&&Ot(o),n&&Ot(i),Tt(v,n),t[50](null),t[51](null),u=!1,pt(d)}}}function So(t){let e,n,r=!t[4]&&Co(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),16&n[0]&&Fe(r,1)):(r=Co(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Io(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function Fo(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=ct,$=ct,y=ct,_=ct,b=ct;var x;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b()));let{json:w={}}=e,{templateContext:k}=e,{origJson:C}=e,{layoutParams:A}=e;const j=fe(un),V=j.genId("tabs");let D,P,S,I=!1;const F=j.getJsonWithVars(w.selected_tab);let N,z,M=F&&Number(F)||0,J=12,O="",T="",B="",R="",L="",W="",U="",q="",H="",G="",K=!1,X=!1,Y=M,Z=[],Q=[];async function tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Y=M,n(5,M=t),st(),rt(),e){await xe();const t=D.querySelector(".".concat(bo.tabs__item_selected));t&&t.focus()}}function et(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let o=M+t;o>=n?o=0:o<0&&(o=n-1),tt(o,e)}function nt(t,e){return M===e||(tt(e),!1)}function rt(){n(23,X=!0),ot(100*-M),it(),async function(){await xe();const t=document.getElementById("".concat(V,"-panel-").concat(M));t&&n(18,P.style.height=gn(t.offsetHeight),P)}(),lt(),ht=-M*P.clientWidth}async function ot(t){await xe(),n(19,S.style.transform="translate3d(".concat(t,"%,0,0)"),S)}function it(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,M-1):Math.min(M,Y),o=t?Math.min(r.length-1,M+1):Math.max(M,Y);n(24,Z=Z.map(((t,n)=>t||n>=e&&n<=o))),n(25,Q=Q.map(((t,n)=>n>=e&&n<=o)))}let at=null;function lt(){at&&clearTimeout(at),at=window.setTimeout((()=>{n(25,Q=r.map(((t,e)=>e===M)))}),400)}function st(){K||(n(22,K=!0),n(18,P.style.height=gn(P.clientHeight),P),n(19,S.style.transform="translate3d(".concat(100*-Y,"%,0,0)"),S))}let ut,dt,ht,ft=null,pt=null,gt=!1,mt=!1;return w.id&&!I&&j.registerInstance(w.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');tt(t)},setPreviousItem(t){let e=M-1;e<0&&(e="ring"===t?r.length-1:M),tt(e)},setNextItem(t){let e=M+1;e>r.length-1&&(e="ring"===t?0:M),tt(e)}}),t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,A=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(15,r=w.items||[]),32768&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,I=!1):(n(4,I=!0),j.logError(dn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),32817&t.$$.dirty[0]&&!I&&(M<0||M>=r.length)&&(j.logError(dn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:w.selected_tab,length:r.length}})),n(5,M=M<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(32,o=j.getDerivedFromVars(w.tab_title_style)),b(),b=_t(o,(t=>n(47,m=t)))),65536&t.$$.dirty[1]&&n(43,i=m||{}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(6,J=ir(i.font_size,J)),192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(i.font_size||i.paddings)){const t=i.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/J*10,right:(Number(t.right)||0)/J*10,bottom:(Number(t.bottom)||0)/J*10,left:(Number(t.left)||0)/J*10};n(7,O=Sn(e,O))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.line_height;void 0!==t&&ar(t)&&n(20,T=gn(t/J*10))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.letter_spacing;void 0!==t&&Dn(t)&&n(21,B=gn(t/J*10))}if(320&t.$$.dirty[0]|4608&t.$$.dirty[1]&&(i.corner_radius||i.corners_radius||i.font_size)){const t=null!==n(40,x=i.corner_radius)&&void 0!==x?x:1e3;i.corners_radius?n(8,R=Pn(i.corners_radius,t,J,R)):Dn(t)&&n(8,R=gn(t/J*10))}512&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(9,N=sr(i.active_font_weight||i.font_weight,N)),1024&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(10,z=sr(i.inactive_font_weight||i.font_weight,z)),2048&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(11,L=E(i.active_text_color,1,L)),4096&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(12,W=E(i.inactive_text_color,1,W)),8192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(13,U=E(i.active_background_color,1,U)),16384&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(14,q=E(i.inactive_background_color,1,q)),1&t.$$.dirty[0]&&(n(31,a=j.getDerivedFromVars(w.has_separator)),_(),_=_t(a,(t=>n(16,g=t)))),1&t.$$.dirty[0]&&(n(30,l=j.getDerivedFromVars(w.separator_color)),y(),y=_t(l,(t=>n(46,p=t)))),1&t.$$.dirty[0]&&(n(29,s=j.getDerivedFromVars(w.separator_paddings)),$(),$=_t(s,(t=>n(45,f=t)))),65536&t.$$.dirty[0]|52224&t.$$.dirty[1]&&g&&(p&&n(41,H=E(p,1,H)),f&&n(42,G=Sn(f,G))),3072&t.$$.dirty[1]&&n(28,c={background:H,margin:G}),1&t.$$.dirty[0]&&(n(27,u=j.getDerivedFromVars(w.switch_tabs_by_content_swipe_enabled)),v(),v=_t(u,(t=>n(44,h=t)))),8192&t.$$.dirty[1]&&n(26,d=void 0===h||Boolean(h)),32768&t.$$.dirty[0]&&(I||(n(24,Z=r.map(((t,e)=>e===M))),n(25,Q=r.map(((t,e)=>e===M)))))},[w,k,C,A,I,M,J,O,R,N,z,L,W,U,q,r,g,D,P,S,T,B,K,X,Z,Q,d,u,c,s,l,a,o,V,{},nt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)et(-1,!0);else if(39===t.which)et(1,!0);else if(36===t.which)tt(0,!0);else{if(35!==t.which)return;tt(r.length-1,!0)}t.preventDefault()}},function(t){r.length<2||t.touches.length>1||(gt=!1,mt=!1,ft=Io(t),pt=null,ut=Date.now(),dt=ht||-M*P.clientWidth,n(23,X=!1),at&&clearTimeout(at))},function(t){const e=Io(t);if(!ft||pt&&pt.x===e.x&&pt.y===e.y)return;pt=e;const n=P.clientWidth;if(gt){ht=e.x-ft.x+dt;const t=n*r.length;if(ht>0)ht=ht*n/(ht+3*n);else if(-ht+n>t){let e=-ht+n-t;e=e*n/(e+3*n),ht=n-t-e}ot(100*ht/n)}else Math.abs(e.y-ft.y)>10?mt=!0:!mt&&Math.abs(e.x-ft.x)>8&&(st(),gt=!0,ft=e,ot(100*-M),it(!0));gt&&t.cancelable&&t.preventDefault()},function(){mt=!1,ft=null;let t=M;if(!gt)return;gt=!1;const e=Math.min(512,P.clientWidth);Math.abs(dt-ht)>e/4*Math.min(1,(Date.now()-ut)/750)&&(t+=dt>ht?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===M?(ht=-t*e,ot(100*-t),lt()):tt(t)},x,H,G,i,h,f,p,m,(t,e)=>nt(0,t),function(t){me[t?"unshift":"push"]((()=>{D=t,n(17,D)}))},function(t){me[t?"unshift":"push"]((()=>{S=t,n(19,S)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(18,P)}))}]}const No="divkit-eb86",zo="divkit-e08c";function Mo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Jo(t){return t*t*t}function Oo(t){const e=t-1;return e*e*e+1}function To(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Bo=To([.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]),Ro=To([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]),Lo={linear:ut,ease:Bo,ease_in:Jo,ease_out:Oo,ease_in_out:Mo,spring:Ro};function Wo(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:o,direction:i,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"===i?1-l:l,u=(Lo[t.interpolator||"ease_in_out"]||Mo)(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 i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,f;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=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)),f=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function qo(t,e,n){return t*(1-n)+e*n}const Ho={linear:ut,ease:Bo,ease_in:Jo,ease_out:Oo,ease_in_out:Mo,spring:Ro};function Go(t,e){var n,r;let{rootBbox:o,beforeBbox:i,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 Ho?Ho[l.interpolator]:Mo,css:t=>["top:".concat(qo(i.top,a.top,t)-o.top,"px"),"left:".concat(qo(i.left,a.left,t)-o.left,"px"),"width:".concat(qo(i.width,a.width,t),"px"),"height:".concat(qo(i.height,a.height,t),"px")].join(";")}}function Ko(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ko(t))})):e.push(t),e}const{Map:Xo}=Je;function Yo(t,e,n){const r=t.slice();return r[26]=e[n],r}function Zo(t){let e,n;return e=new rr({props:{cls:"divkit-b8ef",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[oi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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]),536871122&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Qo(t){let e,n,r=t[7],o=ti(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,r){o.m(t,r),Jt(t,e,r),n=!0},p(t,n){128&n&&$t(r,r=t[7])?(Se(),Ne(o,1,1,ct),Ie(),o=ti(t),o.c(),Fe(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Fe(o),n=!0)},o(t){Ne(o),n=!1},d(t){t&&Ot(e),o.d(t)}}}function ti(t){let e,n;return e=new Yi({props:{div:t[7].div,templateContext:t[1]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ei(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[26])}return r=new Yi({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);Le(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=zo),Ht(e,"class",a=No)},m(t,o){Jt(t,e,o),Mt(e,n),We(r,n,null),Mt(e,i),s=!0,c||(u=qt(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[26].json),64&n&&(o.templateContext=t[26].templateContext),r.$set(o)},i(n){s||(Fe(r.$$.fragment,n),l||we((()=>{l=Me(e,Go,t[26]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function ni(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[26])}return r=new Yi({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);Le(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=zo),Ht(e,"class",a=No),re(e,"left",t[26].offsetLeft+"px"),re(e,"top",t[26].offsetTop+"px"),re(e,"width",t[26].width+"px"),re(e,"height",t[26].height+"px")},m(t,o){Jt(t,e,o),Mt(e,n),We(r,n,null),Mt(e,i),s=!0,c||(u=qt(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[26].json),64&o&&(i.templateContext=t[26].templateContext),r.$set(i),(!s||64&o)&&re(e,"left",t[26].offsetLeft+"px"),(!s||64&o)&&re(e,"top",t[26].offsetTop+"px"),(!s||64&o)&&re(e,"width",t[26].width+"px"),(!s||64&o)&&re(e,"height",t[26].height+"px")},i(n){s||(Fe(r.$$.fragment,n),l||we((()=>{l=Me(e,Uo,t[26]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function ri(t,e){let n,r,o,i,a;const l=[ni,ei],s=[];function c(t,e){return"direction"in t[26]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Ut(),o.c(),i=Ut(),this.h()},l(t){n=Ut(),o.l(t),i=Ut(),this.h()},h(){this.first=n},m(t,e){Jt(t,n,e),s[r].m(t,e),Jt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Se(),Ne(s[a],1,1,(()=>{s[a]=null})),Ie(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Fe(o,1),o.m(i.parentNode,i))},i(t){a||(Fe(o),a=!0)},o(t){Ne(o),a=!1},d(t){t&&Ot(n),s[r].d(t),t&&Ot(i)}}}function oi(t){var e;let n,r,o,i,a=[],l=new Xo,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Qo(t),c=t[6];const u=t=>t[26];for(let e=0;e<c.length;e+=1){let n=Yo(t,c,e),r=u(n);l.set(r,a[e]=ri(r,n))}return{c(){s&&s.c(),n=Wt(),r=Bt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ee(t),r=Zt(t,"DIV",{class:!0});var e=Kt(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Ot),this.h()},h(){Ht(r,"class",o="divkit-adaa")},m(e,o){s&&s.m(e,o),Jt(e,n,o),Jt(e,r,o);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),i=!0},p(t,e){var o;null!==(o=t[7])&&void 0!==o&&o.div?s?(s.p(t,e),128&e&&Fe(s,1)):(s=Qo(t),s.c(),Fe(s,1),s.m(n.parentNode,n)):s&&(Se(),Ne(s,1,1,(()=>{s=null})),Ie()),320&e&&(c=t[6],Se(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,f=i.length,p=h;const g={};for(;p--;)g[t[p].key]=p;const m=[],v=new Map,$=new Map;for(p=f;p--;){const t=d(o,i,p),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[p]=l),r in g&&$.set(r,Math.abs(p-g[r]))}const y=new Set,_=new Set;function b(t){Fe(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;h&&f;){const e=m[f-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,f--):v.has(o)?!a.has(r)||y.has(r)?b(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),b(e)):(y.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;f;)b(m[f-1]);return m}(a,e,u,0,t,c,l,r,Oe,ri,null,Yo),Ie())},i(t){if(!i){Fe(s);for(let t=0;t<c.length;t+=1)Fe(a[t]);i=!0}},o(t){Ne(s);for(let t=0;t<a.length;t+=1)Ne(a[t]);i=!1},d(e){s&&s.d(e),e&&Ot(n),e&&Ot(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function ii(t){let e,n,r=!t[5]&&Zo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,o),32&o&&Fe(r,1)):(r=Zo(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ai(t){return"change_bounds"===t.type?t:"set"===t.type?ai(t.items[0]):null}function li(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=fe(un);let c,u=new Map,d=new Set,h=!1,f=null,p=[],g=[],m=[],v=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=Ko(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0}),templateContext:o,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}}const y=o.div_id||o.id;y?(fe(jn).registerInstance(y,{async setState(t){if(_===t)return;s.setRunning("stateChange",!0);const e=new Set(d);p.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,p=[]);let o=[];if(c){const t=c.getBoundingClientRect();o=m.map((e=>$(t,e,"out")))}v.forEach((t=>{u.set(t.id,t.node.getBoundingClientRect())})),g=[],m=[],v=[];const i=r.find((e=>e.state_id===t))||null;if(i?(_=t,n(7,b=i)):s.logError(dn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await xe(),!c)return;const a=c.getBoundingClientRect();let l=g.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")));o=o.filter((t=>{var e;return!(!t.json.id||d.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const h=o.concat(l),f=h.reduce(((t,e)=>Math.max(t,Wo(e.transitions))),0),y=v.filter((t=>u.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:u.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:ai(t.transitions),resolvePromise:t.resolvePromise})));n(6,p=[...h.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...y]),u.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(dn(new Error("Missing state block with id"),{additional:{id:t}}))}}),he(jn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(dn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},runVisibilityTransition(t,e,r,o,i){if(!c)return Promise.resolve();const a=$(c.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=Wo(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,p=[...p.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return g.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&u.has(t),registerChild(t){d.add(t)},unregisterChild(t){d.delete(t)}})):(h=!0,s.logError(dn(new Error('Missing "id" prop for div "state"'))));let _,b=null;const x=s.getJsonWithVars(o.default_state_id);let w=!1;function k(t){n(6,p=p.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return t.$$set=t=>{"json"in t&&n(0,o=t.json),"templateContext"in t&&n(1,i=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&o&&(d=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,h=!1):(n(5,h=!0),s.logError(dn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){w||(w=!0,t.length&&(x?(_=x,n(7,b=t.find((t=>t.state_id===_))||null),b||s.logError(dn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:_}}))):(n(7,b=t[0]),_=b.state_id)))}(r)},[o,i,a,l,c,h,p,b,k,r,t=>k(t),t=>k(t),function(t){me[t?"unshift":"push"]((()=>{c=t,n(4,c)}))}]}const si={pager:"divkit-c5fe",pager__items:"divkit-f698",pager_orientation_horizontal:"divkit-b0a1",pager_orientation_vertical:"divkit-f772"},{Boolean:ci}=Je;function ui(t,e,n){const r=t.slice();return r[44]=e[n],r}function di(t){let e,n;return e=new rr({props:{cls:En("pager",si,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[fi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=En("pager",si,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]),560&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function hi(t){let e,n;return e=new Yi({props:{layoutParams:t[14],div:t[44].json,templateContext:t[44].templateContext,origJson:t[44].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.div=t[44].json),16&n[0]&&(r.templateContext=t[44].templateContext),16&n[0]&&(r.origJson=t[44].origJson),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function fi(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=hi(ui(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null}));return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var n=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n=si.pager__items),Ht(e,"style",r=pn(t[9]))},m(n,r){Jt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[35](e),o=!0,i||(a=qt(e,"scroll",t[15]),i=!0)},p(t,n){if(16400&n[0]){let r;for(l=t[4],r=0;r<l.length;r+=1){const o=ui(t,l,r);s[r]?(s[r].p(o,n),Fe(s[r],1)):(s[r]=hi(o),s[r].c(),Fe(s[r],1),s[r].m(e,null))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Ie()}(!o||512&n[0]&&r!==(r=pn(t[9])))&&Ht(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Fe(s[t]);o=!0}},o(t){s=s.filter(ci);for(let t=0;t<s.length;t+=1)Ne(s[t]);o=!1},d(n){n&&Ot(e),Tt(s,n),t[35](null),i=!1,a()}}}function pi(t){let e,n,r=!t[7]&&di(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),128&n[0]&&Fe(r,1)):(r=di(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function gi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$=ct,y=ct,_=ct,b=ct,x=ct;var w,k,C,E,A,j,V;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:D={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:I}=e;const F=fe(un),N=F.genId("pager");let z,M=!1,J=0,O=!1,T="horizontal",B="",R="",L="";const W=function(t,e){let n;return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,r),n=null}),50)}}((function(){const t=function(){const t=Array.from(z.children),e=z.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===T?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:J}();t!==J&&n(24,J=t)}));function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===T,o=z.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";z.scroll({[a]:o[i],behavior:e}),n(24,J=t)}return D.id&&F.registerInstance(D.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');U(t)},setPreviousItem(t){let e=J-1;e<0&&(e="ring"===t?r.length-1:J),U(e)},setNextItem(t){let e=J+1;e>r.length-1&&(e="ring"===t?0:J),U(e)}}),ue((()=>{if(Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...z.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))}})),t.$$set=t=>{"json"in t&&n(0,D=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,I=t.layoutParams)},t.$$.update=()=>{if(65537&t.$$.dirty[0]&&((null===n(16,w=D.items)||void 0===w?void 0:w.length)&&Array.isArray(D.items)?n(23,M=!1):(n(23,M=!0),F.logError(dn(new Error('Incorrect or empty "items" prop for div "pager"'))))),8388611&t.$$.dirty[0]&&n(4,r=(!M&&D.items||[]).map((t=>{let e=t,n=P;return({templateContext:n,json:e}=F.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(13,o=F.getDerivedFromVars(D.layout_mode)),y(),y=_t(o,(t=>n(31,p=t)))),1&t.$$.dirty[1]&&(p?"percentage"!==p.type&&"fixed"!==p.type?(n(25,O=!0),F.logError(dn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(25,O=!1):(n(25,O=!0),F.logError(dn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(12,i=F.getDerivedFromVars(D.orientation)),x(),x=_t(i,(t=>n(34,v=t)))),67108864&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(26,T=zr(v,T)),1&t.$$.dirty[0]&&(n(11,a=F.getDerivedFromVars(D.item_spacing)),b(),b=_t(a,(t=>n(33,m=t)))),4&t.$$.dirty[1]){const t=null==m?void 0:m.value;t&&Dn(t)&&n(27,B=gn(t||0))}if(1&t.$$.dirty[0]&&(n(10,l=F.getDerivedFromVars(D.paddings)),_(),_=_t(l,(t=>n(32,g=t)))),268435456&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(28,R=Sn(g,R)),67108864&t.$$.dirty[0]&&n(30,s="horizontal"===T?"grid-auto-columns":"grid-auto-rows"),209584129&t.$$.dirty[0]|1&t.$$.dirty[1])if("fixed"===(null==p?void 0:p.type)){const t=mn("horizontal"===T?((null===n(17,k=D.paddings)||void 0===k?void 0:k.left)||0)+((null===n(18,C=D.paddings)||void 0===C?void 0:C.right)||0):((null===n(19,E=D.paddings)||void 0===E?void 0:E.top)||0)+((null===n(20,A=D.paddings)||void 0===A?void 0:A.bottom)||0)),e=null===n(21,j=p.neighbour_page_width)||void 0===j?void 0:j.value;n(29,L=e?"calc(100% + ".concat(t," - 2 * ").concat(mn(e)," - 2 * ").concat(B,")"):"100%")}else if("percentage"===(null==p?void 0:p.type)){const t=null===n(22,V=p.page_width)||void 0===V?void 0:V.value;n(29,L="".concat(Number(t),"%"))}2013265920&t.$$.dirty[0]&&n(9,c={"grid-gap":B,padding:R,[s]:L}),67108864&t.$$.dirty[0]&&n(8,u={orientation:T}),41943040&t.$$.dirty[0]&&n(7,d=M||O),16777232&t.$$.dirty[0]&&function(t,e){const n=D.id;if(n){const i=new Map(f);r=h,f=i.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:U}),o=f,r.set(o)}var r,o}(r.length,J)},n(6,h=F.getStore("pagers")),$(),$=_t(h,(t=>n(36,f=t))),[D,P,S,I,r,z,h,d,u,c,l,a,i,o,{scrollSnap:"center"},W,w,k,C,E,A,j,V,M,J,O,T,B,R,L,s,p,g,m,v,function(t){me[t?"unshift":"push"]((()=>{z=t,n(5,z)}))}]}const mi={indicator:"divkit-d8e3",indicator__scroller:"divkit-b5db",indicator__items:"divkit-d5d9",indicator__item:"divkit-f662",indicator__item_active:"divkit-b39c"};function vi(t,e,n){const r=t.slice();r[34]=e[n],r[37]=n;const o=r[37]===r[13].currentItem;return r[35]=o,r}function $i(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=yi(vi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Ut()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Ut()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Jt(t,e,n)},p(t,o){if(3153920&o[0]){let i;for(n=Array(t[13].size),i=0;i<n.length;i+=1){const a=vi(t,n,i);r[i]?r[i].p(a,o):(r[i]=yi(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){Tt(r,t),t&&Ot(e)}}}function yi(t){let e,n,r,o,i,a,l,s;function c(){return t[28](t[37])}return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=En("indicator__item",mi,{active:t[35]})+" "+an),Ht(e,"role","tab"),Ht(e,"id",r=t[13].instId+"-tab-"+t[37]),Ht(e,"aria-controls",o=t[13].instId+"-panel-"+t[37]),Ht(e,"aria-selected",i=t[35]?"true":"false"),Ht(e,"tabindex",a=t[35]?0:-1)},m(n,r){Jt(n,e,r),l||(s=[qt(e,"click",c),qt(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=En("indicator__item",mi,{active:t[35]})+" "+an)&&Ht(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[37])&&Ht(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[37])&&Ht(e,"aria-controls",o),8192&s[0]&&i!==(i=t[35]?"true":"false")&&Ht(e,"aria-selected",i),8192&s[0]&&a!==(a=t[35]?0:-1)&&Ht(e,"tabindex",a)},d(t){t&&Ot(e),l=!1,pt(s)}}}function _i(t){let e,n,r,o,i="0 ".concat(gn((t[10]-1)*t[4]/2)),a="0 ".concat(gn((t[9]-t[4])/2)),l=t[13]&&$i(t);return{c(){e=Bt("div"),n=Bt("div"),l&&l.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,role:!0});var o=Kt(n);l&&l.l(o),o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=mi.indicator__items),Ht(n,"role","tablist"),re(n,"margin",i,!1),re(n,"--divkit-indicator-width",gn(t[4]),!1),re(n,"--divkit-indicator-height",gn(t[5]),!1),re(n,"--divkit-indicator-border-radius",gn(t[6]),!1),re(n,"--divkit-indicator-active-color",t[7],!1),re(n,"--divkit-indicator-inactive-color",t[8],!1),re(n,"--divkit-indicator-active-scale",t[10],!1),re(n,"--divkit-indicator-margin",a,!1),Ht(e,"class",o=mi.indicator__scroller)},m(r,o){Jt(r,e,o),Mt(e,n),l&&l.m(n,null),t[29](n),t[30](e)},p(t,e){t[13]?l?l.p(t,e):(l=$i(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(gn((t[10]-1)*t[4]/2)))&&re(n,"margin",i,!1),16&e[0]&&re(n,"--divkit-indicator-width",gn(t[4]),!1),32&e[0]&&re(n,"--divkit-indicator-height",gn(t[5]),!1),64&e[0]&&re(n,"--divkit-indicator-border-radius",gn(t[6]),!1),128&e[0]&&re(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&re(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&re(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(gn((t[9]-t[4])/2)))&&re(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Ot(e),l&&l.d(),t[29](null),t[30](null)}}}function bi(t){let e,n;return e=new rr({props:{cls:En("indicator",mi,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[_i]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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]),16368&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function xi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=ct,m=ct,v=ct,$=ct,y=ct,_=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const C=fe(un);let A,j,V,D=10,P=10,S=5,I="#ffdc60",F=E("#33919cb5"),N=15,z=1.3;function M(t){t!==V.currentItem&&V.scrollToPagerItem(t)}async function J(t){V.scrollToPagerItem(t),await xe();const e=j.querySelector(".".concat(mi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=C.getDerivedFromVars(b.shape)),_(),_=_t(r,(t=>n(27,p=t)))),134217840&t.$$.dirty[0]&&p&&(p.item_width&&n(4,D=In(p.item_width.value,D)),p.item_height&&n(5,P=In(p.item_height.value,P)),p.corner_radius&&n(6,S=In(p.corner_radius.value,S))),1&t.$$.dirty[0]&&(n(18,o=C.getDerivedFromVars(b.active_item_color)),y(),y=_t(o,(t=>n(26,f=t)))),67108992&t.$$.dirty[0]&&n(7,I=E(f,1,I)),1&t.$$.dirty[0]&&(n(17,i=C.getDerivedFromVars(b.inactive_item_color)),$(),$=_t(i,(t=>n(25,h=t)))),33554688&t.$$.dirty[0]&&n(8,F=E(h,1,F)),1&t.$$.dirty[0]&&(n(16,a=C.getDerivedFromVars(b.space_between_centers)),v(),v=_t(a,(t=>n(24,d=t)))),16777728&t.$$.dirty[0]&&d&&n(9,N=In(d.value,N)),1&t.$$.dirty[0]&&(n(15,l=C.getDerivedFromVars(b.active_item_size)),m(),m=_t(l,(t=>n(23,u=t)))),8389632&t.$$.dirty[0]&&n(10,z=ir(u,z)),4194304&t.$$.dirty[0]&&async function(t){if(b.pager_id&&t.has(b.pager_id)){n(13,V=t.get(b.pager_id)),await xe();const e=j.children[V.currentItem].offsetLeft;A.scroll({left:e-A.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=C.getStore("pagers")),g(),g=_t(s,(t=>n(22,c=t))),[b,x,w,k,D,P,S,I,F,N,z,A,j,V,s,l,a,i,o,r,M,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=V;if(37===t.which)J(n-1<0?n:n-1);else if(39===t.which)J(n+1>=e?n:n+1);else if(36===t.which)J(0);else{if(35!==t.which)return;J(e-1)}t.preventDefault()},c,u,d,h,f,p,t=>M(t),function(t){me[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){me[t?"unshift":"push"]((()=>{A=t,n(11,A)}))}]}const wi={slider:"divkit-ef4f",slider__input:"divkit-d1d6",slider__input_secondary:"divkit-c798",slider__thumb:"divkit-f345",slider__thumb_secondary:"divkit-e198","slider__tracks-wrapper":"divkit-f733","slider__tracks-inner":"divkit-ac90",slider__track:"divkit-e956","slider__active-track":"divkit-ec5b","slider__thumb-text-wrapper":"divkit-ee57","slider__thumb-text":"divkit-c4af","slider__thumb-text_secondary":"divkit-d882",slider__tick:"divkit-bd9b",slider__tick_active:"divkit-d8ce",slider__tick_inactive:"divkit-e71e"};function ki(t,e){var n,r,o;if(!t||!t.shape||!t.color)return e;const i=E(t.color),a=Number((null===(n=t.shape.item_width)||void 0===n?void 0:n.value)||10),l=Number((null===(r=t.shape.item_height)||void 0===r?void 0:r.value)||10),s=Number((null===(o=t.shape.corner_radius)||void 0===o?void 0:o.value)||5);if("shape_drawable"===t.type&&"transparent"!==i&&"rounded_rectangle"===t.shape.type){var c,u;const e={},n=null!==(c=t.stroke)&&void 0!==c&&c.color?E(t.stroke.color):"",r=null!==(u=t.stroke)&&void 0!==u&&u.width?Number(t.stroke.width||1):"";return e.width=a,e.height=l,e.borderRadius=s,e.background=i,n&&r&&(e.boxShadow="inset 0 0 0 ".concat(gn(r)," ").concat(n)),e}return e}function Ci(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&E(t.text_color)||"#000",o=lr(t.font_weight);if(ar(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:gn(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ei(t,e,n){return Math.max(e,Math.min(n,t))}function Ai(t,e){const n=Number(t);return isNaN(n)?e:n}function ji(t,e,n){const r=t.slice();return r[81]=e[n],r}function Vi(t,e,n){const r=t.slice();return r[81]=e[n],r}function Di(t){let e,n;return e=new rr({props:{cls:En("slider",wi,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=En("slider",wi,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]|16777216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Pi(t){let e,n,r,o=t[12]&&Si(t),i=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Lt(t[7]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[7]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=wi["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=wi["slider__thumb-text"]+" "+wi["slider__thumb-text_secondary"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;128&e[0]&&ne(r,t[7]),8192&e[0]&&re(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&re(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&re(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}(t);return{c(){e=Bt("div"),o&&o.c(),n=Wt(),i&&i.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Kt(e);o&&o.l(r),n=ee(r),i&&i.l(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=wi["slider__thumb-text-wrapper"]),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),o&&o.m(e,null),Mt(e,n),i&&i.m(e,null)},p(t,r){t[12]?o?o.p(t,r):(o=Si(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),t[37]&&i.p(t,r)},d(t){t&&Ot(e),o&&o.d(),i&&i.d()}}}function Si(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Lt(t[6]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[6]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=wi["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=wi["slider__thumb-text"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;64&e[0]&&ne(r,t[6]),4096&e[0]&&re(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&re(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&re(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}function Ii(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=wi.slider__tick+" "+wi.slider__tick_active),re(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Jt(t,e,n)},p(t,n){131072&n[0]&&re(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Ot(e)}}}function Fi(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=wi.slider__tick+" "+wi.slider__tick_inactive),re(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Jt(t,e,n)},p(t,n){262144&n[0]&&re(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Ot(e)}}}function Ni(t){let e,n,r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k=(t[12]||t[37]&&t[13])&&Pi(t),C=t[17],E=[];for(let e=0;e<C.length;e+=1)E[e]=Ii(Vi(t,C,e));let A=t[18],j=[];for(let e=0;e<A.length;e+=1)j[e]=Fi(ji(t,A,e));let V=t[37]&&function(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=wi.slider__thumb+" "+wi.slider__thumb_secondary),re(e,"border-radius",gn(t[9].borderRadius),!1),re(e,"background",t[9].background,!1),re(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Jt(t,e,n)},p(t,n){512&n[0]&&re(e,"border-radius",gn(t[9].borderRadius),!1),512&n[0]&&re(e,"background",t[9].background,!1),512&n[0]&&re(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Ot(e)}}}(t),D=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Ht(e,"type","range"),Ht(e,"class",n=t[16]?wi.slider__input:"".concat(wi.slider__input," ").concat(wi.slider__input_secondary)),Ht(e,"min",t[4]),Ht(e,"max",t[5]),Ht(e,"step","1"),e.value=r=t[16]?t[6]:t[7],Ht(e,"aria-label",t[20])},m(n,r){Jt(n,e,r),o||(i=[qt(e,"input",t[75]),qt(e,"mousedown",t[37]?t[40]:null),qt(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?wi.slider__input:"".concat(wi.slider__input," ").concat(wi.slider__input_secondary))&&Ht(e,"class",n),16&o[0]&&Ht(e,"min",t[4]),32&o[0]&&Ht(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&Ht(e,"aria-label",t[20])},d(t){t&&Ot(e),o=!1,pt(i)}}}(t);return{c(){e=Bt("div"),k&&k.c(),n=Wt(),r=Bt("div"),o=Bt("div"),a=Wt(),l=Bt("div"),c=Wt();for(let t=0;t<E.length;t+=1)E[t].c();u=Wt();for(let t=0;t<j.length;t+=1)j[t].c();d=Wt(),h=Bt("div"),p=Wt(),V&&V.c(),g=Wt(),m=Bt("input"),y=Wt(),D&&D.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);k&&k.l(i),n=ee(i),r=Zt(i,"DIV",{class:!0});var s=Kt(r);o=Zt(s,"DIV",{class:!0}),Kt(o).forEach(Ot),a=ee(s),l=Zt(s,"DIV",{class:!0}),Kt(l).forEach(Ot),c=ee(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=ee(s);for(let t=0;t<j.length;t+=1)j[t].l(s);d=ee(s),h=Zt(s,"DIV",{class:!0}),Kt(h).forEach(Ot),p=ee(s),V&&V.l(s),g=ee(s),m=Zt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=ee(s),D&&D.l(s),s.forEach(Ot),i.forEach(Ot),this.h()},h(){Ht(o,"class",i=wi.slider__track),re(o,"height",gn(t[10].height),!1),re(o,"border-radius",gn(t[10].borderRadius),!1),re(o,"background",t[10].background,!1),re(o,"box-shadow",t[10].boxShadow||"",!1),Ht(l,"class",s=wi["slider__active-track"]),re(l,"left",(100*t[23]).toFixed(2)+"%",!1),re(l,"width",(100*t[24]).toFixed(2)+"%",!1),re(l,"height",gn(t[11].height),!1),re(l,"border-radius",gn(t[11].borderRadius),!1),re(l,"background",t[11].background,!1),re(l,"box-shadow",t[11].boxShadow||"",!1),Ht(h,"class",f=wi.slider__thumb),re(h,"border-radius",gn(t[8].borderRadius),!1),re(h,"background",t[8].background,!1),re(h,"box-shadow",t[8].boxShadow||"",!1),Ht(m,"type","range"),Ht(m,"class",v=t[16]?"".concat(wi.slider__input," ").concat(wi.slider__input_secondary):wi.slider__input),Ht(m,"min",t[4]),Ht(m,"max",t[5]),Ht(m,"step","1"),m.value=$=t[16]?t[7]:t[6],Ht(m,"aria-label",t[19]),Ht(r,"class",_=wi["slider__tracks-inner"]),Ht(e,"class",b=wi["slider__tracks-wrapper"])},m(i,s){Jt(i,e,s),k&&k.m(e,null),Mt(e,n),Mt(e,r),Mt(r,o),Mt(r,a),Mt(r,l),Mt(r,c);for(let t=0;t<E.length;t+=1)E[t].m(r,null);Mt(r,u);for(let t=0;t<j.length;t+=1)j[t].m(r,null);Mt(r,d),Mt(r,h),Mt(r,p),V&&V.m(r,null),Mt(r,g),Mt(r,m),Mt(r,y),D&&D.m(r,null),t[76](r),x||(w=qt(m,"input",t[74]),x=!0)},p(t,i){if(t[12]||t[37]&&t[13]?k?k.p(t,i):(k=Pi(t),k.c(),k.m(e,n)):k&&(k.d(1),k=null),1024&i[0]&&re(o,"height",gn(t[10].height),!1),1024&i[0]&&re(o,"border-radius",gn(t[10].borderRadius),!1),1024&i[0]&&re(o,"background",t[10].background,!1),1024&i[0]&&re(o,"box-shadow",t[10].boxShadow||"",!1),8388608&i[0]&&re(l,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&i[0]&&re(l,"width",(100*t[24]).toFixed(2)+"%",!1),2048&i[0]&&re(l,"height",gn(t[11].height),!1),2048&i[0]&&re(l,"border-radius",gn(t[11].borderRadius),!1),2048&i[0]&&re(l,"background",t[11].background,!1),2048&i[0]&&re(l,"box-shadow",t[11].boxShadow||"",!1),131072&i[0]){let e;for(C=t[17],e=0;e<C.length;e+=1){const n=Vi(t,C,e);E[e]?E[e].p(n,i):(E[e]=Ii(n),E[e].c(),E[e].m(r,u))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(262144&i[0]){let e;for(A=t[18],e=0;e<A.length;e+=1){const n=ji(t,A,e);j[e]?j[e].p(n,i):(j[e]=Fi(n),j[e].c(),j[e].m(r,d))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}256&i[0]&&re(h,"border-radius",gn(t[8].borderRadius),!1),256&i[0]&&re(h,"background",t[8].background,!1),256&i[0]&&re(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,i),65536&i[0]&&v!==(v=t[16]?"".concat(wi.slider__input," ").concat(wi.slider__input_secondary):wi.slider__input)&&Ht(m,"class",v),16&i[0]&&Ht(m,"min",t[4]),32&i[0]&&Ht(m,"max",t[5]),65728&i[0]&&$!==($=t[16]?t[7]:t[6])&&(m.value=$),524288&i[0]&&Ht(m,"aria-label",t[19]),t[37]&&D.p(t,i)},d(n){n&&Ot(e),k&&k.d(),Tt(E,n),Tt(j,n),V&&V.d(),D&&D.d(),t[76](null),x=!1,w()}}}function zi(t){let e,n,r=!t[14]&&Di(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[14]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),16384&n[0]&&Fe(r,1)):(r=Di(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Mi(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Ji(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,E,A,j,V,D,P,S,I,F,N,z,M,J,O,T,B=ct,R=ct,L=ct,W=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct;var Q,tt,et,nt,rt,ot,it,at;t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),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()));let{json:lt={}}=e,{templateContext:st}=e,{origJson:ut}=e,{layoutParams:dt}=e;const ht={width:10,height:10,borderRadius:5,background:"#000"},ft=fe(un),pt=fe(Jn);let gt,mt=!1,vt=0,$t=100;const yt=ft.getJsonWithVars(lt.thumb_value_variable),xt=ft.getJsonWithVars(lt.thumb_secondary_value_variable);let wt=yt&&ft.getVariable(yt,"integer")||Qe("temp","integer",0);bt(t,wt,(t=>n(71,J=t)));let kt=xt&&ft.getVariable(xt,"integer")||Qe("temp","integer",0);bt(t,kt,(t=>n(70,M=t)));let Ct,Et,At,jt=Ei(J||0,vt,$t),Vt=Ei(M||0,vt,$t),Dt=ht,Pt=Dt,St=ht,It=ht,Ft=null,Nt=null,zt=At,Mt="",Jt="",Ot=!1;function Tt(t,e){const r=Number(t.target.value);mt===("first"===e)?(n(7,Vt=r),kt.setValue(r)):(n(6,jt=r),wt.setValue(r))}return t.$$set=t=>{"json"in t&&n(0,lt=t.json),"templateContext"in t&&n(1,st=t.templateContext),"origJson"in t&&n(2,ut=t.origJson),"layoutParams"in t&&n(3,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=ft.getDerivedFromVars(lt.min_value)),Z(),Z=_t(r,(t=>n(73,T=t)))),1&t.$$.dirty[0]&&(n(35,o=ft.getDerivedFromVars(lt.max_value)),Y(),Y=_t(o,(t=>n(72,O=t)))),48&t.$$.dirty[0]|3072&t.$$.dirty[2]&&(n(4,vt=Ai(T,vt)),n(5,$t=Ai(O,$t))),112&t.$$.dirty[0]|512&t.$$.dirty[2]){const t=Ei(J||0,vt,$t);t!==jt&&n(6,jt=t)}if(176&t.$$.dirty[0]|256&t.$$.dirty[2]){const t=Ei(M||0,vt,$t);t!==Vt&&n(7,Vt=t)}if(1&t.$$.dirty[0]&&(n(34,i=ft.getDerivedFromVars(lt.thumb_style)),X(),X=_t(i,(t=>n(69,z=t)))),256&t.$$.dirty[0]|128&t.$$.dirty[2]&&n(8,Dt=ki(z,Dt)),1&t.$$.dirty[0]&&(n(33,a=ft.getDerivedFromVars(lt.thumb_secondary_style)),K(),K=_t(a,(t=>n(68,N=t)))),256&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(9,Pt=ki(N,Dt)),1&t.$$.dirty[0]&&(n(32,l=ft.getDerivedFromVars(lt.track_inactive_style)),G(),G=_t(l,(t=>n(67,F=t)))),1024&t.$$.dirty[0]|32&t.$$.dirty[2]&&n(10,St=ki(F,St)),1&t.$$.dirty[0]&&(n(31,s=ft.getDerivedFromVars(lt.track_active_style)),H(),H=_t(s,(t=>n(66,I=t)))),2048&t.$$.dirty[0]|16&t.$$.dirty[2]&&n(11,It=ki(I,It)),48&t.$$.dirty[0]&&n(59,c=$t-vt+1<=20),1&t.$$.dirty[0]&&(n(30,u=ft.getDerivedFromVars(lt.tick_mark_active_style)),q(),q=_t(u,(t=>n(65,S=t)))),268435456&t.$$.dirty[1]|8&t.$$.dirty[2])if(c){let t=ki(S,ht);t!==ht&&n(50,Ft=t)}else n(50,Ft=null);if(240&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(17,Ct=Ft?xt?Mi(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!0):Mi(vt,jt,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(29,d=ft.getDerivedFromVars(lt.tick_mark_inactive_style)),U(),U=_t(d,(t=>n(64,P=t)))),268435456&t.$$.dirty[1]|4&t.$$.dirty[2])if(c){let t=ki(P,ht);t!==ht&&n(51,Nt=t)}else n(51,Nt=null);if(240&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(18,Et=Nt?xt?Mi(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!1):Mi(jt+1,$t+1,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(28,h=ft.getDerivedFromVars(lt.thumb_text_style)),W(),W=_t(h,(t=>n(63,D=t)))),4096&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(12,At=Ci(D,At)),1&t.$$.dirty[0]&&(n(27,f=ft.getDerivedFromVars(lt.thumb_secondary_text_style)),L(),L=_t(f,(t=>n(62,V=t)))),4096&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(13,zt=Ci(V,At)),1&t.$$.dirty[0]&&(n(26,p=ft.getDerivedFromVars(lt.accessibility)),R(),R=_t(p,(t=>n(61,j=t)))),1073741824&t.$$.dirty[1]&&((null==j?void 0:j.description)?n(19,Mt=j.description):ft.logError(dn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,g=ft.getDerivedFromVars(lt.secondary_value_accessibility)),B(),B=_t(g,(t=>n(60,A=t)))),536870912&t.$$.dirty[1]&&((null==A?void 0:A.description)?n(20,Jt=A.description):xt&&ft.logError(dn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ft.logError(dn(new Error('Cannot show "slider" inside component with action'))),t=!0):Dt===ht?(ft.logError(dn(new Error('Missing "thumb_style" in slider'))),t=!0):It===ht?(ft.logError(dn(new Error('Missing "track_active_style" in slider'))),t=!0):St===ht&&(ft.logError(dn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&n(14,Ot=t)}3840&t.$$.dirty[0]&&n(58,m=Math.max(...[Dt.height,Pt.height,St.height,It.height,0].filter(Dn))),768&t.$$.dirty[0]&&n(57,v=gn(Math.max(...[Dt.width,Pt.width,0].filter(Dn)))),768&t.$$.dirty[0]&&n(56,$=gn(Math.max(...[Dt.height,Pt.height,0].filter(Dn)))),112&t.$$.dirty[0]&&n(55,y=(jt-vt)/($t-vt)),176&t.$$.dirty[0]&&n(54,_=xt?(Vt-vt)/($t-vt):void 0),25165824&t.$$.dirty[1]&&n(24,b=void 0!==_?Math.abs(_-y):y),25165824&t.$$.dirty[1]&&n(23,x=void 0!==_?Math.min(_,y):0),13056&t.$$.dirty[0]|134223872&t.$$.dirty[1]&&n(53,w=-Math.min(...[(m-Dt.height)/2+((null===n(42,Q=null==At?void 0:At.offset)||void 0===Q?void 0:Q.y)||0),xt?(m-Pt.height)/2+((null===n(43,tt=null==zt?void 0:zt.offset)||void 0===tt?void 0:tt.y)||0):0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|134242304&t.$$.dirty[1]&&n(52,k=Math.max(...[((null===n(44,et=null==At?void 0:At.offset)||void 0===et?void 0:et.y)||0)-(m-Dt.height)/2,xt?((null===n(45,nt=null==zt?void 0:zt.offset)||void 0===nt?void 0:nt.y)||0)-(m-Pt.height)/2:0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|268402688&t.$$.dirty[1]&&n(22,C={"--divkit-slider-thumb-width":gn(Dt.width),"--divkit-slider-thumb-height":gn(Dt.height),"--divkit-slider-thumb-secondary-width":gn(Pt.width),"--divkit-slider-thumb-secondary-height":gn(Pt.height),"--divkit-slider-text-offset-x":(null===n(46,rt=null==At?void 0:At.offset)||void 0===rt?void 0:rt.x)?mn(At.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(47,ot=null==At?void 0:At.offset)||void 0===ot?void 0:ot.y)?mn(At.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(48,it=null==zt?void 0:zt.offset)||void 0===it?void 0:it.x)?mn(zt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(49,at=null==zt?void 0:zt.offset)||void 0===at?void 0:at.y)?mn(zt.offset.y):void 0,"--divkit-slider-tick-active-width":Ft?gn(Ft.width):void 0,"--divkit-slider-tick-active-height":Ft?gn(Ft.height):void 0,"--divkit-slider-tick-active-border-radius":Ft?gn(Ft.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==Ft?void 0:Ft.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==Ft?void 0:Ft.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?gn(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?gn(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?gn(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Nt?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Nt?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-height":gn(m),"--divkit-slider-max-thumb-width":v,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":y,"--divkit-slider-track-secondary-part":_,"--divkit-slider-offset-top":mn(w),"--divkit-slider-offset-bottom":mn(k)})},n(21,E={}),[lt,st,ut,dt,vt,$t,jt,Vt,Dt,Pt,St,It,At,zt,Ot,gt,mt,Ct,Et,Mt,Jt,E,C,x,b,g,p,f,h,d,u,s,l,a,i,o,r,xt,wt,kt,function(t){var e,r;const o="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===o)return;const i=gt.getBoundingClientRect(),a=(o-i.left)/i.width,l=($t-vt)*a,s=Math.round(Ei(l,vt,$t));n(16,mt=s<(jt+Vt)/2==jt<Vt)},Tt,Q,tt,et,nt,rt,ot,it,at,Ft,Nt,k,w,_,y,$,v,m,c,A,j,V,D,P,S,I,F,N,z,M,J,O,T,t=>Tt(t,"first"),t=>Tt(t,"second"),function(t){me[t?"unshift":"push"]((()=>{gt=t,n(15,gt)}))}]}const Oi={input:"divkit-c3a4",input__wrapper:"divkit-ef7e",input__holder:"divkit-bb3d",input_multiline:"divkit-e48a",input__input:"divkit-f11e","input_highlight-color":"divkit-cc00","input_vertical-overflow":"divkit-b707"};function Ti(t){let e,n;return e=new rr({props:{cls:En("input",Oi,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Wi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=En("input",Oi,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||(Fe(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Bi(t){let e;return{c(){e=Lt("")},l(t){e=te(t,"")},m(t,n){Jt(t,e,n)},d(t){t&&Ot(e)}}}function Ri(t){let e,n,r,o;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){Ht(e,"type",t[9]),Ht(e,"class",n=Oi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[57](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"type",t[9]),1024&r[0]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Ot(e),t[57](null),r=!1,pt(o)}}}function Li(t){let e,n,r,o;return{c(){e=Bt("textarea"),this.h()},l(t){e=Zt(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Oi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[56](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Ot(e),t[56](null),r=!1,pt(o)}}}function Wi(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&Bi();function c(t,e){return t[4]?Li:Ri}let u=c(t),d=u(t);return{c(){e=Bt("span"),n=Bt("span"),r=Lt(t[8]),s&&s.c(),i=Wt(),d.c(),this.h()},l(o){e=Zt(o,"SPAN",{class:!0});var a=Kt(e);n=Zt(a,"SPAN",{class:!0,"aria-hidden":!0});var l=Kt(n);r=te(l,t[8]),s&&s.l(l),l.forEach(Ot),i=ee(a),d.l(a),a.forEach(Ot),this.h()},h(){Ht(n,"class",o=Oi.input__holder),Ht(n,"aria-hidden","true"),Ht(e,"class",a=Oi.input__wrapper)},m(o,a){Jt(o,e,a),Mt(e,n),Mt(n,r),s&&s.m(n,null),t[55](n),Mt(e,i),d.m(e,null)},p(t,o){256&o[0]&&ne(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Bi(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,o):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Ot(e),s&&s.d(),t[55](null),d.d()}}}function Ui(t){let e,n,r=!t[7]&&Ti(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie()):r?(r.p(t,n),128&n[0]&&Fe(r,1)):(r=Ti(t),r.c(),Fe(r,1),r.m(e.parentNode,e))},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function qi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w=ct,k=ct;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k()));let{json:C={}}=e,{templateContext:A}=e,{origJson:j}=e,{layoutParams:V}=e;const D=fe(un);let P,S,I=!1,F=!1;const N=D.getJsonWithVars(C.text_variable);let z=!1;N||(z=!0,D.logError(dn(new Error('Missing "text_variable" in "input"'))));let M=N&&D.getVariable(N,"string")||Qe("temp","string","");bt(t,M,(t=>n(54,b=t)));let J="";const O=D.getDerivedFromVars(C.hint_text);bt(t,O,(t=>n(53,_=t)));const T=D.getDerivedFromVars(C.hint_color);bt(t,T,(t=>n(52,y=t)));let B="";const R=D.getDerivedFromVars(C.font_size);bt(t,R,(t=>n(51,$=t)));let L=12;const W=D.getDerivedFromVars(C.font_weight);let U;bt(t,W,(t=>n(50,v=t)));const q=D.getDerivedFromVars(C.line_height);let H;bt(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(C.letter_spacing);bt(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(C.text_color);bt(t,X,(t=>n(47,p=t)));let Y="#000";const Z=D.getDerivedFromVars(C.highlight_color);bt(t,Z,(t=>n(46,f=t)));let Q="";const tt=D.getDerivedFromVars(C.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 ot=D.getDerivedFromVars(C.max_visible_lines);bt(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=D.getDerivedFromVars(C.select_all_on_focus);function st(){n(32,F=S.scrollHeight>S.offsetHeight)}return bt(t,lt,(t=>n(16,x=t))),ue((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,C=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,j=t.origJson),"layoutParams"in t&&n(3,V=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,J=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=E(y,1,B)),1048584&t.$$.dirty[1]&&n(34,L=ir($,L)),524304&t.$$.dirty[1]&&n(35,U=sr(v,U)),262152&t.$$.dirty[1]){const t=m;ar(t)&&n(36,H=t/L)}131080&t.$$.dirty[1]&&Vn(g)&&n(37,K=gn(g/L*10)),65664&t.$$.dirty[1]&&n(38,Y=E(p,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=E(f,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,o="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,i=D.getDerivedFromVars(C.paddings)),k(),k=_t(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&ar(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(mn(In(null==u?void 0:u.top,0)+In(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(C.accessibility)),w(),w=_t(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(dn(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":F,multiline:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":gn(L),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[C,A,j,V,o,P,S,z,J,rt,at,s,l,a,i,r,x,M,O,T,R,W,q,G,X,Z,tt,ot,lt,function(t){const e=t.target.value||"";M.setValue(e),st()},function(){I=!1,setTimeout((()=>{I=!0}),250)},function(){I||P.select()},F,B,L,U,H,K,Y,Q,nt,it,c,u,d,h,f,p,g,m,v,$,y,_,b,function(t){me[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const Hi={text:class extends He{constructor(t){super(),qe(this,t,Ar,Er,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},container:class extends He{constructor(t){super(),qe(this,t,Fr,Ir,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends He{constructor(t){super(),qe(this,t,Tr,Or,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Kr,gif:Kr,grid:class extends He{constructor(t){super(),qe(this,t,io,oo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends He{constructor(t){super(),qe(this,t,_o,yo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends He{constructor(t){super(),qe(this,t,Fo,So,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends He{constructor(t){super(),qe(this,t,li,ii,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends He{constructor(t){super(),qe(this,t,gi,pi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends He{constructor(t){super(),qe(this,t,xi,bi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends He{constructor(t){super(),qe(this,t,Ji,zi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends He{constructor(t){super(),qe(this,t,qi,Ui,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Gi(t){let e,n,r;var o=t[5];function i(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return o&&(e=new o(i(t))),{c(){e&&Re(e.$$.fragment),n=Ut()},l(t){e&&Le(e.$$.fragment,t),n=Ut()},m(t,o){e&&We(e,t,o),Jt(t,n,o),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]),o!==(o=t[5])){if(e){Se();const t=e;Ne(t.$$.fragment,1,0,(()=>{Ue(t,1)})),Ie()}o?(e=new o(i(t)),Re(e.$$.fragment),Fe(e.$$.fragment,1),We(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Fe(e.$$.fragment,t),r=!0)},o(t){e&&Ne(e.$$.fragment,t),r=!1},d(t){t&&Ot(n),e&&Ue(e,t)}}}function Ki(t){let e,n,r=t[5]&&Gi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Fe(r,1)):(r=Gi(t),r.c(),Fe(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie())},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Xi(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=fe(un);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,o=t.templateContext),"origJson"in t&&n(1,i=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=o),n(5,u=s&&Hi[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,o),n(5,u),n(4,c))),n(5,u=s&&Hi[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(dn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Yi=class extends He{constructor(t){super(),qe(this,t,Xi,Ki,$t,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Zi(t,e,n){const r=t.slice();return r[1]=e[n],r}function Qi(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=ta(Zi(t,o,e));return{c(){e=Rt("svg"),n=Rt("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=Qt(t,"svg",{class:!0,"aria-hidden":!0});var r=Kt(e);n=Qt(r,"defs",{});var o=Kt(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(e,"class",r="divkit-dc22"),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),Mt(e,n);for(let t=0;t<i.length;t+=1)i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=[...Object.keys(t[0])],r=0;r<o.length;r+=1){const a=Zi(t,o,r);i[r]?i[r].p(a,e):(i[r]=ta(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&Ot(e),Tt(i,t)}}}function ta(t){let e,n,r,o,i;return{c(){e=Rt("filter"),n=Rt("feFlood"),o=Rt("feComposite"),this.h()},l(t){e=Qt(t,"filter",{id:!0});var r=Kt(e);n=Qt(r,"feFlood",{"flood-color":!0}),Kt(n).forEach(Ot),o=Qt(r,"feComposite",{in2:!0,operator:!0}),Kt(o).forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"flood-color",r=t[1]),Ht(o,"in2","SourceGraphic"),Ht(o,"operator","in"),Ht(e,"id",i=t[0][t[1]])},m(t,r){Jt(t,e,r),Mt(e,n),Mt(e,o)},p(t,o){1&o&&r!==(r=t[1])&&Ht(n,"flood-color",r),1&o&&i!==(i=t[0][t[1]])&&Ht(e,"id",i)},d(t){t&&Ot(e)}}}function ea(t){let e,n=Object.keys(t[0]).length,r=n&&Qi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,n){r&&r.m(t,n),Jt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Qi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ct,o:ct,d(t){r&&r.d(t),t&&Ot(e)}}}function na(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const ra=class extends He{constructor(t){super(),qe(this,t,na,ea,$t,{svgFiltersMap:0})}};function oa(t,e,n,r){const o=n[t.type];if(!o)return r(dn(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const l=function e(n,o){const i=Object.keys(o).filter((t=>"__proto__"!==t)),l=i.filter((t=>"$"!==t.charAt(0))),s=i.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=o[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const i=o[e],l=a[i];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(dn(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(l[i]=t[i]);return{json:l,templateContext:a}}function ia(){}function aa(t){return{subscribe:e=>(e(t),ia)}}const la=/(?:[^\\]|^)@{.+}/i;class sa{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return k(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=rn(t,this.ast);if("error"===n.type)return void e(dn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;return r instanceof Date?D(r):r}catch(t){return void e(dn(new Error("Expression execution error")))}}}function ca(t,e,n){if(t)if("string"==typeof t){if(r=t,la.test(r))try{const n=y(t,{startRule:"JsonStringContents"}),r=M(n);return e.push(...r),new sa(n)}catch(e){return void n(dn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}else{if(Array.isArray(t))return t.map((t=>ca(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ca(t[o],e,n);return r}}var r;return t}function ua(t,e,n){if(t){if(t instanceof sa)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ua(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ua(t[o],e,n);return r}}return t}function da(t,e){let n=[];const r=ca(t,n,e);return n=[...new Set(n)],{vars:n,applyVars:t=>ua(r,t,e)}}const ha={pagers:function(){return Ke(new Map)}},fa=new Map,pa=new Map;function ga(t){const e=fa.get(t)||Ke("");return fa.has(t)||fa.set(t,e),e}function ma(t){const e=pa.get(t)||new Map;return pa.has(t)||pa.set(t,e),e}class va{setVariable(t){const e=t.getName(),n=ma(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),ga(this).set(e)}getVariable(t){return ma(this).get(t)}}function $a(){return new va}function ya(t){let e,n,r,o,i,a,l,s;return n=new ra({props:{svgFiltersMap:t[2]}}),o=new Yi({props:{div:t[4],templateContext:t[3]}}),{c(){e=Bt("div"),Re(n.$$.fragment),r=Wt(),Re(o.$$.fragment),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);Le(n.$$.fragment,i),r=ee(i),Le(o.$$.fragment,i),i.forEach(Ot),this.h()},h(){Ht(e,"class",i=""+(on+(t[0]?" ".concat(sn):"")))},m(t,i){Jt(t,e,i),We(n,e,null),Mt(e,r),We(o,e,null),a=!0,l||(s=qt(e,"touchstart",ba,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||1&r[0]&&i!==(i=""+(on+(t[0]?" ".concat(sn):""))))&&Ht(e,"class",i)},i(t){a||(Fe(n.$$.fragment,t),Fe(o.$$.fragment,t),a=!0)},o(t){Ne(n.$$.fragment,t),Ne(o.$$.fragment,t),a=!1},d(t){t&&Ot(e),Ue(n),Ue(o),l=!1,s()}}}function _a(t){let e,n,r=!t[1]&&t[4]&&ya(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),2&n[0]&&Fe(r,1)):(r=ya(t),r.c(),Fe(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Ie())},i(t){n||(Fe(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ba(){}function xa(t,e,n){var r,o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new va}=e,{onError:f}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v="desktop"===u;if("auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v=!t.matches,t.addListener((()=>{n(0,v=!t.matches)}))}let $="light";if("light"===d||"dark"===d)$=d;else if("system"===d)if("undefined"!=typeof matchMedia){const t=matchMedia("(prefers-color-scheme: dark)");$=t.matches?"dark":"light",t.addListener((()=>{$=t.matches?"dark":"light",W&&W[$].forEach((t=>{const e=A.get(t.name);e&&e.setValue(t.color)}))}))}else $="light";else D(dn(new Error("Unsupported theme")));let _=!1;c||(_=!0,D(dn(new Error('"json" prop is required')))),s||(_=!0,D(dn(new Error('"id" prop is required'))));let b=function(t){if(!t)return dn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return dn(new Error("Missing card"));if(!e.states||!e.states.length)return dn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Hi)return dn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t)if(!e.states[t].div)return dn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});return null}(c);const x=c.templates||{};b&&(_=!0,D(b));const w={stateChange:!1},k=ga(h),C=ma(h),E=new Map,A=new Map,j=new Map;function V(t){const e=da(t,D);return e.vars.length?e.applyVars(A):t}function D(t){f?f({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}let P=0;function S(t){return"".concat(s,"-").concat(P++)}let I={},F={};function N(t){const e=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=t.split("/");const n=e.shift()||"";if(e=[n,"root","0",...e],e.length<5||e.length%2!=1)throw new Error("Incorrect state id format");let r=B;for(let t=1;t<e.length;t+=2){const n=e[t],o=e[t+1];let i=r.getChild(n);if(!i)return;i.setState(o),r=i}}(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=J(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=J(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=J(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),o=r.get("value");if(n&&null!==o){const t=A.get(n);t?t.set(o):D(dn(new Error("Cannot find variable"),{additional:{name:n}}))}else D(dn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:D(dn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){D(dn(t,{additional:{url:e}}))}}const z=new Map;function J(t){if(z.has(t))return z.get(t);D(dn(new Error("Missing instance with id"),{additional:{id:t}}))}const O=new Map;function T(t){for(const e of t)A.has(e)&&t.delete(e);return t}he(un,{logError:D,logStat:function(t,e){p&&p({type:t,action:e})},hasTemplate:function(t){return t in x},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in x;){if(({json:t,templateContext:e}=oa(t,e,x,D)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:S,genClass:function(t){return"divkit-".concat(S())},execAction:N,execCustomAction:function(t){null==g||g(t)},isRunning:function(t){return w[t]},setRunning:function(t,e){w[t]=e},registerInstance:function(t,e){z.has(t)?D(dn(new Error("Duplicate instance id"),{additional:{id:t}})):z.set(t,e)},addSvgFilter:function(t){if(F[t]=F[t]||0,++F[t],I[t])return I[t];const e="".concat(S(),"-svg-filter");return n(2,I=Object.assign(Object.assign({},I),{[t]:e})),e},removeSvgFilter:function(t){t&&F[t]&&0==--F[t]&&n(2,I=Object.keys(I).reduce(((t,e)=>(F[e]&&(t[e]=I[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return aa(t);const e=da(t,D);return e.vars.length?Xe(e.vars.map((t=>A.get(t)||function(t){const e=j.get(t)||Ke(void 0);return j.has(t)||j.set(t,e),e}(t))).filter($n),(()=>e.applyVars(A))):aa(t)},getJsonWithVars:V,getStore:function(t){return O.has(t)||function(t){O.has(t)||O.set(t,ha[t]())}(t),O.get(t)},getVariable:function(t,e){const n=A.get(t);if(n){const r=n.getType();if(r!==e)return void D(dn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;m&&m({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;m&&m({type:"destroy",node:e})}}),he(Jn,{hasAction:()=>!1});const B={setState(t){throw new Error("Not implemented")},getChild(t){if(R&&R.has(t))return R.get(t);D(dn(new Error("Missing state block with id"),{additional:{id:t}}))}};let R=null;he(jn,{registerInstance(t,e){R||(R=new Map),R.has(t)?D(dn(new Error("Duplicate state with id"),{additional:{id:t}})):R.set(t,e)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const L=null===(r=null==c?void 0:c.card)||void 0===r?void 0:r.variables;Array.isArray(L)&&L.forEach((t=>{if(t&&t.type in Ze&&t.name){if(E.has(t.name))return void D(dn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=Qe(t.name,t.type,t.value);E.set(t.name,e),A.set(t.name,e)}catch(e){D(dn(e,{additional:{name:t.name}}))}}}));const W=c.palette;W&&W[$].forEach((t=>{if(E.has(t.name))D(dn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Qe(t.name,"color",t.color);E.set(t.name,e),A.set(t.name,e)}catch(e){D(dn(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)A.has(t)||A.set(t,e);k.subscribe((t=>{if(t&&!A.has(t)){const e=C.get(t);A.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const U=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(U)&&U.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void D(dn(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=y(t.condition,{startRule:"JsonStringContents"}),o=M(r);if(!o.length)return void D(dn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return T(e),e.size?new Promise((t=>{const n=k.subscribe((()=>{T(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Xe(o.map((t=>A.get(t))).filter($n),(()=>rn(A,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=V(t);e.log_id&&N(e)})),e=Boolean(r.value)):D(dn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){D(dn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else D(dn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));let q=null===(l=null===(a=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.states)||void 0===a?void 0:a[0])||void 0===l?void 0:l.div,H=q&&{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:[{state_id:"0",div:q}]};return t.$$set=t=>{"id"in t&&n(5,s=t.id),"json"in t&&n(6,c=t.json),"platform"in t&&n(7,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(9,h=t.globalVariablesController),"onError"in t&&n(10,f=t.onError),"onStat"in t&&n(11,p=t.onStat),"onCustomAction"in t&&n(12,g=t.onCustomAction),"onComponent"in t&&n(13,m=t.onComponent)},[v,_,I,{},H,s,c,u,d,h,f,p,g,m,function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=A.get(t);n&&n.setValue(e)}},function(t){const e=A.get(t);return null==e?void 0:e.getValue()},N]}const wa=class extends He{constructor(t){super(),qe(this,t,xa,_a,$t,{id:5,json:6,platform:7,theme:8,globalVariablesController:9,onError:10,onStat:11,onCustomAction:12,onComponent:13,setVariable:14,getVariable:15,execAction:16},null,[-1,-1,-1])}get setVariable(){return this.$$.ctx[14]}get getVariable(){return this.$$.ctx[15]}get execAction(){return this.$$.ctx[16]}};function ka(t){return new wa({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Ca(t,e){let n;try{n=y(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return rn((null==e?void 0:e.variables)||new Map,n)}function Ea(){return Array.from(_.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
|
|
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:()=>$a,createVariable:()=>Qe,evalExpression:()=>Ca,functionNames:()=>Ea,render:()=>ka,valToString:()=>P});const n=2147483647,r=-2147483648,o=Number.MAX_VALUE,i=Number.MIN_VALUE,a="string",l="integer",s="number",c="boolean",u="color",d="datetime";function h(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 p(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 g(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 m(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function v(t,e,n,r){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,v.prototype),o.expected=e,o.found=n,o.location=r,o.name="SyntaxError",o}function $(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function y(t,e){var n,r,o,i,a={},l=(e=void 0!==e?e:{}).grammarSource,s={start:Jt,JsonStringContents:function(){var t,e,n;for(t=Ct,e=[],n=Ot();n!==a;)e.push(n),n=Ot();return Et=t,e=kt(e)}},c=Jt,u="@{",d="}",$="@{}",y="\\",_="||",b="&&",x="==",w="!=",k=">=",C="<=",E="+",A="-",j="true",V="false",D=/^[^}]/,P=/^[^'}]/,S=/^[0-9]/,F=/^[a-zA-Z_0-9.]/,I=/^[a-zA-Z_]/,N=/^[ \t\r\n]/,z=St("@{",!1),M=St("}",!1),J=St("@{}",!1),O=St("\\",!1),T={type:"any"},B=Ft(["}"],!0,!1),R=St("?",!1),L=St(":",!1),W=St("||",!1),U=St("&&",!1),q=St("==",!1),H=St("!=",!1),G=St(">=",!1),K=St(">",!1),X=St("<=",!1),Y=St("<",!1),Z=St("+",!1),Q=St("-",!1),tt=St("/",!1),et=St("*",!1),nt=St("%",!1),rt=St("!",!1),ot=St("(",!1),it=St(")",!1),at=St(",",!1),lt=It("string"),st=St("'",!1),ct=Ft(["'","}"],!0,!1),ut=It("integer"),dt=Ft([["0","9"]],!1,!1),ht=It("number"),ft=St(".",!1),pt=St("e",!1),gt=St("E",!1),mt=It("boolean"),vt=St("true",!1),$t=St("false",!1),yt=Ft([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),_t=It("identifier"),bt=Ft([["a","z"],["A","Z"],"_"],!1,!1),xt=It("whitespace"),wt=Ft([" ","\t","\r","\n"],!1,!1),kt=function(t){return p(t)},Ct=0,Et=0,At=[{line:1,column:1}],jt=0,Vt=[],Dt=0;if("startRule"in e){if(!(e.startRule in s))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=s[e.startRule]}function Pt(){return t.substring(Et,Ct)}function St(t,e){return{type:"literal",text:t,ignoreCase:e}}function Ft(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function It(t){return{type:"other",description:t}}function Nt(e){var n,r=At[e];if(r)return r;for(n=e-1;!At[n];)n--;for(r={line:(r=At[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return At[e]=r,r}function zt(t,e){var n=Nt(t),r=Nt(e);return{source:l,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function Mt(t){Ct<jt||(Ct>jt&&(jt=Ct,Vt=[]),Vt.push(t))}function Jt(){var t,e;return t=Ct,Zt(),(e=Tt())!==a?(Zt(),Et=t,t=e):(Ct=t,t=a),t}function Ot(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Tt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=d,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(B)),o!==a)for(;o!==a;)r.push(o),D.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(B));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=d,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=m(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Tt(){var e,n,r,o,i,l;return e=Ct,(n=Bt())!==a?(Zt(),63===t.charCodeAt(Ct)?(r="?",Ct++):(r=a,0===Dt&&Mt(R)),r!==a?(Zt(),(o=Tt())!==a?(Zt(),58===t.charCodeAt(Ct)?(i=":",Ct++):(i=a,0===Dt&&Mt(L)),i!==a?(Zt(),(l=Tt())!==a?(Et=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Bt()),e}function Bt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Rt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===_?(l=_,Ct+=2):(l=a,0===Dt&&Mt(W)),l!==a?(s=Zt(),(c=Rt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=f(n,r)}else Ct=e,e=a;return e}function Rt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Lt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===b?(l=b,Ct+=2):(l=a,0===Dt&&Mt(U)),l!==a?(s=Zt(),(c=Lt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=f(n,r)}else Ct=e,e=a;return e}function Lt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Wt())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===x?(l=x,Ct+=2):(l=a,0===Dt&&Mt(q)),l===a&&(t.substr(Ct,2)===w?(l=w,Ct+=2):(l=a,0===Dt&&Mt(H))),l!==a?(s=Zt(),(c=Wt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Wt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ut())!==a){for(r=[],o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),t.substr(Ct,2)===k?(l=k,Ct+=2):(l=a,0===Dt&&Mt(G)),l===a&&(62===t.charCodeAt(Ct)?(l=">",Ct++):(l=a,0===Dt&&Mt(K)),l===a&&(t.substr(Ct,2)===C?(l=C,Ct+=2):(l=a,0===Dt&&Mt(X)),l===a&&(60===t.charCodeAt(Ct)?(l="<",Ct++):(l=a,0===Dt&&Mt(Y))))),l!==a?(s=Zt(),(c=Ut())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Ut(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=qt())!==a){for(r=[],o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),43===t.charCodeAt(Ct)?(l=E,Ct++):(l=a,0===Dt&&Mt(Z)),l===a&&(45===t.charCodeAt(Ct)?(l=A,Ct++):(l=a,0===Dt&&Mt(Q))),l!==a?(s=Zt(),(c=qt())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function qt(){var e,n,r,o,i,l,s,c;if(e=Ct,(n=Ht())!==a){for(r=[],o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,i=Zt(),47===t.charCodeAt(Ct)?(l="/",Ct++):(l=a,0===Dt&&Mt(tt)),l===a&&(42===t.charCodeAt(Ct)?(l="*",Ct++):(l=a,0===Dt&&Mt(et)),l===a&&(37===t.charCodeAt(Ct)?(l="%",Ct++):(l=a,0===Dt&&Mt(nt)))),l!==a?(s=Zt(),(c=Ht())!==a?o=i=[i,l,s,c]:(Ct=o,o=a)):(Ct=o,o=a);Et=e,e=h(n,r)}else Ct=e,e=a;return e}function Ht(){var e,n,r;return(e=Xt())===a&&(e=Kt())===a&&(e=Ct,33===t.charCodeAt(Ct)?(n="!",Ct++):(n=a,0===Dt&&Mt(rt)),n===a&&(43===t.charCodeAt(Ct)?(n=E,Ct++):(n=a,0===Dt&&Mt(Z)),n===a&&(45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)))),n!==a?(Zt(),(r=Ht())!==a?(Et=e,e={type:"UnaryExpression",operator:n,argument:r}):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=function(){var e,n,r,o,i;return e=Ct,(n=Yt())!==a?(Zt(),40===t.charCodeAt(Ct)?(r="(",Ct++):(r=a,0===Dt&&Mt(ot)),r!==a?(Zt(),o=function(){var e,n,r,o,i,l,s;if(e=Ct,(n=Tt())!==a){for(r=[],o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Tt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);o!==a;)r.push(o),o=Ct,Zt(),44===t.charCodeAt(Ct)?(i=",",Ct++):(i=a,0===Dt&&Mt(at)),i!==a?(Zt(),(l=Tt())!==a?o=l:(Ct=o,o=a)):(Ct=o,o=a);Et=e,s=r,e=[n,...s]}else Ct=e,e=a;return e===a&&(e=Zt()),e}(),o!==a?(Zt(),41===t.charCodeAt(Ct)?(i=")",Ct++):(i=a,0===Dt&&Mt(it)),i!==a?(Et=e,e={type:"CallExpression",callee:n,arguments:o}):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,(n=Yt())!==a&&(Et=e,n={type:"Variable",id:n}),(e=n)===a&&(e=function(){var e,n,r,o;return e=function(){var e,n,r,o;return Dt++,e=Ct,39===t.charCodeAt(Ct)?(n="'",Ct++):(n=a,0===Dt&&Mt(st)),n!==a?(r=function(){var t,e,n;for(t=Ct,e=[],n=Gt();n!==a;)e.push(n),n=Gt();return Et=t,e=p(e)}(),39===t.charCodeAt(Ct)?(o="'",Ct++):(o=a,0===Dt&&Mt(st)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(lt)),e}(),e===a&&(e=Xt())===a&&(e=Kt())===a&&(e=function(){var e,n;return Dt++,e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!0}),(e=n)===a&&(e=Ct,t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t)),n!==a&&(Et=e,n={type:"BooleanLiteral",value:!1}),e=n),Dt--,e===a&&(n=a,0===Dt&&Mt(mt)),e}(),e===a&&(e=Ct,40===t.charCodeAt(Ct)?(n="(",Ct++):(n=a,0===Dt&&Mt(ot)),n!==a&&(r=Tt())!==a?(41===t.charCodeAt(Ct)?(o=")",Ct++):(o=a,0===Dt&&Mt(it)),o!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a))),e}())),e}())),e}function Gt(){var e,n,r,o,i;if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a?(r=Zt(),(o=Tt())!==a?(Zt(),125===t.charCodeAt(Ct)?(i=d,Ct++):(i=a,0===Dt&&Mt(M)),i!==a?(Et=e,e=o):(Ct=e,e=a)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,t.substr(Ct,3)===$?(n=$,Ct+=3):(n=a,0===Dt&&Mt(J)),n!==a&&(Et=e,n=""),(e=n)===a&&(e=Ct,n=Ct,Dt++,92===t.charCodeAt(Ct)?(r=y,Ct++):(r=a,0===Dt&&Mt(O)),r===a&&(39===t.charCodeAt(Ct)?(r="'",Ct++):(r=a,0===Dt&&Mt(st)),r===a&&(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)))),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=Pt()):(Ct=e,e=a)):(Ct=e,e=a),e===a))){if(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a){if(r=[],P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct)),o!==a)for(;o!==a;)r.push(o),P.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(ct));else r=a;r!==a?(125===t.charCodeAt(Ct)?(o=d,Ct++):(o=a,0===Dt&&Mt(M)),o!==a?(Et=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(Ct=e,e=a)):(Ct=e,e=a)}else Ct=e,e=a;e===a&&(e=Ct,t.substr(Ct,2)===u?(n=u,Ct+=2):(n=a,0===Dt&&Mt(z)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.substr(Ct,2)===u?(r=u,Ct+=2):(r=a,0===Dt&&Mt(z)),r!==a?(Et=e,e=r):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a?(t.length>Ct?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(T)),r!==a?(Et=e,e=m(r)):(Ct=e,e=a)):(Ct=e,e=a),e===a&&(e=Ct,92===t.charCodeAt(Ct)?(n=y,Ct++):(n=a,0===Dt&&Mt(O)),n!==a&&(Et=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Kt(){var e,n,r,o;if(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;return r!==a?(Et=e,e={type:"IntegerLiteral",value:g(Pt())}):(Ct=e,e=a),Dt--,e===a&&(n=a,0===Dt&&Mt(ut)),e}function Xt(){var e,n,r,o,i,l,s,c,u,d;for(Dt++,e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));if(46===t.charCodeAt(Ct)?(o=".",Ct++):(o=a,0===Dt&&Mt(ft)),o!==a){if(i=[],S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt)),l!==a)for(;l!==a;)i.push(l),S.test(t.charAt(Ct))?(l=t.charAt(Ct),Ct++):(l=a,0===Dt&&Mt(dt));else i=a;if(i!==a){if(l=Ct,101===t.charCodeAt(Ct)?(s="e",Ct++):(s=a,0===Dt&&Mt(pt)),s===a&&(69===t.charCodeAt(Ct)?(s="E",Ct++):(s=a,0===Dt&&Mt(gt))),s!==a){if(43===t.charCodeAt(Ct)?(c=E,Ct++):(c=a,0===Dt&&Mt(Z)),c===a&&(45===t.charCodeAt(Ct)?(c=A,Ct++):(c=a,0===Dt&&Mt(Q))),c===a&&(c=null),u=[],S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt)),d!==a)for(;d!==a;)u.push(d),S.test(t.charAt(Ct))?(d=t.charAt(Ct),Ct++):(d=a,0===Dt&&Mt(dt));else u=a;u!==a?l=s=[s,c,u]:(Ct=l,l=a)}else Ct=l,l=a;l===a&&(l=null),Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}}else Ct=e,e=a}else Ct=e,e=a;if(e===a){if(e=Ct,45===t.charCodeAt(Ct)?(n=A,Ct++):(n=a,0===Dt&&Mt(Q)),n===a&&(n=null),r=[],S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt)),o!==a)for(;o!==a;)r.push(o),S.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(dt));else r=a;if(r!==a)if(101===t.charCodeAt(Ct)?(o="e",Ct++):(o=a,0===Dt&&Mt(pt)),o===a&&(69===t.charCodeAt(Ct)?(o="E",Ct++):(o=a,0===Dt&&Mt(gt))),o!==a){if(43===t.charCodeAt(Ct)?(i=E,Ct++):(i=a,0===Dt&&Mt(Z)),i===a&&(45===t.charCodeAt(Ct)?(i=A,Ct++):(i=a,0===Dt&&Mt(Q))),i===a&&(i=null),l=[],S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt)),s!==a)for(;s!==a;)l.push(s),S.test(t.charAt(Ct))?(s=t.charAt(Ct),Ct++):(s=a,0===Dt&&Mt(dt));else l=a;l!==a?(Et=e,e={type:"NumberLiteral",value:parseFloat(Pt())}):(Ct=e,e=a)}else Ct=e,e=a;else Ct=e,e=a}return Dt--,e===a&&(n=a,0===Dt&&Mt(ht)),e}function Yt(){var e,n,r,o,i;if(Dt++,e=Ct,n=Ct,Dt++,r=function(){var e,n,r,o;return e=Ct,t.substr(Ct,4)===j?(n=j,Ct+=4):(n=a,0===Dt&&Mt(vt)),n===a&&(t.substr(Ct,5)===V?(n=V,Ct+=5):(n=a,0===Dt&&Mt($t))),n!==a?(r=Ct,Dt++,F.test(t.charAt(Ct))?(o=t.charAt(Ct),Ct++):(o=a,0===Dt&&Mt(yt)),Dt--,o===a?r=void 0:(Ct=r,r=a),r!==a?e=n=[n,r]:(Ct=e,e=a)):(Ct=e,e=a),e}(),Dt--,r===a?n=void 0:(Ct=n,n=a),n!==a)if(I.test(t.charAt(Ct))?(r=t.charAt(Ct),Ct++):(r=a,0===Dt&&Mt(bt)),r!==a){for(o=[],F.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));i!==a;)o.push(i),F.test(t.charAt(Ct))?(i=t.charAt(Ct),Ct++):(i=a,0===Dt&&Mt(yt));Et=e,e={type:"Identifier",name:Pt()}}else Ct=e,e=a;else Ct=e,e=a;return Dt--,e===a&&(n=a,0===Dt&&Mt(_t)),e}function Zt(){var e,n;for(Dt++,e=[],N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));n!==a;)e.push(n),N.test(t.charAt(Ct))?(n=t.charAt(Ct),Ct++):(n=a,0===Dt&&Mt(wt));return Dt--,n=a,0===Dt&&Mt(xt),e}if((n=c())!==a&&Ct===t.length)return n;throw n!==a&&Ct<t.length&&Mt({type:"end"}),r=Vt,o=jt<t.length?t.charAt(jt):null,i=jt<t.length?zt(jt,jt+1):zt(jt,jt),new v(v.buildMessage(r,o),r,o,i)}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(v,Error),v.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source+":"+o.line+":"+o.column;if(r){var a=this.location.end,l=$("",o.line.toString().length," "),s=r[o.line-1],c=(o.line===a.line?a.column:s.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+l+" |\n"+o.line+" | "+s+"\n"+l+" | "+$("",o.column-1," ")+$("",c,"^")}else e+="\n at "+i}return e},v.buildMessage=function(t,e){var n={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."};const _=new Map,b=new Map;function x(t,e,n){const r={args:e,cb:n},o=_.get(t)||[];_.has(t)||_.set(t,o),o.push(r);const i=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");b.set(i,r)}function w(t,e){let n=t.args.length,r=t.args.length;const o=t.args[t.args.length-1];if("object"==typeof o&&o.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function k(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=>{k(t,e)}));break;case"BinaryExpression":case"LogicalExpression":k(t.left,e),k(t.right,e);break;case"UnaryExpression":k(t.argument,e);break;case"ConditionalExpression":k(t.test,e),k(t.consequent,e),k(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{k(t,e)}))}}function C(t,e){for(;t.length<e;)t="0"+t;return t}function E(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"transparent";if("#"!==(t=(t||"").toLowerCase()).charAt(0))return n;const r=j(t);return r?(r.a*=e,A(r)):n}function A(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,o,i]=e,a=2===r.length?r:r+r,l=2===o.length?o:o+o,s=2===i.length?i:i+i,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,o]=e,i=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===o.length?o:o+o;return{a:255,r:parseInt(i,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function V(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function D(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function P(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 D(t.value);if("color"===t.type)return T(O(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function S(t){let e=P(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function F(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}const I=new Int32Array(1);function N(t){return I[0]=t,I[0]}function z(t){if(t<r||t>n)throw new Error("Integer overflow.")}function M(t){const e=[];return k(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 T(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 B(t){return{type:a,value:P(t)}}function R(t){const e=Number(t.value);if(isNaN(e)||!Number.isFinite(e))throw new Error("Unable to convert value to Number.");return{type:s,value:e}}function L(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value/e.value;return t.type===l&&(n=N(n)),{type:t.type,value:n}}function W(t,e){if(0===e.value)throw new Error("Division by zero is not supported.");let n=t.value%e.value;return t.type===l&&(n=N(n)),{type:t.type,value:n}}function U(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r*=e[t].value,e[0].type===l&&(r=N(r));return{type:e[0].type,value:r}}function q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.length?e[0].value:0;for(let t=1;t<e.length;++t)r-=e[t].value,e[0].type===l&&(r=N(r));return{type:e.length?e[0].type:l,value:r}}function H(){let t=0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e=0;e<n.length;++e)t+=n[e].value,n[0].type===l&&(t=N(t));return{type:n.length?n[0].type:l,value:t}}function G(t){const e=Math.abs(t.value);return t.type===l&&z(e),{type:t.type,value:e}}function K(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.max(...e.map((t=>t.value)))}}function X(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Error("Non empty argument list is required.");return{type:e[0].type,value:Math.min(...e.map((t=>t.value)))}}function Y(t){return{type:t.type,value:Math.sign(t.value)}}function Z(t,e){let n;if(0===e.value&&t.type===l)n=t.value;else if(0===t.value&&t.type===l)n=0;else{let r=Math.sign(e.value);t.type===s&&0===r&&(r=Object.is(r,0)?1:-1),n=Math.abs(t.value)*r}return t.type===l&&z(n),{type:t.type,value:n}}function Q(t){return e=>{const n=O(e.value);return{type:s,value:n[t]/255}}}function tt(t){return(e,n)=>{const r=O(e.value);return r[t]=255*n.value,{type:e.type,value:T(r)}}}const et=Q("a"),nt=Q("r"),rt=Q("g"),ot=Q("b"),it=tt("a"),at=tt("r"),lt=tt("g"),st=tt("b");function ct(){}const ut=t=>t;function dt(t,e){for(const n in e)t[n]=e[n];return t}function ht(t){return t()}function ft(){return Object.create(null)}function pt(t){t.forEach(ht)}function gt(t){return"function"==typeof t}let mt;function vt(t,e){return mt||(mt=document.createElement("a")),mt.href=e,t===mt.href}function $t(t,e){return t!=t?e==e:t!==e}function yt(t){return 0===Object.keys(t).length}function _t(t,...e){if(null==t)return ct;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function bt(t,e,n){t.$$.on_destroy.push(_t(e,n))}function xt(t,e,n,r){if(t){const o=wt(t,e,n,r);return t[0](o)}}function wt(t,e,n,r){return t[1]&&r?dt(n.ctx.slice(),t[1](r(e))):n.ctx}function kt(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function Ct(t,e,n,r,o,i){if(o){const a=wt(e,n,r,i);t.p(a,o)}}function Et(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 At(t){return t&>(t.destroy)?t.destroy:ct}const jt="undefined"!=typeof window;let Vt=jt?()=>window.performance.now():()=>Date.now(),Dt=jt?t=>requestAnimationFrame(t):ct;const Pt=new Set;function St(t){Pt.forEach((e=>{e.c(t)||(Pt.delete(e),e.f())})),0!==Pt.size&&Dt(St)}let Ft=!1;function It(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function Nt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function zt(t){const e=Bt("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Nt(t),e),e.sheet}function Mt(t,e){if(Ft){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(o>0&&e[n[o]].claim_order<=i?o+1:It(1,o,(t=>e[n[t]].claim_order),i))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,o=Math.max(l,o)}const i=[],a=[];let l=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const r=n<i.length?i[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.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 Jt(t,e,n){Ft&&!n?Mt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Ot(t){t.parentNode.removeChild(t)}function Tt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Bt(t){return document.createElement(t)}function Rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Lt(t){return document.createTextNode(t)}function Wt(){return Lt(" ")}function Ut(){return Lt("")}function qt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ht(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Gt(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]:Ht(t,r,e[r])}function Kt(t){return Array.from(t.childNodes)}function Xt(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const i=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),i}}for(let r=t.claim_info.last_index-1;r>=0;r--){const i=t[r];if(e(i)){const e=n(i);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,i}}return r()})();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Yt(t,e,n,r){return Xt(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function Zt(t,e,n){return Yt(t,e,n,Bt)}function Qt(t,e,n){return Yt(t,e,n,Rt)}function te(t,e){return Xt(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}),(()=>Lt(e)),!0)}function ee(t){return te(t," ")}function ne(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function re(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const oe=new Map;let ie,ae=0;function le(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),ae-=o,ae||Dt((()=>{ae||(oe.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),oe.clear())})))}function se(t){ie=t}function ce(){if(!ie)throw new Error("Function called outside component initialization");return ie}function ue(t){ce().$$.on_mount.push(t)}function de(t){ce().$$.on_destroy.push(t)}function he(t,e){return ce().$$.context.set(t,e),e}function fe(t){return ce().$$.context.get(t)}function pe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const ge=[],me=[],ve=[],$e=[],ye=Promise.resolve();let _e=!1;function be(){_e||(_e=!0,ye.then(Ae))}function xe(){return be(),ye}function we(t){ve.push(t)}const ke=new Set;let Ce,Ee=0;function Ae(){const t=ie;do{for(;Ee<ge.length;){const t=ge[Ee];Ee++,se(t),je(t.$$)}for(se(null),ge.length=0,Ee=0;me.length;)me.pop()();for(let t=0;t<ve.length;t+=1){const e=ve[t];ke.has(e)||(ke.add(e),e())}ve.length=0}while(ge.length);for(;$e.length;)$e.pop()();_e=!1,ke.clear(),se(t)}function je(t){if(null!==t.fragment){t.update(),pt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(we)}}function Ve(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,r,e),o}(`${e?"intro":"outro"}${n}`))}const De=new Set;let Pe;function Se(){Pe={r:0,c:[],p:Pe}}function Fe(){Pe.r||pt(Pe.c),Pe=Pe.p}function Ie(t,e){t&&t.i&&(De.delete(t),t.i(e))}function Ne(t,e,n,r){if(t&&t.o){if(De.has(t))return;De.add(t),Pe.c.push((()=>{De.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const ze={duration:0};function Me(t,e,n){let r,o,i=e(t,n),a=!1,l=0;function s(){r&&le(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=ut,tick:u=ct,css:d}=i||ze;d&&(r=function(t,e,n,r,o,i,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*i(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=Nt(t),{stylesheet:f,rules:p}=oe.get(h)||function(t,e){const n={stylesheet:zt(e),rules:{}};return oe.set(t,n),n}(h,t);p[d]||(p[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,ae+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Vt()+e,f=h+n;o&&o.abort(),a=!0,we((()=>Ve(t,!0,"start"))),o=function(t){let e;return 0===Pt.size&&Dt(St),{promise:new Promise((n=>{Pt.add(e={c:t,f:n})})),abort(){Pt.delete(e)}}}((e=>{if(a){if(e>=f)return u(1,0),Ve(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,le(t),gt(i)?(i=i(),(Ce||(Ce=Promise.resolve(),Ce.then((()=>{Ce=null}))),Ce).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Je="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Oe(t,e){Ne(t,1,1,(()=>{e.delete(t.key)}))}function Te(t,e){const n={},r={},o={$$scope:1};let i=t.length;for(;i--;){const a=t[i],l=e[i];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)o[t]||(n[t]=l[t],o[t]=1);t[i]=l}else for(const t in a)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let Be;function Re(t){t&&t.c()}function Le(t,e){t&&t.l(e)}function We(t,e,n,r){const{fragment:o,on_mount:i,on_destroy:a,after_update:l}=t.$$;o&&o.m(e,n),r||we((()=>{const e=i.map(ht).filter(gt);a?a.push(...e):pt(e),t.$$.on_mount=[]})),l.forEach(we)}function Ue(t,e){const n=t.$$;null!==n.fragment&&(pt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function qe(t,e,n,r,o,i,a,l=[-1]){const s=ie;se(t);const c=t.$$={fragment:null,ctx:null,props:i,update:ct,not_equal:o,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 i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&function(t,e){-1===t.$$.dirty[0]&&(ge.push(t),be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,pt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Ft=!0;const t=Kt(e.target);c.fragment&&c.fragment.l(t),t.forEach(Ot)}else c.fragment&&c.fragment.c();e.intro&&Ie(t.$$.fragment),We(t,e.target,e.anchor,e.customElement),Ft=!1,Ae()}se(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&&(Be=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(ht).filter(gt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){pt(this.$$.on_disconnect)}$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class He{$destroy(){Ue(this,1),this.$destroy=ct}$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&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ge=[];function Ke(t,e=ct){let n;const r=new Set;function o(e){if(i=e,((o=t)!=o?i==i:o!==i||o&&"object"==typeof o||"function"==typeof o)&&(t=e,n)){const e=!Ge.length;for(const e of r)e[1](),Ge.push(e,t);if(e){for(let t=0;t<Ge.length;t+=2)Ge[t][0](Ge[t+1]);Ge.length=0}}var o,i}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=ct){const l=[i,a];return r.add(l),1===r.size&&(n=e(o)||ct),i(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function Xe(t,e,n){const r=!Array.isArray(t),o=r?[t]:t,i=e.length<2;return{subscribe:Ke(n,(t=>{let n=!1;const a=[];let l=0,s=ct;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);i?t(n):s=gt(n)?n:ct},u=o.map(((t,e)=>_t(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){pt(u),s()}})).subscribe}}class Ye{constructor(t,e){this.checkValue(e),this.name=t,this.value=e}getName(){return this.name}subscribe(t){return this.store||(this.store=Ke(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){this.checkValue(t),this.value=t,this.store&&this.store.set(t)}getValue(){return this.value}}const Ze={string:class extends Ye{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"string"}},number:class extends Ye{checkValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"number"}},integer:class extends Ye{checkValue(t){if("number"!=typeof t||isNaN(t)||t>n||t<r||t!==Math.round(t))throw new Error("Incorrect variable value")}fromString(t){const e=Number(t);return this.checkValue(e),e}getType(){return"integer"}},boolean:class extends Ye{checkValue(t){if(1!==t&&0!==t)throw new Error("Incorrect variable value")}fromString(t){if("1"===t)return 1;if("0"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends Ye{checkValue(t){if("string"!=typeof t||!j(t))throw new Error("Incorrect variable value")}fromString(t){return this.checkValue(t),t}getType(){return"color"}},url:class extends Ye{checkValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value")}fromString(t){return t}getType(){return"url"}}};function Qe(t,e,n){if(!(e in Ze))throw new Error("Unsupported variable type");return new Ze[e](t,n)}function tn(t){return t.map(S).join(", ")}x("toString",[l],B),x("toString",[s],B),x("toString",[c],B),x("toString",[u],B),x("toString",["url"],B),x("toNumber",[l],R),x("toNumber",[a],R),x("toInteger",[s],(function(t){if(t.value>n||t.value<r)throw new Error("Unable to convert value to Integer.");const e=t.value-t.value%1;return{type:l,value:e}})),x("toInteger",[a],(function(t){const e=Number(t.value);if(isNaN(e)||e%1!=0||e>n||e<r)throw new Error("Unable to convert value to Integer.");return{type:l,value:e}})),x("toInteger",[c],(function(t){return{type:l,value:t.value?1:0}})),x("toBoolean",[l],(function(t){if(1!==t.value&&0!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:t.value}})),x("toBoolean",[a],(function(t){if("true"!==t.value&&"false"!==t.value)throw new Error("Unable to convert value to Boolean.");return{type:c,value:"true"===t.value?1:0}})),x("encodeUri",[a],(function(t){try{return{type:a,value:encodeURIComponent(t.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),x("decodeUri",[a],(function(t){try{return{type:a,value:decodeURIComponent(t.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),x("parseUnixTime",[l],(function(t){return{type:d,value:new Date(1e3*t.value)}})),x("nowLocal",[],(function(){return{type:d,value:new Date}})),x("addMillis",[d,l],(function(t,e){return{type:d,value:new Date(t.value.getTime()+e.value)}})),x("setYear",[d,l],(function(t,e){const n=new Date(t.value);return n.setFullYear(e.value),{type:d,value:n}})),x("setMonth",[d,l],(function(t,e){if(e.value<1||e.value>12)throw new Error("Expecting month in [1..12], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMonth(e.value-1),{type:d,value:n}})),x("setDay",[d,l],(function(t,e){const n=new Date(t.value);if(e.value<=0&&-1!==e.value||e.value>function(t){const e=new Date(t);return e.setMonth(e.getMonth()+1),e.setDate(0),e.getDate()}(n))throw new Error("Unable to set day ".concat(e.value," for date ").concat(P(t),"."));return n.setDate(-1===e.value?0:e.value),{type:d,value:n}})),x("setHours",[d,l],(function(t,e){if(e.value<0||e.value>23)throw new Error("Expecting hours in [0..23], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setHours(e.value-n.getTimezoneOffset()/60),{type:d,value:n}})),x("setMinutes",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMinutes(e.value),{type:d,value:n}})),x("setSeconds",[d,l],(function(t,e){if(e.value<0||e.value>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setSeconds(e.value),{type:d,value:n}})),x("setMillis",[d,l],(function(t,e){if(e.value<0||e.value>999)throw new Error("Expecting millis in [0..999], instead got ".concat(e.value,"."));const n=new Date(t.value);return n.setMilliseconds(e.value),{type:d,value:n}})),x("len",[a],(function(t){return{type:l,value:t.value.length}})),x("contains",[a,a],(function(t,e){return{type:c,value:t.value.includes(e.value)?1:0}})),x("substring",[a,l,l],(function(t,e,n){if(n.value<e.value)throw new Error("Indexes should be in ascending order.");if(e.value<0||e.value>t.value.length||n.value<0||n.value>t.value.length)throw new Error("Indexes are out of bounds.");return{type:a,value:t.value.substring(e.value,n.value)}})),x("replaceAll",[a,a,a],(function(t,e,n){let r;return r=e.value?t.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.value),"g"),n.value):t.value,{type:a,value:r}})),x("index",[a,a],(function(t,e){return{type:l,value:t.value.indexOf(e.value)}})),x("lastIndex",[a,a],(function(t,e){return{type:l,value:t.value.lastIndexOf(e.value)}})),x("trim",[a],(function(t){return{type:a,value:t.value.trim()}})),x("trimLeft",[a],(function(t){return{type:a,value:t.value.replace(/^\s+/,"")}})),x("trimRight",[a],(function(t){return{type:a,value:t.value.replace(/\s+$/,"")}})),x("toUpperCase",[a],(function(t){return{type:a,value:t.value.toUpperCase()}})),x("toLowerCase",[a],(function(t){return{type:a,value:t.value.toLowerCase()}})),x("div",[l,l],L),x("div",[s,s],L),x("mod",[l,l],W),x("mod",[s,s],W),x("mul",[{type:l,isVararg:!0}],U),x("mul",[{type:s,isVararg:!0}],U),x("sub",[{type:l,isVararg:!0}],q),x("sub",[{type:s,isVararg:!0}],q),x("sum",[{type:l,isVararg:!0}],H),x("sum",[{type:s,isVararg:!0}],H),x("abs",[l],G),x("abs",[s],G),x("max",[{type:l,isVararg:!0}],K),x("max",[{type:s,isVararg:!0}],K),x("min",[{type:l,isVararg:!0}],X),x("min",[{type:s,isVararg:!0}],X),x("maxNumber",[],(function(){return{type:s,value:o}})),x("minNumber",[],(function(){return{type:s,value:i}})),x("maxInteger",[],(function(){return{type:l,value:n}})),x("minInteger",[],(function(){return{type:l,value:r}})),x("round",[s],(function(t){const e=Math.sign(t.value);return{type:s,value:e*Math.round(Math.abs(t.value))}})),x("floor",[s],(function(t){return{type:s,value:Math.floor(t.value)}})),x("ceil",[s],(function(t){return{type:s,value:Math.ceil(t.value)}})),x("signum",[s],Y),x("signum",[l],Y),x("copySign",[s,s],Z),x("copySign",[l,l],Z),x("getColorAlpha",[a],et),x("getColorAlpha",[u],et),x("getColorRed",[a],nt),x("getColorRed",[u],nt),x("getColorGreen",[a],rt),x("getColorGreen",[u],rt),x("getColorBlue",[a],ot),x("getColorBlue",[u],ot),x("setColorAlpha",[a,s],it),x("setColorAlpha",[u,s],it),x("setColorRed",[a,s],at),x("setColorRed",[u,s],at),x("setColorGreen",[a,s],lt),x("setColorGreen",[u,s],lt),x("setColorBlue",[a,s],st),x("setColorBlue",[u,s],st),x("rgb",[s,s,s],(function(t,e,n){const r={a:255,r:255*t.value,g:255*e.value,b:255*n.value};return{type:a,value:T(r)}})),x("argb",[s,s,s,s],(function(t,e,n,r){const o={a:255*t.value,r:255*e.value,g:255*n.value,b:255*r.value};return{type:a,value:T(o)}}));const en={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=V(nn(t,e.argument));switch(e.operator){case"!":if(n.type===c)return{type:c,value:n.value?0:1};J("".concat(e.operator).concat(S(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(S(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=V(nn(t,e.test));if(n.type===c)return n.value?nn(t,e.consequent):nn(t,e.alternate);J("".concat(S(n)," ? ").concat(S(nn(t,e.consequent))," : ").concat(S(nn(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 nn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=P(nn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:a,value:n}},LogicalExpression:function(t,e){const n=V(nn(t,e.left));if(n.type!==c&&J("".concat(S(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=V(nn(t,e.right));return r.type!==c&&J("".concat(S(n)," ").concat(e.operator," ").concat(S(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(F(r.type),".")),{type:c,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=nn(t,e.left),o=nn(t,e.right);if(r.type!==o.type&&J("".concat(S(r)," ").concat(e.operator," ").concat(S(o)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(F(r.type)," and ").concat(F(o.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===d&&n.type===d?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:c,value:r?1:0}}(n,r,o);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==s&&e.type!==l&&e.type!==d&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(e.type)," type."));const o=e.type===d?e.value.getTime():e.value,i=n.type===d?n.value.getTime():n.value;return r=">"===t?o>i:">="===t?o>=i:"<"===t?o<i:o<=i,{type:c,value:r?1:0}}(n,r,o);if("+"===n||"-"===n)return function(t,e,n){if(e.type!==a&&e.type!==s&&e.type!==l&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(e.type)," type.")),e.type===a)return"-"===t&&J("".concat(S(e)," - ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(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=N(r)),{type:e.type,value:r}}(n,r,o);if("/"===n||"*"===n||"%"===n)return function(t,e,n){let r;if(e.type!==l&&e.type!==s&&J("".concat(S(e)," ").concat(t," ").concat(S(n)),"Operator '".concat(t,"' cannot be applied to ").concat(F(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(S(e)," ").concat(t," ").concat(S(n)),"Division by zero is not supported."),r="/"===t?e.value/n.value:e.value%n.value}return e.type===l&&(r=N(r)),{type:e.type,value:r}}(n,r,o);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;if(!_.has(n))throw new Error("Unknown function name: ".concat(n,"."));let r;const o=e.arguments.map((e=>nn(t,e))),i=n+":"+o.map((t=>t.type)).join("#");if(b.has(i))r=b.get(i);else{const t=function(t,e){const n=_.get(t);if(!n)throw new Error("Missing function");let r=null;for(let t=0;t<n.length;++t){const o=w(n[t],e);if("match"===o.type)return n[t];r||(r=o)}if(!r)throw new Error("Missing function");return r}(n,o);if("expected"in t){const e=o.map((t=>F(t.type))).join(", "),r="".concat(n,"(").concat(tn(o),")");"few"===t.type&&0===o.length?J(r,"Non empty argument list is required for function '".concat(n,"'.")):(t.type,J(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(...o)}catch(t){J("".concat(n,"(").concat(tn(o),")"),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,"' has value null"))}};function nn(t,e){if(e.type in en)return en[e.type](t,e);throw new Error("Unsupported expression")}function rn(t,e){try{return nn(t,e)}catch(t){return{type:"error",value:t.message}}}const on="divkit-b023",an="divkit-bd25",ln="divkit-c016",sn="divkit-ee11",cn="divkit-fef1",un=Symbol("root");function dn(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 hn={text:"divkit-d9b0",text_halign_left:"divkit-a4cb",text_halign_center:"divkit-e165",text_halign_right:"divkit-ea28",text_valign_top:"divkit-d8ce",text_valign_center:"divkit-ef58",text_valign_bottom:"divkit-fe8e",text_width_content:"divkit-f41f",text_height_content:"divkit-ea52",text__inner:"divkit-b852",text_singleline:"divkit-ef11",text_truncate_none:"divkit-c6ea",text_multiline:"divkit-ee8e",text__inner_gradient:"divkit-cb8e",text__image:"divkit-bf6e",text__image_hidden:"divkit-f100"},fn={outer:"divkit-d65a","outer_hide-on-transition-in":"divkit-a6d1","outer_valign-self_top":"divkit-b8d7","outer_valign-self_default":"divkit-e369","outer_valign-self_center":"divkit-d40a","outer_valign-self_bottom":"divkit-f550","outer_halign-self_left":"divkit-e896","outer_halign-self_default":"divkit-d42d","outer_halign-self_center":"divkit-b833","outer_halign-self_right":"divkit-a1de",outer_width_parent:"divkit-ad44",outer_height_parent:"divkit-b896","outer_width-constrained":"divkit-d321","outer_height-constrained":"divkit-a525","outer_parent-halign_start":"divkit-eec1","outer_parent-halign_center":"divkit-a094","outer_parent-halign_end":"divkit-daf0","outer_parent-valign_start":"divkit-a4d2","outer_parent-valign_center":"divkit-da31","outer_parent-valign_end":"divkit-df47","outer_parent-overlap":"divkit-dab2","outer_parent-overlap-absolute":"divkit-d43f","outer_scroll-snap_center":"divkit-d9e3","outer_scroll-snap_start":"divkit-efd1",outer__border:"divkit-d405",outer_visibility_invisible:"divkit-f018",outer_visibility_gone:"divkit-e784","outer_has-action-animation":"divkit-f498"};function pn(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 gn(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 mn(t){let e=gn(t);return"0"===e&&(e+="em"),e}function vn(t){let e=String(t);return e.indexOf("&")>-1&&(e=e.replace(/&/g,"&")),e.indexOf("<")>-1&&(e=e.replace(/</g,"<")),e.indexOf(">")>-1&&(e=e.replace(/>/g,">")),e.indexOf('"')>-1&&(e=e.replace(/"/g,""")),e}const $n=Boolean;function yn(t){if(1===t.length&&"solid"===t[0].type)return{color:E(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=E(t.bg.color||"transparent");return{size:void 0,pos:void 0,image:"linear-gradient(to bottom,".concat(e,",").concat(e,")")}}({bg:t}):"gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter($n);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>E(t))).join(",")+")"}:void 0}({bg:t}):"image"===t.type?function(t){var e;const n=null===(e=t.bg)||void 0===e?void 0:e.image_url;if(n)return{size:_n(t.bg.scale),pos:bn(t.bg),image:'url("'+vn(n)+'")'}}({bg:t}):void 0)).filter($n).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(",")}}function _n(t){return"fill"!==t&&t?"fit"===t?"contain":void 0:"cover"}function bn(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 xn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}const wn=new Set(["http","https","tel","mailto","intent"]);function kn(t){return wn.has(t)}function Cn(t,e){e&&t.push(e)}function En(t,e,n){const r=[];Cn(r,e[t]);for(const o in n)if(n.hasOwnProperty(o)){const i=n[o];i&&Cn(r,e["".concat(t,"_").concat(o)+("string"==typeof i?"_".concat(i):"")])}return r.join(" ")}const An=function(t,e){var n;let{json:r,origJson:o,templateContext:i,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:o,templateContext:i}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},jn=Symbol("state");function Vn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Dn(t){return Vn(t)&&t>=0}function Pn(t,e,n,r){const o=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<o.length;++t)if(o[t]&&!Dn(o[t]))return r;return function(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=>gn((t||e)/n*10))).join(" ")}(t,e,n)}function Sn(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]&&!Dn(n[t]))return e;return function(t){return gn(t.top||0)+" "+gn(t.right||0)+" "+gn(t.bottom||0)+" "+gn(t.left||0)}(t)}function Fn(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const In=Object.prototype.hasOwnProperty;function Nn(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!In.call(e,o)||!Nn(t[o],e[o]))return!1}return!0}function zn(t,e){return Nn(t,e)?e:t}function Mn(){}const Jn=Symbol("action");function On(t){let e,n,r,o,i,a,l;const s=t[12].default,c=xt(s,t,t[11],null);let u=[{class:n=""+(t[0]+(t[7]?" ".concat(t[4]?"":an," ").concat(ln):""))},{style:t[1]},{role:r=t[7]?"button":null},t[2]],d={};for(let t=0;t<u.length;t+=1)d=dt(d,u[t]);return{c(){e=Bt("span"),c&&c.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0,role:!0});var n=Kt(e);c&&c.l(n),n.forEach(Ot),this.h()},h(){Gt(e,d)},m(n,r){Jt(n,e,r),c&&c.m(e,null),i=!0,a||(l=[At(o=t[3].call(null,e)),qt(e,"click",(function(){gt(t[7]?t[8]:null)&&(t[7]?t[8]:null).apply(this,arguments)})),qt(e,"click",t[15]),qt(e,"keydown",t[16])],a=!0)},p(o,a){t=o,c&&c.p&&(!i||2048&a)&&Ct(c,s,t,t[11],i?kt(s,t[11],a,null):Et(t[11]),null),Gt(e,d=Te(u,[(!i||145&a&&n!==(n=""+(t[0]+(t[7]?" ".concat(t[4]?"":an," ").concat(ln):""))))&&{class:n},(!i||2&a)&&{style:t[1]},(!i||128&a&&r!==(r=t[7]?"button":null))&&{role:r},4&a&&t[2]]))},i(t){i||(Ie(c,t),i=!0)},o(t){Ne(c,t),i=!1},d(t){t&&Ot(e),c&&c.d(t),a=!1,pt(l)}}}function Tn(t){let e,n,r,o,i,a;const l=t[12].default,s=xt(l,t,t[11],null);let c=[{href:t[5]},{target:t[6]},{style:t[1]},{class:n=t[0]+" "+(t[4]?"":an)},t[2]],u={};for(let t=0;t<c.length;t+=1)u=dt(u,c[t]);return{c(){e=Bt("a"),s&&s.c(),this.h()},l(t){e=Zt(t,"A",{href:!0,target:!0,style:!0,class:!0});var n=Kt(e);s&&s.l(n),n.forEach(Ot),this.h()},h(){Gt(e,u)},m(n,l){Jt(n,e,l),s&&s.m(e,null),o=!0,i||(a=[At(r=t[3].call(null,e)),qt(e,"click",t[8]),qt(e,"click",t[13]),qt(e,"keydown",t[14])],i=!0)},p(t,r){s&&s.p&&(!o||2048&r)&&Ct(s,l,t,t[11],o?kt(l,t[11],r,null):Et(t[11]),null),Gt(e,u=Te(c,[(!o||32&r)&&{href:t[5]},(!o||64&r)&&{target:t[6]},(!o||2&r)&&{style:t[1]},(!o||17&r&&n!==(n=t[0]+" "+(t[4]?"":an)))&&{class:n},4&r&&t[2]]))},i(t){o||(Ie(s,t),o=!0)},o(t){Ne(s,t),o=!1},d(t){t&&Ot(e),s&&s.d(t),i=!1,pt(a)}}}function Bn(t){let e,n,r,o;const i=[Tn,On],a=[];function l(t,e){return t[5]?0:1}return e=l(t),n=a[e]=i[e](t),{c(){n.c(),r=Ut()},l(t){n.l(t),r=Ut()},m(t,n){a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let[s]=o,c=e;e=l(t),e===c?a[e].p(t,s):(Se(),Ne(a[c],1,1,(()=>{a[c]=null})),Fe(),n=a[e],n?n.p(t,s):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r))},i(t){o||(Ie(n),o=!0)},o(t){Ne(n),o=!1},d(t){a[e].d(t),t&&Ot(r)}}}function Rn(t,e,n){let{$$slots:r={},$$scope:o}=e,{actions:i}=e,{cls:a=""}=e,{style:l=null}=e,{attrs:s}=e,{use:c=Mn}=e,{customAction:u=null}=e,{hasActionAnimation:d=!1}=e;const h=fe(un),f=fe(Jn);he(Jn,{hasAction:()=>Boolean(f.hasAction()||(null==i?void 0:i.length))});let p,g="";if(Array.isArray(i)&&(null==i?void 0:i.length))for(let t=0;t<i.length;++t){const e=i[t].url;if(e){g=e,p=i[t].target||void 0;break}}Array.isArray(i)&&(null==i?void 0:i.length)&&f.hasAction()&&(g="",h.logError(dn(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:i}})));let m=Boolean(u);return g&&!kn(xn(g))&&(g="",m=!0),t.$$set=t=>{"actions"in t&&n(9,i=t.actions),"cls"in t&&n(0,a=t.cls),"style"in t&&n(1,l=t.style),"attrs"in t&&n(2,s=t.attrs),"use"in t&&n(3,c=t.use),"customAction"in t&&n(10,u=t.customAction),"hasActionAnimation"in t&&n(4,d=t.hasActionAnimation),"$$scope"in t&&n(11,o=t.$$scope)},[a,l,s,c,d,g,p,m,function(t){f.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==u?void 0:u(t))?t.preventDefault():i&&(i.forEach((e=>{const n=e.url;if(n){const r=xn(n);r&&!kn(r)&&(t.preventDefault(),"div-action"===r?h.execAction(e):e.log_id&&h.execCustomAction(e))}})),i.forEach((t=>{h.logStat("click",t)}))))},i,u,o,r,function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)},function(e){pe.call(this,t,e)}]}const Ln=class extends He{constructor(t){super(),qe(this,t,Rn,Bn,$t,{actions:9,cls:0,style:1,attrs:2,use:3,customAction:10,hasActionAnimation:4})}},Wn="divkit-b921";function Un(t,e,n){const r=t.slice();return r[3]=e[n],r}function qn(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Wn),Ht(e,"style",r=pn(t[3].style))},m(t,n){Jt(t,e,n)},p:ct,d(t){t&&Ot(e)}}}function Hn(t){let e,n,r,o,i,a;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){vt(e.src,n=t[3].image_url)||Ht(e,"src",n),Ht(e,"alt",""),Ht(e,"aria-hidden","true"),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"class",r=Wn),Ht(e,"style",o=pn(t[3].style))},m(n,r){Jt(n,e,r),i||(a=qt(e,"error",t[1]),i=!0)},p:ct,d(t){t&&Ot(e),i=!1,a()}}}function Gn(t){let e,n=function(t,e){return t[3].image_url?Hn:qn}(t),r=n(t);return{c(){r.c(),e=Ut()},l(t){r.l(t),e=Ut()},m(t,n){r.m(t,n),Jt(t,e,n)},p(t,e){r.p(t,e)},d(t){r.d(t),t&&Ot(e)}}}function Kn(t){let e,n,r=t[0],o=[];for(let e=0;e<r.length;e+=1)o[e]=Gn(Un(t,r,e));return{c(){e=Bt("span");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var n=Kt(e);for(let t=0;t<o.length;t+=1)o[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n="divkit-bf25")},m(t,n){Jt(t,e,n);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,n){let[i]=n;if(3&i){let n;for(r=t[0],n=0;n<r.length;n+=1){const a=Un(t,r,n);o[n]?o[n].p(a,i):(o[n]=Gn(a),o[n].c(),o[n].m(e,null))}for(;n<o.length;n+=1)o[n].d(1);o.length=r.length}},i:ct,o:ct,d(t){t&&Ot(e),Tt(o,t)}}}function Xn(t,e,n){let{background:r=[]}=e;const o=r.map((t=>{const e={},n=yn([t]),r={style:e};return"solid"===t.type&&(e["background-color"]=n.color),"gradient"===t.type&&(e["background-image"]=n.image),"image"===t.type&&(e.opacity=Number(t.alpha),r.image_url=t.image_url,e["object-fit"]=n.size,e["object-position"]=n.position),r}));return t.$$set=t=>{"background"in t&&n(2,r=t.background)},[o,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd61")},r]}const Yn=class extends He{constructor(t){super(),qe(this,t,Xn,Kn,$t,{background:2})}};function Zn(t,e){const n=Number(t);return isNaN(n)?e:n}function Qn(t){let e,n;return e=new Yn({props:{background:t[4]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.background=t[4]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function tr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=fn.outer__border),Ht(e,"style",r=pn(t[1]))},m(t,n){Jt(t,e,n)},p(t,n){2&n[0]&&r!==(r=pn(t[1]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function er(t){let e,n,r,o=t[2]&&Qn(t);const i=t[90].default,a=xt(i,t,t[91],null);let l=t[6]&&tr(t);return{c(){o&&o.c(),e=Ut(),a&&a.c(),l&&l.c(),n=Ut()},l(t){o&&o.l(t),e=Ut(),a&&a.l(t),l&&l.l(t),n=Ut()},m(t,i){o&&o.m(t,i),Jt(t,e,i),a&&a.m(t,i),l&&l.m(t,i),Jt(t,n,i),r=!0},p(t,s){t[2]?o?(o.p(t,s),4&s[0]&&Ie(o,1)):(o=Qn(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o&&(Se(),Ne(o,1,1,(()=>{o=null})),Fe()),a&&a.p&&(!r||536870912&s[2])&&Ct(a,i,t,t[91],r?kt(i,t[91],s,null):Et(t[91]),null),t[6]?l?l.p(t,s):(l=tr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Ie(o),Ie(a,t),r=!0)},o(t){Ne(o),Ne(a,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),a&&a.d(t),l&&l.d(t),t&&Ot(n)}}}function nr(t){let e,n;return e=new Ln({props:{use:t[25],cls:t[0]+" "+En("outer",fn,t[10]),style:pn(t[8]),actions:t[7],attrs:t[5],hasActionAnimation:Boolean(t[3]),$$slots:{default:[er]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};1025&n[0]&&(r.cls=t[0]+" "+En("outer",fn,t[10])),256&n[0]&&(r.style=pn(t[8])),128&n[0]&&(r.actions=t[7]),32&n[0]&&(r.attrs=t[5]),8&n[0]&&(r.hasActionAnimation=Boolean(t[3])),86&n[0]|536870912&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function rr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,F,I,N,z,M,J,O=ct,T=ct,B=ct,R=ct,L=ct,W=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct,Q=ct;t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),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()));let{$$slots:tt={},$$scope:et}=e;var nt,rt,ot,it,at,lt;let{json:st={}}=e,{origJson:ut}=e,{templateContext:dt}=e,{cls:ht=""}=e,{style:ft}=e,{layoutParams:pt={}}=e,{customDescription:gt=!1}=e,{customPaddings:mt=!1}=e,{customActions:vt=""}=e,{forceWidth:$t=!1}=e,{forceHeight:yt=!1}=e;const bt=fe(un),xt=fe(jn);let wt,kt,Ct,Et,At,jt,Vt,Dt={},Pt={},St=!1,Ft=1,It="transparent",Nt=0,zt="",Mt="",Jt="",Ot={},Tt=0,Bt="default",Rt={},Lt=0,Wt="default",Ut=1;const qt=st.transition_triggers||["state_change","visibility_change"],Ht=-1!==qt.indexOf("state_change")&&st.id,Gt=-1!==qt.indexOf("visibility_change")&&st.id;let Kt,Xt,Yt,Zt,Qt,te,ee,ne=[],re="";function oe(t){var e;const r=t.start_value||1,o=t.end_value||1,i=t.start_delay||0,a=t.duration||300,l=function(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:"ease_in_out"}(t.interpolator).replace(/_/g,"-");switch(t.name){case"fade":return n(63,Zt=r),n(64,Qt=o),"opacity ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"scale":return n(65,te=r),n(66,ee=o),"transform ".concat(a,"ms ").concat(l," ").concat(i,"ms");case"set":return(null===(e=t.items)||void 0===e?void 0:e.length)?t.items.map(oe).join(", "):(bt.logError(dn(new Error("Empty items value for action_animation with name='set'"))),"");default:return bt.logError(dn(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let ie,ae,le=!1,se="visible",ce=0,ue=0;return t.$$set=t=>{"json"in t&&n(26,st=t.json),"origJson"in t&&n(27,ut=t.origJson),"templateContext"in t&&n(28,dt=t.templateContext),"cls"in t&&n(0,ht=t.cls),"style"in t&&n(29,ft=t.style),"layoutParams"in t&&n(30,pt=t.layoutParams),"customDescription"in t&&n(31,gt=t.customDescription),"customPaddings"in t&&n(32,mt=t.customPaddings),"customActions"in t&&n(33,vt=t.customActions),"forceWidth"in t&&n(34,$t=t.forceWidth),"forceHeight"in t&&n(35,yt=t.forceHeight),"$$scope"in t&&n(91,et=t.$$scope)},t.$$.update=()=>{if(67108864&t.$$.dirty[0]&&(n(24,r=bt.getDerivedFromVars(st.border)),Q(),Q=_t(r,(t=>n(89,J=t)))),2&t.$$.dirty[0]|65504&t.$$.dirty[1]|134217728&t.$$.dirty[2]){let t={},e={},r=!1;if(J){if(J.has_shadow){const e=J.shadow;t["box-shadow"]=e?gn((null===n(37,rt=null===n(36,nt=e.offset)||void 0===nt?void 0:nt.x)||void 0===rt?void 0:rt.value)||0)+" "+gn((null===n(39,it=null===n(38,ot=e.offset)||void 0===ot?void 0:ot.y)||void 0===it?void 0:it.value)||0)+" "+gn(null!==n(40,at=e.blur)&&void 0!==at?at:2)+" "+E(e.color||"#000000",null!==n(41,lt=e.alpha)&&void 0!==lt?lt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}J.stroke&&(r=!0,n(43,Ft=Fn(J.stroke.width,Ft)),n(44,It=E(J.stroke.color,1,It)),e.border="".concat(gn(Ft)," solid ").concat(It)),J.corners_radius?(n(46,zt=Pn(J.corners_radius,0,10,zt)),e["border-radius"]=t["border-radius"]=zt):J.corner_radius&&(n(45,Nt=Fn(J.corner_radius,Nt)),e["border-radius"]=t["border-radius"]=gn(Nt))}n(42,Dt=zn(t,Dt)),n(1,Pt=zn(e,Pt)),n(6,St=r)}if(67108864&t.$$.dirty[0]&&(n(23,o=bt.getDerivedFromVars(st.paddings)),Z(),Z=_t(o,(t=>n(88,M=t)))),65538&t.$$.dirty[1]|67108864&t.$$.dirty[2]&&n(47,Mt=Sn(M&&!mt?M:void 0,Mt)),67108864&t.$$.dirty[0]&&(n(22,i=bt.getDerivedFromVars(st.margins)),X(),X=_t(i,(t=>n(86,N=t)))),131072&t.$$.dirty[1]|16777216&t.$$.dirty[2]&&n(48,Jt=Sn(N,Jt)),67108864&t.$$.dirty[0]&&(n(21,a=bt.getDerivedFromVars(st.width)),G(),G=_t(a,(t=>n(84,F=t)))),67108864&t.$$.dirty[0]&&(n(20,l=bt.getDerivedFromVars(st.alignment_horizontal)),Y(),Y=_t(l,(t=>n(87,z=t)))),1073741824&t.$$.dirty[0]|3407880&t.$$.dirty[1]|54525952&t.$$.dirty[2]){let t,e,r={};F?"fixed"===F.type?(n(51,Tt=Fn(F.value,Tt)),e=gn(Tt)):"wrap_content"===F.type||!pt.overlapParent&&"match_parent"===F.type&&pt.parentHorizontalWrapContent?(t="content",("wrap_content"===F.type&&F.constrained||"match_parent"===F.type&&pt.parentHorizontalWrapContent)&&(r["width-constrained"]=!0)):"match_parent"===F.type&&(t="parent","vertical"===pt.parentLayoutOrientation&&(e="calc(100% - ".concat(mn(((null==N?void 0:N.left)||0)+((null==N?void 0:N.right)||0)),")"))):t="parent","content"===t&&$t&&(t="parent",bt.logError(dn(new Error("Incorrect usage of width with value 'wrap_content'"),{level:"warn"}))),t&&(r.width=t);const o=z;"left"===o||"center"===o||"right"===o?r["halign-self"]=n(52,Bt=o):(r["halign-self"]=Bt,"parent"!==t&&pt.parentHAlign&&(r["parent-halign"]=pt.parentHAlign)),n(50,Ct=e),n(49,Ot=zn(r,Ot))}if(67108864&t.$$.dirty[0]&&(n(19,s=bt.getDerivedFromVars(st.height)),H(),H=_t(s,(t=>n(83,S=t)))),67108864&t.$$.dirty[0]&&(n(18,c=bt.getDerivedFromVars(st.alignment_vertical)),K(),K=_t(c,(t=>n(85,I=t)))),1073741824&t.$$.dirty[0]|54525968&t.$$.dirty[1]|27262976&t.$$.dirty[2]){let t,e,r={};S?"fixed"===S.type?(n(55,Lt=Fn(S.value,Lt)),e=gn(Lt)):"wrap_content"===S.type||!pt.overlapParent&&"match_parent"===S.type&&pt.parentVerticalWrapContent?(t="content",("wrap_content"===S.type&&S.constrained||"match_parent"===S.type&&pt.parentVerticalWrapContent)&&(r["height-constrained"]=!0)):"match_parent"===S.type&&(t="parent","horizontal"===pt.parentLayoutOrientation&&(e="calc(100% - ".concat(mn(((null==N?void 0:N.top)||0)+((null==N?void 0:N.bottom)||0)),")"))):t="content","content"===t&&yt&&(t="parent",bt.logError(dn(new Error("Incorrect usage of height with value 'wrap_content'"),{level:"warn"}))),t&&(r.height=t);const o=I;"top"===o||"center"===o||"bottom"===o?r["valign-self"]=n(56,Wt=o):(r["valign-self"]=Wt,"parent"!==t&&pt.parentVAlign&&(r["parent-valign"]=pt.parentVAlign)),n(54,Et=e),n(53,Rt=zn(r,Rt))}var e,tt;if(1073741824&t.$$.dirty[0]&&n(75,u=!!pt.overlapParent||void 0),1073741824&t.$$.dirty[0]|6291456&t.$$.dirty[2]&&n(74,d=pt.overlapParent&&(!F||"match_parent"===F.type)&&"match_parent"===(null==S?void 0:S.type)),1073741824&t.$$.dirty[0]&&n(73,h=pt.gridArea?"".concat(pt.gridArea.y+1,"/").concat(pt.gridArea.x+1,"/span ").concat(pt.gridArea.rowSpan,"/span ").concat(pt.gridArea.colSpan):void 0),67108864&t.$$.dirty[0]&&(n(17,f=bt.getDerivedFromVars(st.alpha)),q(),q=_t(f,(t=>n(82,P=t)))),67108864&t.$$.dirty[1]|1048576&t.$$.dirty[2]&&(n(57,(tt=Ut,Ut=!Dn(e=P)||void 0===e||e>1?tt:Number(e))),n(58,At=1===Ut?void 0:Ut)),67108864&t.$$.dirty[0]&&(n(16,p=bt.getDerivedFromVars(st.accessibility)),U(),U=_t(p,(t=>n(81,D=t)))),1&t.$$.dirty[1]|524288&t.$$.dirty[2]&&(n(5,kt=void 0),D&&!gt&&D.description&&(n(5,kt={}),n(5,kt["aria-label"]=D.description,kt))),67108864&t.$$.dirty[0]&&(n(15,g=bt.getDerivedFromVars(st.background)),W(),W=_t(g,(t=>n(4,V=t)))),20&t.$$.dirty[0]&&(n(59,jt={}),n(2,Vt=!1),V&&(n(2,Vt=V.some((t=>"image"===t.type))),!Vt))){const t=yn(V);n(59,jt["background-color"]=t.color,jt),n(59,jt["background-image"]=t.image,jt),n(59,jt["background-size"]=t.size,jt),n(59,jt["background-position"]=t.position,jt),n(59,jt["background-repeat"]="no-repeat",jt)}if(67108864&t.$$.dirty[0]&&(n(60,Kt=void 0),Ht&&st.transition_in&&bt.isRunning("stateChange")&&n(60,Kt=!0)),67108864&t.$$.dirty[0]&&(n(62,Yt=void 0),Ht&&st.transition_change&&bt.isRunning("stateChange")&&xt.hasTransitionChange(st.id)&&n(62,Yt=!0)),67108864&t.$$.dirty[0]&&(n(14,m=bt.getDerivedFromVars(st.action)),R(),R=_t(m,(t=>n(79,A=t)))),67108864&t.$$.dirty[0]&&(n(13,v=bt.getDerivedFromVars(st.actions)),L(),L=_t(v,(t=>n(80,j=t)))),4&t.$$.dirty[1]|393216&t.$$.dirty[2]){let t=j||A&&[A]||[];Array.isArray(t)?t.length&&vt&&(t=[],bt.logError(dn(new Error('Cannot use action on component "'.concat(vt,'"'))))):(t=[],bt.logError(dn(new Error("Actions should be array")))),n(7,ne=t)}if(67108864&t.$$.dirty[0]&&(n(12,$=bt.getDerivedFromVars(st.action_animation)),B(),B=_t($,(t=>n(78,C=t)))),65536&t.$$.dirty[2]&&C&&n(3,re=oe(C)),67108864&t.$$.dirty[0]&&(n(11,y=bt.getDerivedFromVars(st.visibility)),T(),T=_t(y,(t=>n(77,k=t)))),32864&t.$$.dirty[2]){const t=se,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(k,se);t!==e&&(!le||"visible"!==se&&"visible"!==e?n(68,se=e):async function(t){n(68,se=t);const e="visible"===t?"in":"out",r="in"===e?st.transition_in:st.transition_out;Gt&&r&&(await xe(),"in"===e&&n(61,Xt=!0),xt.runVisibilityTransition(Object.assign(Object.assign({},st),{visibility:"visible"}),dt,r,wt,e).then((()=>{"in"===e&&n(61,Xt=!1)})).catch((t=>{throw"in"===e&&n(61,Xt=!1),t})))}(e)),le||n(67,le=!0)}if(1073741832&t.$$.dirty[0]|1615069184&t.$$.dirty[1]|12353&t.$$.dirty[2]&&n(10,_=Object.assign(Object.assign(Object.assign({},Ot),Rt),{"parent-overlap":u,"parent-overlap-absolute":d,"scroll-snap":pt.scrollSnap,"hide-on-transition-in":Kt||Xt||Yt,visibility:se,"has-action-animation":Boolean(re)})),67108864&t.$$.dirty[0]&&(n(9,b=bt.getDerivedFromVars(st.transform)),O(),O=_t(b,(t=>n(76,w=t)))),16768&t.$$.dirty[2]&&w&&void 0!==w.rotation){const t=w.pivot_x||{type:"pivot-percentage",value:50};n(69,ce=Zn(t.value,ce));const e="pivot-fixed"===t.type?gn(ce):"".concat(ce,"%"),r=w.pivot_y||{type:"pivot-percentage",value:50};n(70,ue=Zn(r.value,ue));const o="pivot-fixed"===r.type?gn(ue):"".concat(ue,"%");n(71,ie="".concat(e," ").concat(o)),n(72,ae="rotate(".concat(w.rotation,"deg)"))}536870920&t.$$.dirty[0]|411764736&t.$$.dirty[1]|3614&t.$$.dirty[2]&&n(8,x=Object.assign(Object.assign(Object.assign(Object.assign({},ft),jt),Dt),{width:Ct,height:Et,"grid-area":h,padding:Mt,margin:Jt,opacity:At,transition:re,"transform-origin":ie,transform:ae,"--divkit-animation-opacity-start":Zt,"--divkit-animation-opacity-end":Qt,"--divkit-animation-scale-start":te,"--divkit-animation-scale-end":ee}))},[ht,Pt,Vt,re,V,kt,St,ne,x,b,_,y,$,v,m,g,p,f,c,s,l,a,i,o,r,function(t){wt=t,Ht&&st.transition_in&&xt.registerChildWithTransitionIn(st,dt,st.transition_in,t).then((()=>{n(60,Kt=!1)})).catch((t=>{throw n(60,Kt=!1),t})),Ht&&st.transition_out&&xt.registerChildWithTransitionOut(st,dt,st.transition_out,t),Ht&&st.transition_change&&xt.registerChildWithTransitionChange(st,dt,st.transition_change,t).then((()=>{n(62,Yt=!1)})).catch((t=>{throw n(62,Yt=!1),t})),function(t,e){let{visibilityActions:n,rootCtx:r}=e;if(null==n||!n.length)return;const o=n.map((t=>({action:t,visible:!1,count:0,finished:!1}))),i=[...new Set([...n.map((t=>(t.visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{o.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=0===e.action.log_limit?1/0:e.action.log_limit||1;++e.count>=t&&(e.finished=!0);const n=e.action.url;if(n){const t=xn(n);t&&!kn(t)&&("div-action"===t?r.execAction(e.action):e.action.log_id&&r.execCustomAction(e.action))}r.logStat("visible",e.action)}),e.action.visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:i}).observe(t)}(t,{visibilityActions:bt.getJsonWithVars(st.visibility_actions||st.visibility_action&&[st.visibility_action]),rootCtx:bt});const e=st.id;e&&xt.registerChild(e);let r=null;return An&&(r=An(t,{json:st,origJson:ut,rootCtx:bt,templateContext:dt})),{destroy(){e&&xt.unregisterChild(e),r&&r.destroy()}}},st,ut,dt,ft,pt,gt,mt,vt,$t,yt,nt,rt,ot,it,at,lt,Dt,Ft,It,Nt,zt,Mt,Jt,Ot,Ct,Tt,Bt,Rt,Et,Lt,Wt,Ut,At,jt,Kt,Xt,Yt,Zt,Qt,te,ee,le,se,ce,ue,ie,ae,h,d,u,w,k,C,A,j,D,P,S,F,I,N,z,M,J,tt,et]}const or=class extends He{constructor(t){super(),qe(this,t,rr,nr,$t,{json:26,origJson:27,templateContext:28,cls:0,style:29,layoutParams:30,customDescription:31,customPaddings:32,customActions:33,forceWidth:34,forceHeight:35},null,[-1,-1,-1,-1])}},ir={"text-range":"divkit-faf0","text-range_singleline":"divkit-ccb6","text-range__top-offset":"divkit-d923","text-range_decoration_both":"divkit-d7e0","text-range_decoration_underline":"divkit-f3dd","text-range_decoration_strike":"divkit-d27b","text-range_decoration_none":"divkit-c6b0"};function ar(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function lr(t){return Vn(t)&&t>0}function sr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function cr(t,e){return sr(t)||e}function ur(t){let e,n;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=ir["text-range__top-offset"]),re(e,"margin-top",t[4],!1)},m(t,n){Jt(t,e,n)},p(t,n){16&n&&re(e,"margin-top",t[4],!1)},d(t){t&&Ot(e)}}}function dr(t){let e;return{c(){e=Lt(t[0])},l(n){e=te(n,t[0])},m(t,n){Jt(t,e,n)},p(t,n){1&n&&ne(e,t[0])},d(t){t&&Ot(e)}}}function hr(t){let e,n,r,o=t[4]&&ur(t);return n=new Ln({props:{cls:En("text-range",ir,t[3]),actions:t[1],style:pn(t[2]),$$slots:{default:[dr]},$$scope:{ctx:t}}}),{c(){o&&o.c(),e=Ut(),Re(n.$$.fragment)},l(t){o&&o.l(t),e=Ut(),Le(n.$$.fragment,t)},m(t,i){o&&o.m(t,i),Jt(t,e,i),We(n,t,i),r=!0},p(t,r){let[i]=r;t[4]?o?o.p(t,i):(o=ur(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);const a={};8&i&&(a.cls=En("text-range",ir,t[3])),2&i&&(a.actions=t[1]),4&i&&(a.style=pn(t[2])),16385&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i(t){r||(Ie(n.$$.fragment,t),r=!0)},o(t){Ne(n.$$.fragment,t),r=!1},d(t){o&&o.d(t),t&&Ot(e),Ue(n,t)}}}function fr(t,e,n){let r,o,i,a,{text:l}=e,{rootFontSize:s}=e,{textStyles:c={}}=e,{singleline:u=!1}=e,{actions:d}=e,h="none",f=12,p=1.25,g="",m="";return t.$$set=t=>{"text"in t&&n(0,l=t.text),"rootFontSize"in t&&n(5,s=t.rootFontSize),"textStyles"in t&&n(6,c=t.textStyles),"singleline"in t&&n(7,u=t.singleline),"actions"in t&&n(1,d=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(c.underline||c.strike)&&("single"===c.underline&&"single"===c.strike?t="both":"single"===c.underline?t="underline":"single"===c.strike&&(t="strike")),n(8,h=t)}576&t.$$.dirty&&n(9,f=ar(c.font_size,f)),576&t.$$.dirty&&lr(c.line_height)&&n(10,p=Number(c.line_height)/f),64&t.$$.dirty&&Dn(c.letter_spacing)&&n(11,g=gn(c.letter_spacing)),4160&t.$$.dirty&&n(12,a=cr(c.font_weight,a)),8256&t.$$.dirty&&n(13,m=E(c.text_color,1,m)),64&t.$$.dirty&&n(4,r=c.top_offset?gn(c.top_offset):""),384&t.$$.dirty&&n(3,o={singleline:u,decoration:h}),15904&t.$$.dirty&&n(2,i={"font-size":gn(10*f/s),"line-height":p,"letter-spacing":g,"font-weight":a,color:m})},[l,d,i,o,r,s,c,u,h,f,p,g,a,m]}const pr=class extends He{constructor(t){super(),qe(this,t,fr,hr,$t,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function gr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function mr(t,e){return"top"===t||"center"===t||"bottom"===t?t:e}const{Boolean:vr}=Je;function $r(t,e,n){const r=t.slice();return r[59]=e[n],r[61]=n,r}function yr(t){let e,n;return e=new or({props:{cls:En("text",hn,t[13])+" "+(t[6]?"":ln),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Er]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=En("text",hn,t[13])+" "+(t[6]?"":ln)),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]),536878768&n[0]|1&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function _r(t){let e,n;return e=new pr({props:{text:t[4],rootFontSize:t[5],textStyles:t[29],singleline:t[7]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),536870912&n[0]&&(r.textStyles=t[29]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function br(t){let e,n,r=t[10],o=[];for(let e=0;e<r.length;e+=1)o[e]=Cr($r(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(1073743520&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const i=$r(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Cr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(vr);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function xr(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{style:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=hn.text__image),vt(n.src,o=t[59].image.url)||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"aria-hidden","true"),Ht(n,"alt",""),Ht(n,"style",i=pn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0})),Ht(e,"style",a=pn(t[59].image.wrapperStyle))},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=qt(n,"error",t[30]),l=!0)},p(t,r){1024&r[0]&&!vt(n.src,o=t[59].image.url)&&Ht(n,"src",o),1536&r[0]&&i!==(i=pn({width:t[59].image.width,height:t[59].image.height,"margin-top":t[9]?"-".concat(t[59].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[59].image.height):void 0,filter:t[59].image.svgFilterId?"url(#".concat(t[59].image.svgFilterId,")"):void 0}))&&Ht(n,"style",i),1024&r[0]&&a!==(a=pn(t[59].image.wrapperStyle))&&Ht(e,"style",a)},i:ct,o:ct,d(t){t&&Ot(e),l=!1,s()}}}function wr(t){let e,n,r=t[59].text&&kr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[59].text?r?(r.p(t,n),1024&n[0]&&Ie(r,1)):(r=kr(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function kr(t){let e,n;return e=new pr({props:{text:t[59].text,rootFontSize:t[5],textStyles:t[59].textStyles,singleline:t[7],actions:t[59].actions}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[59].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[59].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[59].actions),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Cr(t){let e,n,r,o;const i=[wr,xr],a=[];function l(t,e){return"text"in t[59]?0:t[59].image?1:-1}return~(e=l(t))&&(n=a[e]=i[e](t)),{c(){n&&n.c(),r=Ut()},l(t){n&&n.l(t),r=Ut()},m(t,n){~e&&a[e].m(t,n),Jt(t,r,n),o=!0},p(t,o){let s=e;e=l(t),e===s?~e&&a[e].p(t,o):(n&&(Se(),Ne(a[s],1,1,(()=>{a[s]=null})),Fe()),~e?(n=a[e],n?n.p(t,o):(n=a[e]=i[e](t),n.c()),Ie(n,1),n.m(r.parentNode,r)):n=null)},i(t){o||(Ie(n),o=!0)},o(t){Ne(n),o=!1},d(t){~e&&a[e].d(t),t&&Ot(r)}}}function Er(t){let e,n,r,o,i,a;const l=[br,_r],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=Bt("span"),r.c(),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0});var n=Kt(e);r.l(n),n.forEach(Ot),this.h()},h(){Ht(e,"class",o=En("text__inner",hn,t[12])),Ht(e,"style",i=pn(t[11]))},m(t,r){Jt(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):(Se(),Ne(s[d],1,1,(()=>{s[d]=null})),Fe(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Ie(r,1),r.m(e,null)),(!a||4096&u[0]&&o!==(o=En("text__inner",hn,t[12])))&&Ht(e,"class",o),(!a||2048&u[0]&&i!==(i=pn(t[11])))&&Ht(e,"style",i)},i(t){a||(Ie(r),a=!0)},o(t){Ne(r),a=!1},d(t){t&&Ot(e),s[n].d()}}}function Ar(t){let e,n,r=!t[8]&&yr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=yr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function jr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,F,I,N,z,M,J,O,T,B=ct,R=ct,L=ct,W=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct,Q=ct,tt=ct,et=ct;t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),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()));let{json:nt={}}=e,{templateContext:rt}=e,{origJson:ot}=e,{layoutParams:it}=e;const at=fe(un);let lt=!1,st="",ut=12,dt=1.25,ht=!1,ft="",pt="",gt=!1,mt="left",vt="top",$t="",yt="",bt=!1,xt=[],wt=[];return de((()=>{wt.forEach((t=>{at.removeSvgFilter(t)}))})),t.$$set=t=>{"json"in t&&n(0,nt=t.json),"templateContext"in t&&n(1,rt=t.templateContext),"origJson"in t&&n(2,ot=t.origJson),"layoutParams"in t&&n(3,it=t.layoutParams)},t.$$.update=()=>{var e,rt;if(1&t.$$.dirty[0]&&(n(28,r=at.getDerivedFromVars(nt.text)),et(),et=_t(r,(t=>n(55,T=t)))),16&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&(n(4,(e=T,rt=st,st=String(null!=e?e:"")||rt)),st?n(8,lt=!1):(n(8,lt=!0),at.logError(dn(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(27,o=at.getDerivedFromVars(nt.ranges)),W(),W=_t(o,(t=>n(45,V=t)))),1&t.$$.dirty[0]&&(n(26,i=at.getDerivedFromVars(nt.images)),L(),L=_t(i,(t=>n(44,j=t)))),1&t.$$.dirty[0]&&(n(25,a=at.getDerivedFromVars({font_size:nt.font_size,letter_spacing:nt.letter_spacing,font_weight:nt.font_weight,text_color:nt.text_color,underline:nt.underline,strike:nt.strike,line_height:nt.line_height})),U(),U=_t(a,(t=>n(29,D=t)))),1&t.$$.dirty[0]&&(n(24,l=at.getDerivedFromVars(nt.font_size)),tt(),tt=_t(l,(t=>n(54,O=t)))),32&t.$$.dirty[0]|8388608&t.$$.dirty[1]&&n(5,ut=ar(O,ut)),1&t.$$.dirty[0]&&(n(23,s=at.getDerivedFromVars(nt.line_height)),Q(),Q=_t(s,(t=>n(53,J=t)))),32&t.$$.dirty[0]|4194304&t.$$.dirty[1]){const t=J;lr(t)?(n(31,dt=Number(t)/ut),n(9,ht=!0)):n(9,ht=!1)}if(1&t.$$.dirty[0]&&(n(22,c=at.getDerivedFromVars(nt.max_lines)),X(),X=_t(c,(t=>n(50,N=t)))),524288&t.$$.dirty[1]&&n(7,u=1===N),548865&t.$$.dirty[1]){let t="",e="",r=!1;if(N&&N>1){let n=Number(N);t=n*dt+"em",V||j||(e=n,r=!0)}n(32,ft=t),n(33,pt=e),n(34,gt=r)}if(1&t.$$.dirty[0]&&(n(21,d=at.getDerivedFromVars(nt.text_alignment_horizontal)),Z(),Z=_t(d,(t=>n(52,M=t)))),2097168&t.$$.dirty[1]&&n(35,mt=gr(M,mt)),1&t.$$.dirty[0]&&(n(20,h=at.getDerivedFromVars(nt.text_alignment_vertical)),Y(),Y=_t(h,(t=>n(51,z=t)))),1048608&t.$$.dirty[1]&&n(36,vt=mr(z,vt)),16&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(41,f=!V||st&&1===V.length&&V[0]&&0===V[0].start&&"number"==typeof V[0].end&&V[0].end>=st.length),1&t.$$.dirty[0]&&(n(19,p=at.getDerivedFromVars(nt.text_color)),K(),K=_t(p,(t=>n(49,I=t)))),278528&t.$$.dirty[1]&&n(40,g=Boolean(I)!==Boolean(V&&V[0]&&V[0].text_color)),804416&t.$$.dirty[1]){let t="";N&&f&&g&&(t=E(I||V&&V[0]&&V[0].text_color,1,$t)),n(37,$t=t)}if(1&t.$$.dirty[0]&&(n(18,m=at.getDerivedFromVars(nt.truncate)),G(),G=_t(m,(t=>n(48,F=t)))),131072&t.$$.dirty[1]&&n(39,v="none"===F?"none":""),1&t.$$.dirty[0]&&(n(17,$=at.getDerivedFromVars(nt.text_gradient)),H(),H=_t($,(t=>n(47,S=t)))),65536&t.$$.dirty[1]){let t="";if(S){const e=yn([S]);e.image&&(t=e.image)}n(38,yt=t)}1&t.$$.dirty[0]&&(n(16,y=at.getDerivedFromVars(nt.selectable)),q(),q=_t(y,(t=>n(46,P=t)))),64&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(6,bt=function(t,e){return 1===t||0===t?Boolean(t):e}(P,bt)),1&t.$$.dirty[0]&&(n(15,_=at.getDerivedFromVars(nt.width)),R(),R=_t(_,(t=>n(43,A=t)))),1&t.$$.dirty[0]&&(n(14,b=at.getDerivedFromVars(nt.height)),B(),B=_t(b,(t=>n(42,C=t)))),16&t.$$.dirty[0]|24576&t.$$.dirty[1]&&function(t,e,r){let o=[];if(wt.forEach((t=>{at.removeSvgFilter(t)})),wt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,xt=[]);const i=t;let a=e||[{start:0,end:i.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<=i.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},D),...c);o.push({text:i.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({},D),...c),n=gn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=gn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const i={"font-size":gn(10*(Number(e.font_size)||12)/ut)};let a="";if(t.image.tint_color){const e=E(t.image.tint_color);a=at.addSvgFilter(e),wt.push(e)}o.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:i,svgFilterId:a}})}s=r})),s<i.length&&o.push({text:i.substring(s),textStyles:Object.assign({},D)}),n(10,xt=o)}(st,V,j),128&t.$$.dirty[0]|6456&t.$$.dirty[1]&&n(13,x={singleline:u,multiline:gt,halign:mt,valign:vt,truncate:v,width:"wrap_content"!==(null==A?void 0:A.type)||A.constrained?"":"content",height:!C||"wrap_content"===C.type&&!C.constrained?"content":""}),128&t.$$.dirty[1]&&n(12,w={gradient:Boolean(yt)}),32&t.$$.dirty[0]|199&t.$$.dirty[1]&&n(11,k={"font-size":gn(ut),"line-height":dt,"max-height":ft,"-webkit-line-clamp":pt,color:$t,"background-image":yt})},[nt,rt,ot,it,st,ut,bt,u,lt,ht,xt,k,w,x,b,_,y,$,m,p,h,d,c,s,l,a,i,o,r,D,function(t){t.target&&"classList"in t.target&&t.target.classList.add(hn.text__image_hidden)},dt,ft,pt,gt,mt,vt,$t,yt,v,g,f,C,A,j,V,P,S,F,I,N,z,M,J,O,T]}const Vr={container:"divkit-d37d",container_orientation_vertical:"divkit-ddc3",container_valign_top:"divkit-a331",container_valign_center:"divkit-aae6",container_valign_bottom:"divkit-c222",container_halign_left:"divkit-a309",container_halign_center:"divkit-bac9",container_halign_right:"divkit-f423",container_orientation_horizontal:"divkit-fe45",container_orientation_overlap:"divkit-a644"};function Dr(t,e,n){const r=t.slice();return r[28]=e[n],r}function Pr(t){let e,n;return e=new or({props:{cls:En("container",Vr,t[9]),json:t[0],origJson:t[2],templateContext:t[1],style:t[6],layoutParams:t[3],$$slots:{default:[Fr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.cls=En("container",Vr,t[9])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),64&n[0]&&(r.style=t[6]),8&n[0]&&(r.layoutParams=t[3]),160&n[0]|1&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Sr(t){let e,n;return e=new Yi({props:{layoutParams:t[5],div:t[28].json,templateContext:t[28].templateContext,origJson:t[28].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.layoutParams=t[5]),128&n[0]&&(r.div=t[28].json),128&n[0]&&(r.templateContext=t[28].templateContext),128&n[0]&&(r.origJson=t[28].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Fr(t){let e,n,r=t[7],o=[];for(let e=0;e<r.length;e+=1)o[e]=Sr(Dr(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(t,e,r),n=!0},p(t,n){if(160&n[0]){let a;for(r=t[7],a=0;a<r.length;a+=1){const i=Dr(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=Sr(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function Ir(t){let e,n,r=!t[4]&&Pr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=Pr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Nr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=ct,$=ct,y=ct,_=ct,b=ct,x=ct;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:w={}}=e,{templateContext:k}=e,{origJson:C}=e,{layoutParams:E}=e;const A={left:"start",center:"center",right:"end"},j={top:"start",center:"center",bottom:"end"},V=fe(un);let D,P=!1,S="vertical",F="top",I="left",N={},z={};return t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,E=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=w.items),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,P=!1):(n(4,P=!0),V.logError(dn(new Error('Incorrect or empty "items" prop for div "container"'))))),262162&t.$$.dirty[0]&&n(7,o=(!P&&r||[]).map((t=>{let e=t,n=k;return({templateContext:n,json:e}=V.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=V.getDerivedFromVars(w.orientation)),x(),x=_t(i,(t=>n(24,m=t)))),16809984&t.$$.dirty[0]&&n(15,S=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(m,S)),1&t.$$.dirty[0]&&(n(13,a=V.getDerivedFromVars(w.content_alignment_vertical)),b(),b=_t(a,(t=>n(23,g=t)))),8454144&t.$$.dirty[0]&&n(16,F=mr(g,F)),1&t.$$.dirty[0]&&(n(12,l=V.getDerivedFromVars(w.content_alignment_horizontal)),_(),_=_t(l,(t=>n(22,p=t)))),4325376&t.$$.dirty[0]&&n(17,I=gr(p,I)),1&t.$$.dirty[0]&&(n(11,s=V.getDerivedFromVars(w.width)),$(),$=_t(s,(t=>n(20,h=t)))),1&t.$$.dirty[0]&&(n(10,c=V.getDerivedFromVars(w.height)),y(),y=_t(c,(t=>n(21,f=t)))),3375136&t.$$.dirty[0]){let t={};"overlap"===S&&(t.overlapParent=!0),"horizontal"!==S&&(t.parentHAlign=A[I],"wrap_content"!==(null==f?void 0:f.type)&&f||(t.parentVerticalWrapContent=!0)),"vertical"!==S&&(t.parentVAlign=j[F],"wrap_content"===(null==h?void 0:h.type)&&(t.parentHorizontalWrapContent=!0)),"horizontal"===S&&(t.parentLayoutOrientation="horizontal"),"vertical"===S&&(t.parentLayoutOrientation="vertical"),n(5,N=zn(t,N))}if(32896&t.$$.dirty[0]){let t=[];if("overlap"!==S){const e="vertical"===S?"height":"width";o.forEach((n=>{const r=V.getDerivedFromVars(n.json[e]);t.push(r)}))}n(8,D=Xe(t,(t=>t))),v(),v=_t(D,(t=>n(19,d=t)))}if(3702848&t.$$.dirty[0]){let t={};if("overlap"!==S){const e="vertical"===S?"height":"width",n="vertical"===S?"wrap_content"===(null==f?void 0:f.type)||!f:"wrap_content"===(null==h?void 0:h.type);let r=d.map((t=>!t&&"width"===e||"match_parent"===(null==t?void 0:t.type)?n?(V.logError(dn(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"})),"minmax(0, auto)"):(Number(null==t?void 0:t.weight)||1)+"fr":t&&"wrap_content"===t.type&&t.constrained?"minmax(0, auto)":"auto")).join(" ");t["vertical"===S?"grid-template-rows":"grid-template-columns"]=r}n(6,z=zn(t,z))}229376&t.$$.dirty[0]&&n(9,u={orientation:S,valign:F,halign:I})},[w,k,C,E,P,N,z,o,D,u,c,s,l,a,i,S,F,I,r,d,h,f,p,g,m]}const zr={separator:"divkit-a30b",separator_orientation_horizontal:"divkit-f529",separator_orientation_vertical:"divkit-e9e2",separator__inner:"divkit-db7d"};function Mr(t,e){return"vertical"===t||"horizontal"===t?t:e}function Jr(t){let e,n,r;return{c(){e=Bt("span"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=zr.separator__inner),Ht(e,"style",r=pn(t[5]))},m(t,n){Jt(t,e,n)},p(t,n){32&n&&r!==(r=pn(t[5]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Or(t){let e,n=t[6]&&Jr(t);return{c(){n&&n.c(),e=Ut()},l(t){n&&n.l(t),e=Ut()},m(t,r){n&&n.m(t,r),Jt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=Jr(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Ot(e)}}}function Tr(t){let e,n;return e=new or({props:{cls:En("separator",zr,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Or]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){let[r]=n;const o={};16&r&&(o.cls=En("separator",zr,t[4])),1&r&&(o.json=t[0]),4&r&&(o.origJson=t[2]),2&r&&(o.templateContext=t[1]),8&r&&(o.layoutParams=t[3]),16480&r&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Br(t,e,n){let r,o,i,a,l,s,c,u=ct;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:f}=e,{layoutParams:p}=e;const g=fe(un);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,f=t.origJson),"layoutParams"in t&&n(3,p=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=_t(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=Mr(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,o=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=E(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,i="horizontal"===m?"100%":gn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?gn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:i,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,f,p,s,l,o,r,m,v,a,i,c]}const Rr={image:"divkit-a448","image_is-width-content":"divkit-fe14","image_is-height-content":"divkit-f4d9",image__image:"divkit-ce04",image_error:"divkit-f10d","image__aspect-wrapper":"divkit-dc80",image_aspect:"divkit-ae78"};function Lr(t){let e,n;return e=new or({props:{cls:En("image",Rr,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[qr]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=En("image",Rr,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]),9968&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Wr(t){let e,n,r,o,i,a,l;return{c(){e=Bt("img"),this.h()},l(t){e=Zt(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){Ht(e,"class",n=Rr.image__image),vt(e.src,r=t[4]?Gr:t[7])||Ht(e,"src",r),Ht(e,"loading","lazy"),Ht(e,"decoding","async"),Ht(e,"style",o=pn(t[6])),Ht(e,"alt",t[13]),Ht(e,"aria-hidden",i=t[13]?null:"true")},m(n,r){Jt(n,e,r),a||(l=[qt(e,"load",t[23]),qt(e,"error",t[24])],a=!0)},p(t,n){144&n[0]&&!vt(e.src,r=t[4]?Gr:t[7])&&Ht(e,"src",r),64&n[0]&&o!==(o=pn(t[6]))&&Ht(e,"style",o),8192&n[0]&&Ht(e,"alt",t[13]),8192&n[0]&&i!==(i=t[13]?null:"true")&&Ht(e,"aria-hidden",i)},d(t){t&&Ot(e),a=!1,pt(l)}}}function Ur(t){let e,n,r,o,i,a,l,s,c="".concat(t[5],"%");return{c(){e=Bt("span"),n=Bt("img"),this.h()},l(t){e=Zt(t,"SPAN",{class:!0});var r=Kt(e);n=Zt(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=Rr.image__image),vt(n.src,o=t[4]?Gr:t[7])||Ht(n,"src",o),Ht(n,"loading","lazy"),Ht(n,"decoding","async"),Ht(n,"style",t[9]),Ht(n,"alt",t[13]),Ht(n,"aria-hidden",i=t[13]?null:"true"),Ht(e,"class",a=Rr["image__aspect-wrapper"]),re(e,"padding-bottom",c,!1)},m(r,o){Jt(r,e,o),Mt(e,n),l||(s=[qt(n,"load",t[23]),qt(n,"error",t[24])],l=!0)},p(t,r){144&r[0]&&!vt(n.src,o=t[4]?Gr:t[7])&&Ht(n,"src",o),512&r[0]&&Ht(n,"style",t[9]),8192&r[0]&&Ht(n,"alt",t[13]),8192&r[0]&&i!==(i=t[13]?null:"true")&&Ht(n,"aria-hidden",i),32&r[0]&&c!==(c="".concat(t[5],"%"))&&re(e,"padding-bottom",c,!1)},d(t){t&&Ot(e),l=!1,pt(s)}}}function qr(t){let e;function n(t,e){return t[10].aspect?Ur:Wr}let r=n(t),o=r(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,n){o.m(t,n),Jt(t,e,n)},p(t,i){r===(r=n(t))&&o?o.p(t,i):(o.d(1),o=r(t),o&&(o.c(),o.m(e.parentNode,e)))},d(t){o.d(t),t&&Ot(e)}}}function Hr(t){let e,n,r=!t[8]&&Lr(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[8]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),256&n[0]&&Ie(r,1)):(r=Lr(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}const Gr="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";function Kr(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,A,j,V,D,P,S,F=ct,I=ct,N=ct,z=ct,M=ct,J=ct,O=ct,T=ct,B=ct,R=ct,L=ct;t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L()));let{json:W={}}=e,{templateContext:U}=e,{origJson:q}=e,{layoutParams:H}=e;const G=fe(un);let K=!1,X=!0,Y="rgba(0,0,0,0.08)",Z=!1,Q="",tt="none",et="50% 50%";let nt,rt="0",ot="";return de((()=>{G.removeSvgFilter(nt)})),t.$$set=t=>{"json"in t&&n(0,W=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,q=t.origJson),"layoutParams"in t&&n(3,H=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=G.getDerivedFromVars(W.image_url)),L(),L=_t(r,(t=>n(44,S=t)))),1&t.$$.dirty[0]&&(n(21,o=G.getDerivedFromVars(W.gif_url)),R(),R=_t(o,(t=>n(43,P=t)))),12288&t.$$.dirty[1]&&n(7,i=S||P),128&t.$$.dirty[0]&&(n(25,X=!0),n(4,K=!1)),128&t.$$.dirty[0]&&(i?n(8,Z=!1):(n(8,Z=!0),G.logError(dn(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(20,a=G.getDerivedFromVars(W.width)),B(),B=_t(a,(t=>n(42,D=t)))),2048&t.$$.dirty[1]&&n(33,l="wrap_content"===(null==D?void 0:D.type)),1&t.$$.dirty[0]&&(n(19,s=G.getDerivedFromVars(W.height)),T(),T=_t(s,(t=>n(41,V=t)))),1024&t.$$.dirty[1]&&n(32,c="wrap_content"===(null==V?void 0:V.type)),1&t.$$.dirty[0]&&(n(18,u=G.getDerivedFromVars(W.preview)),O(),O=_t(u,(t=>n(40,j=t)))),33554448&t.$$.dirty[0]|512&t.$$.dirty[1]){const t=j;(X||K)&&t?t.startsWith("data:")?n(27,Q='url("'.concat(vn(t),'")')):n(27,Q='url("data:image/jpg;base64,'.concat(vn(t),'")')):n(27,Q="")}if(1&t.$$.dirty[0]&&(n(17,d=G.getDerivedFromVars(W.placeholder_color)),J(),J=_t(d,(t=>n(39,A=t)))),33554448&t.$$.dirty[0]|256&t.$$.dirty[1]&&function(t,e,r){n(26,Y=t||e?E(r,1,Y):"")}(X,K,A),1&t.$$.dirty[0]&&(n(16,h=G.getDerivedFromVars(W.scale)),M(),M=_t(h,(t=>n(38,C=t)))),268435456&t.$$.dirty[0]|128&t.$$.dirty[1]&&n(28,tt=_n(C)||tt),1&t.$$.dirty[0]&&(n(15,f=G.getDerivedFromVars({content_alignment_horizontal:W.content_alignment_horizontal,content_alignment_vertical:W.content_alignment_vertical})),z(),z=_t(f,(t=>n(37,k=t)))),64&t.$$.dirty[1]&&n(29,et=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:bn(t)}(k,et)),1&t.$$.dirty[0]&&(n(14,p=G.getDerivedFromVars(W.accessibility)),N(),N=_t(p,(t=>n(36,w=t)))),32&t.$$.dirty[1]&&n(13,g=(null==w?void 0:w.description)||""),1&t.$$.dirty[0]&&(n(12,m=G.getDerivedFromVars(W.aspect)),I(),I=_t(m,(t=>n(35,x=t)))),16&t.$$.dirty[1]){const t=null==x?void 0:x.ratio;t&&lr(t)?n(5,rt=(100/Number(t)).toFixed(2)):n(5,rt="0")}if(1&t.$$.dirty[0]&&(n(11,v=G.getDerivedFromVars(W.tint_color)),F(),F=_t(v,(t=>n(34,b=t)))),1073741824&t.$$.dirty[0]|8&t.$$.dirty[1]){const t=b,e=t?E(t):void 0;e!==nt&&(G.removeSvgFilter(nt),n(31,ot=e?G.addSvgFilter(e):""),n(30,nt=e))}32&t.$$.dirty[0]|6&t.$$.dirty[1]&&n(10,$={aspect:"0"!==rt,"is-width-content":l,"is-height-content":c}),1040187408&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(6,y={"background-image":Q,"background-color":Y,"object-fit":tt,"object-position":et,filter:X||K||!ot?"":"url(#".concat(ot,")")}),64&t.$$.dirty[0]&&n(9,_=pn(y))},[W,U,q,H,K,rt,y,i,Z,_,$,v,m,g,p,f,h,d,u,s,a,o,r,function(){n(25,X=!1)},function(){n(4,K=!0)},X,Y,Q,tt,et,nt,ot,c,l,b,x,w,k,C,A,j,V,D,P,S]}const Xr=class extends He{constructor(t){super(),qe(this,t,Kr,Hr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Yr={grid:"divkit-d908",grid_halign_left:"divkit-f63b",grid_halign_center:"divkit-a14a",grid_halign_right:"divkit-b071",grid_valign_top:"divkit-fbca",grid_valign_center:"divkit-d431",grid_valign_bottom:"divkit-e420"};function Zr(t){return t>0&&t<1}function Qr(t){return String(Math.ceil(1e3*t)/1e3)}function to(t,e,n){if(t.some(Zr)){const e=Math.max(...t.filter(Zr).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,o=0;const i=[];if(t.every(Boolean)){o=t.reduce(((t,e)=>t+e),0);for(let i=0;i<n;++i){if(!e[i])continue;const n=e[i]/t[i]*o;n>r&&(r=n)}}for(let e=0;e<n;++e)r?i[e]="minmax(".concat(gn(r*t[e]/o),",").concat(Qr(t[e]),"fr)"):t[e]?i[e]="".concat(Qr(t[e]),"fr"):i[e]="auto";return i.join(" ")}function eo(t,e,n){const r=t.slice();return r[29]=e[n],r}function no(t){let e,n;return e=new or({props:{cls:En("grid",Yr,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[oo]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=En("grid",Yr,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ro(t){let e,n;return e=new Yi({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function oo(t){let e,n,r=t[5],o=[];for(let e=0;e<r.length;e+=1)o[e]=ro(eo(t,r,e));const i=t=>Ne(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=Ut()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=Ut()},m(t,r){for(let e=0;e<o.length;e+=1)o[e].m(t,r);Jt(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 i=eo(t,r,a);o[a]?(o[a].p(i,n),Ie(o[a],1)):(o[a]=ro(i),o[a].c(),Ie(o[a],1),o[a].m(e.parentNode,e))}for(Se(),a=r.length;a<o.length;a+=1)i(a);Fe()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ie(o[t]);n=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Ne(o[t]);n=!1},d(t){Tt(o,t),t&&Ot(e)}}}function io(t){let e,n,r=!t[6]&&no(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[6]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),64&n[0]&&Ie(r,1)):(r=no(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ao(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=ct,m=ct,v=ct,$=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$()));let{json:y={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:x}=e;const w=fe(un);let k,C,E=!1,A=1,j=[],V=[],D=[],P=[],S=0,F=!1,I="top",N="left";return t.$$set=t=>{"json"in t&&n(0,y=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=y.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,E=!1):(n(12,E=!0),w.logError(dn(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,o=w.getDerivedFromVars(y.column_count)),$(),$=_t(o,(t=>n(27,p=t)))),134225920&t.$$.dirty[0]&&n(13,A=ar(p,A)),8392706&t.$$.dirty[0]&&n(22,i=(!E&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=w.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];i.forEach((e=>{t.push(w.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=Xe(t,(t=>t))),v(),v=_t(k,(t=>n(26,f=t)))}if(72081408&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,j=[]),n(15,V=[]),n(16,D=[]),n(17,P=[]),n(19,F=!1),n(5,C=i.map(((o,i)=>{var a,l,s,c;const u=f[i],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,p={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,$=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let o=e;o<e+d;++o)for(let e=r;e<r+h;++e)t[o+"_"+e]?n(19,F=!0):(t[o+"_"+e]=!0,(!j[o]||j[o]<g)&&n(14,j[o]=g,j),(!V[e]||V[e]<m)&&n(15,V[e]=m,V),(!D[o]||D[o]<v)&&n(16,D[o]=v,D),(!P[e]||P[e]<$)&&n(17,P[e]=$,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},o),{layoutParams:{gridArea:p}})}))),0!==e&&n(19,F=!0),F&&w.logError(dn(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=w.getDerivedFromVars(y.content_alignment_vertical)),m(),m=_t(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=mr(h,I)),1&t.$$.dirty[0]&&(n(9,l=w.getDerivedFromVars(y.content_alignment_horizontal)),g(),g=_t(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,N=gr(d,N)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:N}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":to(j,D,A),"grid-template-rows":to(V,P,S)}),528384&t.$$.dirty[0]&&n(6,u=E||F)},[y,_,b,x,k,C,u,c,s,l,a,o,E,A,j,V,D,P,S,F,I,N,i,r,d,h,f,p]}const lo={gallery:"divkit-cbb0",gallery_orientation_horizontal:"divkit-c9be",gallery_orientation_vertical:"divkit-a72d",gallery__scroller:"divkit-a4e3","gallery_scroll-snap":"divkit-f606","gallery__items-grid":"divkit-eb4a",gallery__items:"divkit-af27",gallery__arrow:"divkit-b72d","gallery__arrow-icon":"divkit-d100",gallery__arrow_left:"divkit-a0a5",gallery__arrow_right:"divkit-f0f5","gallery__arrow-icon-path":"divkit-b417"};function so(t){const e=[];let n=t[0],r=1;for(let o=1;o<=t.length;o++)t[o]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[o],r=1):r++;return e.join(" ")}const{Boolean:co}=Je;function uo(t,e,n){const r=t.slice();return r[57]=e[n],r[58]=e,r[59]=n,r}function ho(t,e,n){const r=t.slice();return r[60]=e[n],r}function fo(t){let e,n;return e=new or({props:{cls:En("gallery",lo,t[14]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",forceHeight:"vertical"===t[5],forceWidth:"horizontal"===t[5],$$slots:{default:[yo]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16384&n[0]&&(r.cls=En("gallery",lo,t[14])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32&n[0]&&(r.forceHeight="vertical"===t[5]),32&n[0]&&(r.forceWidth="horizontal"===t[5]),4296672&n[0]|2&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function po(t){let e,n;return e=new Yi({props:{layoutParams:t[7],div:t[60].json,templateContext:t[60].templateContext,origJson:t[60].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};128&n[0]&&(r.layoutParams=t[7]),4194304&n[0]&&(r.div=t[60].json),4194304&n[0]&&(r.templateContext=t[60].templateContext),4194304&n[0]&&(r.origJson=t[60].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function go(t){let e,n,r,o,i,a=t[59],l=t[57],s=[];for(let e=0;e<l.length;e+=1)s[e]=po(ho(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null})),u=()=>t[45](e,a),d=()=>t[45](null,a);return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();n=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=lo.gallery__items),Ht(e,"style",o=pn(t[15]))},m(t,r){Jt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Mt(e,n),u(),i=!0},p(r,h){if(t=r,4194432&h[0]){let r;for(l=t[57],r=0;r<l.length;r+=1){const o=ho(t,l,r);s[r]?(s[r].p(o,h),Ie(s[r],1)):(s[r]=po(o),s[r].c(),Ie(s[r],1),s[r].m(e,n))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Fe()}(!i||32768&h[0]&&o!==(o=pn(t[15])))&&Ht(e,"style",o),a!==t[59]&&(d(),a=t[59],u())},i(t){if(!i){for(let t=0;t<l.length;t+=1)Ie(s[t]);i=!0}},o(t){s=s.filter(co);for(let t=0;t<s.length;t+=1)Ne(s[t]);i=!1},d(t){t&&Ot(e),Tt(s,t),d()}}}function mo(t){let e,n,r=t[10]&&vo(t),o=t[11]&&$o(t);return{c(){r&&r.c(),e=Wt(),o&&o.c(),n=Ut()},l(t){r&&r.l(t),e=ee(t),o&&o.l(t),n=Ut()},m(t,i){r&&r.m(t,i),Jt(t,e,i),o&&o.m(t,i),Jt(t,n,i)},p(t,i){t[10]?r?r.p(t,i):(r=vo(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[11]?o?o.p(t,i):(o=$o(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){r&&r.d(t),t&&Ot(e),o&&o.d(t),t&&Ot(n)}}}function vo(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=lo["gallery__arrow-icon-path"]),Ht(r,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),Ht(n,"class",i=lo["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=lo.gallery__arrow+" "+lo.gallery__arrow_left+" "+cn)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[47]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function $o(t){let e,n,r,o,i,a,l,s;return{c(){e=Bt("div"),n=Rt("svg"),r=Rt("path"),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Qt(o,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var i=Kt(n);r=Qt(i,"path",{class:!0,d:!0}),Kt(r).forEach(Ot),i.forEach(Ot),o.forEach(Ot),this.h()},h(){Ht(r,"class",o=lo["gallery__arrow-icon-path"]),Ht(r,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),Ht(n,"class",i=lo["gallery__arrow-icon"]),Ht(n,"xmlns","http://www.w3.org/2000/svg"),Ht(n,"width","32"),Ht(n,"height","32"),Ht(n,"viewBox","0 0 32 32"),Ht(n,"fill","none"),Ht(e,"class",a=lo.gallery__arrow+" "+lo.gallery__arrow_right+" "+cn)},m(o,i){Jt(o,e,i),Mt(e,n),Mt(n,r),l||(s=qt(e,"click",t[48]),l=!0)},p:ct,d(t){t&&Ot(e),l=!1,s()}}}function yo(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[22],f=[];for(let e=0;e<h.length;e+=1)f[e]=go(uo(t,h,e));const p=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g="horizontal"===t[5]&&mo(t);return{c(){e=Bt("div"),n=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();l=Wt(),g&&g.c(),s=Ut(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,style:!0});var o=Kt(n);for(let t=0;t<f.length;t+=1)f[t].l(o);o.forEach(Ot),r.forEach(Ot),l=ee(t),g&&g.l(t),s=Ut(),this.h()},h(){Ht(n,"class",r=lo["gallery__items-grid"]),Ht(n,"style",o=pn(t[16])),Ht(e,"class",i=lo.gallery__scroller),Ht(e,"style",a=pn(t[6]))},m(r,o){Jt(r,e,o),Mt(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);t[46](e),Jt(r,l,o),g&&g.m(r,o),Jt(r,s,o),c=!0,u||(d=qt(e,"scroll",t[25]),u=!0)},p(t,r){if(4227712&r[0]){let e;for(h=t[22],e=0;e<h.length;e+=1){const o=uo(t,h,e);f[e]?(f[e].p(o,r),Ie(f[e],1)):(f[e]=go(o),f[e].c(),Ie(f[e],1),f[e].m(n,null))}for(Se(),e=h.length;e<f.length;e+=1)p(e);Fe()}(!c||65536&r[0]&&o!==(o=pn(t[16])))&&Ht(n,"style",o),(!c||64&r[0]&&a!==(a=pn(t[6])))&&Ht(e,"style",a),"horizontal"===t[5]?g?g.p(t,r):(g=mo(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)Ie(f[t]);c=!0}},o(t){f=f.filter(co);for(let t=0;t<f.length;t+=1)Ne(f[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[46](null),n&&Ot(l),g&&g.d(n),n&&Ot(s),u=!1,d()}}}function _o(t){let e,n,r=!t[4]&&fo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=fo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function bo(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C=ct,E=ct,A=ct,j=ct,V=ct,D=ct,P=ct,S=ct;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S()));let{json:F={}}=e,{templateContext:I}=e,{origJson:N}=e,{layoutParams:z}=e;const M=fe(un);let J,O,T,B=[],R=!1,L=!1,W=!1,U=1,q="horizontal",H="start",G=8,K="",X=[],Y={},Z=!1,Q={},tt=0;function et(){const t=J.scrollLeft,e=J.scrollWidth,r=J.offsetWidth;n(10,R=t>2),n(11,L=t+r<e-2)}function nt(t){J.scroll({left:J.scrollLeft+.75*J.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function rt(){let t=[],e=B[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<U;++e){const r=B[e].children[n];r&&t.push(r)}return t}function ot(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===q,o=r?"offsetLeft":"offsetTop",i=r?"left":"top";J.scroll({[i]:Math.max(0,t[e][o]-G/2),behavior:n})}function it(t){const e=rt(),n=J.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===q?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const o=e.map((t=>function(t,e){return"horizontal"===q?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),i=o.findIndex(Boolean);return-1!==i?"prev"===t&&2===o.filter(Boolean).length?i+1:i:"prev"===t?1:e.length-2}return ue((()=>{!W&&(et(),tt)&&ot(rt(),tt,"auto")})),F.id&&!W&&M.registerInstance(F.id,{setCurrentItem(t){const e=rt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');ot(e,t)},setPreviousItem(t){const e=it("prev"),n=rt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),ot(n,r)},setNextItem(t){const e="horizontal"===q?J.scrollLeft+J.offsetWidth===J.scrollWidth:J.scrollTop+J.offsetHeight===J.scrollHeight,n=rt();if(e&&"ring"===t)return void ot(n,0);const r=it("next");let o=r+1;o>n.length-1&&(o="ring"===t?0:r),ot(n,o)}}),t.$$set=t=>{"json"in t&&n(0,F=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,N=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(36,r=F.items),32&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,W=!1):(n(4,W=!0),M.logError(dn(new Error('Incorrect or empty "items" prop for div "gallery"'))))),18&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(35,o=(!W&&r||[]).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(23,i=M.getDerivedFromVars(F.column_count)),S(),S=_t(i,(t=>n(44,k=t)))),67108864&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(26,U=ar(k,U)),67108864&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(22,a=function(t,e){let n=0,r=[];for(let o=0;o<t.length;++o)r[n]||(r[n]=[]),r[n].push(t[o]),++n>=e&&(n=0);return r}(o,U)),1&t.$$.dirty[0]&&(n(21,l=M.getDerivedFromVars(F.orientation)),P(),P=_t(l,(t=>n(43,w=t)))),32&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(5,q=Mr(w,q)),1&t.$$.dirty[0]&&(n(20,s=M.getDerivedFromVars(F.cross_content_alignment)),D(),D=_t(s,(t=>n(42,x=t)))),134217728&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(27,H=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(x,H)),1&t.$$.dirty[0]&&(n(19,c=M.getDerivedFromVars(F.item_spacing)),V(),V=_t(c,(t=>n(41,b=t)))),536870912&t.$$.dirty[0]|1024&t.$$.dirty[1]&&(n(29,G=Fn(b,G)),n(28,O=gn(G))),1&t.$$.dirty[0]&&(n(18,u=M.getDerivedFromVars(F.paddings)),j(),j=_t(u,(t=>n(40,_=t)))),1073741824&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(30,K=Sn(_,K)),32&t.$$.dirty[0]&&n(34,d="horizontal"===q?"grid-template-columns":"grid-template-rows"),32&t.$$.dirty[0]|16&t.$$.dirty[1]){let t=[];o.forEach((e=>{const n="horizontal"===q?"width":"height";t.push(M.getDerivedFromVars(e.json[n]))})),n(12,T=Xe(t,(t=>t))),A(),A=_t(T,(t=>n(39,y=t)))}if(67108896&t.$$.dirty[0]|257&t.$$.dirty[1]&&(n(31,X=[]),U>1?X.push("auto"):y.forEach((t=>{!t&&"horizontal"===q||"match_parent"===(null==t?void 0:t.type)?X.push("100%"):X.push("max-content")}))),1&t.$$.dirty[0]&&(n(17,h=M.getDerivedFromVars(F.scroll_mode)),E(),E=_t(h,(t=>n(38,$=t)))),738197728&t.$$.dirty[0]|128&t.$$.dirty[1]){const t={};let e={};n(32,Z=!1),"horizontal"===q?e.parentVAlign=H:e.parentHAlign=H,"paging"===$&&(n(32,Z=!0),e.scrollSnap="start",t["horizontal"===q?"scroll-padding-left":"scroll-padding-top"]=gn(G/2)),1===U&&(e.parentLayoutOrientation=q),n(6,Y=zn(t,Y)),n(7,Q=zn(e,Q))}1342177280&t.$$.dirty[0]&&n(16,f={padding:K,"grid-gap":O}),268435456&t.$$.dirty[0]|9&t.$$.dirty[1]&&n(15,p={"grid-gap":O,[d]:so(X)}),32&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(14,g={orientation:q,"scroll-snap":Z}),1&t.$$.dirty[0]&&(n(13,m=M.getDerivedFromVars(F.default_item)),C(),C=_t(m,(t=>n(37,v=t)))),68&t.$$.dirty[1]&&n(33,tt=Fn(v,tt))},[F,I,N,z,W,q,Y,Q,J,B,R,L,T,m,g,p,f,h,u,c,s,l,a,i,nt,function(){et()},U,H,O,G,K,X,Z,tt,d,o,r,v,$,y,_,b,x,w,k,function(t,e){me[t?"unshift":"push"]((()=>{B[e]=t,n(9,B)}))},function(t){me[t?"unshift":"push"]((()=>{J=t,n(8,J)}))},()=>nt("left"),()=>nt("right")]}const xo={tabs:"divkit-e0df",tabs__list:"divkit-ea19",tabs__item:"divkit-c25c",tabs__item_selected:"divkit-d560",tabs__item_actionable:"divkit-dfda",tabs__panels:"divkit-f5dc",tabs__swiper:"divkit-eb42",tabs__swiper_animated:"divkit-b9f1",tabs__swiper_inited:"divkit-fa57",tabs__panel:"divkit-cc9f",tabs__panel_visible:"divkit-e730",tabs__separator:"divkit-b85b"},{Boolean:wo}=Je;function ko(t,e,n){const r=t.slice();return r[72]=e[n],r[74]=n,r}function Co(t,e,n){const r=t.slice();r[72]=e[n],r[74]=n;const o=r[74]===r[5];return r[75]=o,r}function Eo(t){let e,n;return e=new or({props:{cls:En("tabs",xo,t[34]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[So]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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]),402653154&n[0]|32768&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Ao(t){let e,n,r=t[72].title+"";return{c(){e=Lt(r),n=Wt()},l(t){e=te(t,r),n=ee(t)},m(t,r){Jt(t,e,r),Jt(t,n,r)},p(t,n){32768&n[0]&&r!==(r=t[72].title+"")&&ne(e,r)},d(t){t&&Ot(e),t&&Ot(n)}}}function jo(t){let e,n;return e=new Ln({props:{cls:En("tabs__item",xo,{selected:t[75],actionable:Boolean(t[72].title_click_action)}),actions:t[72].title_click_action?[t[72].title_click_action]:[],attrs:{id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"},customAction:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[48](t[74],...n)},$$slots:{default:[Ao]},$$scope:{ctx:t}}}),e.$on("keydown",t[36]),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(n,r){t=n;const o={};32800&r[0]&&(o.cls=En("tabs__item",xo,{selected:t[75],actionable:Boolean(t[72].title_click_action)})),32768&r[0]&&(o.actions=t[72].title_click_action?[t[72].title_click_action]:[]),32800&r[0]&&(o.attrs={id:"".concat(t[33],"-tab-").concat(t[74]),"aria-controls":"".concat(t[33],"-panel-").concat(t[74]),role:"tab",tabindex:t[75]?t[72].title_click_action?void 0:"0":"-1","aria-selected":t[75]?"true":"false"}),32768&r[0]|32768&r[2]&&(o.$$scope={dirty:r,ctx:t}),e.$set(o)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Vo(t){let e,n,r;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=xo.tabs__separator),Ht(e,"style",r=pn(t[28]))},m(t,n){Jt(t,e,n)},p(t,n){268435456&n[0]&&r!==(r=pn(t[28]))&&Ht(e,"style",r)},d(t){t&&Ot(e)}}}function Do(t){let e,n;return e=new Yi({props:{div:t[72].div,templateContext:t[1]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};32768&n[0]&&(r.div=t[72].div),2&n[0]&&(r.templateContext=t[1]),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Po(t){let e,n,r,o,i,a,l=t[24][t[74]]&&Do(t);return{c(){e=Bt("div"),l&&l.c(),n=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=Kt(e);l&&l.l(r),n=ee(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=En("tabs__panel",xo,{visible:t[25][t[74]]})),Ht(e,"role","tabpanel"),Ht(e,"id",o=t[33]+"-panel-"+t[74]),Ht(e,"aria-labelledby",i=t[33]+"-tab-"+t[74]),re(e,"left",100*t[74]+"%")},m(t,r){Jt(t,e,r),l&&l.m(e,null),Mt(e,n),a=!0},p(t,o){t[24][t[74]]?l?(l.p(t,o),16777216&o[0]&&Ie(l,1)):(l=Do(t),l.c(),Ie(l,1),l.m(e,n)):l&&(Se(),Ne(l,1,1,(()=>{l=null})),Fe()),(!a||33554432&o[0]&&r!==(r=En("tabs__panel",xo,{visible:t[25][t[74]]})))&&Ht(e,"class",r)},i(t){a||(Ie(l),a=!0)},o(t){Ne(l),a=!1},d(t){t&&Ot(e),l&&l.d()}}}function So(t){let e,n,r,o,i,a,l,s,c,u,d,h=t[15],f=[];for(let e=0;e<h.length;e+=1)f[e]=jo(Co(t,h,e));const p=t=>Ne(f[t],1,1,(()=>{f[t]=null}));let g=t[16]&&Vo(t),m=t[15],v=[];for(let e=0;e<m.length;e+=1)v[e]=Po(ko(t,m,e));const $=t=>Ne(v[t],1,1,(()=>{v[t]=null}));return{c(){e=Bt("div");for(let t=0;t<f.length;t+=1)f[t].c();r=Wt(),g&&g.c(),o=Wt(),i=Bt("div"),a=Bt("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0});var n=Kt(e);for(let t=0;t<f.length;t+=1)f[t].l(n);n.forEach(Ot),r=ee(t),g&&g.l(t),o=ee(t),i=Zt(t,"DIV",{class:!0});var l=Kt(i);a=Zt(l,"DIV",{class:!0});var s=Kt(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Ot),l.forEach(Ot),this.h()},h(){Ht(e,"class",n=xo.tabs__list),Ht(e,"role","tablist"),re(e,"--divkit-tabs-font-size",gn(t[6]),!1),re(e,"--divkit-tabs-paddings",t[7],!1),re(e,"--divkit-tabs-line-height",t[20],!1),re(e,"--divkit-tabs-letter-spacing",t[21],!1),re(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),re(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),re(e,"--divkit-tabs-active-text-color",t[11],!1),re(e,"--divkit-tabs-inactive-text-color",t[12],!1),re(e,"--divkit-tabs-active-background-color",t[13],!1),re(e,"--divkit-tabs-inactive-background-color",t[14],!1),re(e,"--divkit-tabs-border-radius",t[8],!1),Ht(a,"class",l=En("tabs__swiper",xo,{inited:t[22],animated:t[23]})),Ht(i,"class",s=xo.tabs__panels)},m(n,l){Jt(n,e,l);for(let t=0;t<f.length;t+=1)f[t].m(e,null);t[49](e),Jt(n,r,l),g&&g.m(n,l),Jt(n,o,l),Jt(n,i,l),Mt(i,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[50](a),t[51](i),c=!0,u||(d=[qt(a,"touchstart",(function(){gt(t[26]?t[37]:void 0)&&(t[26]?t[37]:void 0).apply(this,arguments)})),qt(a,"touchmove",(function(){gt(t[26]?t[38]:void 0)&&(t[26]?t[38]:void 0).apply(this,arguments)})),qt(a,"touchend",(function(){gt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)})),qt(a,"touchcancel",(function(){gt(t[26]?t[39]:void 0)&&(t[26]?t[39]:void 0).apply(this,arguments)}))],u=!0)},p(n,r){if(t=n,32800&r[0]|52&r[1]){let n;for(h=t[15],n=0;n<h.length;n+=1){const o=Co(t,h,n);f[n]?(f[n].p(o,r),Ie(f[n],1)):(f[n]=jo(o),f[n].c(),Ie(f[n],1),f[n].m(e,null))}for(Se(),n=h.length;n<f.length;n+=1)p(n);Fe()}if(64&r[0]&&re(e,"--divkit-tabs-font-size",gn(t[6]),!1),128&r[0]&&re(e,"--divkit-tabs-paddings",t[7],!1),1048576&r[0]&&re(e,"--divkit-tabs-line-height",t[20],!1),2097152&r[0]&&re(e,"--divkit-tabs-letter-spacing",t[21],!1),512&r[0]&&re(e,"--divkit-tabs-active-font-weight",t[9]||"",!1),1024&r[0]&&re(e,"--divkit-tabs-inactive-font-weight",t[10]||"",!1),2048&r[0]&&re(e,"--divkit-tabs-active-text-color",t[11],!1),4096&r[0]&&re(e,"--divkit-tabs-inactive-text-color",t[12],!1),8192&r[0]&&re(e,"--divkit-tabs-active-background-color",t[13],!1),16384&r[0]&&re(e,"--divkit-tabs-inactive-background-color",t[14],!1),256&r[0]&&re(e,"--divkit-tabs-border-radius",t[8],!1),t[16]?g?g.p(t,r):(g=Vo(t),g.c(),g.m(o.parentNode,o)):g&&(g.d(1),g=null),50364418&r[0]|4&r[1]){let e;for(m=t[15],e=0;e<m.length;e+=1){const n=ko(t,m,e);v[e]?(v[e].p(n,r),Ie(v[e],1)):(v[e]=Po(n),v[e].c(),Ie(v[e],1),v[e].m(a,null))}for(Se(),e=m.length;e<v.length;e+=1)$(e);Fe()}(!c||12582912&r[0]&&l!==(l=En("tabs__swiper",xo,{inited:t[22],animated:t[23]})))&&Ht(a,"class",l)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Ie(f[t]);for(let t=0;t<m.length;t+=1)Ie(v[t]);c=!0}},o(t){f=f.filter(wo);for(let t=0;t<f.length;t+=1)Ne(f[t]);v=v.filter(wo);for(let t=0;t<v.length;t+=1)Ne(v[t]);c=!1},d(n){n&&Ot(e),Tt(f,n),t[49](null),n&&Ot(r),g&&g.d(n),n&&Ot(o),n&&Ot(i),Tt(v,n),t[50](null),t[51](null),u=!1,pt(d)}}}function Fo(t){let e,n,r=!t[4]&&Eo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[4]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16&n[0]&&Ie(r,1)):(r=Eo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Io(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function No(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v=ct,$=ct,y=ct,_=ct,b=ct;var x;t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b()));let{json:w={}}=e,{templateContext:k}=e,{origJson:C}=e,{layoutParams:A}=e;const j=fe(un),V=j.genId("tabs");let D,P,S,F=!1;const I=j.getJsonWithVars(w.selected_tab);let N,z,M=I&&Number(I)||0,J=12,O="",T="",B="",R="",L="",W="",U="",q="",H="",G="",K=!1,X=!1,Y=M,Z=[],Q=[];async function tt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Y=M,n(5,M=t),st(),rt(),e){await xe();const t=D.querySelector(".".concat(xo.tabs__item_selected));t&&t.focus()}}function et(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let o=M+t;o>=n?o=0:o<0&&(o=n-1),tt(o,e)}function nt(t,e){return M===e||(tt(e),!1)}function rt(){n(23,X=!0),ot(100*-M),it(),async function(){await xe();const t=document.getElementById("".concat(V,"-panel-").concat(M));t&&n(18,P.style.height=gn(t.offsetHeight),P)}(),lt(),ht=-M*P.clientWidth}async function ot(t){await xe(),n(19,S.style.transform="translate3d(".concat(t,"%,0,0)"),S)}function it(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,M-1):Math.min(M,Y),o=t?Math.min(r.length-1,M+1):Math.max(M,Y);n(24,Z=Z.map(((t,n)=>t||n>=e&&n<=o))),n(25,Q=Q.map(((t,n)=>n>=e&&n<=o)))}let at=null;function lt(){at&&clearTimeout(at),at=window.setTimeout((()=>{n(25,Q=r.map(((t,e)=>e===M)))}),400)}function st(){K||(n(22,K=!0),n(18,P.style.height=gn(P.clientHeight),P),n(19,S.style.transform="translate3d(".concat(100*-Y,"%,0,0)"),S))}let ut,dt,ht,ft=null,pt=null,gt=!1,mt=!1;return w.id&&!F&&j.registerInstance(w.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');tt(t)},setPreviousItem(t){let e=M-1;e<0&&(e="ring"===t?r.length-1:M),tt(e)},setNextItem(t){let e=M+1;e>r.length-1&&(e="ring"===t?0:M),tt(e)}}),t.$$set=t=>{"json"in t&&n(0,w=t.json),"templateContext"in t&&n(1,k=t.templateContext),"origJson"in t&&n(2,C=t.origJson),"layoutParams"in t&&n(3,A=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(15,r=w.items||[]),32768&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,F=!1):(n(4,F=!0),j.logError(dn(new Error('Incorrect or empty "items" prop for div "tabs"'))))),32817&t.$$.dirty[0]&&!F&&(M<0||M>=r.length)&&(j.logError(dn(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:w.selected_tab,length:r.length}})),n(5,M=M<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(32,o=j.getDerivedFromVars(w.tab_title_style)),b(),b=_t(o,(t=>n(47,m=t)))),65536&t.$$.dirty[1]&&n(43,i=m||{}),64&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(6,J=ar(i.font_size,J)),192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&(i.font_size||i.paddings)){const t=i.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/J*10,right:(Number(t.right)||0)/J*10,bottom:(Number(t.bottom)||0)/J*10,left:(Number(t.left)||0)/J*10};n(7,O=Sn(e,O))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.line_height;void 0!==t&&lr(t)&&n(20,T=gn(t/J*10))}if(64&t.$$.dirty[0]|4096&t.$$.dirty[1]){const t=i.letter_spacing;void 0!==t&&Dn(t)&&n(21,B=gn(t/J*10))}if(320&t.$$.dirty[0]|4608&t.$$.dirty[1]&&(i.corner_radius||i.corners_radius||i.font_size)){const t=null!==n(40,x=i.corner_radius)&&void 0!==x?x:1e3;i.corners_radius?n(8,R=Pn(i.corners_radius,t,J,R)):Dn(t)&&n(8,R=gn(t/J*10))}512&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(9,N=cr(i.active_font_weight||i.font_weight,N)),1024&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(10,z=cr(i.inactive_font_weight||i.font_weight,z)),2048&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(11,L=E(i.active_text_color,1,L)),4096&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(12,W=E(i.inactive_text_color,1,W)),8192&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(13,U=E(i.active_background_color,1,U)),16384&t.$$.dirty[0]|4096&t.$$.dirty[1]&&n(14,q=E(i.inactive_background_color,1,q)),1&t.$$.dirty[0]&&(n(31,a=j.getDerivedFromVars(w.has_separator)),_(),_=_t(a,(t=>n(16,g=t)))),1&t.$$.dirty[0]&&(n(30,l=j.getDerivedFromVars(w.separator_color)),y(),y=_t(l,(t=>n(46,p=t)))),1&t.$$.dirty[0]&&(n(29,s=j.getDerivedFromVars(w.separator_paddings)),$(),$=_t(s,(t=>n(45,f=t)))),65536&t.$$.dirty[0]|52224&t.$$.dirty[1]&&g&&(p&&n(41,H=E(p,1,H)),f&&n(42,G=Sn(f,G))),3072&t.$$.dirty[1]&&n(28,c={background:H,margin:G}),1&t.$$.dirty[0]&&(n(27,u=j.getDerivedFromVars(w.switch_tabs_by_content_swipe_enabled)),v(),v=_t(u,(t=>n(44,h=t)))),8192&t.$$.dirty[1]&&n(26,d=void 0===h||Boolean(h)),32768&t.$$.dirty[0]&&(F||(n(24,Z=r.map(((t,e)=>e===M))),n(25,Q=r.map(((t,e)=>e===M)))))},[w,k,C,A,F,M,J,O,R,N,z,L,W,U,q,r,g,D,P,S,T,B,K,X,Z,Q,d,u,c,s,l,a,o,V,{},nt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)et(-1,!0);else if(39===t.which)et(1,!0);else if(36===t.which)tt(0,!0);else{if(35!==t.which)return;tt(r.length-1,!0)}t.preventDefault()}},function(t){r.length<2||t.touches.length>1||(gt=!1,mt=!1,ft=Io(t),pt=null,ut=Date.now(),dt=ht||-M*P.clientWidth,n(23,X=!1),at&&clearTimeout(at))},function(t){const e=Io(t);if(!ft||pt&&pt.x===e.x&&pt.y===e.y)return;pt=e;const n=P.clientWidth;if(gt){ht=e.x-ft.x+dt;const t=n*r.length;if(ht>0)ht=ht*n/(ht+3*n);else if(-ht+n>t){let e=-ht+n-t;e=e*n/(e+3*n),ht=n-t-e}ot(100*ht/n)}else Math.abs(e.y-ft.y)>10?mt=!0:!mt&&Math.abs(e.x-ft.x)>8&&(st(),gt=!0,ft=e,ot(100*-M),it(!0));gt&&t.cancelable&&t.preventDefault()},function(){mt=!1,ft=null;let t=M;if(!gt)return;gt=!1;const e=Math.min(512,P.clientWidth);Math.abs(dt-ht)>e/4*Math.min(1,(Date.now()-ut)/750)&&(t+=dt>ht?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===M?(ht=-t*e,ot(100*-t),lt()):tt(t)},x,H,G,i,h,f,p,m,(t,e)=>nt(0,t),function(t){me[t?"unshift":"push"]((()=>{D=t,n(17,D)}))},function(t){me[t?"unshift":"push"]((()=>{S=t,n(19,S)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(18,P)}))}]}const zo="divkit-eb86",Mo="divkit-e08c";function Jo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function Oo(t){return t*t*t}function To(t){const e=t-1;return e*e*e+1}function Bo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),o=n-r;return t[r]*o+t[r+1]*(1-o)}}const Ro=Bo([.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]),Lo=Bo([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]),Wo={linear:ut,ease:Ro,ease_in:Oo,ease_out:To,ease_in_out:Jo,spring:Lo};function Uo(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function qo(t,e){let{transitions:n,elementBbox:r,rootBbox:o,direction:i,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"===i?1-l:l,u=(Wo[t.interpolator||"ease_in_out"]||Jo)(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 i=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===i&&(i="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(o["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(o["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=i*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,f;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,o=null!==(f=t.pivot_y)&&void 0!==f?f:.5,i=(1-e)*r.width*n,a=(1-e)*r.height*o;return{active:u>0&&u<1,scale:"translate(".concat(i,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=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)),f=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(f||"none",";opacity:").concat(c)}}}function Ho(t,e,n){return t*(1-n)+e*n}const Go={linear:ut,ease:Ro,ease_in:Oo,ease_out:To,ease_in_out:Jo,spring:Lo};function Ko(t,e){var n,r;let{rootBbox:o,beforeBbox:i,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 Go?Go[l.interpolator]:Jo,css:t=>["top:".concat(Ho(i.top,a.top,t)-o.top,"px"),"left:".concat(Ho(i.left,a.left,t)-o.left,"px"),"width:".concat(Ho(i.width,a.width,t),"px"),"height:".concat(Ho(i.height,a.height,t),"px")].join(";")}}function Xo(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Xo(t))})):e.push(t),e}const{Map:Yo}=Je;function Zo(t,e,n){const r=t.slice();return r[26]=e[n],r}function Qo(t){let e,n;return e=new or({props:{cls:"divkit-b8ef",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ii]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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]),536871122&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ti(t){let e,n,r=t[7],o=ei(t);return{c(){o.c(),e=Ut()},l(t){o.l(t),e=Ut()},m(t,r){o.m(t,r),Jt(t,e,r),n=!0},p(t,n){128&n&&$t(r,r=t[7])?(Se(),Ne(o,1,1,ct),Fe(),o=ei(t),o.c(),Ie(o,1),o.m(e.parentNode,e)):o.p(t,n)},i(t){n||(Ie(o),n=!0)},o(t){Ne(o),n=!1},d(t){t&&Ot(e),o.d(t)}}}function ei(t){let e,n;return e=new Yi({props:{div:t[7].div,templateContext:t[1]}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function ni(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[11](t[26])}return r=new Yi({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);Le(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=Mo),Ht(e,"class",a=zo)},m(t,o){Jt(t,e,o),Mt(e,n),We(r,n,null),Mt(e,i),s=!0,c||(u=qt(e,"introend",d),c=!0)},p(e,n){t=e;const o={};64&n&&(o.div=t[26].json),64&n&&(o.templateContext=t[26].templateContext),r.$set(o)},i(n){s||(Ie(r.$$.fragment,n),l||we((()=>{l=Me(e,Ko,t[26]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function ri(t){let e,n,r,o,i,a,l,s,c,u;function d(){return t[10](t[26])}return r=new Yi({props:{div:t[26].json,templateContext:t[26].templateContext}}),{c(){e=Bt("div"),n=Bt("div"),Re(r.$$.fragment),i=Wt(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var o=Kt(e);n=Zt(o,"DIV",{class:!0});var a=Kt(n);Le(r.$$.fragment,a),a.forEach(Ot),i=ee(o),o.forEach(Ot),this.h()},h(){Ht(n,"class",o=Mo),Ht(e,"class",a=zo),re(e,"left",t[26].offsetLeft+"px"),re(e,"top",t[26].offsetTop+"px"),re(e,"width",t[26].width+"px"),re(e,"height",t[26].height+"px")},m(t,o){Jt(t,e,o),Mt(e,n),We(r,n,null),Mt(e,i),s=!0,c||(u=qt(e,"introend",d),c=!0)},p(n,o){t=n;const i={};64&o&&(i.div=t[26].json),64&o&&(i.templateContext=t[26].templateContext),r.$set(i),(!s||64&o)&&re(e,"left",t[26].offsetLeft+"px"),(!s||64&o)&&re(e,"top",t[26].offsetTop+"px"),(!s||64&o)&&re(e,"width",t[26].width+"px"),(!s||64&o)&&re(e,"height",t[26].height+"px")},i(n){s||(Ie(r.$$.fragment,n),l||we((()=>{l=Me(e,qo,t[26]),l.start()})),s=!0)},o(t){Ne(r.$$.fragment,t),s=!1},d(t){t&&Ot(e),Ue(r),c=!1,u()}}}function oi(t,e){let n,r,o,i,a;const l=[ri,ni],s=[];function c(t,e){return"direction"in t[26]?0:1}return r=c(e),o=s[r]=l[r](e),{key:t,first:null,c(){n=Ut(),o.c(),i=Ut(),this.h()},l(t){n=Ut(),o.l(t),i=Ut(),this.h()},h(){this.first=n},m(t,e){Jt(t,n,e),s[r].m(t,e),Jt(t,i,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Se(),Ne(s[a],1,1,(()=>{s[a]=null})),Fe(),o=s[r],o?o.p(e,n):(o=s[r]=l[r](e),o.c()),Ie(o,1),o.m(i.parentNode,i))},i(t){a||(Ie(o),a=!0)},o(t){Ne(o),a=!1},d(t){t&&Ot(n),s[r].d(t),t&&Ot(i)}}}function ii(t){var e;let n,r,o,i,a=[],l=new Yo,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&ti(t),c=t[6];const u=t=>t[26];for(let e=0;e<c.length;e+=1){let n=Zo(t,c,e),r=u(n);l.set(r,a[e]=oi(r,n))}return{c(){s&&s.c(),n=Wt(),r=Bt("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ee(t),r=Zt(t,"DIV",{class:!0});var e=Kt(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Ot),this.h()},h(){Ht(r,"class",o="divkit-adaa")},m(e,o){s&&s.m(e,o),Jt(e,n,o),Jt(e,r,o);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),i=!0},p(t,e){var o;null!==(o=t[7])&&void 0!==o&&o.div?s?(s.p(t,e),128&e&&Ie(s,1)):(s=ti(t),s.c(),Ie(s,1),s.m(n.parentNode,n)):s&&(Se(),Ne(s,1,1,(()=>{s=null})),Fe()),320&e&&(c=t[6],Se(),a=function(t,e,n,r,o,i,a,l,s,c,u,d){let h=t.length,f=i.length,p=h;const g={};for(;p--;)g[t[p].key]=p;const m=[],v=new Map,$=new Map;for(p=f;p--;){const t=d(o,i,p),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[p]=l),r in g&&$.set(r,Math.abs(p-g[r]))}const y=new Set,_=new Set;function b(t){Ie(t,1),t.m(l,u),a.set(t.key,t),u=t.first,f--}for(;h&&f;){const e=m[f-1],n=t[h-1],r=e.key,o=n.key;e===n?(u=e.first,h--,f--):v.has(o)?!a.has(r)||y.has(r)?b(e):_.has(o)?h--:$.get(r)>$.get(o)?(_.add(r),b(e)):(y.add(o),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;f;)b(m[f-1]);return m}(a,e,u,0,t,c,l,r,Oe,oi,null,Zo),Fe())},i(t){if(!i){Ie(s);for(let t=0;t<c.length;t+=1)Ie(a[t]);i=!0}},o(t){Ne(s);for(let t=0;t<a.length;t+=1)Ne(a[t]);i=!1},d(e){s&&s.d(e),e&&Ot(n),e&&Ot(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function ai(t){let e,n,r=!t[5]&&Qo(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,o),32&o&&Ie(r,1)):(r=Qo(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function li(t){return"change_bounds"===t.type?t:"set"===t.type?li(t.items[0]):null}function si(t,e,n){let r,{json:o={}}=e,{templateContext:i}=e,{origJson:a}=e,{layoutParams:l}=e;const s=fe(un);let c,u=new Map,d=new Set,h=!1,f=null,p=[],g=[],m=[],v=[];function $(t,e,n){let{json:r,templateContext:o,transitions:i,node:a}=e;r=s.getJsonWithVars(r),i=s.getJsonWithVars(i);const l=Xo(i),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0}),templateContext:o,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}}const y=o.div_id||o.id;y?(fe(jn).registerInstance(y,{async setState(t){if(_===t)return;s.setRunning("stateChange",!0);const e=new Set(d);p.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,p=[]);let o=[];if(c){const t=c.getBoundingClientRect();o=m.map((e=>$(t,e,"out")))}v.forEach((t=>{u.set(t.id,t.node.getBoundingClientRect())})),g=[],m=[],v=[];const i=r.find((e=>e.state_id===t))||null;if(i?(_=t,n(7,b=i)):s.logError(dn(new Error("Cannot find state with id"),{additional:{stateId:t}})),await xe(),!c)return;const a=c.getBoundingClientRect();let l=g.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")));o=o.filter((t=>{var e;return!(!t.json.id||d.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const h=o.concat(l),f=h.reduce(((t,e)=>Math.max(t,Uo(e.transitions))),0),y=v.filter((t=>u.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{transition_in:void 0,transition_out:void 0,transition_change:void 0,margins:void 0,alpha:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:u.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:li(t.transitions),resolvePromise:t.resolvePromise})));n(6,p=[...h.map((t=>Object.assign(Object.assign({},t),{maxDuration:f}))),...y]),u.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(dn(new Error("Missing state block with id"),{additional:{id:t}}))}}),he(jn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(dn(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},runVisibilityTransition(t,e,r,o,i){if(!c)return Promise.resolve();const a=$(c.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:o},i),l=Uo(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,p=[...p.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return g.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const o={json:t,templateContext:e,transitions:n,node:r};return m.push(o),new Promise((t=>{o.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const o=t.id;if(!o)return Promise.resolve();const i={id:o,json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},hasTransitionChange:t=>!!t&&u.has(t),registerChild(t){d.add(t)},unregisterChild(t){d.delete(t)}})):(h=!0,s.logError(dn(new Error('Missing "id" prop for div "state"'))));let _,b=null;const x=s.getJsonWithVars(o.default_state_id);let w=!1;function k(t){n(6,p=p.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return t.$$set=t=>{"json"in t&&n(0,o=t.json),"templateContext"in t&&n(1,i=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&o&&(d=new Set),1&t.$$.dirty&&n(9,r=o.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,h=!1):(n(5,h=!0),s.logError(dn(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){w||(w=!0,t.length&&(x?(_=x,n(7,b=t.find((t=>t.state_id===_))||null),b||s.logError(dn(new Error("Cannot find state for default_state_id"),{additional:{selectedId:_}}))):(n(7,b=t[0]),_=b.state_id)))}(r)},[o,i,a,l,c,h,p,b,k,r,t=>k(t),t=>k(t),function(t){me[t?"unshift":"push"]((()=>{c=t,n(4,c)}))}]}const ci={pager:"divkit-c5fe",pager__items:"divkit-f698",pager_orientation_horizontal:"divkit-b0a1",pager_orientation_vertical:"divkit-f772"},{Boolean:ui}=Je;function di(t,e,n){const r=t.slice();return r[44]=e[n],r}function hi(t){let e,n;return e=new or({props:{cls:En("pager",ci,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[pi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=En("pager",ci,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]),560&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function fi(t){let e,n;return e=new Yi({props:{layoutParams:t[14],div:t[44].json,templateContext:t[44].templateContext,origJson:t[44].origJson}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.div=t[44].json),16&n[0]&&(r.templateContext=t[44].templateContext),16&n[0]&&(r.origJson=t[44].origJson),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function pi(t){let e,n,r,o,i,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=fi(di(t,l,e));const c=t=>Ne(s[t],1,1,(()=>{s[t]=null}));return{c(){e=Bt("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=Zt(t,"DIV",{class:!0,style:!0});var n=Kt(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Ot),this.h()},h(){Ht(e,"class",n=ci.pager__items),Ht(e,"style",r=pn(t[9]))},m(n,r){Jt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[35](e),o=!0,i||(a=qt(e,"scroll",t[15]),i=!0)},p(t,n){if(16400&n[0]){let r;for(l=t[4],r=0;r<l.length;r+=1){const o=di(t,l,r);s[r]?(s[r].p(o,n),Ie(s[r],1)):(s[r]=fi(o),s[r].c(),Ie(s[r],1),s[r].m(e,null))}for(Se(),r=l.length;r<s.length;r+=1)c(r);Fe()}(!o||512&n[0]&&r!==(r=pn(t[9])))&&Ht(e,"style",r)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Ie(s[t]);o=!0}},o(t){s=s.filter(ui);for(let t=0;t<s.length;t+=1)Ne(s[t]);o=!1},d(n){n&&Ot(e),Tt(s,n),t[35](null),i=!1,a()}}}function gi(t){let e,n,r=!t[7]&&hi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=hi(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function mi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$=ct,y=ct,_=ct,b=ct,x=ct;var w,k,C,E,A,j,V;t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>x()));let{json:D={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:F}=e;const I=fe(un),N=I.genId("pager");let z,M=!1,J=0,O=!1,T="horizontal",B="",R="",L="";const W=function(t,e){let n;return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,r),n=null}),50)}}((function(){const t=function(){const t=Array.from(z.children),e=z.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===T?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:J}();t!==J&&n(24,J=t)}));function U(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===T,o=z.children[t],i=r?"offsetLeft":"offsetTop",a=r?"left":"top";z.scroll({[a]:o[i],behavior:e}),n(24,J=t)}return D.id&&I.registerInstance(D.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');U(t)},setPreviousItem(t){let e=J-1;e<0&&(e="ring"===t?r.length-1:J),U(e)},setNextItem(t){let e=J+1;e>r.length-1&&(e="ring"===t?0:J),U(e)}}),ue((()=>{if(Boolean(document.getElementById("".concat(N,"-tab-0")))){const t=[...z.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))}})),t.$$set=t=>{"json"in t&&n(0,D=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,F=t.layoutParams)},t.$$.update=()=>{if(65537&t.$$.dirty[0]&&((null===n(16,w=D.items)||void 0===w?void 0:w.length)&&Array.isArray(D.items)?n(23,M=!1):(n(23,M=!0),I.logError(dn(new Error('Incorrect or empty "items" prop for div "pager"'))))),8388611&t.$$.dirty[0]&&n(4,r=(!M&&D.items||[]).map((t=>{let e=t,n=P;return({templateContext:n,json:e}=I.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(13,o=I.getDerivedFromVars(D.layout_mode)),y(),y=_t(o,(t=>n(31,p=t)))),1&t.$$.dirty[1]&&(p?"percentage"!==p.type&&"fixed"!==p.type?(n(25,O=!0),I.logError(dn(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(25,O=!1):(n(25,O=!0),I.logError(dn(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(12,i=I.getDerivedFromVars(D.orientation)),x(),x=_t(i,(t=>n(34,v=t)))),67108864&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(26,T=Mr(v,T)),1&t.$$.dirty[0]&&(n(11,a=I.getDerivedFromVars(D.item_spacing)),b(),b=_t(a,(t=>n(33,m=t)))),4&t.$$.dirty[1]){const t=null==m?void 0:m.value;t&&Dn(t)&&n(27,B=gn(t||0))}if(1&t.$$.dirty[0]&&(n(10,l=I.getDerivedFromVars(D.paddings)),_(),_=_t(l,(t=>n(32,g=t)))),268435456&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(28,R=Sn(g,R)),67108864&t.$$.dirty[0]&&n(30,s="horizontal"===T?"grid-auto-columns":"grid-auto-rows"),209584129&t.$$.dirty[0]|1&t.$$.dirty[1])if("fixed"===(null==p?void 0:p.type)){const t=mn("horizontal"===T?((null===n(17,k=D.paddings)||void 0===k?void 0:k.left)||0)+((null===n(18,C=D.paddings)||void 0===C?void 0:C.right)||0):((null===n(19,E=D.paddings)||void 0===E?void 0:E.top)||0)+((null===n(20,A=D.paddings)||void 0===A?void 0:A.bottom)||0)),e=null===n(21,j=p.neighbour_page_width)||void 0===j?void 0:j.value;n(29,L=e?"calc(100% + ".concat(t," - 2 * ").concat(mn(e)," - 2 * ").concat(B,")"):"100%")}else if("percentage"===(null==p?void 0:p.type)){const t=null===n(22,V=p.page_width)||void 0===V?void 0:V.value;n(29,L="".concat(Number(t),"%"))}2013265920&t.$$.dirty[0]&&n(9,c={"grid-gap":B,padding:R,[s]:L}),67108864&t.$$.dirty[0]&&n(8,u={orientation:T}),41943040&t.$$.dirty[0]&&n(7,d=M||O),16777232&t.$$.dirty[0]&&function(t,e){const n=D.id;if(n){const i=new Map(f);r=h,f=i.set(n,{instId:N,size:t,currentItem:e,scrollToPagerItem:U}),o=f,r.set(o)}var r,o}(r.length,J)},n(6,h=I.getStore("pagers")),$(),$=_t(h,(t=>n(36,f=t))),[D,P,S,F,r,z,h,d,u,c,l,a,i,o,{scrollSnap:"center"},W,w,k,C,E,A,j,V,M,J,O,T,B,R,L,s,p,g,m,v,function(t){me[t?"unshift":"push"]((()=>{z=t,n(5,z)}))}]}const vi={indicator:"divkit-d8e3",indicator__scroller:"divkit-b5db",indicator__items:"divkit-d5d9",indicator__item:"divkit-f662",indicator__item_active:"divkit-b39c"};function $i(t,e,n){const r=t.slice();r[34]=e[n],r[37]=n;const o=r[37]===r[13].currentItem;return r[35]=o,r}function yi(t){let e,n=Array(t[13].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=_i($i(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=Ut()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=Ut()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Jt(t,e,n)},p(t,o){if(3153920&o[0]){let i;for(n=Array(t[13].size),i=0;i<n.length;i+=1){const a=$i(t,n,i);r[i]?r[i].p(a,o):(r[i]=_i(a),r[i].c(),r[i].m(e.parentNode,e))}for(;i<r.length;i+=1)r[i].d(1);r.length=n.length}},d(t){Tt(r,t),t&&Ot(e)}}}function _i(t){let e,n,r,o,i,a,l,s;function c(){return t[28](t[37])}return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=En("indicator__item",vi,{active:t[35]})+" "+an),Ht(e,"role","tab"),Ht(e,"id",r=t[13].instId+"-tab-"+t[37]),Ht(e,"aria-controls",o=t[13].instId+"-panel-"+t[37]),Ht(e,"aria-selected",i=t[35]?"true":"false"),Ht(e,"tabindex",a=t[35]?0:-1)},m(n,r){Jt(n,e,r),l||(s=[qt(e,"click",c),qt(e,"keydown",t[21])],l=!0)},p(l,s){t=l,8192&s[0]&&n!==(n=En("indicator__item",vi,{active:t[35]})+" "+an)&&Ht(e,"class",n),8192&s[0]&&r!==(r=t[13].instId+"-tab-"+t[37])&&Ht(e,"id",r),8192&s[0]&&o!==(o=t[13].instId+"-panel-"+t[37])&&Ht(e,"aria-controls",o),8192&s[0]&&i!==(i=t[35]?"true":"false")&&Ht(e,"aria-selected",i),8192&s[0]&&a!==(a=t[35]?0:-1)&&Ht(e,"tabindex",a)},d(t){t&&Ot(e),l=!1,pt(s)}}}function bi(t){let e,n,r,o,i="0 ".concat(gn((t[10]-1)*t[4]/2)),a="0 ".concat(gn((t[9]-t[4])/2)),l=t[13]&&yi(t);return{c(){e=Bt("div"),n=Bt("div"),l&&l.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var r=Kt(e);n=Zt(r,"DIV",{class:!0,role:!0});var o=Kt(n);l&&l.l(o),o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"class",r=vi.indicator__items),Ht(n,"role","tablist"),re(n,"margin",i,!1),re(n,"--divkit-indicator-width",gn(t[4]),!1),re(n,"--divkit-indicator-height",gn(t[5]),!1),re(n,"--divkit-indicator-border-radius",gn(t[6]),!1),re(n,"--divkit-indicator-active-color",t[7],!1),re(n,"--divkit-indicator-inactive-color",t[8],!1),re(n,"--divkit-indicator-active-scale",t[10],!1),re(n,"--divkit-indicator-margin",a,!1),Ht(e,"class",o=vi.indicator__scroller)},m(r,o){Jt(r,e,o),Mt(e,n),l&&l.m(n,null),t[29](n),t[30](e)},p(t,e){t[13]?l?l.p(t,e):(l=yi(t),l.c(),l.m(n,null)):l&&(l.d(1),l=null),1040&e[0]&&i!==(i="0 ".concat(gn((t[10]-1)*t[4]/2)))&&re(n,"margin",i,!1),16&e[0]&&re(n,"--divkit-indicator-width",gn(t[4]),!1),32&e[0]&&re(n,"--divkit-indicator-height",gn(t[5]),!1),64&e[0]&&re(n,"--divkit-indicator-border-radius",gn(t[6]),!1),128&e[0]&&re(n,"--divkit-indicator-active-color",t[7],!1),256&e[0]&&re(n,"--divkit-indicator-inactive-color",t[8],!1),1024&e[0]&&re(n,"--divkit-indicator-active-scale",t[10],!1),528&e[0]&&a!==(a="0 ".concat(gn((t[9]-t[4])/2)))&&re(n,"--divkit-indicator-margin",a,!1)},d(n){n&&Ot(e),l&&l.d(),t[29](null),t[30](null)}}}function xi(t){let e,n;return e=new or({props:{cls:En("indicator",vi,{}),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[bi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(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]),16368&n[0]|128&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function wi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g=ct,m=ct,v=ct,$=ct,y=ct,_=ct;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>$())),t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>_()));let{json:b={}}=e,{templateContext:x}=e,{origJson:w}=e,{layoutParams:k}=e;const C=fe(un);let A,j,V,D=10,P=10,S=5,F="#ffdc60",I=E("#33919cb5"),N=15,z=1.3;function M(t){t!==V.currentItem&&V.scrollToPagerItem(t)}async function J(t){V.scrollToPagerItem(t),await xe();const e=j.querySelector(".".concat(vi.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,b=t.json),"templateContext"in t&&n(1,x=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,k=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty[0]&&(n(19,r=C.getDerivedFromVars(b.shape)),_(),_=_t(r,(t=>n(27,p=t)))),134217840&t.$$.dirty[0]&&p&&(p.item_width&&n(4,D=Fn(p.item_width.value,D)),p.item_height&&n(5,P=Fn(p.item_height.value,P)),p.corner_radius&&n(6,S=Fn(p.corner_radius.value,S))),1&t.$$.dirty[0]&&(n(18,o=C.getDerivedFromVars(b.active_item_color)),y(),y=_t(o,(t=>n(26,f=t)))),67108992&t.$$.dirty[0]&&n(7,F=E(f,1,F)),1&t.$$.dirty[0]&&(n(17,i=C.getDerivedFromVars(b.inactive_item_color)),$(),$=_t(i,(t=>n(25,h=t)))),33554688&t.$$.dirty[0]&&n(8,I=E(h,1,I)),1&t.$$.dirty[0]&&(n(16,a=C.getDerivedFromVars(b.space_between_centers)),v(),v=_t(a,(t=>n(24,d=t)))),16777728&t.$$.dirty[0]&&d&&n(9,N=Fn(d.value,N)),1&t.$$.dirty[0]&&(n(15,l=C.getDerivedFromVars(b.active_item_size)),m(),m=_t(l,(t=>n(23,u=t)))),8389632&t.$$.dirty[0]&&n(10,z=ar(u,z)),4194304&t.$$.dirty[0]&&async function(t){if(b.pager_id&&t.has(b.pager_id)){n(13,V=t.get(b.pager_id)),await xe();const e=j.children[V.currentItem].offsetLeft;A.scroll({left:e-A.clientWidth/2,behavior:"smooth"})}}(c)},n(14,s=C.getStore("pagers")),g(),g=_t(s,(t=>n(22,c=t))),[b,x,w,k,D,P,S,F,I,N,z,A,j,V,s,l,a,i,o,r,M,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=V;if(37===t.which)J(n-1<0?n:n-1);else if(39===t.which)J(n+1>=e?n:n+1);else if(36===t.which)J(0);else{if(35!==t.which)return;J(e-1)}t.preventDefault()},c,u,d,h,f,p,t=>M(t),function(t){me[t?"unshift":"push"]((()=>{j=t,n(12,j)}))},function(t){me[t?"unshift":"push"]((()=>{A=t,n(11,A)}))}]}const ki={slider:"divkit-ef4f",slider__input:"divkit-d1d6",slider__input_secondary:"divkit-c798",slider__thumb:"divkit-f345",slider__thumb_secondary:"divkit-e198","slider__tracks-wrapper":"divkit-f733","slider__tracks-inner":"divkit-ac90",slider__track:"divkit-e956","slider__active-track":"divkit-ec5b","slider__thumb-text-wrapper":"divkit-ee57","slider__thumb-text":"divkit-c4af","slider__thumb-text_secondary":"divkit-d882",slider__tick:"divkit-bd9b",slider__tick_active:"divkit-d8ce",slider__tick_inactive:"divkit-e71e"};function Ci(t,e){var n,r,o;if(!t||!t.shape||!t.color)return e;const i=E(t.color),a=Number((null===(n=t.shape.item_width)||void 0===n?void 0:n.value)||10),l=Number((null===(r=t.shape.item_height)||void 0===r?void 0:r.value)||10),s=Number((null===(o=t.shape.corner_radius)||void 0===o?void 0:o.value)||5);if("shape_drawable"===t.type&&"transparent"!==i&&"rounded_rectangle"===t.shape.type){var c,u;const e={},n=null!==(c=t.stroke)&&void 0!==c&&c.color?E(t.stroke.color):"",r=null!==(u=t.stroke)&&void 0!==u&&u.width?Number(t.stroke.width||1):"";return e.width=a,e.height=l,e.borderRadius=s,e.background=i,n&&r&&(e.boxShadow="inset 0 0 0 ".concat(gn(r)," ").concat(n)),e}return e}function Ei(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&E(t.text_color)||"#000",o=sr(t.font_weight);if(lr(t.font_size)&&"transparent"!==r){var i,a;const e={fontSize:gn(t.font_size),fontWeight:o,textColor:r};return"number"==typeof(null==n||null===(i=n.x)||void 0===i?void 0:i.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function Ai(t,e,n){return Math.max(e,Math.min(n,t))}function ji(t,e,n){const r=t.slice();return r[81]=e[n],r}function Vi(t,e,n){const r=t.slice();return r[81]=e[n],r}function Di(t){let e,n;return e=new or({props:{cls:En("slider",ki,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ni]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=En("slider",ki,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]|16777216&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Pi(t){let e,n,r,o=t[12]&&Si(t),i=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Lt(t[7]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[7]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=ki["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=ki["slider__thumb-text"]+" "+ki["slider__thumb-text_secondary"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;128&e[0]&&ne(r,t[7]),8192&e[0]&&re(n,"font-size",(null===(o=t[13])||void 0===o?void 0:o.fontSize)||"1em",!1),8192&e[0]&&re(n,"font-weight",(null===(i=t[13])||void 0===i?void 0:i.fontWeight)||"",!1),8192&e[0]&&re(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}(t);return{c(){e=Bt("div"),o&&o.c(),n=Wt(),i&&i.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0,"aria-hidden":!0});var r=Kt(e);o&&o.l(r),n=ee(r),i&&i.l(r),r.forEach(Ot),this.h()},h(){Ht(e,"class",r=ki["slider__thumb-text-wrapper"]),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),o&&o.m(e,null),Mt(e,n),i&&i.m(e,null)},p(t,r){t[12]?o?o.p(t,r):(o=Si(t),o.c(),o.m(e,n)):o&&(o.d(1),o=null),t[37]&&i.p(t,r)},d(t){t&&Ot(e),o&&o.d(),i&&i.d()}}}function Si(t){let e,n,r,o,i;return{c(){e=Bt("div"),n=Bt("div"),r=Lt(t[6]),this.h()},l(o){e=Zt(o,"DIV",{class:!0});var i=Kt(e);n=Zt(i,"DIV",{class:!0});var a=Kt(n);r=te(a,t[6]),a.forEach(Ot),i.forEach(Ot),this.h()},h(){var r,a,l;Ht(n,"class",o=ki["slider__thumb-text-inner"]),re(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),re(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),re(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),Ht(e,"class",i=ki["slider__thumb-text"])},m(t,o){Jt(t,e,o),Mt(e,n),Mt(n,r)},p(t,e){var o,i,a;64&e[0]&&ne(r,t[6]),4096&e[0]&&re(n,"font-size",(null===(o=t[12])||void 0===o?void 0:o.fontSize)||"1em",!1),4096&e[0]&&re(n,"font-weight",(null===(i=t[12])||void 0===i?void 0:i.fontWeight)||"",!1),4096&e[0]&&re(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Ot(e)}}}function Fi(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=ki.slider__tick+" "+ki.slider__tick_active),re(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Jt(t,e,n)},p(t,n){131072&n[0]&&re(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Ot(e)}}}function Ii(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=ki.slider__tick+" "+ki.slider__tick_inactive),re(e,"--divkit-slider-tick",t[81],!1)},m(t,n){Jt(t,e,n)},p(t,n){262144&n[0]&&re(e,"--divkit-slider-tick",t[81],!1)},d(t){t&&Ot(e)}}}function Ni(t){let e,n,r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k=(t[12]||t[37]&&t[13])&&Pi(t),C=t[17],E=[];for(let e=0;e<C.length;e+=1)E[e]=Fi(Vi(t,C,e));let A=t[18],j=[];for(let e=0;e<A.length;e+=1)j[e]=Ii(ji(t,A,e));let V=t[37]&&function(t){let e,n;return{c(){e=Bt("div"),this.h()},l(t){e=Zt(t,"DIV",{class:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=ki.slider__thumb+" "+ki.slider__thumb_secondary),re(e,"border-radius",gn(t[9].borderRadius),!1),re(e,"background",t[9].background,!1),re(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Jt(t,e,n)},p(t,n){512&n[0]&&re(e,"border-radius",gn(t[9].borderRadius),!1),512&n[0]&&re(e,"background",t[9].background,!1),512&n[0]&&re(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Ot(e)}}}(t),D=t[37]&&function(t){let e,n,r,o,i;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){Ht(e,"type","range"),Ht(e,"class",n=t[16]?ki.slider__input:"".concat(ki.slider__input," ").concat(ki.slider__input_secondary)),Ht(e,"min",t[4]),Ht(e,"max",t[5]),Ht(e,"step","1"),e.value=r=t[16]?t[6]:t[7],Ht(e,"aria-label",t[20])},m(n,r){Jt(n,e,r),o||(i=[qt(e,"input",t[75]),qt(e,"mousedown",t[37]?t[40]:null),qt(e,"touchstart",t[37]?t[40]:null)],o=!0)},p(t,o){65536&o[0]&&n!==(n=t[16]?ki.slider__input:"".concat(ki.slider__input," ").concat(ki.slider__input_secondary))&&Ht(e,"class",n),16&o[0]&&Ht(e,"min",t[4]),32&o[0]&&Ht(e,"max",t[5]),65728&o[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&o[0]&&Ht(e,"aria-label",t[20])},d(t){t&&Ot(e),o=!1,pt(i)}}}(t);return{c(){e=Bt("div"),k&&k.c(),n=Wt(),r=Bt("div"),o=Bt("div"),a=Wt(),l=Bt("div"),c=Wt();for(let t=0;t<E.length;t+=1)E[t].c();u=Wt();for(let t=0;t<j.length;t+=1)j[t].c();d=Wt(),h=Bt("div"),p=Wt(),V&&V.c(),g=Wt(),m=Bt("input"),y=Wt(),D&&D.c(),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);k&&k.l(i),n=ee(i),r=Zt(i,"DIV",{class:!0});var s=Kt(r);o=Zt(s,"DIV",{class:!0}),Kt(o).forEach(Ot),a=ee(s),l=Zt(s,"DIV",{class:!0}),Kt(l).forEach(Ot),c=ee(s);for(let t=0;t<E.length;t+=1)E[t].l(s);u=ee(s);for(let t=0;t<j.length;t+=1)j[t].l(s);d=ee(s),h=Zt(s,"DIV",{class:!0}),Kt(h).forEach(Ot),p=ee(s),V&&V.l(s),g=ee(s),m=Zt(s,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=ee(s),D&&D.l(s),s.forEach(Ot),i.forEach(Ot),this.h()},h(){Ht(o,"class",i=ki.slider__track),re(o,"height",gn(t[10].height),!1),re(o,"border-radius",gn(t[10].borderRadius),!1),re(o,"background",t[10].background,!1),re(o,"box-shadow",t[10].boxShadow||"",!1),Ht(l,"class",s=ki["slider__active-track"]),re(l,"left",(100*t[23]).toFixed(2)+"%",!1),re(l,"width",(100*t[24]).toFixed(2)+"%",!1),re(l,"height",gn(t[11].height),!1),re(l,"border-radius",gn(t[11].borderRadius),!1),re(l,"background",t[11].background,!1),re(l,"box-shadow",t[11].boxShadow||"",!1),Ht(h,"class",f=ki.slider__thumb),re(h,"border-radius",gn(t[8].borderRadius),!1),re(h,"background",t[8].background,!1),re(h,"box-shadow",t[8].boxShadow||"",!1),Ht(m,"type","range"),Ht(m,"class",v=t[16]?"".concat(ki.slider__input," ").concat(ki.slider__input_secondary):ki.slider__input),Ht(m,"min",t[4]),Ht(m,"max",t[5]),Ht(m,"step","1"),m.value=$=t[16]?t[7]:t[6],Ht(m,"aria-label",t[19]),Ht(r,"class",_=ki["slider__tracks-inner"]),Ht(e,"class",b=ki["slider__tracks-wrapper"])},m(i,s){Jt(i,e,s),k&&k.m(e,null),Mt(e,n),Mt(e,r),Mt(r,o),Mt(r,a),Mt(r,l),Mt(r,c);for(let t=0;t<E.length;t+=1)E[t].m(r,null);Mt(r,u);for(let t=0;t<j.length;t+=1)j[t].m(r,null);Mt(r,d),Mt(r,h),Mt(r,p),V&&V.m(r,null),Mt(r,g),Mt(r,m),Mt(r,y),D&&D.m(r,null),t[76](r),x||(w=qt(m,"input",t[74]),x=!0)},p(t,i){if(t[12]||t[37]&&t[13]?k?k.p(t,i):(k=Pi(t),k.c(),k.m(e,n)):k&&(k.d(1),k=null),1024&i[0]&&re(o,"height",gn(t[10].height),!1),1024&i[0]&&re(o,"border-radius",gn(t[10].borderRadius),!1),1024&i[0]&&re(o,"background",t[10].background,!1),1024&i[0]&&re(o,"box-shadow",t[10].boxShadow||"",!1),8388608&i[0]&&re(l,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&i[0]&&re(l,"width",(100*t[24]).toFixed(2)+"%",!1),2048&i[0]&&re(l,"height",gn(t[11].height),!1),2048&i[0]&&re(l,"border-radius",gn(t[11].borderRadius),!1),2048&i[0]&&re(l,"background",t[11].background,!1),2048&i[0]&&re(l,"box-shadow",t[11].boxShadow||"",!1),131072&i[0]){let e;for(C=t[17],e=0;e<C.length;e+=1){const n=Vi(t,C,e);E[e]?E[e].p(n,i):(E[e]=Fi(n),E[e].c(),E[e].m(r,u))}for(;e<E.length;e+=1)E[e].d(1);E.length=C.length}if(262144&i[0]){let e;for(A=t[18],e=0;e<A.length;e+=1){const n=ji(t,A,e);j[e]?j[e].p(n,i):(j[e]=Ii(n),j[e].c(),j[e].m(r,d))}for(;e<j.length;e+=1)j[e].d(1);j.length=A.length}256&i[0]&&re(h,"border-radius",gn(t[8].borderRadius),!1),256&i[0]&&re(h,"background",t[8].background,!1),256&i[0]&&re(h,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,i),65536&i[0]&&v!==(v=t[16]?"".concat(ki.slider__input," ").concat(ki.slider__input_secondary):ki.slider__input)&&Ht(m,"class",v),16&i[0]&&Ht(m,"min",t[4]),32&i[0]&&Ht(m,"max",t[5]),65728&i[0]&&$!==($=t[16]?t[7]:t[6])&&(m.value=$),524288&i[0]&&Ht(m,"aria-label",t[19]),t[37]&&D.p(t,i)},d(n){n&&Ot(e),k&&k.d(),Tt(E,n),Tt(j,n),V&&V.d(),D&&D.d(),t[76](null),x=!1,w()}}}function zi(t){let e,n,r=!t[14]&&Di(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[14]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),16384&n[0]&&Ie(r,1)):(r=Di(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Mi(t,e,n,r,o){let i=[];if(o)for(let o=t;o<e;++o)i.push((o-n)/(r-n));else{for(let e=n;e<t;++e)i.push((e-n)/(r-n));for(let t=e;t<r+1;++t)i.push((t-n)/(r-n))}return i}function Ji(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w,k,C,E,A,j,V,D,P,S,F,I,N,z,M,J,O,T,B=ct,R=ct,L=ct,W=ct,U=ct,q=ct,H=ct,G=ct,K=ct,X=ct,Y=ct,Z=ct;var Q,tt,et,nt,rt,ot,it,at;t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>U())),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()));let{json:lt={}}=e,{templateContext:st}=e,{origJson:ut}=e,{layoutParams:dt}=e;const ht={width:10,height:10,borderRadius:5,background:"#000"},ft=fe(un),pt=fe(Jn);let gt,mt=!1,vt=0,$t=100;const yt=ft.getJsonWithVars(lt.thumb_value_variable),xt=ft.getJsonWithVars(lt.thumb_secondary_value_variable);let wt=yt&&ft.getVariable(yt,"integer")||Qe("temp","integer",0);bt(t,wt,(t=>n(71,J=t)));let kt=xt&&ft.getVariable(xt,"integer")||Qe("temp","integer",0);bt(t,kt,(t=>n(70,M=t)));let Ct,Et,At,jt=Ai(J||0,vt,$t),Vt=Ai(M||0,vt,$t),Dt=ht,Pt=Dt,St=ht,Ft=ht,It=null,Nt=null,zt=At,Mt="",Jt="",Ot=!1;function Tt(t,e){const r=Number(t.target.value);mt===("first"===e)?(n(7,Vt=r),kt.setValue(r)):(n(6,jt=r),wt.setValue(r))}return t.$$set=t=>{"json"in t&&n(0,lt=t.json),"templateContext"in t&&n(1,st=t.templateContext),"origJson"in t&&n(2,ut=t.origJson),"layoutParams"in t&&n(3,dt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=ft.getDerivedFromVars(lt.min_value)),Z(),Z=_t(r,(t=>n(73,T=t)))),1&t.$$.dirty[0]&&(n(35,o=ft.getDerivedFromVars(lt.max_value)),Y(),Y=_t(o,(t=>n(72,O=t)))),48&t.$$.dirty[0]|3072&t.$$.dirty[2]&&(n(4,vt=Zn(T,vt)),n(5,$t=Zn(O,$t))),112&t.$$.dirty[0]|512&t.$$.dirty[2]){const t=Ai(J||0,vt,$t);t!==jt&&n(6,jt=t)}if(176&t.$$.dirty[0]|256&t.$$.dirty[2]){const t=Ai(M||0,vt,$t);t!==Vt&&n(7,Vt=t)}if(1&t.$$.dirty[0]&&(n(34,i=ft.getDerivedFromVars(lt.thumb_style)),X(),X=_t(i,(t=>n(69,z=t)))),256&t.$$.dirty[0]|128&t.$$.dirty[2]&&n(8,Dt=Ci(z,Dt)),1&t.$$.dirty[0]&&(n(33,a=ft.getDerivedFromVars(lt.thumb_secondary_style)),K(),K=_t(a,(t=>n(68,N=t)))),256&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(9,Pt=Ci(N,Dt)),1&t.$$.dirty[0]&&(n(32,l=ft.getDerivedFromVars(lt.track_inactive_style)),G(),G=_t(l,(t=>n(67,I=t)))),1024&t.$$.dirty[0]|32&t.$$.dirty[2]&&n(10,St=Ci(I,St)),1&t.$$.dirty[0]&&(n(31,s=ft.getDerivedFromVars(lt.track_active_style)),H(),H=_t(s,(t=>n(66,F=t)))),2048&t.$$.dirty[0]|16&t.$$.dirty[2]&&n(11,Ft=Ci(F,Ft)),48&t.$$.dirty[0]&&n(59,c=$t-vt+1<=20),1&t.$$.dirty[0]&&(n(30,u=ft.getDerivedFromVars(lt.tick_mark_active_style)),q(),q=_t(u,(t=>n(65,S=t)))),268435456&t.$$.dirty[1]|8&t.$$.dirty[2])if(c){let t=Ci(S,ht);t!==ht&&n(50,It=t)}else n(50,It=null);if(240&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(17,Ct=It?xt?Mi(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!0):Mi(vt,jt,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(29,d=ft.getDerivedFromVars(lt.tick_mark_inactive_style)),U(),U=_t(d,(t=>n(64,P=t)))),268435456&t.$$.dirty[1]|4&t.$$.dirty[2])if(c){let t=Ci(P,ht);t!==ht&&n(51,Nt=t)}else n(51,Nt=null);if(240&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(18,Et=Nt?xt?Mi(Math.min(jt,Vt),Math.max(jt,Vt)+1,vt,$t,!1):Mi(jt+1,$t+1,vt,$t,!0):[]),1&t.$$.dirty[0]&&(n(28,h=ft.getDerivedFromVars(lt.thumb_text_style)),W(),W=_t(h,(t=>n(63,D=t)))),4096&t.$$.dirty[0]|2&t.$$.dirty[2]&&n(12,At=Ei(D,At)),1&t.$$.dirty[0]&&(n(27,f=ft.getDerivedFromVars(lt.thumb_secondary_text_style)),L(),L=_t(f,(t=>n(62,V=t)))),4096&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(13,zt=Ei(V,At)),1&t.$$.dirty[0]&&(n(26,p=ft.getDerivedFromVars(lt.accessibility)),R(),R=_t(p,(t=>n(61,j=t)))),1073741824&t.$$.dirty[1]&&((null==j?void 0:j.description)?n(19,Mt=j.description):ft.logError(dn(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,g=ft.getDerivedFromVars(lt.secondary_value_accessibility)),B(),B=_t(g,(t=>n(60,A=t)))),536870912&t.$$.dirty[1]&&((null==A?void 0:A.description)?n(20,Jt=A.description):xt&&ft.logError(dn(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;pt.hasAction()?(ft.logError(dn(new Error('Cannot show "slider" inside component with action'))),t=!0):Dt===ht?(ft.logError(dn(new Error('Missing "thumb_style" in slider'))),t=!0):Ft===ht?(ft.logError(dn(new Error('Missing "track_active_style" in slider'))),t=!0):St===ht&&(ft.logError(dn(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==Ot&&n(14,Ot=t)}3840&t.$$.dirty[0]&&n(58,m=Math.max(...[Dt.height,Pt.height,St.height,Ft.height,0].filter(Dn))),768&t.$$.dirty[0]&&n(57,v=gn(Math.max(...[Dt.width,Pt.width,0].filter(Dn)))),768&t.$$.dirty[0]&&n(56,$=gn(Math.max(...[Dt.height,Pt.height,0].filter(Dn)))),112&t.$$.dirty[0]&&n(55,y=(jt-vt)/($t-vt)),176&t.$$.dirty[0]&&n(54,_=xt?(Vt-vt)/($t-vt):void 0),25165824&t.$$.dirty[1]&&n(24,b=void 0!==_?Math.abs(_-y):y),25165824&t.$$.dirty[1]&&n(23,x=void 0!==_?Math.min(_,y):0),13056&t.$$.dirty[0]|134223872&t.$$.dirty[1]&&n(53,w=-Math.min(...[(m-Dt.height)/2+((null===n(42,Q=null==At?void 0:At.offset)||void 0===Q?void 0:Q.y)||0),xt?(m-Pt.height)/2+((null===n(43,tt=null==zt?void 0:zt.offset)||void 0===tt?void 0:tt.y)||0):0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|134242304&t.$$.dirty[1]&&n(52,k=Math.max(...[((null===n(44,et=null==At?void 0:At.offset)||void 0===et?void 0:et.y)||0)-(m-Dt.height)/2,xt?((null===n(45,nt=null==zt?void 0:zt.offset)||void 0===nt?void 0:nt.y)||0)-(m-Pt.height)/2:0,0].filter((t=>void 0!==t&&"number"==typeof t&&!isNaN(t))))),13056&t.$$.dirty[0]|268402688&t.$$.dirty[1]&&n(22,C={"--divkit-slider-thumb-width":gn(Dt.width),"--divkit-slider-thumb-height":gn(Dt.height),"--divkit-slider-thumb-secondary-width":gn(Pt.width),"--divkit-slider-thumb-secondary-height":gn(Pt.height),"--divkit-slider-text-offset-x":(null===n(46,rt=null==At?void 0:At.offset)||void 0===rt?void 0:rt.x)?mn(At.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(47,ot=null==At?void 0:At.offset)||void 0===ot?void 0:ot.y)?mn(At.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(48,it=null==zt?void 0:zt.offset)||void 0===it?void 0:it.x)?mn(zt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(49,at=null==zt?void 0:zt.offset)||void 0===at?void 0:at.y)?mn(zt.offset.y):void 0,"--divkit-slider-tick-active-width":It?gn(It.width):void 0,"--divkit-slider-tick-active-height":It?gn(It.height):void 0,"--divkit-slider-tick-active-border-radius":It?gn(It.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==It?void 0:It.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==It?void 0:It.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Nt?gn(Nt.width):void 0,"--divkit-slider-tick-inactive-height":Nt?gn(Nt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Nt?gn(Nt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Nt?void 0:Nt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Nt?void 0:Nt.boxShadow)||void 0,"--divkit-slider-max-height":gn(m),"--divkit-slider-max-thumb-width":v,"--divkit-slider-max-thumb-height":$,"--divkit-slider-track-part":y,"--divkit-slider-track-secondary-part":_,"--divkit-slider-offset-top":mn(w),"--divkit-slider-offset-bottom":mn(k)})},n(21,E={}),[lt,st,ut,dt,vt,$t,jt,Vt,Dt,Pt,St,Ft,At,zt,Ot,gt,mt,Ct,Et,Mt,Jt,E,C,x,b,g,p,f,h,d,u,s,l,a,i,o,r,xt,wt,kt,function(t){var e,r;const o="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===o)return;const i=gt.getBoundingClientRect(),a=(o-i.left)/i.width,l=($t-vt)*a,s=Math.round(Ai(l,vt,$t));n(16,mt=s<(jt+Vt)/2==jt<Vt)},Tt,Q,tt,et,nt,rt,ot,it,at,It,Nt,k,w,_,y,$,v,m,c,A,j,V,D,P,S,F,I,N,z,M,J,O,T,t=>Tt(t,"first"),t=>Tt(t,"second"),function(t){me[t?"unshift":"push"]((()=>{gt=t,n(15,gt)}))}]}const Oi={input:"divkit-c3a4",input__wrapper:"divkit-ef7e",input__holder:"divkit-bb3d",input_multiline:"divkit-e48a",input__input:"divkit-f11e","input_highlight-color":"divkit-cc00","input_vertical-overflow":"divkit-b707"};function Ti(t){let e,n;return e=new or({props:{cls:En("input",Oi,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Wi]},$$scope:{ctx:t}}}),{c(){Re(e.$$.fragment)},l(t){Le(e.$$.fragment,t)},m(t,r){We(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=En("input",Oi,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||(Ie(e.$$.fragment,t),n=!0)},o(t){Ne(e.$$.fragment,t),n=!1},d(t){Ue(e,t)}}}function Bi(t){let e;return{c(){e=Lt("")},l(t){e=te(t,"")},m(t,n){Jt(t,e,n)},d(t){t&&Ot(e)}}}function Ri(t){let e,n,r,o;return{c(){e=Bt("input"),this.h()},l(t){e=Zt(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){Ht(e,"type",t[9]),Ht(e,"class",n=Oi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[57](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"type",t[9]),1024&r[0]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Ot(e),t[57](null),r=!1,pt(o)}}}function Li(t){let e,n,r,o;return{c(){e=Bt("textarea"),this.h()},l(t){e=Zt(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),Kt(e).forEach(Ot),this.h()},h(){Ht(e,"class",n=Oi.input__input),Ht(e,"autocomplete","off"),Ht(e,"autocapitalize","off"),Ht(e,"aria-label",t[10]),Ht(e,"placeholder",t[15]),e.value=t[8]},m(n,i){Jt(n,e,i),t[56](e),r||(o=[qt(e,"input",t[29]),qt(e,"mousedown",(function(){gt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),qt(e,"click",(function(){gt(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]&&Ht(e,"aria-label",t[10]),32768&r[0]&&Ht(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Ot(e),t[56](null),r=!1,pt(o)}}}function Wi(t){let e,n,r,o,i,a,l=t[8].endsWith("\n")||!t[8],s=l&&Bi();function c(t,e){return t[4]?Li:Ri}let u=c(t),d=u(t);return{c(){e=Bt("span"),n=Bt("span"),r=Lt(t[8]),s&&s.c(),i=Wt(),d.c(),this.h()},l(o){e=Zt(o,"SPAN",{class:!0});var a=Kt(e);n=Zt(a,"SPAN",{class:!0,"aria-hidden":!0});var l=Kt(n);r=te(l,t[8]),s&&s.l(l),l.forEach(Ot),i=ee(a),d.l(a),a.forEach(Ot),this.h()},h(){Ht(n,"class",o=Oi.input__holder),Ht(n,"aria-hidden","true"),Ht(e,"class",a=Oi.input__wrapper)},m(o,a){Jt(o,e,a),Mt(e,n),Mt(n,r),s&&s.m(n,null),t[55](n),Mt(e,i),d.m(e,null)},p(t,o){256&o[0]&&ne(r,t[8]),256&o[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=Bi(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,o):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Ot(e),s&&s.d(),t[55](null),d.d()}}}function Ui(t){let e,n,r=!t[7]&&Ti(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){t[7]?r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe()):r?(r.p(t,n),128&n[0]&&Ie(r,1)):(r=Ti(t),r.c(),Ie(r,1),r.m(e.parentNode,e))},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function qi(t,e,n){let r,o,i,a,l,s,c,u,d,h,f,p,g,m,v,$,y,_,b,x,w=ct,k=ct;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>k()));let{json:C={}}=e,{templateContext:A}=e,{origJson:j}=e,{layoutParams:V}=e;const D=fe(un);let P,S,F=!1,I=!1;const N=D.getJsonWithVars(C.text_variable);let z=!1;N||(z=!0,D.logError(dn(new Error('Missing "text_variable" in "input"'))));let M=N&&D.getVariable(N,"string")||Qe("temp","string","");bt(t,M,(t=>n(54,b=t)));let J="";const O=D.getDerivedFromVars(C.hint_text);bt(t,O,(t=>n(53,_=t)));const T=D.getDerivedFromVars(C.hint_color);bt(t,T,(t=>n(52,y=t)));let B="";const R=D.getDerivedFromVars(C.font_size);bt(t,R,(t=>n(51,$=t)));let L=12;const W=D.getDerivedFromVars(C.font_weight);let U;bt(t,W,(t=>n(50,v=t)));const q=D.getDerivedFromVars(C.line_height);let H;bt(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(C.letter_spacing);bt(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(C.text_color);bt(t,X,(t=>n(47,p=t)));let Y="#000";const Z=D.getDerivedFromVars(C.highlight_color);bt(t,Z,(t=>n(46,f=t)));let Q="";const tt=D.getDerivedFromVars(C.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 ot=D.getDerivedFromVars(C.max_visible_lines);bt(t,ot,(t=>n(44,d=t)));let it="",at="";const lt=D.getDerivedFromVars(C.select_all_on_focus);function st(){n(32,I=S.scrollHeight>S.offsetHeight)}return bt(t,lt,(t=>n(16,x=t))),ue((()=>{st()})),t.$$set=t=>{"json"in t&&n(0,C=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,j=t.origJson),"layoutParams"in t&&n(3,V=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,J=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=E(y,1,B)),1048584&t.$$.dirty[1]&&n(34,L=ar($,L)),524304&t.$$.dirty[1]&&n(35,U=cr(v,U)),262152&t.$$.dirty[1]){const t=m;lr(t)&&n(36,H=t/L)}131080&t.$$.dirty[1]&&Vn(g)&&n(37,K=gn(g/L*10)),65664&t.$$.dirty[1]&&n(38,Y=E(p,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=E(f,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,o="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,i=D.getDerivedFromVars(C.paddings)),k(),k=_t(i,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&lr(d)&&n(41,it="calc(".concat(d*(H||1.25)+"em"," + ").concat(mn(Fn(null==u?void 0:u.top,0)+Fn(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(C.accessibility)),w(),w=_t(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(dn(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:o}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":gn(L),"font-weight":U,"line-height":H,"letter-spacing":K,color:Y,"max-height":it})},[C,A,j,V,o,P,S,z,J,rt,at,s,l,a,i,r,x,M,O,T,R,W,q,G,X,Z,tt,ot,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,L,U,H,K,Y,Q,nt,it,c,u,d,h,f,p,g,m,v,$,y,_,b,function(t){me[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){me[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const Hi={text:class extends He{constructor(t){super(),qe(this,t,jr,Ar,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},container:class extends He{constructor(t){super(),qe(this,t,Nr,Ir,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},separator:class extends He{constructor(t){super(),qe(this,t,Br,Tr,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},image:Xr,gif:Xr,grid:class extends He{constructor(t){super(),qe(this,t,ao,io,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},gallery:class extends He{constructor(t){super(),qe(this,t,bo,_o,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},tabs:class extends He{constructor(t){super(),qe(this,t,No,Fo,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},state:class extends He{constructor(t){super(),qe(this,t,si,ai,$t,{json:0,templateContext:1,origJson:2,layoutParams:3})}},pager:class extends He{constructor(t){super(),qe(this,t,mi,gi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},indicator:class extends He{constructor(t){super(),qe(this,t,wi,xi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},slider:class extends He{constructor(t){super(),qe(this,t,Ji,zi,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},input:class extends He{constructor(t){super(),qe(this,t,qi,Ui,$t,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}}};function Gi(t){let e,n,r;var o=t[5];function i(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return o&&(e=new o(i(t))),{c(){e&&Re(e.$$.fragment),n=Ut()},l(t){e&&Le(e.$$.fragment,t),n=Ut()},m(t,o){e&&We(e,t,o),Jt(t,n,o),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]),o!==(o=t[5])){if(e){Se();const t=e;Ne(t.$$.fragment,1,0,(()=>{Ue(t,1)})),Fe()}o?(e=new o(i(t)),Re(e.$$.fragment),Ie(e.$$.fragment,1),We(e,n.parentNode,n)):e=null}else o&&e.$set(a)},i(t){r||(e&&Ie(e.$$.fragment,t),r=!0)},o(t){e&&Ne(e.$$.fragment,t),r=!1},d(t){t&&Ot(n),e&&Ue(e,t)}}}function Ki(t){let e,n,r=t[5]&&Gi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){let[o]=n;t[5]?r?(r.p(t,o),32&o&&Ie(r,1)):(r=Gi(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function Xi(t,e,n){let{div:r}=e,{templateContext:o}=e,{origJson:i}=e,{layoutParams:a}=e;const l=fe(un);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,o=t.templateContext),"origJson"in t&&n(1,i=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=o),n(5,u=s&&Hi[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,o),n(5,u),n(4,c))),n(5,u=s&&Hi[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(dn(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,i,a,s,c,u,o]}const Yi=class extends He{constructor(t){super(),qe(this,t,Xi,Ki,$t,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Zi(t,e,n){const r=t.slice();return r[1]=e[n],r}function Qi(t){let e,n,r,o=[...Object.keys(t[0])],i=[];for(let e=0;e<o.length;e+=1)i[e]=ta(Zi(t,o,e));return{c(){e=Rt("svg"),n=Rt("defs");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=Qt(t,"svg",{class:!0,"aria-hidden":!0});var r=Kt(e);n=Qt(r,"defs",{});var o=Kt(n);for(let t=0;t<i.length;t+=1)i[t].l(o);o.forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(e,"class",r="divkit-dc22"),Ht(e,"aria-hidden","true")},m(t,r){Jt(t,e,r),Mt(e,n);for(let t=0;t<i.length;t+=1)i[t].m(n,null)},p(t,e){if(1&e){let r;for(o=[...Object.keys(t[0])],r=0;r<o.length;r+=1){const a=Zi(t,o,r);i[r]?i[r].p(a,e):(i[r]=ta(a),i[r].c(),i[r].m(n,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&Ot(e),Tt(i,t)}}}function ta(t){let e,n,r,o,i;return{c(){e=Rt("filter"),n=Rt("feFlood"),o=Rt("feComposite"),this.h()},l(t){e=Qt(t,"filter",{id:!0});var r=Kt(e);n=Qt(r,"feFlood",{"flood-color":!0}),Kt(n).forEach(Ot),o=Qt(r,"feComposite",{in2:!0,operator:!0}),Kt(o).forEach(Ot),r.forEach(Ot),this.h()},h(){Ht(n,"flood-color",r=t[1]),Ht(o,"in2","SourceGraphic"),Ht(o,"operator","in"),Ht(e,"id",i=t[0][t[1]])},m(t,r){Jt(t,e,r),Mt(e,n),Mt(e,o)},p(t,o){1&o&&r!==(r=t[1])&&Ht(n,"flood-color",r),1&o&&i!==(i=t[0][t[1]])&&Ht(e,"id",i)},d(t){t&&Ot(e)}}}function ea(t){let e,n=Object.keys(t[0]).length,r=n&&Qi(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,n){r&&r.m(t,n),Jt(t,e,n)},p(t,o){let[i]=o;1&i&&(n=Object.keys(t[0]).length),n?r?r.p(t,i):(r=Qi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:ct,o:ct,d(t){r&&r.d(t),t&&Ot(e)}}}function na(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const ra=class extends He{constructor(t){super(),qe(this,t,na,ea,$t,{svgFiltersMap:0})}};function oa(t,e,n,r){const o=n[t.type];if(!o)return r(dn(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let i;const a={};for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(a[i]=t[i]);const l=function e(n,o){const i=Object.keys(o).filter((t=>"__proto__"!==t)),l=i.filter((t=>"$"!==t.charAt(0))),s=i.filter((t=>"$"===t.charAt(0)));return l.forEach((t=>{const r=o[t];"object"==typeof r&&null!==r?(n[t]=Array.isArray(r)?[]:{},e(n[t],r)):n[t]=r})),s.forEach((e=>{const i=o[e],l=a[i];if(void 0!==l){const t=e.substring(1);n[t]=l}else r(dn(new Error("Missing template field"),{level:"warn",additional:{key:e,template:t.type}}))})),n}({},o);for(i in t)"type"!==i&&"__proto__"!==i&&t.hasOwnProperty(i)&&(l[i]=t[i]);return{json:l,templateContext:a}}function ia(){}function aa(t){return{subscribe:e=>(e(t),ia)}}const la=/(?:[^\\]|^)@{.+}/i;class sa{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return k(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=rn(t,this.ast);if("error"===n.type)return void e(dn(new Error("Expression execution error"),{additional:{message:n.value}}));const r=n.value;return r instanceof Date?D(r):r}catch(t){return void e(dn(new Error("Expression execution error")))}}}function ca(t,e,n){if(t)if("string"==typeof t){if(r=t,la.test(r))try{const n=y(t,{startRule:"JsonStringContents"}),r=M(n);return e.push(...r),new sa(n)}catch(e){return void n(dn(new Error("Unable to parse expression"),{additional:{expression:t}}))}}else{if(Array.isArray(t))return t.map((t=>ca(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ca(t[o],e,n);return r}}var r;return t}function ua(t,e,n){if(t){if(t instanceof sa)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>ua(t,e,n)));if("object"==typeof t){const r={};for(const o in t)r[o]=ua(t[o],e,n);return r}}return t}function da(t,e){let n=[];const r=ca(t,n,e);return n=[...new Set(n)],{vars:n,applyVars:t=>ua(r,t,e)}}const ha={pagers:function(){return Ke(new Map)}},fa=new Map,pa=new Map;function ga(t){const e=fa.get(t)||Ke("");return fa.has(t)||fa.set(t,e),e}function ma(t){const e=pa.get(t)||new Map;return pa.has(t)||pa.set(t,e),e}class va{setVariable(t){const e=t.getName(),n=ma(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),ga(this).set(e)}getVariable(t){return ma(this).get(t)}}function $a(){return new va}function ya(t){let e,n,r,o,i,a,l,s;return n=new ra({props:{svgFiltersMap:t[2]}}),o=new Yi({props:{div:t[4],templateContext:t[3]}}),{c(){e=Bt("div"),Re(n.$$.fragment),r=Wt(),Re(o.$$.fragment),this.h()},l(t){e=Zt(t,"DIV",{class:!0});var i=Kt(e);Le(n.$$.fragment,i),r=ee(i),Le(o.$$.fragment,i),i.forEach(Ot),this.h()},h(){Ht(e,"class",i=""+(on+(t[0]?" ".concat(sn):"")))},m(t,i){Jt(t,e,i),We(n,e,null),Mt(e,r),We(o,e,null),a=!0,l||(s=qt(e,"touchstart",ba,{passive:!0}),l=!0)},p(t,r){const o={};4&r[0]&&(o.svgFiltersMap=t[2]),n.$set(o),(!a||1&r[0]&&i!==(i=""+(on+(t[0]?" ".concat(sn):""))))&&Ht(e,"class",i)},i(t){a||(Ie(n.$$.fragment,t),Ie(o.$$.fragment,t),a=!0)},o(t){Ne(n.$$.fragment,t),Ne(o.$$.fragment,t),a=!1},d(t){t&&Ot(e),Ue(n),Ue(o),l=!1,s()}}}function _a(t){let e,n,r=!t[1]&&t[4]&&ya(t);return{c(){r&&r.c(),e=Ut()},l(t){r&&r.l(t),e=Ut()},m(t,o){r&&r.m(t,o),Jt(t,e,o),n=!0},p(t,n){!t[1]&&t[4]?r?(r.p(t,n),2&n[0]&&Ie(r,1)):(r=ya(t),r.c(),Ie(r,1),r.m(e.parentNode,e)):r&&(Se(),Ne(r,1,1,(()=>{r=null})),Fe())},i(t){n||(Ie(r),n=!0)},o(t){Ne(r),n=!1},d(t){r&&r.d(t),t&&Ot(e)}}}function ba(){}function xa(t,e,n){var r,o,i,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new va}=e,{onError:f}=e,{onStat:p}=e,{onCustomAction:g}=e,{onComponent:m}=e,v="desktop"===u;if("auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");v=!t.matches,t.addListener((()=>{n(0,v=!t.matches)}))}let $="light";if("light"===d||"dark"===d)$=d;else if("system"===d)if("undefined"!=typeof matchMedia){const t=matchMedia("(prefers-color-scheme: dark)");$=t.matches?"dark":"light",t.addListener((()=>{$=t.matches?"dark":"light",W&&W[$].forEach((t=>{const e=A.get(t.name);e&&e.setValue(t.color)}))}))}else $="light";else D(dn(new Error("Unsupported theme")));let _=!1;c||(_=!0,D(dn(new Error('"json" prop is required')))),s||(_=!0,D(dn(new Error('"id" prop is required'))));let b=function(t){if(!t)return dn(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return dn(new Error("Missing card"));if(!e.states||!e.states.length)return dn(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Hi)return dn(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t)if(!e.states[t].div)return dn(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});return null}(c);const x=c.templates||{};b&&(_=!0,D(b));const w={stateChange:!1},k=ga(h),C=ma(h),E=new Map,A=new Map,j=new Map;function V(t){const e=da(t,D);return e.vars.length?e.applyVars(A):t}function D(t){f?f({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}let P=0;function S(t){return"".concat(s,"-").concat(P++)}let F={},I={};function N(t){const e=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=t.split("/");const n=e.shift()||"";if(e=[n,"root","0",...e],e.length<5||e.length%2!=1)throw new Error("Incorrect state id format");let r=B;for(let t=1;t<e.length;t+=2){const n=e[t],o=e[t+1];let i=r.getChild(n);if(!i)return;i.setState(o),r=i}}(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=J(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=J(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=J(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),o=r.get("value");if(n&&null!==o){const t=A.get(n);t?t.set(o):D(dn(new Error("Cannot find variable"),{additional:{name:n}}))}else D(dn(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;default:D(dn(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){D(dn(t,{additional:{url:e}}))}}const z=new Map;function J(t){if(z.has(t))return z.get(t);D(dn(new Error("Missing instance with id"),{additional:{id:t}}))}const O=new Map;function T(t){for(const e of t)A.has(e)&&t.delete(e);return t}he(un,{logError:D,logStat:function(t,e){p&&p({type:t,action:e})},hasTemplate:function(t){return t in x},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in x;){if(({json:t,templateContext:e}=oa(t,e,x,D)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:S,genClass:function(t){return"divkit-".concat(S())},execAction:N,execCustomAction:function(t){null==g||g(t)},isRunning:function(t){return w[t]},setRunning:function(t,e){w[t]=e},registerInstance:function(t,e){z.has(t)?D(dn(new Error("Duplicate instance id"),{additional:{id:t}})):z.set(t,e)},addSvgFilter:function(t){if(I[t]=I[t]||0,++I[t],F[t])return F[t];const e="".concat(S(),"-svg-filter");return n(2,F=Object.assign(Object.assign({},F),{[t]:e})),e},removeSvgFilter:function(t){t&&I[t]&&0==--I[t]&&n(2,F=Object.keys(F).reduce(((t,e)=>(I[e]&&(t[e]=F[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return aa(t);const e=da(t,D);return e.vars.length?Xe(e.vars.map((t=>A.get(t)||function(t){const e=j.get(t)||Ke(void 0);return j.has(t)||j.set(t,e),e}(t))).filter($n),(()=>e.applyVars(A))):aa(t)},getJsonWithVars:V,getStore:function(t){return O.has(t)||function(t){O.has(t)||O.set(t,ha[t]())}(t),O.get(t)},getVariable:function(t,e){const n=A.get(t);if(n){const r=n.getType();if(r!==e)return void D(dn(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:o}=t;m&&m({type:"mount",node:e,json:n,origJson:r,templateContext:o})},unregisterComponent:function(t){let{node:e}=t;m&&m({type:"destroy",node:e})}}),he(Jn,{hasAction:()=>!1});const B={setState(t){throw new Error("Not implemented")},getChild(t){if(R&&R.has(t))return R.get(t);D(dn(new Error("Missing state block with id"),{additional:{id:t}}))}};let R=null;he(jn,{registerInstance(t,e){R||(R=new Map),R.has(t)?D(dn(new Error("Duplicate state with id"),{additional:{id:t}})):R.set(t,e)},runVisibilityTransition:(t,e,n,r,o)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const L=null===(r=null==c?void 0:c.card)||void 0===r?void 0:r.variables;Array.isArray(L)&&L.forEach((t=>{if(t&&t.type in Ze&&t.name){if(E.has(t.name))return void D(dn(new Error("Duplicate variable"),{additional:{name:t.name}}));try{const e=Qe(t.name,t.type,t.value);E.set(t.name,e),A.set(t.name,e)}catch(e){D(dn(e,{additional:{name:t.name}}))}}}));const W=c.palette;W&&W[$].forEach((t=>{if(E.has(t.name))D(dn(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=Qe(t.name,"color",t.color);E.set(t.name,e),A.set(t.name,e)}catch(e){D(dn(e,{additional:{name:t.name}}))}}));for(const[t,e]of C)A.has(t)||A.set(t,e);k.subscribe((t=>{if(t&&!A.has(t)){const e=C.get(t);A.set(t,e);const n=j.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const U=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(U)&&U.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void D(dn(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=y(t.condition,{startRule:"JsonStringContents"}),o=M(r);if(!o.length)return void D(dn(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return T(e),e.size?new Promise((t=>{const n=k.subscribe((()=>{T(e),e.size||(n(),t())}))})):Promise.resolve()})(o).then((()=>{Xe(o.map((t=>A.get(t))).filter($n),(()=>rn(A,r))).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=V(t);e.log_id&&N(e)})),e=Boolean(r.value)):D(dn(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){D(dn(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else D(dn(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));let q=null===(l=null===(a=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.states)||void 0===a?void 0:a[0])||void 0===l?void 0:l.div,H=q&&{type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:[{state_id:"0",div:q}]};return t.$$set=t=>{"id"in t&&n(5,s=t.id),"json"in t&&n(6,c=t.json),"platform"in t&&n(7,u=t.platform),"theme"in t&&n(8,d=t.theme),"globalVariablesController"in t&&n(9,h=t.globalVariablesController),"onError"in t&&n(10,f=t.onError),"onStat"in t&&n(11,p=t.onStat),"onCustomAction"in t&&n(12,g=t.onCustomAction),"onComponent"in t&&n(13,m=t.onComponent)},[v,_,F,{},H,s,c,u,d,h,f,p,g,m,function(t,e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){const n=A.get(t);n&&n.setValue(e)}},function(t){const e=A.get(t);return null==e?void 0:e.getValue()},N]}const wa=class extends He{constructor(t){super(),qe(this,t,xa,_a,$t,{id:5,json:6,platform:7,theme:8,globalVariablesController:9,onError:10,onStat:11,onCustomAction:12,onComponent:13,setVariable:14,getVariable:15,execAction:16},null,[-1,-1,-1])}get setVariable(){return this.$$.ctx[14]}get getVariable(){return this.$$.ctx[15]}get execAction(){return this.$$.ctx[16]}};function ka(t){return new wa({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function Ca(t,e){let n;try{n=y(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{type:"error",value:"Unable to parse expression"}}return rn((null==e?void 0:e.variables)||new Map,n)}function Ea(){return Array.from(_.keys())}(window.Ya=window.Ya||{}).Divkit=e})();
|
|
2
2
|
//# sourceMappingURL=client-devtool.js.map
|